80b721be7d9faaba1dd580078a8473efba2ea227
[gcc.git] / gcc / ChangeLog
1 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2
3 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
4 (spu_builtin_decl): New function.
5
6 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
7
8 * config/i386/i386.md (SWIM): New mode iterator.
9 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
10 using SWIM mode iterator.
11 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
12 patterns using SWI48 mode iterator.
13 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
14 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
15 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
16 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
17 patterns using SWI248 mode iterator.
18 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
19 gen_x86_movdicc_0_m1_rex64 for renamed function
20
21 2009-10-11 Jose Ruiz <ruiz@adacore.com>
22 Eric Botcazou <ebotcazou@adacore.com>
23
24 PR target/33743
25 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
26 * config/sparc/sol2-unwind.h: New file.
27
28 2009-10-11 Olivier Hainque <hainque@adacore.com>
29 Eric Botcazou <ebotcazou@adacore.com>
30
31 PR target/33743
32 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
33 * config/i386/sol2-unwind.h: New file.
34
35 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR target/41665
38 * config/i386/i386.md (addsi_1_zext): Get the proper second
39 operand for lea.
40
41 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
42
43 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
44 all OLD_RTXes, not just REGs. Use copy_rtx to create the
45 replacement value.
46
47 2009-10-11 Richard Guenther <rguenther@suse.de>
48
49 * gimple.c (iterative_hash_type_name): Do not handle special
50 anonymous names.
51
52 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
53
54 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
55 (*setcc_si_1_and): Ditto.
56 (*setcc_si_1_movzbl): Ditto.
57 (*setcc_<mode>_2): Ditto.
58 (*setcc_qi): Rename from *setcc_1.
59 (*setcc_qi_slp): Rename from *setcc_2.
60
61 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
62 (*zero_extendqisi2_movzbw_and splitter): Ditto.
63
64 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
65 "if" condition, there is already assert with reload_completed present.
66
67 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
68
69 * plugin.c (try_init_one_plugin): Improve constness of variable err.
70
71 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
72
73 * doc/install.texi (Final install): Refer to
74 http://gcc.gnu.org/bugs/ for bug reporting.
75
76 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
77
78 * configure.ac: Add test for dci instruction.
79 * configure: Regenerate.
80 * config.in: Likewise.
81 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
82 * doc/invoke.texi: Add cpu_type 476 and 476fp.
83 (-mmulhw): Add 476 to description.
84 (-mdlmzb): Likewise.
85 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
86 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
87 (processor_target_table): Add 476 and 476fp entries.
88 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
89 (rs6000_issue_rate): Add CPU_PPC476.
90 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
91 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
92 (processor_type): Add PROCESSOR_PPC476.
93 (EXTRA_SPECS): Add asm_cpu_476 string.
94 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
95 (define_attr "cpu"): Add ppc476.
96 Include 476.md.
97 Update comments for 476.
98 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
99 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
100 Update copyright year.
101 * config/rs6000/476.md: New file.
102 * config/rs6000/40x.md: Add description for "isel" attribute.
103 Update copyright year.
104 * config/rs6000/440.md: Likewise.
105 * config/rs6000/603.md: Likewise.
106 * config/rs6000/6xx.md: Likewise.
107 * config/rs6000/7450.md: Likewise.
108 * config/rs6000/7xx.md: Likewise.
109 * config/rs6000/8540.md: Likewise.
110 * config/rs6000/cell.md: Likewise.
111 * config/rs6000/e300c2c3.md: Likewise.
112 * config/rs6000/e500mc.md: Likewise.
113 * config/rs6000/mpc.md: Likewise.
114 * config/rs6000/power4.md: Likewise.
115 * config/rs6000/power5.md: Likewise.
116 * config/rs6000/power6.md: Likewise.
117 * config/rs6000/power7.md: Likewise.
118 * config/rs6000/rios1.md: Likewise.
119 * config/rs6000/rios2.md: Likewise.
120 * config/rs6000/rs64.md: Likewise.
121
122 2009-10-10 Richard Guenther <rguenther@suse.de>
123
124 PR tree-optimization/41654
125 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
126 a cond expr before calling gimple_cond_set_condition_from_tree.
127 (ifcombine_iforif): Likewise.
128
129 2009-10-09 Ian Lance Taylor <iant@google.com>
130
131 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
132 * configure: Rebuild.
133
134 2009-10-09 Neil Vachharajani <nvachhar@google.com>
135
136 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
137 deprecated.
138
139 2009-10-09 Richard Guenther <rguenther@suse.de>
140
141 PR lto/41638
142 * target-def.h (TARGET_BUILTIN_DECL): Define.
143 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
144 * target.h (struct gcc_target): Add builtin_decl target hook.
145 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
146 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
147 target builtins.
148 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
149 not gcc_unreachable.
150 (lto_output_builtin_tree): Sorry if the target does not support
151 streaming target builtins.
152 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
153 (rs6000_builtin_decl): New function.
154 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
155 (ix86_builtin_decl): New function.
156
157 2009-10-09 Jakub Jelinek <jakub@redhat.com>
158
159 PR preprocessor/41445
160 * c-ppoutput.c (do_line_change): New function.
161 (cb_line_change): Use it.
162 (scan_translation_unit): Call do_line_change if
163 avoid_paste or PREV_WHITE and token location is on a different line
164 than print.src_line.
165
166 PR debug/40521
167 * dwarf2out.c (dwarf2out_init): Test whether
168 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
169 it is defined.
170
171 PR rtl-optimization/41646
172 * calls.c (expand_call): For BLKmode types returned in registers
173 avoid likely spilled hard regs in copy_blkmode_from_reg generated
174 insns.
175
176 2009-10-09 Richard Guenther <rguenther@suse.de>
177
178 PR tree-optimization/41634
179 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
180 we remove the correct elements.
181 (optimize_stmt): Make sure to update stmt operands before
182 optimizing redundancies.
183
184 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
185
186 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
187
188 2009-10-09 Richard Guenther <rguenther@suse.de>
189
190 PR driver/41637
191 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
192 globals.
193 (lto_wrapper_exit): New function.
194 (fatal): Use it.
195 (fatal_perror): Likewise.
196 (fork_execute): Use global args_name, do not free it.
197 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
198 * lto-streamer.h: Remove duplicate prototypes.
199
200 2009-10-09 Richard Guenther <rguenther@suse.de>
201
202 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
203 before calling stmt_can_throw_external.
204
205 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
206
207 PR tree-optimization/40071
208 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
209 pointer if the original data reference doesn't conflict with the
210 created vector data reference. Fix long line.
211
212 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
213
214 * config/i386/i386.md (any_div): New code iterator.
215 (u): Handle div and udiv.
216 (sgnprefix): Ditto.
217 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
218 code iterator.
219 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
220 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
221 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
222 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
223
224 2009-10-08 Joseph Myers <joseph@codesourcery.com>
225
226 * gcc.c (main): Remove trailing "." from diagnostics.
227
228 2009-10-08 Cary Coutant <ccoutant@google.com>
229
230 Add support for debugging with ICF (Identical Code Folding).
231 * calls.c (debug.h): New #include.
232 (emit_call_1): Call virtual_call_token debug hook.
233 * common.opt (-fenable-icf-debug): New option.
234 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
235 locations in the source).
236 (poc_label_num): New variable.
237 (dcall_entry, vcall_entry): New typedefs.
238 (dcall_table, vcall_table): New variables.
239 (struct vcall_insn): New type.
240 (vcall_insn_table): New variable.
241 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
242 (size_of_dcall_table): New function.
243 (output_dcall_table): New function.
244 (size_of_vcall_table): New function.
245 (output_vcall_table): New function.
246 (dwarf2out_direct_call): New function.
247 (vcall_insn_table_hash): New function.
248 (vcall_insn_table_eq): New function.
249 (dwarf2out_virtual_call_token): New function.
250 (dwarf2out_virtual_call): New function.
251 (dwarf2out_init): Allocate new tables and sections.
252 (prune_unused_types): Mark DIEs referenced from direct call table.
253 (dwarf2out_finish): Output direct and virtual call tables.
254 * final.c (final_scan_insn): Call direct_call and virtual_call
255 debug hooks.
256 * debug.h (struct gcc_debug_hooks): Add direct_call,
257 virtual_call_token, virtual_call hooks.
258 (debug_nothing_uid): New function.
259 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
260 (debug_nothing_uid): New function.
261 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
262 (xcoff_debug_hooks): Likewise.
263 * sdbout.c (sdb_debug_hooks): Likewise.
264 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
265 * doc/invoke.texi (-fenable-icf-debug): New option.
266
267 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
268
269 PR debug/41353
270 * regmove.c (regmove_backward_pass): Replace src with dst in the
271 debug insn, and check for dst before rather than after.
272
273 2009-10-08 Janis Johnson <janis187@us.ibm.com>
274
275 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
276 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
277
278 2009-10-08 Jan Hubicka <jh@suse.cz>
279
280 PR middle-end/41626
281 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
282 do not mark cgraph nodes as needed.
283 (record_references_in_initializer): Add new only_vars parameter.
284 * cgraph.h (record_references_in_initializer): New parameter.
285 * varasm.c (assemble_variable): Update call.
286 * varpool.c (varpool_analyze_pending_decls): Always look for
287 referenced vars.
288
289 2009-10-08 Anatoly Sokolov <aesok@post.ru>
290
291 * config/avr/avr.c (last_insn_address) Remove variable.
292 (expand_prologue): Don't initialise last_insn_address variable.
293 (final_prescan_insn): Don't output insn size.
294 * config/avr/avr.opt (msize): Remove switch.
295 * doc/invoke.texi (AVR Options): Remove documentation of -msize
296 switch.
297
298 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
299
300 * combine.c (label_tick_ebb_start): Fix comment.
301 (combine_instructions): Set label_tick and label_tick_ebb_start before
302 calling setup_incoming_promotions. Start them from 1. Increment
303 label_tick instead of deriving it from the BB index. Rather than
304 comparing ticks use the block from the previous iteration to decide
305 whether to start a new EBB. Remove empty lines before function.
306
307 2009-10-08 Michael Matz <matz@suse.de>
308
309 PR middle-end/41573
310 * builtins.c (fold_builtin_isascii): Use fold_build2.
311 (fold_builtin_isdigit): Ditto.
312 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
313 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
314 remove_useless_stmts_cond, remove_useless_stmts_tf,
315 remove_useless_stmts_tc, remove_useless_stmts_bind,
316 remove_useless_stmts_goto, remove_useless_stmts_label,
317 remove_useless_stmts_1, remove_useless_stmts,
318 pass_remove_useless_stmts): Remove.
319 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
320 * passes.c (init_optimization_passes): Don't add
321 pass_remove_useless_stmts.
322 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
323 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
324 static constants.
325 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
326 for static constants.
327 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
328 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
329
330 2009-10-08 Richard Guenther <rguenther@suse.de>
331
332 * gimple.c (free_gimple_type_tables): New function.
333 * gimple.h (free_gimple_type_tables): Declare.
334
335 2009-10-07 Mark Heffernan <meheff@google.com>
336
337 * ipa-prop.c (ipa_print_node_params) Only print
338 names of named arguments.
339
340 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
341
342 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
343 being statically linked.
344
345 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
346
347 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
348
349 2009-10-08 Jan Hubicka <jh@suse.cz>
350
351 PR bootstrap/41620
352 * ipa.c (cgraph_externally_visible_p,
353 function_and_variable_visibility,
354 whole_program_function_and_variable_visibility): Skip non-finalized
355 nodes.
356
357 2009-10-08 Nick Clifton <nickc@redhat.com>
358
359 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
360 CONST_DOUBLEs.
361
362 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
363
364 PR bootstrap/37739
365 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
366
367 2009-10-07 Joseph Myers <joseph@codesourcery.com>
368
369 PR c/41182
370 * c-common.c (c_fully_fold_internal): Strip nops from the result
371 of recursive calls to c_fully_fold_internal.
372 (c_wrap_maybe_const): New.
373 (c_save_expr): Use c_wrap_maybe_const.
374 * c-common.h (c_wrap_maybe_const): Declare.
375 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
376 build_binary_op): Use c_wrap_maybe_const.
377
378 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
379
380 * real.c: Fix comment to reflect actual exponent size.
381
382 2009-10-08 Ben Elliston <bje@au.ibm.com>
383
384 * config/rs6000/a2.md: Add FSF comment header.
385
386 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
387
388 * config/i386/i386.md (any_extend): New code iterator.
389 (u, s): New code attributes.
390 (sgnprefix): Ditto.
391 (DWIH): Rewrite as code iterator for SI and DI modes.
392 (DWI): Rewrite as mode attribute.
393 (dwi): New mode attribute.
394 (di): Depend on SI mode and DI mode.
395 (doubleint_general_operand): Remove mode attribute.
396
397 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
398 DWIH mode iterator.
399
400 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
401 (*sub<mode>3_doubleword): Ditto.
402
403 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
404 using SWIM248 mode iterator.
405 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
406 using SWI48 mode iterator.
407 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
408 patterns using DWIH mode iterator and any_extend code iterator.
409 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
410 using any_extend code iterator.
411 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
412 patterns using DWIH mode iterator and any_extend code iterator.
413 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
414 using any_extend code iterator.
415 (<s>mul<mode>3_highpart): Macroize expander from
416 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
417 and any_extend code iterator.
418 (*<s>muldi3_highpart_1): Macroize insn from
419 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
420 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
421 patterns using any_extend code iterator.
422 (*<s>mulsi3_highpart_zext): Macroize insn from
423 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
424
425 2009-10-07 Jakub Jelinek <jakub@redhat.com>
426
427 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
428 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
429 refering to a DIE with DW_AT_const_value.
430
431 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
432
433 PR middle-end/22072
434 * ira-lives.c (check_and_make_def_conflict): Process all operands.
435
436 2009-10-06 Jan Hubicka <jh@suse.cz>
437
438 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
439 correctly.
440
441 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
442
443 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
444 *lea_2_rex64): Move before *add<mode>_1 pattern.
445
446 2009-10-07 Jan Hubicka <jh@suse.cz>
447
448 * collect2.c (main): Add -fno-whole-program.
449 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
450
451 2009-10-07 Jan Hubicka <jh@suse.cz>
452
453 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
454 has no address taken.
455 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
456 never needed.
457 (cgraph_clone_node): Clear externally_visible flag for clones.
458 * cgraph.h (cgraph_only_called_directly_p,
459 cgraph_can_remove_if_no_direct_calls_p): New predicates.
460 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
461 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
462 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
463 ipcp_insert_stage): Likwise.
464 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
465 externally_visible flag.
466 (verify_cgraph_node): Verify that inline clones look right.
467 (process_function_and_variable_attributes): Do not set
468 externally_visible flags.
469 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
470 been already run.
471 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
472 boundaries.
473 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
474 clear externally_visible when turning into inline clones
475 (cgraph_mark_inline_edge): Use new predicates.
476 (cgraph_estimate_growth): Likewise.
477 (cgraph_decide_inlining): Likewise.
478 * ipa.c (cgraph_postorder): Likewise.
479 (cgraph_remove_unreachable_nodes): Likewise; sanity check
480 that inline clones are not needed.
481 (cgraph_externally_visible_p): New predicate.
482 (function_and_variable_visibility): Add whole_program parameter;
483 always set externally_visible flag; handle COMDAT function
484 privatization.
485 (local_function_and_variable_visibility): New function.
486 (gate_whole_program_function_and_variable_visibility): New function.
487 (whole_program_function_and_variable_visibility): New function.
488 (pass_ipa_whole_program_visibility): New function.
489 * passes.c (init_optimization_passes): Add whole program visibility
490 pass.
491 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
492 not care about needed/reachable flags.
493 * varpool.c: Include flags.h
494 (decide_is_variable_needed): When doing LTO assume whole-program mode.
495 (varpool_finalize_decl): When we are in LTO read-back, all variables
496 are analyzed.
497 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
498
499 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
500
501 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
502 add MASK_HARD_DFP.
503
504 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
505
506 * config.gcc: Don't include the makefile fragments intended for
507 libgcc.
508 * config/s390/fixdfdi.h: File removed.
509 * config/s390/libgcc-glibc.ver: File removed.
510 * config/s390/s390.h: Remove the fixdfdi.h hack.
511 * config/s390/t-crtstuff: File moved to libgcc dir.
512 * config/s390/t-linux: Likewise.
513 * config/s390/t-tpf: libgcc specific parts removed.
514 * config/s390/t-linux64: Likewise.
515
516 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
517
518 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
519 (lto-compress.o): Likewise.
520
521 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
522
523 PR target/41512
524 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
525 dllexport to class members here.
526 (i386_pe_determine_dllimport_p): Only check static class data for
527 definition.
528 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
529 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
530 functions for vague linkage.
531 (i386_pe_type_dllexport_p): Fix formatting.
532 (maybe_add_dllexport) New function.
533 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
534 to class members.
535
536 2009-10-07 Ben Elliston <bje@au.ibm.com>
537
538 * config/rs6000/a2.md: Remove duplicated lines.
539
540 2009-10-07 Ben Elliston <bje@au.ibm.com>
541
542 * config.gcc (powerpc*-*-*): Handle a2.
543 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
544 * config/rs6000/a2.md: New file.
545 * config/rs6000/rs6000.opt (mno-update): New.
546 (mupdate): Return to using a mask, not a var.
547 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
548 (enum processor_type): Add PROCESSOR_PPCA2.
549 * config/rs6000/rs6000.c (ppca2_cost): New costs.
550 (rs6000_override_options): Add "a2" to processor_target_table.
551 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
552 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
553
554 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
555
556 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
557 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
558 reference to nonexistent gen_truncxfxf2 function.
559
560 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
561
562 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
563 (DWIH, g, di, doubleint_general_operand): New mode attributes.
564 (general_operand): Handle TI mode.
565 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
566 using SDWIM mode iterator.
567 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
568 pattern from *add{di,ti}3_1 patterns and corresponding splitters
569 using DWI mode iterator.
570 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
571 patterns using SWI mode iterator.
572 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
573 using SWI48 mode iterator.
574 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
575 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
576 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
577 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
578 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
579 using SDWIM mode iterator.
580 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
581 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
582 using DWI mode iterator.
583 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
584 patterns using SWI mode iterator.
585 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
586 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
587 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
588 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
589 patterns using plusminus code iterator.
590 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
591 sub<mode>3 patterns using plusminus code iterator.
592 * config/i386/i386.c (override_options): Update the call to
593 gen_subdi_carry_rex64 for renamed function.
594 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
595 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
596 calls to instruction expanders.
597
598 2009-10-06 Martin Jambor <mjambor@suse.cz>
599
600 PR bootstrap/41395
601 * opts.c (decode_options): Run IPA-SRA at -O2.
602
603 2009-10-06 Richard Guenther <rguenther@suse.de>
604
605 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
606
607 2009-10-06 Tobias Burnus <burnus@net-b.de>
608
609 PR lto/41591
610 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
611 -flto and -fwhole-program flags can be combined.
612
613 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
614
615 PR driver/41217
616 * gcc.c (process_command): Check that -o argument was specified.
617
618 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
619
620 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
621
622 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
623
624 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
625 * doc/invoke.texi (Warning Options): Annotate allowed languages
626 for -Wunsuffixed-float-constants.
627
628 2009-10-05 Jakub Jelinek <jakub@redhat.com>
629
630 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
631 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
632 same name and isn't the main variant.
633
634 PR debug/41558
635 * dwarf2out.c (loc_by_reference): Removed.
636 (dw_loc_list_1): New function.
637 (dw_loc_list): Remove toplev argument, add want_address argument.
638 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
639 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
640 want_address == 2 to dw_loc_list. For successful dw_loc_list
641 set have_address to 1 only if want_address is not 0.
642
643 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
644
645 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
646 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
647 a code block followed by two pointers.
648 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
649 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
650 (MIPS_MOVE): Likewise.
651 (MIPS_LUI): Likewise.
652 (MIPS_JR): Likewise.
653 (MIPS_BAL): Likewise.
654 (MIPS_NOP): Likewise.
655 (mips_asm_trampoline_template): Delete.
656 (mips_trampoline_code_size): New function.
657 (mips_trampoline_init): Add shorter sequences for all cases
658 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
659 Calculate the opcodes directly, rather than copying from a template.
660 Only flush the code part of the trampoline.
661 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
662
663 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
664
665 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
666 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
667 (INCOMING_RETURN_ADDR_RTX): Likewise.
668 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
669 with AT_REGNUM.
670 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
671 with RETURN_ADDR_REGNUM.
672 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
673 * config/mips/mips.c (mips16_build_call_stub): Replace
674 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
675 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
676 (mips_print_operand_punctuation): Likewise.
677 (mips_frame_set): Likewise.
678 (mips16e_output_save_restore): Likewise.
679 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
680 (mips_save_reg_p): Likewise.
681 (mips_return_addr): Likewise.
682 (mips_set_return_address): Likewise.
683 (mips_direct_save_slot_move_p): Likewise.
684 (mips_output_function_prologue): Likewise.
685 (mips_restore_reg): Likewise.
686 (mips_expand_epilogue): Likewise.
687 (mips_epilogue_uses): Likewise.
688 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
689 (*mov<mode>_ra): Use it instead of a hard-coded 31.
690 (clear_hazard_<mode>): Likewise.
691 (call_internal): Likewise.
692 (call_internal_direct): Likewise.
693 (call_direct_split): Likewise.
694 (call_value_internal): Likewise.
695 (call_value_split): Likewise.
696 (call_value_internal_direct): Likewise.
697 (call_value_direct_split): Likewise.
698 (call_value_multiple_internal): Likewise.
699 (call_value_multiple_split): Likewise.
700
701 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
702 Jakub Jelinek <jakub@redhat.com>
703
704 PR rtl-optimization/41511
705 * combine.c (record_value_for_reg): Pass explicit values as argument
706 to get_last_value_validate.
707 (get_last_value_validate): Document INSN parameter.
708 For non-readonly MEMs, assume they might have been modified if INSN
709 was in another basic block.
710 (get_last_value): Minor reformatting.
711
712 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
713
714 PR tree-opt/40992
715 * final.c (asm_str_count): Split out from asm_insn_count.
716 * rtl.h (asm_str_count): New prototype.
717 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
718 asm_str_count.
719
720 2009-10-05 Sriraman Tallam <tmsriram@google.com>
721
722 * doc/plugins.texi: Change plugin_pass to register_pass_info.
723
724 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
725 Rafael Espindola <espindola@google.com>
726
727 * gengtype.c (write_types): Moved call to write_func_for_structure
728 into seperate loops.
729
730 2009-10-05 Richard Guenther <rguenther@suse.de>
731
732 PR lto/41281
733 * lto-cgraph.c (output_cgraph): Output toplevel asms.
734 (input_cgraph_1): Input toplevel asms.
735
736 2009-10-05 Richard Guenther <rguenther@suse.de>
737
738 PR lto/40902
739 * lto-symtab.c (lto_compatible_attributes_p): Remove.
740 (external_aggregate_decl_p): Likewise.
741 (lto_symtab_compatible): Re-structure. Remove dead code.
742 For variables ignore toplevel qualifiers when comparing types.
743 Issue warnings, not errors for mismatched user-alignment.
744
745 2009-10-05 Richard Guenther <rguenther@suse.de>
746
747 PR lto/41552
748 PR lto/41487
749 * lto-symtab.c (struct lto_symtab_base_def): Remove.
750 (struct lto_symtab_identifier_def): Likewise.
751 (struct lto_symtab_decl_def): Likewise.
752 (struct lto_symtab_entry_def): New.
753 (lto_symtab_identifier_t): Rename to ...
754 (lto_symtab_entry_t): ... this.
755 (lto_symtab_decls): Remove.
756 (lto_symtab_base_hash): Rename to ...
757 (lto_symtab_entry_hash): ... this.
758 (lto_symtab_base_eq): Rename to ...
759 (lto_symtab_entry_eq): ... this.
760 (lto_symtab_base_marked_p): Rename to ...
761 (lto_symtab_entry_marked_p): ... this.
762 (lto_symtab_identifier_marked_p): Remove.
763 (lto_symtab_decl_marked_p): Likewise.
764 (lto_symtab_maybe_init_hash_tables): Rename to ...
765 (lto_symtab_maybe_init_hash_table): ... this.
766 (lto_symtab_set_resolution_and_file_data): Remove.
767 (lto_symtab_register_decl): New function.
768 (lto_symtab_get_identifier): Remove.
769 (lto_symtab_get): New function.
770 (lto_symtab_get_resolution): Adjust.
771 (lto_symtab_get_identifier_decl): Remove.
772 (lto_symtab_set_identifier_decl): Likewise.
773 (lto_symtab_merge_decl): Rename to ...
774 (lto_symtab_merge): ... this. Rewrite.
775 (lto_symtab_merge_var): Remove.
776 (lto_symtab_merge_fn): Likewise.
777 (lto_symtab_prevailing_decl): Adjust.
778 (lto_cgraph_replace_node): New function.
779 (lto_symtab_merge_decls_2): Likewise.
780 (lto_symtab_merge_decls_1): Likewise.
781 (lto_symtab_fixup_var_decls): Likewise.
782 (lto_symtab_resolve_symbols): Likewise.
783 (lto_symtab_merge_decls): Likewise.
784 (lto_symtab_prevailing_decl): Adjust.
785 (lto_symtab_get_symtab_def): Remove.
786 (lto_symtab_get_file_data): Likewise.
787 (lto_symtab_clear_resolution): Adjust.
788 (lto_symtab_clear_resolution): Likewise.
789 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
790 (input_cgraph_1): Likewise.
791 * lto-streamer-in.c (get_resolution): Do not provide fake
792 symbol resolutions here.
793 (deferred_global_decls): Remove.
794 (lto_register_deferred_decls_in_symtab): Likewise.
795 (lto_register_var_decl_in_symtab): Change signature, register
796 variable via lto_symtab_register_decl.
797 (lto_register_function_decl_in_symtab): Likewise.
798 (lto_read_tree): Adjust.
799 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
800 (lto_symtab_merge_var): Likewise.
801 (lto_symtab_merge_fn): Likewise.
802 (lto_symtab_register_decl): Declare.
803 (lto_symtab_merge_decls): Likewise.
804
805 2009-10-05 Richard Guenther <rguenther@suse.de>
806
807 PR tree-optimization/23821
808 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
809 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
810 simple IV increments.
811
812 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
813
814 * config/arm/arm.c (arm_override_options): Really initialize
815 flag_dwarf2_cfi_asm to 0.
816
817 2009-10-05 Doug Kwan <dougkwan@google.com>
818
819 PR rtl-optimization/41574
820 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
821 floating point and we are not doing unsafe math optimizations.
822
823 2009-10-03 Simon Baldwin <simonb@google.com>
824 Cary Coutant <ccoutant@google.com>
825 Rafael Espindola <espindola@google.com>
826 Richard Guenther <rguenther@suse.de>
827 Jan Hubicka <jh@suse.cz>
828 Doug Kwan <dougkwan@google.com>
829 H.J. Lu <hongjiu.lu@intel.com>
830 Bill Maddox <maddox@google.com>
831 Ryan Mansfield <rmansfield@qnx.com>
832 Diego Novillo <dnovillo@google.com>
833 Ollie Wild <aaw@google.com>
834 Kenneth Zadeck <zadeck@naturalbridge.com>
835
836 * lto-cgraph.c: New file.
837 * lto-compress.c: New file.
838 * lto-compress.h: New file.
839 * lto-opts.c: New file.
840 * lto-section-in.c: New file.
841 * lto-section-out.c: New file.
842 * lto-streamer-in.c: New file.
843 * lto-streamer-out.c: New file.
844 * lto-streamer.c: New file.
845 * lto-streamer.h: New file.
846 * lto-symtab.c: New file.
847 * lto-wpa-fixup.c: New file.
848 * lto-wrapper.c: New file.
849
850 2009-10-03 Simon Baldwin <baldwin@google.com>
851 Ben Elliston <bje@au.ibm.com>
852 Rafael Espindola <espindola@google.com>
853 Nathan Froyd <froydnj@codesourcery.com>
854 Jan Hubicka <jh@suse.cz>
855 Doug Kwan <dougkwan@google.com>
856 Diego Novillo <dnovillo@google.com>
857 Kenneth Zadeck <zadeck@naturalbridge.com>
858
859 * Makefile.in (enable_lto): New.
860 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
861 (LINKER_PLUGIN_API_H): Define.
862 (LTO_SYMTAB_H): Define.
863 (LTO_STREAMER_H): Define.
864 (TREE_VECTORIZER_H): Define.
865 (INCLUDES): Add LIBELFINC.
866 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
867 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
868 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
869 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
870 (native): Add lto-wrapper$(exeext)
871 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
872 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
873 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
874 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
875 (varasm.o): Add dependency on tree-iterator.h.
876 (cgraph.o): Add dependency on cif-code.def.
877 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
878 (ipa-pure-const.o): Likewise.
879 (GTFILES): Add lto-symtab.c.
880 (install-lto-wrapper): New.
881 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
882 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
883 * config.in: Regenerate.
884
885 2009-10-03 Rafael Espindola <espindola@google.com>
886 Diego Novillo <dnovillo@google.com>
887
888 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
889 ipa_write_summaries.
890 Call execute_ipa_summary_passes for all_regular_ipa_passes and
891 all_lto_gen_passes.
892 (cgraph_optimize): Make extern.
893
894 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
895 Kenneth Zadeck <zadeck@naturalbridge.com>
896
897 * toplev.c (in_lto_p): Declare.
898 * collect2.c (scan_prog_file): Read all the output when reading
899 information for LTO.
900 (enum lto_mode_d): Declare.
901
902 2009-10-03 Richard Guenther <rguenther@suse.de>
903 Diego Novillo <dnovillo@google.com>
904
905 * gimple.c: Include target.h and alias.h.
906 (gimple_types): Declare.
907 (type_hash_cache): Declare.
908 (gimple_alloc_stat): Make extern.
909 (gimple_build_eh_must_not_throw): Call
910 gimple_eh_must_not_throw_set_fndecl.
911 (struct type_pair_d): Declare.
912 (type_pair_t): Declare.
913 (type_pair_hash): New.
914 (type_pair_eq): New.
915 (lookup_type_pair): New.
916 (gimple_force_type_merge): New.
917 (compare_type_names_p): New.
918 (compare_field_offset): New.
919 (gimple_types_compatible_p): New.
920 (struct sccs): Declare.
921 (next_dfs_num): Declare.
922 (iterative_hash_gimple_type): New.
923 (visit): New.
924 (iterative_hash_type_name): New.
925 (iterative_hash_gimple_type): New.
926 (gimple_type_hash): New.
927 (gimple_type_eq): New.
928 (gimple_register_type): New.
929 (print_gimple_types_stats): New.
930 (gimple_signed_or_unsigned_type): New.
931 (gimple_unsigned_type): New.
932 (gimple_signed_type): New.
933 (gimple_get_alias_set): New.
934 (gimple_decl_printable_name): Do not use DMGL_TYPES.
935 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
936 (gimple_force_type_merge): Declare.
937 (gimple_types_compatible_p): Declare.
938 (gimple_register_type): Declare.
939 (print_gimple_types_stats): Declare.
940 (gimple_unsigned_type): Declare.
941 (gimple_signed_type): Declare.
942 (gimple_get_alias_set): Declare.
943 (gimple_eh_must_not_throw_set_fndecl): New.
944
945 2009-10-03 Jan Hubicka <jh@suse.cz>
946 Kenneth Zadeck <zadeck@naturalbridge.com>
947
948 * ipa-pure-const.c: Include lto-streamer.h.
949 (register_hooks): Factor out of ...
950 (generate_summary): ... here.
951 (pure_const_write_summary): New.
952 (pure_const_read_summary): New.
953 (pass_ipa_pure_const): Add pure_const_write_summary and
954 pure_const_read_summary.
955 * ipa-reference.c: Include lto-streamer.h.
956 (add_new_function): New.
957 (remove_node_data): New.
958 (duplicate_node_data): New.
959 (ipa_init): Guard against multiple calls.
960 Move hook setup from analyze_function.
961 (write_node_summary_p): New.
962 (ipa_reference_write_summary): New.
963 (ipa_reference_read_summary): New.
964 (pass_ipa_reference): Add ipa_reference_write_summary and
965 ipa_reference_read_summary.
966 * cgraph.h (cgraph_local_info): Add field lto_file_data.
967 (struct cgraph_edge): Add fields lto_stmt_uid and
968 call_stmt_cannot_inline_p.
969 (cgraph_optimize): Declare.
970 (cgraph_decide_is_function_needed): Declare.
971 (reset_inline_failed): Declare.
972 (enum LTO_cgraph_tags): Declare.
973 (LTO_cgraph_tag_names): Declare.
974 (LCC_NOT_FOUND): Define.
975
976 2009-10-03 Doug Kwan <dougkwan@google.com>
977 Rafael Espindola <espindola@google.com>
978 Jan Hubicka <jh@suse.cz>
979 Diego Novillo <dnovillo@google.com>
980 Kenneth Zadeck <zadeck@naturalbridge.com>
981
982 * passes.c (all_regular_ipa_passes): New.
983 (all_ipa_passes): Rename to all_small_ipa_passes.
984 (init_optimization_passes): Init all_regular_ipa_passes.
985 * tree-pass.h (all_regular_ipa_passes): New.
986 (all_ipa_passes): Rename to all_small_ipa_passes.
987 * passes.c (all_lto_gen_passes): New.
988 (init_optimization_passes): Initialize all_lto_gen_passes.
989 (execute_ipa_summary_passes): Make non-static.
990 (ipa_write_summaries_1): New.
991 (ipa_write_summaries_2): New.
992 (ipa_write_summaries): New.
993 (ipa_write_summaries_of_cgraph_node_set): New.
994 (ipa_read_summaries_1): New.
995 (ipa_read_summaries): New.
996 (execute_ipa_pass_list): Call cgraph_process_new_functions.
997 (execute_regular_ipa_pass_list): Remove.
998 (init_optimization_passes): Schedule
999 pass_rebuild_cgraph_edges and pass_early_inline outside
1000 of pass_all_early_optimizations. Document reason.
1001 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1002 pass_ipa_lto_finish_out): New pass.
1003 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1004 (execute_all_ipa_transforms): New.
1005 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1006 (dump_properties, debug_properties): New.
1007 * tree-optimize.c (gate_all_early_local_passes): Return
1008 false if we are in lto1.
1009 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1010 * tree-pass.h (execute_all_ipa_transforms): Declare.
1011 (pass_ipa_function_and_variable_visibility): Declare.
1012 (pass_ipa_early_inline): Declare.
1013 (pass_ipa_lto_gimple_out): Declare.
1014 (pass_ipa_lto_wpa_fixup): Declare.
1015 (pass_ipa_lto_finish_out): Declare.
1016 (all_small_ipa_passes, all_regular_ipa_passes,
1017 all_lto_gen_passes): Declare.
1018 (execute_ipa_summary_passes): Declare.
1019 (execute_all_ipa_transforms): Declare.
1020 (ipa_write_summaries): Declare
1021 (ipa_write_summaries_of_cgraph_node_set): Declare.
1022 (ipa_read_summaries): Declare.
1023
1024 2009-10-03 Doug Kwan <dougkwan@google.com>
1025 Ollie Wild <aaw@google.com>
1026
1027 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1028
1029 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1030 (lto_mode): New variable.
1031 (maybe_run_lto_and_relink): Handle the -fwpa option.
1032 (main): Handle the -fwpa option.
1033 (maybe_unlink_list): New function.
1034 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1035 * common.opt (flto): New flag.
1036 * toplev.c (flag_generate_lto): Declare.
1037
1038 2009-10-03 Simon Baldwin <simonb@google.com>
1039
1040 * common.opt (flto-compression-level): New flag.
1041
1042 * opts.c: Include lto-opts.h.
1043 (handle_option): Call lto_register_user_option for each
1044 valid option handled.
1045 (decode_options): Clear registered options before the options
1046 handling loop.
1047
1048 2009-10-03 Cary Coutant <ccoutant@google.com>
1049
1050 * collect2.c (is_elf): New function.
1051 (scan_prog_file): Require LTO object to be in ELF format.
1052
1053 2009-10-03 Rafael Espindola <espindola@google.com>
1054
1055 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1056 libgcc to the linker.
1057
1058 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1059
1060 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1061 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1062 all callers.
1063 * collect2.h (collect_execute): Add flags argument.
1064 * tlink.c (tlink_execute): Update call to collect_execute.
1065 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1066 (use_linker_plugin): New.
1067 (use_linker_plugin_spec_function): New.
1068 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1069 (linker_plugin_file_spec): New.
1070 (lto_wrapper_spec): New.
1071 (lto_gcc_spec): New.
1072 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1073 (static_spec_functions): Add use-linker-plugin.
1074 (process_command): Handle -use-linker-plugin.
1075 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1076 linker_plugin_file_spec and lto_gcc_spec.
1077 (use_linker_plugin_spec_function): New.
1078
1079 2009-10-03 Richard Guenther <rguenther@suse.de>
1080
1081 PR lto/41547
1082 PR lto/41548
1083 * tree.h (is_lang_specific): Include LANG_TYPE.
1084 * tree.c (find_decls_types_r): Manually add interesting parts
1085 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1086
1087 * gimple.c (type_pair_hash): Make symmetric.
1088 (type_pair_eq): Likewise.
1089 (lookup_type_pair): Increase initial hashtable size.
1090 (gimple_force_type_merge): Rely on type-pair symmetry.
1091 (visit): Remove excessive checking code.
1092 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1093 (gimple_register_type): Remove getenv calls, shrink initial
1094 hashtable size.
1095
1096 PR middle-end/41502
1097 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1098 inline functions if not generating lto output.
1099
1100 PR lto/41379
1101 * toplev.c (finalize): In WPA mode remove the asm file.
1102
1103 2009-10-03 Doug Kwan <dougkwan@google.com>
1104
1105 * ipa-inline.c (cgraph_mark_inline): Check
1106 edge->call_stmt_cannot_inline_p instead of calling
1107 gimple_call_cannot_inline_p.
1108 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1109 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1110 (inline_generate_summary): Do nothing in LTRANS.
1111 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1112 exists before calling gimple_call_cannot_inline_p.
1113 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1114 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1115 Update new_edge->lto_stmt_uid.
1116 * cgraphbuild.c (reset_inline_failed): New.
1117
1118 * common.opt (fwpa): New flag.
1119 (fltrans): New option.
1120 * gcc.c (gcc_lto_option_t): New type.
1121 (current_lto_option): New variable.
1122 (lto_single_spec_function): Remove and is replaced by ..
1123 (lto_option_spec_function): New function.
1124 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1125 passing the -flto flag.
1126 (cc1_options): Separate non-LTO related parts into ..
1127 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1128 (lto1_options): New spec for lto FE.
1129 (link_lto_options): New spec for handling LTO flags in linker.
1130 (invoke_lto_single): Re-format to fit in 80 column. Replace
1131 lto-single with lto-option.
1132 (static_specs): Add cc1_non_lto_options, lto1_options and
1133 link_lto_options.
1134 (static_spec_function): Replace lto-single with lto-option.
1135 (process_command): Handle -flto, -fwpa and -fltran by setting
1136 current_lto_option and not passing it to subprocess unconditionally.
1137
1138 2009-10-03 Bill Maddox <maddox@google.com>
1139
1140 Add `gcc' driver support for link-time code generation (LTO).
1141
1142 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1143 (lto_flag, lto_objects, lto_o_file): New variables.
1144 (struct lto_object, struct lto_object_list): New structures.
1145 (collect_exit, handler): Remove LTO temporary output file on exit.
1146 (add_lto_object): New function.
1147 (maybe_run_lto_and_relink): New function. Perform link time code
1148 generation and relinking for object files containing LTO information.
1149 (main): Invoke maybe_run_lto_and_relink().
1150 (dump_argv): New function. For debugging, currently disabled.
1151 (scan_prog_file): Add LTO information pass.
1152 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1153 collect2.
1154 * toplev.c (compile_file): Emit assembler directive to create
1155 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1156
1157 2009-10-03 Diego Novillo <dnovillo@google.com>
1158
1159 * c.opt: Add LTO to warn_abi and warn_psabi.
1160
1161 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1162 inline function. Ignore language-specific nodes. Update all users.
1163 (find_decls_types_r): Do not traverse the subtrees of
1164 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1165 * tree.h (is_lang_specific): New.
1166 * langhooks.h (struct lang_hooks_for_decls): Remove
1167 may_need_assembler_name_p. Update all users.
1168
1169 * c-common.c (set_builtin_user_assembler_name): Move ...
1170 * builtins.c (set_builtin_user_assembler_name): ... here.
1171 (is_builtin_name): Add comment
1172 (is_builtin_fn): New.
1173 * except.c (output_ttype): Only call
1174 lookup_type_for_runtime if TYPE is not a runtime type.
1175
1176 * passes.c (register_pass): Call position_pass on
1177 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1178 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1179 (TV_IPA_LTO_DECL_IO): Define.
1180 (TV_IPA_LTO_CGRAPH_IO): Define.
1181 (TV_LTO): Define.
1182 (TV_WHOPR_WPA): Define.
1183 (TV_WHOPR_WPA_IO): Define.
1184 (TV_WHOPR_LTRANS): Define.
1185 (TV_WHOPR_WPA_FIXUP): Define.
1186 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1187 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1188 * tree-flow.h (tree_node_can_be_shared): Declare.
1189 * tree-inline.c (tree_can_inline_p): Check that E has a
1190 statement associated with it.
1191 * tree.c (free_lang_data_in_binf): Factor out of ...
1192 (free_lang_data_in_type): ... here.
1193 Call RECORD_OR_UNION_TYPE_P.
1194 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1195 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1196 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1197 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1198 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1199 (gate_free_lang_data): Return true if flag_generate_lto is set.
1200 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1201 * c-common.h (set_builtin_user_assembler_name): Move ...
1202 * tree.h (set_builtin_user_assembler_name): ... here.
1203
1204 * common.opt (flto-report): New flag.
1205 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1206 * collect2.c (scan_prog_file): Send the error output of
1207 'nm' to HOST_BIT_BUCKET.
1208
1209 2009-10-03 Ollie Wild <aaw@google.com>
1210
1211 * langhooks-def.h (lhd_begin_section): New function declaration.
1212 (lhd_write_section): New function declaration.
1213 (lhd_end_section): New function declaration.
1214 (LANG_HOOKS_BEGIN_SECTION): New macro.
1215 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1216 (LANG_HOOKS_END_SECTION): New macro.
1217 (LANG_HOOKS_LTO): New macro.
1218 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1219 * langhooks.c (output.h): Add include.
1220 (saved_section): New static variable.
1221 (lhd_begin_section): New function.
1222 (lhd_write_section_data): New function.
1223 (lhd_end_section): New function.
1224 * langhooks.h (struct lang_hooks_for_lto): New structure.
1225 (struct lang_hooks): Add member lto.
1226 * Makefile.in (langhooks.o): Add dependency on output.h.
1227
1228 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1229
1230 2009-10-03 Richard Guenther <rguenther@suse.de>
1231
1232 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1233 Handle LTO.
1234
1235 2009-10-03 Simon Baldwin <simonb@google.com>
1236 Richard Guenther <rguenther@suse.de>
1237 Janis Johnson <janis187@us.ibm.com>
1238 Doug Kwan <dougkwan@google.com>
1239 Diego Novillo <dnovillo@google.com>
1240 Ramana Radhakrishnan <ramana.r@gmail.com>
1241 Ollie Wild <aaw@google.com>
1242
1243 * doc/install.texi: Add documentation for libelf and --enable-lto.
1244 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1245 -flto-report, -flto-compression-level and -use-linker-plugin.
1246 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1247 Add section for LTO Testing.
1248
1249 2009-10-02 Cary Coutant <ccoutant@google.com>
1250
1251 Add support for comdat type sections for DWARF v4.
1252 Merge from dwarf4 branch.
1253
1254 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1255 (dw_die_ref): Define vector type.
1256 (enum dw_val_class): Add dw_val_class_data8.
1257 (struct dw_val_struct): Add v.val_data8.
1258 (comdat_type_node_ref): New type.
1259 (struct die_struct): Move die_symbol into a union; add new field
1260 die_type_node. Change all uses.
1261 (comdat_type_node): New type.
1262 (skeleton_chain_node): New type.
1263 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1264 (comdat_type_list): New variable.
1265 (dwarf_tag_name): Add DW_TAG_type_unit.
1266 (dwarf_attr_name): Add DW_AT_signature.
1267 (add_AT_data8): New function.
1268 (replace_child): New function.
1269 (move_all_children): New function.
1270 (print_signature): New function.
1271 (print_die): Print signature information; add dw_val_class_data8.
1272 (attr_checksum): Support dw_val_class_data8.
1273 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1274 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1275 (checksum_sleb128, checksum_uleb128): New functions.
1276 (checksum_die_context): New function.
1277 (loc_checksum_ordered): New function.
1278 (attr_checksum_ordered): New function.
1279 (struct checksum_attributes): New structure.
1280 (collect_checksum_attributes): New function.
1281 (die_checksum_ordered): New function.
1282 (generate_type_signature): New function.
1283 (same_dw_val_p): Add dw_val_class_data8.
1284 (is_symbol_die): Use new is_declaration_die function.
1285 (is_declaration_die): New function.
1286 (should_move_die_to_comdat): New function.
1287 (clone_die): New function.
1288 (clone_tree): New function.
1289 (clone_as_declaration): New function.
1290 (copy_declaration_context): New function.
1291 (generate_skeleton_ancestor_tree): New function.
1292 (generate_skeleton_bottom_up): New function.
1293 (generate_skeleton): New function.
1294 (remove_child_or_replace_with_skeleton): New function.
1295 (break_out_comdat_types): New function.
1296 (struct decl_table_entry): New type.
1297 (htab_decl_hash): New function.
1298 (htab_decl_eq): New function.
1299 (htab_decl_del): New function.
1300 (copy_ancestor_tree): New function.
1301 (copy_decls_walk): New function.
1302 (copy_decls_for_unworthy_types): New function.
1303 (build_abbrev_table): Don't assert on missing die_symbol when doing
1304 comdat type sections.
1305 (size_of_die): Use DW_FORM_sig8 for external references. Add
1306 dw_val_class_data8.
1307 (unmark_dies): Don't assert for unmarked dies when doing comdat
1308 type sections.
1309 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1310 (output_signature): New function.
1311 (output_die): Likewise.
1312 (output_compilation_unit_header): Mark output as DWARF version 3
1313 even if generating DWARF 4.
1314 (output_comdat_type_unit): New function.
1315 (output_line_info): Mark output as DWARF version 3 even if generating
1316 DWARF 4.
1317 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1318 DWARF-4.
1319 (dwarf2out_end_source_file): Likewise.
1320 (prune_unused_types_walk_attribs): Don't follow references into
1321 comdat type sections.
1322 (prune_unused_types_mark): When generating type units, do not mark
1323 children of non-defining declarations of types; do mark children of
1324 type entries.
1325 (prune_unused_types): Process comdat type sections.
1326 (htab_ct_hash): New function.
1327 (htab_ct_eq): New function.
1328 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1329 Add a pointer to the line table from type unit entries so
1330 DW_AT_decl_file has meaning.
1331 * varasm.c (default_elf_asm_named_section): Use identifier name as
1332 comdat key instead of lang hook.
1333
1334 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1335
1336 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1337
1338 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1339
1340 * config/i386/i386.md (SWIM248): New mode iterator.
1341 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1342 divmodhi4 patterns using SWIM248 macro.
1343 (*divmod<mode>4): Macroize insn_and_split pattern from
1344 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1345 and their corresponding splitters usign SWIM248 macro. Split SImode
1346 insn to generate cltd and DImode insn to generate cqto instead of
1347 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1348 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1349 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1350 *divmodsi_noext patterns using SWIM248 macro.
1351 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1352 udivmodhi4 patterns using SWIM248 macro.
1353 (*udivmod<mode>4): Macroize insn_and_split pattern from
1354 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1355 corresponding splitters using SWIM248 macro.
1356 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1357 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1358
1359 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1360
1361 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1362 of zero-sized element is zero-sized regardless of its extent.
1363
1364 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1365
1366 PR debug/40521
1367 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1368 * configure: Regenerated.
1369 * config.in: Regenerated.
1370 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1371 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1372 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1373 not emitting .eh_frame, emit .cfi_sections .debug_frame
1374 directive.
1375
1376 PR debug/41404
1377 PR debug/41353
1378 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1379 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1380 with '\0'.
1381 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1382 vars use DECL_RTL with resetting it back to NULL afterwards.
1383 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1384 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1385 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1386 the attribute type allows it, otherwise use DW_FORM_dataN.
1387 (mem_loc_descriptor): Handle CONST_STRING.
1388 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1389 Handle MEM with CONST_STRING address using add_AT_string.
1390 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1391 CONST_STRING for const arrays initialized with a string literal.
1392 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1393 (dwarf2out_finish): Call resolve_addr.
1394
1395 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1396 Maxim Kuvyrkov <maxim@codesourcery.com>
1397
1398 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1399
1400 2009-10-02 Nick Clifton <nickc@redhat.com>
1401
1402 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1403 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1404
1405 2009-10-01 Jan Hubicka <jh@suse.cz>
1406
1407 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1408 (cgraph_create_virtual_clone): Just pass redirect_callers
1409 around.
1410 * cgraph.h (cgraph_clone_node): Update prototype.
1411 * ipa-pure-const.c (self_recursive_p): New function.
1412 (propagate): Use it.
1413 * ipa-inline.c (cgraph_clone_inlined_nodes,
1414 cgraph_decide_recursive_inlining): Update.
1415
1416 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1417
1418 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1419 instructions for TARGET_OCTEON.
1420
1421 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1422
1423 * config/arm/arm.c (arm_override_options): Turn off
1424 flag_dwarf2_cfi_asm for AAPCS variants.
1425
1426 2009-10-01 Martin Jambor <mjambor@suse.cz>
1427
1428 PR middle-end/12392
1429 * tree-sra.c (convert_callers): Do not call
1430 compute_inline_parameters on one caller more than once.
1431
1432 2009-10-01 Nick Clifton <nickc@redhat.com>
1433
1434 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1435 an empty string if not already defined.
1436
1437 2009-10-01 Martin Jambor <mjambor@suse.cz>
1438
1439 PR bootstrap/41395
1440 * tree-sra.c (is_va_list_type): New function.
1441 (find_var_candidates): Call is_va_list_type.
1442 (find_param_candidates): Check that the type or the type pointed
1443 to are not va_list types.
1444
1445 2009-10-01 Martin Jambor <mjambor@suse.cz>
1446
1447 PR c++/41503
1448 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1449 DECL_ARTIFICIAL (param_decl) is true.
1450
1451 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1452
1453 * tree.h (tree_decl_common::lang_flag_8): New.
1454 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1455 keyword.
1456 * c-common.h (RID_CONSTEXPR): New.
1457
1458 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1459
1460 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1461 Use ref-all pointers.
1462 (alpha_gimplify_va_arg): Ditto.
1463
1464 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR target/41279
1467 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1468 before insn counting loop now that BB_END (bb) is counted. Ensure
1469 the return value isn't zero.
1470
1471 2009-09-30 Nick Clifton <nickc@redhat.com>
1472
1473 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1474 with separate definitions of c_target_objs and cxx_target_objs.
1475 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1476 and symbian-base.o.
1477 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1478 sh_symbian_import_export_class.
1479 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1480 * config/sh/symbian.c: Delete, moving code into...
1481 * config/sh/symbian-base.c: ... here
1482 * config/sh/symbian-c.c: ... and here
1483 * config/sh/symbian-cxx.c: ... and here.
1484
1485 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1486
1487 PR target/22093
1488 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1489 of plus RTX into register.
1490
1491 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1492
1493 * doc/install.texi: Linguistic and markup fixes.
1494 (Configuration) <--disable-cpp>: Remove description.
1495 <--enable-maintainer-mode>: Autotools files are affected, too.
1496 <--with-sysroot>: Improve description.
1497 (Building): Bump required GNU make version.
1498
1499 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1500
1501 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1502 (x86_64-*-*): Ditto.
1503
1504 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1505 intrinisics for FMA4.
1506 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1507 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1508 Add FMA4 check and fma4intrin.h.
1509 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1510 ISA_FLAG for FMA4.
1511 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1512 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1513 constant for FMA4 support.
1514 (UNSPEC_FMA4_FMADDSUB): Ditto.
1515 (UNSPEC_FMA4_FMSUBADD): Ditto.
1516 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1517 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1518 (ix86_expand_fma4_multiple_memory): Ditto.
1519 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1520 (OPTION_MASK_ISA_FMA4_UNSET): New.
1521 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1522 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1523 (ix86_handle_option): Handle -mfma4.
1524 (isa_opts): Handle -mfma4.
1525 (enum pta_flags): Add PTA_FMA4.
1526 (override_options): Add FMA4 support.
1527 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1528 (IX86_BUILTIN_VFMADDSD): Ditto.
1529 (IX86_BUILTIN_VFMADDPS): Ditto.
1530 (IX86_BUILTIN_VFMADDPD): Ditto.
1531 (IX86_BUILTIN_VFMSUBSS): Ditto.
1532 (IX86_BUILTIN_VFMSUBSD): Ditto.
1533 (IX86_BUILTIN_VFMSUBPS): Ditto.
1534 (IX86_BUILTIN_VFMSUBPD): Ditto.
1535 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1536 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1537 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1538 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1539 (IX86_BUILTIN_VFNMADDSS): Ditto.
1540 (IX86_BUILTIN_VFNMADDSD): Ditto.
1541 (IX86_BUILTIN_VFNMADDPS): Ditto.
1542 (IX86_BUILTIN_VFNMADDPD): Ditto.
1543 (IX86_BUILTIN_VFNMSUBSS): Ditto.
1544 (IX86_BUILTIN_VFNMSUBSD): Ditto.
1545 (IX86_BUILTIN_VFNMSUBPS): Ditto.
1546 (IX86_BUILTIN_VFNMSUBPD): Ditto.
1547 (IX86_BUILTIN_VFMADDPS256): Ditto.
1548 (IX86_BUILTIN_VFMADDPD256): Ditto.
1549 (IX86_BUILTIN_VFMSUBPS256): Ditto.
1550 (IX86_BUILTIN_VFMSUBPD256): Ditto.
1551 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1552 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1553 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1554 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1555 (IX86_BUILTIN_VFNMADDPS256): Ditto.
1556 (IX86_BUILTIN_VFNMADDPD256): Ditto.
1557 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1558 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1559 (enum multi_arg_type): New enum for describing the various FMA4
1560 intrinsic argument types.
1561 (bdesc_multi_arg): New table for FMA4 intrinsics.
1562 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1563 (ix86_expand_multi_arg_builtin): New function for creating FMA4
1564 intrinsics.
1565 (ix86_expand_builtin): Add FMA4 intrinsic support.
1566 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1567 operand instructions.
1568 (ix86_expand_fma4_multiple_memory): New function to split the
1569 second memory reference from FMA4 instructions.
1570 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1571 (ssemodesuffixf2s): Ditto.
1572 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1573 instructions.
1574 (fma4_fmsub<mode>4): Ditto.
1575 (fma4_fnmadd<mode>4): Ditto.
1576 (fma4_fnmsub<mode>4): Ditto.
1577 (fma4_vmfmadd<mode>4): Ditto.
1578 (fma4_vmfmsub<mode>4): Ditto.
1579 (fma4_vmfnmadd<mode>4): Ditto.
1580 (fma4_vmfnmsub<mode>4): Ditto.
1581 (fma4_fmadd<mode>4256): Ditto.
1582 (fma4_fmsub<mode>4256): Ditto.
1583 (fma4_fnmadd<mode>4256): Ditto.
1584 (fma4_fnmsub<mode>4256): Ditto.
1585 (fma4_fmaddsubv8sf4): Ditto.
1586 (fma4_fmaddsubv4sf4): Ditto.
1587 (fma4_fmaddsubv4df4): Ditto.
1588 (fma4_fmaddsubv2df4): Ditto.
1589 (fma4_fmsubaddv8sf4): Ditto.
1590 (fma4_fmsubaddv4sf4): Ditto.
1591 (fma4_fmsubaddv4df4): Ditto.
1592 (fma4_fmsubaddv2df4): Ditto.
1593 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1594 instructions for intrinsics.
1595 (fma4i_fmsub<mode>4): Ditto.
1596 (fma4i_fnmadd<mode>4): Ditto.
1597 (fma4i_fnmsub<mode>4): Ditto.
1598 (fma4i_vmfmadd<mode>4): Ditto.
1599 (fma4i_vmfmsub<mode>4): Ditto.
1600 (fma4i_vmfnmadd<mode>4): Ditto.
1601 (fma4i_vmfnmsub<mode>4): Ditto.
1602 (fma4i_fmadd<mode>4256): Ditto.
1603 (fma4i_fmsub<mode>4256): Ditto.
1604 (fma4i_fnmadd<mode>4256): Ditto.
1605 (fma4i_fnmsub<mode>4256): Ditto.
1606 (fma4i_fmaddsubv8sf4): Ditto.
1607 (fma4i_fmaddsubv4sf4): Ditto.
1608 (fma4i_fmaddsubv4df4): Ditto.
1609 (fma4i_fmaddsubv2df4): Ditto.
1610 (fma4i_fmsubaddv8sf4): Ditto.
1611 (fma4i_fmsubaddv4sf4): Ditto.
1612 (fma4i_fmsubaddv4df4): Ditto.
1613 (fma4i_fmsubaddv2df4): Ditto.
1614
1615 * doc/invoke.texi (-mfma4): Add documentation.
1616 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1617
1618 2009-09-29 Richard Henderson <rth@redhat.com>
1619
1620 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1621 an edge to the new destination block.
1622
1623 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1624
1625 PR target/41393
1626 * pa.c (hppa_profile_hook): Use
1627 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1628
1629 2009-09-29 Steve Ellcey <sje@cup.hp.com>
1630 Alexander Monakov <amonakov@ispras.ru>
1631
1632 PR target/41365
1633 * config/ia64/predicates.md (not_postinc_destination_operand): New.
1634 (not_postinc_memory_operand): New.
1635 (not_postinc_move_operand): New.
1636 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1637 (*cmovsi_internal): Ditto.
1638
1639 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
1640
1641 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1642 restrict issue_rate in first pass when scheduling for register
1643 pressure.
1644
1645 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
1646 Rafael Avila de Espindola <espindola@google.com>
1647
1648 * gengtype.c (plugin_output): New.
1649 (get_output_file_with_visibility): Return plugin_output for plugins.
1650 (main): Parse and use the -P option.
1651 * gty.texi: Update the command line format.
1652
1653 2009-09-29 Jakub Jelinek <jakub@redhat.com>
1654
1655 PR debug/41438
1656 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1657 functions.
1658 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1659 out if !const_ok_for_output.
1660
1661 PR debug/41474
1662 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1663 case VAR_LOCATION>: Remove gcc_unreachable ().
1664
1665 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1666
1667 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1668 (x86_64-*-*): Ditto.
1669 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1670 back to smmintrin.h.
1671 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1672 * config/i386/x86intrin.h: Remove SSE5.
1673 * config/i386/mmintrin-common.h: Delete file.
1674 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1675
1676 2009-09-29 Richard Guenther <rguenther@suse.de>
1677
1678 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1679 resulting from stack temporaries on STRICT_ALIGNMENT targets.
1680
1681 2009-09-29 Nick Clifton <nickc@redhat.com>
1682
1683 * function.c (current_function_name): If there is no current
1684 function just return "<none>".
1685
1686 2009-09-28 Sriraman Tallam <tmsriram@google.com>
1687
1688 * tree-pass.h (register_pass_info): New structure.
1689 (pass_positioning_ops): Move enum from gcc-plugin.h.
1690 (register_pass): New function.
1691 * gcc-plugin.h (plugin_pass): Delete structure.
1692 (pass_positioning_ops): Delete enum.
1693 * plugin.c (regsiter_pass): Delete function.
1694 (position_pass): Delete function.
1695 (added_pass_nodes): Delete variable.
1696 (prev_added_pass_nodes): Delete variable.
1697 (pass_list_node): Delete structure.
1698 * passes.c (make_pass_instance): New function.
1699 (next_pass_1): Change to call make_pass_instance.
1700 (pass_list_node): Move structure from gcc-plugin.h.
1701 (added_pass_nodes): Move variable from plugin.c.
1702 (prev_added_pass_nodes): Move variable from plugin.c.
1703 (position_pass): New function.
1704 (register_pass): New function.
1705
1706 2009-09-28 Easwaran Raman <eraman@google.com>
1707
1708 * ifcvt.c (noce_try_abs): Recognize pattern and call
1709 expand_one_cmpl_abs_nojump.
1710 * optabs.c (expand_one_cmpl_abs_nojump): New function.
1711 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1712
1713 2009-09-28 Ian Lance Taylor <iant@google.com>
1714
1715 PR middle-end/40500
1716 * c-opts.c (c_common_handle_option): Don't set
1717 warn_jump_misses_init for -Wall.
1718 * doc/invoke.texi (Warning Options): Update documentation.
1719
1720 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1721
1722 * Makefile.in ($(out_object_file)): Depend on
1723 gt-$(basename $(notdir $(out_file))).h.
1724
1725 2009-09-28 Richard Henderson <rth@redhat.com>
1726
1727 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1728 * except.c (gen_eh_region): Set it.
1729 (duplicate_eh_regions_1): Copy it.
1730 * tree-eh.c (lower_resx): Use it to determine which function
1731 to call to resume.
1732
1733 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1734 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1735 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1736 * tree.c (build_common_builtin_nodes): Remove parameter. Build
1737 BUILT_IN_CXA_END_CLEANUP if necessary.
1738
1739 * c-common.c (c_define_builtins): Update call to
1740 build_common_builtin_nodes.
1741
1742 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1743
1744 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1745
1746 2009-09-28 Michael Matz <matz@suse.de>
1747
1748 * builtins.c (interclass_mathfn_icode): New helper.
1749 (expand_builtin_interclass_mathfn): Use it here, and split folding
1750 into ...
1751 (fold_builtin_interclass_mathfn): ... this new folder.
1752 (build_call_nofold_loc): New static helper.
1753 (build_call_nofold): New wrapper macro for above.
1754 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1755 (expand_builtin_pow): Ditto.
1756 (expand_builtin_memset_args): Ditto.
1757 (expand_builtin_printf): Ditto.
1758 (expand_builtin_fprintf): Ditto.
1759 (expand_builtin_sprintf): Ditto.
1760 (expand_builtin_memory_chk): Ditto.
1761 (expand_builtin_mempcpy_args): Ditto and don't call folders.
1762 (expand_builtin_stpcpy): Ditto.
1763 (expand_builtin_strcmp): Ditto.
1764 (expand_builtin_strncmp): Ditto.
1765 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1766 (expand_builtin_strcpy_args): Don't call folders.
1767 (expand_builtin_memcmp): Ditto.
1768 (expand_builtin_strncpy): Ditto, and use target.
1769 (expand_builtin_memcpy): Ditto.
1770 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1771 expand_builtin_strpbrk, expand_builtin_memmove,
1772 expand_builtin_memmove_args, expand_builtin_bcopy,
1773 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1774 expand_builtin_strspn, expand_builtin_strcspn,
1775 expand_builtin_fputs): Remove these.
1776 (expand_builtin): Don't call the above, change calls to other
1777 expanders that changed prototype.
1778 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1779 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1780 fold_builtin_interclass_mathfn.
1781 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1782 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1783
1784 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1785 * passes.c (init_optimization_passes): Move pass_fold_builtins
1786 after last phiopt pass.
1787 * tree-inline.c (fold_marked_statements): When folding builtins
1788 iterate over all instruction potentially generated.
1789 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1790 earlier.
1791 (fold_gimple_call): Use it to always fold calls (into potentially
1792 multiple instructions).
1793 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1794 calls into zero at this time.
1795 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1796 statements generated by builtin folding.
1797
1798 2009-09-28 Nick Clifton <nickc@redhat.com>
1799
1800 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
1801
1802 2009-09-28 Duncan Sands <baldrick@free.fr>
1803
1804 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1805 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1806 (register_callback): Dispatch it.
1807 (invoke_plugin_callbacks): Incorporate in sanity check.
1808 * ggc.h (ggc_register_cache_tab): Add declaration.
1809 * ggc-common.c (ggc_register_root_tab): Simplify.
1810 (const_ggc_cache_tab_t): New typedef.
1811 (extra_cache_vec): New vector of dynamically added cache tables.
1812 (ggc_register_cache_tab): New function.
1813 (ggc_scan_cache_tab): New function.
1814 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
1815 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1816
1817 2009-09-27 Richard Henderson <rth@redhat.com>
1818
1819 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1820 which we remove __builtin_stack_restore.
1821
1822 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
1823
1824 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1825 to test for GRD_INVARIANT.
1826 (simple_rhs_p): Anything that's function_invariant_p is fine.
1827
1828 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
1829
1830 * gengtype.c (main): Use plunge_files instead of plugin_output.
1831
1832 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
1833 Rafael Avila de Espindola <espindola@google.com>
1834
1835 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1836 Don't print pch related info if it is false.
1837 (main): Don't print pch info in plugin mode.
1838
1839 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1840
1841 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1842 with dw_val_class_const_double.
1843 (struct dw_val_struct): Replace val_long_long with val_double and
1844 adjust for above change.
1845 (output_loc_operands): Likewise.
1846 (add_AT_long_long): Rename into...
1847 (add_AT_double): ...this.
1848 (print_die): Replace dw_val_class_long_long with
1849 dw_val_class_const_double and adjust.
1850 (attr_checksum): Likewise.
1851 (same_dw_val_p): Likewise.
1852 (size_of_die): Likewise.
1853 (value_format): Likewise.
1854 (output_die): Likewise.
1855 (loc_descriptor) <CONST_DOUBLE>: Likewise.
1856 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1857 instead of add_AT_long_long.
1858 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1859 value with the precision of its type.
1860
1861 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
1862
1863 PR c/41476
1864 * c-typeck.c (build_conditional_expr): Use the readonly and
1865 volatile flags of the operand types, not of the operands itself.
1866
1867 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
1868
1869 * collect2.c (main): Look for -brtl before adding libraries.
1870
1871 2009-09-27 Jonathan Gray <jsg@openbsd.org>
1872
1873 * config.gcc: Update OpenBSD targets.
1874 * config/openbsd-stdint.h: New file.
1875 * config/openbsd-libpthread.h: New file.
1876 * config/openbsd.h: Update and break out LIB_SPEC definition.
1877 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1878 * config/i386/openbsdelf.h: Correct types.
1879 * config/m68k/openbsd.h: Likewise.
1880 * config/mips/openbsd.h: Likewise.
1881 * config/vax/openbsd.h: Likewise.
1882
1883 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1884
1885 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1886 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1887 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1888 of the length and zero.
1889
1890 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1891
1892 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1893 (FLAGS_H): Add options.h $(REAL_H).
1894 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1895 (TREE_VECTORIZER_H): New.
1896 (EBITMAP_H): Renamed from EBIMAP_H.
1897 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1898 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1899 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1900 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1901 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1902 (graphite-clast-to-gimple.o, graphite-dependences.o)
1903 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1904 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1905 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1906 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1907 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1908 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1909 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1910 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1911 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1912 updated and fixed as per above changes and per
1913 check_makefile_deps.sh output.
1914
1915 PR bootstrap/40928
1916 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1917 * configure: Regenerate.
1918
1919 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1920
1921 * doc/install.texi: Update minimum MPC version to 0.7.
1922
1923 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
1924
1925 * doc/install.texi (Binaries): Remove reference to the binary
1926 distribution CD-ROM from the FSF.
1927
1928 2009-09-26 Michael Matz <matz@suse.de>
1929
1930 PR lto/40758
1931 PR middle-end/41470
1932 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1933 that are mentioned in the body.
1934
1935 2009-09-26 Michael Matz <matz@suse.de>
1936
1937 PR tree-optimization/41454
1938 * tree-ssa-dom (stmts_to_rescan): Remove variable.
1939 (tree_ssa_dominator_optimize): Don't allocate and free it.
1940 (dom_opt_leave_block): Don't iterate over it.
1941 (eliminate_redundant_computations): Don't return a value.
1942 (cprop_operand, cprop_into_stmt): Ditto.
1943 (optimize_stmt): Don't defer updating stmts.
1944
1945 2009-09-25 Dodji Seketeli <dodji@redhat.com>
1946
1947 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1948 generic_parameter_die, template_parameter_pack_die,
1949 gen_formal_parameter_die, gen_subprogram_die): Adjust after
1950 renaming DW_TAG_formal_parameter_pack and
1951 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
1952 and DW_TAG_GNU_template_parameter_pack.
1953
1954 2009-09-25 Anatoly Sokolov <aesok@post.ru>
1955
1956 * config/v850/v850.h (FUNCTION_VALUE): Remove.
1957 * config/v850/v850.c (v850_function_value): New function.
1958 (TARGET_FUNCTION_VALUE): Define.
1959
1960 2009-09-25 Jakub Jelinek <jakub@redhat.com>
1961
1962 * tree-vect-stmts.c (vectorizable_call): Call
1963 mark_symbols_for_renaming after vect_finish_stmt_generation.
1964
1965 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1966 to loc_descriptor_from_tree.
1967 (add_location_or_const_value_attribute): Pass 0 instead of 2
1968 for decl_by_reference_p decls.
1969
1970 2009-09-25 Richard Guenther <rguenther@suse.de>
1971
1972 PR middle-end/41463
1973 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
1974 arrays again.
1975
1976 2009-09-25 Ben Elliston <bje@au.ibm.com>
1977
1978 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
1979 after `power7'.
1980
1981 2009-09-25 Alan Modra <amodra@bigpond.net.au>
1982
1983 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
1984 form of instruction.
1985
1986 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1987
1988 PR middle-end/41435
1989 * fold-const.c (const_binop): Handle complex int division.
1990 * tree-complex.c (expand_complex_div_straight,
1991 expand_complex_div_wide): Update comments.
1992
1993 2009-09-24 DJ Delorie <dj@redhat.com>
1994
1995 PR target/41456
1996 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
1997 (reg_class): Likewise.
1998 (REG_CLASS_NAMES): Likewise.
1999 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2000 (m32c_override_options): Disable -fivopts for M32C.
2001
2002 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2003
2004 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2005 Delete VSX load/store with update support.
2006 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2007 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2008 (vsx_movti): Ditto.
2009 (VSX_U): Delete.
2010 (VSbit): Ditto.
2011 (VStype_load_update): Ditto.
2012 (VStype_store_update): Ditto.
2013 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2014 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2015
2016 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2017 load/store with update builtins.
2018
2019 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2020
2021 * libgcc2.c (L_trampoline): Prototype for getpagesize
2022 and mprotect in WINNT case.
2023
2024 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2025
2026 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2027 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2028 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2029 'outgoing' argument.
2030 (TARGET_FUNCTION_VALUE): Define.
2031
2032 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2033
2034 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2035
2036 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2037
2038 PR bootstrap/41405
2039 * common.opt: Initialize dwarf_strict to -1.
2040 * toplev.c (process_options): Catch unset dwarf_strict
2041 and set to 0 for all targets not overriding.
2042 * config/darwin.c (darwin_override_options): Catch unset
2043 dwarf_strict and override to 1.
2044
2045 2009-09-24 Jeff Law <law@redhat.com>
2046
2047 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2048
2049 2009-09-24 Richard Guenther <rguenther@suse.de>
2050
2051 PR tree-optimization/36143
2052 PR tree-optimization/38747
2053 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2054 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2055
2056 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR bootstrap/41457
2059 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2060 return false instead of gcc_unreachable (). For CONST return the
2061 value returned by recursive call instead of always returning true.
2062 (tree_add_const_value_attribute): Return the value returned by
2063 add_const_value_attribute instead of always returning true if rtl
2064 is non-NULL.
2065
2066 2009-09-23 Justin Seyster <jrseys@gmail.com>
2067
2068 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2069
2070 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2071
2072 * cgraphunit.c (cgraph_lower_function): Revert last change.
2073 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2074 instead of DECL_NO_STATIC_CHAIN.
2075 * tree-cfg.c (verify_gimple_call): Likewise.
2076 * tree-nested.c (get_chain_decl, get_chain_field,
2077 convert_tramp_reference_op, convert_gimple_call): Likewise.
2078 (convert_all_function_calls): Likewise. Always set or clear
2079 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2080 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2081 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2082 if nested.
2083 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2084 DECL_NO_STATIC_CHAIN.
2085 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2086 instead of DECL_NO_STATIC_CHAIN.
2087 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2088 decl_function_context.
2089 * varasm.c (initializer_constant_valid_p): Likewise.
2090 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2091 (DECL_STATIC_CHAIN): ... this.
2092 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2093 instead of DECL_NO_STATIC_CHAIN.
2094
2095 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2096 Rafael Avila de Espindola <espindola@google.com>
2097
2098 * gengtype.c (nb_plugin_files): Make it unsigned to match
2099 num_gt_files. Adjust other variables to avoid warnings.
2100 (main): Allocate an all zero lang_bitmap before each plugin file name
2101 to match regular file names.
2102
2103 2009-09-23 Richard Henderson <rth@redhat.com>
2104
2105 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2106 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2107 static chain passed in memory.
2108 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2109 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2110 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2111 STATIC_CHAIN_REGNUM defined.
2112
2113 * config/picochip/picochip-protos.h: s/class/klass/.
2114 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2115 (picochip_static_chain): New.
2116 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2117 (STATIC_CHAIN_INCOMING): Remove.
2118
2119 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2120 (xtensa_static_chain): New.
2121 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2122 (STATIC_CHAIN_INCOMING): Remove.
2123
2124 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2125
2126 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2127 * config/pa/pa-protos.h (function_value): Remove.
2128 * config/pa/pa.c (pa_function_value): Rename from function_value.
2129 Make static, add 'outgoing' argument.
2130 (TARGET_FUNCTION_VALUE): Define.
2131
2132 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2133
2134 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2135 instead of cfun->machine->is_leaf.
2136 * config/avr/avr.h (machine_function): Remove is_leaf field.
2137
2138 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2139
2140 PR debug/41439
2141 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2142 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2143 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2144 the same size, prefer DW_OP_stack_value.
2145 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2146 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2147
2148 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2149
2150 PR debug/41353
2151 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2152
2153 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2154
2155 PR debug/41248
2156 * cfgexpand.c (convert_debug_memory_address): New.
2157 (expand_debug_expr): Convert base address and offset to the same
2158 mode. Use it to convert addresses to other modes. Accept
2159 ptr_mode addresses.
2160
2161 2009-09-23 Richard Guenther <rguenther@suse.de>
2162
2163 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2164 produced for bigendian targets with promoted subregs.
2165
2166 2009-09-23 Richard Guenther <rguenther@suse.de>
2167
2168 * value-prof.c (gimple_ic): Purge old EH edges only after building
2169 the new ones.
2170
2171 2009-09-23 Nick Clifton <nickc@redhat.com>
2172
2173 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2174
2175 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2176
2177 PR bootstrap/41405
2178 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2179
2180 PR bootstrap/41436
2181 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2182 on non-nested functions.
2183
2184 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2185 Jan Hubicka <jh@suse.cz>
2186
2187 * dwarf2out.c (loc_list_plus_const): Only define if
2188 DWARF2_DEBUGGING_INFO.
2189 (address_of_int_loc_descriptor): Likewise.
2190
2191 PR debug/41411
2192 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2193
2194 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2195
2196 PR c/39779
2197 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2198 constant is more than zero.
2199
2200 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2201
2202 PR target/40473
2203 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2204 call final to emit non-scheduled prologue, instead insert at entry.
2205
2206 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2207 Joseph S. Myers <joseph@codesourcery.com>
2208
2209 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2210
2211 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2212 Rafael Avila de Espindola <espindola@google.com>
2213
2214 * gengtype.c (is_file_equal): New function.
2215 (close_output_files): Use is_file_equal. Free of->buf.
2216
2217 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2218 Rafael Avila de Espindola <espindola@google.com>
2219
2220 * gengtype.c (write_types, write_local): Add the output_header
2221 argument. Update all callers.
2222
2223 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2224
2225 * dwarf2out.c (template_parameter_pack_die,
2226 gen_formal_parameter_pack_die ): New functions.
2227 (make_ith_pack_parameter_name): Remove this function.
2228 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2229 DW_TAG_formal_parameter_pack.
2230 (gen_generic_params_dies): Represent each template parameter pack
2231 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2232 represented by usual DW_TAG_template_*_parameter DIEs that are
2233 children of the DW_TAG_template_parameter_pack element DIE.
2234 (generic_parameter_die): This doesn't deal with parameter pack
2235 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2236 of parameter pack DIEs.
2237 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2238 in certain cases, e.g. for pack elements.
2239 (gen_formal_types_die, gen_decl_die): Adjust usage of
2240 gen_formal_parameter_die.
2241 (gen_subprogram_die): Represent each function parameter pack by a
2242 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2243 represented by usual DW_TAG_formal_parameter DIEs that are children
2244 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2245 ____builtin_va_alist decls as no part of the compiler uses those
2246 anymore.
2247 * langhooks.h (struct lang_hooks_for_decls): Add
2248 function_parm_expanded_from_pack_p, get_generic_function_decl
2249 and function_parameter_pack_p hooks. Fix comment for
2250 get_innermost_generic_parms hook.
2251 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2252 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2253 macros and use them to initialize lang_hook.
2254
2255 2009-09-22 Richard Henderson <rth@redhat.com>
2256
2257 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2258 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2259 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2260 on TRAMPOLINE_TEMPLATE.
2261 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2262 TRAMPOLINE_ADJUST_ADDRESS.
2263 * targhooks.c (default_asm_trampoline_template): Remove.
2264 (default_trampoline_adjust_address): Remove.
2265 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2266 * targhooks.h: Update decls.
2267
2268 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2269
2270 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2271 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2272 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2273
2274 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2275
2276 PR debug/41295
2277 * reload1.c (reload): Reset debug insns with pseudos without
2278 equivalences.
2279
2280 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2281
2282 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2283 unconditional true for decimal float modes.
2284 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2285 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2286
2287 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2288
2289 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2290 Enable a new case for __FreeBSD__ >= 7.
2291 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2292 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2293 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2294 and USE_LD_AS_NEEDED.
2295
2296 * doc/install.texi (*-*-freebsd*): Update target information.
2297
2298 2009-09-22 Richard Guenther <rguenther@suse.de>
2299
2300 PR middle-end/41395
2301 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2302 arrays really properly.
2303
2304 2009-09-22 Richard Henderson <rth@redhat.com>
2305
2306 PR target/41246
2307 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2308 calls.static_chain, calls.trampoline_init,
2309 calls.trampoline_adjust_address.
2310 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2311 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2312 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2313 * builtins.c (expand_builtin_setjmp_receiver): Use
2314 targetm.calls.static_chain; only clobber registers.
2315 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2316 set up memory attributes properly for the trampoline block.
2317 (expand_builtin_adjust_trampoline): Use
2318 targetm.calls.trampoline_adjust_address.
2319 * calls.c (prepare_call_address): Add fndecl argument. Use
2320 targetm.calls.static_chain.
2321 * df-scan.c (df_need_static_chain_reg): Remove.
2322 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2323 consolodate static chain handling.
2324 * doc/tm.texi: Document new hooks.
2325 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2326 (init_emit_regs): Don't initialize them.
2327 * expr.h (prepare_call_address): Update decl.
2328 * final.c (profile_function): Use targetm.calls.static_chain.
2329 * function.c (expand_function_start): Likewise.
2330 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2331 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2332 only clobber registers.
2333 * targhooks.c (default_static_chain): New.
2334 (default_asm_trampoline_template, default_trampoline_init): New.
2335 (default_trampoline_adjust_address): New.
2336 * targhooks.h: Declare them.
2337 * varasm.c (assemble_trampoline_template): Use
2338 targetm.asm_out.trampoline_template. Make the memory block const
2339 and set its size.
2340
2341 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2342 alpha_initialize_trampoline. Make static. Merge VMS parameter
2343 differences into the TARGET_ABI_OPEN_VMS code block.
2344 (TARGET_TRAMPOLINE_INIT): New.
2345 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2346 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2347 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2348 (INITIALIZE_TRAMPOLINE): Remove.
2349
2350 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2351 (TRAMPOLINE_TEMPLATE): Merge with ...
2352 (INITIALIZE_TRAMPOLINE): ... this and move ...
2353 * config/arc/arc.c (arc_trampoline_init): ... here.
2354 (TARGET_TRAMPOLINE_INIT): New.
2355
2356 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2357 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2358 (arm_asm_trampoline_template): New.
2359 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2360 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2361 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2362 code to arm_asm_trampoline_template.
2363 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2364 arm_trampoline_adjust_address.
2365 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2366 adjust for target hook parameters.
2367
2368 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2369 Remove.
2370
2371 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2372 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2373 (bfin_trampoline_init): Rename from initialize_trampoline;
2374 make static; update for target hook parameters.
2375 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2376 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2377 bfin_asm_trampoline_template.
2378 (INITIALIZE_TRAMPOLINE): Remove.
2379
2380 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2381 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2382 cris_trampoline_init): New.
2383 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2384 cris_asm_trampoline_template.
2385 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2386 adjust for target hook parameters.
2387
2388 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2389
2390 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2391 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2392 fr30_trampoline_init): New.
2393 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2394 fr30_asm_trampoline_template.
2395 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2396 adjust for target hook parameters.
2397
2398 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2399 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2400 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2401 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2402 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2403
2404 * config/h8300/h8300.c (h8300_trampoline_init): New.
2405 (TARGET_TRAMPOLINE_INIT): New.
2406 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2407 to h8300_trampoline_init and adjust for hook parameters.
2408
2409 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2410 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2411 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2412 make static; adjust for hook parameters.
2413 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2414
2415 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2416 (TARGET_TRAMPOLINE_INIT): New.
2417 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2418 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2419 iq2000_asm_trampoline_template.
2420 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2421 (TRAMPOLINE_CODE_SIZE): New.
2422 (TRAMPOLINE_SIZE): Use it.
2423 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2424
2425 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2426 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2427 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2428 adjust for hook parameters.
2429 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2430
2431 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2432 (m32r_trampoline_init): New.
2433 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2434 m32r_trampoline_init.
2435
2436 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2437 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2438 make static; update for hook parameters.
2439 * config/m68hc11/m68hc11-protos.h: Update.
2440 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2441
2442 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2443 (TARGET_TRAMPOLINE_INIT): New.
2444 (mcore_function_value): Fix typo.
2445 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2446 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2447 to mcore_asm_trampoline_template.
2448 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2449
2450 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2451 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2452 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2453 update for hook parameters.
2454 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2455
2456 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2457 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2458 mips_trampoline_init): New.
2459 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2460 mips_asm_trampoline_template.
2461 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2462 update for hook parameters.
2463
2464 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2465 (TARGET_TRAMPOLINE_INIT): New.
2466 (mmix_trampoline_size): Remove.
2467 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2468 make static. Remove out-of-date tetra vs octa comment.
2469 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2470 make static; update for hook parameters.
2471 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2472 (INITIALIZE_TRAMPOLINE): Remove.
2473 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2474 (TRAMPOLINE_ALIGNMENT): New.
2475 * gcc/config/mmix/mmix-protos.h: Update.
2476
2477 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2478 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2479 mn10300_trampoline_init): New.
2480 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2481 mn10300_asm_trampoline_template.
2482 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2483
2484 * config/moxie/moxie.c (moxie_static_chain,
2485 moxie_asm_trampoline_template, moxie_trampoline_init,
2486 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2487 TARGET_TRAMPOLINE_INIT): New.
2488 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2489 moxie_trampoline_init.
2490 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2491 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2492
2493 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2494 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2495 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2496 pa_trampoline_adjust_address): New.
2497 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2498 pa_asm_trampoline_template.
2499 (TRAMPOLINE_ALIGNMENT): New.
2500 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2501 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2502 adjust for hook parameters.
2503 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2504
2505 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2506 (TARGET_TRAMPOLINE_INIT): New.
2507 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2508 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2509
2510 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2511
2512 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2513 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2514 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2515 make static; adjust parameters for the hook.
2516 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2517
2518 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2519 s390_trampoline_template; make static.
2520 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2521 make static; adjust for target hook.
2522 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2523 * config/s390/s390-protos.h: Remove trampoline decls.
2524 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2525 (TRAMPOLINE_TEMPLATE): Remove.
2526 (TRAMPOLINE_ALIGNMENT): New.
2527
2528 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2529 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2530 (TARGET_TRAMPOLINE_INIT): New.
2531 (score_asm_trampoline_template): New.
2532 (score_trampoline_init): Rename from score_initialize_trampoline;
2533 make static; adjust for hook parameters.
2534 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2535 score[37]_asm_trampoline_template.
2536 (INITIALIZE_TRAMPOLINE): Remove.
2537 * config/score/score3.c (score3_asm_trampoline_template): New.
2538 (score3_trampoline_init): Rename from score3_initialize_trampoline;
2539 adjust for target hook.
2540 * config/score/score7.c (score7_asm_trampoline_template): New.
2541 (score7_trampoline_init): Rename from score7_initialize_trampoline;
2542 adjust for target hook.
2543 * config/score/score3.h, config/score/score7.h: Update.
2544
2545 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2546 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2547 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2548 (sh_trampoline_init): Rename from sh_initialize_trampoline;
2549 make static; adjust for target hook parameters.
2550 (sh_trampoline_adjust_address): New.
2551 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2552 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2553
2554 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2555 (sparc32_initialize_trampoline): Rename from
2556 sparc_initialize_trampoline; make static; replace tramp parameter
2557 with m_tramp and update memory accesses.
2558 (sparc64_initialize_trampoline): Similarly.
2559 (sparc_trampoline_init): New.
2560 * config/sparc/sparc-protos.h: Remove trampoline decls.
2561 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2562 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2563
2564 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2565 (array_to_constant): Make ARR parameter const.
2566 (spu_trampoline_init): Rename from spu_initialize_trampoline;
2567 make static; update for hook parameters.
2568 * config/spu/spu-protos.h: Update decls.
2569 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2570
2571 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2572 from xstormy16_initialize_trampoline; make static; update for
2573 hook parameters.
2574 (TARGET_TRAMPOLINE_INIT): New.
2575 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2576
2577 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2578 (TARGET_TRAMPOLINE_INIT): New.
2579 (v850_can_eliminate): Make static.
2580 (v850_asm_trampoline_template, v850_trampoline_init): New.
2581 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2582 v850_asm_trampoline_template.
2583 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2584 and adjust for target hook parameters.
2585
2586 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2587 (TARGET_TRAMPOLINE_INIT): New.
2588 (vax_asm_trampoline_template, vax_trampoline_init): New.
2589 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2590 vax_asm_trampoline_template.
2591 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2592
2593 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2594 (TARGET_TRAMPOLINE_INIT): New.
2595 (xtensa_asm_trampoline_template): Rename from
2596 xtensa_trampoline_template; make static.
2597 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2598 make static; update for hook parameters.
2599 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2600 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2601 (INITIALIZE_TRAMPOLINE): Remove.
2602
2603 * config/i386/i386.c (ix86_function_regparm): Do not issue an
2604 error for nested functions with regparm=3.
2605 (ix86_compute_frame_layout): Adjust frame pointer offset for
2606 ix86_static_chain_on_stack.
2607 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2608 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2609 don't reset to UNITS_PER_WORD.
2610 (ix86_emit_leave): Adjust ix86_cfa_state.
2611 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2612 (ix86_static_chain): New.
2613 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2614 make static; update for target hook parameters; use ix86_static_chain.
2615 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2616 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2617 (INITIALIZE_TRAMPOLINE): Remove.
2618 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2619 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2620 to the end. Add static_chain_on_stack.
2621 (ix86_static_chain_on_stack): New.
2622
2623 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2624 (m68k_output_mi_thunk): Don't use static_chain_rtx.
2625 (m68k_trampoline_init): New.
2626 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2627 m68k_trampoline_init and adjust for hook parameters.
2628 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2629 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2630
2631 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2632
2633 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2634 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2635
2636 * reload1.c (reload): Call wrap_constant when substituting
2637 reg for equiv inside of DEBUG_INSNs.
2638
2639 PR bootstrap/41405
2640 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2641 add_call_src_coords_attributes, add_high_low_attributes,
2642 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2643 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2644 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2645 when -gdwarf-2 -gstrict-dwarf.
2646 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
2647 -gdwarf-[23] -gstrict-dwarf.
2648 (address_of_int_loc_descriptor, loc_descriptor,
2649 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2650 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2651 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2652
2653 2009-09-22 Richard Guenther <rguenther@suse.de>
2654
2655 PR tree-optimization/41428
2656 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2657 (ccp_finalize): Pass it to substitute_and_fold.
2658
2659 2009-09-22 Richard Guenther <rguenther@suse.de>
2660
2661 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2662 (substitute_and_fold): Adjust prototype.
2663 * tree-vrp.c (vrp_evaluate_conditional): Make static.
2664 (simplify_stmt_using_ranges): Likewise.
2665 (fold_predicate_in): Move here from tree-ssa-propagate.c.
2666 (vrp_fold_stmt): New function.
2667 (vrp_finalize): Pass it to substitute_and_fold.
2668 * tree-flow.h (vrp_evaluate_conditional): Remove.
2669 (simplify_stmt_using_ranges): Likewise.
2670 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2671 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2672 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2673 member.
2674 (fold_predicate_in): Move to tree-vrp.c.
2675 (substitute_and_fold): Use the callback instead of calling into
2676 tree-vrp.c functions directly.
2677
2678 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2679
2680 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2681 comparison warning on rs6000.
2682
2683 PR middle-end/41429
2684 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2685 GIMPLE_EH_MUST_NOT_THROW cleanup.
2686 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2687
2688 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
2689
2690 PR middle-end/41260
2691 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2692 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2693 LIB_SPEC for darwin10 and later since it always uses the unwinder in
2694 libSystem which is derived from the gcc 4.2.1 unwinder.
2695
2696 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2697
2698 PR middle-end/41357
2699 * varasm.c (default_encode_section_info): Copy TLS model into
2700 sym_ref flags regardless of backend support for TLS, for all
2701 model types except TLS_MODEL_EMULATED.
2702
2703 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2704
2705 PR bootstrap/41404
2706 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2707 we can handle it correctly.
2708
2709 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2710
2711 * doc/install.texi (os2): Remove section.
2712
2713 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2714
2715 * doc/standards.texi (Objective-C): Adjust two URLs.
2716
2717 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
2718
2719 * tree-tailcall.c (process_assignment): Don't check if a
2720 multiplication or an addition are already present.
2721 (find_tail_calls): Combine multiple additions and multiplications.
2722 (adjust_accumulator_values): Emit accumulators.
2723
2724 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
2725
2726 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2727 xmm register restore.
2728
2729 2009-09-21 Jan Hubicka <jh@suse.cz>
2730
2731 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2732 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2733 restore at the end.
2734
2735 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
2736
2737 * stor-layout.c (layout_type): Remove obsolete code.
2738
2739 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
2740
2741 PR middle-end/41395
2742 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2743
2744 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2745
2746 PR middle-end/30789
2747 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2748 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2749 (fold_builtin_2, do_mpc_arg1): Update accordingly.
2750 * fold-const.c (const_binop): Likewise.
2751 * real.h (do_mpc_arg2): Update prototype.
2752
2753 2009-09-20 Jan Hubicka <jh@suse.cz>
2754
2755 * dwarf2out.c (add_const_value_attribute): Return true if successful.
2756 (add_location_or_const_value_attribute): Rewrite using
2757 loc_list_from_tree.
2758 (tree_add_const_value_attribute): Return true if successful.
2759 (tree_add_const_value_attribute_for_decl): Likewise.
2760
2761 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2762 (loc_descriptor): ... here;
2763 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2764 (cst_pool_loc_descr): Break out from ...; do not reffer constant
2765 pool items that was not marked for output.
2766 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2767 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2768 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2769 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2770 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2771 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2772 DW_OP_stack_value to get address of items that are not available
2773 as addresses.
2774 (dw_loc_list): Handle single element lists correctly.
2775
2776 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
2777 Pascal Obry <obry@adacore.com>
2778
2779 * unwind-dw2-fde.c (classify_object_over_fdes):
2780 Cast the constant 1 to _Unwind_Ptr.
2781 (add_fdes): Likewise.
2782 (linear_search_fdes): Likewise.
2783
2784 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
2785
2786 * stor-layout.c (set_sizetype): Avoid useless type copy.
2787
2788 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
2789
2790 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2791 feature check.
2792 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2793 * configure, config.in: Regenerate.
2794 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2795 DW_EH_PE_absptr.
2796 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2797 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
2798 for global data if the output could be used in a shared library.
2799 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2800 to 0 if TARGET_WRITABLE_EH_FRAME.
2801
2802 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
2803
2804 PR rtl-optimization/39886
2805 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2806 just when insn is equal to BB_END (bb).
2807
2808 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
2809
2810 * config/mips/mips.opt (mrelax-pic-calls): New option.
2811 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2812 the file.
2813 (mips_unspec_call): Change "unspec_call" expander into this.
2814 (mips_strip_unspec_call): New function.
2815 (mips_got_load): Call mips_unspec_call instead of
2816 gen_unspec_call<mode>.
2817 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
2818 MIPS_CALL.
2819 (mips_cfg_in_reorg): New function.
2820 (mips16_lay_out_constants): Use it to decide whether to call
2821 CFG-aware insn splitting.
2822 (r10k_insert_cache_barriers): Move CFG set-up code from here to
2823 mips_reorg. Move DF set-up code from here ...
2824 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
2825 from here.
2826 (mips_reorg): Call mips_df_reorg instead of
2827 r10k_insert_cache_barriers. Move CFG set-up code here from
2828 r10k_insert_cache_barriers.
2829 (mips_call_expr_from_insn): New function.
2830 (mips_pic_call_symbol_from_set): Likewise.
2831 (mips_find_pic_call_symbol): Likewise.
2832 (mips_annotate_pic_call_expr): Likewise.
2833 (mips_get_pic_call_symbol): Likewise.
2834 (mips_annotate_pic_calls): Likewise.
2835 (mips_override_options): Disable -mrelax-pic-calls unless PIC
2836 calls are used.
2837 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2838 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2839 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2840 directive.
2841 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2842 (unspec_call<mode>): Remove it.
2843 (sibcall_internal, sibcall_value_internal,
2844 sibcall_value_multiple_internal, call_internal, call_split,
2845 call_value_internal, call_value_split,
2846 call_value_multiple_internal, call_value_multiple_split): Pass
2847 SIZE_OPNO to MIPS_CALL.
2848 (call_internal_direct, call_direct_split,
2849 call_value_internal_direct, call_value_direct_split): Pass -1 as
2850 SIZE_OPNO to MIPS_CALL.
2851 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2852 * configure: Regenerate.
2853 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2854 and -mno-relax-pic-calls.
2855 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2856
2857 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2858
2859 PR bootstrap/35619
2860 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2861 in the directory this rule is called from, rather than the
2862 toplevel 'gcc' directory, to fix in-tree build.
2863
2864 2009-09-19 Chris Demetriou <cgd@google.com>
2865
2866 PR preprocessor/28435:
2867 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2868 to cpplib that the preprocessor output is needed.
2869
2870 2009-09-19 Jakub Jelinek <jakub@redhat.com>
2871
2872 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2873 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2874 *return_and_restore_fpregs_<mode>,
2875 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2876
2877 PR bootstrap/41397
2878 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2879 instead of assuming it has always a REG inside of it.
2880
2881 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
2882
2883 * config/freebsd.h: Update comment on types.
2884 (WINT_TYPE): Define.
2885
2886 2009-09-18 Jason Merrill <jason@redhat.com>
2887
2888 * c.opt: Add -fno-deduce-init-list.
2889
2890 2009-09-18 Neil Vachharajani <nvachhar@google.com>
2891
2892 * value-prof.c (interesting_stringop_to_profile_p): Added output
2893 argument to indicate which parameter is the size parameter.
2894 * value-prof.c (gimple_stringop_fixed_value): Use
2895 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2896 * value-prof.c (gimple_stringops_transform): Update call sites to
2897 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2898
2899 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
2900
2901 PR target/38288
2902 From David Binderman <dcb314@hotmail.com>:
2903 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2904 local variable f. Remove stale comments.
2905 (ix86_compute_frame_layout): Remove useless local variable total_size.
2906 Remove #if 0'd code.
2907 (legitimate_address_p): Remove useless local variables
2908 reason_rtx and reason.
2909 (ix86_split_copysign_const): Remove useless local variable op1.
2910 (scale_counter): Remove useless local variable piece_size_mask.
2911
2912 2009-09-18 Jakub Jelinek <jakub@redhat.com>
2913
2914 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2915 output decl.
2916
2917 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2918
2919 PR target/40913
2920 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2921
2922 2009-09-17 Jakub Jelinek <jakub@redhat.com>
2923
2924 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2925 TYPE_STUB_DECL.
2926
2927 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
2928
2929 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2930 DW_OP_implicit_value even without dwarf_version 4.
2931
2932 2009-09-17 Jan Hubicka <jh@suse.cz>
2933
2934 * dwarf2out.c: Include tree-pass.h and gimple.h.
2935 (loc_list_plus_const): New function.
2936 (loc_descriptor_from_tree_1): Rename to ...
2937 (loc_descriptor_from_tree): ... remove original.
2938 (loc_list_from_tree): New function.
2939 (add_AT_location_description): Accept location list.
2940 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2941 (concatn_mem_loc_descriptor): Remove.
2942 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2943 returning NULL.
2944 (secname_for_decl): Move up.
2945 (hidden_reference_p): New function; break out from ...
2946 (loc_by_refernece): ... here; move up.
2947 (dw_loc_list): New function.
2948 (single_element_loc_list): New function.
2949 (single_element_loc_list_p): New function.
2950 (add_loc_descr_to_each): New function.
2951 (add_loc_list): New function.
2952 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2953 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2954 add diagnostics why expansion failed.
2955 (add_location_or_const_value_attribute): Support location lists.
2956 (add_bound_info): Likewise.
2957 (descr_info_loc): Update call of loc_descriptor_from_tree.
2958 (gen_variable_die): Work on location lists.
2959 * final.c (pass_final): Add dump file.
2960 * Makefile.in (dwarf2out.o): Add new dependencies.
2961
2962 2009-09-17 Janis Johnson <janis187@us.ibm.com>
2963
2964 PR c/41049
2965 * real.c decimal_from_integer, decimal_integer_string): New.
2966 (real_from_integer): Use them as special case for decimal float.
2967 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2968 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2969 Do not append zero after the decimal point in string to convert.
2970
2971 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2972
2973 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2974 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2975
2976 2009-09-17 Martin Jambor <mjambor@suse.cz>
2977
2978 * common.opt (fipa-sra): New switch.
2979 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
2980 * timevar.def (TV_IPA_SRA): New timevar.
2981 * params.def (ipa-sra-ptr-growth-factor): New parameter.
2982 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
2983 * tree-sra.c: Include cgraph.c.
2984 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
2985 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
2986 and grp_not_necessarilly_dereferenced.
2987 (func_param_count): New variable.
2988 (encountered_apply_args): New variable.
2989 (bb_dereferences): New variable.
2990 (final_bbs): New variable.
2991 (no_accesses_representant): New variable.
2992 (no_accesses_p): New function.
2993 (dump_access): Dump the new fields.
2994 (sra_initialize): Set encountered_apply_args to false.
2995 (get_ssa_base_param): New function.
2996 (mark_parm_dereference): New function.
2997 (create_access): Caring for INIDRECT_REFs and different handling of
2998 varialble length accesses in early IPA SRA. Store the stmt - a new
2999 parameter - to the new access.
3000 (build_access_from_expr_1): New parameter stmt, passed to
3001 create_access. Handle INDIRECT_REFs.
3002 (build_access_from_expr): Pass the current statement to
3003 build_access_from_expr_1.
3004 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3005 passes.
3006 (build_accesses_from_assign): Pass the current statement to
3007 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3008 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3009 final_bbs when necessary. Check for calls to __builtin_apply_args.
3010 Fixup EH info if anythng was changed.
3011 (is_unused_scalar_param): New function.
3012 (ptr_parm_has_direct_uses): New function.
3013 (find_param_candidates): New function.
3014 (mark_maybe_modified): New function.
3015 (analyze_modified_params): New function.
3016 (propagate_dereference_distances): New function.
3017 (dump_dereferences_table): New function.
3018 (analyze_caller_dereference_legality): New function.
3019 (unmodified_by_ref_scalar_representative): New function.
3020 (splice_param_accesses): New function.
3021 (decide_one_param_reduction): New function.
3022 (enum ipa_splicing_result): New type.
3023 (splice_all_param_accesses): New function.
3024 (get_param_index): New function.
3025 (turn_representatives_into_adjustments): New function.
3026 (analyze_all_param_acesses): New function.
3027 (get_replaced_param_substitute): New function.
3028 (get_adjustment_for_base): New function.
3029 (replace_removed_params_ssa_names): New function.
3030 (sra_ipa_reset_debug_stmts): New function.
3031 (sra_ipa_modify_expr): New function.
3032 (sra_ipa_modify_assign): New function.
3033 (convert_callers): New function.
3034 (modify_function): New function.
3035 (ipa_sra_preliminary_function_checks): New function.
3036 (ipa_early_sra): New function.
3037 (ipa_early_sra_gate): New function.
3038 (pass_early_ipa_sra): New variable.
3039 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3040
3041 2009-09-17 Michael Matz <matz@suse.de>
3042
3043 PR middle-end/41347
3044 * tree.c (build_type_attribute_qual_variant): Export.
3045 * tree.h (build_type_attribute_qual_variant): Declare.
3046 * tree-inline.c (remap_type_1): Use it to build variants with
3047 the original qualifiers and attributes.
3048
3049 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3050
3051 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3052 without a fallthrough edge.
3053
3054 2009-09-16 DJ Delorie <dj@redhat.com>
3055
3056 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3057 chip and ignore the "fast_interrupt" attribute if so.
3058
3059 2009-09-16 Richard Henderson <rth@redhat.com>
3060
3061 PR middle-end/41360
3062 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3063 barrier fix.
3064
3065 2009-09-16 Richard Henderson <rth@redhat.com>
3066
3067 PR target/41246
3068 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3069 is set only if DECL_NO_STATIC_CHAIN is unset.
3070 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3071 (FOR_EACH_NEST_INFO): New.
3072 (walk_all_functions): Use it.
3073 (finalize_nesting_tree): Likewise.
3074 (unnest_nesting_tree): Likewise.
3075 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3076 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3077 (convert_gimple_call): Early out if gimple_call_chain already set.
3078 (convert_all_function_calls): Iterate until no new functions
3079 require a static chain.
3080 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3081 when building a trampoline. Use dump_function_to_file instead
3082 of dump_function.
3083 (lower_nested_functions): Open dump_file. Validate that decls
3084 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3085 bit reset by this pass.
3086
3087 2009-09-16 Michael Matz <matz@suse.de>
3088
3089 PR fortran/41212
3090 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3091 shorten decl_common_unused.
3092 (DECL_RESTRICTED_P): New accessor.
3093 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3094 to disambiguate marked decls and restrict pointers.
3095
3096 2009-09-16 Richard Henderson <rth@redhat.com>
3097
3098 PR middle-end/41360
3099 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3100
3101 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3102
3103 * integrate.c (set_block_abstract_flags): Call
3104 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3105
3106 2009-09-16 Richard Guenther <rguenther@suse.de>
3107
3108 PR middle-end/34011
3109 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3110 as non-aliased.
3111
3112 2009-09-16 DJ Delorie <dj@redhat.com>
3113 Kaz Kojima <kkojima@gcc.gnu.org>
3114
3115 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3116 (sh_expand_prologue): Update calls to output_stack_adjust.
3117 (sh_expand_epilogue): Likewise.
3118
3119 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3120
3121 PR bootstrap/41349
3122 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3123 trying to limit the extent of searches in the insn stream.
3124
3125 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3126 Jakub Jelinek <jakub@redhat.com>
3127
3128 PR target/41175
3129 PR target/40677
3130 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3131 problem.
3132 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3133 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3134 (rs6000_savres_strategy): Always save FP registers inline if the
3135 target doesn't support hardware double-precision. Set the above
3136 bits in return value when needed.
3137 (rs6000_savres_routine_sym): Fix computation for cache selector.
3138 Mark the generated symbol as a function. Rename exitp argument to
3139 lr. Move code for determining the name of the symbol...
3140 (rs6000_savres_routine_name): ...here. New function. Add cases for
3141 getting the names right on AIX and 64-bit Linux.
3142 (savres_routine_name): New variable.
3143 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3144 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3145 on what the target routine uses as a base register. If savep && lr
3146 describe saving of r0 into memory slot.
3147 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3148 line calls for AIX ABI.
3149 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3150 determine FP save/restore functions.
3151 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3152 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3153 gen_addsi3.
3154 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3155 Duplicate restoration of LR and execute the appropriate one
3156 depending on whether GPRs are being restored inline. Set r11 from
3157 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3158 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3159 Fix out of line calls for AIX ABI.
3160 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3161 New insn.
3162 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3163 register 11.
3164 (*restore_gpregs_spe): Likewise.
3165 (*return_and_restore_gpregs_spe): Likewise.
3166 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3167 Define to empty string unconditionally.
3168 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3169 Define to empty string unconditionally.
3170 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3171 !TARGET_64BIT.
3172
3173 2009-09-15 Jan Hubicka <jh@suse.cz>
3174
3175 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3176 * params.def (inline-insns-auto): Likewise.
3177
3178 2009-09-15 Martin Jambor <mjambor@suse.cz>
3179
3180 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3181 individual statements only at TDF_DETAILS dump level. Format
3182 source for 80 characters per line.
3183
3184 2009-09-15 Christian Bruel <christian.bruel@st.com>
3185
3186 * regrename.c (do_replace): Update REG_DEAD notes.
3187
3188 2009-09-15 Revital Eres <eres@il.ibm.com>
3189
3190 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3191 * targhooks.c (default_builtin_support_vector_misalignment):
3192 New builtin function.
3193 * targhooks.h (default_builtin_support_vector_misalignment):
3194 Declare.
3195 * target.h (builtin_support_vector_misalignment):
3196 New field in struct gcc_target.
3197 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3198 new builtin function.
3199 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3200 Define.
3201 * config/rs6000/rs6000.c
3202 (rs6000_builtin_support_vector_misalignment): New function.
3203 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3204
3205 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3206
3207 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3208 instead of INSN_P.
3209 (bfin_optimize_loop): Likewise.
3210 (bfin_gen_bundles): Likewise.
3211 (workaround_speculation): Likewise.
3212 (find_load): Return NULL_RTX for debug_insn.
3213
3214 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3215
3216 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3217 (sminsf3): Ditto.
3218
3219 2009-09-14 DJ Delorie <dj@redhat.com>
3220
3221 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3222 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3223 VLIW mode.
3224
3225 2009-09-14 Richard Henderson <rth@redhat.com>
3226 Jakub Jelinek <jakub@redhat.com>
3227
3228 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3229 * cfgbuild.c (make_edges): Handle asm goto.
3230 * cfglayout.c (fixup_reorder_chain): Likewise.
3231 * cfgrtl.c (patch_jump_insn): Likewise.
3232 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3233 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3234 (gimple_build_asm_vec): Add and use labels parameter.
3235 (gimple_build_asm): Remove.
3236 (walk_gimple_asm): Walk labels too.
3237 * gimple.def (GIMPLE_ASM): Update docs.
3238 * gimple.h: Update decls.
3239 (struct gimple_statement_asm): Change nc to use unsigned char;
3240 add nl member.
3241 (gimple_asm_nlabels): New.
3242 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3243 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3244 into gimple_build_asm_vec.
3245 * jump.c (mark_jump_label_asm): New.
3246 (mark_jump_label): Use it.
3247 (redirect_jump_1): Handle asm goto.
3248 (invert_jump_1): Soft fail if X is null.
3249 * recog.c (extract_asm_operands): New.
3250 (asm_noperands): Use it; handle asm labels.
3251 (decode_asm_operands): Use extract_asm_operands.
3252 (asm_operand_ok): Properly handle empty string.
3253 * reg-stack.c (get_asm_operands_in_out): Rename from
3254 get_asm_operand_n_inputs; use extract_asm_operands; return both
3255 inputs and outputs by reference; update all callers.
3256 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3257 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3258 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3259 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3260 (extract_asm_operands): Declare.
3261 * stmt.c (expand_asm_operands): Add and use labels parameter.
3262 (check_unique_operand_names): Likewise.
3263 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3264 (expand_asm_stmt): Handle asm labels.
3265 * tree-cfg.c (make_gimple_asm_edges): New.
3266 (make_edges): Use it.
3267 (cleanup_dead_labels): Handle asm labels.
3268 (is_ctrl_altering_stmt): Likewise.
3269 (gimple_redirect_edge_and_branch): Likewise.
3270 * tree.def (ASM_EXPR): Add 5th operand.
3271 * tree.h (ASM_LABELS): New.
3272 (resolve_asm_operand_names): Update decl.
3273
3274 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3275 (c_parser_asm_goto_operands): New.
3276 * c-tree.h (build_asm_expr): Update decl.
3277 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3278 * doc/extend.texi: Document asm goto.
3279
3280 2009-09-14 Richard Henderson <rth@redhat.com>
3281
3282 * except.h: Update declarations.
3283 (struct pointer_map_t): Forward declare.
3284 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3285 (struct eh_landing_pad_d, eh_landing_pad): New.
3286 (struct eh_catch_d, eh_catch): New.
3287 (struct eh_region_d): Remove next_region_sharing_label, aka,
3288 label, tree_label, landing_pad, post_landing_pad, resume,
3289 may_contain_throw. Rename region_number to index. Remove
3290 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3291 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3292 (VEC(eh_landing_pad,gc)): New.
3293 (struct eh_status): Remove last_region_number. Add lp_array,
3294 throw_stmt_table, ttype_data, ehspec_data.
3295 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3296 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3297 * except.c (lang_protect_cleanup_actions): Return tree.
3298 (struct ehl_map_entry): Remove.
3299 (init_eh_for_function): Push zero entries for region and lp_array.
3300 (gen_eh_region): Add to region_array immediately.
3301 (gen_eh_region_catch): Operate on eh_catch objects.
3302 (gen_eh_landing_pad): New.
3303 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3304 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3305 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3306 (get_eh_landing_pad_from_number_fn): New.
3307 (get_eh_landing_pad_from_number): New.
3308 (get_eh_region_from_lp_number_fn): New.
3309 (get_eh_region_from_lp_number): New.
3310 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3311 (get_exception_pointer, get_exception_filter): Remove.
3312 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3313 (current_function_has_exception_handlers): Simplify.
3314 (bring_to_root, eh_region_replaceable_by_p): Remove.
3315 (replace_region, hash_type_list, hash_eh_region): Remove.
3316 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3317 (label_to_region_map, num_eh_regions): Remove.
3318 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3319 (find_exception_handler_labels): Remove.
3320 (duplicate_eh_regions_0, find_prev_try): Remove.
3321 (struct duplicate_eh_regions_data): New.
3322 (duplicate_eh_regions_1): Rewrite.
3323 (duplicate_eh_regions): Return a pointer map instead of an
3324 integer offset.
3325 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3326 (redirect_eh_edge_to_label): Remove.
3327 (eh_region_outermost): Rewrite using eh_region pointers
3328 instead of integers.
3329 (add_ttypes_entry): Update for ttype_data move to eh_status.
3330 (add_ehspec_entry): Rewrite with VEC instead of varray.
3331 (assign_filter_values): Likewise. Export.
3332 (build_post_landing_pads, connect_post_landing_pads): Remove.
3333 (dw2_build_landing_pads): Rewrite to use lp_array.
3334 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3335 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3336 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3337 (sjlj_mark_call_sites): Update for landing pad numbers.
3338 (finish_eh_generation): Rewrite.
3339 (gate_handle_eh): Do nothing for no eh tree.
3340 (pass_rtl_eh): Move up near finish_eh_generation.
3341 (remove_eh_landing_pad): New.
3342 (remove_eh_handler): Export.
3343 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3344 (for_each_eh_label): Rewrite to use lp_array.
3345 (make_reg_eh_region_note): New.
3346 (make_reg_eh_region_note_nothrow_nononlocal): New.
3347 (insn_could_throw_p): New.
3348 (copy_reg_eh_region_note_forward): New.
3349 (copy_reg_eh_region_note_backward): New.
3350 (check_handled, add_reachable_handler): Remove.
3351 (reachable_next_level, foreach_reachable_handler): Remove.
3352 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3353 (get_eh_region_and_lp_from_rtx): New.
3354 (get_eh_region_from_rtx): New.
3355 (can_throw_internal_1, can_throw_external_1): Remove.
3356 (can_throw_internal): Use get_eh_region_from_rtx.
3357 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3358 (insn_nothrow_p, can_nonlocal_goto): New.
3359 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3360 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3361 (add_action_record): Use VEC not varray.
3362 (collect_one_action_chain): Update for eh_region changes.
3363 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3364 Use get_eh_region_and_lp_from_rtx.
3365 (gate_convert_to_eh_region_ranges): New.
3366 (pass_convert_to_eh_region_ranges): Use it.
3367 (push_uleb128, push_sleb128): Use VEC not varray.
3368 (output_one_function_exception_table): Likewise.
3369 (dump_eh_tree): Update for eh_region changes.
3370 (verify_eh_tree): Likewise.
3371 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3372 * tree-eh.c: Include target.h.
3373 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3374 Don't disallow GIMPLE_RESX; adjust argument check.
3375 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3376 (record_stmt_eh_region): Update for landing pad numbers;
3377 generate a landing pad if necessary.
3378 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3379 (remove_stmt_from_eh_lp_fn): Similarly.
3380 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3381 Update for lp numbers; don't special case missing throw_stmt_table.
3382 (lookup_expr_eh_lp): Similarly.
3383 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3384 (eh_seq, eh_region_may_contain_throw): New.
3385 (struct leh_state): Add ehp_region.
3386 (struct leh_tf_state): Remove eh_label.
3387 (emit_post_landing_pad): New.
3388 (emit_resx, emit_eh_dispatch): New.
3389 (note_eh_region_may_contain_throw): New.
3390 (frob_into_branch_around): Take eh_region not eh label;
3391 emit eh code into eh_seq.
3392 (honor_protect_cleanup_actions): Early exit for no actions. Don't
3393 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
3394 lower_eh_must_not_throw. Emit code to eh_seq.
3395 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3396 (lower_try_finally_onedest): Likewise.
3397 (lower_try_finally_copy): Likewise.
3398 (lower_try_finally_switch): Likewise.
3399 (lower_try_finally): Initialize ehp_region.
3400 (lower_catch): Update for eh_catch objects.
3401 (lower_eh_filter): Don't handle must_not_throw.
3402 (lower_eh_must_not_throw): New.
3403 (lower_cleanup): Don't set eh_label.
3404 (lower_eh_constructs_2): Resolve eh builtins.
3405 Handle GIMPLE_EH_MUST_NOT_THROW.
3406 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3407 Add eh_seq to the end of the function body.
3408 (make_eh_dispatch_edges): New.
3409 (make_eh_edge): Remove.
3410 (make_eh_edges): Simplify for landing pads.
3411 (redirect_eh_edge_1): New.
3412 (redirect_eh_edge): Use it.
3413 (redirect_eh_dispatch_edge): New.
3414 (stmt_could_throw_p): Use a switch. Allow RESX.
3415 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3416 (stmt_can_throw_internal): Likewise.
3417 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3418 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3419 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3420 (gate_refactor_eh): New.
3421 (pass_refactor_eh): Use it.
3422 (lower_resx, execute_lower_resx, pass_lower_resx): New.
3423 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3424 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3425 (remove_unreachable_handlers): Rename from
3426 tree_remove_unreachable_handlers; rewrite for landing pads;
3427 call remove_eh_handler directly.
3428 (remove_unreachable_handlers_no_lp): New.
3429 (unsplit_eh, unsplit_all_eh): New.
3430 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3431 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3432 (cleanup_empty_eh_unsplit): New.
3433 (cleanup_empty_eh): Rewrite.
3434 (cleanup_all_empty_eh): New.
3435 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
3436 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
3437 (gate_cleanup_eh): New.
3438 (pass_cleanup_eh): Use it.
3439 (verify_eh_edges): Move later in file. Expect one EH edge.
3440 (verify_eh_dispatch_edge): New.
3441
3442 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3443 (gtype-desc.o): Add TARGET_H.
3444 (tree.o): Use EXCEPT_H, not except.h.
3445 (cfgbuild.o): Add EXPR_H.
3446 (GTFILES): Add vecprim.h.
3447 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3448 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3449 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3450 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3451 * calls.c (emit_call_1): Use make_reg_eh_region_note.
3452 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3453 calls to can_throw_internal.
3454 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3455 (make_edges): Don't handle RESX; use can_nonlocal_goto.
3456 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3457 (expand_gimple_stmt): Use make_reg_eh_region_note.
3458 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3459 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3460 or find_exception_handler_labels.
3461 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
3462 there is exacly one EH edge. Use can_nonlocal_goto and
3463 can_throw_internal.
3464 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3465 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3466 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3467 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3468 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3469 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3470 * dse.c (scan_insn): Use insn_could_throw_p.
3471 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3472 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3473 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3474 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3475 EXC_PTR_EXPR or FILTER_EXPR.
3476 (tree_expr_nonzero_warnv_p): Likewise.
3477 * function.h: Include vecprim.h, not varray.h
3478 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3479 move ttype_data and ehspec_data members to struct eh_status; change
3480 action_record_data member to a VEC.
3481 * gcse.c (hash_scan_set): Use can_throw_internal.
3482 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3483 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3484 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3485 (block_may_fallthru): Don't handle RESX_EXPR.
3486 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3487 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3488 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3489 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3490 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3491 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3492 (gimple_size): Likewise.
3493 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3494 (gimple_build_resx): Use gimple_build_with_ops.
3495 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3496 (is_gimple_val): Likewise.
3497 (is_gimple_stmt): Remove RESX_EXPR.
3498 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3499 (GIMPLE_RESX): Reorder with other EH constructs.
3500 * gimple.h (struct gimple_statement_eh_mnt): New.
3501 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3502 (gimple_eh_filter_must_not_throw): Remove.
3503 (gimple_eh_filter_set_must_not_throw): Remove.
3504 (gimple_eh_must_not_throw_fndecl): New.
3505 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3506 (is_gimple_resx): New.
3507 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3508 Don't copy EH_FILTER_MUST_NOT_THROW.
3509 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3510 * ipa-inline.c (estimate_function_body_sizes): Don't try to
3511 handle must_not_throw_labels specially.
3512 * ipa-pure-const.c (check_call): Update debug statement for LP.
3513 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3514 * ipa-utils.c (get_base_var): Likewise.
3515 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3516 * lower-subreg.c (move_eh_region_note): Remove.
3517 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3518 * omp-low.c (new_omp_context): Update for eh_lp_nr.
3519 (create_task_copyfn): Likewise.
3520 (maybe_catch_exception): Use gimple_build_eh_filter.
3521 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3522 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
3523 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3524 and pass_lower_resx.
3525 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3526 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3527 can_throw_internal, can_nonlocal_goto.
3528 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3529 copy_reg_eh_region_note_forward.
3530 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3531 (emit_output_reload_insns): Likewise.
3532 (copy_eh_notes): Remove.
3533 * rtl.def (RESX): Remove.
3534 * rtl.h: Update declarations.
3535 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3536 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3537 (update_eh_label): Remove.
3538 (cleanup_dead_labels_eh): New.
3539 (cleanup_deal_labels): Use it instead of update_eh_label.
3540 (gimple_merge_blocks): Update landing pad data structure when
3541 removing a landing pad label.
3542 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3543 test; handle GIMPLE_EH_MUST_NOT_THROW.
3544 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3545 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3546 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3547 (verify_stmt): Likewise. Verify landing pads.
3548 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3549 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3550 (struct move_stmt_d): Add eh_map.
3551 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3552 (move_stmt_r): Remap eh region numbers in builtin calls,
3553 resx and eh_dispatch.
3554 (move_block_to_fn): Remove eh_offset parameter. Use
3555 maybe_duplicate_eh_stmt_fn.
3556 (find_outermost_region_in_block): Operate on eh_region pointers
3557 instead of region numbers.
3558 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3559 duplicate_eh_regions.
3560 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3561 test earlier. Disallow EH landing pads.
3562 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3563 * tree-flow.h: Update declarations.
3564 (struct tree_ann_common_d): Replace rn with lp_nr.
3565 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3566 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3567 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3568 resx and eh_dispatch.
3569 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3570 (copy_edges_for_bb): Use make_eh_dispatch_edges.
3571 (copy_cfg_body): Expect eh_map instead of eh_region_offset
3572 from duplicate_eh_regions.
3573 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3574 update RESX; handle EH_DISPATCH.
3575 (expand_call_inline): Set eh_lp_nr, not eh_region.
3576 (maybe_inline_call_in_expr): Likewise.
3577 * tree-inline.h (struct copy_body_data): Replace eh_region with
3578 eh_lp_nr, eh_region_offset with eh_map.
3579 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3580 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3581 * tree-pretty-print.c (dump_generic_node): Don't handle
3582 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3583 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3584 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3585 EXC_PTR_EXPR, FILTER_EXPR.
3586 * tree-ssa-operands.c (get_expr_operands): Likewise.
3587 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3588 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3589 (ao_ref_init_from_vn_reference): Likewise.
3590 * tree-ssa-sink.c (statement_sink_location): Likewise.
3591 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3592 (mark_virtual_phi_result_for_renaming): Export. Tidy.
3593 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3594 EXC_PTR_EXPR, FILTER_EXPR.
3595 (is_exception_related): Remove.
3596 (compute_avail): Don't call it.
3597 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3598 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3599 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3600 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3601 Build EH builtins.
3602 (build_resx): Remove.
3603 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3604 * tree.h: Update declarations.
3605 (EH_FILTER_MUST_NOT_THROW): Remove.
3606 (struct tree_label_decl): Add eh_landing_pad_nr.
3607 (EH_LANDING_PAD_NR): New.
3608 * value-prof.c (gimple_ic): Tidy variable names. Update for
3609 landing pad numbers.
3610 (gimple_stringop_fixed_value): Tidy variable names. Assert
3611 that neither call stmt can throw.
3612 * vecprim.h (uchar): New.
3613 (VEC(uchar,heap), VEC(uchar,gc)): New.
3614
3615 * c-common.c (c_define_builtins): Update call to
3616 build_common_builtin_nodes.
3617 * c-parser.c (c_parse_file): Don't call
3618 default_init_unwind_resume_libfunc.
3619
3620 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3621
3622 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3623 (mips_cprestore_address_p): Likewise.
3624 (mips_save_gp_to_cprestore_slot): Likewise.
3625 (mips_restore_gp): Rename to...
3626 (mips_restore_gp_from_cprestore_slot): ...this.
3627 (mips_must_initialize_gp_p): Declare.
3628 (mips_emit_save_slot_move): Likewise.
3629 (mips_output_load_label): Return nothing.
3630 (mips_eh_uses): Declare.
3631 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3632 (TARGET_CPRESTORE_DIRECTIVE): New macro.
3633 (TARGET_ABSOLUTE_JUMPS): Likewise.
3634 (EH_USES): Likewise.
3635 (FIRST_PSEUDO_REGISTER): Update comment.
3636 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3637 (MIPS_CALL): ...here.
3638 (REGISTER_NAMES): Add $cprestore.
3639 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3640 Add load_label_length, has_inflexible_gp_insn_p,
3641 has_flexible_gp_insn_p, must_initialize_gp_p and
3642 must_restore_gp_when_clobbered_p.
3643 (mips_expand_call): Don't generate split instructions here.
3644 (mips_split_call): Update the call to mips_restore_gp after
3645 the above name change.
3646 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3647 (mips_find_gp_ref): New function.
3648 (mips_insn_has_inflexible_gp_ref_p): Likewise.
3649 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3650 (mips_insn_has_flexible_gp_ref_p): Likewise.
3651 (mips_cfun_has_flexible_gp_ref_p): Likewise.
3652 (mips_function_has_gp_insn): Delete.
3653 (mips_global_pointer): Drop the df_regs_ever_live_p check.
3654 Use the new functions above. Only return INVALID_REGNUM
3655 for TARGET_ABSOLUTE_JUMPS.
3656 (mips_must_initialize_gp_p): New function.
3657 (mips_get_cprestore_base_and_offset): New function, extracted from...
3658 (mips_cprestore_slot): ...here. Take a bool parameter.
3659 (mips_cfun_has_cprestore_slot_p): New function.
3660 (mips_cprestore_address_p): Likewise.
3661 (mips_save_gp_to_cprestore_slot): Likewise.
3662 (mips_restore_gp): Rename to...
3663 (mips_restore_gp_from_cprestore_slot): ...this. Assert
3664 epilogue_completed. Update the call to mips_cprestore_slot.
3665 Test cfun->machine->must_restore_gp_when_clobbered_p.
3666 (mips_direct_save_slot_move_p): New function.
3667 (mips_emit_save_slot_move): Likewise.
3668 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3669 of cfun->machine->global_pointer.
3670 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3671 (mips_save_reg): Use mips_emit_save_slot_move.
3672 (mips_expand_prologue): Set must_initialize_gp_p.
3673 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
3674 for all cprestore saves. Emit a use_cprestore instruction after
3675 setting up the cprestore slot.
3676 (mips_restore_reg): Use mips_emit_save_slot_move.
3677 (mips_process_load_label): New function.
3678 (mips_load_label_length): Likewise.
3679 (mips_output_load_label): Don't return asm: output it here instead.
3680 Use mips_process_load_label.
3681 (mips_adjust_insn_length): Adjust the length of branch instructions
3682 that have length MAX_PIC_BRANCH_LENGTH.
3683 (mips_output_conditional_branch): Update the call to
3684 mips_output_load_label. Assume the branch target is OPERANDS[0]
3685 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3686 (mips_output_order_conditional_branch): Swap the meaning of
3687 OPERANDS[0] and OPERANDS[1].
3688 (mips_variable_issue): Don't count ghost instructions.
3689 (mips_expand_ghost_gp_insns): New function.
3690 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3691 (mips_output_mi_thunk): Set must_initialize_gp_p.
3692 (mips_eh_uses): New function.
3693 * config/mips/predicates.md (cprestore_save_slot_operand)
3694 (cprestore_load_slot_operand): New predicates.
3695 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3696 (UNSPEC_MOVE_GP): Likewise.
3697 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3698 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3699 (CPRESTORE_SLOT_REGNUM): New register.
3700 (MAX_PIC_BRANCH_LENGTH): New constant.
3701 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3702 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3703 branches. Fix commentary.
3704 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3705 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3706 Change type to "ghost".
3707 (loadgp_absolute_<mode>): Likewise.
3708 (loadgp_rtp_<mode>): Likewise.
3709 (copygp_mips16): Likewise.
3710 (loadgp_blockage): Remove redundant mode attribute.
3711 (potential_cprestore): New instruction.
3712 (cprestore): Turn into an unspec set.
3713 (use_cprestore): New instruction.
3714 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
3715 (*branch_fp_inverted): Likewise.
3716 (*branch_order<mode>): Likewise.
3717 (*branch_order<mode>_inverted): Likewise.
3718 (*branch_equality<mode>): Likewise.
3719 (*branch_equality<mode>_inverted): Likewise.
3720 (*branch_bit<bbv><mode>): Likewise.
3721 (*branch_bit<bbv><mode>_inverted): Likewise.
3722 (*branch_equality<mode>_mips16): Remove redundant mode.
3723 (jump): Turn into a define_expand.
3724 (*jump_absolute): New instruction.
3725 (*jump_pic): Likewise.
3726 (*jump_mips16): Rename previously-unnamed pattern. Remove
3727 redundant mode attribute.
3728 (restore_gp): Split on epilogue_completed rather than
3729 reload_completed. Change type to "ghost".
3730 (move_gp<mode>): New instruction.
3731 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3732 Remove redundant mode attribute.
3733 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3734 (bc1any4f, bc1any2t, bc1any2f): Likewise.
3735 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3736
3737 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3738
3739 PR target/41210
3740 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3741 are returned in the same register (vs34 or v2) that Altivec vector
3742 types are returned in.
3743 (rs6000_libcall_value): Ditto.
3744
3745 PR target/41331
3746 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3747 instead of explicit addsi3/adddi3 calls.
3748 (rs6000_split_multireg_move): Ditto.
3749 (rs6000_emit_allocate_stack): Ditto.
3750 (rs6000_emit_prologue): Ditto.
3751 (rs6000_output_mi_thunk): Ditto.
3752
3753 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3754 size is 64 bits if we can use 64-bit registers.
3755
3756 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
3757
3758 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3759 symbols.
3760
3761 From Jie Zhang <jie.zhang@analog.com>:
3762 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3763 save FP and RETS with saveall attribute.
3764 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3765 with saveall attribute.
3766
3767 * config/bfin/bfin.c (bfin_expand_builtin,
3768 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3769 operands.
3770
3771 From Jie Zhang <jie.zhang@analog.com>:
3772 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3773 before use in two places.
3774 * config/bfin/bfin.md (AREG): Define mode iterator.
3775 (reload_in, reload_out): Use mode iterator AREG.
3776
3777 2009-09-14 Richard Guenther <rguenther@suse.de>
3778
3779 PR middle-end/41350
3780 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3781 EH personality path.
3782
3783 2009-09-13 Richard Guenther <rguenther@suse.de>
3784 Rafael Avila de Espindola <espindola@google.com>
3785
3786 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3787 (LANG_HOOKS_EH_PERSONALITY): Likewise.
3788 (LANG_HOOKS_INITIALIZER): Adjust.
3789 (lhd_pass_through_t): Declare.
3790 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3791 eh_personality.
3792 * langhooks.c (lhd_pass_through_t): New function.
3793 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3794 dwarf2out_begin_prologue): Use personality from current_function_decl.
3795 * expr.h (get_personality_function): Declare.
3796 * expr.c (get_personality_function): New function.
3797 (build_personality_function): Likewise.
3798 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3799 (eh_personality_libfunc): Remove.
3800 * optabs.c (build_libfunc_function): New function split out from ...
3801 (init_one_libfunc): ... here.
3802 * tree.h (DECL_FUNCTION_PERSONALITY): New.
3803 (tree_function_decl): Add personality.
3804 (lhd_gcc_personality): Declare.
3805 (build_personality_function): Likewise.
3806 * tree.c (gcc_eh_personality_decl): New.
3807 (lhd_gcc_personality): New function.
3808 * except.h (lang_eh_runtime_type): Remove.
3809 (enum eh_personality_kind): New.
3810 (build_personality_function): Declare.
3811 (function_needs_eh_personality): Declare.
3812 * except.c (lang_eh_runtime_type): Remove.
3813 (function_needs_eh_personality): New function.
3814 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3815 (sjlj_emit_function_enter, output_function_exception_table):
3816 Use personality from current_function_decl.
3817 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3818 * tree-inline.c (tree_can_inline_p): Do not inline across different
3819 EH personalities.
3820 (expand_call_inline): Likewise. Adjust the callers EH personality.
3821 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3822 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3823 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3824 (c-parser.o): Likewise
3825 * c-tree.h (c_eh_initialized_p): Remove.
3826 (c_maybe_initialize_eh): Likewise.
3827 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3828 (finish_decl): Don't call c_maybe_initialize_eh.
3829 (c_eh_initialized_p): Remove.
3830 (c_maybe_initialize_eh): Likewise.
3831 * c-parser.c (c_parser_omp_construct): Likewise.
3832 (c_parse_file): Initialize exception handling.
3833
3834 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
3835
3836 * config.gcc (tm_file): Remove i386/biarch32.h
3837 for i?86-w64-mingw* case.
3838 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3839 support.
3840 * config.host: Set for x64 mingw the option
3841 use_long_long_for_widest_fast_int to yes.
3842
3843 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
3844
3845 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3846 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3847 (dbxout_begin_function): Likewise.
3848 * final.c (dwarf2_debug_info_emitted_p): New predicate.
3849 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3850 set on the function.
3851 (final_end_function): Likewise.
3852 (final_scan_insn): Likewise.
3853 (rest_of_handle_final): Likewise.
3854 * varasm.c (assemble_start_function): Likewise.
3855 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3856
3857 2009-09-12 Jason Merrill <jason@redhat.com>
3858
3859 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3860 * opts.c (common_handle_option): constify.
3861
3862 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
3863
3864 * doc/install.texi (avr): Remove obsolete reference site.
3865
3866 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
3867
3868 * doc/install.texi (Binaries): Adjust AIX link.
3869
3870 2009-09-12 Akim Demaille <demaille@gostai.com>
3871
3872 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3873 Use an imperative sentence.
3874
3875 2009-09-11 Richard Henderson <rth@redhat.com>
3876
3877 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3878 structure-name and has-tree-operands arguments; update all entries.
3879 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3880 update all entries.
3881 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3882 (gsstruct_code_size): New.
3883 (gss_for_code_): New.
3884 (gss_for_code): Remove.
3885 (gimple_size): Rewrite using gsstruct_code_size.
3886 (gimple_statement_structure): Move to gimple.h.
3887 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3888 (gss_for_code, gimple_statement_structure): New.
3889 (gimple_ops): Use new arrays; tidy.
3890
3891 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3892
3893 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3894 operand to be a PLUS expression.
3895 * config/pa/pa.c (pa_secondary_reload): Likewise.
3896
3897 2009-09-11 Jakub Jelinek <jakub@redhat.com>
3898
3899 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3900
3901 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3902 XEXP (in_rtx, 8).
3903
3904 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
3905
3906 From Jie Zhang <jie.zhang@analog.com>:
3907 * doc/extend.texi (node Function Attributes): Document l2
3908 function attribute.
3909 (node Blackfin Variable Attributes): Document l2 variable attributes.
3910
3911 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
3912
3913 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
3914 to match the system compiler's configuration at inflection point.
3915 Add comment to remark a remaining difference with system compiler.
3916
3917 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
3918 * configure: Regenerate.
3919
3920 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
3921
3922 From Jie Zhang <jie.zhang@analog.com>:
3923 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
3924 (bfin_handle_l2_attribute): New.
3925 (bfin_attribute_table): Add l2 attribute.
3926
3927 2009-09-11 Michael Matz <matz@suse.de>
3928
3929 PR middle-end/41275
3930 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
3931 on the local_decls list.
3932
3933 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
3934
3935 PR debug/41276
3936 PR debug/41307
3937 * cselib.c (cselib_expand_value_rtx_cb): Document callback
3938 interface.
3939 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
3940 for VALUEs, to implement the documented interface.
3941 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
3942 Adjust for VALUEs and anything else, to implement the
3943 documented interface.
3944
3945 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
3946
3947 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
3948 with actual SPE/paired vector modes before using 64-bit alignment.
3949 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
3950
3951 2009-09-10 DJ Delorie <dj@redhat.com>
3952
3953 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
3954 emitted.
3955
3956 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
3957 * config/mep/mep.c (mep_legitimate_constant_p): New.
3958 * config/mep/mep-protos.h: Prototype it.
3959
3960 2009-09-10 Richard Henderson <rth@redhat.com>
3961
3962 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
3963
3964 2009-09-10 Jason Merrill <jason@redhat.com>
3965
3966 * tree.c (chain_index): New fn.
3967 * tree.h: Declare it.
3968
3969 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3970
3971 * config/sol2-c.c (cmn_err_length_specs): Initialize
3972 scalar_identity_flag.
3973
3974 2009-09-10 Richard Henderson <rth@redhat.com>
3975
3976 * tree.h (struct tree_decl_common): Move align member earlier;
3977 move label_decl_uid member ...
3978 (struct tree_label_decl): ... here.
3979 (LABEL_DECL_UID): Update to match.
3980
3981 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
3982 not TDF_DETAILS.
3983
3984 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
3985 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
3986
3987 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
3988 dest_prev if the edge is complex.
3989
3990 * tree-cfg.c (is_ctrl_stmt): Use a switch.
3991
3992 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
3993 loop latch tests earlier.
3994
3995 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
3996 before GIMPLE_RETURN, not after its predecessor; insert
3997 before GIMPLE_RESX.
3998
3999 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4000 gimple_seq_empty_p to test for no PHI nodes.
4001 * tree-cfg.c (split_critical_edges): Likewise.
4002
4003 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4004
4005 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4006
4007 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4008 introduced by the VTA branch merge.
4009
4010 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4011
4012 * ira-conflicts.c: Use fputs or putc instead of fprintf
4013 where appropriate.
4014 * cfg.c: Ditto.
4015 * toplev.c: Ditto.
4016 * tree-switch-conversion.c: Ditto.
4017
4018 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4019
4020 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4021 introduced by the VTA branch merge.
4022
4023 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4024
4025 Revert:
4026 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4027
4028 PR rtl-optimization/39779
4029 * expr.c (convert_modes): Return when mode == oldmode after
4030 CONST_INTs are processed.
4031
4032 2009-09-10 Nick Clifton <nickc@redhat.com>
4033
4034 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4035 attribute and referring decl when creating renamed symbol.
4036
4037 2009-09-10 Richard Guenther <rguenther@suse.de>
4038
4039 PR middle-end/41257
4040 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4041 reachable nodes.
4042 (cgraph_finalize_compilation_unit): Compute reachability
4043 before emitting thunks. Properly process aliases before
4044 possibly removing unreachable nodes.
4045
4046 2009-09-10 Richard Guenther <rguenther@suse.de>
4047
4048 PR middle-end/41254
4049 * tree.c (struct free_lang_data_d): Add worklist member.
4050 (find_decls_types_r): Push onto the worklist instead of recursing.
4051 Handle TREE_BINFOs properly.
4052 (find_decls_types): New function wrapped around find_decls_types_r
4053 to process the worklist.
4054 (find_decls_types_in_eh_region): Use it.
4055 (find_decls_types_in_node): Likewise.
4056 (find_decls_types_in_var): Likewise.
4057 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4058 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4059 (AGGREGATE_TYPE_P): Adjust.
4060
4061 2009-09-09 Jason Merrill <jason@redhat.com>
4062
4063 * configure.ac: Check glibc version even if we have an in-tree
4064 assembler.
4065
4066 2009-09-09 Anthony Green <green@moxielogic.com>
4067
4068 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4069 the constant 0 when appropriate.
4070 * config/moxie/constraints.md: Add constraint O.
4071
4072 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4073 to pass up to 6 32-bit argument values in registers.
4074 (moxie_function_arg): Ditto.
4075 (moxie_arg_partial_bytes): Ditto.
4076 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4077 (REG_PARM_STACK_SPACE): Ditto.
4078 (FUNCTION_ARG_REGNO_P): Ditto.
4079
4080 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4081 instruction to allocate stack space.
4082
4083 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4084
4085 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4086 unnecessarily stringent constraints. Fix address
4087 calculation in the splitters.
4088
4089 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4090
4091 PR rtl-optimization/39779
4092 * expr.c (convert_modes): Return when mode == oldmode after
4093 CONST_INTs are processed.
4094
4095 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4096
4097 PR/41315
4098 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4099 (ix86_expand_prologue): Take frame.padding0 into logic of
4100 to_allocate checks.
4101 (ix86_expand_epilogue): Likewise.
4102
4103 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4104
4105 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4106 New variables.
4107 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4108 * config/t-slibgcc-libgcc: New file.
4109 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4110
4111 2009-09-09 Martin Jambor <mjambor@suse.cz>
4112
4113 PR tree-optimization/41089
4114 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4115 early SRA.
4116
4117 2009-09-09 Richard Henderson <rth@redhat.com>
4118
4119 * gimple.h (CASE_GIMPLE_OMP): New.
4120 (is_gimple_omp): Use it.
4121 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4122 (verify_gimple_debug): Likewise.
4123
4124 2009-09-09 Richard Guenther <rguenther@suse.de>
4125
4126 PR tree-optimization/41101
4127 * tree-ssa-pre.c (maximal_set): Remove.
4128 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4129 Defer all blocks we didn't visit at least one successor.
4130 (add_to_exp_gen): Do not add to the maximal set.
4131 (make_values_for_phi): Likewise.
4132 (compute_avail): Likewise.
4133 (init_pre): Do not allocate the maximal set.
4134 (execute_pre): Do not dump it.
4135
4136 2009-09-09 Martin Jambor <mjambor@suse.cz>
4137
4138 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4139 an SSA_NAME rather than a is_gimple_variable.
4140
4141 2009-09-09 Richard Guenther <rguenther@suse.de>
4142
4143 PR middle-end/41317
4144 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4145 code dealing with plain pointer bases.
4146 (maybe_fold_offset_to_reference): Likewise.
4147 (maybe_fold_stmt_addition): Adjust.
4148
4149 2009-09-09 Richard Guenther <rguenther@suse.de>
4150
4151 * tree.c (free_lang_data_in_type): Do not free the type variant
4152 chains.
4153 (free_lang_data): Merge char_type_node with its properly signed
4154 variant.
4155 (pass_ipa_free): Collect after freeing language specific data.
4156
4157 2009-09-09 Michael Matz <matz@suse.de>
4158
4159 PR middle-end/41268
4160 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4161 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4162 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4163 to reflect reality.
4164
4165 2009-09-08 DJ Delorie <dj@redhat.com>
4166
4167 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4168
4169 2009-09-04 Jason Merrill <jason@redhat.com>
4170
4171 * tree.c (tree_find_value): Remove.
4172 * tree.h: Remove prototype.
4173 * varasm.c (assemble_external): Use value_member instead.
4174
4175 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4176
4177 * toplev.c (process_options): Choose default debugging type when
4178 gtoggle enables debug info and type is unset.
4179
4180 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4181
4182 PR debug/41276
4183 PR debug/41307
4184 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4185 invalid subreg.
4186
4187 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4188
4189 * configure: Rebuilt with modified libtool.m4.
4190
4191 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4192
4193 PR debug/41229
4194 PR debug/41291
4195 PR debug/41300
4196 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4197
4198 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4199
4200 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4201 (remove_statement): Likewise.
4202 (rewrite_use_nonlinear_expr): Adjust.
4203 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4204 * tree-ssa.c (release_defs_bitset): ... this. New.
4205 * tree-flow.h (release_defs_bitset): Declare.
4206
4207 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4208
4209 PR debug/41232
4210 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4211 in the middle block.
4212
4213 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4214
4215 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4216 via intptr_t to long type.
4217 (insert_operand_rank): Cast long type via intptr_t to
4218 pointer type.
4219 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4220 pointer to scalar.
4221 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4222 from pointer to unsigned via uintptr_t.
4223
4224 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4225 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4226 and HAVE_INTPTR_T.
4227 * configure: Regenerated.
4228 * config.in: Regenerated
4229 * system.h (stdint.h): Add include.
4230 (inttypes.h): Likewise.
4231 * Makefile.in (aclocal): Add config/stdint.m4.
4232 * aclocal.m4: Regenerated.
4233
4234 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4235
4236 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4237 variables.
4238 (note_np_check_stores): New function.
4239 (harmless_null_pointer_p): New function.
4240 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4241 changed. Take into account whether we're in the shadow of a condjump
4242 that tested NP_REG for NULL.
4243 Lose all code that tested for SEQUENCEs.
4244 (workaround_speculation): Avoid inserting NOPs for loads that are
4245 either always executed or a NULL pointer.
4246
4247 2009-09-08 Jan Hubicka <jh@suse.cz>
4248
4249 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4250 * params.def (early-inlining-insns): Likewise.
4251
4252 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4253
4254 PR rtl-optimization/41239
4255 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4256 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4257 lists.
4258 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4259 across calls, as the calls might not always return normally.
4260 (call_may_noreturn_p): New function.
4261 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4262 (init_deps): Initialize it.
4263 (remove_from_deps): Also remove calls from
4264 last_function_call_may_noreturn list.
4265
4266 2009-09-07 Richard Henderson <rth@redhat.com>
4267
4268 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4269 more VR->OPERANDS than LHS operands. Free LHS before returning.
4270
4271 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4272
4273 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4274 (attr "addrtype"): New member "spreg".
4275 Use it if mem_spfp_address_operand is true for the address.
4276 (attr "type"): New entry "stall".
4277 (cpu_unit "load"): New.
4278 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4279 "load".
4280 (insn_reservation "loadsp"): New.
4281 (insn_reservation "load_stall1"): New.
4282 (insn_reservation "load_stall3"): New.
4283 (stall): New insn.
4284 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4285 (mem_p_address_operand): Exclude stack and frame pointer based
4286 addresses.
4287 (mem_spfp_address_operand): New; match them here.
4288 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4289 (bfin_reorg): Call it if scheduling insns.
4290 (bfin_gen_bundles): Remove dummy insns created by
4291 add_sched_insns_for_speculation.
4292
4293 From Jie Zhang <jie.zhang@analog.com>:
4294 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4295 bfin_si_revision, bfin_workarounds): Move these ...
4296 * config/bfin/bfin.h: ... here.
4297
4298 From Mike Frysinger <michael.frysinger@analog.com>
4299 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4300 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4301 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4302 bf547m, bf548m, and bf549m.
4303 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4304 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4305 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4306 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4307 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4308 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4309 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4310 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4311 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4312 bf542m, bf544m, bf547m, bf548m, and bf549m.
4313
4314 From Jie Zhang <jie.zhang@analog.com>:
4315 * config/bfin/predicates.md (p_register_operand): New predicate.
4316 (dp_register_operand): New predicate.
4317 * config/bfin/bfin-protos.h (WA_05000074): Define.
4318 (ENABLE_WA_05000074): Define.
4319 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4320 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4321 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4322 (define_attr addrtype): Allow load/store register to be P register.
4323 (define_attr storereg): New.
4324 (define_cpu_unit anomaly_05000074): New.
4325 (define_insn_reservation dsp32shiftimm): New.
4326 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4327 (define_insn_reservation loadp): Cannot use slot2.
4328 (define_insn_reservation loadsp): Cannot use slot2.
4329 (define_insn_reservation storep): Cannot use slot2. Does not
4330 apply when working around 05000074.
4331 (define_insn_reservation storep_anomaly_05000074): New.
4332 (define_insn_reservation storei): Does not apply when working
4333 around 05000074.
4334 (define_insn_reservation storei_anomaly_05000074): New.
4335 (define_attr length): Add dsp32shiftimm case.
4336 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4337 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4338 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4339 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4340 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4341
4342 2009-09-07 Martin Jambor <mjambor@suse.cz>
4343
4344 PR middle-end/41282
4345 * tree-sra.c (create_artificial_child_access): Return NULL if
4346 build_ref_for_offset fails.
4347 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4348 and create_artificial_child_access to fail.
4349
4350 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4351
4352 PR c++/41214
4353 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4354 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4355 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4356
4357 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4358
4359 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4360 block, ensure it has an exit edge. Emit a barrier after a jump.
4361
4362 2009-09-07 Nick Clifton <nickc@redhat.com>
4363
4364 * gcc.c (this_is_linker_script): New variable. Like
4365 this_is_library_file but for the %T constructor.
4366 (end_going_arg): If this_is_linker_script is set then locate the
4367 script and insert a --script switch before it
4368 (do_spec_2): Initialise this_is_linker_script.
4369 (do_spec_1): Likewise. Handle %T construct.
4370 (eval_spec_function): Preserve this_is_linker_script.
4371 * doc/invoke.texi: Document %T construct in spec files.
4372 * config/m32c/m32c.h (LIB_SPEC): Use it.
4373
4374 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4375
4376 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4377 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4378 when volatile flag is set.
4379 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4380
4381 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
4382
4383 PR bootstrap/41241
4384 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4385 (combine_stack_adjustments_for_block): Allow insns between stack
4386 adjustments and stores with corresponding pre-(dec|inc)rement or
4387 pre-modify operation.
4388
4389 2009-09-06 Jakub Jelinek <jakub@redhat.com>
4390
4391 PR bootstrap/41241
4392 * combine-stack-adj.c (struct csa_memlist): Rename to...
4393 (struct csa_reflist): ... this. Rename mem field to ref.
4394 (free_csa_memlist): Rename to...
4395 (free_csa_reflist): ... this.
4396 (record_one_stack_memref): Rename to...
4397 (record_one_stack_ref): ... this. Handle also REG_P.
4398 (try_apply_stack_adjustment): Handle also REG_P.
4399 (struct record_stack_memrefs_data): Rename to...
4400 (struct record_stack_refs_data): ... this. Rename memlist field to
4401 reflist.
4402 (record_stack_memrefs): Rename to...
4403 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
4404 subexpressions instead of failing when a MEM contains SP references.
4405 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4406 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4407
4408 2009-09-06 Richard Guenther <rguenther@suse.de>
4409
4410 PR middle-end/41144
4411 * tree.c (build_array_type): Do not record types marked
4412 with structural equality in the canonical type hashtable.
4413
4414 2009-09-06 Richard Guenther <rguenther@suse.de>
4415
4416 PR middle-end/41261
4417 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4418
4419 2009-09-05 Richard Guenther <rguenther@suse.de>
4420
4421 PR middle-end/41181
4422 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4423
4424 2009-09-05 Richard Guenther <rguenther@suse.de>
4425
4426 PR debug/41273
4427 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4428
4429 2009-09-05 Richard Guenther <rguenther@suse.de>
4430
4431 PR middle-end/41271
4432 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4433 before comparing function argument types.
4434
4435 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4436
4437 PR target/41024
4438 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4439 the assembler.
4440
4441 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4442
4443 Revert:
4444 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
4445
4446 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4447 locators before emit_insn is called.
4448
4449 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
4450
4451 PR bootstrap/41241
4452 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4453 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4454 (reginfo_init): Don't call allocate_reg_info.
4455
4456 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4457
4458 PR target/41262
4459 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4460 NONDEBUG_INSN_P instead of INSN_P.
4461
4462 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4463
4464 PR debug/41225
4465 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4466
4467 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4468
4469 PR target/41252
4470 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4471 pattern of the split.
4472
4473 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4474
4475 * toplev.c (process_options): Move setter of flag_var_tracking
4476 before other tests that depend on it. Move down setter of
4477 flag_rename_registers. Don't enable var-tracking-assignments
4478 by default if selective scheduling is enabled. Warn if both
4479 are enabled.
4480
4481 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4482
4483 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4484 comment. Use switch statement to catch overlaps between rtx
4485 and tree codes. Accept FUNCTION_DECLs in addition to those in...
4486 (IS_DECL_CODE): ... here. Remove.
4487 (check_value_is_not_decl): Remove.
4488 (dv_from_decl, dv_from_value): Check after conversion.
4489
4490 2009-09-04 Richard Guenther <rguenther@suse.de>
4491
4492 PR middle-end/41257
4493 * (cgraph_finalize_compilation_unit): Move finalizing aliases
4494 after emitting tunks. Move emitting thunks and ctors from ...
4495 (cgraph_optimize): ... here. Remove redundant
4496 cgraph_analyze_functions.
4497 * varasm.c (find_decl_and_mark_needed): Remove no longer
4498 necessary check.
4499 (finish_aliases_1): Adjust check for thunk aliases.
4500
4501 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
4502
4503 * config/arm/arm.md (ctzsi2): Added braces
4504 to avoid warning that broke booststrap.
4505
4506 2009-09-04 Martin Jambor <mjambor@suse.cz>
4507
4508 PR tree-optimization/41112
4509 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4510 handle variable-bounded arrays.
4511 (expr_with_var_bounded_array_refs_p): New function.
4512 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4513
4514 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
4515
4516 * config/s390/2097.md: Removed two incorrect bypasses.
4517 (z10_fsimpdf): Fixed latency.
4518 (z10_fhex): New insn_reservation.
4519 (z10_floaddf): Fixed latency.
4520 (z10_floadsf): Fixed latency.
4521 (z10_ftrunctf): Fixed latency.
4522 (z10_ftruncdf): Fixed latency.
4523 * config/s390/s390.c (z10_cost): Fixed values.
4524 (s390_adjust_priority): Added z10 path.
4525 * config/s390/s390.md (type): Added fhex.
4526 (*mov<mode>_64dfp): Updated type attribute.
4527 (*mov<mode>_64): Updated type attribute.
4528 (*mov<mode>_31): Updated type attribute.
4529 (*mov<mode>"): Likewise.
4530 * config/s390/2084.md (x_fsimpdf): Updated condition.
4531
4532 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
4533
4534 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4535 RTXs in the predicate for operand 1.
4536
4537 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
4538
4539 * config/arm/arm.md (UNSPEC_RBIT): New constant.
4540 (rbitsi2): New insn.
4541 (ctzsi2): New expand.
4542 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4543
4544 2009-09-03 Martin Jambor <mjambor@suse.cz>
4545
4546 * tree-sra.c (duplicate_expr_for_different_base): Removed.
4547 (create_artificial_child_access): Use build_ref_for_offset instead
4548 of duplicate_expr_for_different_base.
4549 (propagate_subacesses_accross_link): Likewise.
4550
4551 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
4552
4553 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4554 of INSN_P.
4555 (mips16e_collect_argument_saves): Skip debug instructions.
4556 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4557 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4558 (r10k_insert_cache_barriers): Likewise.
4559 (mips_reorg_process_insns): Likewise.
4560
4561 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
4562
4563 PR bootstrap/41241
4564 * ira.c (update_equiv_reg): Remove check on class likely spill.
4565
4566 2009-09-03 Jakub Jelinek <jakub@redhat.com>
4567
4568 PR debug/41236
4569 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4570 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
4571 it or SUBREG.
4572
4573 PR debug/41238
4574 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4575 the stack slot if it is passed by invisible reference.
4576 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4577 by invisible reference.
4578
4579 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
4580
4581 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4582 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4583 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4584 0.
4585 * config/bfin/sync.md: New file.
4586 * config/bfin/bfin.md: Include it.
4587 (UNSPEC_ATOMIC): New.
4588 (UNSPEC_ONES): Provide a unique number.
4589
4590 From Jie Zhang <jie.zhang@analog.com>:
4591 * config/bfin/bfin.c (ret_regs): New.
4592 (must_save_fp_p): Don't return true because of frame_pointer_needed.
4593 (must_save_rets_p): New.
4594 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4595 current_function_is_leaf.
4596 (do_link): Likewise.
4597 (do_unlink): Likewise.
4598 (expand_interrupt_handler_prologue): Use ret_regs array.
4599 (expand_interrupt_handler_epilogue): Use ret_regs array and
4600 pass return register to gen_return_internal.
4601 (bfin_expand_epilogue): Pass return register to
4602 gen_return_internal.
4603 (bfin_expand_call): Explicitly clobber RETS.
4604 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4605 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4606 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4607 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4608 RETS.
4609 (return_internal): Take a reg rtx rather than the register number.
4610
4611 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
4612
4613 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4614 when comparing against estimated_loop_iterations_int return.
4615
4616 2009-09-03 Richard Guenther <rguenther@suse.de>
4617
4618 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4619 eh_personality_libfunc.
4620
4621 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4622
4623 * tree-parloops.c (separate_decls_in_region): Add space.
4624
4625 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4626
4627 * tree-parloops.c (separate_decls_in_region): Change the condition
4628 checking if there are reductions in the loop.
4629
4630 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4631
4632 PR tree-optimization/38275
4633 * tree-parloops.c (parallelize_loops): Replace profitability condition
4634 for expected number of iterations.
4635
4636 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
4637
4638 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4639 (bootstrap-debug): Explain conditions in which it becomes default.
4640 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4641 make it add to it.
4642
4643 2009-09-03 Namhyung Kim <namhyung@gmail.com>
4644
4645 * doc/invoke.texi (Optimize Options): Move
4646 -finline-small-functions to the -O2 list.
4647
4648 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
4649
4650 * toplev.c (process_options): Enable var-tracking-assignments
4651 by default if var-tracking is enabled.
4652
4653 2009-09-02 David Daney <ddaney@caviumnetworks.com>
4654
4655 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4656 barrier.
4657 * emit-rtl.c (prev_nonnote_insn_bb): New function.
4658 * rtl.h (prev_nonnote_insn_bb): Declare it.
4659
4660 2009-09-03 Diego Novillo <dnovillo@google.com>
4661
4662 * cgraph.c (cgraph_node_for_decl): New.
4663 * cgraph.h (cgraph_node_for_decl): Declare.
4664 * tree.c (host_integerp): Return 0 if T is NULL.
4665
4666 2009-09-03 Diego Novillo <dnovillo@google.com>
4667
4668 * tree.h (struct alias_pair): Move from varasm.c.
4669 (alias_pairs): Likewise.
4670 (TYPE_MAXVAL): Define.
4671 (TYPE_MINVAL): Define.
4672 (iterative_hash_host_wide_int): Declare.
4673 (remove_unreachable_alias_pairs): Declare.
4674 * tree-pass.h (pass_ipa_free_lang_data): Declare.
4675 * diagnostic.c (default_diagnostic_starter): Make extern.
4676 (default_diagnostic_finalizer): Make extern.
4677 * diagnostic.h (default_diagnostic_starter): Declare.
4678 (default_diagnostic_finalizer): Declare.
4679 (default_tree_printer): Declare.
4680 * toplev.c (default_tree_printer): Make extern.
4681
4682 2009-09-03 Richard Guenther <rguenther@suse.de>
4683 Diego Novillo <dnovillo@google.com>
4684
4685 * cgraph.c (cgraph_add_new_function): Remove gimplification.
4686 * cgraphunit.c (cgraph_expand_function): Do not emit
4687 associated thunks from here.
4688 (cgraph_emit_thunks): New.
4689 (cgraph_optimize): Call it.
4690 Return if any IPA pass finds an error.
4691 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
4692 by thunks.
4693
4694 2009-09-03 Simon Baldwin <simonb@google.com>
4695 Rafael Espindola <espindola@google.com>
4696 Richard Guenther <rguenther@suse.de>
4697 Doug Kwan <dougkwan@google.com>
4698 Diego Novillo <dnovillo@google.com>
4699
4700 * tree.c: Include tree-pass.h, langhooks-def.h,
4701 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
4702 (free_lang_data_in_type): New.
4703 (need_assembler_name_p): New.
4704 (free_lang_data_in_block): New.
4705 (free_lang_data_in_decl): New.
4706 (struct free_lang_data_d): New.
4707 (add_tree_to_fld_list): New.
4708 (find_decls_types_r): New.
4709 (get_eh_types_for_runtime): New.
4710 (find_decls_types_in_eh_region): New.
4711 (find_decls_types_in_node): New.
4712 (find_decls_types_in_var): New.
4713 (free_lang_data_in_cgraph): New.
4714 (free_lang_data): New.
4715 (gate_free_lang_data): New.
4716 (pass_ipa_free_lang_data): New.
4717
4718 2009-09-03 Diego Novillo <dnovillo@google.com>
4719
4720 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
4721 * langhooks.h (struct lang_hooks): Add field free_lang_data.
4722 (lang_hooks): Remove const qualifier.
4723 * ipa.c (cgraph_remove_unreachable_nodes): Call
4724 remove_unreachable_alias_pairs.
4725 * except.c (add_type_for_runtime): Check if TYPE has
4726 already been converted.
4727 (lookup_type_for_runtime): Likewise.
4728 (check_handled): Handle converted types.
4729 * varasm.c (remove_unreachable_alias_pairs): New.
4730 * gimple.c: Include demangle.h.
4731 (gimple_decl_printable_name): New.
4732 (gimple_fold_obj_type_ref): New.
4733 * gimple.h (gimple_decl_printable_name): Declare.
4734 (gimple_fold_obj_type_ref): Declare.
4735 * passes.c (init_optimization_passes): Add pass
4736 pass_ipa_free_lang_data.
4737 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
4738 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
4739
4740 2009-09-03 Diego Novillo <dnovillo@google.com>
4741
4742 * c-lang.c (lang_hooks): Remove const qualifier.
4743
4744 2009-09-02 Loren James Rittle <ljrittle@acm.org>
4745
4746 * doc/install.texi (*-*-freebsd*): Update target information.
4747
4748 2009-09-02 Anatoly Sokolov <aesok@post.ru>
4749
4750 * hard-reg-set.h (call_fixed_regs): Remove.
4751 * reginfo.c (call_fixed_regs): Remove.
4752 (init_reg_sets_1): Remove initialization of call_fixed_regs.
4753 (globalize_reg): Don't use call_fixed_regs.
4754 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
4755 call_fixed_regs.
4756
4757 2009-09-01 Michael Matz <matz@suse.de>
4758
4759 * expr.h (emit_storent_insn, expand_expr_real_1,
4760 expand_expr_real_2): Declare.
4761 * expr.c (emit_storent_insn, expand_expr_real_1,
4762 expand_expr_real_2): Export.
4763 (store_expr): Setting and evaluating dont_return_target is useless.
4764 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
4765 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
4766 * except.c (expand_resx_expr): Rename to ...
4767 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
4768 * except.h (expand_resx_stmt): Declare.
4769 * stmt.c: Add include gimple.h
4770 (expand_asm_expr): Rename to ...
4771 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
4772 (expand_case): Rewrite to take gimple statement.
4773 * tree.h (expand_asm_stmt): Declare.
4774 (expand_case): Change prototype.
4775 * Makefile.in (stmt.o): Depend on gimple.h.
4776 * builtins.c (expand_builtin_synchronize): Build gimple asm
4777 statement, not an ASM_EXPR.
4778 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
4779 gimple_to_tree, release_stmt_tree): Remove.
4780 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
4781 ggc_free, but hold comparison code and operands separately.
4782 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
4783 (expand_call_stmt, expand_gimple_stmt_1,
4784 expand_gimple_stmt): New helpers.
4785 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
4786 release_stmt_tree. Call expand_gimple_stmt instead.
4787 (expand_gimple_basic_block): Ditto.
4788
4789 * calls.c (emit_call_1): Don't look at EH regions here, make
4790 fntree parameter useless.
4791 (expand_call): New local rettype for TREE_TYPE(exp), use it
4792 throughout. Remove local p, use addr instead.
4793 Don't look at EH regions here.
4794
4795 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
4796
4797 * doc/invoke.texi (-fsched-pressure): Document it.
4798 (-fsched-reg-pressure-heuristic): Remove it.
4799
4800 * reload.c (ira.h): Include.
4801 (find_reloads): Add choosing reload on number of small spilled
4802 classes.
4803
4804 * haifa-sched.c (ira.h): Include.
4805 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
4806 saved_reg_pressure, curr_reg_live, saved_reg_live,
4807 region_ref_regs): New variables.
4808 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
4809 initiate_reg_pressure_info, setup_ref_regs,
4810 initiate_bb_reg_pressure_info, save_reg_pressure,
4811 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
4812 functions.
4813 (setup_insn_reg_pressure_info): New function.
4814 (rank_for_schedule): Add pressure checking and insn issue time.
4815 Remove comparison of insn reg weights.
4816 (ready_sort): Set insn reg pressure info.
4817 (update_register_pressure, setup_insn_max_reg_pressure,
4818 update_reg_and_insn_max_reg_pressure,
4819 sched_setup_bb_reg_pressure_info): New functions.
4820 (schedule_insn): Add code for printing and updating reg pressure info.
4821 (find_set_reg_weight, find_insn_reg_weight): Remove.
4822 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
4823 (debug_ready_list): Print reg pressure info.
4824 (schedule_block): Ditto. Check insn issue time.
4825 (sched_init): Set up sched_pressure_p. Allocate and set up some
4826 reg pressure related info.
4827 (sched_finish): Free some reg pressure related info.
4828 (fix_tick_ready): Make insn always ready if pressure_p.
4829 (init_h_i_d): Don't call find_insn_reg_weight.
4830 (haifa_finish_h_i_d): Free insn reg pressure info.
4831
4832 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4833 ira_memory_move_cost, ira_class_hard_regs,
4834 ira_class_hard_regs_num, ira_no_alloc_regs,
4835 ira_available_class_regs, ira_reg_class_cover_size,
4836 ira_reg_class_cover, ira_class_translate): Move to ira.h.
4837
4838 * ira-lives.c (single_reg_class): Check mode to find how many
4839 registers are necessary for operand.
4840 (ira_implicitly_set_insn_hard_regs): New.
4841
4842 * common.opt (fsched-pressure): New options.
4843 (fsched-reg-pressure-heuristic): Remove.
4844
4845 * ira.c (setup_eliminable_regset): Rename to
4846 ira_setup_eliminable_regset. Make it external.
4847 (expand_reg_info): Pass cover class to setup_reg_classes.
4848 (ira): Call resize_reg_info instead of allocate_reg_info.
4849
4850 * sched-deps.c: Include ira.h.
4851 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
4852 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
4853 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
4854 mark_insn_hard_regno_birth, mark_insn_reg_birth,
4855 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
4856 mark_insn_reg_store, mark_insn_reg_clobber,
4857 setup_insn_reg_pressure_info): New.
4858 (sched_analyze_1): Update implicit_reg_pending_uses.
4859 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
4860 Use them to create dependencies. Set insn reg uses and pressure
4861 info. Process reg_pending_uses in one place.
4862 (free_deps): Free implicit sets.
4863 (remove_from_deps): Remove implicit sets if necessary. Check
4864 implicit sets when clearing reg_last_in_use.
4865 (init_deps_global): Clear implicit_reg_pending_clobbers and
4866 implicit_reg_pending_uses.
4867
4868 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4869 ira_memory_move_cost, ira_class_hard_regs,
4870 ira_class_hard_regs_num, ira_no_alloc_regs,
4871 ira_available_class_regs, ira_reg_class_cover_size,
4872 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
4873 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
4874 ira_implicitly_set_insn_hard_regs): New prototypes.
4875
4876 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
4877 cost_elements_num): New variables.
4878 (allocno_costs, total_costs): Rename to costs and
4879 total_allocno_costs.
4880 (COSTS_OF_ALLOCNO): Rename to COSTS.
4881 (allocno_pref): Rename to pref.
4882 (allocno_pref_buffer): Rename to pref_buffer.
4883 (common_classes): Rename to regno_cover_class.
4884 (COST_INDEX): New.
4885 (record_reg_classes): Set allocno attributes only if allocno_p.
4886 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
4887 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
4888 and COSTS_OF_ALLOCNO.
4889 (print_costs): Rename to print_allocno_costs.
4890 (print_pseudo_costs): New.
4891 (process_bb_node_for_costs): Split into 2 functions with new
4892 function process_bb_for_costs. Pass BB to process_bb_for_costs.
4893 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
4894 new parameter dump_file. Use cost_elements_num instead of
4895 ira_allocnos_num. Make one iteration if preferred classes were
4896 already calculated for scheduler. Make 2 versions of code
4897 depending on allocno_p.
4898 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
4899 regno_cover_class and COSTS instead of common_classes and
4900 COSTS_OF_ALLOCNO.
4901 (init_costs, finish_costs): New.
4902 (ira_costs): Set up allocno_p and cost_elements_num. Call
4903 init_costs and finish_costs.
4904 (ira_set_pseudo_classes): New.
4905
4906 * rtl.h (allocate_reg_info): Remove.
4907 (resize_reg_info): Change return type.
4908 (reg_cover_class): New.
4909 (setup_reg_classes): Add new parameter.
4910
4911 * sched-int.h (struct deps_reg): New member implicit_sets.
4912 (sched_pressure_p, sched_regno_cover_class): New external definitions.
4913 (INCREASE_BITS): New macro.
4914 (struct reg_pressure_data, struct reg_use_data): New.
4915 (struct _haifa_insn_data): Remove reg_weight. Add members
4916 reg_pressure, reg_use_list, reg_set_list, and
4917 reg_pressure_excess_cost_change.
4918 (struct deps): New member implicit_sets.
4919 (pressure_p): New variable.
4920 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
4921 (struct reg_pressure_data, struct reg_use_data): New.
4922 (INSN_REG_WEIGHT): Remove.
4923 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
4924 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
4925 (sched_init_region_reg_pressure_info,
4926 sched_setup_bb_reg_pressure_info): New prototypes.
4927
4928 * reginfo.c (struct reg_pref): New member coverclass.
4929 (reg_cover_class): New function.
4930 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
4931 (reg_info_size): New variable.
4932 (allocate_reg_info): Make static. Setup reg_info_size.
4933 (resize_reg_info): Use reg_info_size. Return flag of resizing.
4934 (setup_reg_classes): Add a new parameter. Setup cover class too.
4935
4936 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
4937 the dependencies.
4938
4939 * sched-rgn.c (deps_join): Set up implicit_sets.
4940 (schedule_region): Set up region and basic blocks pressure
4941 relative info.
4942
4943 * passes.c (init_optimization_passes): Move
4944 pass_subregs_of_mode_init before pass_sched.
4945
4946 2009-09-02 Martin Jambor <mjambor@suse.cz>
4947
4948 * tree-sra.c (struct access): New field grp_hint.
4949 (dump_access): Dump grp_hint.
4950 (sort_and_splice_var_accesses): Set grp_hint if a group is read
4951 multiple times.
4952 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
4953 those which have been specifically read and somehow written to.
4954 (propagate_subacesses_accross_link): Set grp_hint of right child and
4955 also possibly of the left child.
4956
4957 2009-09-02 Jakub Jelinek <jakub@redhat.com>
4958
4959 * tree-object-size.c (addr_object_size): Always use object_size_type
4960 0 or 2 when determining the pointer pointed object size.
4961
4962 2009-09-02 Richard Guenther <rguenther@suse.de>
4963
4964 Revert
4965 2009-08-31 Richard Guenther <rguenther@suse.de>
4966
4967 * builtins.c (fold_builtin_memory_op): Use the alias oracle
4968 to query if the memory regions for memmove overlap.
4969 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4970 asserts on pointers, instead deal with odd trees.
4971 (ptr_derefs_may_alias_p): Likewise.
4972 (refs_may_alias_p_1): Constructor bases also never alias.
4973
4974 2009-08-01 Christian Bruel <christian.bruel@st.com>
4975
4976 Revert:
4977 2009-07-31 Christian Bruel <christian.bruel@st.com>
4978 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4979
4980 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
4981
4982 * doc/invoke.texi (-fvar-tracking-assignments): New.
4983 (-fvar-tracking-assignments-toggle): New.
4984 (-fdump-final-insns=file): Mark filename as optional.
4985 (--param min-nondebug-insn-uid): New.
4986 (-gdwarf-@{version}): Mention version 4.
4987 * opts.c (common_handle_option): Accept it.
4988 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
4989 * regrename.c (regrename_optimize): Drop last. Don't count debug
4990 insns as uses. Don't reject change because of debug insn.
4991 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
4992 from the chain starter, and check for inexact matches in DEBUG_INSNS.
4993 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
4994 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
4995 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
4996 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
4997 * doc/gimple.texi (is_gimple_debug): New.
4998 (gimple_debug_bind_p): New.
4999 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5000 * doc/install.texi (bootstrap-debug): More details.
5001 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5002 (bootstrap-debug-lib): More details.
5003 (bootstrap-debug-ckovw): Update.
5004 (bootstrap-time): New.
5005 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5006 (insert_phi_nodes_for): Insert debug stmts.
5007 (rewrite_stmt): Take iterator. Insert debug stmts.
5008 (rewrite_enter_block): Adjust.
5009 (maybe_replace_use_in_debug_stmt): New.
5010 (rewrite_update_stmt): Use it.
5011 (mark_use_interesting): Return early for debug stmts.
5012 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5013 stmts before replacing stmt.
5014 (move_computations_stmt): Likewise.
5015 * ira-conflicts.c (add_copies): Skip debug insns.
5016 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5017 (regstat_bb_compute_ri): Skip debug insns.
5018 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5019 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5020 check_loop_closed_ssa_stmt): Skip debug stmts.
5021 * tree-tailcall.c (find_tail_calls): Likewise.
5022 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5023 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5024 (build_var_debug_value_stat): Declare.
5025 (build_var_debug_value): Define.
5026 (target_for_debug_bind): Declare.
5027 * reload.c (find_equiv_reg): Skip debug insns.
5028 * rtlanal.c (reg_used_between_p): Skip debug insns.
5029 (side_effects_p): Likewise.
5030 (canonicalize_condition): Likewise.
5031 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5032 insns never depend on debug insns.
5033 (create_ddg_dep_no_link): Likewise.
5034 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5035 Don't add inter-loop dependencies for debug insns.
5036 (build_intra_loop_deps): Likewise.
5037 (create_ddg): Count debug insns.
5038 * ddg.h (struct ddg::num_debug): New.
5039 (num_backargs): Pair up with previous int field.
5040 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5041 -fcompare-debug-second.
5042 * final.c (get_attr_length_1): Skip debug insns.
5043 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5044 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5045 (driver_self_specs): Map -fdump-final-insns to
5046 -fdump-final-insns=..
5047 (get_local_tick): New.
5048 (compare_debug_dump_opt_spec_function): Test for . argument and
5049 compute output name. Compute temp output spec without flag name.
5050 Compute -frandom-seed.
5051 (OPT): Undef after use.
5052 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5053 (average_num_loop_insns): Likewise.
5054 * params.h (MIN_NONDEBUG_INSN_UID): New.
5055 * gimple.def (GIMPLE_DEBUG): New.
5056 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5057 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5058 (merge_in_block): Fix whitespace.
5059 * toplev.c (flag_var_tracking): Update comment.
5060 (flag_var_tracking_assignments): New.
5061 (flag_var_tracking_assignments_toggle): New.
5062 (process_options): Don't open final insns dump file if we're not
5063 going to write to it. Compute defaults for var_tracking.
5064 * df-scan.c (df_insn_rescan_debug_internal): New.
5065 (df_uses_record): Handle debug insns.
5066 * haifa-sched.c (ready): Initialize n_debug.
5067 (contributes_to_priority): Skip debug insns.
5068 (dep_list_size): New.
5069 (priority): Use it.
5070 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5071 they're ready. Disregard previous debug insns to make decisions.
5072 (queue_insn): Never queue debug insns.
5073 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5074 (schedule_insn): Don't reject debug insns because of issue rate.
5075 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5076 (queue_to_ready): Skip and discount debug insns.
5077 (choose_ready): Let debug insns through.
5078 (schedule_block): Check boundary debug insns. Discount debug
5079 insns, schedule them early. Adjust whitespace.
5080 (set_priorities): Check for boundary debug insns.
5081 (add_jump_dependencies): Use dep_list_size.
5082 (prev_non_location_insn): New.
5083 (check_cfg): Use it.
5084 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5085 stmts.
5086 (remove_unused_ivs): Reset debug stmts.
5087 * modulo-sched.c (const_iteration_count): Skip debug insns.
5088 (res_MII): Discount debug insns.
5089 (loop_single_full_bb_p): Skip debug insns.
5090 (sms_schedule): Likewise.
5091 (sms_schedule_by_order): Likewise.
5092 (ps_has_conflicts): Likewise.
5093 * caller-save.c (refmarker_fn): New.
5094 (save_call_clobbered_regs): Replace regs with saved mem in
5095 debug insns.
5096 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5097 Call refmarker_fn mark for hardregnos.
5098 (mark_reg_as_referenced): New.
5099 (replace_reg_with_saved_mem): New.
5100 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5101 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5102 searching back.
5103 (cse_extended_basic_block): Skip debug insns.
5104 (count_reg_usage): Likewise.
5105 (is_dead_reg): New, split out of...
5106 (set_live_p): ... here.
5107 (insn_live_p): Use it for debug insns.
5108 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5109 (execute_optimize_stdarg): Likewise.
5110 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5111 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5112 changes in debug stmts as changes.
5113 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5114 (moveup_expr): Don't move across debug insns. Don't move
5115 debug insn if it would create a bookkeeping block.
5116 (moveup_expr_cached): Don't use cache for debug insns that
5117 are heads of blocks.
5118 (compute_av_set_inside_bb): Skip debug insns.
5119 (sel_rank_for_schedule): Schedule debug insns first. Remove
5120 dead code.
5121 (block_valid_for_bookkeeping_p); Support lax searches.
5122 (create_block_for_bookkeeping): Adjust block numbers when
5123 encountering debug-only blocks.
5124 (find_place_for_bookkeeping): Deal with debug-only blocks.
5125 (generate_bookkeeping_insn): Accept no place to insert.
5126 (remove_temp_moveop_nops): New argument full_tidying.
5127 (prepare_place_to_insert): Deal with debug insns.
5128 (advance_state_on_fence): Debug insns don't start cycles.
5129 (update_boundaries): Take fence as argument. Deal with
5130 debug insns.
5131 (schedule_expr_on_boundary): No full_tidying on debug insns.
5132 (fill_insns): Deal with debug insns.
5133 (track_scheduled_insns_and_blocks): Don't count debug insns.
5134 (need_nop_to_preserve_insn_bb): New, split out of...
5135 (remove_insn_from_stream): ... this.
5136 (fur_orig_expr_not_found): Skip debug insns.
5137 * rtl.def (VALUE): Move up.
5138 (DEBUG_INSN): New.
5139 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5140 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5141 Set it if debug stmts are found.
5142 (statement_sink_location): Skip debug stmts. Propagate
5143 moving defs into debug stmts.
5144 * ifcvt.c (first_active_insn): Skip debug insns.
5145 (last_active_insns): Likewise.
5146 (cond_exec_process_insns): Likewise.
5147 (noce_process_if_block): Likewise.
5148 (check_cond_move_block): Likewise.
5149 (cond_move_convert_if_block): Likewise.
5150 (block_jumps_and_fallthru_p): Likewise.
5151 (dead_or_predicable): Likewise.
5152 * dwarf2out.c (debug_str_hash_forced): New.
5153 (find_AT_string): Add comment.
5154 (gen_label_for_indirect_string): New.
5155 (get_debug_string_label): New.
5156 (AT_string_form): Use it.
5157 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5158 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5159 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5160 several operations that cannot be represented with DWARF opcodes.
5161 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5162 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5163 (dwarf2out_var_location): Take during-call mark into account.
5164 (output_indirect_string): Update comment. Output if there are
5165 label and references.
5166 (prune_indirect_string): New.
5167 (prune_unused_types): Call it if debug_str_hash_forced.
5168 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5169 (dw_long_long_const): Remove.
5170 (struct dw_val_struct): Change val_long_long type to rtx.
5171 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5172 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5173 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5174 component instead of HOST_BITS_PER_LONG.
5175 (output_loc_operands): Likewise. For const8* assert
5176 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5177 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5178 rather than HOST_BITS_PER_LONG is >= 64.
5179 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5180 val_const_double.
5181 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5182 HOST_BITS_PER_LONG for dw_val_class_long_long.
5183 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5184 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5185 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5186 DW_OP_stack_value.
5187 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5188 Handle DW_OP_implicit_value.
5189 (extract_int): Move prototype earlier.
5190 (mem_loc_descriptor): For SUBREG punt if inner
5191 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5192 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5193 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5194 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5195 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5196 instead of Pmode size.
5197 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5198 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5199 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5200 (concat_loc_descriptor, concatn_loc_descriptor,
5201 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5202 (add_location_or_const_value_attribute): Likewise. For single
5203 location loc_lists attempt to use add_const_value_attribute
5204 for constant decls. Add DW_AT_const_value even if
5205 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5206 in its expression.
5207 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5208 (control_flow_insn_p): Likewise.
5209 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5210 (separate_decls_in_region_debug_bind): New.
5211 (separate_decls_in_region): Process debug bind stmts afterwards.
5212 * recog.c (verify_changes): Handle debug insns.
5213 (extract_insn): Likewise.
5214 (peephole2_optimize): Skip debug insns.
5215 * dse.c (scan_insn): Skip debug insns.
5216 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5217 Pass it on.
5218 (setup_id_for_insn): Handle debug insns.
5219 (maybe_tidy_empty_bb): Adjust whitespace.
5220 (tidy_control_flow): Skip debug insns.
5221 (sel_remove_insn): Adjust for debug insns.
5222 (sel_estimate_number_of_insns): Skip debug insns.
5223 (create_insn_rtx_from_pattern): Handle debug insns.
5224 (create_copy_of_insn_rtx): Likewise.
5225 * sel-sched-.h (sel_bb_end): Declare.
5226 (sel_bb_empty_or_nop_p): New.
5227 (get_all_loop_exits): Use it.
5228 (_eligible_successor_edge_p): Likewise.
5229 (return_nop_to_pool): Adjust.
5230 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5231 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5232 * gimple-pretty-print.c (dump_gimple_debug): New.
5233 (dump_gimple_stmt): Use it.
5234 (dump_bb_header): Skip gimple debug stmts.
5235 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5236 (fixup_match_2): Likewise.
5237 (regmove_backward_pass): Likewise. Simplify combined
5238 replacement. Handle debug insns.
5239 * function.c (instantiate_virtual_regs): Handle debug insns.
5240 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5241 * print-rtl.h: Include cselib.h.
5242 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5243 * df.h (df_inns_rescan_debug_internal): Declare.
5244 * gcse.c (alloc_hash_table): Estimate n_insns.
5245 (cprop_insn): Don't regard debug insns as changes.
5246 (bypass_conditional_jumps): Skip debug insns.
5247 (one_pre_gcse_pass): Adjust.
5248 (one_code_hoisting_pass): Likewise.
5249 (compute_ld_motion_mems): Skip debug insns.
5250 (one_cprop_pass): Adjust.
5251 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5252 (if_convertible_stmt_p): Handle debug stmts.
5253 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5254 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5255 * ira-build.c (create_bb_allocnos): Skip debug insns.
5256 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5257 (has_single_use): Likewise.
5258 (single_imm_use): Likewise.
5259 (num_imm_uses): Likewise.
5260 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5261 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5262 (create_outofssa_var_map): Likewise.
5263 * lower-subreg.c (adjust_decomposed_uses): New.
5264 (resolve_debug): New.
5265 (decompose_multiword_subregs): Use it.
5266 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5267 * emit-rtl.c: Include params.h.
5268 (cur_debug_insn_uid): Define.
5269 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5270 (copy_rtx_if_shared_1): Handle debug insns.
5271 (reset_used_flags): Likewise.
5272 (set_used_flags): LIkewise.
5273 (get_max_insn_count): New.
5274 (next_nondebug_insn): New.
5275 (prev_nondebug_insn): New.
5276 (make_debug_insn_raw): New.
5277 (emit_insn_before_noloc): Handle debug insns.
5278 (emit_jump_insn_before_noloc): Likewise.
5279 (emit_call_insn_before_noloc): Likewise.
5280 (emit_debug_insn_before_noloc): New.
5281 (emit_insn_after_noloc): Handle debug insns.
5282 (emit_jump_insn_after_noloc): Likewise.
5283 (emit_call_insn_after_noloc): Likewise.
5284 (emit_debug_insn_after_noloc): Likewise.
5285 (emit_insn_after): Take loc from earlier non-debug insn.
5286 (emit_jump_insn_after): Likewise.
5287 (emit_call_insn_after): Likewise.
5288 (emit_debug_insn_after_setloc): New.
5289 (emit_debug_insn_after): New.
5290 (emit_insn_before): Take loc from later non-debug insn.
5291 (emit_jump_insn_before): Likewise.
5292 (emit_call_insn_before): Likewise.
5293 (emit_debug_insn_before_setloc): New.
5294 (emit_debug_insn_before): New.
5295 (emit_insn): Handle debug insns.
5296 (emit_debug_insn): New.
5297 (emit_jump_insn): Handle debug insns.
5298 (emit_call_insn): Likewise.
5299 (emit): Likewise.
5300 (init_emit): Take min-nondebug-insn-uid into account.
5301 Initialize cur_debug_insn_uid.
5302 (emit_copy_of_insn_after): Handle debug insns.
5303 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5304 location of single rhs in place.
5305 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5306 (floor_sdiv_adjust): New.
5307 (cell_sdiv_adjust): New.
5308 (cell_udiv_adjust): New.
5309 (round_sdiv_adjust): New.
5310 (round_udiv_adjust): New.
5311 (wrap_constant): Moved from cselib.
5312 (unwrap_constant): New.
5313 (expand_debug_expr): New.
5314 (expand_debug_locations): New.
5315 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5316 debug bind stmts.
5317 (gimple_expand_cfg): Expand debug locations.
5318 * cselib.c: Include tree-pass.h.
5319 (struct expand_value_data): New.
5320 (cselib_record_sets_hook): New.
5321 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5322 (cselib_clear_table): Move, and implemnet in terms of...
5323 (cselib_reset_table_with_next_value): ... this.
5324 (cselib_get_next_unknown_value): New.
5325 (discard_useless_locs): Don't discard preserved values.
5326 (cselib_preserve_value): New.
5327 (cselib_preserved_value_p): New.
5328 (cselib_preserve_definitely): New.
5329 (cselib_clear_preserve): New.
5330 (cselib_preserve_only_values): New.
5331 (new_cselib_val): Take rtx argument. Dump it in details.
5332 (cselib_lookup_mem): Adjust.
5333 (expand_loc): Take regs_active in struct. Adjust. Silence
5334 dumps unless details are requested.
5335 (cselib_expand_value_rtx_cb): New.
5336 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5337 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5338 without details. Copy more subregs. Try to resolve values
5339 using a callback. Wrap constants.
5340 (cselib_subst_to_values): Adjust.
5341 (cselib_log_lookup): New.
5342 (cselib_lookup): Call it.
5343 (cselib_invalidate_regno): Don't count preserved values as useless.
5344 (cselib_invalidate_mem): Likewise.
5345 (cselib_record_set): Likewise.
5346 (struct set): Renamed to cselib_set, moved to cselib.h.
5347 (cselib_record_sets): Adjust. Call hook.
5348 (cselib_process_insn): Reset table when it would be cleared.
5349 (dump_cselib_val): New.
5350 (dump_cselib_table): New.
5351 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5352 (remove_forwarder_block): Support moving debug stmts.
5353 * cselib.h (cselib_record_sets_hook): Declare.
5354 (cselib_expand_callback): New type.
5355 (cselib_expand_value_rtx_cb): Declare.
5356 (cselib_reset_table_with_next_value): Declare.
5357 (cselib_get_next_unknown_value): Declare.
5358 (cselib_preserve_value): Declare.
5359 (cselib_preserved_value_p): Declare.
5360 (cselib_preserve_only_values): Declare.
5361 (dump_cselib_table): Declare.
5362 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5363 (try_crossjump_to_edge): Likewise.
5364 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5365 dominated blocks when debug stmts are present.
5366 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5367 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5368 (set_var_live_on_entry): Likewise.
5369 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5370 * cfglayout.c (curr_location, last_location): Make static.
5371 (set_curr_insn_source_location): Don't avoid bouncing.
5372 (get_curr_insn_source_location): New.
5373 (get_curr_insn_block): New.
5374 (duplicate_insn_chain): Handle debug insns.
5375 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5376 into debug stmts.
5377 * common.opt (fcompare-debug): Move to sort order.
5378 (fdump-unnumbered-links): Likewise.
5379 (fvar-tracking-assignments): New.
5380 (fvar-tracking-assignments-toggle): New.
5381 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5382 because of debug stmts.
5383 (mark_stmt_if_obviously_necessary): Mark debug stmts.
5384 (eliminate_unnecessary_stmts): Walk dominated blocks before
5385 dominators.
5386 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5387 * ira.c (memref_used_between_p): Skip debug insns.
5388 (update_equiv_regs): Likewise.
5389 * sched-deps.c (sd_lists_size): Accept empty list.
5390 (sd_init_insn): Mark debug insns.
5391 (sd_finish_insn): Unmark them.
5392 (sd_add_dep): Reject non-debug deps on debug insns.
5393 (fixup_sched_groups): Give debug insns group treatment.
5394 Skip debug insns.
5395 (sched_analyze_reg): Don't mark debug insns for sched before call.
5396 (sched_analyze_2): Handle debug insns.
5397 (sched_analyze_insn): Compute next non-debug insn. Handle debug
5398 insns.
5399 (deps_analyze_insn): Handle debug insns.
5400 (deps_start_bb): Skip debug insns.
5401 (init_deps): Initialize last_debug_insn.
5402 * tree-ssa.c (target_for_debug_bind): New.
5403 (find_released_ssa_name): New.
5404 (propagate_var_def_into_debug_stmts): New.
5405 (propagate_defs_into_debug_stmts): New.
5406 (verify_ssa): Skip debug bind stmts without values.
5407 (warn_uninialized_vars): Skip debug stmts.
5408 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5409 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5410 (rtx_equal_p): Likewise.
5411 * ira-costs.c (scan_one_insn): Skip debug insns.
5412 (process_bb_node_for_hard_reg_moves): Likewise.
5413 * rtl.h (DEBUG_INSN_P): New.
5414 (NONDEBUG_INSN_P): New.
5415 (MAY_HAVE_DEBUG_INSNS): New.
5416 (INSN_P): Accept debug insns.
5417 (RTX_FRAME_RELATED_P): Likewise.
5418 (INSN_DELETED_P): Likewise
5419 (PAT_VAR_LOCATION_DECL): New.
5420 (PAT_VAR_LOCATION_LOC): New.
5421 (PAT_VAR_OCATION_STATUS): New.
5422 (NOTE_VAR_LOCATION_DECL): Reimplement.
5423 (NOTE_VAR_LOCATION_LOC): Likewise.
5424 (NOTE_VAR_LOCATION_STATUS): Likewise.
5425 (INSN_VAR_LOCATION): New.
5426 (INSN_VAR_LOCATION_DECL): New.
5427 (INSN_VAR_LOCATION_LOC): New.
5428 (INSN_VAR_LOCATION_STATUS): New.
5429 (gen_rtx_UNKNOWN_VAR_LOC): New.
5430 (VAR_LOC_UNKNOWN_P): New.
5431 (NOTE_DURING_CALL_P): New.
5432 (SCHED_GROUP_P): Accept debug insns.
5433 (emit_debug_insn_before): Declare.
5434 (emit_debug_insn_before_noloc): Declare.
5435 (emit_debug_insn_beore_setloc): Declare.
5436 (emit_debug_insn_after): Declare.
5437 (emit_debug_insn_after_noloc): Declare.
5438 (emit_debug_insn_after_setloc): Declare.
5439 (emit_debug_insn): Declare.
5440 (make_debug_insn_raw): Declare.
5441 (prev_nondebug_insn): Declare.
5442 (next_nondebug_insn): Declare.
5443 (delegitimize_mem_from_attrs): Declare.
5444 (get_max_insn_count): Declare.
5445 (wrap_constant): Declare.
5446 (unwrap_constant): Declare.
5447 (get_curr_insn_source_location): Declare.
5448 (get_curr_insn_block): Declare.
5449 * tree-inline.c (insert_debug_decl_map): New.
5450 (processing_debug_stmt): New.
5451 (remap_decl): Don't create new mappings in debug stmts.
5452 (remap_gimple_op_r): Don't add references in debug stmts.
5453 (copy_tree_body_r): Likewise.
5454 (remap_gimple_stmt): Handle debug bind stmts.
5455 (copy_bb): Skip debug stmts.
5456 (copy_edges_for_bb): Likewise.
5457 (copy_debug_stmt): New.
5458 (copy_debug_stmts): New.
5459 (copy_body): Copy debug stmts at the end.
5460 (insert_init_debug_bind): New.
5461 (insert_init_stmt): Take id. Skip and emit debug stmts.
5462 (setup_one_parameter): Remap variable earlier, register debug mapping.
5463 (estimate_num_insns): Skip debug stmts.
5464 (expand_call_inline): Preserve debug_map.
5465 (optimize_inline_calls): Check for no debug_stmts left-overs.
5466 (unsave_expr_now): Preserve debug_map.
5467 (copy_gimple_seq_and_replace_locals): Likewise.
5468 (tree_function_versioning): Check for no debug_stmts left-overs.
5469 Init and destroy debug_map as needed. Split edges unconditionally.
5470 (build_duplicate_type): Init and destroy debug_map as needed.
5471 * tree-inline.h: Include gimple.h instead of pointer-set.h.
5472 (struct copy_body_data): Add debug_stmts and debug_map.
5473 * sched-int.h (struct ready_list): Add n_debug.
5474 (struct deps): Add last_debug_insn.
5475 (DEBUG_INSN_SCHED_P): New.
5476 (BOUNDARY_DEBUG_INSN_P): New.
5477 (SCHEDULE_DEBUG_INSN_P): New.
5478 (sd_iterator_cond): Accept empty list.
5479 * combine.c (create_log_links): Skip debug insns.
5480 (combine_instructions): Likewise.
5481 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
5482 return value is always unshared.
5483 (struct rtx_subst_pair): New.
5484 (auto_adjust_pair): New.
5485 (propagate_for_debug_subst): New.
5486 (propagate_for_debug): New.
5487 (try_combine): Skip debug insns. Propagate removed defs into
5488 debug insns.
5489 (next_nonnote_nondebug_insn): New.
5490 (distribute_notes): Use it. Skip debug insns.
5491 (distribute_links): Skip debug insns.
5492 * tree-outof-ssa.c (set_location_for_edge): Likewise.
5493 * resource.c (mark_target_live_regs): Likewise.
5494 * var-tracking.c: Include cselib.h and target.h.
5495 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5496 MO_VAL_SET.
5497 (micro_operation_type_name): New.
5498 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5499 (struct micro_operation_def): Update comments.
5500 (decl_or_value): New type. Use instead of decls.
5501 (struct emit_note_data_def): Add vars.
5502 (struct attrs_def): Use decl_or_value.
5503 (struct variable_tracking_info_def): Add permp, flooded.
5504 (struct location_chain_def): Update comment.
5505 (struct variable_part_def): Use decl_or_value.
5506 (struct variable_def): Make var_part a variable length array.
5507 (valvar_pool): New.
5508 (scratch_regs): New.
5509 (cselib_hook_called): New.
5510 (dv_is_decl_p): New.
5511 (dv_is_value_p): New.
5512 (dv_as_decl): New.
5513 (dv_as_value): New.
5514 (dv_as_opaque): New.
5515 (dv_onepart_p): New.
5516 (dv_pool): New.
5517 (IS_DECL_CODE): New.
5518 (check_value_is_not_decl): New.
5519 (dv_from_decl): New.
5520 (dv_from_value): New.
5521 (dv_htab_hash): New.
5522 (variable_htab_hash): Use it.
5523 (variable_htab_eq): Support values.
5524 (variable_htab_free): Free from the right pool.
5525 (attrs_list_member, attrs_list_insert): Use decl_or_value.
5526 (attrs_list_union): Adjust.
5527 (attrs_list_mpdv_union): New.
5528 (tie_break_pointers): New.
5529 (canon_value_cmp): New.
5530 (unshare_variable): Return possibly-modified slot.
5531 (vars_copy_1): Adjust.
5532 (var_reg_decl_set): Adjust. Split out of...
5533 (var_reg_set): ... this.
5534 (get_init_value): Adjust.
5535 (var_reg_delete_and_set): Adjust.
5536 (var_reg_delete): Adjust.
5537 (var_regno_delete): Adjust.
5538 (var_mem_decl_set): Split out of...
5539 (var_mem_set): ... this.
5540 (var_mem_delete_and_set): Adjust.
5541 (var_mem_delete): Adjust.
5542 (val_store): New.
5543 (val_reset): New.
5544 (val_resolve): New.
5545 (variable_union): Adjust. Speed up merge of 1-part vars.
5546 (variable_canonicalize): Use unshared slot.
5547 (VALUED_RECURSED_INTO): New.
5548 (find_loc_in_1pdv): New.
5549 (struct dfset_merge): New.
5550 (insert_into_intersection): New.
5551 (intersect_loc_chains): New.
5552 (loc_cmp): New.
5553 (canonicalize_loc_order_check): New.
5554 (canonicalize_values_mark): New.
5555 (canonicalize_values_star): New.
5556 (variable_merge_over_cur): New.
5557 (variable_merge_over_src): New.
5558 (dataflow_set_merge): New.
5559 (dataflow_set_equiv_regs): New.
5560 (remove_duplicate_values): New.
5561 (struct dfset_post_merge): New.
5562 (variable_post_merge_new_vals): New.
5563 (variable_post_merge_perm_vals): New.
5564 (dataflow_post_merge_adjust): New.
5565 (find_mem_expr_in_1pdv): New.
5566 (dataflow_set_preserve_mem_locs): New.
5567 (dataflow_set_remove_mem_locs): New.
5568 (dataflow_set_clear_at_call): New.
5569 (onepart_variable_different_p): New.
5570 (variable_different_p): Use it.
5571 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
5572 (track_expr_p): Add need_rtl parameter. Don't generate rtl
5573 if not needed.
5574 (track_loc_p): Pass it true.
5575 (struct count_use_info): New.
5576 (find_use_val): New.
5577 (replace_expr_with_values): New.
5578 (log_op_type): New.
5579 (use_type): New, partially split out of...
5580 (count_uses): ... this. Count new micro-ops.
5581 (count_uses_1): Adjust.
5582 (count_stores): Adjust.
5583 (count_with_sets): New.
5584 (VAL_NEEDS_RESOLUTION): New.
5585 (VAL_HOLDS_TRACK_EXPR): New.
5586 (VAL_EXPR_IS_COPIED): New.
5587 (VAL_EXPR_IS_CLOBBERED): New.
5588 (add_uses): Adjust. Generate new micro-ops.
5589 (add_uses_1): Adjust.
5590 (add_stores): Generate new micro-ops.
5591 (add_with_sets): New.
5592 (find_src_status): Adjust.
5593 (find_src_set_src): Adjust.
5594 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5595 Handle new micro-ops. Canonicalize value equivalances.
5596 (vt_find_locations): Compute total size of hash tables for
5597 dumping. Perform merge for var-tracking-assignments. Don't
5598 disregard single-block loops.
5599 (dump_attrs_list): Handle decl_or_value.
5600 (dump_variable): Take variable. Deal with decl_or_value.
5601 (dump_variable_slot): New.
5602 (dump_vars): Use it.
5603 (dump_dataflow_sets): Adjust.
5604 (set_slot_part): New, extended to support one-part variables
5605 after splitting out of...
5606 (set_variable_part): ... this.
5607 (clobber_slot_part): New, split out of...
5608 (clobber_variable_part): ... this.
5609 (delete_slot_part): New, split out of...
5610 (delete_variable_part): .... this.
5611 (check_wrap_constant): New.
5612 (vt_expand_loc_callback): New.
5613 (vt_expand_loc): New.
5614 (emit_note_insn_var_location): Adjust. Handle values. Handle
5615 EMIT_NOTE_AFTER_CALL_INSN.
5616 (emit_notes_for_differences_1): Adjust. Handle values.
5617 (emit_notes_for_differences_2): Likewise.
5618 (emit_notes_for_differences): Adjust.
5619 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
5620 Adjust. Handle new micro-ops.
5621 (vt_add_function_parameters): Adjust. Create and bind values.
5622 (vt_initialize): Adjust. Initialize scratch_regs and
5623 valvar_pool, flooded and perm.. Initialize and use cselib. Log
5624 operations. Move some code to count_with_sets and add_with_sets.
5625 (delete_debug_insns): New.
5626 (vt_debug_insns_local): New.
5627 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
5628 cselib.
5629 (var_tracking_main): If var-tracking-assignments is enabled
5630 but var-tracking isn't, delete debug insns and leave. Likewise
5631 if we exceed limits or fail the stack adjustments tests, and
5632 after all var-tracking processing.
5633 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5634 (dataflow_set): Add traversed_vars.
5635 (value_chain, const_value_chain): New typedefs.
5636 (value_chain_pool, value_chains): New variables.
5637 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5638 add_value_chains, add_cselib_value_chains, remove_value_chain,
5639 remove_value_chains, remove_cselib_value_chains): New functions.
5640 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5641 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5642 static inlines.
5643 (shared_hash_find_slot_unshare, shared_hash_find_slot,
5644 shared_hash_find_slot_noinsert, shared_hash_find): Update.
5645 (dst_can_be_shared): New variable.
5646 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5647 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
5648 different from set->vars, look up slot again instead of using the
5649 passed in slot.
5650 (dataflow_set_init): Initialize traversed_vars.
5651 (variable_union): Use shared_hash_*. Use initially NO_INSERT
5652 lookup if set->vars is shared. Don't keep slot cleared before
5653 calling unshare_variable. Unshare set->vars if needed. Adjust
5654 unshare_variable callers. Clear dst_can_be_shared if needed.
5655 Even ->refcount == 1 vars must be unshared if set->vars is shared
5656 and var needs to be modified.
5657 (dataflow_set_union): Set traversed_vars during canonicalization.
5658 (VALUE_CHANGED, DECL_CHANGED): Define.
5659 (set_dv_changed, dv_changed_p): New static inlines.
5660 (track_expr_p): Clear DECL_CHANGED.
5661 (dump_dataflow_sets): Set it.
5662 (variable_was_changed): Call set_dv_changed.
5663 (emit_note_insn_var_location): Likewise.
5664 (changed_variables_stack): New variable.
5665 (check_changed_vars_1, check_changed_vars_2): New functions.
5666 (emit_notes_for_changes): Do nothing if changed_variables is
5667 empty. Traverse changed_variables with check_changed_vars_1,
5668 call check_changed_vars_2 on each changed_variables_stack entry.
5669 (emit_notes_in_bb): Add SET argument. Just clear it at the
5670 beginning, use it instead of local &set, don't destroy it at the end.
5671 (vt_emit_notes): Call dataflow_set_clear early on all
5672 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
5673 computed set, dataflow_set_clear also VTI(bb)->in when we are
5674 done with the basic block. Initialize changed_variables_stack,
5675 free it afterwards. If ENABLE_CHECKING verify that after noting
5676 differences to an empty set value_chains hash table is empty.
5677 (vt_initialize): Initialize value_chains and value_chain_pool.
5678 (vt_finalize): Delete value_chains htab, free value_chain_pool.
5679 (variable_tracking_main): Call dump_dataflow_sets before calling
5680 vt_emit_notes, not after it.
5681 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
5682 (propagate_var_def_into_debug_stmts): Declare.
5683 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
5684 (df_set_note): Reject debug insns.
5685 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
5686 add notes to debug insns.
5687 (df_note_bb_compute): Adjust. Likewise.
5688 (df_simulate_uses): Skip debug insns.
5689 (df_simulate_initialize_backwards): Likewise.
5690 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
5691 (subst_stack_regs_pat): Reject debug insns.
5692 (convert_regs_1): Handle debug insns.
5693 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
5694 (print-rtl.o): Depend on cselib.h.
5695 (cselib.o): Depend on TREE_PASS_H.
5696 (var-tracking.o): Depend on cselib.h and TARGET_H.
5697 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
5698 (init_ready_list): Skip boundary debug insns.
5699 (add_branch_dependences): Skip debug insns.
5700 (free_block_dependencies): Check for blocks with only debug insns.
5701 (compute_priorities): Likewise.
5702 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
5703 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
5704 all callers.
5705 (gimple_build_debug_bind_stat): New.
5706 (empty_body_p): Skip debug stmts.
5707 (gimple_has_side_effects): Likewise.
5708 (gimple_rhs_has_side_effects): Likewise.
5709 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
5710 (gimple_build_debug_bind_stat): Declare.
5711 (gimple_build_debug_bind): Define.
5712 (is_gimple_debug): New.
5713 (gimple_debug_bind_p): New.
5714 (gimple_debug_bind_get_var): New.
5715 (gimple_debug_bind_get_value): New.
5716 (gimple_debug_bind_get_value_ptr): New.
5717 (gimple_debug_bind_set_var): New.
5718 (gimple_debug_bind_set_value): New.
5719 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
5720 (gimple_debug_bind_reset_value): New.
5721 (gimple_debug_bind_has_value_p): New.
5722 (gsi_next_nondebug): New.
5723 (gsi_prev_nondebug): New.
5724 (gsi_start_nondebug_bb): New.
5725 (gsi_last_nondebug_bb): New.
5726 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
5727 (print_insn): Handle DEBUG_INSN.
5728 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
5729 of first insn prevail.
5730 (first_stmt): Skip debug stmts.
5731 (first_non_label_stmt): Likewise.
5732 (last_stmt): Likewise.
5733 (has_zero_uses_1): New.
5734 (single_imm_use_1): New.
5735 (verify_gimple_debug): New.
5736 (verify_types_in_gimple_stmt): Handle debug stmts.
5737 (verify_stmt): Likewise.
5738 (debug_loop_num): Skip debug stmts.
5739 (remove_edge_and_dominated_blocks): Remove dominators last.
5740 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
5741 (linearize_expr): Likewise.
5742 * config/i386/i386.c (ix86_delegitimize_address): Call
5743 default implementation.
5744 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
5745 (group_barrier_needed): Skip debug insns.
5746 (emit_insn_group_barriers): Likewise.
5747 (emit_all_insn_group_barriers): Likewise.
5748 (ia64_variable_issue): Handle debug insns.
5749 (ia64_dfa_new_cycle): Likewise.
5750 (final_emit_insn_group_barriers): Skip debug insns.
5751 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
5752 def cfa without frame.
5753 (process_set): Likewise.
5754 (process_for_unwind_directive): Pass frame on.
5755 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5756 (rs6000_delegitimize_address): New.
5757 (rs6000_debug_adjust_cost): Handle debug insns.
5758 (is_microcoded_insn): Likewise.
5759 (is_cracked_insn): Likewise.
5760 (is_nonpipeline_insn): Likewise.
5761 (insn_must_be_first_in_group): Likewise.
5762 (insn_must_be_last_in_group): Likewise.
5763 (force_new_group): Likewise.
5764 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
5765 contains only debug insns.
5766 (rtl_merge_blocks): Skip debug insns.
5767 (purge_dead_edges): Likewise.
5768 (rtl_block_ends_with_call_p): Skip debug insns.
5769 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
5770 (mark_reg_dependencies): Skip debug insns.
5771 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
5772 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
5773 * tree-ssa-threadedge.c
5774 (record_temporary_equivalences_from_stmts): Skip debug stmts.
5775 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
5776 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
5777 (copyprop_hardreg_forward_1): Handle debug insns.
5778 * reload1.c (reload): Skip debug insns. Replace unassigned
5779 pseudos in debug insns with their equivalences.
5780 (eliminate_regs_in_insn): Skip debug insns.
5781 (emit_input_reload_insns): Skip debug insns at first, adjust
5782 them later.
5783 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
5784 (get_indirect_ref_operands): Pass opf_no_vops on.
5785 (get_expr_operands): Likewise. Skip debug stmts.
5786 (parse_ssa_operands): Scan debug insns with opf_no_vops.
5787
5788 2009-09-01 Richard Henderson <rth@redhat.com>
5789
5790 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
5791 stmt_ends_pp_p statements at least once.
5792 * tree-vrp.c (vrp_initialize): Likewise.
5793 (vrp_visit_stmt): Be prepared for non-interesting stmts.
5794
5795 2009-09-01 Dodji Seketeli <dodji@redhat.com>
5796
5797 PR bootstrap/41205
5798 Fix AIX bootstrap after PR debug/30161
5799 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
5800 that is a GNU extension.
5801 (tmpl_value_parm_die_table): Move the definition of this global
5802 outside #ifdef DWARF2_DEBUGGING_INFO region.
5803
5804 2009-09-01 Richard Guenther <rguenther@suse.de>
5805
5806 * tree.c (tree_expr_size): New function.
5807 * tree.h (tree_expr_size): Declare.
5808 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
5809 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
5810 * langhooks.c (lhd_expr_size): Remove.
5811 * langhooks.h (struct lang_hooks): Remove expr_size.
5812 * explow.c (expr_size): Use tree_expr_size.
5813 (int_expr_size): Likewise.
5814 * langhooks-def.h (lhd_expr_size): Remove.
5815 (LANG_HOOKS_EXPR_SIZE): Likewise.
5816 (LANG_HOOKS_INITIALIZER): Adjust.
5817
5818 2009-09-01 Richard Guenther <rguenther@suse.de>
5819
5820 * tree-flow.h (mark_addressable): Move declaration ...
5821 * tree.h (mark_addressable): ... here.
5822 * stmt.c (expand_asm_operands): Use mark_addressable, not
5823 lang_hooks.mark_addressable.
5824 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5825 LANG_HOOKS_MARK_ADDRESSABLE.
5826 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
5827 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
5828
5829 2009-08-31 Chris Demetriou <cgd@google.com>
5830
5831 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
5832 vectorize if not TARGET_SSE2.
5833
5834 2009-08-31 DJ Delorie <dj@redhat.com>
5835
5836 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
5837 registers if no coprocessor is enabled.
5838
5839 2009-08-31 Dodji Seketeli <dodji@redhat.com>
5840
5841 PR debug/30161
5842 * cgraph.h (cgraph_get_node): Declare ...
5843 * cgraph.c (cgraph_get_node): ... new function.
5844 * dwarf2out.c (gen_generic_params_dies,
5845 generic_parameter_die, tree_add_const_value_attribute_for_decl,
5846 make_ith_pack_parameter_name,
5847 append_entry_to_tmpl_value_parm_die_table,
5848 gen_remaining_tmpl_value_param_die_attribute): New functions.
5849 (gen_subprogram_die): Generate debug info for template parameters
5850 if debug info level is higher than DINFO_LEVEL_TERSE.
5851 Use tree_add_const_value_attribute_for_decl instead of
5852 tree_add_const_value_attribute.
5853 (gen_const_die): Use tree_add_const_value_attribute_for_decl
5854 instead of tree_add_const_value_attribute.
5855 (gen_struct_or_union_type_die): Generate debug
5856 info for template parameters if debug info level is higher than
5857 DINFO_LEVEL_TERSE.
5858 (tree_add_const_value_attribute): Handle integral and pointer
5859 constants. Update comment.
5860 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
5861 (dwarf_attr_name): Support DW_AT_GNU_template_name.
5862 (reference_to_unused): Fix thinko. Remove redundant predicates from
5863 tests.
5864 (tree_add_const_value_attribute): Make this work for constant
5865 expressions only.
5866 tree_add_const_value_attribute_for_decl is to be used for variable
5867 DECLs now.
5868 (add_location_or_const_value_attribute): Use
5869 tree_add_const_value_attribute_for_decl now.
5870 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
5871 DW_TAG_template_value_param DIEs after function DIEs have been
5872 emitted.
5873 * langhooks.h (lang_hooks_for_types): Add
5874 get_argument_pack_elems.
5875 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
5876 (lang_hooks): Added get_innermost_generic_parms,
5877 get_innermost_generic_args.
5878 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
5879 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
5880 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
5881 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
5882
5883 2009-08-31 DJ Delorie <dj@redhat.com>
5884
5885 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
5886 it once we start generating the prologue or epilogue.
5887 (mep_call_saves_register): If the frame is locked, re-use
5888 cached values.
5889 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
5890 (mep_expand_prologue): Call it.
5891 (mep_expand_epilogue): Likewise.
5892 (mep_start_function): Use the same logic as mep_expand_prologue.
5893 (mep_pass_by_reference): Make logic more readable.
5894 (mep_return_in_memory): Zero-sized objects are passed in memory.
5895 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
5896
5897 2009-08-31 Richard Guenther <rguenther@suse.de>
5898
5899 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5900 to query if the memory regions for memmove overlap.
5901 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5902 asserts on pointers, instead deal with odd trees.
5903 (ptr_derefs_may_alias_p): Likewise.
5904 (refs_may_alias_p_1): Constructor bases also never alias.
5905
5906 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5907
5908 * doc/install.texi (Final install): Adjust reference on where to
5909 order printed manuals.
5910
5911 2009-08-30 Olivier Hainque <hainque@adacore.com>
5912
5913 * dwarf2out.c (switch_to_frame_table_section): Move
5914 definition prior to first use.
5915
5916 2009-08-30 Richard Guenther <rguenther@suse.de>
5917
5918 PR tree-optimization/41186
5919 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
5920 (ao_ref_init_from_ptr_and_size): New function.
5921 (ref_maybe_used_by_call_p_1): Be more precise tracking
5922 used ranges for builtin functions.
5923 (ref_maybe_used_by_call_p): Adjust.
5924 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
5925 ranges for builtin functions.
5926 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
5927
5928 2009-08-30 Alan Modra <amodra@bigpond.net.au>
5929
5930 PR target/41081
5931 * fwprop.c (get_reg_use_in): Delete.
5932 (free_load_extend): New function.
5933 (forward_propagate_subreg): Use it.
5934
5935 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
5936
5937 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
5938
5939 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
5940
5941 PR/41184
5942 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
5943 padding.
5944
5945 2009-08-29 Douglas B Rupp <rupp@gnat.com>
5946
5947 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
5948 fini or fini_array section.
5949
5950 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
5951
5952 * graphite-dependences.c (graphite_legal_transform_bb): Call
5953 pbb_remove_duplicate_pdrs.
5954 * graphite-poly.c (can_collapse_pdr): Removed.
5955 (pdr_find_duplicate): Removed.
5956 (can_collapse_pdrs): New.
5957 (pbb_remove_duplicate_pdrs): New.
5958 (new_poly_dr): Do not look for duplicates.
5959 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
5960 (PBB_PDR_DUPLICATES_REMOVED): New.
5961 (pbb_remove_duplicate_pdrs): Declared.
5962
5963 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
5964
5965 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
5966 the strides by multiplying by PDR_NB_REFS.
5967 * graphite-poly.c (can_collapse_pdr): New.
5968 (pdr_find_duplicate): New.
5969 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
5970 Initialize PDR_NB_REFS.
5971 * graphite-poly.h (struct poly_dr): Add field nb_refs.
5972 (PDR_NB_REFS): New.
5973 (new_poly_dr): Number of subscripts is a graphite_dim_t.
5974
5975 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
5976
5977 PR middle-end/40965
5978 * graphite-poly.c (apply_poly_transforms): Remove legality test before
5979 any transform.
5980
5981 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
5982
5983 * graphite-dependences.c (pddr_original_scattering): Return NULL
5984 for read-read dependence relations.
5985 * graphite-poly.h (enum poly_dr_type): Fix comment.
5986 (pdr_read_p): New.
5987 (pdr_write_p): New.
5988 (pdr_may_write_p): New.
5989
5990 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
5991
5992 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
5993 (struct poly_dr): Same.
5994 (new_poly_dr): Same.
5995 * graphite-poly.c (new_poly_dr): Same.
5996 * graphite-dependences.c (dot_deps): Disable call to system.
5997
5998 2009-08-28 Cary Coutant <ccoutant@google.com>
5999
6000 PR debug/41063
6001 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6002 struct/union/enum types local to a function.
6003
6004 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6005 Sebastian Pop <sebastian.pop@amd.com>
6006
6007 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6008 pbb_strip_mine_time_depth. Changed the implementation so that
6009 transformation is expressed as a transformation on
6010 time (scatttering) dimensions. Also, ensures that the 2d+1
6011 scheduling format is preserved.
6012 (pbb_strip_mine_profitable_p): Profitability is based on the
6013 iteration number of a given time (scattering) dimension,
6014 and not on a original loop depth dimension.
6015 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6016 (pbb_do_strip_mine): Call psct_dynamic_dim.
6017 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6018 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6019 (pbb_nb_dynamic_scattering_transform): New.
6020 (psct_dynamic_dim): New.
6021
6022 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6023
6024 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6025 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6026 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6027 * graphite-interchange.c (build_linearized_memory_access): Same.
6028 (memory_stride_in_loop): Same.
6029
6030 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6031
6032 * graphite-dependences.c (pddr_original_scattering): New.
6033 (graphite_legal_transform_dr): Call pddr_original_scattering.
6034 (dot_deps_1): New.
6035 (dot_deps): New.
6036 * graphite-dependences.h (dot_deps): Declared.
6037 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6038 (print_pdr): Print PDR_ID.
6039 * graphite-poly.h (struct poly_dr): Add field id.
6040 (PDR_ID): New.
6041 (pbb_index): New.
6042 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6043
6044 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6045
6046 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6047 not delete the original dependence relation.
6048
6049 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6050
6051 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6052 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6053 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6054 (free_poly_ddr): New.
6055 (pddr_is_empty): New.
6056 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6057 (dependence_polyhedron): Same. Remove useless gcc_assert.
6058 Remove fprintfs.
6059 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6060 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6061 * graphite-dependences.h (enum poly_dependence_kind): New.
6062 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6063 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6064 (PDRP_SINK): Renamed PDDR_SINK.
6065 (PDRP_DDP): Renamed PDDR_DDP.
6066 (PDDR_KIND): New.
6067 (free_poly_ddr): Declared.
6068 * graphite-poly.c (new_scop): Use the new hash function names.
6069 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6070 into original_pddrs.
6071 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6072
6073 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6074
6075 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6076 bounds with LT_EXPR to make niter analysis more precise on code
6077 generated by Graphite.
6078
6079 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6080
6081 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6082 (graphite_legal_transform_bb): Same.
6083 (poly_drs_may_alias_p): Same.
6084
6085 2009-08-28 Richard Guenther <rguenther@suse.de>
6086
6087 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6088
6089 2009-08-28 Jan Beulich <jbeulich@novell.com>
6090
6091 * config/i386/netware.c: Include langhooks.h.
6092 (i386_nlm_encode_section_info): Simplify.
6093 (netware_override_options): Delete.
6094 * config/i386/netware.h (netware_override_options): Delete
6095 declaration.
6096 (OVERRIDE_OPTIONS): Delete definition.
6097 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6098 (ASM_COMMENT_START): Define.
6099 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6100
6101 2009-08-28 Jan Beulich <jbeulich@novell.com>
6102
6103 * configure.ac: For in-tree ld, do a plain version check to
6104 determine whether comdat groups are supported.
6105 * configure: Regenerate.
6106
6107 2009-08-28 Olivier Hainque <hainque@adacore.com>
6108
6109 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6110 always defined. Reflect definition or absence of such for
6111 COLLECT_EXPORT_LIST. Readability helper.
6112 (scanfilter): New enum, to help control what symbols
6113 are to be considered or ignored by scan_prog_file.
6114 (enum pass): Rename as "scanpass", moved together with scanfilter
6115 prior to scan_prog_file's prototype.
6116 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6117 Group prototype with the scanpass/scanfilter definitions, factorize
6118 head comments for the several implementations at the prototype.
6119 (main): Reorganize the first pass link control to let AIX
6120 drag only the needed frame tables in executables. Prevent
6121 frame tables collection during the scan aimed at static ctors.
6122 Pre-link and scan for frame tables later to compensate.
6123 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6124 A C statement to issue assembly directives that create a reference
6125 to the given DWARF table identifier label from the current function
6126 section.
6127 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6128 to differentiate first time section entry. Only emit a .data
6129 tables start identifier label the first time around.
6130 (switch_to_frame_table_section): New function. Helper for
6131 output_call_frame_info to switch possibly BACK into the eh_frame
6132 or the debug_frame section depending on FOR_EH.
6133 (output_call_frame_info): Use helper to first enter the proper
6134 frame section.
6135 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6136 emit a link to the frame table start label from each function
6137 section.
6138 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6139 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6140 * config/rs6000/rs6000-protos.h: Declare it.
6141 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6142
6143 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6144
6145 * config/sh/sh.c (split_branches): Check the result of
6146 next_active_insn.
6147
6148 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6149
6150 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6151 using -pthread -fopenmp
6152
6153 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6154
6155 * doc/service.texi (service directory): Update URL.
6156
6157 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6158
6159 PR rtl-optimization/40861
6160 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6161 extract word from a multi-word subreg for negative byte positions.
6162
6163 2009-08-27 Tristan Gingold <gingold@adacore.com>
6164 Douglas B Rupp <rupp@gnat.com>
6165
6166 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6167 (SECTION_VMS_OVERLAY): Define.
6168 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6169 attribute.
6170 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6171 for common_object.
6172 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6173 common_object declarations.
6174 (ia64_section_type_flags): Set section flag for common_object.
6175 * config/ia64/ia64-protos.h
6176 (ia64_vms_output_aligned_decl_common): Declare.
6177 (ia64_vms_elf_asm_named_section): Declare.
6178
6179 2009-08-27 Michael Matz <matz@suse.de>
6180
6181 * expr.c (expand_expr_real_2): New function taking exploded
6182 unary or binary expression, split out from ...
6183 (expand_expr_real_1): ... here. Move over all unary/binary
6184 switch parts to above function, in particular these codes:
6185 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6186 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6187 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6188 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6189 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6190 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6191 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6192 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6193 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6194 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6195 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6196 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6197 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6198 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6199 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6200 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6201 VEC_PACK_FIX_TRUNC_EXPR.
6202 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6203 full expression.
6204
6205 2009-08-27 Richard Guenther <rguenther@suse.de>
6206
6207 * gengtype.c (main): Handle uint64_t.
6208 * ipa-utils.c (get_base_var): Indent properly.
6209 * tree-ssa-live.c (debug_scope_block): New function.
6210 * tree-flow.h (debug_scope_block): Declare.
6211 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6212 * basic-block.h (enum profile_status): Rename to
6213 enum profile_status_d.
6214 (x_profile_status): Adjust type.
6215
6216 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6217
6218 PR debug/41170
6219 * dwarf2out.c (get_context_die): Declare this static function.
6220 (gen_type_die_with_usage): Make sure a DIE is a generated for
6221 the context of a typedef.
6222
6223 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6224
6225 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6226 switch.
6227
6228 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6229
6230 * config/mips/mips-protos.h (mips_output_sync): Declare.
6231 (mips_sync_loop_insns): Likewise.
6232 (mips_output_sync_loop): Replace first two parameters with an rtx.
6233 * config/mips/mips.c (mips_multi_member): New structure.
6234 (mips_multi_members): New variable.
6235 (mips_multi_start): New function.
6236 (mips_multi_add): Likewise.
6237 (mips_multi_add_insn): Likewise.
6238 (mips_multi_add_label): Likewise.
6239 (mips_multi_last_index): Likewise.
6240 (mips_multi_copy_insn): Likewise.
6241 (mips_multi_set_operand): Likewise.
6242 (mips_multi_write): Likewise.
6243 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6244 (mips_init_print_operand_punct): Update accordingly.
6245 (mips_start_ll_sc_sync_block): New function.
6246 (mips_end_ll_sc_sync_block): Likewise.
6247 (mips_output_sync): Likewise.
6248 (mips_sync_insn1_template): Likewise.
6249 (mips_sync_insn2_template): Likewise.
6250 (mips_get_sync_operand): Likewise.
6251 (mips_process_sync_loop): Likewise.
6252 (mips_output_sync_loop): Use mips_process_sync_loop.
6253 (mips_sync_loop_insns): New function.
6254 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6255 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6256 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6257 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6258 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6259 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6260 (MIPS_SYNC_OLD_OP_12): Likewise.
6261 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6262 (MIPS_SYNC_NEW_OP_12): Likewise.
6263 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6264 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6265 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6266 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6267 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6268 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6269 * config/mips/mips.md (sync_mem): New attribute.
6270 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6271 (sync_exclusive_mask, sync_required_oldval): Likewise.
6272 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6273 (sync_release_barrier): Likewise.
6274 (length): Handle sync loops.
6275 (sync): Use mips_output_sync.
6276 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6277 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6278 and use mips_output_sync_loop.
6279 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6280 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6281 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6282 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6283 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6284 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6285 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6286 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6287 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6288
6289 2009-08-26 Richard Guenther <rguenther@suse.de>
6290
6291 PR middle-end/41163
6292 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6293 the types to not match.
6294 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6295 verification.
6296 * tree-ssa.c (useless_type_conversion_p): Conversions to
6297 pointers to unprototyped functions are useless.
6298
6299 2009-08-26 Richard Guenther <rguenther@suse.de>
6300
6301 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6302 whole-program condition, prepare to be called for non-globals.
6303 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6304 params build a representative with known type and track its fields.
6305
6306 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6307
6308 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6309 clearing by a taken branch.
6310 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6311 effectively after bbro pass.
6312 (sync_nand<mode>): Ditto.
6313 (sync_old_<fetchop_name><mode>): Ditto.
6314 (sync_old_nand<mode>): Ditto.
6315 (sync_new_<fetchop_name><mode>): Dito.
6316 (sync_new_nand<mode>): Ditto.
6317 (sync_compare_and_swap<mode>_1): Ditto.
6318 (*sync_compare_and_swap<mode>): Ditto.
6319 (sync_lock_test_and_set<mode>_1): Ditto.
6320 ("sync_lock_test_and_set<mode>): Ditto.
6321
6322 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6323
6324 * hwint.h (HOST_LONG_FORMAT): New macro
6325 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6326 Use HOST_PTR_PRINTF.
6327 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6328 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6329 (HOST_PTR_PRINTF): Document.
6330
6331 2009-08-25 Jan Hubicka <jh@suse.cz>
6332
6333 * config/i386/bmmintrin.h: Replace by #error.
6334
6335 Revert:
6336 Michael Meissner <michael.meissner@amd.com>
6337 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6338 Tony Linthicum <tony.linthicum@amd.com>
6339
6340 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6341 (TARGET_ROUND): New macro for the round/ptest instructions which
6342 are shared between SSE4.1 and SSE5.
6343 (OPTION_MASK_ISA_ROUND): Ditto.
6344 (OPTION_ISA_ROUND): Ditto.
6345 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6346 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6347
6348 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6349 (-mfused-madd): New switch to give users control over whether the
6350 compiler optimizes to use the multiply/add SSE5 instructions.
6351
6352 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6353 (ix86_handle_option): Turn off 3dnow if -msse5.
6354 (override_options): Add SSE5 support.
6355 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6356 instructions.
6357 (ix86_expand_sse_movcc): Add SSE5 support.
6358 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6359 vector type to the next largest size.
6360 (ix86_expand_sse5_pack): New function to use pperm to pack a
6361 vector type to the next smallest size.
6362 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6363 (IX86_BUILTIN_FMADDSD): Ditto.
6364 (IX86_BUILTIN_FMADDPS): Ditto.
6365 (IX86_BUILTIN_FMADDPD): Ditto.
6366 (IX86_BUILTIN_FMSUBSS): Ditto.
6367 (IX86_BUILTIN_FMSUBSD): Ditto.
6368 (IX86_BUILTIN_FMSUBPS): Ditto.
6369 (IX86_BUILTIN_FMSUBPD): Ditto.
6370 (IX86_BUILTIN_FNMADDSS): Ditto.
6371 (IX86_BUILTIN_FNMADDSD): Ditto.
6372 (IX86_BUILTIN_FNMADDPS): Ditto.
6373 (IX86_BUILTIN_FNMADDPD): Ditto.
6374 (IX86_BUILTIN_FNMSUBSS): Ditto.
6375 (IX86_BUILTIN_FNMSUBSD): Ditto.
6376 (IX86_BUILTIN_FNMSUBPS): Ditto.
6377 (IX86_BUILTIN_FNMSUBPD): Ditto.
6378 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6379 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6380 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6381 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6382 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6383 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6384 (IX86_BUILTIN_PPERM): Ditto.
6385 (IX86_BUILTIN_PERMPS): Ditto.
6386 (IX86_BUILTIN_PERMPD): Ditto.
6387 (IX86_BUILTIN_PMACSSWW): Ditto.
6388 (IX86_BUILTIN_PMACSWW): Ditto.
6389 (IX86_BUILTIN_PMACSSWD): Ditto.
6390 (IX86_BUILTIN_PMACSWD): Ditto.
6391 (IX86_BUILTIN_PMACSSDD): Ditto.
6392 (IX86_BUILTIN_PMACSDD): Ditto.
6393 (IX86_BUILTIN_PMACSSDQL): Ditto.
6394 (IX86_BUILTIN_PMACSSDQH): Ditto.
6395 (IX86_BUILTIN_PMACSDQL): Ditto.
6396 (IX86_BUILTIN_PMACSDQH): Ditto.
6397 (IX86_BUILTIN_PMADCSSWD): Ditto.
6398 (IX86_BUILTIN_PMADCSWD): Ditto.
6399 (IX86_BUILTIN_PHADDBW): Ditto.
6400 (IX86_BUILTIN_PHADDBD): Ditto.
6401 (IX86_BUILTIN_PHADDBQ): Ditto.
6402 (IX86_BUILTIN_PHADDWD): Ditto.
6403 (IX86_BUILTIN_PHADDWQ): Ditto.
6404 (IX86_BUILTIN_PHADDDQ): Ditto.
6405 (IX86_BUILTIN_PHADDUBW): Ditto.
6406 (IX86_BUILTIN_PHADDUBD): Ditto.
6407 (IX86_BUILTIN_PHADDUBQ): Ditto.
6408 (IX86_BUILTIN_PHADDUWD): Ditto.
6409 (IX86_BUILTIN_PHADDUWQ): Ditto.
6410 (IX86_BUILTIN_PHADDUDQ): Ditto.
6411 (IX86_BUILTIN_PHSUBBW): Ditto.
6412 (IX86_BUILTIN_PHSUBWD): Ditto.
6413 (IX86_BUILTIN_PHSUBDQ): Ditto.
6414 (IX86_BUILTIN_PROTB): Ditto.
6415 (IX86_BUILTIN_PROTW): Ditto.
6416 (IX86_BUILTIN_PROTD): Ditto.
6417 (IX86_BUILTIN_PROTQ): Ditto.
6418 (IX86_BUILTIN_PROTB_IMM): Ditto.
6419 (IX86_BUILTIN_PROTW_IMM): Ditto.
6420 (IX86_BUILTIN_PROTD_IMM): Ditto.
6421 (IX86_BUILTIN_PROTQ_IMM): Ditto.
6422 (IX86_BUILTIN_PSHLB): Ditto.
6423 (IX86_BUILTIN_PSHLW): Ditto.
6424 (IX86_BUILTIN_PSHLD): Ditto.
6425 (IX86_BUILTIN_PSHLQ): Ditto.
6426 (IX86_BUILTIN_PSHAB): Ditto.
6427 (IX86_BUILTIN_PSHAW): Ditto.
6428 (IX86_BUILTIN_PSHAD): Ditto.
6429 (IX86_BUILTIN_PSHAQ): Ditto.
6430 (IX86_BUILTIN_FRCZSS): Ditto.
6431 (IX86_BUILTIN_FRCZSD): Ditto.
6432 (IX86_BUILTIN_FRCZPS): Ditto.
6433 (IX86_BUILTIN_FRCZPD): Ditto.
6434 (IX86_BUILTIN_CVTPH2PS): Ditto.
6435 (IX86_BUILTIN_CVTPS2PH): Ditto.
6436 (IX86_BUILTIN_COMEQSS): Ditto.
6437 (IX86_BUILTIN_COMNESS): Ditto.
6438 (IX86_BUILTIN_COMLTSS): Ditto.
6439 (IX86_BUILTIN_COMLESS): Ditto.
6440 (IX86_BUILTIN_COMGTSS): Ditto.
6441 (IX86_BUILTIN_COMGESS): Ditto.
6442 (IX86_BUILTIN_COMUEQSS): Ditto.
6443 (IX86_BUILTIN_COMUNESS): Ditto.
6444 (IX86_BUILTIN_COMULTSS): Ditto.
6445 (IX86_BUILTIN_COMULESS): Ditto.
6446 (IX86_BUILTIN_COMUGTSS): Ditto.
6447 (IX86_BUILTIN_COMUGESS): Ditto.
6448 (IX86_BUILTIN_COMORDSS): Ditto.
6449 (IX86_BUILTIN_COMUNORDSS): Ditto.
6450 (IX86_BUILTIN_COMFALSESS): Ditto.
6451 (IX86_BUILTIN_COMTRUESS): Ditto.
6452 (IX86_BUILTIN_COMEQSD): Ditto.
6453 (IX86_BUILTIN_COMNESD): Ditto.
6454 (IX86_BUILTIN_COMLTSD): Ditto.
6455 (IX86_BUILTIN_COMLESD): Ditto.
6456 (IX86_BUILTIN_COMGTSD): Ditto.
6457 (IX86_BUILTIN_COMGESD): Ditto.
6458 (IX86_BUILTIN_COMUEQSD): Ditto.
6459 (IX86_BUILTIN_COMUNESD): Ditto.
6460 (IX86_BUILTIN_COMULTSD): Ditto.
6461 (IX86_BUILTIN_COMULESD): Ditto.
6462 (IX86_BUILTIN_COMUGTSD): Ditto.
6463 (IX86_BUILTIN_COMUGESD): Ditto.
6464 (IX86_BUILTIN_COMORDSD): Ditto.
6465 (IX86_BUILTIN_COMUNORDSD): Ditto.
6466 (IX86_BUILTIN_COMFALSESD): Ditto.
6467 (IX86_BUILTIN_COMTRUESD): Ditto.
6468 (IX86_BUILTIN_COMEQPS): Ditto.
6469 (IX86_BUILTIN_COMNEPS): Ditto.
6470 (IX86_BUILTIN_COMLTPS): Ditto.
6471 (IX86_BUILTIN_COMLEPS): Ditto.
6472 (IX86_BUILTIN_COMGTPS): Ditto.
6473 (IX86_BUILTIN_COMGEPS): Ditto.
6474 (IX86_BUILTIN_COMUEQPS): Ditto.
6475 (IX86_BUILTIN_COMUNEPS): Ditto.
6476 (IX86_BUILTIN_COMULTPS): Ditto.
6477 (IX86_BUILTIN_COMULEPS): Ditto.
6478 (IX86_BUILTIN_COMUGTPS): Ditto.
6479 (IX86_BUILTIN_COMUGEPS): Ditto.
6480 (IX86_BUILTIN_COMORDPS): Ditto.
6481 (IX86_BUILTIN_COMUNORDPS): Ditto.
6482 (IX86_BUILTIN_COMFALSEPS): Ditto.
6483 (IX86_BUILTIN_COMTRUEPS): Ditto.
6484 (IX86_BUILTIN_COMEQPD): Ditto.
6485 (IX86_BUILTIN_COMNEPD): Ditto.
6486 (IX86_BUILTIN_COMLTPD): Ditto.
6487 (IX86_BUILTIN_COMLEPD): Ditto.
6488 (IX86_BUILTIN_COMGTPD): Ditto.
6489 (IX86_BUILTIN_COMGEPD): Ditto.
6490 (IX86_BUILTIN_COMUEQPD): Ditto.
6491 (IX86_BUILTIN_COMUNEPD): Ditto.
6492 (IX86_BUILTIN_COMULTPD): Ditto.
6493 (IX86_BUILTIN_COMULEPD): Ditto.
6494 (IX86_BUILTIN_COMUGTPD): Ditto.
6495 (IX86_BUILTIN_COMUGEPD): Ditto.
6496 (IX86_BUILTIN_COMORDPD): Ditto.
6497 (IX86_BUILTIN_COMUNORDPD): Ditto.
6498 (IX86_BUILTIN_COMFALSEPD): Ditto.
6499 (IX86_BUILTIN_COMTRUEPD): Ditto.
6500 (IX86_BUILTIN_PCOMEQUB): Ditto.
6501 (IX86_BUILTIN_PCOMNEUB): Ditto.
6502 (IX86_BUILTIN_PCOMLTUB): Ditto.
6503 (IX86_BUILTIN_PCOMLEUB): Ditto.
6504 (IX86_BUILTIN_PCOMGTUB): Ditto.
6505 (IX86_BUILTIN_PCOMGEUB): Ditto.
6506 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6507 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6508 (IX86_BUILTIN_PCOMEQUW): Ditto.
6509 (IX86_BUILTIN_PCOMNEUW): Ditto.
6510 (IX86_BUILTIN_PCOMLTUW): Ditto.
6511 (IX86_BUILTIN_PCOMLEUW): Ditto.
6512 (IX86_BUILTIN_PCOMGTUW): Ditto.
6513 (IX86_BUILTIN_PCOMGEUW): Ditto.
6514 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6515 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6516 (IX86_BUILTIN_PCOMEQUD): Ditto.
6517 (IX86_BUILTIN_PCOMNEUD): Ditto.
6518 (IX86_BUILTIN_PCOMLTUD): Ditto.
6519 (IX86_BUILTIN_PCOMLEUD): Ditto.
6520 (IX86_BUILTIN_PCOMGTUD): Ditto.
6521 (IX86_BUILTIN_PCOMGEUD): Ditto.
6522 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6523 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6524 (IX86_BUILTIN_PCOMEQUQ): Ditto.
6525 (IX86_BUILTIN_PCOMNEUQ): Ditto.
6526 (IX86_BUILTIN_PCOMLTUQ): Ditto.
6527 (IX86_BUILTIN_PCOMLEUQ): Ditto.
6528 (IX86_BUILTIN_PCOMGTUQ): Ditto.
6529 (IX86_BUILTIN_PCOMGEUQ): Ditto.
6530 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6531 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6532 (IX86_BUILTIN_PCOMEQB): Ditto.
6533 (IX86_BUILTIN_PCOMNEB): Ditto.
6534 (IX86_BUILTIN_PCOMLTB): Ditto.
6535 (IX86_BUILTIN_PCOMLEB): Ditto.
6536 (IX86_BUILTIN_PCOMGTB): Ditto.
6537 (IX86_BUILTIN_PCOMGEB): Ditto.
6538 (IX86_BUILTIN_PCOMFALSEB): Ditto.
6539 (IX86_BUILTIN_PCOMTRUEB): Ditto.
6540 (IX86_BUILTIN_PCOMEQW): Ditto.
6541 (IX86_BUILTIN_PCOMNEW): Ditto.
6542 (IX86_BUILTIN_PCOMLTW): Ditto.
6543 (IX86_BUILTIN_PCOMLEW): Ditto.
6544 (IX86_BUILTIN_PCOMGTW): Ditto.
6545 (IX86_BUILTIN_PCOMGEW): Ditto.
6546 (IX86_BUILTIN_PCOMFALSEW): Ditto.
6547 (IX86_BUILTIN_PCOMTRUEW): Ditto.
6548 (IX86_BUILTIN_PCOMEQD): Ditto.
6549 (IX86_BUILTIN_PCOMNED): Ditto.
6550 (IX86_BUILTIN_PCOMLTD): Ditto.
6551 (IX86_BUILTIN_PCOMLED): Ditto.
6552 (IX86_BUILTIN_PCOMGTD): Ditto.
6553 (IX86_BUILTIN_PCOMGED): Ditto.
6554 (IX86_BUILTIN_PCOMFALSED): Ditto.
6555 (IX86_BUILTIN_PCOMTRUED): Ditto.
6556 (IX86_BUILTIN_PCOMEQQ): Ditto.
6557 (IX86_BUILTIN_PCOMNEQ): Ditto.
6558 (IX86_BUILTIN_PCOMLTQ): Ditto.
6559 (IX86_BUILTIN_PCOMLEQ): Ditto.
6560 (IX86_BUILTIN_PCOMGTQ): Ditto.
6561 (IX86_BUILTIN_PCOMGEQ): Ditto.
6562 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6563 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6564 (enum multi_arg_type): New enum for describing the various SSE5
6565 intrinsic argument types.
6566 (bdesc_multi_arg): New table for SSE5 intrinsics.
6567 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6568 (ix86_expand_multi_arg_builtin): New function for creating SSE5
6569 intrinsics.
6570 (ix86_expand_builtin): Add SSE5 intrinsic support.
6571 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6572 operand instructions.
6573 (ix86_expand_sse5_multiple_memory): New function to split the
6574 second memory reference from SSE5 instructions.
6575 (type_has_variadic_args_p): Delete in favor of stdarg_p.
6576 (ix86_return_pops_args): Use stdarg_p to determine if the function
6577 has variable arguments.
6578 (ix86_setup_incoming_varargs): Ditto.
6579 (x86_this_parameter): Ditto.
6580
6581 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6582 declaration.
6583 (ix86_expand_sse5_pack): Ditto.
6584 (ix86_sse5_valid_op_p): Ditto.
6585 (ix86_expand_sse5_multiple_memory): Ditto.
6586
6587 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6588 constant for SSE5 support.
6589 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6590 (UNSPEC_SSE5_TRUEFALSE): Ditto.
6591 (UNSPEC_SSE5_PERMUTE): Ditto.
6592 (UNSPEC_SSE5_ASHIFT): Ditto.
6593 (UNSPEC_SSE5_LSHIFT): Ditto.
6594 (UNSPEC_FRCZ): Ditto.
6595 (UNSPEC_CVTPH2PS): Ditto.
6596 (UNSPEC_CVTPS2PH): Ditto.
6597 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6598 (PCOM_TRUE): Ditto.
6599 (COM_FALSE_S): Ditto.
6600 (COM_FALSE_P): Ditto.
6601 (COM_TRUE_S): Ditto.
6602 (COM_TRUE_P): Ditto.
6603 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6604 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6605 types.
6606 (memory attribute): Ditto.
6607 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6608 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6609 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6610 (floor<mode>2): Ditto.
6611 (ceil<mode>2): Ditto.
6612 (btrunc<mode>2): Ditto.
6613 (nearbyintdf2): Ditto.
6614 (nearbyintsf2): Ditto.
6615 (sse_setccsf): Disable if SSE5.
6616 (sse_setccdf): Ditto.
6617 (sse5_setcc<mode>): New support for SSE5 conditional move.
6618 (sse5_pcmov_<mode>): Ditto.
6619
6620 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6621 (SSEMODEF4): Ditto.
6622 (SSEMODEF2P): Ditto.
6623 (ssemodesuffixf4): New mode attribute for SSE5.
6624 (ssemodesuffixf2s): Ditto.
6625 (ssemodesuffixf2c): Ditto.
6626 (sserotatemax): Ditto.
6627 (ssescalarmode): Ditto.
6628 (sse_maskcmpv4sf3): Disable if SSE5.
6629 (sse_maskcmpv2df3): Ditto.
6630 (sse_vmmaskcmpv4sf3): Ditto.
6631 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6632 (sse5_vmfmadd<mode>4): Ditto.
6633 (sse5_fmsub<mode>4): Ditto.
6634 (sse5_vmfmsub<mode>4): Ditto.
6635 (sse5_fnmadd<mode>4): Ditto.
6636 (sse5_vmfnmadd<mode>4): Ditto.
6637 (sse5_fnmsub<mode>4): Ditto.
6638 (sse5_vmfnmsub<mode>4): Ditto.
6639 (sse5i_fmadd<mode>4): Ditto.
6640 (sse5i_fmsub<mode>4): Ditto.
6641 (sse5i_fnmadd<mode>4): Ditto.
6642 (sse5i_fnmsub<mode>4): Ditto.
6643 (sse5i_vmfmadd<mode>4): Ditto.
6644 (sse5i_vmfmsub<mode>4): Ditto.
6645 (sse5i_vmfnmadd<mode>4): Ditto.
6646 (sse5i_vmfnmsub<mode>4): Ditto.
6647 (mulv16qi3): Add SSE5 support.
6648 (mulv4si3): Ditto.
6649 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6650 (sse2_mulv4si3): Disable if SSE5.
6651 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6652 (sse4_1_roundps): Ditto.
6653 (sse4_1_roundsd): Ditto.
6654 (sse4_1_roundss): Ditto.
6655 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6656 be generated.
6657 (sse_maskcmpsf3): Ditto.
6658 (sse_vmmaskcmpv4sf3): Ditto.
6659 (sse2_maskcmpv2df3): Ditto.
6660 (sse2_maskcmpdf3): Ditto.
6661 (sse2_vmmaskcmpv2df3): Ditto.
6662 (sse2_eq<mode>3): Ditto.
6663 (sse2_gt<mode>3): Ditto.
6664 (sse5_pcmov_<mode>): Add SSE5 support.
6665 (vec_unpacku_hi_v16qi): Ditto.
6666 (vec_unpacks_hi_v16qi): Ditto.
6667 (vec_unpacku_lo_v16qi): Ditto.
6668 (vec_unpacks_lo_v16qi): Ditto.
6669 (vec_unpacku_hi_v8hi): Ditto.
6670 (vec_unpacks_hi_v8hi): Ditto.
6671 (vec_unpacku_lo_v8hi): Ditto.
6672 (vec_unpacks_lo_v8hi): Ditto.
6673 (vec_unpacku_hi_v4si): Ditto.
6674 (vec_unpacks_hi_v4si): Ditto.
6675 (vec_unpacku_lo_v4si): Ditto.
6676 (vec_unpacks_lo_v4si): Ditto.
6677 (sse5_pmacsww): New SSE5 intrinsic insn.
6678 (sse5_pmacssww): Ditto.
6679 (sse5_pmacsdd): Ditto.
6680 (sse5_pmacssdd): Ditto.
6681 (sse5_pmacssdql): Ditto.
6682 (sse5_pmacssdqh): Ditto.
6683 (sse5_pmacsdqh): Ditto.
6684 (sse5_pmacsswd): Ditto.
6685 (sse5_pmacswd): Ditto.
6686 (sse5_pmadcsswd): Ditto.
6687 (sse5_pmadcswd): Ditto.
6688 (sse5_pcmov_<move>): Conditional move support on SSE5.
6689 (sse5_phaddbw): New SSE5 intrinsic insn.
6690 (sse5_phaddbd): Ditto.
6691 (sse5_phaddbq): Ditto.
6692 (sse5_phaddwd): Ditto.
6693 (sse5_phaddwq): Ditto.
6694 (sse5_phadddq): Ditto.
6695 (sse5_phaddubw): Ditto.
6696 (sse5_phaddubd): Ditto.
6697 (sse5_phaddubq): Ditto.
6698 (sse5_phadduwd): Ditto.
6699 (sse5_phadduwq): Ditto.
6700 (sse5_phaddudq): Ditto.
6701 (sse5_phsubbw): Ditto.
6702 (sse5_phsubwd): Ditto.
6703 (sse5_phsubdq): Ditto.
6704 (sse5_pperm): Ditto.
6705 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
6706 (sse5_pperm_zero_v16qi_v8hi): Ditto.
6707 (sse5_pperm_sign_v8hi_v4si): Ditto.
6708 (sse5_pperm_zero_v8hi_v4si): Ditto.
6709 (sse5_pperm_sign_v4si_v2di): Ditto.
6710 (sse5_pperm_sign_v4si_v2di): Ditto.
6711 (sse5_pperm_pack_v2di_v4si): Ditto.
6712 (sse5_pperm_pack_v4si_v8hi): Ditto.
6713 (sse5_pperm_pack_v8hi_v16qi): Ditto.
6714 (sse5_perm<mode>): New SSE5 intrinsic insn.
6715 (rotl<mode>3): Ditto.
6716 (sse5_rotl<mode>3): Ditto.
6717 (sse5_ashl<mode>3): Ditto.
6718 (sse5_lshl<mode>3): Ditto.
6719 (sse5_frcz<mode>2): Ditto.
6720 (sse5s_frcz<mode>2): Ditto.
6721 (sse5_cvtph2ps): Ditto.
6722 (sse5_cvtps2ph): Ditto.
6723 (sse5_vmmaskcmp<mode>3): Ditto.
6724 (sse5_com_tf<mode>3): Ditto.
6725 (sse5_maskcmp<mode>3): Ditto.
6726 (sse5_maskcmp_uns<mode>3): Ditto.
6727 (sse5_maskcmp_uns2<mode>3): Ditto.
6728 (sse5_pcom_tf<mode>3): Ditto.
6729
6730 * config/i386/predicates.md (sse5_comparison_float_operator):
6731 New predicate to match the comparison operators supported by
6732 the SSE5 com instruction.
6733 (ix86_comparison_int_operator): New predicate to match just the
6734 signed int comparisons.
6735 (ix86_comparison_uns_operator): New predicate to match just the
6736 unsigned int comparisons.
6737
6738 * doc/invoke.texi (-msse5): Add documentation.
6739 (-mfused-madd): Ditto.
6740
6741 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
6742
6743 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
6744 mmintrin-common.h.
6745 (x86_64-*-*): Ditto.
6746
6747 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
6748
6749 * config/i386/bmmintrin.h: New file, provide common x86 compiler
6750 intrinisics for SSE5.
6751
6752 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
6753 mmintrin-common.h.
6754
6755 * config/i386/mmintrin-common.h: New file, to contain common
6756 instructions between SSE4.1 and SSE5.
6757
6758 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
6759 FOREACH_FUNCTION_ARGS to iterate over the argument list.
6760 (gen_regparm_prefix): Ditto.
6761
6762 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
6763 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
6764 prototype_p to determine if a function is prototyped.
6765
6766 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
6767
6768 * c-common.c (c_common_reswords) add the alignof keyword,
6769 with same RID as __alignof and __alignof__
6770
6771 2009-08-25 Anatoly Sokolov <aesok@post.ru>
6772
6773 * hooks.h (hook_bool_const_int_const_int_true): Declare.
6774 * hooks.c (hook_bool_const_int_const_int_true): New function.
6775 * target.h (struct gcc_target): Add can_eliminate field.
6776 * target-def.h (TARGET_CAN_ELIMINATE): Define.
6777 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
6778 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
6779 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
6780 (elim_table): Revise comment.
6781 * system.h (CAN_ELIMINATE): Poison.
6782 * defaults.h (CAN_ELIMINATE): Remove.
6783 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
6784
6785 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
6786 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
6787 Define macro.
6788 (alpha_vms_can_eliminate): Declare as static, change return type to
6789 bool.
6790 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
6791
6792 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
6793 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
6794 (arm_can_eliminate): New function.
6795
6796 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
6797 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
6798 (avr_can_eliminate): Declare as static.
6799 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
6800
6801 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
6802 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
6803 (bfin_can_eliminate): New function.
6804
6805 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
6806 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
6807 (crx_can_eliminate): New function.
6808
6809 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
6810 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
6811 (fr30_can_eliminate): New function.
6812
6813 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
6814 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
6815 (frv_can_eliminate): New function.
6816
6817 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
6818 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
6819 (h8300_can_eliminate): New function.
6820
6821 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
6822 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
6823 (i386_can_eliminate): Declare as static, change return type to bool.
6824 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
6825
6826 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
6827 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
6828 (ia64_can_eliminate): New function.
6829
6830 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
6831 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
6832 (iq2000_can_eliminate): New function.
6833
6834 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
6835 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
6836 (m32r_can_eliminate): New function.
6837
6838 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
6839 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
6840 (m68hc11_can_eliminate): New function.
6841
6842 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
6843 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
6844 (m68k_can_eliminate): New function.
6845
6846 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
6847 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
6848 (mep_can_eliminate): New function.
6849
6850 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
6851 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
6852 (mips_can_eliminate): New function.
6853
6854 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
6855 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
6856 (rs6000_can_eliminate): New function.
6857
6858 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
6859 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
6860 (s390_can_eliminate): Declare as static.
6861 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
6862
6863 * config/score/score.h (CAN_ELIMINATE): Remove macro.
6864 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
6865 (score_can_eliminate): New function.
6866
6867 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
6868 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
6869 (sparc_can_eliminate): Declare as static.
6870 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
6871
6872 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
6873 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
6874 (xstormy16_can_eliminate): New function.
6875
6876 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
6877 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
6878 (v850_can_eliminate): New function.
6879
6880 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
6881
6882 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
6883 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
6884 (*movdfcc_ext[1234]): Disable for IEEE mode.
6885
6886 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
6887
6888 * gimplify.c (prepare_gimple_addressable): New static function.
6889 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
6890 it addressable.
6891 (gimplify_addr_expr): Invoke it similarly on the operand instead of
6892 manually fiddling with it.
6893
6894 2009-08-25 Michael Matz <matz@suse.de>
6895
6896 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
6897 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
6898 full expression.
6899 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
6900 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
6901 (do_jump): Split out code for simple binary comparisons into ...
6902 (do_jump_1): ... this, taking the individual operands and code.
6903 Change callers to helper function above accordingly.
6904 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
6905 comparisons.
6906
6907 2009-08-25 Michael Matz <matz@suse.de>
6908
6909 * expr.h (struct separate_ops, sepops): New type for passing
6910 around an exploded simple expression.
6911 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
6912 Use this structure instead of expression tree.
6913 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
6914 expression, only its type.
6915 (expand_vec_cond_expr): Take type and individual operands instead
6916 of full expression.
6917 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
6918 expand_vec_shift_expr): Change prototype accordingly.
6919 * tree-vect-stmts.c (vectorizable_condition): Change call of
6920 expand_vec_cond_expr_p to pass only type.
6921 * expr.c (do_store_flags): Change prototype and implementation
6922 to take an exploded expression.
6923 (expand_expr_real_1): New local ops initialized with details
6924 of the full expression. Use it instead of full
6925 expression in calls to do_store_flags, expand_vec_cond_expr,
6926 expand_widen_pattern_expr and expand_vec_shift_expr.
6927
6928 2009-08-25 Michael Matz <matz@suse.de>
6929
6930 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
6931 treeop2 initialized with first three operands of the full expression.
6932 Substitute all TREE_OPERAND (exp, [012]) calls with them.
6933
6934 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
6935
6936 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
6937 (__gthread_objc_condition_allocate): Mark arguments as unused.
6938 (__gthread_objc_condition_deallocate): Likewise.
6939 (__gthread_objc_condition_wait): Likewise.
6940 (__gthread_objc_condition_broadcast): Likewise.
6941 (__gthread_objc_condition_signal): Likewise.
6942 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
6943 (__gthread_objc_thread_id): Likewise.
6944
6945 2009-08-25 Janus Weil <janus@gcc.gnu.org>
6946
6947 PR middle-end/41149
6948 * tree-pretty-print.c (print_call_name): Print the correct call name
6949 for procedure pointer components.
6950
6951 2009-08-24 Steve Ellcey <sje@cup.hp.com>
6952
6953 * config/ia64/ia64.c (ia64_promote_function_mode): Call
6954 default_promote_function_mode when not VMS.
6955
6956 2009-08-24 Olivier Hainque <hainque@adacore.com>
6957
6958 * convert.c (convert_to_integer): Don't assume an input pointer is
6959 POINTER_SIZE wide. Fetch from the type instead.
6960
6961 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6962
6963 * configure.ac (AC_PREREQ): Bump to 2.64.
6964
6965 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
6966
6967 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
6968 (process_command): Don't search standard_exec_prefix_1 and
6969 standard_exec_prefix_2.
6970
6971 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6972
6973 * config/arm/arm.c (output_return_instruction): Handle for
6974 unified syntax.
6975
6976 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6977
6978 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
6979
6980 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6981
6982 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
6983 (*arm_movdf_vfp): Likewise.
6984
6985 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6986
6987 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
6988 (vashr<mode>3): Rename from ashr<mode>3.
6989 (vlshr<mode>3): Rename from lshr<mode>3.
6990
6991 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
6992
6993 PR/40786
6994 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6995 (check_format_info_main): Use scalar_identify_flag.
6996 (check_format_types): Check for scalar size identity if
6997 scalar_identify_flag is set.
6998 (printf_length_specs): Extend by new field.
6999 (asm_fprintf_length_specs): Likewise.
7000 (gcc_diag_length_specs): Likewise.
7001 (scanf_length_specs): Likewise.
7002 (strfmon_length_specs): Likewise.
7003 (gcc_gfc_length_specs): Likewise.
7004 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7005 (ms_printf_flag_specs): Likewise.
7006 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7007
7008 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7009
7010 PR target/40718
7011 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7012 (*call_value_pop_1): Ditto.
7013 (*sibcall_pop_1): New insn pattern.
7014 (*sibcall_value_pop_1): Ditto.
7015
7016 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7017
7018 PR target/41081
7019 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7020 ashrsi3_64): New.
7021
7022 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7023
7024 PR target/41081
7025 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7026 (get_reg_use_in): New function.
7027 (forward_propagate_subreg): Propagate through subreg of zero_extend
7028 or sign_extend.
7029
7030 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7031
7032 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7033 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7034
7035 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7036
7037 * configure.ac: Remove --with-datarootdir, --with-docdir,
7038 --with-htmldir switches. No need to call AC_SUBST for
7039 datarootdir, docdir, htmldir any more.
7040 * configure: Regenerate.
7041 * doc/install.texi (Configuration): Document --datarootdir,
7042 --docdir, --htmldir, --pdfdir; update documentation for
7043 --infodir, --mandir.
7044 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7045 M4 to 1.4.6.
7046
7047 * aclocal.m4: Regenerate.
7048 * config.in: Regenerate.
7049 * configure: Regenerate.
7050
7051 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7052 Olivier Hainque <hainque@adacore.com>
7053
7054 * config/ia64/ia64.c: Include libfuncs.h.
7055 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7056 (ia64_expand_call): Use reg 25 on VMS.
7057 (ia64_initialize_trampoline): Fix for VMS ABI.
7058 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7059 (ia64_function_arg): Initialize reg 25 on VMS.
7060 Fix OpenVMS ABI issues for varargs.
7061 For OpenVMS, emit the Argument Information register set in the
7062 incoming/sibcall case as well.
7063 (ia64_arg_type): New function.
7064 (ia64_function_arg_advance): Keep track of cum->words.
7065 Fix OpenVMS ABI issues for varargs.
7066 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7067 (ia64_override_options): Set flag_no_common on VMS.
7068 (ia64_init_builtins): Disable FWRITE builtin.
7069 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7070 (ia64_vms_init_libfuncs): Add decc$ routines.
7071 (ia64_vms_valid_pointer_mode): New function.
7072 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7073 (ia64_promote_function_mode): New function
7074 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7075 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7076 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7077 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7078 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7079 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7080 Suppress trailing '#' if VALUE is numeric.
7081 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7082 ia64_promote_function_mode.
7083 (TARGET_VALID_POINTER_MODE): Define.
7084
7085 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7086
7087 PR target/40671
7088 * config/rs6000/rs6000.c (rs6000_override_options): Use
7089 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7090
7091 PR target/41145
7092 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7093 reporting of vector + decimal/boolean/complex error.
7094
7095 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7096
7097 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7098 __vector double TYPE_DECL.
7099
7100 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7101
7102 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7103 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7104 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7105 to pointer to enum machine_mode. Update all callers as needed.
7106
7107 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7108
7109 * config/alpha/alpha.md (exception_receiver): Emit alternative
7110 GP load sequence if flag_reorder_blocks_and_partition is set.
7111 (*exception_receiver_2): Also enable when
7112 flag_reorder_blocks_and_partition is set.
7113
7114 2009-08-20 Matt Rice <ratmice@gmail.com>
7115 Diego Novillo <dnovillo@google.com>
7116
7117 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7118 tree-ssa-sccvn.h.
7119
7120 2009-08-20 Richard Guenther <rguenther@suse.de>
7121
7122 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7123 * c-tree.h (c_dup_lang_specific_decl): Remove.
7124 (struct lang_decl, struct lang_type): Move definitions ...
7125 * c-lang.h: ... here. New file.
7126 * c-decl.c: Include c-lang.h.
7127 (c_dup_lang_specific_decl): Remove.
7128 * c-typeck.c: Include c-lang.h.
7129 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7130 (c-typeck.o): Likewise.
7131 * c-config-lang.in (gtfiles): Add c-lang.h.
7132 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7133 like c-tree.h.
7134
7135 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7136
7137 * config/alpha/alpha.c (alpha_end_function): Do not clear
7138 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7139 this is now handled in generic code.
7140
7141 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7142
7143 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7144 (s390_z10_fix_long_loop_prediction): New function.
7145 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7146 (s390_reorg): Walk over the INSNs and invoke
7147 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7148
7149 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7150
7151 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7152 "*brx_64bit", "*brx_31bit"): New patterns.
7153 * config/s390/s390.c ('E'): New output modifier.
7154
7155 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7156 Richard Earnshaw <richard.earnshaw@arm.com>
7157
7158 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7159 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7160
7161 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7162
7163 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7164 patterns.
7165 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7166 for mode mode of operand0 when doing secondary reload for SAR.
7167
7168 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7169
7170 PR middle-end/41123
7171 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7172 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7173
7174 2009-08-19 Jason Merrill <jason@redhat.com>
7175
7176 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7177 supported template depth in C++0x.
7178
7179 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7180
7181 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7182 free_after_compilation.
7183 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7184 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7185 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7186 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7187 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7188 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7189 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7190
7191 2009-08-19 Ian Lance Taylor <iant@google.com>
7192
7193 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7194 of (plus (mult (neg B) C) A).
7195
7196 2009-08-18 Michael Matz <matz@suse.de>
7197
7198 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7199 instead of comparing TYPE_MAIN_VARIANT for equality.
7200 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7201 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7202 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7203 * gimplify.c (goa_lhs_expr_p): Ditto and use
7204 STRIP_USELESS_TYPE_CONVERSION.
7205
7206 2009-08-18 Michael Matz <matz@suse.de>
7207
7208 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7209 first field in a struct.
7210 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7211
7212 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7213
7214 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7215 locators before emit_insn is called. Remove assert that
7216 cfun->is_thunk.
7217 (alpha_end_function): Clear crtl->emit structure and free insn
7218 locators if cfun->is_thunk is true.
7219
7220 2009-08-18 Jason Merrill <jason@redhat.com>
7221
7222 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7223 type if available.
7224 * configure.ac: Test for it.
7225 * configure, config.in: Regenerate.
7226 * doc/install.texi: Document --enable-gnu-unique-object.
7227
7228 2009-08-18 Richard Guenther <rguenther@suse.de>
7229
7230 PR middle-end/41094
7231 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7232 pow(x,y*z) only if x is nonnegative.
7233
7234 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7235
7236 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7237 on jumps.
7238
7239 PR target/40971
7240 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7241 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7242
7243 2009-08-17 DJ Delorie <dj@redhat.com>
7244
7245 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7246 * config/m32c/prologue.md (epilogue_freit): New.
7247 (fset_b): New.
7248 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7249 (bank_switch_p): Likewise.
7250 (fast_interrupt_p): Likewise.
7251 (interrupt_p): Likewise.
7252 (m32c_conditional_register_usage): Round memregs size up.
7253 (need_to_save): We only need to save $a0 when we use ENTER.
7254 (interrupt_p): Check for fast_interrupt too.
7255 (bank_switch_p): New.
7256 (fast_interrupt_p): New.
7257 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7258 (m32c_emit_prolog): Support bank switching and fast interrupts.
7259 * doc/extend.texi (Function Attributes): Add bank_switch and
7260 fast_interrupt.
7261
7262 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7263
7264 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7265 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7266
7267 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7268
7269 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7270 (menu): Add IA-64/VMS Options.
7271 (IA-64/VMS Options): Likewise.
7272
7273 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7274
7275 PR target/38599
7276 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7277
7278 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7279
7280 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7281 (mips_pop_asm_switch): Likewise.
7282 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7283 with...
7284 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7285 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7286 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7287 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7288 instead of set_noreorder.
7289 (mips_output_function_prologue): Use the new functions.
7290 (mips_output_function_epilogue): Likewise.
7291 (mips_need_noat_wrapper_p): New function, split out from...
7292 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7293 Use mips_push_asm_switch and mips_pop_asm_switch.
7294 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7295 and mips_pop_asm_switch.
7296 (ASM_OUTPUT_REG_POP): Likewise.
7297 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7298 Use mips_pop_asm_switch.
7299 (mips_asm_switch): New structure.
7300 (set_noreorder, set_nomacro): Replace with...
7301 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7302 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7303 instead of set_nomacro.
7304 (fix_truncsfsi2_macro): Likewise.
7305 (cprestore): Likewise.
7306 (hazard): Use mips_noreorder instead of set_noreorder.
7307 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7308
7309 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7310
7311 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7312 from prev_active_insn.
7313
7314 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7315
7316 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7317 * config/avr/avr.c (avr_override_options): Initialize
7318 avr_current_arch variable.
7319 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7320 __AVR_HAVE_16BIT_SP__ according to the device type.
7321 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7322 TARGET_TINY_STACK.
7323 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7324 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7325
7326 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7327
7328 PR debug/37801
7329 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7330 generating inlined subroutine die only. We shouldn't be
7331 called for anything else.
7332 (gen_block_die): Don't generate inline subroutine debug info for
7333 abstract blocks.
7334
7335 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7336
7337 * graphite-poly.c (print_pbb): Print PBB index.
7338
7339 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7340
7341 PR middle-end/40981
7342 * graphite-interchange.c (ppl_max_for_le): Moved...
7343 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7344 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7345 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7346 * graphite-ppl.h (ppl_max_for_le): Declared.
7347
7348 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7349
7350 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7351 supported on all platforms.
7352 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7353 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7354 * c-pragma.c: Likewise.
7355 * target-def.h (TARGET_INITIALIZER): Remove
7356 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7357 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7358
7359 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7360
7361 * config/ia64/fde-vms.c: New file.
7362 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7363 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7364 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7365 (uw_frame_state_for): Only register a personality routine if it is
7366 known to be compatible with our expectations.
7367 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7368 Declare unw_table_entry stack variable and
7369 mod all calls to _Unwind_FindTableEntry to add arg.
7370 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7371 (_Unwind_FindTableEntry): Add arg to prototype.
7372
7373 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7374
7375 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7376 field 'signal_pfs_loc'.
7377 (uw_frame_state_for): Remove duplicate code dealing with leaf
7378 procedures without unwind info.
7379 If in the frame after unwinding through a signal handler, restore
7380 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7381 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7382 'pfs_loc' to the AR.PFS location in the signal context; instead
7383 set 'signal_pfs_loc'.
7384 Manually generate the unwind info for the AR.PFS register.
7385 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7386 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7387 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7388 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7389 instead set 'signal_pfs_loc'.
7390 Remove code preventing the AR.PFS register from being restored
7391 from the signal context.
7392
7393 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7394 Tristan Gingold <gingold@adacore.com>
7395
7396 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7397 * config/ia64/t-vms: New file.
7398 * config/ia64/vms64.h: New file.
7399 * config/ia64/vms.h: New file.
7400 * config/ia64/vms-crtinit.asm: New file.
7401 * config/ia64/vms_symvec_libgcc_s.opt: New file.
7402 * config/ia64/vms-unwind.h: New file.
7403
7404 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7405
7406 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7407 TFmode compares.
7408
7409 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7410
7411 PR middle-end/30789
7412 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7413 Move declaration...
7414 * real.h (do_mpc_arg2): ... here.
7415 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7416 and RDIV_EXPR.
7417
7418 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
7419
7420 * final.c (add_debug_prefix_map): Don't use GC memory for
7421 old_prefix and new_prefix.
7422
7423 2009-08-14 Richard Guenther <rguenther@suse.de>
7424
7425 * ipa-prop.c (compute_complex_pass_through): If we cannot
7426 compute a non-varying offset for IPA_JF_ANCESTOR punt.
7427
7428 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7429
7430 * c-lex.c (c_lex_with_flags): Increase size of local variable
7431 to avoid memory clobber.
7432
7433 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
7434
7435 PR target/40934
7436 * config/i386/i386.c (ix86_fp_comparison_strategy):
7437 Only enable/disable sahf at function granularity.
7438
7439 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
7440
7441 PR rtl-optimization/41064
7442 * reload1.c (reload_as_needed): Don't call extract_insn
7443 for known invalid replacements after calling
7444 validate_replace_rtx_group and verify_changes.
7445
7446 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7447
7448 PR target/41019
7449 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7450 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7451 ix86_expand_fp_vcond.
7452 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7453 Assert that operation is supported by ix86_expand_int_vcond.
7454 (vcondu<SSEMODE124C8:mode>): Ditto.
7455
7456 2009-08-13 DJ Delorie <dj@redhat.com>
7457
7458 * config/i386/djgpp-stdint.h: New.
7459 * config.gcc (djgpp): Use it.
7460
7461 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
7462
7463 * config/sh/sh.c (sh_override_options): When flag_exceptions or
7464 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7465
7466 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
7467
7468 * tree-ssa-loop-prefetch.c
7469 (prune_ref_by_group_reuse): Enhance probabilistic analysis
7470 for long-stride pruning.
7471 (compute_miss_rate): New function to compute the probability
7472 that two memory references access different cache lines.
7473
7474 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
7475
7476 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7477
7478 2009-08-13 Richard Guenther <rguenther@suse.de>
7479
7480 PR middle-end/41047
7481 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7482 use the constant pointer type.
7483 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7484 of CV qualifiers on the target pointer type.
7485 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7486 conversion check before restrict check.
7487
7488 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7489
7490 PR target/41029
7491 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7492
7493 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7494
7495 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7496
7497 2009-08-12 Richard Guenther <rguenther@suse.de>
7498
7499 PR tree-optimization/41011
7500 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7501 and reference constructing.
7502
7503 2009-08-12 Xinliang David Li <davidxl@google.com>
7504
7505 PR tree-optimization/41012
7506 * tree-flow.h : New external interface.
7507 * gimple-low.c (check_call_arg): Change to public function.
7508 Remove argument mismatch check in lowering.
7509 * tree-inline.h (tree_can_inline_p): Interface change.
7510 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7511 into this function.
7512 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7513 Call change to tree_can_inline_p function.
7514 (cgraph_decide_inlining_incrementally): Ditto.
7515
7516 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
7517
7518 PR tree-optimization/41031
7519 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7520 on the partition variable rather than promote_mode on the source
7521 type. Assert that the partition variable's type has the same
7522 mode as the source value's.
7523
7524 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
7525
7526 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7527 for for_return == 2.
7528 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7529 comments.
7530 * calls.c (expand_call): Fix typo.
7531 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7532 and PARM_DECL.
7533 * stmt.c (expand_value_return): Use promote_function_mode to copy out
7534 of pseudo.
7535 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7536 * config/cris/cris.c (cris_promote_function_mode): Likewise.
7537 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7538 * config/pa/pa.c (pa_promote_function_mode): Likewise.
7539
7540 2009-08-12 Andrew Haley <aph@redhat.com>
7541
7542 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7543
7544 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7545
7546 PR bootstrap/40103
7547 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7548
7549 2009-08-12 Richard Guenther <rguenther@suse.de>
7550
7551 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7552 * gimplify.c (gimplify_modify_expr): Do not use
7553 lang_hooks.types_compatible_p.
7554 * tree-ssa.c (useless_type_conversion_p): For aggregates
7555 just return false if the canonical types differ.
7556
7557 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7558
7559 PR middle-end/40980
7560 * sese.c (convert_for_phi_arg): New.
7561 (add_guard_exit_phis): Use convert_for_phi_arg.
7562
7563 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7564
7565 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7566 unknown subscript upper bounds.
7567
7568 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7569 Pranav Garg <pranav.garg2107@gmail.com>
7570
7571 * graphite-interchange.c (gather_access_strides): Removed.
7572 (ppl_max_for_le): New.
7573 (build_linearized_memory_access): New.
7574 (memory_stride_in_loop): New.
7575 (pbb_interchange_profitable_p): Reimplemented.
7576 * graphite-ppl.h (ppl_new_id_map): New.
7577 (ppl_interchange): New.
7578
7579 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7580
7581 * graphite-interchange.c (compute_subscript): Removed.
7582 (compute_array_size_cstr): Removed.
7583 (compute_array_size_poly): Removed.
7584 (compute_array_size): Removed.
7585 (gather_access_strides_poly): Removed.
7586 (gather_access_strides): Empty.
7587
7588 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7589
7590 * graphite-dependences.c (dependence_polyhedron_1): Replace
7591 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7592 (graphite_legal_transform_dr): Same.
7593 (graphite_carried_dependence_level_k): Same.
7594 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7595 Initialize PDR_NB_SUBSCRIPTS.
7596 (print_pdr_access_layout): Replace pdr_nb_subscripts with
7597 PDR_NB_SUBSCRIPTS.
7598 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7599 (PDR_NB_SUBSCRIPTS): New.
7600 (pdr_nb_subscripts): Removed.
7601 (pdr_dim): Simplified.
7602 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7603 with PDR_NB_SUBSCRIPTS.
7604
7605 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7606
7607 * graphite-interchange.c (compute_array_size): Remove use of
7608 PDR_DATA_CONTAINER.
7609 * graphite-poly.c (new_poly_dr): Remove argument data_container.
7610 Do not initialize PDR_DATA_CONTAINER.
7611 (print_pdr): Do not print PDR_DATA_CONTAINER.
7612 * graphite-poly.h (struct poly_dr): Remove data_container field.
7613 (PDR_DATA_CONTAINER): Removed.
7614 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7615 PDR_DATA_CONTAINER.
7616 (build_poly_dr): Same.
7617
7618 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
7619 Sebastian Pop <sebastian.pop@amd.com>
7620
7621 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7622 copy of the dependence polyhedron. Free the temporary objects.
7623 (graphite_carried_dependence_level_k): Free unused objects before
7624 returning.
7625
7626 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7627
7628 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7629 Early return without analyzing the data dependences if no
7630 transform has been done. Call restore_scattering if the transform
7631 is not legal.
7632 (graphite-interchange.c): Same.
7633 * graphite-poly.c (print_scattering_function): Test for
7634 PBB_TRANSFORMED.
7635 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7636 (apply_poly_transforms): Do not gcc_assert that
7637 the transform is legal.
7638 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7639 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7640 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7641 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7642 * graphite-poly.h (struct poly_scattering): New.
7643 (struct poly_bb): Add original, transformed, and saved fields.
7644 Remove transformed_scattering, original_scattering,
7645 nb_local_variables and nb_scattering_transform fields.
7646 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7647 (poly_scattering_new): New.
7648 (poly_scattering_free): New.
7649 (poly_scattering_copy): New.
7650 (store_scattering_pbb): New.
7651 (store_scattering): New.
7652 (restore_scattering_pbb): New.
7653 (restore_scattering): New.
7654 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7655 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7656
7657 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7658
7659 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7660 (print_scop): Same.
7661
7662 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7663
7664 * Makefile.in (graphite.o): Depends on PREDICT_H.
7665 * graphite.c: Include predict.h.
7666 (graphite_finalize): Call tree_estimate_probability.
7667 * predict.c (predict_loops): Do not call scev_initialize and
7668 scev_finalize.
7669 (tree_estimate_probability_bb): New.
7670 (tree_estimate_probability): Do not initialize loops: move that
7671 code to the driver. Call tree_estimate_probability_bb.
7672 (tree_estimate_probability_driver): New.
7673 (pass_profile): Use tree_estimate_probability_driver.
7674 * predict.h (tree_estimate_probability): Declared.
7675
7676 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7677
7678 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
7679 * graphite-dependences.c (graphite_legal_transform): Add time to
7680 TV_GRAPHITE_DATA_DEPS.
7681 (dependency_between_pbbs_p): Same.
7682 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
7683
7684 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
7685
7686 PR rtl-optimization/41033
7687 * alias.c (nonoverlapping_component_refs_p): Punt when strict
7688 aliasing is disabled.
7689
7690 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
7691
7692 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
7693 si_mask_operand, and_load_operand, low_bitmask_operand,
7694 and_reg_operand, and_operand): New predicates.
7695 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
7696 * config/mips/mips.c (and_operands_ok): New function.
7697 * config/mips/mips-protos.h (and_operands_ok): Declare it.
7698 * config/mips/mips.md (move_type): Add ext_ins and logical.
7699 (type): Handle them.
7700 (and<mode>3): Use and_reg_operand as the second operand's predicate.
7701 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
7702 shift_shift. Remove commutative constraint modifier.
7703 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
7704 shift_shift.
7705 (*clear_upper32_dext): Remove define_insn_and_split.
7706 (*clear_upper32): Turn this define_insn_and_split ...
7707 (splitter for ANDing register with 0xffff_ffff): .. into this.
7708
7709 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
7710
7711 * combine.c (try_widen_shift_mode): Factor out code to check if an
7712 integer constant is a low-order bitmask from here ...
7713 * rtlanal.c (low_bitmask_len): ... to here.
7714 * rtl.h (low_bitmask_len): Declare.
7715
7716 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
7717
7718 PR target/8603
7719 * config/alpha/alpha.md (addsi3): Remove expander.
7720 (addsi3): Rename from *addsi3_internal insn pattern.
7721 (subsi3): Remove expander.
7722 (subsi3): Rename from *subsi3_internal insn pattern.
7723
7724 2009-08-11 Douglas B Rupp <rupp@gnat.com>
7725
7726 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
7727 FWRITE_UNLOCKED.
7728
7729 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
7730 Eric Botcazou <botcazou@adacore.com>
7731 Douglas B Rupp <rupp@gnat.com>
7732
7733 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
7734 that records that fit in 64 bits are returned by immediate value,
7735 as required by OpenVMS Calling Standard.
7736 (function_value): Adjust for above modification.
7737 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
7738 virtual_incoming_args_rtx as base object, not next_arg.
7739 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7740
7741 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7742
7743 * reload.c (find_reloads_subreg_address): Check the original
7744 req_equiv_mem address to detect the case where an address is
7745 not valid in the outer mode.
7746
7747 2009-08-11 Richard Guenther <rguenther@suse.de>
7748
7749 PR bootstrap/40788
7750 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
7751
7752 2009-08-10 Douglas B Rupp <rupp@gnat.com>
7753
7754 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
7755 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
7756
7757 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
7758 Douglas B Rupp <rupp@gnat.com>
7759
7760 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
7761 PT_STACK when frame_pointer_needed on OpenVMS.
7762 (alpha_pv_save_size, alpha_using_fp): Remove.
7763 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
7764 with proper processing for PT_NULL.
7765 (alpha_vms_initial_elimination_offset): New function. Support for
7766 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
7767 (alpha_sa_size): Force procedure type to PT_STACK when
7768 frame_pointer_needed on OpenVMS.
7769 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
7770 (alpha_using_fp): Likewise.
7771 (alpha_vms_can_eliminate): Add prototype.
7772 (alpha_vms_initial_elimination_offset): Likewise.
7773 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
7774 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
7775
7776 2009-08-10 Eric Botcazou <botcazou@adacore.com>
7777 Douglas B Rupp <rupp@gnat.com>
7778
7779 * config/alpha/alpha.c (common_object_handler): New function.
7780 (vms_attribute_table): Declare a single attribute "common_object".
7781 (vms_output_aligned_decl_common): New global function.
7782 (SECTION_VMS_OVERLAY): Delete.
7783 (SECTION_VMS_GLOBAL): Likewise.
7784 (SECTION_VMS_INITIALIZE): Likewise.
7785 (vms_asm_named_section): Remove support for above flags.
7786 (vms_section_type_flags): Delete.
7787 (TARGET_SECTION_TYPE_FLAGS): Likewise.
7788 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
7789 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
7790 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
7791
7792 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7793
7794 PR target/41015
7795 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
7796 (sub_ddmmss): Likewise.
7797
7798 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
7799
7800 PR bootstrap/41018
7801 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
7802 year.
7803
7804 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7805
7806 PR target/37053
7807 * reload1.c (reload_as_needed): Use cancel_changes to completely
7808 undo a failed replacement attempt.
7809
7810 2009-08-10 Richard Guenther <rguenther@suse.de>
7811
7812 PR middle-end/41006
7813 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
7814 (useless_type_conversion_p): ... here. Require pointer targets
7815 to be compatible.
7816
7817 2009-08-10 Dodji Seketeli <dodji@redhat.com>
7818
7819 PR c++/40866
7820 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
7821 loose the original type of the statement list.
7822
7823 2009-08-09 Douglas B Rupp <rupp@gnat.com>
7824
7825 * config/alpha/alpha.c: Include libfuncs.h
7826 (avms_asm_output_extern): New function.
7827 (alpha_init_libfuncs): Init some decc libfuncs.
7828 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
7829 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
7830 (DO_CRTL_NAMES): Define.
7831 (LIB_SPEC): Remove.
7832 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
7833 (LONG_TYPE_SIZE): Define.
7834 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
7835 (SUBTARGET_SWITCHES): Define malloc64 switch.
7836 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
7837 (MASK_RETURN_ADDR): Define.
7838 doc/invoke.texi (mmalloc64): Document switch.
7839
7840 2009-08-09 Olivier Hainque <hainque@adacore.com>
7841 Douglas B Rupp <rupp@gnat.com>
7842
7843 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
7844 uses_condition_handler.
7845 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
7846 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
7847 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
7848 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
7849 (code_for_builtin): New insn codes for the new alpha_builtins.
7850 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
7851 (alpha_sa_size): Account for uses_condition_handler.
7852 (alpha_expand_prologue): Likewise.
7853 (alpha_start_function): Likewise.
7854 (alpha_expand_epilogue): Likewise.
7855 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
7856 establish/revert expanders.
7857 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
7858 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
7859 New expander, resorting to the alpha.c associated function.
7860 (builtin_revert_vms_condition_handler): Likewise.
7861 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
7862 __gcc_shell_handler, the static VMS condition handler used as
7863 an indirection wrapper to the current dynamically established
7864 handler.
7865 * config/alpha/vms-unwind.h: Complete rewrite.
7866 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
7867 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
7868
7869 2009-08-09 Eric Botcazou <botcazou@adacore.com>
7870 Douglas B Rupp <rupp@gnat.com>
7871
7872 * config/alpha/alpha.c (alpha_links): Add 'target' field.
7873 (alpha_need_linkage): Handle aliases. Return function symbol.
7874 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
7875 Use ultimate alias target for the linkage name.
7876 * config/alpha/alpha.md (movmemdi): Use the symbol returned
7877 by alpha_need_linkage for the function symbol.
7878 (setmemdi): Likewise.
7879
7880 2009-08-09 Douglas B Rupp <rupp@gnat.com>
7881
7882 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
7883 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
7884 (ASM_WEAKEN_LABEL): Define.
7885 (CRT_CALL_STATIC_FUNCTION): Define.
7886 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
7887 (ENDFILE_SPEC): Define.
7888 (INIT_SECTION_ASM_OP): Define.
7889 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
7890 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
7891 crtend.o crtendS.o.
7892 (MULTILIB_OSDIRNAMES): Define.
7893 (shlib_version): Define.
7894 (SHLIB_EXT): Define.
7895 (SHLIB_OBJS): Define.
7896 (SHLIB_NAME): Define.
7897 (SHLIB_MULTILIB): Define.
7898 (SHLIB_INSTALL): Define.
7899 (SHLIB_SYMVEC): Define.
7900 (SHLIB_SYMVECX2): Define.
7901 (SHLIB_LINK): Define.
7902
7903 2009-08-09 Douglas B Rupp <rupp@gnat.com>
7904
7905 * config/alpha/alpha.c (alpha_initialize_trampoline):
7906 Initialize VMS trampoline IAW ABI for bounded procedure calls.
7907 (alpha_start_function): Emit transfer address on nested functions
7908 for VMS trampoline call.
7909 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
7910 since no longer used.
7911 * config/alpha/vms-tramp.asm: Remove.
7912 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
7913 since now only data initialized at runtime.
7914
7915 2009-08-09 Douglas B Rupp <rupp@gnat.com>
7916
7917 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
7918 (LINK_GCC_C_SEQUENCE_SPEC): Define.
7919 (MD_EXEC_PREFIX): Remove, no longer used.
7920 (MD_STARTFILE_PREFIX): Likewise.
7921 (INCLUDE_DEFAULTS): Likewise.
7922 * config/alpha/t-vms:
7923 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
7924
7925 2009-08-09 Richard Guenther <rguenther@suse.de>
7926
7927 PR tree-optimization/41016
7928 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
7929 (operand_precision): Remove.
7930 (integral_operand_p): Likewise.
7931 (recognize_single_bit_test): Adjust.
7932
7933 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7934
7935 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
7936 operation overflows. Likewise non-cast unary arithmetic.
7937 If one arm of a conditional expression is always taken,
7938 inhibit evaluation warnings for the other arm. Likewise inhibit
7939 evaluation warnings for the second && or || operand if the first
7940 operand is enough to determine the result.
7941 * c-typeck.c (build_conditional_expr): Apply the same inhibition
7942 rules here.
7943 (build_binary_op): Prevent duplicate evaluation warnings.
7944
7945 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7946
7947 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
7948 and destination have different modes, Use promote_mode to
7949 determine the signedness of the conversion. Assert that the
7950 promoted source mode matches the destination mode. Don't pass
7951 the destination and destination mode to expand_expr if the source
7952 mode is different. Simplify conversion logic.
7953
7954 2009-08-09 Ira Rosen <irar@il.ibm.com>
7955
7956 PR tree-optimization/41008
7957 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
7958 from condition only in case it's a comparison. Adjust checks.
7959
7960 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
7961
7962 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
7963 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
7964 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
7965 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
7966 (dump_cand): Handle them.
7967 (struct iv_cand): New members COST_STEP and AINC_USE.
7968 (stmt_after_increment): Likewise.
7969 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
7970 callers changed. Use gimple_uid comparison instead of scanning.
7971 (add_candidate_1): When looking for identical candidates, take
7972 AINC_USE into account. Set it for new candidates.
7973 (force_expr_to_var_cost): Cast target_spill_cost to int.
7974 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
7975 All callers changed. Check for availability of autoinc addressing
7976 modes, both in general for a given mode, and in the specific use case.
7977 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
7978 changed.
7979 (get_computation_cost): Likewise.
7980 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
7981 add_autoinc_candidates): New static functions.
7982 (add_candidate): Call add_autoinc_candidates for candidates based on
7983 a USE_ADDRESS use.
7984 (find_iv_candidates): Call set_autoinc_for_original_candidates.
7985 (determine_use_iv_cost_address): If we have an autoinc candidate at
7986 the matching use, verify autoinc is possible and subtract the cost
7987 of the candidate's step from the cost.
7988 (determine_iv_cost): Record the cost of the increment in the COST_STEP
7989 member of the candidate.
7990 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
7991 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
7992
7993 2009-08-09 Douglas B Rupp <rupp@gnat.com>
7994
7995 * config.build (ia64-hp-*vms*): New target.
7996 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7997 with ia64-hp-*vms*.
7998 * config.gcc (ia64-hp-*vms*): New target.
7999 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8000 with ia64-hp-*vms*.
8001 * config.host (ia64-hp-*vms*): New target.
8002 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8003 with ia64-hp-*vms*.
8004
8005 2009-08-08 Richard Guenther <rguenther@suse.de>
8006
8007 PR tree-optimization/40991
8008 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8009
8010 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8011
8012 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8013 mode check. Do truncations in an integer mode.
8014 (force_to_mode): Handle subregs for all mode types. Only do
8015 arithmetic simplifications on integer modes.
8016
8017 2009-08-07 Richard Guenther <rguenther@suse.de>
8018
8019 PR tree-optimization/40999
8020 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8021 (maybe_fold_reference): Lookup constant initializers.
8022 (fold_gimple_assign): Likewise.
8023
8024 2009-08-07 Richard Guenther <rguenther@suse.de>
8025
8026 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8027 that require structural equality defer to the langhook.
8028
8029 2009-08-07 Martin Jambor <mjambor@suse.cz>
8030
8031 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8032 comments.
8033 (struct ipa_pass_through_data): New type.
8034 (struct ipa_ancestor_jf_data): New type.
8035 (union jump_func_value): Removed field formal_id, added fields
8036 pass_through and ancestor.
8037 (struct ipa_param_call_note): Changed type of formal_id to int from
8038 unsigned.
8039 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8040 operations jump functions and ancestor jump functions.
8041 (compute_complex_pass_through): New function.
8042 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8043 reflect changes in the jump function strucutre.
8044 (update_jump_functions_after_inlining): Ignore complex pass-through
8045 and ancestor jump functions.
8046 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8047 polynomial pass-through with operation jump functions.
8048
8049 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8050
8051 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8052 fde->dw_fde_begin as begin label instead of hot/cold label.
8053 Use LLSDAC label instead of LLSDA for second section lsda.
8054 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8055 label instead of LLSDA if it is true.
8056 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8057 callers.
8058 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8059 SECTION argument. Use it as index into crtl->eh.call_site_record
8060 array.
8061 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8062 use it to determine how to print table entries instead of using
8063 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8064 label instead of normal begin label as base.
8065 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8066 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8067 ensure no EH range spans between sections and that landing pads
8068 are always in the corresponding section.
8069 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8070 for crtl->eh.call_site_record being an array rather than scalar.
8071 (output_one_function_exception_table): New function, copied
8072 from output_function_exception_table. Adjust
8073 dw2_size_of_call_site_table, dw2_output_call_site_table
8074 callers. For SECOND section use *C suffixed labels.
8075 (output_function_exception_table): Call
8076 output_one_function_exception_table and, when doing hot/cold
8077 partitioning, also another time for the second section.
8078 * opts.c: Include except.h.
8079 (decode_options): Allow -freorder-blocks-and-partition with
8080 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8081 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8082 * function.h (struct rtl_eh): Change call_site_record from
8083 scalar into array of 2 elements.
8084
8085 2009-08-07 Martin Jambor <mjambor@suse.cz>
8086
8087 * ipa-prop.c (count_formal_params_1): New function.
8088 (ipa_get_vector_of_formal_parms): New function.
8089 (get_vector_of_formal_parm_types): New function.
8090 (ipa_modify_formal_parameters): New function.
8091 (ipa_modify_call_arguments): New function.
8092 (index_in_adjustments_multiple_times_p): New function.
8093 (ipa_combine_adjustments): New function.
8094 (ipa_dump_param_adjustments): New function.
8095 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8096 (ipa_get_vector_of_formal_parms): Declare.
8097 (ipa_modify_formal_parameters): Declare.
8098 (ipa_modify_call_arguments): Declare.
8099 (ipa_combine_adjustments): Declare.
8100 (ipa_dump_param_adjustments): Declare.
8101 (build_ref_for_offset): Declare.
8102 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8103 * tree-sra.c: Include ipa-prop.c.
8104 (build_ref_for_offset): Make public.
8105
8106 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8107
8108 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8109
8110 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8111
8112 * gcc/doc/extend.texi (__builtin_extract_return_address)
8113 (__builtin_frob_return_address): Document.
8114
8115 2009-08-06 Paul Brook <paul@codesourcery.com>
8116
8117 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8118 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8119 implementation on ARMv6-M.
8120
8121 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8122
8123 * doc/extend.texi (pcs): Document new attribute for ARM.
8124
8125 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8126
8127 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8128 variants.
8129
8130 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8133 warning ().
8134
8135 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8136
8137 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8138
8139 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8140
8141 Merge ARM/hard_vfp_branch to trunk.
8142
8143 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8144
8145 * arm.c (libcall_eq): New function.
8146 (libcall_hash): New function.
8147 (add_libcall): New function.
8148 (arm_libcall_uses_aapcs_base): New function.
8149 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8150 libcalls using the base PCS.
8151 (arm_init_cumulative_args): Likewise.
8152
8153 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8154
8155 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8156 Use base ABI for conversion libfuncs between HFmode and SFmode.
8157
8158 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8159
8160 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8161 V4SImode as representatives of all 64-bit and 128-bit vector
8162 types. Allow vector types without vector modes.
8163 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8164 without vector modes like BLKmode.
8165 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8166 BLKmode. Avoid unsupported vector modes or TImode moves for
8167 non-TARGET_NEON.
8168 (aapcs_vfp_allocate_return_reg): Likewise.
8169 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8170 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8171
8172 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8173
8174 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8175 (arm_get_pcs_model): Pass attribute arguments to
8176 arm_pcs_from_attribute.
8177 (arm_init_cumulative_args): Use base AAPCS for conversions from
8178 floating-point types to DImode.
8179 (arm_attribute_table): Add pcs attribute.
8180 (arm_handle_pcs_attribute): New.
8181 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8182 conversions from floating-point types to DImode, also declare them
8183 to use base AAPCS and declare functions they call to use base
8184 AAPCS and their RTABI names.
8185
8186 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8187
8188 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8189 -mfloat-abi=hard not being supported for VFP.
8190
8191 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8192
8193 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8194 SYMBOL_REF to hard_libcall_value.
8195
8196 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8197 Richard Earnshaw <rearnsha@arm.com>
8198
8199 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8200 has been put on the stack, all remaining co-processory arguments for
8201 that co-processor also go on the stack.
8202
8203 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8204
8205 * config/arm/arm.c (arm_return_in_memory): Handle returning
8206 vectors of suitable size in registers also for AAPCS case.
8207
8208 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8209
8210 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8211
8212 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8213
8214 ARM Hard-VFP calling convention
8215 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8216 * target.h (gcc_target): Add libcall_value to table of call hooks.
8217 * targhooks.h (default_libcall_value): Default implementation.
8218 * targhooks.c (default_libcall_value): Likewise.
8219 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8220 * optabs.c (expand_unop): Use it.
8221 * expr.h (hard_libcall_value): Pass the function RTX through.
8222 * calls.c (emit_library_call_value_1): Update call to
8223 hard_libcall_value.
8224 * explow.c (hard_libcall_value): Use new target hook.
8225 * testsuite/lib/target-supports.exp
8226 (check_effective_target_arm_hard_vfp_ok): New hook.
8227 (check_effective_target_arm_neon_ok): Improve test for neon
8228 availability.
8229 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8230 * config/arm/arm.c: Include cgraph.h
8231 (TARGET_FUNCTION_VALUE): Override default hook.
8232 (arm_pcs_default): New variable.
8233 (arm_override_options): Don't fault hard calling convention with VFP.
8234 Add support for AAPCS variants.
8235 (arm_function_value): Make static. Handle AAPCS variants.
8236 (arm_libcall_value): New function.
8237 (arm_apply_result_size): Handle VFP registers in results.
8238 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8239 conventions.
8240 (pcs_attribute_args): New variable.
8241 (arm_pcs_from_attribute): New function.
8242 (arm_get_pcs_model): New function.
8243 (aapcs_vfp_cum_init): New function.
8244 (aapcs_vfp_sub_candidate): New function.
8245 (aapcs_vfp_is_return_candidate): New function.
8246 (aapcs_vfp_is_call_candidate): New function.
8247 (aapcs_vfp_allocate): New function.
8248 (aapcs_vfp_allocate_return_reg): New function.
8249 (aapcs_vfp_advance): New function.
8250 (aapcs_cp_arg_layout): New variable.
8251 (aapcs_select_call_coproc): New function.
8252 (aapcs_select_return_coproc): New function.
8253 (aapcs_allocate_return_reg): New function.
8254 (aapcs_libcall_value): New function.
8255 (aapcs_layout_arg): New function.
8256 (arm_init_cumulative_args): Initialize AAPCS args data.
8257 (arm_function_arg): Handle AAPCS variants using new interface.
8258 (arm_arg_parital_bytes): Likewise.
8259 (arm_function_arg_advance): New function.
8260 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8261 calling conventions.
8262 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8263 * arm.h (NUM_VFP_ARG_REGS): Define.
8264 (LIBCALL_VALUE): Update.
8265 (FUNCTION_VALUE): Delete.
8266 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8267 (arm_pcs): New enum.
8268 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8269 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8270 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8271 * arm-protos.h (arm_function_arg_advance): Add.
8272 (aapcs_libcall_value): Add.
8273 (arm_function_value): Delete.
8274
8275 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8276 H.J. Lu <hongjiu.lu@intel.com>
8277
8278 PR target/40957
8279 * config/i386/i386.c (standard_sse_mode_p): Remove.
8280 (standard_sse_constant_p): Return 2 for integer mode
8281 vector_all_ones_operand when SSE2 is enabled.
8282 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8283 (ix86_expand_vector_move): Do not check for negative values from
8284 standard_sse_constant_p.
8285
8286 2009-08-06 Richard Guenther <rguenther@suse.de>
8287
8288 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8289 array type comparisons frontend independent.
8290 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8291 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8292 out array reference lower bound and element size operands.
8293 (ao_ref_init_from_vn_reference): Properly compute the offset
8294 for ARRAY_RANGE_REF.
8295 (vn_reference_fold_indirect): Fill out array reference lower
8296 bound and element size operands.
8297 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8298 a non gimple valued reference operand which can happen for
8299 array reference lower bound or element size.
8300 (create_component_ref_by_pieces_1): Properly generate the
8301 element size operand for array references.
8302
8303 2009-08-06 Richard Guenther <rguenther@suse.de>
8304
8305 PR tree-optimization/40964
8306 * tree.c (iterative_hash_host_wide_int): Export.
8307 * tree.h (iterative_hash_host_wide_int): Declare.
8308 * tree-ssa-structalias.c (heapvar_map): New struct.
8309 (heapvar_map_eq): New function.
8310 (heapvar_map_hash): Likewise.
8311 (heapvar_lookup): Adjust.
8312 (heapvar_insert): Likewise.
8313 (make_constraint_from_heapvar): Allow multiple heap variables
8314 per decl at different offsets.
8315 (init_alias_heapvars): Adjust.
8316
8317 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8318
8319 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8320 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8321 trailing sync if TARGET_SYNC_AFTER_SC.
8322
8323 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8324
8325 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8326 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8327 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8328 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8329 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8330 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8331 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8332 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8333 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8334 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8335 the prototype declaration match the definition.
8336 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8337 instructions explicitly. Add barrier_before and operands
8338 parameters.
8339 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8340 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8341 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8342 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8343 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8344 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8345
8346 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8347
8348 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8349
8350 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8351 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8352
8353 PR target/40906
8354 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8355 source operand.
8356
8357 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8358
8359 PR rtl-optimization/40924
8360 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8361 make sure canon_rtx (mem_address) isn't simpler than
8362 canon_rtx (expanded_mem_address).
8363
8364 2009-08-05 Li Feng <nemokingdom@gmail.com>
8365
8366 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8367 for each poly_bb_p.
8368 (build_scop_drs): Build alias set for each SCoP.
8369
8370 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8371
8372 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8373 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8374 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8375 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8376 (BASE_DRIVER_SELF_SPECS): Likewise.
8377
8378 2009-08-04 Andrew Pinski <pinskia@gmail.com>
8379
8380 * tree-ssa-alias.c: Fix some comment typos.
8381
8382 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
8383
8384 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8385 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8386
8387 2009-08-03 Janis Johnson <janis187@us.ibm.com>
8388
8389 PR c/39902
8390 * simplify-rtx.c (simplify_binary_operation_1): Disable
8391 simplifications for decimal float operations.
8392
8393 2009-08-03 Jakub Jelinek <jakub@redhat.com>
8394
8395 PR middle-end/40943
8396 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8397 operand of INDIRECT_REF.
8398
8399 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
8400
8401 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8402 constants referencing TLS symbols.
8403
8404 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8405
8406 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8407 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8408
8409 2009-08-03 Richard Guenther <rguenther@suse.de>
8410
8411 * tree.c (make_vector_type): Build a main variant first,
8412 get the canonical one and then build the variant.
8413 * tree-ssa.c (useless_type_conversion_p_1): Handle
8414 fixed-point types.
8415 (useless_type_conversion_p): Conversions to pointers to
8416 incomplete record types are useless.
8417
8418 2009-08-03 Richard Guenther <rguenther@suse.de>
8419
8420 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8421 file will be created.
8422 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8423 * toplev.c (compile_file): Adjust comment.
8424
8425 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
8426
8427 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8428 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8429 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8430 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8431 (sh_promote_function_mode): Fix typo.
8432
8433 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
8434
8435 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8436
8437 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8438
8439 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8440 declaration arguments.
8441
8442 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
8443
8444 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8445 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8446 (ix86_split_ashl): Ditto.
8447 (ix86_expand_vector_init_one_nonzero): Ditto.
8448 (ix86_expand_vector_set): Ditto.
8449 (ix86_expand_reduc_v4sf): Ditto.
8450
8451 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
8452
8453 * explow.c (promote_function_mode): Remove assert.
8454 * config/sh/sh.c (sh_promote_function_mode): Declare.
8455
8456 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8457
8458 * config/pa/pa.c (pa_promote_function_mode): Declare.
8459 Change to static. Fix promote_mode call.
8460
8461 * gthr-dce.h (CONST_CAST2): Define if not defined.
8462 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8463
8464 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8465
8466 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
8467
8468 * expr.c (store_constructor): Use promote_decl_mode. Remove
8469 now write-only variable unsignedp.
8470 (expand_expr_real_1): Use promote_decl_mode.
8471 * expr.h (promote_function_mode, promote_decl_mode): New.
8472 (promote_mode): Remove last argument.
8473 * function.c (assign_temp): Drop last argument of promote_mode.
8474 (assign_parm_find_data_types): Use promote_function_mode.
8475 (assign_parm_setup_reg): Likewise.
8476 (expand_function_end): Use promote_function_mode.
8477 * calls.c (initialize_argument_information): Use promote_function_mode.
8478 (precompute_arguments): Use promote_mode instead of checking if
8479 only PROMOTE_FUNCTION_MODE is defined.
8480 (expand_call): When making sibcall decisions, use promote_function_mode.
8481 Below, remove an if for targetm.calls.promote_function_return and
8482 and use promote_function_mode.
8483 (emit_library_call_value_1): Use promote_function_mode, fix bug
8484 where promote_mode was passed FOR_CALL == 0 for a return value in an
8485 assertion.
8486 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8487 * explow.c (promote_function_mode, promote_decl_mode): New.
8488 (promote_mode): Keep only the FOR_CALL == 0 case.
8489 * combine.c (setup_incoming_promotion): Remove test of
8490 promote_function_args. Use promote_function_mode.
8491 * stmt.c (expand_value_return): Use promote_decl_mode.
8492 (expand_decl): Use promote_decl_mode.
8493
8494 * expr.c (store_constructor): Use promote_decl_mode. Remove
8495 now write-only variable unsignedp.
8496 (expand_expr_real_1): Use promote_decl_mode.
8497 * expr.h (promote_function_mode, promote_decl_mode): New.
8498 (promote_mode): Remove last argument.
8499 * function.c (assign_temp): Drop last argument of promote_mode.
8500 (assign_parm_find_data_types): Use promote_function_mode.
8501 (assign_parm_setup_reg): Likewise.
8502 (expand_function_end): Use promote_function_mode.
8503 * calls.c (initialize_argument_information): Use promote_function_mode.
8504 (precompute_arguments): Use promote_mode instead of checking if
8505 only PROMOTE_FUNCTION_MODE is defined.
8506 (expand_call): When making sibcall decisions, use promote_function_mode.
8507 Below, remove an if for targetm.calls.promote_function_return and
8508 and use promote_function_mode.
8509 (emit_library_call_value_1): Use promote_function_mode, fix bug
8510 where promote_mode was passed FOR_CALL == 0 for a return value in an
8511 assertion.
8512 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8513 * explow.c (promote_function_mode, promote_decl_mode): New.
8514 (promote_mode): Keep only the FOR_CALL == 0 case.
8515 * combine.c (setup_incoming_promotion): Remove test of
8516 promote_function_args. Use promote_function_mode.
8517 * stmt.c (expand_value_return): Use promote_decl_mode.
8518 (expand_decl): Use promote_decl_mode.
8519
8520 * explow.c (promote_function_mode): Just call the target hook.
8521 * targhooks.c (default_promote_function_mode,
8522 default_promote_function_mode_always_promote): New.
8523 * targhooks.h (default_promote_function_mode,
8524 default_promote_function_mode_always_promote): Declare.
8525 * target.h (promote_function_args, promote_function_return): Remove.
8526 (promote_function_mode): New.
8527 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8528 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8529 (TARGET_PROMOTE_FUNCTION_MODE): New.
8530 (TARGET_CALLS): Adjust.
8531 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8532 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8533
8534 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8535 * config/s390/s390.c (s390_promote_function_mode): ... here,
8536 with pointer handling.
8537 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8538 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8539
8540 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8541 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8542 with pointer handling.
8543 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8544 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8545
8546 * config/sh/sh-protos.h (sh_promote_function_mode): New.
8547 * config/sh/sh.c (sh_promote_function_mode): New.
8548 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8549 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8550
8551 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8552 * config/cris/cris.c (cris_promote_function_mode): ... here.
8553 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8554 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8555
8556 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8557 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8558 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8559 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8560
8561 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8562 * config/arm/arm.c (arm_promote_function_mode): ... here, without
8563 complex type handling.
8564 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8565 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8566
8567 * config/pa/pa.c (pa_promote_function_mode): New.
8568 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8569 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8570
8571 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8572 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8573 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8574 * config/xtensa/xtensa.c: Likewise.
8575 * config/stormy16/stormy16.c: Likewise.
8576 * config/iq2000/iq2000.c: Likewise.
8577 * config/rs6000/rs6000.c: Likewise.
8578 * config/picochip/picochip.c: Likewise.
8579 * config/arc/arc.c: Likewise.
8580 * config/mcore/mcore.c: Likewise.
8581 * config/score/score.c: Likewise.
8582 * config/mips/mips.c: Likewise.
8583 * config/bfin/bfin.c: Likewise.
8584 * config/ia64/ia64.c: Likewise (disabled though).
8585
8586 * config/frv/frv.h: Remove pointless remark.
8587
8588 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8589 TARGET_PROMOTE_FUNCTION_ARGS,
8590 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8591 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8592
8593 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
8594
8595 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8596 -floop-parallelize-all.
8597 * toplev.c (process_options): Rename flag_graphite_force_parallel to
8598 flag_loop_parallelize_all.
8599 * tree-ssa-loop.c (gate_graphite_transforms): Same.
8600 * graphite.c (graphite_transform_loops): Same.
8601 * common.opt: Same.
8602 * graphite-poly.c (apply_poly_transforms): Same.
8603
8604 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
8605
8606 PR tree-optimization/40914
8607 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8608 if set, then check the delta field of the PMF record.
8609 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8610 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8611 call is stored in the delta.
8612
8613 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
8614
8615 * config/mips/mips.md (*clear_upper32_dext): New pattern.
8616
8617 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
8618
8619 * config/i386/bsd.h (ASM_BYTE): New define.
8620 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8621 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8622 .byte. Use fputs or putc instead of fprintf where appropriate.
8623 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
8624 fputs or putc instead of fprintf where appropriate.
8625 * config/i386/i386elf.h: Ditto.
8626 * config/i386/sysv4.h: Ditto.
8627
8628 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8629 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8630 (*tls_global_dynamic_64): Ditto.
8631
8632 2009-07-31 Christian Bruel <christian.bruel@st.com>
8633
8634 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8635
8636 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8637
8638 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8639 Remove dead code for MINUS.
8640
8641 2009-07-31 Anthony Green <green@moxielogic.com>
8642
8643 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8644 $r12 in prologue.
8645 (moxie_expand_epilogue): Ditto for epilogue.
8646 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
8647 incoming arguments.
8648 (moxie_function_arg): Ditto.
8649 (moxie_pass_by_reference): Ditto.
8650 (moxie_arg_partial_bytes): Ditto.
8651 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8652 (FUNCTION_ARG_ADVANCE) Ditto.
8653 (REG_PARM_STACK_SPACE) Ditto.
8654 (FUNCTION_ARG_REGNO_P) Dito.
8655
8656 * config.gcc: Add moxie linux config support.
8657 * gcc/config/moxie/uclinux.h: New file.
8658
8659 2009-07-31 DJ Delorie <dj@redhat.com>
8660
8661 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8662 (UNSPECV_SP_SWITCH_E): New.
8663 (sp_switch_1): Change to an unspec.
8664 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8665 replace $r15.
8666 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8667 reference the new stack's address
8668
8669 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8670
8671 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
8672 graphite-clast-to-gimple.o, graphite-dependences.o,
8673 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8674 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
8675 (graphite-blocking.o,
8676 graphite-clast-to-gimple.o, graphite-dependences.o,
8677 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8678 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
8679 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
8680 * cfgloop.h (struct loop): Add can_be_parallel field.
8681 * common.opt (fgraphite-identity): Moved up.
8682 (fgraphite-force-parallel): New flag.
8683 * graphite.c: Rewrite.
8684 * graphite.h: Rewrite.
8685 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
8686 after Graphite.
8687 * toplev.c (graphite_out_file): New file descriptor.
8688 (graphite_in_file): New.
8689 (process_options): flag_graphite_force_parallel cannot be used without
8690 Graphite.
8691 * tree-ssa-loop.c: Include toplev.h.
8692 (gate_graphite_transforms): Enable flag_graphite for
8693 flag_graphite_force_parallel.
8694
8695 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8696
8697 * ChangeLog.graphite: New.
8698 * graphite-blocking.c: New.
8699 * graphite-clast-to-gimple.c: New.
8700 * graphite-clast-to-gimple.h: New.
8701 * graphite-dependences.c: New.
8702 * graphite-dependences.h: New.
8703 * graphite-interchange.c: New.
8704 * graphite-poly.c: New.
8705 * graphite-poly.h: New.
8706 * graphite-ppl.c: New.
8707 * graphite-ppl.h: New.
8708 * graphite-scop-detection.c: New.
8709 * graphite-scop-detection.h: New.
8710 * graphite-sese-to-poly.c: New.
8711 * graphite-sese-to-poly.h: New.
8712 * sese.c: New.
8713 * sese.h: New.
8714
8715 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8716
8717 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
8718 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
8719
8720 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8721
8722 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
8723 (scev_is_linear_expression): Return false if the evolution is not
8724 affine multivariate.
8725
8726 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8727
8728 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
8729 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
8730
8731 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8732
8733 * tree-data-ref.c (debug_data_references): New.
8734 (debug_data_reference): New.
8735 * tree-data-ref.h (debug_data_references): Declared.
8736 (debug_data_reference): Declared.
8737
8738 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8739
8740 * tree-data-ref.c (stmt_simple_memref_p: Removed.
8741 * tree-data-ref.h (scop_p): Removed.
8742 (struct data_reference): Remove field scop.
8743 (DR_SCOP): Removed.
8744 (stmt_simple_memref_p): Removed.
8745
8746 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8747
8748 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
8749 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
8750 basic block empty.
8751
8752 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8753
8754 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
8755
8756 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8757
8758 * doc/invoke.texi (-fgraphite-identity): Documented.
8759
8760 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8761
8762 * tree-scalar-evolution.c: Fix comment.
8763 (instantiate_scev_1): Return unknow from scev instantiation if the
8764 result is not above instantiate_below.
8765
8766 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
8767
8768 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
8769 static anymore. Instantiate the symbols that may have been introduced
8770 by chrec_apply.
8771 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
8772 Declared.
8773
8774 2009-07-30 DJ Delorie <dj@redhat.com>
8775
8776 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
8777 .vliw directive to VLIW sections.
8778
8779 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8780
8781 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
8782 New variables.
8783 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
8784 (AUTOHEADER): New variable.
8785 ($(srcdir)/cstamp-h.in): Use it.
8786
8787 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8788 Pat Haugen <pthaugen@us.ibm.com>
8789 Revital Eres <ERES@il.ibm.com>
8790
8791 * config/rs6000/vector.md (VEC_F): Add VSX support.
8792 (VEC_A): Ditto.
8793 (VEC_N): Ditto.
8794 (mov<mode>): Ditto.
8795 (vector_load_<mode>): Ditto.
8796 (vector_store_<mode>): Ditto.
8797 (vector GPR move split): Ditto.
8798 (vec_reload_and_plus_<mptrsize>): Ditto.
8799 (vec_reload_and_reg_<mptrsize>): Ditto.
8800 (add<mode>3): Ditto.
8801 (sub<mode>3): Ditto.
8802 (mul<mode>3): Ditto.
8803 (neg<mode>2): Ditto.
8804 (abs<mode>2): Ditto.
8805 (smin<mode>3): Ditto.
8806 (smax<mode>3): Ditto.
8807 (vector_eq<mode>): Ditto.
8808 (vector_gt<mode>): Ditto.
8809 (vector_ge<mode>): Ditto.
8810 (vector_gtu<mode>): Ditto.
8811 (vector_select_<mode>_uns): Ditto.
8812 (vector_eq_<mode>_p): Ditto.
8813 (vector_gt_<mode>_p): Ditto.
8814 (vector_ge_<mode>_p): Ditto.
8815 (vector_gtu_<mode>_p): Ditto.
8816 (cr6_test_for_zero): Ditto.
8817 (cr6_test_for_zero_reverse): Ditto.
8818 (cr6_test_for_lt): Ditto.
8819 (cr6_test_for_lt_reverse): Ditto.
8820 (xor<mode>3): Ditto.
8821 (ior<mode>3): Ditto.
8822 (and<mode>3): Ditto.
8823 (one_cmpl<mode>2): Ditto.
8824 (nor<mode>2): Ditto.
8825 (andc<mode>2): Ditto.
8826 (float<VEC_int<mode>2): Ditto.
8827 (unsigned_float<VEC_int><mode>2): Ditto.
8828 (fix_trunc<mode><VEC_int>2): Ditto.
8829 (fixuns_trunc<mode><VEC_int>2): Ditto.
8830 (vec_init<mode>):
8831 (vec_set<mode>): Ditto.
8832 (vec_extract<mode>): Ditto.
8833 (vec_interleave_highv4sf): Ditto.
8834 (vec_interleave_lowv4sf): Ditto.
8835 (vec_realign_load_<mode>): Ditto.
8836 (vec_shl_<mode>): Ditto.
8837 (vec_shr_<mode>): Ditto.
8838 (div<mode>3): New patterns for VSX.
8839 (vec_interleave_highv2df): Ditto.
8840 (vec_interleave_lowv2df): Ditto.
8841 (vec_pack_trunc_v2df): Ditto.
8842 (vec_pack_sfix_trunc_v2df): Ditto.
8843 (vec_pack_ufix_trunc_v2df): Ditto.
8844 (vec_unpacks_hi_v4sf): Ditto.
8845 (vec_unpacks_lo_v4sf): Ditto.
8846 (vec_unpacks_float_hi_v4si): Ditto.
8847 (vec_unpacks_float_lo_v4si): Ditto.
8848 (vec_unpacku_float_hi_v4si): Ditto.
8849 (vec_unpacku_float_lo_v4si): Ditto.
8850 (movmisalign<mode>): Ditto.
8851 (vector_ceil<mode>2): New patterns for vectorizing math library.
8852 (vector_floor<mode>2): Ditto.
8853 (vector_btrunc<mode>2): Ditto.
8854 (vector_copysign<mode>3): Ditto.
8855
8856 * config/rs6000/predicates.md (easy_vector_constant_msb): New
8857 predicate for setting the high bit in each word, used for copysign.
8858
8859 * config/rs6000/ppc-asm.h (f19): Whitespace.
8860 (f32-f63): Define if VSX.
8861 (v0-v31): Define if Altivec.
8862 (vs0-vs63): Define if VSX.
8863
8864 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
8865
8866 * config/rs6000/power7.md: New file, provide tuning parameters for
8867 -mcpu=power7.
8868
8869 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
8870 (rs6000_cpu_cpp_builtins): Ditto.
8871 (altivec_overloaded_builtins): Ditto.
8872 (altivec_resolve_overloaded_builtin): Ditto.
8873
8874 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
8875 debug switch to disable vectorizing simple math builtin
8876 functions.
8877
8878 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8879 Vectorize simple math builtin functions.
8880 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8881 hook to vectorize math builtins.
8882 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
8883 (rs6000_builtin_conversion): Add VSX/power7 support.
8884 (rs6000_builtin_vec_perm): Ditto.
8885 (vsplits_constant): Add support for loading up a vector constant
8886 with just the high bit set in each part.
8887 (rs6000_expand_vector_init): Add VSX/power7 support.
8888 (rs6000_expand_vector_set): Ditto.
8889 (rs6000_expand_vector_extract): Ditto.
8890 (rs6000_emit_move): Ditto.
8891 (bdesc_3arg): Ditto.
8892 (bdesc_2arg): Ditto.
8893 (bdesc_1arg): Ditto.
8894 (rs6000_expand_ternop_builtin): Ditto.
8895 (altivec_expand_builtin): Ditto.
8896 (rs6000_expand_unop_builtin): Ditto.
8897 (rs6000_init_builtins): Ditto.
8898 (altivec_init_builtins): Ditto.
8899 (builtin_function_type): Ditto.
8900 (rs6000_common_init_builtins): Ditto.
8901 (rs6000_handle_altivec_attribute); Ditto.
8902 (rs6000_mangle_type): Ditto.
8903 (rs6000_vector_mode_supported_p): Ditto.
8904 (rs6000_mode_dependent_address): Altivec addresses with AND -16
8905 are mode dependent.
8906
8907 * config/rs6000/vsx.md: New file for VSX support.
8908
8909 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
8910 identifing values with just the most significant bit set.
8911 (enum rs6000_builtins): Add builtins for VSX. Add simple math
8912 vectorized builtins.
8913
8914 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
8915 (UNSPEC_VRFIM): Delete.
8916 (splitter for loading up vector with most significant bit): New
8917 splitter for vectorizing copysign.
8918 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
8919 vectorizing simple math functions.
8920 (altivec_vrfip): Add support for vectorizing simple math functions.
8921 (altivec_vrfim): Ditto.
8922 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
8923
8924 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
8925 (power7.md, vsx.md): Include for power7 support.
8926 (copysigndf3): Use VSX instructions if -mvsx.
8927 (negdf2_fpr): Ditto.
8928 (absdf2_fpr): Ditto.
8929 (nabsdf2_fpr): Ditto.
8930 (adddf3_fpr): Ditto.
8931 (subdf3_fpr): Ditto.
8932 (muldf3_fpr): Ditto.
8933 (divdf3_fpr): Ditto.
8934 (fix_truncdfdi2_fpr): Ditto.
8935 (cmpdf_internal1): Ditto.
8936 (fred, fred_fpr): Convert into expander/insn to add VSX support.
8937 (btruncdf2, btruncdf2_fpr): Ditto.
8938 (ceildf2, ceildf2_fpr): Ditto.
8939 (floordf2, floordf2_fpr): Ditto.
8940 (floatdidf2, floatdidf2_fpr): Ditto.
8941 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
8942 (fmsubdf4_fpr): Ditto.
8943 (fnmadddf4_fpr_1): Ditto.
8944 (fnmadddf4_fpr_2): Ditto.
8945 (fnmsubdf4_fpr_1): Ditto.
8946 (fnmsubdf4_fpr_2): Ditto.
8947 (fixuns_truncdfdi2): Add expander for VSX support.
8948 (fix_truncdfdi2): Ditto.
8949 (fix_truncdfsi2): Ditto.
8950 (ftruncdf2): Ditto.
8951 (btruncsf2): Whitespace.
8952 (movdf_hardfloat32): Add support for VSX registers.
8953 (movdf_softfloat32): Ditto.
8954 (movdf_hardfloat64): Ditto.
8955 (movdf_hardfloat64_mfpgpr): Ditto.
8956 (movdf_softfloat64): Ditto.
8957 (movti splitters): Add check for vector registers supporting
8958 TImode in the future.
8959 (bpermd): Add power7 bpermd instruction.
8960
8961 * config/rs6000/altivec.h (vec_div): Define if VSX.
8962 (vec_mul): Ditto.
8963 (vec_msub): Ditto.
8964 (vec_nmadd): Ditto.
8965 (vec_nearbyint): Ditto.
8966 (vec_rint): Ditto.
8967 (vec_sqrt): Ditto.
8968 (all predicates): Use the generic builtin function, and not the V4SF
8969 specific function so that the predicates will work with VSX's V2DF.
8970 (vec_all_*): Ditto.
8971 (vec_any_*): Ditto.
8972
8973 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
8974 Document new VSX functions and types.
8975
8976 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
8977 switches.
8978
8979 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
8980 "wa", and "j" constraints. Modify "v" to talk about Altivec
8981 instead of just vector.
8982
8983 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
8984
8985 PR debug/26475
8986 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
8987 location for phi arguments.
8988 (rewrite_update_phi_arguments): Find locations for reaching defs.
8989 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8990 Add location to add_phi_arg calls.
8991 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
8992 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
8993 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
8994 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
8995 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
8996 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
8997 * tree-phinodes.c (make_phi_node): Initialize location.
8998 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
8999 (add_phi_arg): Add location parameter.
9000 (remove_phi_arg_num): Move location when moving phi argument.
9001 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9002 location.
9003 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9004 slpeel_update_phi_nodes_for_guard1,
9005 slpeel_update_phi_nodes_for_guard2,
9006 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9007 vect_loop_versioning): Set locations.
9008 * tree-parloops.c (create_phi_for_local_result,
9009 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9010 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9011 * tree-vect-loop.c (get_initial_def_for_induction,
9012 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9013 locations.
9014 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9015 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9016 (gimple_phi_arg_set_location): New. Set locus.
9017 (gimple_phi_arg_has_location): New. Check for locus.
9018 (redirect_edge_var_map_location): New. Return locus from var_map.
9019 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9020 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9021 combining PHI arguments.
9022 (cond_store_replacement): Set location.
9023 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9024 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9025 scop_add_exit_phis_edge): Add locations.
9026 * tree-cfgcleanup.c (remove_forwarder_block,
9027 remove_forwarder_block_with_phi): Add locations.
9028 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9029 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9030 locations.
9031 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9032 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9033 flush_pending_stmts): Add source location.
9034 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9035 stack to preserve locations.
9036 * tree-vect-stmts.c (vectorizable_load): Add location.
9037 * tree-inline.c (copy_phis_for_bb): Copy locus.
9038 (setup_one_parameter): Add call locus to inlined parameter stmts.
9039 (initialize_inlined_parameters): Pass in call location as parameter
9040 assignment locus.
9041 (tree_function_versioning): Pass location to setup_one_parameter.
9042 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9043 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9044 copy and edge lists.
9045 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9046 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9047 locus parameter and override the stmt default if provided.
9048 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9049 elim_graph_add_edge, elim_graph_remove_succ_edge,
9050 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9051 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9052 eliminate_phi): Add locus info in elimination graph for each edge and
9053 value copy.
9054 (insert_backedge_copies): Copy locus if present.
9055 * tree-flow.h (struct _edge_var_map): Add locus field.
9056 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9057 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9058 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9059 locations.
9060 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9061
9062 2009-07-30 Martin Jambor <mjambor@suse.cz>
9063
9064 PR tree-optimization/40570
9065 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9066 use inlining loops.
9067
9068 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9069
9070 * ssa-loop-manip.c: Include langhooks.h.
9071 (rewrite_phi_with_iv): New.
9072 (rewrite_all_phi_nodes_with_iv): New.
9073 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9074 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9075 * tree-parloops.c (loop_parallel_p): Move out all conditions
9076 except dependency check.
9077 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9078 (gen_parallel_loop): Call canonicalize_loop_ivs without
9079 reduction_list argument.
9080 (build_new_reduction): New.
9081 (gather_scalar_reductions): New.
9082 (try_get_loop_niter): New.
9083 (try_create_reduction_list): New.
9084 (parallleize_loops): Change the parallel conditions check.
9085 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9086 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9087
9088 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9089
9090 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9091 curly braces.
9092 * doc/options.texi (Option properties): Mention new quoting syntax.
9093
9094 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9095
9096 * config/alpha/alpha.c (alpha_start_function):
9097 Handle VMS_DEBUG_MAIN_POINTER
9098 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9099 * doc/invoke.texi: Document -mdebug-main switch.
9100
9101 2009-07-29 Richard Henderson <rth@redhat.com>
9102
9103 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9104 (cgraph_create_edge_including_clones): Likewise.
9105 * tree-inline.c (copy_bb): Operate on the correct edges
9106 when updating the callgraph.
9107
9108 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9109
9110 * config/alpha/vms-cc.c: Deleted.
9111 * config/alpha/vms-ld.c: Deleted.
9112 * config/alpha/t-vms64: Moved to config/vms
9113 * config/alpha/vms-crt0-64.c: Moved to config/vms
9114 * config/alpha/vms-crt0.c: Moved to config/vms
9115 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9116 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9117 * config/alpha/xm-vms.h: Moved to config/vms
9118 * config/alpha/x-vms: Moved to config/vms
9119 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9120 config/vms/t-vms.
9121 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9122 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9123 (version): Set.
9124 * config/vms/t-vms64: Moved here from config/alpha
9125 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9126 (argc,argv,envp): Enforce 32bit malloc'ing.
9127 * config/vms/vms-psxcrt0-64.c: Likewise.
9128 * config/vms/vms-crt0.c: Moved here from config/alpha.
9129 * config/vms/vms-psxcrt0.c: Likewise.
9130 * config/vms/vms-crtl-64.h: New file.
9131 * config/vms/vms-crtl.h: New file.
9132 * config/vms/vms.opt: New file.
9133 * config/vms/xm-vms64.h: New file.
9134 * config/vms/xm-vms.h: Moved here from config/alpha.
9135 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9136 Set.
9137 * config/vms/x-vms: Moved here from config/alpha.
9138 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9139 (vms-ld.o, vms-cc.o): Removed.
9140 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9141
9142 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9143
9144 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9145 correct stack (obvious VMS fix).
9146
9147 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9148
9149 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9150 date, version info if VMS_DEBUGGING_INFO defined.
9151 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9152 size, date calculating code moved here.
9153
9154 2009-07-29 Paul Brook <paul@codesourcery.com>
9155
9156 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9157 do_push/do_pop.
9158
9159 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9160
9161 PR target/40577
9162 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9163 to DImode when generating insq_le insn.
9164
9165 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9166
9167 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9168 New macro set for VMS_DEBUGGGING_INFO.
9169 (AT_string_form): Use it.
9170
9171 2009-07-28 DJ Delorie <dj@redhat.com>
9172
9173 * config/mep/mep.c (vtext_section): New.
9174 (vftext_section): New.
9175 (ftext_section): New.
9176 (mep_select_section): Add support for functions.
9177 (mep_unique_section): Likewise.
9178 (mep_asm_init_sections): Likewise.
9179 (mep_encode_section_info): Remove it from here.
9180
9181 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9182
9183 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9184
9185 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9186 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9187
9188 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9189
9190 * dwarf2out.c (output_file_names): Test new macro
9191 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9192 (add_comp_dir_attribute): Likewise.
9193
9194 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9195
9196 * config/i386/mingw-w64.h (LINK_SPEC): Add
9197 separating space between commands.
9198
9199 2009-07-28 Jan Hubicka <jh@suse.cz>
9200
9201 PR tree-optimization/40759
9202 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9203 for renaming.
9204
9205 2009-07-27 DJ Delorie <dj@redhat.com>
9206
9207 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9208 types are dword-aligned.
9209 (mep_expand_va_start): Likewise.
9210
9211 2009-07-27 Olivier Hainque <hainque@adacore.com>
9212 Douglas B Rupp <rupp@gnat.com>
9213
9214 * convert.c (convert_to_pointer): Don't assume the target
9215 pointer type is POINTER_SIZE long. Fetch its precision instead.
9216
9217 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9218
9219 * system.h (fopen): Undefine if macro.
9220
9221 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9222
9223 * dwarf2out.c (output_cfi_p): Removed.
9224 (output_cfis): New function.
9225 (output_fde): New function, split from output_call_frame_info.
9226 (output_call_frame_info): Use it.
9227 (dwarf2out_switch_text_section): Use output_cfis.
9228
9229 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9230
9231 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9232 TARGET_BI_ARCH is specified without enabling SJLJ.
9233 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9234 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9235
9236 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9237
9238 * arm.md (negdi2): Use DImode if forcing a value into a register.
9239
9240 2009-07-26 Ira Rosen <irar@il.ibm.com>
9241
9242 PR tree-optimization/40801
9243 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9244 of vector operand from the previous copy of vector statement.
9245 Pass the correct definition type value to
9246 vect_get_vec_def_for_stmt_copy().
9247
9248 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9249
9250 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9251 const char ** conversion.
9252
9253 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9254
9255 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9256 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9257 (gcc_unreachable): Invoke __builtin_unreachable() if
9258 !ENABLE_ASSERT_CHECKING.
9259
9260 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9261
9262 PR rtl-optimization/40445
9263 * emit-rtl.c (next_nonnote_insn_bb): New function.
9264 * rtl.h (next_nonnote_insn_bb): Declare new function.
9265 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9266 with no successors that is the successor of the ENTRY_BLOCK.
9267 Continue from the top after removing an empty fallthrough block.
9268 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9269 of next_nonnote_insn.
9270
9271 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9272
9273 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9274
9275 2009-07-25 Martin Jambor <mjambor@suse.cz>
9276
9277 * c-common.c (c_common_attribute_table): New element for noclone.
9278 (handle_noclone_attribute): New function. Forward-declare.
9279 * tree-inline.c (tree_versionable_function_p): Check for noclone
9280 attribute.
9281 * doc/extend.texi (Labels as Values): Document need for noclone.
9282 (Function Attributes): Document noclone attribute.
9283
9284 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9285
9286 PR rtl-optimization/34999
9287 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9288 and dw_fde_switched_cold_to_hot fields.
9289 (output_cfi_p): New function.
9290 (output_call_frame_info): If fde->dw_fde_switched_sections,
9291 output 2 FDEs instead of one with corrupted header.
9292 (dwarf2out_do_cfi_startproc): New function.
9293 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9294 and fde->dw_fde_switched_cold_to_hot.
9295 (dwarf2out_switch_text_section): Compute
9296 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9297 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9298 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9299 Otherwise, compute fde->dw_fde_switch_cfi.
9300
9301 2009-07-24 Cary Coutant <ccoutant@google.com>
9302
9303 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9304
9305 2009-07-24 Cary Coutant <ccoutant@google.com>
9306
9307 * cfghooks.c (split_block): Copy discriminator to new block.
9308 * tree-cfg.c (assign_discriminator): Check location of last
9309 instruction in block as well as first.
9310
9311 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9312
9313 * config/i386/linux.c: Use fputs or putc instead of fprintf
9314 where appropriate.
9315 * config/i386/gas.h: Ditto.
9316 * config/i386/x86-64.h: Ditto.
9317 * config/i386/att.h: Ditto.
9318
9319 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9320
9321 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9322 xor case.
9323
9324 2009-07-24 Martin Jambor <mjambor@suse.cz>
9325
9326 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9327 (ipa_push_func_to_list_1): Declare.
9328 (ipa_push_func_to_list): New function.
9329
9330 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9331 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9332 (ipa_push_func_to_list): Removed.
9333 (ipa_pop_func_from_list): Clear node_enqueued flag.
9334
9335 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9336
9337 * config/s390/s390.c (override_options): Default
9338 max-unrolled-insns to 100 for z10 tuning.
9339
9340 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9341
9342 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9343 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9344 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9345 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9346 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9347 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9348 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9349
9350 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9351
9352 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9353 use default set in mingw32.h header.
9354 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9355 64-bit /mingw/include path.
9356 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9357 path.
9358
9359 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9360
9361 PR rtl-optimization/40209
9362 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9363
9364 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9365
9366 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9367 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9368 with the rest of string where appropriate. Use fputs or putc
9369 instead of fprintf where appropriate.
9370
9371 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9372 Pat Haugen <pthaugen@us.ibm.com>
9373 Revital Eres <ERES@il.ibm.com>
9374
9375 * config/rs6000/vector.md: New file. Move most of the vector
9376 expander support here from altivec.md to allow for the VSX vector
9377 unit in the future. Add support for secondary_reload patterns.
9378 Rewrite the patterns for vector comparison, and vector comparison
9379 predicate instructions so that the RTL expresses the desired
9380 behavior, instead of using unspec.
9381
9382 * config/rs6000/constraints.md ("f" constraint): Use
9383 rs6000_constraints to hold the precalculated register class.
9384 ("d" constraint): Ditto.
9385 ("wd" constraint): New constraint for VSX.
9386 ("wf" constraint): Ditto.
9387 ("ws" constraint): Ditto.
9388 ("wa" constraint): Ditto.
9389 ("wZ" constraint): Ditto.
9390 ("j" constraint): Ditto.
9391
9392 * config/rs6000/predicates.md (vsx_register_operand): New
9393 predicate for VSX.
9394 (vfloat_operand): New predicate for vector.md.
9395 (vint_operand): Ditto.
9396 (vlogical_operand): Ditto.
9397 (easy_fp_constant): If VSX, 0.0 is an easy constant.
9398 (easy_vector_constant): Add VSX support.
9399 (altivec_indexed_or_indirect_operand): New predicate for
9400 recognizing Altivec style memory references with AND -16.
9401
9402 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9403 for vector secondary reload support.
9404 (rs6000_vector_reg_class): Delete, replacing it with
9405 rs6000_constraints.
9406 (rs6000_vsx_reg_class): Ditto.
9407 (rs6000_constraints): New array to hold the register classes of
9408 each of the register constraints that can vary at runtime.
9409 (builtin_mode_to_type): New static array for builtin function type
9410 creation.
9411 (builtin_hash_table): New static hash table for builtin function
9412 type creation.
9413 (TARGET_SECONDARY_RELOAD): Define target hook.
9414 (TARGET_IRA_COVER_CLASSES): Ditto.
9415 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9416 registers are 128 bits if VSX memory reference instructions are used.
9417 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9418 unit is being used.
9419 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9420 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9421 Print several of the scheduling related parameters.
9422 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9423 rs6000_constraints instead of rs6000_vector_reg_class. Move
9424 -mdebug=reg code to rs6000_debug_reg_global. Add support for
9425 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
9426 Altivec. Add VSX support. Setup for secondary reload support on
9427 Altivec/VSX registers.
9428 (rs6000_override_options): Make power7 set the scheduling groups
9429 like the power5. Add support for new debug switches to override
9430 the scheduling defaults. Temporarily disable -mcpu=power7 from
9431 setting -mvsx. Add support for debug switches -malways-hint,
9432 -msched-groups, and -malign-branch-targets.
9433 (rs6000_buitlin_conversion): Add support for returning unsigned
9434 vector conversion functions to fix regressions due to stricter
9435 type checking.
9436 (rs6000_builtin_mul_widen_even): Ditto.
9437 (rs6000_builtin_mul_widen_odd): Ditto.
9438 (rs6000_builtin_vec_perm): Ditto.
9439 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9440 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9441 to zero a register.
9442 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9443 generated upstream.
9444 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
9445 VSX types for bit operations. Changes to accomidate vector.md.
9446 (bdesc_2arg): Ditto.
9447 (bdesc_1arg): Ditto.
9448 (struct builtin_description_predicates): Rewrite predicate
9449 handling so that RTL describes the operation, instead of passing
9450 the instruction to be used as a string argument.
9451 (bdesc_altivec_preds): Ditto.
9452 (altivec_expand_predicate_builtin): Ditto.
9453 (altivec_expand_builtin): Ditto.
9454 (rs6000_expand_ternop_builtin): Use a switch instead of an if
9455 statement for vsldoi support.
9456 (altivec_expand_ld_builtin): Change to use new names from vector.md.
9457 (altivec_expand_st_builtin): Ditto.
9458 (paired_expand_builtin): Whitespace changes.
9459 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
9460 builtin_mode_to_type table for secondary reload. Call
9461 builtin_function_type to build random builtin functions.
9462 (altivec_init_builtins): Change to use builtin_function_type to
9463 create builtin function types dynamically as we need them.
9464 (builtin_hash_function): New support for hashing the tree types
9465 for builtin function as we need it, rather than trying to build
9466 all of the trees that we need. Add initial preliminary VSX support.
9467 (builtin_function_type): Ditto.
9468 (builtin_function_eq): Ditto.
9469 (builtin_hash_struct): Ditto.
9470 (rs6000_init_builtins): Ditto.
9471 (rs6000_common_init_builtins): Ditto.
9472 (altivec_init_builtins): Ditto.
9473 (rs6000_common_init_builtins): Ditto.
9474 (enum reload_reg_type): New enum for simplifing reg classes.
9475 (rs6000_reload_register_type): Simplify register classes into GPR,
9476 Vector, and other registers. Altivec and VSX addresses in reload.
9477 (rs6000_secondary_reload_inner): Ditto.
9478 (rs6000_ira_cover_classes): New target hook, that returns the
9479 appropriate cover classes, based on -mvsx being used or not.
9480 (rs6000_secondary_reload_class): Add VSX support.
9481 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9482 (get_vsel_insn): Ditto.
9483 (rs6000_emit_vector_compare): Rewrite vector conditional support
9484 so that where we can, we use RTL operators, instead of blindly use
9485 UNSPEC.
9486 (rs6000_emit_vector_select): Ditto.
9487 (rs6000_emit_vector_cond_expr): Ditto.
9488 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9489 (create_TOC_reference): Add -mdebug=addr support.
9490 (emit_frame_save): VSX loads/stores need register indexed addressing.
9491
9492 * config/rs6000/rs6000.md: Include vector.md.
9493
9494 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9495
9496 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9497 support for V2DI, V2DF in logical, permute, select operations.
9498
9499 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9500 switch for vsx/power7.
9501 (-mvsx-scalar-memory): Ditto.
9502 (-mvsx-align-128): Ditto.
9503 (-mallow-movmisalign): Ditto.
9504 (-mallow-df-permute): Ditto.
9505 (-msched-groups): Ditto.
9506 (-malways-hint): Ditto.
9507 (-malign-branch-targets): Ditto.
9508
9509 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9510 hook instead.
9511 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9512 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9513 (rs6000_vector_reg_class): Delete.
9514 (rs6000_vsx_reg_class): Ditto.
9515 (enum rs6000_reg_class_enum): New enum for the constraints that
9516 vary based on target switches.
9517 (rs6000_constraints): New array to hold the register class for all
9518 of the register constraints that vary based on the switches used.
9519 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9520 (enum rs6000_builtins): Add unsigned varients for the builtin
9521 declarations returned by target hooks for expanding multiplies,
9522 select, and permute operations. Add VSX builtins.
9523 (enum rs6000_builtin_type_index): Add entries for VSX.
9524 (V2DI_type_node): Ditto.
9525 (V2DF_type_node): Ditto.
9526 (unsigned_V2DI_type_node): Ditto.
9527 (bool_long_type_node): Ditto.
9528 (intDI_type_internal_node): Ditto.
9529 (uintDI_type_internal_node): Ditto.
9530 (double_type_internal_node): Ditto.
9531
9532 * config/rs6000/altivec.md (whole file): Move all expanders to
9533 vector.md from altivec.md. Rename insn matching functions to be
9534 altivec_foo.
9535 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9536 (altivec_vcmp*): Ditto.
9537 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9538 (VM): New iterator for moves that includes the VSX types.
9539 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
9540 (altivec_vperm_<mode>_uns): New, for unsigned types.
9541 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9542 (altivec_eq<mode>): Ditto.
9543 (altivec_gt<mode>): Ditto.
9544 (altivec_gtu<mode>): Ditto.
9545 (altivec_eqv4sf): Ditto.
9546 (altivec_gev4sf): Ditto.
9547 (altivec_gtv4sf): Ditto.
9548 (altivec_vcmpbfp_p): Ditto.
9549
9550 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
9551
9552 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9553 unsigned HWI.
9554
9555 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9556
9557 PR target/40832
9558 * config/i386/i386.c (output_387_ffreep): Rewrite to use
9559 ASM_SHORT instead of .word.
9560 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9561 instead of .word in asm template.
9562
9563 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
9564
9565 PR target/37488
9566 * ira-lives.c (bb_has_abnormal_call_pred): New function.
9567 (process_bb_node_lives): Use it.
9568
9569 * ira.c (setup_cover_and_important_classes): Don't setup
9570 ira_important_class_nums. Add cover classes to the end of
9571 important classes.
9572 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9573 New.
9574 (find_reg_class_closure): Use reorder_important_classes.
9575
9576 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9577
9578 * config/i386/i386.c (i386_ira_cover_classes): New function.
9579 (TARGET_IRA_COVER_CLASSES): Redefine.
9580
9581 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9582 importance of order of cover classes in the array.
9583
9584 2009-07-22 Diego Novillo <dnovillo@google.com>
9585
9586 * tree-pass.h (TDF_EH): Define.
9587 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9588 contains TDF_EH, print the EH region number holding GS.
9589 * tree-dump.c (dump_options): Add "eh".
9590 * doc/invoke.texi: Document it.
9591
9592 2009-07-22 Doug Kwan <dougkwan@google.com>
9593
9594 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9595
9596 2009-07-22 Michael Matz <matz@suse.de>
9597
9598 PR tree-optimization/35229
9599 PR tree-optimization/39300
9600
9601 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9602 (inhibit_phi_insertion): New function.
9603 (insert_into_preds_of_block): Call it for REFERENCEs.
9604 (init_pre): Initialize and finalize scalar evolutions.
9605 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9606
9607 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
9608
9609 * config/i386/predicates.md (zero_extended_scalar_load_operand):
9610 Use CONST_VECTOR_NUNITS to determine number of elements.
9611
9612 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
9613
9614 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9615 (U, W): Constraints are now deprecated and will be removed if we
9616 run out of letters.
9617 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9618 the file.
9619 ("prefetch"): Add the stcmh instruction for prefetching.
9620 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9621 changes.
9622 (s390_short_displacement): Return always true if compiling for
9623 machines not providing the long displacement facility.
9624 (s390_mem_constraint): Support the new constraint letter Z.
9625 (s390_check_qrst_address): New function.
9626
9627 2009-07-21 DJ Delorie <dj@redhat.com>
9628
9629 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9630 alone too.
9631
9632 2009-07-21 Jason Merrill <jason@redhat.com>
9633
9634 * c-common.c (max_tinst_depth): Increase default to 1024.
9635
9636 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
9637
9638 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9639 (vec_unpacku_float_lo_v4si): Ditto.
9640
9641 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
9642
9643 PR target/40811
9644 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9645 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9646 (builtin_description): Add __builtin_ia32_cvtudq2ps.
9647 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9648
9649 2009-07-21 Jakub Jelinek <jakub@redhat.com>
9650
9651 PR tree-optimization/40813
9652 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9653 it.
9654
9655 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
9656
9657 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9658 with a NOP_EXPR if needed.
9659
9660 2009-07-21 Paul Brook <paul@codesourcery.com>
9661
9662 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9663 Terminate debug dump with newline.
9664
9665 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9666
9667 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9668 Cast "1" to unsigned HOST_WIDE_INT.
9669 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
9670 deposit length to the maximum length - lsb. Extend length if
9671 HOST_BITS_PER_WIDE_INT is 32.
9672
9673 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
9674
9675 * cgraph.h (constant_pool_htab): New function.
9676 (constant_descriptor_tree): Move from varasm.c.
9677 * varasm.c (constant_pool_htab): New function.
9678 (constant_descriptor_tree): Move to cgraph.h.
9679
9680 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
9681
9682 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9683
9684 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
9685
9686 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
9687 $(VARRAY_H).
9688
9689 2009-07-20 Xinliang David Li <davidxl@google.com>
9690
9691 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
9692
9693 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
9694
9695 * config/mips/mips.md (move_type): Add arith.
9696 (type): Handle arith.
9697 (zero_extendsidi2): Rename this into ...
9698 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
9699 (zero_extendsidi2): New expander.
9700 (*zero_extendsidi2_dext): New pattern.
9701
9702 2009-07-20 Nick Clifton <nickc@redhat.com>
9703
9704 * config.gcc (mips64-*-*): Add definition of tm_defines in order
9705 to set MIPS_ABI_DEFAULT.
9706 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
9707
9708 2009-07-20 Jakub Jelinek <jakub@redhat.com>
9709
9710 * tree-object-size.c (addr_object_size): Handle unions with
9711 array in it as last field of structs in __bos (, 1) as __bos (, 0).
9712
9713 PR tree-optimization/40792
9714 * tree.c (build_function_type_skip_args): Remove bogus assert.
9715
9716 2009-07-20 Jan Hubicka <jh@suse.cz>
9717 Martin Jambor <mjambor@suse.cz>
9718
9719 * cgraph.h (combined_args_to_skip): New field.
9720 * cgraph.c (cgraph_create_virtual_clone): Properly handle
9721 combined_args_to_skip and args_to_skip.
9722 * tree-inline.c (update_clone_info): New function.
9723 (tree_function_versioning): Call update_clone_info.
9724 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
9725 functions.
9726 (cgraph_materialize_all_clones): More extensive dumping, working
9727 with combined_args_to_skip rather than args_to_skip.
9728
9729 2009-07-20 Ira Rosen <irar@il.ibm.com>
9730
9731 * tree-vectorizer.h (vectorizable_condition): Add parameters.
9732 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
9733 (get_initial_def_for_reduction): Likewise.
9734 (vectorizable_reduction): Skip the check of first operand in case
9735 of COND_EXPR. Add check that it is outer loop vectorization if
9736 nested cycle was detected. Call vectorizable_condition() for
9737 COND_EXPR. If reduction epilogue cannot be created do not fail for
9738 nested cycles (if it is not double reduction). Assert that there
9739 is only one type in the loop in case of COND_EXPR. Call
9740 vectorizable_condition() to vectorize COND_EXPR.
9741 * tree-vect-stmts.c (vectorizable_condition): Update comment.
9742 Add parameters. Allow nested cycles if called from
9743 vectorizable_reduction(). Use reduction vector variable if provided.
9744 (vect_analyze_stmt): Call vectorizable_reduction() before
9745 vectorizable_condition().
9746 (vect_transform_stmt): Update call to vectorizable_condition().
9747
9748 2009-07-20 Christian Bruel <christian.bruel@st.com>
9749
9750 * config/sh/sh.opt (-mfmovd): Resurrect and document.
9751 * doc/invoke.texi (-mfmovd): Likewise.
9752 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
9753
9754 2009-07-20 Jan Hubicka <jh@suse.cz>
9755
9756 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
9757 when handling SSA name.
9758
9759 2009-07-19 Jan Hubicka <jh@suse.cz>
9760
9761 PR tree-optimization/40676
9762 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
9763 virtual PHIs in empty BBs.
9764
9765 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
9766
9767 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
9768 re-expanded the compound use gen_lowpart instead to convert to the
9769 desired mode.
9770
9771 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
9772
9773 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
9774 OUTER_CONST arguments.
9775 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
9776 the new wider mode will be masked off.
9777 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
9778
9779 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
9780
9781 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
9782 high-order bits are zero.
9783
9784 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
9785
9786 * combine.c (simplify_shift_const_1): Split code to determine
9787 shift_mode into ...
9788 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
9789 new bits shifted in are identical to the old sign bit.
9790
9791 2009-07-18 Richard Guenther <rguenther@suse.de>
9792
9793 PR c/40787
9794 * gimplify.c (gimplify_call_expr): Reject code using results from
9795 functions returning void.
9796
9797 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
9798
9799 * doc/md.texi: Document the new PowerPC "es" constraint.
9800 Document that "m" can include automodified addresses on this target,
9801 and explain how %U must be used. Extend the "Q" and "Z" documentation
9802 to suggest "es" as well as "m".
9803 * config/rs6000/constraints.md (es): New memory constraint.
9804 (Q, Z): Update strings to match new documentation.
9805
9806 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
9807
9808 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
9809 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
9810 * config/rs6000/predicates.md (volatile_mem_operand): Use
9811 offsettable_nonstrict_memref_p.
9812 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
9813 (*floatunssidf2_internal): Likewise.
9814 (*fix_truncdfsi2_internal): Likewise.
9815 (*fix_trunctfsi2_internal): Likewise.
9816
9817 2009-07-17 Anatoly Sokolov <aesok@post.ru>
9818
9819 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
9820 atmega32u2 devices.
9821 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9822
9823 2009-07-17 Richard Guenther <rguenther@suse.de>
9824
9825 PR c/40401
9826 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
9827 (pass_warn_unused_result): Likewise.
9828 (TODO_set_props): Remove.
9829 * omp-low.c (diagnose_omp_structured_block_errors): Change to
9830 run as a pass.
9831 (pass_diagnose_omp_blocks): Define.
9832 * c-decl.c (pop_file_scope): Do not finalize the CU here.
9833 (c_gimple_diagnostics_recursively): Remove.
9834 (finish_function): Do not call it.
9835 (c_write_global_declarations): Continue after errors.
9836 Finalize the CU here.
9837 * c-gimplify.c (c_genericize): Do not gimplify here.
9838 * c-common.c (c_warn_unused_result): Move ...
9839 * tree-cfg.c (do_warn_unused_result): ... here.
9840 (run_warn_unused_result): New function.
9841 (gate_warn_unused_result): New function.
9842 (pass_warn_unused_result): New pass.
9843 * c-common.h (c_warn_unused_result): Remove.
9844 * flags.h (flag_warn_unused_result): Declare.
9845 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
9846 * opts.c (flag_warn_unused_result): Initialize to false.
9847 * toplev.c (compile_file): Add comment.
9848 * omp-low.c (create_omp_child_function): Do not register
9849 the function with the frontend.
9850 (diagnose_omp_structured_block_errors): Prepare to be
9851 called as optimization pass.
9852 (gate_diagnose_omp_blocks): New function.
9853 (pass_diagnose_omp_blocks): New pass.
9854 * cgraph.h (cgraph_optimize): Remove.
9855 (cgraph_analyze_function): Likewise.
9856 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
9857 * cgraphunit.c (cgraph_lower_function): Lower nested functions
9858 before their parents here.
9859 (cgraph_finalize_function): Not here.
9860 (cgraph_analyze_function): Gimplify functions here.
9861 (cgraph_finalize_compilation_unit): Continue after errors.
9862 Optimize the callgraph from here.
9863 (cgraph_optimize): Make static.
9864 * langhooks.c (write_global_declarations): Finalize the CU.
9865 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
9866 (gimplify_function_tree): Assert we gimplify only once.
9867 Set PROP_gimple_any property.
9868 * tree-nested.c (gimplify_all_functions): New function.
9869 (lower_nested_functions): Gimplify all nested functions.
9870 * gimple.h (diagnose_omp_structured_block_errors): Remove.
9871 * passes.c (init_optimization_passes): Add pass_warn_unused_result
9872 and pass_diagnose_omp_blocks after gimplification. Do not
9873 set TODO_set_props on all_lowering_passes.
9874 (execute_one_pass): Do not handle TODO_set_props.
9875 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
9876 (gimplify.o): Add tree-pass.h dependency.
9877 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
9878 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
9879 (unsave_r): Likewise.
9880 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
9881 temporary variable.
9882
9883 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
9884
9885 * doc/service.texi (Service): Restore previously removed link,
9886 which isn't broken after all.
9887
9888 2009-07-17 Richard Guenther <rguenther@suse.de>
9889
9890 PR tree-optimization/40321
9891 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
9892 PHI nodes to the maximal set.
9893 (make_values_for_phi): Add PHI arguments to the maximal set.
9894 (execute_pre): Dump PHI_GEN and the maximal set.
9895
9896 2009-07-17 Jakub Jelinek <jakub@redhat.com>
9897
9898 PR c++/40780
9899 * gimplify.c (gimplify_conversion): Don't change non-conversions into
9900 VIEW_CONVERT_EXPR.
9901
9902 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
9903
9904 * doc/extend.texi (Nested Functions): Replace broken link with
9905 textual reference.
9906 * doc/service.texi (Service): Remove broken link.
9907
9908 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
9909
9910 PR bootstrap/40781
9911 * builtins.c (expand_builtin_memcmp): Use loc instead of
9912 EXPR_LOCATION (exp).
9913 (expand_builtin_strncmp): Likewise.
9914
9915 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
9916 Manuel López-Ibáñez <manu@gcc.gnu.org>
9917
9918 PR 40435
9919 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
9920 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
9921 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
9922 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
9923 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
9924 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
9925 tree-inline.c, c-common.c, c-common.h, gimple.c,
9926 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
9927 convert.c: Add location argument to fold_{unary,binary,ternary},
9928 fold_build[123], build_call_expr, build_size_arg,
9929 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
9930 fold_build1_initializer, fold_build2_initializer,
9931 fold_build3_initializer, fold_build_call_array,
9932 fold_build_call_array_initializer, fold_single_bit_test,
9933 omit_one_operand, omit_two_operands, invert_truthvalue,
9934 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
9935 combine_comparisons, fold_builtin_*, fold_call_expr,
9936 build_range_check, maybe_fold_offset_to_address, round_up,
9937 round_down.
9938
9939 2009-07-16 Jason Merrill <jason@redhat.com>
9940
9941 PR libstdc++/37907
9942 * c-common.c (c_common_reswords): Add __is_standard_layout
9943 and __is_trivial.
9944 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
9945 * doc/implement-cxx.texi: New.
9946 * doc/gcc.texi: Include it.
9947
9948 2009-07-16 DJ Delorie <dj@redhat.com>
9949
9950 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
9951 compares that may be indirectly affected by previous instructions.
9952
9953 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9954
9955 * builtins.c (do_mpc_arg2): New.
9956 (fold_builtin_2): Fold builtin cpow.
9957 * real.h (HAVE_mpc_pow): New.
9958
9959 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
9960
9961 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
9962 comparison to skip unprofitable schedule
9963
9964 2009-07-16 Simon Baldwin <simonb@google.com>
9965
9966 * gcc.c (option_map): New flag -no-canonical-prefixes.
9967 * (display_help): Print help text for new flag.
9968 * (process_command): Move options translation and language specifics
9969 and handle new flag early. Use it to set a function pointer to a
9970 prefix builder. Replace make_relative_prefix calls with calls to
9971 the function pointed to. Ignore new flag in regular options handling.
9972 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
9973
9974 2009-07-15 DJ Delorie <dj@redhat.com>
9975
9976 * config/mep/mep.md (sibcall_internal): Change register to avoid
9977 argument registers.
9978 (sibcall_value_internal): Likewise.
9979
9980 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
9981
9982 PR rtl-optimization/40710
9983 * resource.c (mark_target_live_regs): Reset DF problem to LR.
9984
9985 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
9986
9987 * config/mips/mips.md (*extenddi_truncate<mode>,
9988 *extendsi_truncate<mode>): Change type attribute to move_type
9989 with shift_shift. Split out code handling exts from here ...
9990 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
9991 pattern.
9992 (*extendhi_truncateqi): Change type attribute to move_type with
9993 shift_shift. Split out code handling exts from here ...
9994 (*extendhi_truncateqi_exts): ... to this new pattern.
9995
9996 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
9997
9998 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
9999 instead of "and" with inverted sign bit mask value. Use
10000 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10001 Allocate registers only for operand 4 and operand 5.
10002
10003 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10004
10005 PR middle-end/40747
10006 * fold-const.c (fold_cond_expr_with_comparison): When folding
10007 < and <= to MIN, make sure the MIN uses the same type as the
10008 comparison's operands.
10009
10010 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10011
10012 * arm.md (ior_xor): New code iterator.
10013 (split for ior/xor with shift and zero-extend): New split pattern.
10014 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10015
10016 2009-07-15 Richard Guenther <rguenther@suse.de>
10017
10018 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10019 offset member.
10020
10021 2009-07-15 Richard Guenther <rguenther@suse.de>
10022
10023 PR middle-end/40753
10024 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10025
10026 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10027
10028 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10029 handle 2.6.30 kernel.
10030
10031 2009-07-15 DJ Delorie <dj@redhat.com>
10032
10033 * config/mep/mep.md (sibcall_internal): Change register to allow
10034 for 24-bit addresses.
10035 (sibcall_value_internal): Likewise.
10036
10037 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10038
10039 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10040 that are enabled/disabled by the flags introduced by a previous patch.
10041
10042 2009-07-14 DJ Delorie <dj@redhat.com>
10043
10044 * config/mep/mep.md (sibcall_internal): Include non-toggling
10045 non-jmp case.
10046 (sibcall_value_internal): Likewise.
10047
10048 2009-07-14 Taras Glek <tglek@mozilla.com>
10049 Rafael Espindola <espindola@google.com>
10050
10051 * doc/sourcebuild.texi: Document install-plugin target.
10052 * configure.ac: Added install-plugin target to language makefiles.
10053 * configure: Regenerate.
10054 * Makefile.in: (install-plugin): Install more headers,
10055 depend on lang.install-plugin.
10056
10057 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10058
10059 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10060 translation.
10061
10062 2009-07-14 DJ Delorie <dj@redhat.com>
10063
10064 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10065 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10066 * config/mep/mep.md (sibcall_internal): Change test from
10067 mep_vliw_mode_match to mep_vliw_jmp_match.
10068 (sibcall_value_internal): Likewise.
10069
10070 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10071
10072 * config/i386/sse.md (copysign<mode>3): New expander.
10073 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10074 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10075 Use ix86_build_const_vector.
10076 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10077 IX86_BUILTIN_CPYSGNPD.
10078 (builtin_description): Add __builtin_ia32_copysignps and
10079 __builtin_ia32_copysignpd.
10080 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10081 and BUILT_IN_COPYSIGNF.
10082
10083 2009-07-13 Jason Merrill <jason@redhat.com>
10084
10085 * builtins.c (can_trust_pointer_alignment): New fn.
10086 (get_pointer_alignment): Factor it out from here.
10087 * tree.h: Declare it.
10088
10089 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10090
10091 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10092 RTX_AUTOINC class.
10093
10094 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10095
10096 PR debug/40705
10097 PR c++/403057
10098 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10099
10100 2009-07-14 Richard Guenther <rguenther@suse.de>
10101 Andrey Belevantsev <abel@ispras.ru>
10102
10103 PR middle-end/40745
10104 * cfgexpand.c (partition_stack_vars): Do not bother to update
10105 alias information when not optimizing.
10106
10107 2009-07-14 Richard Guenther <rguenther@suse.de>
10108 Andrey Belevantsev <abel@ispras.ru>
10109
10110 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10111 (pt_solution_set): Likewise.
10112 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10113 * tree-ssa-structalias.c (pt_solution_set): New function.
10114 * final.c (rest_of_clean_state): Free SSA data structures.
10115 * print-rtl.c (print_decl_name): Remove.
10116 (print_mem_expr): Implement in terms of print_generic_expr.
10117 * alias.c (ao_ref_from_mem): New function.
10118 (rtx_refs_may_alias_p): Likewise.
10119 (true_dependence): Query alias-export info.
10120 (canon_true_dependence): Likewise.
10121 (write_dependence_p): Likewise.
10122 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10123 size unknown.
10124 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10125 (mem_expr_equal_p): Use operand_equal_p.
10126 (set_mem_attributes_minus_bitpos): Do not use
10127 component_ref_for_mem_expr.
10128 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10129 (update_alias_info_with_stack_vars): Likewise.
10130 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10131 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10132 explicitly nor clear stmt operands.
10133 Free the decl-to-pointer map.
10134 * tree-optimize.c (execute_free_datastructures): Do not free
10135 SSA data structures here.
10136 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10137 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10138 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10139 dependencies.
10140 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10141
10142 2009-07-13 DJ Delorie <dj@redhat.com>
10143
10144 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10145 unrolling at the right iteration count.
10146
10147 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10148 calculations.
10149
10150 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10151
10152 * haifa-sched.c (rank_for_schedule): Introduced flags to
10153 enable/disable individual scheduling heuristics.
10154 * common.opt: Introduced flags to enable/disable individual
10155 heuristics in the scheduler.
10156 * doc/invoke.texi: Introduced flags to enable/disable individual
10157 heuristics in the scheduler.
10158
10159 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10160
10161 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10162 config/i386/mingw-tls.c.
10163 * config/i386/mingw-tls.c: Removed.
10164
10165 2009-07-13 Ira Rosen <irar@il.ibm.com>
10166
10167 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10168 checks access only relevant statements.
10169 (vectorizable_reduction): Likewise.
10170
10171 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10172
10173 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10174 just for 32-bit case.
10175
10176 2009-07-12 Jan Hubicka <jh@suse.cz>
10177
10178 PR tree-optimization/40585
10179 * except.c (expand_resx_expr): When there already is resume
10180 instruction, produce linked list.
10181 (build_post_landing_pads): Assert that resume is empty.
10182 (connect_post_landing_pads): Handle resume lists.
10183 (dump_eh_tree): Dump resume list.
10184
10185 2009-07-12 Ira Rosen <irar@il.ibm.com>
10186
10187 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10188 with additional argument.
10189 * tree-vectorizer.h (enum vect_def_type): Add
10190 vect_double_reduction_def.
10191 (vect_is_simple_reduction): Add argument.
10192 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10193 indentation.
10194 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10195 vect_is_simple_reduction with additional argument.
10196 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10197 double reduction.
10198 (reduction_code_for_scalar_code): Handle additional codes by
10199 returning ERROR_MARK for them. Fix comment and indentation.
10200 (vect_is_simple_reduction): Fix comment, add argument to specify
10201 double reduction. Detect double reduction.
10202 (get_initial_def_for_induction): Fix indentation.
10203 (get_initial_def_for_reduction): Fix comment and indentation.
10204 Handle double reduction. Create initial definitions that do not
10205 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10206 (vect_create_epilog_for_reduction): Fix comment, add argument to
10207 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10208 epilogue result extraction. Create double reduction phi node and
10209 replace relevant uses.
10210 (vectorizable_reduction): Call vect_is_simple_reduction with
10211 additional argument. Fix indentation. Update epilogue code treatment
10212 according to the changes in reduction_code_for_scalar_code. Check
10213 for double reduction. Call vect_create_epilog_for_reduction with
10214 additional argument.
10215 * tree-vect-stmts.c (process_use): Handle double reduction, update
10216 documentation.
10217 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10218 (vect_get_vec_def_for_operand): Likewise.
10219
10220 2009-07-12 Danny Smith <dansmister@gmail.com>
10221
10222 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10223 dllexport if !TREE_PUBLIC.
10224 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10225
10226 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10227
10228 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10229 (avr_extra_arch_macro) Remove declatation.
10230 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10231 (avr_extra_arch_macro) Declare as static.
10232 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10233
10234 2009-07-11 Jan Hubicka <jh@suse.cz>
10235
10236 PR middle-end/48388
10237 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10238
10239 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10240
10241 PR debug/40713
10242 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10243 cold_in_std_section bits.
10244 (dwarf2out_begin_prologue): Initialize them.
10245 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10246 if already covered by text_section or cold_text_section range.
10247
10248 PR rtl-optimization/40667
10249 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10250 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10251 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10252 * config/i386/i386.c (ix86_minimum_alignment): New function.
10253 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10254 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10255 * emit-rtl.c (gen_reg_rtx): Likewise.
10256 * function.c (assign_parms): Likewise. If nominal_type needs
10257 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10258 rather than passed_type's alignment.
10259
10260 PR target/40668
10261 * function.c (assign_parm_setup_stack): Adjust
10262 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10263 from nominal_mode on big endian.
10264
10265 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10266
10267 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10268
10269 2009-07-10 DJ Delorie <dj@redhat.com>
10270
10271 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10272
10273 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10274
10275 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10276 attribute.
10277 (thumb2_cbnz): Likewise.
10278
10279 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10280
10281 PR target/39079
10282 * config.gcc (supported_defaults): Add synci.
10283 (with_synci): Add validation.
10284 (all_defaults): Add synci.
10285 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10286 ISA_HAS_SYNCI.
10287 (synci): Same.
10288 * config/mips/mips.opt (msynci): New option.
10289 * config/mips/mips.c (mips_override_options): Warn on use of
10290 -msynci for targets that do now support it.
10291 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10292 msynci.
10293 * gcc/doc/invoke.texi (-msynci): Document the new option.
10294 * doc/install.texi (--with-synci): Document the new option.
10295
10296 2009-07-10 Richard Guenther <rguenther@suse.de>
10297
10298 PR tree-optimization/40496
10299 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10300 the PHI result with a compatible type.
10301
10302 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10303
10304 PR 25509
10305 PR 40614
10306 * c.opt (Wunused-result): New.
10307 * doc/invoke.texi: Document it.
10308 * c-common.c (c_warn_unused_result): Use it.
10309
10310 2009-07-09 DJ Delorie <dj@redhat.com>
10311
10312 * targhooks.c (default_target_can_inline_p): Rename from
10313 default_target_option_can_inline_p.
10314 * targhooks.h (default_target_can_inline_p): Likewise.
10315 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10316 TARGET_OPTION_CAN_INLINE_P.
10317 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10318 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10319 (mep_target_can_inline_p): Rename from
10320 mep_target_option_can_inline_p.
10321
10322 PR target/40626
10323 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10324 registers used to pass vectors.
10325
10326 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10327
10328 2009-07-09 Tom Tromey <tromey@redhat.com>
10329
10330 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10331 * config/mmix/mmix.c: Include dwarf2.h.
10332 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10333 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10334 * config/sh/sh.c: Include dwarf2.h.
10335 * config/i386/i386.c: Include dwarf2.h.
10336 * Makefile.in (DWARF2_H): Remove 'elf'.
10337 * except.c: Include dwarf2.h.
10338 * unwind-dw2.c: Include dwarf2.h.
10339 * dwarf2out.c: Include dwarf2.h.
10340 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10341 * unwind-dw2-fde.c: Include dwarf2.h.
10342 * dwarf2asm.c: Include dwarf2.h.
10343
10344 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10345
10346 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10347 (max_issue): Use it.
10348 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10349 scheduler hook.
10350 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10351 (region_sched_info): Update.
10352 * sched-ebb.c (ebb_sched_info): Update.
10353 * modulo-sched.c (sms_sched_info): Update.
10354 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10355
10356 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10357
10358 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10359
10360 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10361
10362 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10363
10364 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10365
10366 PR middle-end/40692
10367 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10368 arg1 with arg01 if arg1 is already INTEGER_CST.
10369
10370 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10371
10372 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10373 Transform (and (truncate)) into (truncate (and)).
10374
10375 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10376
10377 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10378 creating LHS paradoxical subregs. Fix surrounding returns to
10379 use NULL_RTX rather than 0.
10380
10381 2009-07-08 DJ Delorie <dj@redhat.com>
10382
10383 * config/mep/mep.c: (mep_option_can_inline_p): New.
10384 (TARGET_OPTION_CAN_INLINE_P): Define.
10385
10386 2009-07-08 Mark Wielaard <mjw@redhat.com>
10387
10388 PR debug/40659
10389 * dwarf2out.c (add_data_member_location_attribute): When we have
10390 only a constant offset don't emit a new location description using
10391 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10392 dwarf_version > 2.
10393
10394 2009-07-08 Richard Henderson <rth@redhat.com>
10395
10396 PR target/38900
10397 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10398 (enum reg_class): Add CLOBBERED_REGS.
10399 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10400 * config/i386/i386.c (ix86_conditional_register_usage): Moved
10401 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10402 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
10403 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
10404 force 64-bit sibcalls into R11.
10405 * config/i386/constraints.md (U): New constraint.
10406 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10407 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10408 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10409
10410 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
10411
10412 * basic-block.h (dump_regset, debug_regset): Remove duplicate
10413 prototypes.
10414 * c-objc-common.h (c_initialize_diagnostics): Ditto.
10415 * ebitmap.h (dump_ebitmap): Ditto.
10416 * optabs.h (optab_libfunc): Ditto.
10417 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10418 * tree-flow.h (vect_can_force_dr_alignment_p,
10419 get_vectype_for_scalar_type): Ditto.
10420 (vectorize_loops): Move prototype to ...
10421 * tree-vectorizer.h: ... here. Also, adjust comment.
10422 (vect_set_verbosity_level): Remove duplicate prototype.
10423 * tree-ssa-loop.c: Include tree-vectorizer.h.
10424 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10425
10426 2009-07-08 Nick Clifton <nickc@redhat.com>
10427
10428 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10429 forward slash.
10430
10431 2009-07-08 DJ Delorie <dj@redhat.com>
10432
10433 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10434 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10435 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
10436 written to.
10437 * config/mep/intrinsics.md: Regenerated.
10438 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10439 registers when asm() or calls are detected.
10440
10441 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10442
10443 PR c++/31246
10444 * gimplify.c (gimplify_expr): Propagate no_warning flag when
10445 gimplifying.
10446 * gimple (gimple_build_call_from_tree): Likewise.
10447 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10448 no_warning flag before warning.
10449
10450 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10451
10452 * tree.c (set_expr_locus): Remove.
10453 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10454 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
10455 EXPR_LOCATION.
10456 * gimplify.c (internal_get_tmp_var): Likewise.
10457 (gimplify_call_expr): Likewise.
10458 (gimplify_one_sizepos): Likewise.
10459
10460 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
10461
10462 PR debug/40666
10463 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10464 to variables for debugging purposes.
10465
10466 2009-06-23 Mark Loeser <mark@halcy0n.com>
10467
10468 PR build/40010
10469 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10470
10471 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10472
10473 * pretty-print.c (pp_base_format): Remove %J.
10474 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10475 gcc_cxxdiag_char_table): Likewise.
10476 (init_dynamic_diag_info): Likewise.
10477
10478 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10479
10480 * pretty-print.c (pp_base_format): Remove %H.
10481 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10482 gcc_cxxdiag_char_table): Likewise.
10483 (init_dynamic_diag_info): Likewise.
10484 * config/mep/mep.c (mep_select_section): Likewise.
10485
10486 2009-07-07 Duncan Sands <baldrick@free.fr>
10487
10488 * final.c (pass_clean_state): Give the pass a name.
10489 * passes.c (pass_rest_of_compilation): Likewise.
10490 * tree-optimize.c (pass_all_optimizations): Likewise.
10491
10492 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
10493
10494 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10495 an extra 'decl' for error_at.
10496
10497 2009-07-07 Jakub Jelinek <jakub@redhat.com>
10498
10499 PR middle-end/40669
10500 * tree-tailcall.c (adjust_return_value_with_ops,
10501 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10502 if it has complex or vector type.
10503
10504 2009-07-07 Olivier Hainque <hainque@adacore.com>
10505
10506 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10507 pthread symbols.
10508
10509 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
10510
10511 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10512
10513 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10514
10515 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
10516 * c-decl.c: Likewise.
10517 * function.c: Likewise.
10518 * varasm.c: Likewise.
10519 * tree-ssa.c: Likewise.
10520 * c-common.c: Likewise.
10521 * tree-cfg.c: Likewise.
10522 * config/spu/spu.c: Likewise.
10523 * config/ia64/ia64.c: Likewise.
10524 * config/v850/v850.c: Likewise.
10525
10526 2009-07-06 DJ Delorie <dj@redhat.com>
10527
10528 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10529 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10530 unspecified accesses to control registers.
10531 * config/mep/intrinsics.md: Regenerate.
10532 * config/mep/intrinsics.h: Regenerate.
10533 * config/mep/mep-intrin.h: Regenerate.
10534
10535 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10536
10537 * c-lex.c: Replace %H by an explicit location. Update all calls.
10538 * c-common.c: Likewise.
10539 * c-decl.c: Likewise.
10540 * c-typeck.c: Likewise.
10541 * fold-const.c: Likewise.
10542 * gimplify.c: Likewise.
10543 * stmt.c: Likewise.
10544 * tree-cfg.c: Likewise.
10545 * tree-ssa-loop-niter.c: Likewise.
10546 * tree-vrp.c: Likewise.
10547 * value-prof.c: Likewise.
10548
10549 2009-07-06 Diego Novillo <dnovillo@google.com>
10550
10551 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10552 if it has one. Handle cases where VAR does not have an
10553 annotation or cfun is NULL.
10554
10555 2009-07-06 Diego Novillo <dnovillo@google.com>
10556
10557 * tree.c: Include debug.h.
10558 (initialize_tree_contains_struct): New.
10559 (init_ttree): Call it.
10560 (tree_node_structure_for_code): Factor out of ...
10561 (tree_node_structure): ... here.
10562 * treestruct.def (TS_PHI_NODE): Remove.
10563 (TS_GIMPLE_STATEMENT): Remove.
10564
10565 2009-07-06 Diego Novillo <dnovillo@google.com>
10566
10567 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10568 (debug_tree_chain): Handle cycles.
10569
10570 2009-07-06 Nick Clifton <nickc@redhat.com>
10571 DJ Delorie <dj@redhat.com>
10572
10573 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10574 __FMOVD_ENABLED__ is defined.
10575 * config/sh/sh.h
10576 (TARGET_FMOVD): Provide a default definition.
10577 (MASK_FMOVD): Likewise.
10578 (TARGET_CPU_CPP_BUILTINS): Define
10579 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10580 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10581 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10582 (split for DF load from memory into register): Also handle
10583 MEMs which consist of REG+DISP addressing.
10584 (split for DF store from register to memory): Likewise.
10585 (movsf_ie): Always use single fp_mode.
10586 * config/sh/sh.c (sh_override_options): Do not automatically
10587 enable TARGET_MOVD for the SH2A when supporting doubles - leave
10588 that to the -mfmovd command line switch.
10589 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10590 (fldi_ok): Always allow.
10591 * config/sh/sh.opt (mfmovd): Remove this switch.
10592 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10593
10594 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
10595 Kaz Kojima <kkojima@gcc.gnu.org>
10596
10597 PR rtl-optimization/30807
10598 * postreload.c (reload_combine): For every new use of REG_SUM,
10599 record the use of BASE.
10600
10601 2009-07-06 Jan Hubicka <jh@suse.cz>
10602
10603 * params.def: Revert my accidental commit at 2009-06-30.
10604
10605 2009-07-04 Ian Lance Taylor <iant@google.com>
10606
10607 PR target/40636
10608 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10609 EXPORTED_CONST.
10610 (mingw_format_attribute_overrides): Likewise.
10611
10612 2009-07-04 Jakub Jelinek <jakub@redhat.com>
10613
10614 PR debug/40596
10615 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10616 don't check cfa.reg. Instead of cfa.indirect use
10617 fde && fde->drap_reg != INVALID_REGNUM test.
10618
10619 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
10620
10621 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10622
10623 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
10624
10625 PR target/40587
10626 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10627
10628 2009-07-03 Richard Guenther <rguenther@suse.de>
10629
10630 PR tree-optimization/40640
10631 * tree-switch-conversion.c (build_arrays): Perform arithmetic
10632 in original type.
10633
10634 2009-07-03 Jan Hubicka <jh@suse.cz>
10635
10636 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10637 for size, reduce amount of inlining.
10638
10639 2009-07-03 Richard Guenther <rguenther@suse.de>
10640
10641 PR middle-end/34163
10642 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10643 if t +- x is known to not overflow and the conversion widens the
10644 operation.
10645 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10646
10647 2009-07-03 Jan Hubicka <jh@suse.cz>
10648
10649 * ipa-pure-const.c (analyze): Update loop optimizer init.
10650 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10651 try_remove_empty_loop, remove_empty_loops): Remove.
10652 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10653 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10654 to mark regular loops as neccesary.
10655 (degenerate_phi_p): New function.
10656 (propagate_necessity, remove_dead_phis): Use it.
10657 (forward_edge_to_pdom): Likewise.
10658 (eliminate_unnecessary_stmts): Take care to remove uses of results of
10659 virtual PHI nodes that became unreachable.
10660 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10661 * tree-flow.h (remove_empty_loops): Remove.
10662 * passes.c (init_optimization_passes): Remove.
10663
10664 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
10665
10666 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10667 can_create_pseudo_p.
10668 (*fix_trunc<mode>_i387_1): Ditto.
10669 (*floathi<mode>2_1): Ditto.
10670 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
10671 (*fistdi2_1): Ditto.
10672 (*fist<mode>2_1): Ditto.
10673 (frndintxf2_floor): Ditto.
10674 (*fist<mode>2_floor_1): Ditto.
10675 (frndintxf2_ceil): Ditto.
10676 (*fist<mode>2_ceil_1): Ditto.
10677 (frndintxf2_trunc): Ditto.
10678 (frndintxf2_mask_pm): Ditto.
10679 (fxam<mode>2_i387_with_temp): Ditto.
10680 * config/i386/sse.md (mulv16qi3): Ditto.
10681 (*sse2_mulv4si3): Ditto.
10682 (mulv2di3): Ditto.
10683 (sse4_2_pcmpestr): Ditto.
10684 (sse4_2_pcmpistr): Ditto.
10685
10686 2009-07-03 Jan Hubicka <jh@suse.cz>
10687
10688 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
10689 (mark_stmt_necessary): Set it.
10690 (mark_operand_necessary): Set it.
10691 (mark_control_dependent_edges_necessary): Set it.
10692 (mark_virtual_phi_result_for_renaming): New function.
10693 (get_live_post_dom): New function.
10694 (forward_edge_to_pdom): New function.
10695 (remove_dead_stmt): Fix handling of control dependences.
10696 (tree_dce_init): Init new bitmap.
10697 (tree_dce_done): Free it.
10698
10699 2009-07-02 Richard Guenther <rguenther@suse.de>
10700
10701 PR bootstrap/40617
10702 * tree-ssa-structalias.c (new_var_info): Initialize
10703 is_restrict_var.
10704
10705 2009-07-02 Jan Hubicka <jh@suse.cz>
10706
10707 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
10708 local.
10709
10710 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
10711
10712 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
10713 instead of recomputing it. Adjust calls.
10714 (emit_store_flag): Adjust recursive calls.
10715
10716 2009-07-02 Richard Guenther <rguenther@suse.de>
10717
10718 * tree-ssa-live.c (remove_unused_locals): Do not remove
10719 heap variables.
10720 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
10721 of DECL_EXTERNAL for HEAP variables.
10722 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
10723 HEAP variables. Do not adjust RESTRICT vars.
10724 (find_what_var_points_to): Nobody cares if something
10725 points to READONLY.
10726
10727 2009-07-02 Ben Elliston <bje@au.ibm.com>
10728
10729 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
10730 pc_low and pc_high declarations to the top of the function.
10731
10732 2009-07-01 DJ Delorie <dj@redhat.com>
10733
10734 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
10735 registers as fixed.
10736 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
10737 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
10738 unspecified accesses to control registers.
10739 * config/mep/intrinsics.md: Regenerate.
10740 * config/mep/intrinsics.h: Regenerate.
10741 * config/mep/mep-intrin.h: Regenerate.
10742
10743 2009-07-01 Anthony Green <green@moxielogic.com>
10744
10745 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10746 instruction when possible.
10747 (moxie_expand_prologue): Ditto. Also, save an instruction and
10748 some complexity by popping off of $r12 instead of $sp.
10749 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
10750 operands.
10751
10752 2009-07-01 Richard Henderson <rth@redhat.com>
10753
10754 PR bootstrap/40347
10755 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
10756 contained no insns, reposition note before last insn.
10757
10758 2009-07-01 Richard Henderson <rth@redhat.com>
10759
10760 PR debug/40431
10761 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
10762 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
10763
10764 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10765
10766 PR bootstrap/40558
10767 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
10768 darwin9 for printing reg addresses with %y.
10769
10770 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
10771
10772 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
10773 truncation from operands in binary operations.
10774
10775 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
10776
10777 Revert:
10778 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
10779 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10780 subreg of op0 to the original op0.
10781
10782 * expmed.c (store_bit_field_1): Use a temporary as the destination
10783 instead of a paradoxical subreg when we need to truncate the result.
10784
10785 2009-07-01 DJ Delorie <dj@redhat.com>
10786
10787 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
10788 names to VLIW variants.
10789 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
10790 * config/mep/intrinsics.md: Regenerate.
10791 * config/mep/intrinsics.h: Regenerate.
10792 * config/mep/mep-intrin.h: Regenerate.
10793
10794 2009-07-01 Jakub Jelinek <jakub@redhat.com>
10795
10796 PR debug/40462
10797 * jump.c (returnjump_p): Revert last patch.
10798 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
10799
10800 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10801
10802 PR target/40575
10803 * pa.md (casesi32p): Use jump table label to determine the offset
10804 of the jump table.
10805 (casesi64p): Likewise.
10806
10807 * pa.c (forward_branch_p): Return bool type. Use instruction
10808 addresses when available. Assert that INSN has a jump label.
10809 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
10810 have a jump label.
10811
10812 2009-07-01 Richard Guenther <rguenther@suse.de>
10813
10814 PR tree-optimization/19831
10815 * tree-ssa-dce.c (propagate_necessity): Calls to functions
10816 that only act as barriers do not make any previous stores necessary.
10817 * tree-ssa-structalias.c (handle_lhs_call): Delay making
10818 HEAP variables global, do not add a constraint from nonlocal.
10819 (find_func_aliases): Handle escapes through return statements.
10820 (compute_points_to_sets): Make escaped HEAP variables global.
10821
10822 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
10823
10824 PR bootstrap/40597
10825 * expmed.c (emit_store_flag): Perform a conversion if necessary,
10826 after reducing a DImode cstore to SImode.
10827
10828 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
10829
10830 * expr.c (expand_expr_real_1): Reinstate fallthrough to
10831 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
10832
10833 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
10834
10835 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
10836 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
10837 to 0.
10838 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
10839 and umod_optab if TARGET_BSD_DIVMOD.
10840 * config/vax/lib1funcs.asm: New file.
10841 * config/vax/t-linux: New file.
10842 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
10843
10844 2009-06-30 Jakub Jelinek <jakub@redhat.com>
10845
10846 PR c++/40566
10847 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
10848 to type arguments that have void type.
10849
10850 PR debug/40573
10851 * dwarf2out.c (gen_formal_parameter_die): Call
10852 equate_decl_number_to_die if node is different from origin.
10853
10854 2009-06-30 Anthony Green <green@moxielogic.com>
10855
10856 Clean up moxie port for --enable-build-with-cxx.
10857 * config/moxie/moxie.c (moxie_function_value): First two
10858 parameters are const_tree, not tree.
10859 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
10860 (REG_CLASS_NAMES): Ditto.
10861 (REGNO_REG_CLASS): Ditto.
10862 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
10863 (moxie_function_value): Fix constyness of arguments.
10864
10865 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
10866
10867 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
10868 finalize_size_functions before further processing.
10869 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
10870 (variable_size): Call self_referential_size on size expressions
10871 that contain a PLACEHOLDER_EXPR.
10872 (size_functions): New static variable.
10873 (copy_self_referential_tree_r): New static function.
10874 (self_referential_size): Likewise.
10875 (finalize_size_functions): New global function.
10876 * tree.c: Include tree-inline.h.
10877 (push_without_duplicates): New static function.
10878 (find_placeholder_in_expr): New global function.
10879 (substitute_in_expr) <tcc_declaration>: Return the replacement object
10880 on equality.
10881 <tcc_expression>: Likewise.
10882 <tcc_vl_exp>: If the replacement object is a constant, try to inline
10883 the call in the expression.
10884 * tree.h (finalize_size_functions): Declare.
10885 (find_placeholder_in_expr): Likewise.
10886 (FIND_PLACEHOLDER_IN_EXPR): New macro.
10887 (substitute_placeholder_in_expr): Update comment.
10888 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
10889 is true.
10890 (copy_tree_body_r): Likewise.
10891 (copy_tree_body): New static function.
10892 (maybe_inline_call_in_expr): New global function.
10893 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
10894 (maybe_inline_call_in_expr): Declare.
10895 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
10896 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
10897 GIMPLE_H.
10898
10899 2009-06-30 Richard Guenther <rguenther@suse.de>
10900
10901 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
10902 continue walking.
10903 (propagate_necessity): Do not mark reaching defs of stores
10904 as necessary.
10905
10906 2009-06-30 Jan Hubicka <jh@suse.cz>
10907
10908 * cfgloopanal.c (check_irred): Move into ...
10909 (mark_irreducible_loops): ... here; return true if ireducible
10910 loops was found.
10911 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
10912 (analyze_function): Try to prove loop finiteness.
10913 * cfgloop.h (mark_irreducible_loops): Update prototype.
10914 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
10915
10916 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
10917
10918 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
10919
10920 2009-06-30 Ira Rosen <irar@il.ibm.com>
10921
10922 PR tree-optimization/40542
10923 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
10924 types.
10925
10926 2009-06-30 Martin Jambor <mjambor@suse.cz>
10927
10928 PR tree-optimization/40582
10929 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
10930 than useless_type_conversion_p.
10931 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
10932 proper place.
10933
10934 2009-06-30 Martin Jambor <mjambor@suse.cz>
10935
10936 PR middle-end/40554
10937 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
10938
10939 2009-06-30 Richard Guenther <rguenther@suse.de>
10940
10941 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
10942 use ao_ref references.
10943 (walk_aliased_vdefs): Likewise.
10944 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
10945 * tree-ssa-dce.c (struct ref_data): Remove.
10946 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
10947 (mark_aliased_reaching_defs_necessary): Adjust.
10948 (mark_all_reaching_defs_necessary_1): Likewise.
10949
10950 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
10951
10952 PR boostrap/40597
10953 * expmed.c (emit_cstore): New name of emit_store_flag_1.
10954 (emit_store_flag_1): Extract from emit_store_flag, adjust
10955 calls to (what now is) emit_cstore.
10956 (emit_store_flag): Call emit_store_flag_1 and also use it
10957 for what used to be recursive calls.
10958
10959 2009-06-30 Wei Guozhi <carrot@google.com>
10960
10961 PR/40416
10962 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
10963 if the target bb post dominates from bb.
10964 * config/i386/i386.c (memory_address_length): Check existence of base
10965 register before using it.
10966
10967 2009-06-30 Nick Clifton <nickc@redhat.com>
10968 DJ Delorie <dj@redhat.com>
10969
10970 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10971 __FMOVD_ENABLED__ is defined.
10972 * config/sh/sh.h
10973 (TARGET_FMOVD): Provide a default definition.
10974 (MASK_FMOVD): Likewise.
10975 (TARGET_CPU_CPP_BUILTINS): Define
10976 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10977 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10978 two fmov instructions depending upon whether TARGET_FMOVD is
10979 enabled.
10980 (split for DF load from memory into register): Also handle
10981 MEMs which consist of REG+DISP addressing.
10982 (split for DF store from register to memory): Likewise.
10983 * config/sh/sh.opt (mfmovd): Remove this switch.
10984 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10985 * config/sh/sh.c (sh_override_options): Do not automatically
10986 enable TARGET_MOVD for the SH2A when supporting doubles - leave
10987 that to the -mfmovd command line switch.
10988
10989 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
10990 the SH4 and SH4A.
10991 (fldi_ok): Always allow.
10992 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
10993
10994 2009-06-29 DJ Delorie <dj@redhat.com>
10995
10996 * doc/install.texi (mep-x-elf): Correct chip's full name.
10997
10998 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
10999
11000 * doc/extend.texi: Fix typo.
11001
11002 2009-06-29 Tom Tromey <tromey@redhat.com>
11003
11004 * dwarf2.h: Remove.
11005 * Makefile.in (DWARF2_H): New variable.
11006 (except.o): Use it.
11007 (dwarf2out.o): Likewise.
11008 (dwarf2asm.o): Likewise.
11009 * config/i386/t-i386: Use DWARF2_H.
11010 * except.c: Include elf/dwarf2.h.
11011 * unwind-dw2.c: Include elf/dwarf2.h.
11012 * dwarf2out.c: Include elf/dwarf2.h.
11013 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11014 <dtprel>: New field.
11015 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11016 (size_of_loc_descr): Likewise.
11017 (output_loc_operands_raw): Likewise.
11018 (output_loc_operands): Handle new dtprel field.
11019 (loc_checksum): Update.
11020 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11021 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11022 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11023 * dwarf2asm.c: Include elf/dwarf2.h.
11024 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11025 * config/mmix/mmix.c: Include elf/dwarf2.h.
11026 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11027 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11028 * config/sh/sh.c: Include elf/dwarf2.h.
11029 * config/i386/i386.c: Include elf/dwarf2.h.
11030
11031 2009-06-29 DJ Delorie <dj@redhat.com>
11032
11033 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11034
11035 * doc/extend.texi: Add MeP attributes and pragmas.
11036 * doc/invoke.text: Add MeP Options.
11037 * doc/contrib.texi: Add MeP contribution.
11038 * doc/md.texi: Add MeP constraints.
11039 * doc/install.texi: Add MeP target.
11040
11041 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11042
11043 * target.h (struct gcc_target): Add frame_pointer_required field.
11044 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11045 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11046 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11047 hook.
11048 * reload1.c (update_eliminables): (Ditto.).
11049 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11050 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11051 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11052
11053 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11054
11055 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11056 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11057 (arm_frame_pointer_required): New function.
11058
11059 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11060 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11061 (avr_frame_pointer_required_p): Declare as static.
11062 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11063
11064 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11065 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11066 (bfin_frame_pointer_required): Make as static, change return type
11067 to bool.
11068 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11069
11070 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11071 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11072 (cris_frame_pointer_required): New function.
11073
11074 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11075
11076 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11077 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11078 (fr30_frame_pointer_required): New function.
11079
11080 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11081 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11082 (frv_frame_pointer_required): Make as static, change return type
11083 to bool.
11084 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11085
11086 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11087 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11088 (ix86_frame_pointer_required): Make as static, change return type to
11089 bool.
11090 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11091
11092 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11093 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11094
11095 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11096
11097 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11098
11099 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11100
11101 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11102 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11103 (mips_frame_pointer_required): Make as static.
11104 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11105
11106 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11107 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11108 (mmix_frame_pointer_required): Mew function.
11109
11110 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11111 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11112
11113 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11114
11115 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11116
11117 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11118
11119 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11120 (CAN_ELIMINATE): Redefine.
11121 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11122 (sparc_frame_pointer_required): New function.
11123 (sparc_can_eliminate): New function.
11124 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11125
11126 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11127 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11128
11129 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11130 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11131 (xtensa_frame_pointer_required): Make as static, change return type
11132 to bool.
11133 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11134 Remove.
11135
11136 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11137
11138 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11139 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11140 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11141 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11142 (register_callback): Handle PLUGIN_START_UNIT.
11143 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11144
11145 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11146
11147 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11148 operands.
11149 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11150 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11151
11152 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11153
11154 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11155 move cost.
11156
11157 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11158
11159 * doc/extend.texi (Additional Floating Types): __float128 is also
11160 supported on i386 targets.
11161
11162 2009-06-29 Richard Guenther <rguenther@suse.de>
11163
11164 PR middle-end/14187
11165 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11166 flag.
11167 (pt_solutions_same_restrict_base): Declare.
11168 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11169 flag.
11170 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11171 (make_constraint_from, make_copy_constraint): Move earlier.
11172 (make_constraint_from_heapvar): New function.
11173 (make_constraint_from_restrict): Likewise.
11174 (handle_lhs_call): Use it.
11175 (find_func_aliases): Use it to track conversions to restrict
11176 qualified pointers.
11177 (struct fieldoff): Add only_restrict_pointers flag.
11178 (push_fields_onto_fieldstack): Initialize it.
11179 (create_variable_info_for): Track global restrict qualified pointers.
11180 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11181 Track restrict qualified pointer arguments.
11182 (set_uids_in_ptset): Use varinfo is_global_var flag.
11183 (find_what_var_points_to): Set the vars_contains_restrict flag.
11184 Always create the points-to solution for sets including restrict tags.
11185 (pt_solutions_same_restrict_base): New function.
11186 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11187 qualified pointers use pt_solutions_same_restrict_base as
11188 additional source for disambiguation.
11189
11190 2009-06-29 Richard Guenther <rguenther@suse.de>
11191
11192 PR middle-end/38212
11193 * alias.c (find_base_decl): Remove.
11194 (get_deref_alias_set_1): Remove restrict handling.
11195 * c-common.c (c_apply_type_quals_to_decl): Do not set
11196 DECL_POINTER_ALIAS_SET.
11197 * gimplify.c (find_single_pointer_decl_1): Remove.
11198 (find_single_pointer_decl): Likewise.
11199 (internal_get_tmp_var): Remove restrict handling.
11200 (gimple_regimplify_operands): Likewise.
11201 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11202 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11203 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11204 * tree.c (restrict_base_for_decl): Remove.
11205 (init_ttree): Do not allocate it.
11206 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11207 LABEL_DECL_UID for label decls.
11208 (copy_node_stat): Do not copy restrict information.
11209 (decl_restrict_base_lookup): Remove.
11210 (decl_restrict_base_insert): Likewise.
11211 (print_restrict_base_statistics): Likewise.
11212 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11213 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11214 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11215 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11216 (LABEL_DECL_UID): Adjust.
11217 (DECL_BASED_ON_RESTRICT_P): Remove.
11218 (DECL_GET_RESTRICT_BASE): Likewise.
11219 (SET_DECL_RESTRICT_BASE): Likewise.
11220 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11221
11222 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11223 instead of DECL_POINTER_ALIAS_SET.
11224 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11225 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11226 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11227
11228 2009-06-29 Richard Guenther <rguenther@suse.de>
11229
11230 PR tree-optimization/40579
11231 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11232 the IL to simplify has constants that overflowed.
11233
11234 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11235
11236 PR tree-optimization/40550
11237 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11238 vector_compute_type only when the size of vector_compute_type is
11239 less than the size of type.
11240
11241 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11242
11243 * fold-const.c (contains_label_1): Fix comments.
11244 (contains_label_p): Do not walk trees multiple time.
11245
11246 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11247
11248 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11249 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11250 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11251 ix86_fp_comparison_operator.
11252 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11253 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11254 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11255 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11256 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11257 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11258 (related splits): Change predicate to ix86_fp_comparison_operator.
11259 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11260 instead of ix86_fp_comparison_codes.
11261 (ix86_trivial_fp_comparison_operator,
11262 ix86_fp_comparison_operator): New.
11263 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11264 (ix86_expand_compare): Eliminate last two parameters.
11265 (ix86_fp_jump_nontrivial_p): Kill.
11266 * config/i386/i386.c (put_condition_code): Eliminate call to
11267 ix86_fp_comparison_codes and subsequent assertion.
11268 (ix86_fp_comparison_codes): Eliminate.
11269 (ix86_fp_swap_condition): New.
11270 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11271 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11272 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11273 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11274 and ix86_fp_swap_condition.
11275 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11276 Use ix86_fp_comparison_strategy.
11277 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11278 (ix86_fp_jump_nontrivial_p): Eliminate.
11279 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11280 call to ix86_expand_compare.
11281 (ix86_split_fp_branch, ix86_expand_setcc,
11282 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11283 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11284
11285 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11286
11287 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11288 related to jump_clobbers.
11289 * config/arm/arm.md (conds): Remove jump_clob case.
11290 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11291 splits): Change comparison_operator to arm_comparison_operator.
11292 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11293 Eliminate.
11294
11295 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11296
11297 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11298 condition for floating point modes.
11299 * expmed.c (emit_store_flag_1): Move here a bigger part
11300 of emit_store_flag.
11301 (emit_store_flag): Try swapping the condition for floating point
11302 modes.
11303 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11304
11305 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11306
11307 * expr.c (expand_expr_real_1): Just use do_store_flag.
11308 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11309 emit_store_flag_force.
11310 * expmed.c (emit_store_flag_force): Copy here trick
11311 previously in expand_expr_real_1. Try reversing the comparison.
11312 (emit_store_flag_1): Work if target is NULL.
11313 (emit_store_flag): Work if target is NULL, using the result mode
11314 from the comparison. Use split_comparison, restructure final part
11315 to simplify conditionals.
11316
11317 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11318
11319 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11320 * dojump.c (do_jump): Change handling of floating-point
11321 ops to use just do_compare_and_jump.
11322 (split_comparison): New.
11323 (do_compare_rtx_and_jump): Add here logic coming previously
11324 in do_jump, using split_comparison.
11325
11326 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11327
11328 PR target/40489
11329 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11330
11331 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11332
11333 * tree-ssa-alias.c: Fix unintentional commit.
11334
11335 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11336
11337 * passes.c (execute_one_pass): Fix unintentional commit.
11338
11339 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11340
11341 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11342 (df_rd_local_compute, df_md_local_compute): Inline them.
11343
11344 (df_md_scratch): New.
11345 (df_md_alloc, df_md_free): Allocate/free it.
11346 (df_md_local_compute): Only include live registers in init.
11347 (df_md_transfer_function): Prune the in-set computed by
11348 the confluence function, and the gen-set too.
11349
11350 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11351
11352 PR rtl-optimization/26854
11353 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11354 * df-problems.c (df_rd_add_problem): Fix comment.
11355 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11356 df_md_simulate_artificial_defs_at_top,
11357 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11358 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11359 df_md_transfer_function, df_md_init, df_md_confluence_0,
11360 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11361 problem_MD, df_md_add_problem): New.
11362 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11363 df_md_get_bb_info): New.
11364 (DF_LAST_PROBLEM_PLUS1): Adjust.
11365
11366 * Makefile.in (fwprop.o): Include domwalk.h.
11367 * fwprop.c: Include domwalk.h.
11368 (reg_defs, reg_defs_stack): New.
11369 (bitmap_only_bit_between): Remove.
11370 (process_defs): New.
11371 (process_uses): Use reg_defs and local_md instead of
11372 bitmap_only_bit_between and local_rd.
11373 (single_def_use_enter_block): New, from build_single_def_use_links.
11374 (single_def_use_leave_block): New.
11375 (build_single_def_use_links): Remove code moved to
11376 single_def_use_enter_block, invoke domwalk.
11377 (use_killed_between): Adjust comment.
11378
11379 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11380
11381 * bitmap.h (bitmap_ior_and_into): New.
11382 * bitmap.c (bitmap_ior_and_into): New.
11383
11384 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11385
11386 * domwalk.h (struct dom_walk_data): Remove all callbacks except
11387 before_dom_children_before_stmts and after_dom_children_after_stmts.
11388 Rename the two remaining callbacks to just before_dom_children and
11389 after_dom_children. Remove other GIMPLE statement walking bits.
11390 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11391 * graphite.c: Do not include domwalk.h.
11392 * tree-into-ssa.c (interesting_blocks): New global.
11393 (struct mark_def_sites_global_data): Remove it and names_to_rename.
11394 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11395 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11396 now that they're not domwalk callbacks.
11397 (rewrite_initialize_block): Rename to...
11398 (rewrite_enter_block): ... this, place after called functions. Test
11399 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11400 (rewrite_finalize_block): Rename to...
11401 (rewrite_leave_block): ... this, place after called functions.
11402 (rewrite_update_init_block): Rename to...
11403 (rewrite_update_enter_block): ... this, place after called functions.
11404 Test interesting_blocks, call rewrite_update_stmt and
11405 rewrite_update_phi_arguments.
11406 (rewrite_update_fini_block): Rename to...
11407 (rewrite_leave_block): ... this, place after called functions.
11408 (rewrite_blocks): Remove last argument, simplify initialization of
11409 walk_data.
11410 (mark_def_sites_initialize_block): Rename to...
11411 (mark_def_sites_block): ... this, call mark_def_sites.
11412 (mark_def_sites_blocks): Remove argument, simplify initialization of
11413 walk_data.
11414 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11415 (update_ssa): Likewise.
11416 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11417 callback.
11418 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11419 (dom_opt_initialize_block): Rename to...
11420 (dom_opt_enter_block): ... this, place after called functions. Walk
11421 statements here, inline propagate_to_outgoing_edges.
11422 (dom_opt_finalize_block): Rename to...
11423 (dom_opt_leave_block): ... this, place after called functions.
11424 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11425 domwalk callback.
11426 (dse_enter_block, dse_record_phi): New.
11427 (dse_record_phis): Delete.
11428 (dse_finalize_block): Rename to...
11429 (dse_leave_block): ... this.
11430 (tree_ssa_dse): Simplify initialization of walk_data.
11431 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11432 Adjust initialization of walk_data.
11433 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11434 * tree-ssa-loop-phiopt.c (get_non_trapping):
11435 Adjust initialization of walk_data.
11436 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11437 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11438 it's not a domwalk callback.
11439 (uncprop_initialize_block): Rename to...
11440 (dse_enter_block): ... this, call uncprop_into_successor_phis.
11441 (dse_finalize_block): Rename to...
11442 (dse_leave_block): ... this.
11443 (tree_ssa_uncprop): Simplify initialization of walk_data.
11444 * Makefile.in: Adjust dependencies.
11445
11446 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
11447
11448 * arm.md (casesi): Fix test for Thumb1.
11449 (thumb1_casesi_internal_pic): Likewise.
11450 (thumb1_casesi_dispatch): Likewise.
11451
11452 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
11453
11454 * config/arm/arm-cores.def: Added core cortex-m0.
11455 * config/arm/arm-tune.md: Regenerated.
11456 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11457
11458 2009-06-26 DJ Delorie <dj@redhat.com>
11459
11460 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11461
11462 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11463 the scheduler doesn't tag jump insns.
11464
11465 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
11466
11467 * c-decl.c (merge_decls): Re-indent.
11468
11469 2009-06-26 Janis Johnson <janis187@us.ibm.com>
11470
11471 PR c/39902
11472 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11473 Special-case decimal float constants.
11474
11475 2009-06-26 Richard Henderson <rth@redhat.com>
11476
11477 * function.h (struct function): Add cannot_be_copied_reason,
11478 and cannot_be_copied_set.
11479 * tree-inline.c (has_label_address_in_static_1): Rename from
11480 inline_forbidden_p_2; don't set inline_forbidden_reason here.
11481 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11482 don't set inline_forbidden_reason.
11483 (copy_forbidden): New function, split out of inline_forbidden_p.
11484 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11485 (inline_forbidden_p): Use copy_forbidden.
11486 (tree_versionable_function_p): Likewise.
11487 (inlinable_function_p): Merge into tree_inlinable_function_p.
11488 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11489 * ipa-cp.c (ipcp_versionable_function_p): New function.
11490 (ipcp_cloning_candidate_p): Use it.
11491 (ipcp_node_modifiable_p): Likewise.
11492
11493 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
11494
11495 * builtins.c (expand_builtin_alloca): Handle builtin alloca
11496 that is marked not to be inlined. Remove flag_mudflap use.
11497 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11498 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11499
11500 2009-06-26 Steve Ellcey <sje@cup.hp.com>
11501
11502 PR bootstrap/40338
11503 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11504 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11505
11506 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
11507
11508 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11509 shared libgcc.
11510 (__mingwthr_remove_key_dtor): Likewise.
11511
11512 2009-06-26 Richard Guenther <rguenther@suse.de>
11513
11514 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11515
11516 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
11517
11518 PR middle-end/40525
11519 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11520 try the non-cond_exec path also.
11521
11522 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11523
11524 PR target/40468
11525 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11526 (output_cbranch): Use new functions.
11527 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11528 Likewise.
11529
11530 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11531 Pat Haugen <pthaugen@us.ibm.com>
11532 Revital Eres <ERES@il.ibm.com>
11533
11534 * config/rs6000/rs6000.c (print_operand): Correct lossage message
11535 for %c error. Add %x support to print VSX registers as a unified
11536 register set, instead of separate float and altivec registers.
11537 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11538 %y case, and add support for VSX pre-modify addresses.
11539 (output_toc): Add assert for CONST containing an integer constant
11540 in the PLUS case.
11541 (rs6000_adjust_cost): Add POWER7 support.
11542 (insn_must_be_first_in_group): Ditto.
11543 (insn_must_be_last_in_group): Ditto.
11544 (rs6000_emit_popcount): Ditto.
11545 (rs6000_vector_mode_supported_p): Ditto.
11546
11547 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11548 Change some of the functions called by macros to being called
11549 through a pointer, so debug functions can be inserted if
11550 -mdebug=addr or -mdebug=cost.
11551 (rs6000_preferred_reload_class_ptr): Ditto.
11552 (rs6000_secondary_reload_class_ptr): Ditto.
11553 (rs6000_secondary_memory_needed_ptr): Ditto.
11554 (rs6000_cannot_change_mode_class_ptr): Ditto.
11555 (rs6000_secondary_reload_inner): Ditto.
11556 (rs6000_legitimize_reload_address): Ditto.
11557 (rs6000_legitimize_reload_address_ptr): Ditto.
11558 (rs6000_mode_dependent_address): Ditto.
11559 (rs6000_mode_dependent_address_ptr): Ditto.
11560
11561 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11562 function to return true if the mode allows reg + integer
11563 addresses.
11564 (virtual_stack_registers_memory_p): New function to return true if
11565 the address refers to a virtual stack register.
11566 (rs6000_legitimate_offset_address_p): Move code to say whether a
11567 mode supports reg+int addressing to reg_offset_addressing_ok_p and
11568 call it.
11569 (rs6000_legitimate_address_p): Add checks for modes that only can
11570 do reg+reg addressing. Start adding VSX support.
11571 (rs6000_legitimize_reload_address): Ditto.
11572 (rs6000_legitimize_address): Ditto.
11573 (rs6000_debug_legitimate_address_p): New debug functions for
11574 -mdebug=addr and -mdebug=cost.
11575 (rs6000_debug_rtx_costs): Ditto.
11576 (rs6000_debug_address_costs): Ditto.
11577 (rs6000_debug_adjust_cost): Ditto.
11578 (rs6000_debug_legitimize_address): Ditto.
11579 (rs6000_legitimize_reload_address_ptr): Point to call normal
11580 function or debug function. Make functions called via pointer
11581 static.
11582 (rs6000_mode_dependent_address_ptr): Ditto.
11583 (rs6000_secondary_reload_class_ptr): Ditto.
11584 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11585 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
11586 into a friendlier error.
11587 (rs6000_init_builtins): Add initial VSX support.
11588 (rs6000_adjust_cost): Fix some spacing issues.
11589
11590 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11591 (REG_CLASS_NAMES): Ditto.
11592 (REG_CLASS_CONTENTS): Ditto.
11593 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11594 pointer, to add -mdebug=addr support.
11595 (CANNOT_CHANGE_MODE_CLASS): Ditto.
11596 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11597 -mdebug=addr support.
11598 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11599 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11600 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11601
11602 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11603 16-bit values.
11604 (bswapsi*): Set attribute types for load/store. Add combiner
11605 patterns to eliminate zero extend on 64-bit.
11606 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
11607 stdbrx if the hardware supports those instructions.
11608
11609 2009-06-25 Ian Lance Taylor <iant@google.com>
11610
11611 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11612 (Link Options): Document -static-libstdc++.
11613
11614 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11615
11616 PR target/38731
11617 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11618 DATA_ALIGNMENT instead.
11619
11620 2009-06-25 Richard Guenther <rguenther@suse.de>
11621
11622 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11623 indirect references against the callused/escaped solutions.
11624 (call_may_clobber_ref_p_1): Likewise.
11625
11626 2009-06-25 Martin Jambor <mjambor@suse.cz>
11627
11628 PR tree-optimization/40493
11629 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11630 (enum unscalarized_data_handling): New type.
11631 (handle_unscalarized_data_in_subtree): Return what has been done.
11632 (load_assign_lhs_subreplacements): Handle left flushes differently.
11633 (sra_modify_assign): Use unscalarized_data_handling, simplified
11634 condition determining whether to remove the statement.
11635
11636 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
11637
11638 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11639 excerpt - @ should be doubled for texinfo.
11640
11641 2009-06-24 Ian Lance Taylor <iant@google.com>
11642
11643 * config/arc/arc.c: Include "df.h".
11644 (arc_attribute_table): Make static. Move higher in file.
11645 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11646 (output_shift): Initialize n later to avoid warning.
11647 * config/arm/arm.c (arm_attribute_table): Make static. Move
11648 higher in file.
11649 * config/avr/avr.c (avr_attribute_table): Make static. Move
11650 higher in file.
11651 (reg_class_tab): Change array type from int to enum reg_class.
11652 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11653 LABEL_REF.
11654 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11655 (lshrhi3_out): Likewise.
11656 (class_likely_spilled_p): Change return type to bool.
11657 (avr_rtx_costs): Use local code variable with enum type.
11658 * config/avr/avr.md (movmemhi): Use add_reg_note.
11659 (andhi3, andsi3): Don't use AS2 with "and".
11660 (iorhi3, iorsi3): Don't use AS2 with "or".
11661 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11662 * config/crx/crx.c: Include "df.h".
11663 (crx_attribute_table): Make static.
11664 * config/m32r/m32r.c: Include "df.h".
11665 (m32r_attribute_table): Make static. Move higher in file.
11666 (pop): Use add_reg_note.
11667 (block_move_call): Change 0 to LCT_NORMAL in function call.
11668 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
11669 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
11670 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
11671 declare, not just when TREE_CODE is defined.
11672 * config/m68hc11/m68hc11.c: Include "expr.h".
11673 (m68hc11_attribute_table): Make static. Move higher in file.
11674 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
11675 function call.
11676 (m68hc11_register_indirect_p): Likewise.
11677 (m68hc11_function_arg_padding): Change return type to enum
11678 direction.
11679 (emit_move_after_reload): Use add_reg_note.
11680 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
11681 (m68hc11_split_logical): Likewise.
11682 (m68hc11_rtx_costs): Add local code_and outer_code variables with
11683 enum type.
11684 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
11685 to VOIDmode in function call.
11686 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
11687 tree is defined.
11688 (m68hc11_split_logical): Update declaration.
11689 (m68hc11_function_arg_padding): Update declaration.
11690 * config/mcore/mcore.c (regno_reg_class): Change form array of int
11691 to array of enum reg_class.
11692 (mcore_attribute_table): Make static. Move higher in file.
11693 (mcore_rtx_costs): Add cast to enum type.
11694 * config/mcore/mcore.h (regno_reg_class): Update declaration.
11695 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
11696 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
11697 in file.
11698 * config/sh/predicates.md (trapping_target_operand): Rename and to
11699 and_expr.
11700 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
11701 higher in file.
11702 * config/spu/spu.c (spu_attribute_table): Make static. Move
11703 higher in file.
11704 * config/v850/v850.c (v850_attribute_table): Make static. Move
11705 higher in file.
11706 (v850_rtx_costs): Use local code with enum type.
11707 (expand_epilogue): Add cast.
11708 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
11709
11710 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
11711
11712 PR target/40515
11713 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
11714 -m2a-single-only and -m2a-nofpu.
11715 * config/sh/sh.opt: Document m2a generates FPU code.
11716
11717 2009-06-24 Anatoly Sokolov <aesok@post.ru>
11718
11719 * defaults.h (CAN_ELIMINATE): Provide default.
11720 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11721 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
11722 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
11723 * config/spu/spu.h (CAN_ELIMINATE): Delete.
11724 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
11725 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
11726 * config/cris/cris.h (CAN_ELIMINATE): Delete.
11727 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
11728 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
11729 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
11730
11731 2009-06-24 DJ Delorie <dj@redhat.com>
11732
11733 * mep-ext-cop.cpu: Fix copyright notice.
11734 * mep-default: Fix copyright notice.
11735 * mep-core: Fix copyright notice.
11736 * mep: Fix copyright notice.
11737 * mep-ivc2: Fix copyright notice.
11738 * mep-c5: Fix copyright notice.
11739
11740 2009-06-24 Denis Chertykov <chertykov@gmail.com>
11741
11742 * doc/contrib.texi (Contributors):
11743
11744 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
11745
11746 PR middle-end/40501
11747 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
11748 src and dst operands if necessary.
11749
11750 2009-06-23 DJ Delorie <dj@redhat.com>
11751
11752 Add MeP port.
11753 * config.gcc: Add mep support.
11754 * recog.c: Resurrect validate_replace_rtx_subexp().
11755 * recog.h: Likewise.
11756 * config/mep/: Add new port:
11757 * config/mep/constraints.md: New file.
11758 * config/mep/default.h: New file.
11759 * config/mep/intrinsics.h: New file.
11760 * config/mep/intrinsics.md: New file.
11761 * config/mep/ivc2-template.h: New file.
11762 * config/mep/mep-c5.cpu: New file.
11763 * config/mep/mep-core.cpu: New file.
11764 * config/mep/mep-default.cpu: New file.
11765 * config/mep/mep-ext-cop.cpu: New file.
11766 * config/mep/mep-intrin.h: New file.
11767 * config/mep/mep-ivc2.cpu: New file.
11768 * config/mep/mep-lib1.asm: New file.
11769 * config/mep/mep-lib2.c: New file.
11770 * config/mep/mep-pragma.c: New file.
11771 * config/mep/mep-protos.h: New file.
11772 * config/mep/mep-tramp.c: New file.
11773 * config/mep/mep.c: New file.
11774 * config/mep/mep.cpu: New file.
11775 * config/mep/mep.h: New file.
11776 * config/mep/mep.md: New file.
11777 * config/mep/mep.opt: New file.
11778 * config/mep/predicates.md: New file.
11779 * config/mep/t-mep: New file.
11780
11781 2009-06-23 Ian Lance Taylor <iant@google.com>
11782
11783 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
11784 from loose_warn into c_loose_warn and from strict_warn into
11785 c_strict_warn. Set and substitute warn_cxxflags. Check for
11786 --enable-build-with-cxx. Set and substitute
11787 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
11788 * Makefile.in (CXXFLAGS): New variable.
11789 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
11790 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
11791 the default is the same as $(STRICT_WARN).
11792 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
11793 (CXX): New variable.
11794 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
11795 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
11796 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
11797 (HOST_LIBS): New variable.
11798 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
11799 (ALL_CXXFLAGS): New variable.
11800 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
11801 * doc/install.texi (Configuration): Document
11802 --enable-build-with-cxx, --with-stage1-ldflags,
11803 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
11804 * configure: Rebuild.
11805
11806 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11807
11808 * config/arm/arm.c (arm_override_options): Fix braces and formatting
11809 from previous commit.
11810
11811 2009-06-23 Ian Lance Taylor <iant@google.com>
11812
11813 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
11814
11815 2009-06-23 Ian Lance Taylor <iant@google.com>
11816
11817 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
11818 with ATTRIBUTE_UNUSED.
11819
11820 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11821 Pat Haugen <pthaugen@us.ibm.com>
11822 Revital Eres <eres@il.ibm.com>
11823
11824 * config.in (HAVE_AS_POPCNTD): Add default definition.
11825 (HAVE_AS_LWSYNC): Ditto.
11826
11827 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
11828 release number.
11829 (gcc_cv_as_powerpc_cmpb): Ditto.
11830 (gcc_cv_as_powerpc_dfp): Ditto.
11831 (gcc_cv_as_powerpc_vsx): Ditto.
11832 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
11833 supporting the popcntd/lwsync instructions.
11834 (gcc_cv_as_powerpc_lwsync): Ditto.
11835 * configure: Regenerate.
11836
11837 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
11838 -mcpu=native and -mcpu=power7.
11839 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11840
11841 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
11842 a variable instead of a mask to reduce the number of mask bits.
11843 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
11844 (-mbit-word): Ditto.
11845 (-mregnames): Ditto.
11846 * config/rs6000/rs6000.opt (-mupdate): Ditto.
11847 (-mfused-madd): Ditto.
11848
11849 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
11850 2.06 instructions.
11851 (-mvsx): New switch for VSX instructions.
11852 (-misel): Move from a variable to a mask to allow it to be set by
11853 -mcpu=.
11854
11855 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
11856 function declaration to an array declaration.
11857 (rs6000_hard_regno_nregs): New external array declaration.
11858
11859 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
11860 files included by rs6000.md.
11861
11862 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11863 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
11864
11865 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
11866 a target mask.
11867 (rs6000_debug_reg): New -mdebug= variables.
11868 (rs6000_debug_addr): Ditto.
11869 (rs6000_debug_cost): Ditto.
11870 (rs6000_pmode): New variable to hold Pmode.
11871 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
11872 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
11873 calculated at compiler start.
11874 (rs6000_hard_regno_nregs): Change function to an array which holds
11875 HARD_REGNO_NREGS calculated at compiler start.
11876 (rs6000_explicit_options): Delete isel field.
11877 (rs6000_vector_unit): New array to hold which vector unit
11878 supports arithmetic options for a given type.
11879 (rs6000_vector_mem): New array to hold which vector unit supports
11880 memory reference operations for a given type.
11881 (rs6000_vector_align): New array to given the alignment of each
11882 vector type.
11883 (power7_cost): New basic costs for power7.
11884 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
11885 (rs6000_hard_regno_nregs_internal): New function, moved from
11886 HARD_REGNO_NREGS, to calculate the number of registers each hard
11887 register takes for each type.
11888 (rs6000_debug_reg_print): New function for -mdebug=reg support.
11889 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
11890 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
11891 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
11892 unit information here so it is calculated once at compiler startup
11893 time.
11894 (rs6000_override_options): Make -misel a target mask. Add more
11895 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
11896 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
11897 -mdebug=cost.
11898 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
11899 (rs6000_handle_option): Move -misel from variable to target mask.
11900 (rs6000_builtin_mask_for_load): Add VSX support.
11901 (rs6000_conditional_register_usage): Ditto.
11902 (USE_ALTIVEC_FOR_ARG_P): Ditto.
11903 (function_arg_boundary): Ditto.
11904 (rs6000_expand_builtin): Ditto.
11905 (def_builtin): Make abort message a little friendlier.
11906 (rs6000_emit_int_cmove): Add support for 64-bit isel.
11907
11908 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
11909 assembler support the popcntd instruction instead of a vsx
11910 instruction to enable power7 support.
11911 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
11912 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
11913 option to the assembler if -mcpu=native.
11914 (ASM_CPU_NATIVE_SPEC): Ditto.
11915 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
11916 ISA 2.06 features.
11917 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
11918 the lwsync instruction.
11919 (enum processor_type): Add PROCESSOR_POWER7.
11920 (rs6000_debug_reg): New -mdebug= options.
11921 (rs6000_debug_addr): Ditto.
11922 (rs6000_debug_cost): Ditto.
11923 (rs6000_isel): Delete.
11924 (enum rs6000_vector): New enum to say what vector unit we have.
11925 (VECTOR_UNIT_*): New macros to say which vector unit has
11926 arithmetic operations for a given type.
11927 (VECTOR_MEM_*): New macros to say which vector unit has memory
11928 operations for a given type.
11929 (TARGET_LDBRX): Whether the machine supports the ldbrx
11930 instruction.
11931 (TARGET_ISEL): Delete, -misel moved to be a mask.
11932 (TARGET_ISEL64): New macro for 64-bit isel support.
11933 (UNITS_PER_VSX_WORD): New macro.
11934 (POINTER_SIZE): Move to be an external variable, rather than
11935 calculating whether we are generating 32 ot 64-bit code.
11936 (Pmode): Ditto.
11937 (STACK_BOUNDARY): Add VSX support.
11938 (LOCAL_ALIGNMENT): Ditto.
11939 (SLOW_UNALIGNED_ACCESS): Ditto.
11940 (VSX_REGNO_P): New macro for VSX support.
11941 (VFLOAT_REGNO_P): Ditto.
11942 (VINT_REGNO_P): Ditto.
11943 (VLOGICAL_REGNO_P): Ditto.
11944 (VSX_VECTOR_MODE): Ditto.
11945 (VSX_SCALAR_MODE): Ditto.
11946 (VSX_MODE): Ditto.
11947 (VSX_MOVE_MODE): Ditto.
11948 (VSX_REG_CLASS_P): Ditto.
11949 (HARD_REGNO_NREGS): Instead of calling a function, use an array
11950 lookup.
11951 (UNITS_PER_SIMD_WORD): Add VSX support.
11952 (MODES_TIEABLE_P): Ditto.
11953 (STARTING_FRAME_OFFSET): Ditto.
11954 (STACK_DYNAMIC_OFFSET): Ditto.
11955 (EPILOGUE_USES): Ditto.
11956 (REGNO_REG_CLASS): Move to array lookup.
11957 (CLASS_MAX_NREGS): Ditto.
11958 (rs6000_vector_reg_class): Add declaration.
11959 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
11960 overlap with the floating point and Altivec registers.
11961
11962 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
11963
11964 * config/rs6000/driver-rs6000.c (asm_names): New static array to
11965 give the appropriate asm switches if -mcpu=native.
11966 (host_detect_local_cpu): Add support for "asm".
11967 (host_detect_local_cpu): Follow GNU code guidelines for name.
11968
11969 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
11970 -mbit-word to a variable instead of being a target mask.
11971
11972 * config/rs6000/sync.md (lwsync): If the assembler supports it,
11973 emit the lwsync instruction instead of emitting the instruction as
11974 an integer constant.
11975
11976 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
11977 fixuns_trundfsi2, move expander into rs6000.md.
11978
11979 * config/rs6000/rs6000.md (cpu): Add power7.
11980 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
11981 (logical predicate patterns): Change the single instruction
11982 primitives that set CR0 to be fast_compare instead of compare.
11983 (norsi*): Ditto.
11984 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
11985 (popcntddi2): Ditto.
11986 (popcount<mode>): Ditto.
11987 (floating multiply/add insns): Name the floating point
11988 multiply/add insns.
11989 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
11990 (isel_unsigned_<mode>): Ditto.
11991 (fixuns_trundfsi2): Move expander here from spe.md.
11992 (smindi3): Define if we have -misel on 64-bit systems.
11993 (smaxdi3): Ditto.
11994 (umindi3): Ditto.
11995 (umaxdi3): Ditto.
11996
11997 2009-06-23 Anatoly Sokolov <aesok@post.ru>
11998
11999 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12000 extra_objs.
12001 * config/avr/avr.c (avr_current_device): New variable.
12002 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12003 (avr_arch, mcu_type_s): Move to avr.h.
12004 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12005 default_data_section_start fields.
12006 (avr_arch): Moved from avr.c.
12007 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12008 library_name fields.
12009 (avr_current_device, avr_mcu_types, avr_arch_types,
12010 avr_device_to_arch, avr_device_to_data_start,
12011 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12012 (EXTRA_SPEC_FUNCTIONS): Define.
12013 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12014 options mapping. Use device_to_arch and device_to_data_start insted.
12015 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12016 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12017 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12018 * config/avr/driver-avr.c: New file.
12019 * config/avr/avr-devices.c: New file.
12020
12021 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12022
12023 * var-tracking.c (unshare_variable): Force initialized to
12024 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12025 (set_variable_part): Likewise.
12026 (struct variable_union_info): Remove pos_src field.
12027 (vui_vec, vui_allocated): New variables.
12028 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12029 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12030 == 1 use a simpler sorting algorithm. Compute pos field right
12031 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12032 Avoid quadratic comparison if !flag_var_tracking_uninit.
12033 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12034 unshare_variable unconditionally.
12035 (dataflow_set_different_2): Removed.
12036 (dataflow_set_different): Don't traverse second hash table.
12037 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12038 unconditionally to var_reg_set or var_mem_set.
12039 (emit_notes_in_bb): Likewise.
12040 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12041 unshare_variable.
12042 (emit_note_insn_var_location): Don't set initialized to
12043 VAR_INIT_STATUS_INITIALIZED early.
12044 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12045 vui_allocated.
12046 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12047
12048 * tree-object-size.c (addr_object_size): Instead of checking
12049 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12050 are no FIELD_DECLs following it.
12051
12052 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12053
12054 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12055 order to match bswaps with signed source operands.
12056
12057 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12058
12059 * sdbout.c (sdbout_one_type): Fix braces in switch.
12060
12061 2009-06-23 Richard Guenther <rguenther@suse.de>
12062
12063 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12064 member.
12065 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12066 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12067 var_callused, callused_tree, var_storedanything, storedanything_tree,
12068 var_integer, integer_tree): Remove global variables.
12069 (new_var_info): Do not pass new id, append the new var to the
12070 global variable vector.
12071 (do_ds_constraint): Use is_global_var member of the variable-info.
12072 (new_scalar_tmp_constraint_exp): Adjust.
12073 (create_function_info_for): Likewise.
12074 (create_variable_info_for): Likewise.
12075 (find_what_var_points_to): Remove dead code.
12076 (init_base_vars): Simplify.
12077 (compute_points_to_sets): Adjust.
12078
12079 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12080
12081 * combine.c (try_combine): Dump information about the insns we're
12082 combining.
12083
12084 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12085
12086 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12087 check when calling force_to_mode on TRUNCATE's operand.
12088
12089 2009-06-22 Ian Lance Taylor <iant@google.com>
12090
12091 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12092
12093 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12094
12095 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12096
12097 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12098
12099 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12100 override library linkage flags such as -static-libgcc or
12101 -shared-libgcc.
12102
12103 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12104
12105 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12106
12107 2009-06-22 Ian Lance Taylor <iant@google.com>
12108
12109 * config/linux.opt: Put mglibc ahead of muclibc.
12110
12111 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12112 for duplicate decls.
12113
12114 2009-06-22 Matthias Klose <doko@ubuntu.com>
12115
12116 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12117
12118 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12119
12120 PR objc/28050
12121 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12122 instead of NULL if a parser error occurs.
12123
12124 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12125
12126 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12127 non-DWARF2_DEBUGGING_INFO version.
12128
12129 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12130
12131 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12132 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12133
12134 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12135 (LIBGCC2_TF_CEXT): Define.
12136 (TF_SIZE): Define.
12137
12138 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12139
12140 PR target/40463
12141 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12142
12143 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12144
12145 * config/arm/arm.c (arm_override_options): Disable
12146 -mcaller-super-interworking and -mcallee-super-interworking.
12147 * doc/invoke.texi (ARM Options): Document this.
12148
12149 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12150
12151 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12152 * config/arm/constraints.md (j): New constraint for movw operands.
12153 (N): Remove thumb2 meaning.
12154 * config/arm/arm.md (*arm_movw): Delete.
12155 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12156 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12157 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12158
12159 2009-06-22 Martin Jambor <mjambor@suse.cz>
12160
12161 PR tree-optimization/40492
12162 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12163 build_ref_for_offset.
12164
12165 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12166
12167 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12168 JUMP_TABLE_DATA_P predicates where applicable.
12169 * auto-inc-dec.c: Ditto.
12170 * builtins.c: Ditto.
12171 * caller-save.c: Ditto.
12172 * calls.c: Ditto.
12173 * cfgcleanup.c: Ditto.
12174 * cfglayout.c: Ditto.
12175 * cfgrtl.c: Ditto.
12176 * combine.c: Ditto.
12177 * combine-stack-adj.c: Ditto.
12178 * cse.c: Ditto.
12179 * cselib.c: Ditto.
12180 * dbxout.c: Ditto.
12181 * df-scan.c: Ditto.
12182 * dse.c: Ditto.
12183 * dwarf2asm.c: Ditto.
12184 * dwarf2out.c: Ditto.
12185 * emit-rtl.c: Ditto.
12186 * except.c: Ditto.
12187 * explow.c: Ditto.
12188 * expmed.c: Ditto.
12189 * expr.c: Ditto.
12190 * final.c: Ditto.
12191 * function.c: Ditto.
12192 * fwprop.c: Ditto.
12193 * gcse.c: Ditto.
12194 * genpreds.c: Ditto.
12195 * genrecog.c: Ditto.
12196 * ifcvt.c: Ditto.
12197 * ira-costs.c: Ditto.
12198 * ira-lives.c: Ditto.
12199 * jump.c: Ditto.
12200 * loop-iv.c: Ditto.
12201 * lower-subreg.c: Ditto.
12202 * modulo-sched.c: Ditto.
12203 * optabs.c: Ditto.
12204 * postreload.c: Ditto.
12205 * print-rtl.c: Ditto.
12206 * recog.c: Ditto.
12207 * reginfo.c: Ditto.
12208 * regmove.c: Ditto.
12209 * reload1.c: Ditto.
12210 * reload.c: Ditto.
12211 * reorg.c: Ditto.
12212 * rtlanal.c: Ditto.
12213 * rtl.c: Ditto.
12214 * sched-vis.c: Ditto.
12215 * sdbout.c: Ditto.
12216 * sel-sched-ir.c: Ditto.
12217 * simplify-rtx.c: Ditto.
12218 * targhooks.c: Ditto.
12219 * var-tracking.c: Ditto.
12220 * vmsdbgout.c: Ditto.
12221
12222 2009-06-22 Matthias Klose <doko@ubuntu.com>
12223
12224 * Makefile.in (install-plugin): Always use DESTDIR.
12225
12226 2009-06-22 Olivier Hainque <hainque@adacore.com>
12227
12228 * config/pa/pa.c (output_call): Don't optimize post call jumps
12229 into return address adjustments if the call may throw.
12230
12231 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12232
12233 * arm.c (thumb1_output_casesi): New function.
12234 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12235 optimizing for size or PIC.
12236 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12237 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12238 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12239 (thumb1_casesi_internal_pic): New expand rule.
12240 (thumb1_casesi_dispatch): New pattern.
12241 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12242 thumb-1 mode.
12243 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12244 in the text seciton when PIC or optimizing for size.
12245 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12246 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12247 preservation properties of code.
12248 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12249 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12250 (__gnu_thumb1_case_si): New function.
12251 * t-arm (LIB1ASMSRC): Define here.
12252 (LIB1ASMFUNCS): Add some common functions.
12253 * t-arm-elf (LIB1ASMSRC): Delete.
12254 (LIB1ASMFUNCS): Append to existing set.
12255 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12256 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12257 * t-symbian (LIB1ASMFUNCS): Likewise.
12258 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12259 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12260
12261 2009-06-21 Richard Guenther <rguenther@suse.de>
12262
12263 PR tree-optimization/38729
12264 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12265 to loops with a single exit if -fno-expensive-optimizations.
12266
12267 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12268
12269 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12270 (dataflow_set): Change vars type from htab_t to shared_hash.
12271 (shared_hash_pool, empty_shared_hash): New variables.
12272 (vars_clear): Removed.
12273 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12274 shared_hash_find_slot_unshare, shared_hash_find_slot,
12275 shared_hash_find_slot_noinsert, shared_hash_find): New
12276 static inlines.
12277 (shared_hash_unshare, shared_hash_destroy): New functions.
12278 (unshare_variable): Unshare set->vars if shared, use
12279 shared_hash_htab.
12280 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12281 (get_init_value, find_src_set_src, dump_dataflow_set,
12282 clobber_variable_part, emit_notes_for_differences): Use
12283 shared_hash_htab.
12284 (dataflow_set_init): Remove second argument, set vars to
12285 empty_shared_hash instead of creating a new htab.
12286 (dataflow_set_clear): Call shared_hash_destroy and set vars
12287 to empty_shared_hash instead of calling vars_clear.
12288 (dataflow_set_copy): Don't call vars_copy, instead just share
12289 the src htab with dst.
12290 (variable_union): Use shared_hash_*, use initially NO_INSERT
12291 lookup if set->vars is shared. Don't keep slot cleared before
12292 calling unshare_variable. Unshare set->vars if needed.
12293 Even ->refcount == 1 vars must be unshared if set->vars is shared
12294 and var needs to be modified.
12295 (variable_canonicalize): New function.
12296 (dataflow_set_union): If dst->vars is empty, just share src->vars
12297 with dst->vars and traverse with variable_canonicalize to canonicalize
12298 and unshare what is needed.
12299 (dataflow_set_different): If old_set and new_set use the same shared
12300 htab, they aren't different. If number of htab elements is different,
12301 htabs are different. Use shared_hash_*.
12302 (dataflow_set_destroy): Call shared_hash_destroy instead of
12303 htab_delete.
12304 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12305 second argument to dataflow_set_init.
12306 (vt_initialize): Likewise. Initialize shared_hash_pool and
12307 empty_shared_hash, move bb in/out initialization afterwards.
12308 Use variable_htab_free instead of NULL as changed_variables del hook.
12309 (variable_was_changed): Change type of second argument to pointer to
12310 dataflow_set. When inserting var into changed_variables, bump
12311 refcount. Unshare set->vars if set is shared htab and slot needs to
12312 be cleared.
12313 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12314 lookup if set->vars is shared. Unshare set->vars if needed.
12315 Even ->refcount == 1 vars must be unshared if set->vars is shared
12316 and var needs to be modified. Adjust variable_was_changed caller.
12317 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12318 vars must be unshared if set->vars is shared and var needs to be
12319 modified. Adjust variable_was_changed caller.
12320 (emit_note_insn_var_location): Don't pool_free var.
12321 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12322 instead of 1.
12323 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12324 free_alloc_pool on shared_hash_pool.
12325
12326 2009-06-20 Anthony Green <green@moxielogic.com>
12327
12328 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12329 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12330
12331 2009-06-20 Richard Guenther <rguenther@suse.de>
12332
12333 * tree-ssa-structalias.c (find_func_aliases): For memset use
12334 a constraint from NULL if we memset to zero.
12335 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12336 we explicitly handle that do not read from memory.
12337 (call_may_clobber_ref_p_1): Properly handle builtins that may
12338 set errno.
12339
12340 2009-06-20 Richard Guenther <rguenther@suse.de>
12341
12342 PR tree-optimization/40495
12343 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12344 (new_scalar_tmp_constraint_exp): New function.
12345 (process_constraint): Do not create temporary decls.
12346 (process_all_all_constraints): Likewise.
12347 (handle_const_call): Likewise.
12348 (create_function_info_for): Do not set decl.
12349
12350 2009-06-19 Ian Lance Taylor <iant@google.com>
12351
12352 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12353 (rs6000_attribute_table): Make static; move before use.
12354
12355 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12356
12357 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12358 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12359 Propagate the TREE_READONLY flag without overwriting it.
12360 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12361 Propagate the TREE_READONLY flag onto the result.
12362 (process_call_operands): Move around. Use correct constant value.
12363
12364 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12365
12366 PR target/40482
12367 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12368 * config/arm/arm.md: Likewise.
12369
12370 2009-06-19 Ian Lance Taylor <iant@google.com>
12371
12372 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12373 to GIMPLE_ERROR_MARK.
12374
12375 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12376 op2_original_type parameters. Warn about using different enum types.
12377 * c-parser.c (c_parser_conditional_expression): Pass original
12378 types to build_conditional_expr.
12379 * c-tree.h (build_conditional_expr): Update declaration.
12380
12381 2009-06-19 Ian Lance Taylor <iant@google.com>
12382
12383 * config/i386/i386.c (ix86_function_specific_save): Test that
12384 fields match values, rather than testing the values are in a
12385 certain range.
12386
12387 2009-06-19 Richard Guenther <rguenther@suse.de>
12388
12389 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12390 ADDR_EXPR pointers.
12391 (ptr_derefs_may_alias_p): Likewise.
12392 (ptr_deref_may_alias_ref_p_1): New function.
12393 (ptr_deref_may_alias_ref_p): Likewise.
12394 (ref_maybe_used_by_call_p_1): Handle builtins that are not
12395 covered by looking at the ESCAPED solution.
12396 (call_may_clobber_ref_p_1): Likewise.
12397 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12398 Handle NULL_TREE offset. Do not produce redundant constraints.
12399 (process_all_all_constraints): New helper function.
12400 (do_structure_copy): Use it.
12401 (handle_lhs_call): Likewise.
12402 (find_func_aliases): Handle some builtins with pointer arguments
12403 and/or return values explicitly.
12404
12405 2009-06-19 Ian Lance Taylor <iant@google.com>
12406
12407 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12408
12409 2009-06-19 Ian Lance Taylor <iant@google.com>
12410
12411 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12412
12413 2009-06-19 Ian Lance Taylor <iant@google.com>
12414
12415 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12416 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12417 version.
12418
12419 * c-decl.c (finish_decl): If -Wc++-compat, warn about
12420 uninitialized const.
12421
12422 2009-06-19 Ian Lance Taylor <iant@google.com>
12423
12424 * dse.c (struct store_info): Rename bitmap field to bmap. Change
12425 all uses.
12426
12427 * c-decl.c (in_struct, struct_types): Remove.
12428 (struct c_binding): Add in_struct field.
12429 (c_binding_ptr): Define type, along with VEC.
12430 (struct c_struct_parse_info): Define.
12431 (struct_parse_info): New static variable.
12432 (bind): Initialize in_struct field.
12433 (start_struct): Remove enclosing_in_struct and
12434 enclosing_struct_types parameters. Add
12435 enclosing_struct_parse_info parameter. Change all callers. Set
12436 struct_parse_info rather than in_struct and struct_types.
12437 (grokfield): If -Wc++-compat and there is a symbol binding for the
12438 field name, set the in_struct flag and push it on the
12439 struct_parse_info->fields vector.
12440 (warn_cxx_compat_finish_struct): New static function.
12441 (finish_struct): Remove enclosing_in_struct and
12442 enclosing_struct_types parameters. Add
12443 enclosing_struct_parse_info parameter. Change all callers. Don't
12444 set C_TYPE_DEFINED_IN_STRUCT here. Call
12445 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
12446 parameter. Only push on struct_types if warn_cxx_compat.
12447 (finish_enum): Only push on struct_types if warn_cxx_compat.
12448 (declspecs_add_type): Add loc parameter. Change all callers.
12449 Change all error calls to error_at. Pass loc, not input_location,
12450 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
12451 defined in a struct. If -Wc++-compat and parsing a struct, record
12452 that a typedef name was used.
12453 * c-parser.c (c_parser_declspecs): Get location to pass to
12454 declspecs_add_type.
12455 (c_parser_struct_or_union_specifier): Update calls to start_struct
12456 and finish_struct.
12457 * c-tree.h (struct c_struct_parse_info): Declare.
12458 (finish_struct, start_struct): Update declarations.
12459 (declspecs_add_type): Update declaration.
12460
12461 2009-06-19 Ian Lance Taylor <iant@google.com>
12462
12463 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12464 variable with an anonymous type.
12465
12466 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12467
12468 * see.c: Remove for real.
12469
12470 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12471
12472 * optabs.h (enum optab_index): Add new OTI_significand.
12473 (significand_optab): Define corresponding macro.
12474 * optabs.c (init_optabs): Initialize significand_optab.
12475 * genopinit.c (optabs): Implement significand_optab using
12476 significand?f2 patterns.
12477 * builtins.c (expand_builtin_mathfn): Handle
12478 BUILT_IN_SIGNIFICAND{,F,L}.
12479 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12480 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12481
12482 * config/i386/i386.md (significandxf2, significand<mode>2): New
12483 expanders to implement significandf, significand and significandl
12484 built-ins as inline x87 intrinsics.
12485
12486 2009-06-18 Anatoly Sokolov <aesok@post.ru>
12487
12488 * config/avr/avr.c (avr_override_options): Remove setting value of
12489 PARAM_INLINE_CALL_COST.
12490
12491 2009-06-18 Richard Henderson <rth@redhat.com>
12492
12493 PR 40488
12494 * tree-pass.h (TDF_ASMNAME): New.
12495 * tree-dump.c (dump_options): Add asmname.
12496 * doc/invoke.texi: Document it.
12497
12498 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12499 (dump_decl_name): ...here.
12500 (dump_function_name): New flags arg; mind TDF_ASMNAME.
12501 (dump_generic_node): Update dump_function_name calls.
12502 (print_call_name): New flags arg; update all dump calls.
12503 * diagnostic.h (print_call_name): Update.
12504 * gimple-pretty-print.c (dump_gimple_call): Update.
12505
12506 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
12507
12508 PR target/40470
12509 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12510
12511 2009-06-18 Diego Novillo <dnovillo@google.com>
12512
12513 * doc/plugins.texi: Document plugin_is_GPL_compatible.
12514 * plugin.c (str_license): Declare.
12515 (try_init_one_plugin): Assert that the symbol
12516 'plugin_is_GPL_compatible' exists.
12517
12518 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
12519
12520 * see.c: Remove.
12521 * Makefile.in (OBJS-common): Remove see.o.
12522 (see.o): Remove.
12523 * common.opt (fsee): Mark as preserved for backward compatibility.
12524 * opts.c (common_handle_option): Add OPT_fsee to the backward
12525 compatibility section.
12526 * passes.c (init_optimization_passes, pass_see): Remove pass.
12527 * timevar.def (TV_SEE): Remove.
12528 * tree-pass.h (pass_see): Remove declaration.
12529 * doc/invoke.texi (-fsee): Remove documentation.
12530
12531 2009-06-18 Martin Jambor <mjambor@suse.cz>
12532
12533 * tree-sra.c: Include statistics.h
12534 (sra_stats): New variable.
12535 (sra_initialize): Clear sra_stats.
12536 (create_access_replacement): Increment sra_stats.replacements.
12537 (get_access_replacement): Do not return twice.
12538 (analyze_all_variable_accesses): Increment statistics counter by the
12539 number of scalarized aggregates.
12540 (generate_subtree_copies): Increment sra_stats.subtree_copies.
12541 (sra_modify_expr): Increment sra_stats.exprs.
12542 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12543 (sra_modify_assign): Increment sra_stats.exprs,
12544 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12545 (perform_intra_sra): Update statistics counters.
12546 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12547
12548 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
12549
12550 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12551 (arm_scalar_mode_supported_p): New function.
12552
12553 2009-06-18 Paul Brook <paul@codesourcery.com>
12554 Sandra Loosemore <sandra@codesourcery.com>
12555
12556 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12557 (__extendhfsf2, __truncsfhf2): Define.
12558 * config/arm/fp16.c: New file.
12559 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12560 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12561
12562 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
12563
12564 * doc/extend.texi (Half-Precision): New section.
12565 * doc/invoke.texi (Option Summary): List -mfp16-format.
12566 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
12567 * config/arm/arm.opt (mfp16-format=): New.
12568 * config/arm/arm.c: Include intl.h.
12569 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12570 (TARGET_INVALID_RETURN_TYPE): Redefine.
12571 (TARGET_PROMOTED_TYPE): Redefine.
12572 (TARGET_CONVERT_TO_TYPE): Redefine.
12573 (arm_fp16_format): Define.
12574 (all_fpus): Add entry for neon-fp16.
12575 (fp_model_for_fpu): Likewise.
12576 (struct fp16_format): Declare.
12577 (all_fp16_formats): Define.
12578 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12579 functions.
12580 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12581 and no ldrh.
12582 (arm_legitimate_index_p): Treat HFmode like HImode.
12583 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12584 (coproc_secondary_reload_class): Special-case HFmode.
12585 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12586 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12587 (arm_init_fp16_builtins): New.
12588 (arm_init_builtins): Call it.
12589 (arm_invalid_parameter_type): New.
12590 (arm_invalid_return_type): New.
12591 (arm_promoted_type): New.
12592 (arm_convert_to_type).
12593 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
12594 format.
12595 (arm_emit_fp16_const): New function.
12596 (arm_mangle_type): Mangle __fp16 as "Dh".
12597 * config/arm/arm.h (TARGET_VFPD32): Make it know about
12598 FPUTYPE_NEON_FP16.
12599 (TARGET_NEON_FP16): New.
12600 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12601 (enum fputype): Add FPUTYPE_NEON_FP16.
12602 (enum arm_fp16_format_type): Declare.
12603 (arm_fp16_format): Declare.
12604 (LARGEST_EXPONENT_IS_NORMAL): Define.
12605 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12606 * config/arm/arm-modes.def (HFmode): Define.
12607 * config/arm/vfp.md: (*movhf_vfp): New.
12608 (extendhfsf2): New.
12609 (truncsfhf2): New.
12610 * config/arm/arm.md: (fpu): Add neon_fp16.
12611 (floatsihf2, floatdihf2): New.
12612 (fix_trunchfsi2, fix_trunchfdi2): New.
12613 (truncdfhf2): New.
12614 (extendhfdf2): New.
12615 (movhf): New.
12616 (*arm32_movhf): New.
12617 (*thumb1_movhf): New.
12618 (consttable_2): Add check for HFmode constants.
12619 (consttable_4): Handle HFmode constants.
12620
12621 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
12622
12623 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12624
12625 2009-06-17 Olivier Hainque <hainque@adacore.com>
12626
12627 * collect2.c (main): Use CONST_CAST2 to perform char ** to
12628 const char ** conversion in AIX specific section.
12629
12630 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
12631
12632 * config/i386/i386.c (ix86_special_builtin_type): Remove
12633 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
12634 (bdesc_special_args): Updated.
12635 (ix86_init_mmx_sse_builtins): Likewise.
12636 (ix86_expand_special_args_builtin): Likewise.
12637
12638 2009-06-17 Richard Henderson <rth@redhat.com>
12639
12640 * tree-pretty-print.c (maybe_dump_asm_name): New.
12641 (dump_decl_name): Use it.
12642 (PRINT_FUNCTION_NAME): Merge into...
12643 (dump_function_name): ... here. Use maybe_dump_asm_name.
12644
12645 2009-06-17 Cary Coutant <ccoutant@google.com>
12646
12647 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12648 Change caller.
12649 * debug.c (struct gcc_debug_hooks): Change placeholder for
12650 source_line hook.
12651 (debug_nothing_int_charstar_int): Replaced by...
12652 (debug_nothing_int_charstar_int_bool): ...this.
12653 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12654 source_line prototype.
12655 (debug_nothing_int_charstar_int): Replaced by...
12656 (debug_nothing_int_charstar_int_bool): ...this.
12657 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12658 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12659 Output is_stmt operand when necessary.
12660 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12661 (notice_source_line): Add is_stmt parameter.
12662 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12663 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12664 Change callers.
12665 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12666 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12667
12668 2009-06-17 Ian Lance Taylor <iant@google.com>
12669
12670 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
12671 Change all uses.
12672 (struct store_by_pieces_d): Rename from store_by_pieces. Change
12673 call uses.
12674
12675 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
12676
12677 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
12678 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
12679 tree_strip_sign_nop_conversions and
12680 tree_ssa_strip_useless_type_conversions rather than stripping
12681 the operations here.
12682 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
12683 Declare them.
12684 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
12685 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
12686 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
12687 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
12688 functions.
12689
12690 2009-06-17 Michael Eager <eager@eagercon.com>
12691
12692 * config/rs6000/constraints.md (register_constraint "d"): New.
12693 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
12694 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12695 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
12696 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
12697 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12698 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
12699 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
12700 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
12701 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
12702 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
12703 __fctiwz): Same.
12704 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
12705 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
12706 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
12707 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
12708 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
12709 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
12710 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
12711 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
12712 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
12713 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
12714 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
12715 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
12716 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
12717 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
12718
12719 2009-06-16 Ian Lance Taylor <iant@google.com>
12720
12721 * profile.c (total_num_never_executed): Don't define.
12722 (compute_branch_probabilities): Don't count or print
12723 num_never_executed.
12724 (init_branch_prob): Don't set total_num_never_executed.
12725 (end_branch_prob): Don't print total_num_never_executed.
12726
12727 2009-06-17 David Daney <ddaney@caviumnetworks.com>
12728
12729 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
12730
12731 2009-06-17 David Edelsohn <edelsohn@gnu.org>
12732
12733 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
12734 (nabstd2_fpr): Same.
12735
12736 2009-06-17 Steve Ellcey <sje@cup.hp.com>
12737
12738 * expr.c (expand_assignment): Change complex type check.
12739
12740 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
12741
12742 * doc/plugins.texi (Building GCC plugins): Added new section.
12743
12744 2009-06-17 Ian Lance Taylor <iant@google.com>
12745
12746 * c-pch.c (get_ident): Don't set size of templ array.
12747 (pch_init): Don't set size of partial_pch array.
12748
12749 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
12750 string constant to intialize an array whose size is the length of
12751 the string.
12752
12753 2009-06-17 Richard Guenther <rguenther@suse.de>
12754
12755 PR tree-optimization/40389
12756 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
12757 to addressable types.
12758 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
12759
12760 2009-06-17 Richard Guenther <rguenther@suse.de>
12761
12762 PR middle-end/40460
12763 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
12764 if there is no evolution of left in the loop bail out.
12765 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
12766 chrec_fold_multiply.
12767
12768 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
12769 Janis Johnson <janis187@us.ibm.com>
12770
12771 PR target/39254
12772 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
12773 for the symbol ref of a constant that is the source of a move
12774 - nor for any other not-obvious-label-ref constants.
12775
12776 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
12777
12778 * plugin.c (position_pass): Skip newly inserted pass during list
12779 traversal to avoid repeated insertion.
12780
12781 2009-06-16 Ian Lance Taylor <iant@google.com>
12782
12783 * vec.h (VEC_stack_alloc): Define different version if
12784 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
12785 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
12786 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
12787 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12788
12789 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
12790
12791 * config.gcc (extra_headers): Add ia32intrin.h for x86.
12792
12793 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
12794 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
12795 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
12796 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
12797 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
12798 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12799 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12800 (bdesc_special_args): Add __builtin_ia32_rdtsc and
12801 __builtin_ia32_rdtscp.
12802 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
12803 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
12804 and __builtin_ia32_rorhi.
12805 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
12806 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12807 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12808 (ix86_expand_args_builtin): Likewise.
12809 (ix86_expand_special_args_builtin): Likewise.
12810
12811 * config/i386/i386.md (UNSPECV_RDTSCP): New.
12812 (UNSPECV_RDTSC): Likewise.
12813 (UNSPECV_RDPMC): Likewise.
12814 (*bsr): Renamed to ...
12815 (bsr): This
12816 (*bsr_rex64): Renamed to ...
12817 (bsr_rex64): This.
12818 (rdpmc): New.
12819 (*rdpmc): Likewise.
12820 (*rdpmc_rex64): Likewise.
12821 (rdtsc): Likewise.
12822 (*rdtsc): Likewise.
12823 (*rdtsc_rex64): Likewise.
12824 (rdtscp): Likewise.
12825 (*rdtscp): Likewise.
12826 (*rdtscp_rex64): Likewise.
12827
12828 * config/i386/ia32intrin.h: New.
12829
12830 * config/i386/x86intrin.h: Include <ia32intrin.h>.
12831
12832 2009-06-16 Ian Lance Taylor <iant@google.com>
12833
12834 * ira-build.c (copy_info_to_removed_store_destinations):
12835 Initialize parent_a.
12836
12837 2009-06-16 Ian Lance Taylor <iant@google.com>
12838
12839 * c-decl.c (grokdeclarator): Change size_varies to bool.
12840
12841 2009-06-16 Ian Lance Taylor <iant@google.com>
12842
12843 * sel-sched.c: Make forward declarations of move_op_hooks and
12844 fur_hooks explicitly extern.
12845
12846 2009-06-16 Ian Lance Taylor <iant@google.com>
12847
12848 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
12849 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
12850
12851 2009-06-16 Ian Lance Taylor <iant@google.com>
12852
12853 * resource.c (mark_referenced_resources): Change
12854 include_delayed_effects parameter to bool. Change all callers.
12855 (mark_end_of_function_resources): Likewise.
12856 * reorg.c (insn_references_resource_p): Likewise.
12857 (insn_sets_resource_p): Likewise.
12858 * resource.h (mark_referenced_resources): Update declaration.
12859 (mark_end_of_function_resources): Update declaration.
12860
12861 2009-06-16 David Edelsohn <edelsohn@gnu.org>
12862
12863 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
12864
12865 2009-06-16 David Edelsohn <edelsohn@gnu.org>
12866
12867 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
12868 GCC can bootstrap on AIX with GNU Binutils 2.20.
12869
12870 2009-06-16 Ian Lance Taylor <iant@google.com>
12871
12872 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
12873
12874 2009-06-16 Ian Lance Taylor <iant@google.com>
12875
12876 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
12877 inline, not extern inline.
12878 (exact_log2): Likewise.
12879 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
12880 test CLZ_HWI.
12881 (exact_log2): Likewise, but don't test CTZ_HWI.
12882
12883 2009-06-16 Ian Lance Taylor <iant@google.com>
12884
12885 * bitmap.c (bitmap_clear): Don't declare as inline.
12886 * gimple.c (gimplify_assign): Likewise.
12887 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12888 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
12889 (sched_scan_info): Remove duplicate definition.
12890
12891 2009-06-16 Ian Lance Taylor <iant@google.com>
12892
12893 * c-common.c (skip_evaluation): Don't define.
12894 (c_inhibit_evaluation_warnings): Define global variable.
12895 (overflow_warning): Check c_inhibit_evaluation_warnings rather
12896 than skip_evaluation.
12897 (convert_and_check, warn_for_div_by_zero): Likewise.
12898 * c-common.h (skip_evaluation): Don't declare.
12899 (c_inhibit_evaluation_warnings): Declare.
12900 * c-parser.c (c_parser_typeof_specifier): Set
12901 c_inhibit_evaluation_warnings rather than skip_evaluation.
12902 (c_parser_conditional_expression): Likewise.
12903 (c_parser_binary_expression): Likewise.
12904 (c_parser_sizeof_expression): Likewise.
12905 (c_parser_alignof_expression): Likewise.
12906 * c-typeck.c (build_indirect_ref): Check
12907 c_inhibit_evaluation_warnings rather than skip_evaluation.
12908 (build_conditional_expr, build_binary_op): Likewise.
12909
12910 2009-06-16 Richard Guenther <rguenther@suse.de>
12911
12912 * tree-ssa-alias.c (is_escape_site): Remove.
12913 * tree-ssa-alias.h (enum escape_type): Remove.
12914 (is_escape_site): Likewise.
12915 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
12916 via casts and asms without deferring to is_escape_site.
12917
12918 2009-06-16 Jakub Jelinek <jakub@redhat.com>
12919
12920 PR middle-end/40446
12921 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
12922 use gen_lowpart if op0 has complex mode.
12923
12924 2009-06-16 Richard Guenther <rguenther@suse.de>
12925
12926 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
12927 variables add them to ESCAPED.
12928 (find_func_aliases): Do not make all indirectly stored values escaped.
12929
12930 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
12931
12932 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
12933 make_decl_one_only.
12934
12935 2009-06-16 Martin Jambor <mjambor@suse.cz>
12936
12937 PR tree-optimization/40432
12938 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
12939 check whether we need to force gimple register operand.
12940
12941 2009-06-16 Martin Jambor <mjambor@suse.cz>
12942
12943 PR tree-optimization/40413
12944 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
12945 build_ref_for_offset.
12946 (propagate_subacesses_accross_link): Fix a typo in a comment.
12947
12948 2009-06-16 Ira Rosen <irar@il.ibm.com>
12949
12950 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12951 with additional parameter.
12952 * tree-vectorizer.h (enum vect_def_type): Add new value
12953 vect_nested_cycle.
12954 (enum vect_relevant): Add comments.
12955 (vect_is_simple_reduction): Add new argument.
12956 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
12957 Detect nested cycles.
12958 (vect_is_simple_reduction): Update documentation, add an argument to
12959 distinguish inner-loop reduction from nested cycle, detect nested
12960 cycles, fix printings and indentation, don't swap operands in case
12961 of nested cycle.
12962 (get_initial_def_for_reduction): Handle subtraction.
12963 (vect_create_epilog_for_reduction): Add new argument to specify
12964 reduction variable.
12965 (vect_finalize_reduction): Handle subtraction, fix comments.
12966 (vectorizable_reduction): Handle nested cycles. In case of nested
12967 cycle keep track of the reduction variable position. Call
12968 vect_is_simple_reduction with additional parameter. Use original
12969 statement code in reduction epilogue for nested cycle. Call
12970 vect_create_epilog_for_reduction with additional parameter.
12971 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
12972 inner-loop vectorization.
12973 (vect_recog_widen_sum_pattern): Likewise.
12974 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
12975 and reductions.
12976 (vect_mark_stmts_to_be_vectorized): Likewise.
12977 (vect_get_vec_def_for_operand): Handle nested cycles.
12978
12979 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12980
12981 * doc/invoke.texi (Debugging Options): Fix option index entries
12982 for -fdump-statistics, -frandom-seed add entries for
12983 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
12984 (FRV Options): Fix entries for -mTLS, -mtls.
12985 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
12986 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
12987 (M68hc1x Options): Fix @itemx for -mnominmax.
12988 (MCore Options): Fix entry for -mno-lsim.
12989 (MMIX Options): Fix entry for -mabi=mmixware.
12990 (PDP-11 Options): Fix entry for -mbcopy-builtin.
12991
12992 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
12993
12994 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
12995 Mention the plugin mode of gengtype.
12996 * doc/gty.texi (Source Files Containing Type Information): Likewise.
12997 * gengtype.c: Updated copyright.
12998 (plugin_files, nb_plugin_files) Added new static variables.
12999 (measure_input_list) Care about plugin_files.
13000 (write_rtx_next): Added early return in plugin mode.
13001 (create_file): Updated copyright year in generated file. Added
13002 asserts.
13003 (oprintf): Added early return if NULL outf.
13004 (get_output_file_with_visibility): Care of plugin_files.
13005 (get_output_file_name): May return null.
13006 (write_local): Added early return.
13007 (put_mangled_filename): Ditto.
13008 (finish_root_table): Added check for base_files.
13009 (write_roots): Care about null when plugins.
13010 (main): Added plugin mode.
13011
13012 2009-06-15 Ian Lance Taylor <iant@google.com>
13013
13014 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13015 * gcov.c (read_count_file): Add braces around variables declared
13016 before label.
13017
13018 * c.opt (Wjump-misses-init): New warning.
13019 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13020 -Wall and -Wc++-compat if not already set.
13021 (c_common_post_options): Clear warn_jump_misses_init if it was not
13022 set.
13023 * c-decl.c (struct c_binding): Change type field to a union with
13024 new label field. Make it the first field in the struct. Update
13025 references to type to use u.type instead.
13026 (struct c_spot_bindings): Define.
13027 (struct c_goto_bindings): Define.
13028 (c_goto_bindings_p): Define, along with VECs.
13029 (struct c_label_vars): Define.
13030 (struct c_scope): Add has_label_bindings field.
13031 (bind_label, set_spot_bindings): New static functions.
13032 (decl_jump_unsafe, update_spot_bindings): New static functions.
13033 (update_label_decls): New static function.
13034 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13035 Update binding u.label field to shadowed field.
13036 (c_binding_start_stmt_expr): New function.
13037 (c_binding_end_stmt_expr): New function.
13038 (pushdecl): Don't call c_begin_vm_scope.
13039 (make_label): Add defining and p_label_vars parameters. Change
13040 all callers.
13041 (lookup_label): Correct test for whether a label has not yet been
13042 defined. Call bind_label rather than bind.
13043 (warn_about_goto): New static function.
13044 (lookup_label_for_goto): New function.
13045 (declare_label): Call bind_label rather than bind.
13046 (check_earlier_gotos): New static function.
13047 (define_label): Don't give errors about jumping into statement
13048 expressions or scopes of variably modified types. Call
13049 set_spot_bindings and check_earlier_gotos. Call bind_label
13050 instead of bind. Don't set label_context_stack_se or
13051 label_context_stack_vm.
13052 (c_get_switch_bindings): New function.
13053 (c_release_switch_bindings): New function.
13054 (c_check_switch_jump_warnings): New function.
13055 (start_function): Don't set label_context_stack_se or
13056 label_context_stack_vm.
13057 (finish_function): Likewise.
13058 * c-typeck.c (label_context_stack_se): Don't define.
13059 (label_context_stack_vm): Don't define.
13060 (c_finish_goto_label): Call lookup_label_for_goto rather than
13061 lookup_label. Don't give errors about jumping into a statement
13062 expression or the scope of a variably modified type. Don't set
13063 label_context_stack_se or label_context_stack_vm.
13064 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13065 fields. Add bindings field.
13066 (c_start_case): Don't set deleted fields. Set bindings field.
13067 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13068 or blocked_vm. Call c_check_switch_jump_warnings.
13069 (c_finish_case): Don't test blocked_stmt_expr field. Call
13070 c_release_switch_bindings.
13071 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13072 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13073 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13074 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13075 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13076 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13077 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13078 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13079 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13080 (C_DECL_UNJUMPABLE_VM): Don't define.
13081 (C_DECL_UNDEFINABLE_VM): Don't define.
13082 (struct c_label_list): Don't define.
13083 (struct c_label_context_se): Don't define.
13084 (struct c_label_context_vm): Don't define.
13085 (struct c_spot_bindings): Declare.
13086 (c_bindings_start_stmt_expr): Declare.
13087 (c_bindings_end_stmt_expr): Declare.
13088 (lookup_label_for_goto): Declare.
13089 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13090 (c_check_switch_jump_warnings): Declare.
13091 (label_context_stack_se, label_context_stack_vm): Don't declare.
13092 (c_finish_goto_label): Update declaration.
13093 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13094 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13095 (Warning Options): Document -Wjump-misses-init.
13096
13097 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13098
13099 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13100 change.
13101
13102 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13103
13104 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13105
13106 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13107
13108 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13109
13110 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13111
13112 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13113
13114 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13115
13116 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13117 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13118 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13119 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13120 * dwarf2asm.c (dw2_force_const_mem): Update call to
13121 make_decl_one_only.
13122 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13123 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13124 * langhooks.c (lhd_comdat_group): Remove.
13125 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13126 * tree.h (DECL_COMDAT_GROUP): New.
13127 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13128 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13129 (make_decl_one_only): Change signature.
13130 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13131 make_decl_one_only.
13132 (make_decl_one_only): Change signature.
13133 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13134
13135 2009-06-15 Richard Guenther <rguenther@suse.de>
13136
13137 PR middle-end/40439
13138 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13139
13140 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13141
13142 * tree-ssa-math-opts.c: Remove extra divide.
13143
13144 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13145
13146 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13147
13148 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13149
13150 * passes.c: Add bswap pass.
13151 * tree-pass.h: Add pass_optimize_bswap declaration.
13152 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13153 Include rtl.h, expr.h and optabs.h for optab_handler check.
13154 (struct symbolic_number, pass_optimize_bswap): New definition.
13155 (do_shift_rotate, verify_symbolic_number_p): New functions.
13156 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13157 (gate_optimize_bswap): New function.
13158 * tree.c (widest_int_cst_value): New function.
13159 * tree.h (widest_int_cst_value): Prototype added.
13160
13161 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13162
13163 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13164 REG_EQUAL/REG_EQUIV notes.
13165
13166 2009-06-14 Richard Guenther <rguenther@suse.de>
13167
13168 PR middle-end/40389
13169 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13170 has its address taken if NRV was applied and it is addressable.
13171 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13172 function split out from ...
13173 (get_constraint_for_1): ... here.
13174 (handle_rhs_call): Use it to mark the return slot escaped if
13175 it is addressable and NRV was applied.
13176
13177 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13178
13179 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13180 Change first argument type to location_t.
13181 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13182 Do not set input_location.
13183 Use loc instead of input_location throughout.
13184
13185 2009-06-13 Richard Guenther <rguenther@suse.de>
13186
13187 PR tree-optimization/40421
13188 * tree-predcom.c (should_unroll_loop_p): Remove.
13189 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13190
13191 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13192
13193 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13194 Add location argument.
13195
13196 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13197
13198 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13199 build_decl.
13200 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13201 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13202 * config/spu/spu-protos.h: Add location to
13203 spu_resolve_overloaded_builtin.
13204 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13205 spu_build_builtin_va_list.
13206 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13207 argument. Pass location to build_function_call_vec.
13208 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13209 build_decl.
13210 (emit_fpu_switch): Same.
13211 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13212 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13213 to build_decl and create_artificial_label.
13214 (xtensa_gimplify_va_arg_expr): Same.
13215 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13216 (xstormy16_gimplify_va_arg_expr): Same.
13217 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13218 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13219 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13220 (mips16_build_function_stub): Same.
13221 (mips16_build_call_stub): Same.
13222
13223 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13224
13225 PR target/40327
13226 * arm/constraints.md (Pa, Pb): New constraints.
13227 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13228 split pattern to deal with them.
13229
13230 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13231
13232 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13233 fix index entry for -Xpreprocessor.
13234
13235 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13236
13237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13238 Add location argument to build_decl call.
13239 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13240 (rs6000_init_builtins): Same.
13241 (spe_init_builtins): Same.
13242 (rs6000_gimplify_va_arg): Add location argument to
13243 create_artificial_label call.
13244
13245 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13246
13247 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13248 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13249 * Makefile.in: Fix GGC dependency for gcse.o.
13250
13251 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13252
13253 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13254 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13255 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13256 created.
13257 * c-parser.c (c_parser_binary_expression): Use current column while
13258 building binary operations.
13259 * common.opt (fshow-column): Enable by default.
13260 * tree-vrp.c (check_array_ref): Use warning_at.
13261 (check_array_bounds): Use location from call back if expr has no
13262 location.
13263 * tree.h: Add location argument to maybe_fold_*.
13264 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13265 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13266 (maybe_fold_offset_to_component_ref): Same.
13267 (maybe_fold_offset_to_reference): Same.
13268 (maybe_fold_offset_to_address): Same.
13269 (maybe_fold_stmt_indirect): Same.
13270 (maybe_fold_stmt_addition): Same.
13271 (fold_stmt_r): Pass location to maybe_fold_*.
13272 (fold_gimple_assign): Same.
13273 * c-tree.h: Add location argument to finish_decl,
13274 default_function_array_conversion, store_init_value.
13275 * c-decl.c (define_label): Use error_at.
13276 (c_make_fname_decl): Pass location to finish_decl.
13277 (finish_decl): New location argument.
13278 (build_compound_literal): Pass location to store_init_value.
13279 (grokdeclarator): Pass location to finish_decl.
13280 (grokfield): Same.
13281 * c-typeck.c (array_to_pointer_conversion): New location argument.
13282 (function_to_pointer_conversion): Same.
13283 (default_function_array_conversion): Same.
13284 (parser_build_unary_op): Pass location to overflow_warning.
13285 (parser_build_binary_op): Same. Use warning_at.
13286 (build_unary_op): Pass location to array_to_pointer_conversion.
13287 (build_c_cast): Pass location to digest_init.
13288 (build_modify_expr): New location argument.
13289 (convert_for_assignment): Same.
13290 (store_init_value): Same.
13291 (digest_init): Same.
13292 (output_init_element): Pass location to digest_init and
13293 array_to_pointer_conversion.
13294 (c_finish_return): Pass location to convert_for_assignment.
13295 * gimplify.c (gimplify_conversion): Pass location to
13296 maybe_fold_offset_to_address.
13297 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13298 to maybe_fold_stmt_addition.
13299 * c-omp.c (c_finish_omp_atomic): Pass new location to
13300 build_modify_expr.
13301 (c_finish_omp_for): Same.
13302 * c-common.c (overflow_warning): New argument.
13303 * c-common.h: New argument to build_modify_expr, overflow_warning.
13304 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13305 finish_decl.
13306 (c_parser_initializer): Pass location to
13307 default_function_array_conversion.
13308 (c_parser_initelt): Same.
13309 (c_parser_initval): Same.
13310 (c_parser_asm_operands): Same.
13311 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13312 (c_parser_conditional_expression): Same.
13313 (c_parser_binary_expression): Add location info to stack. Use it.
13314 (c_parser_unary_expression): Pass location to
13315 default_function_array_conversion, parser_build_unary_op,
13316 build_indirect_ref, c_parser_postfix_expression_after_primary.
13317 (c_parser_postfix_expression_after_primary): New location argument.
13318 Use it.
13319 (c_parser_expression_conv): Pass location to
13320 default_function_array_conversion.
13321 (c_parser_expr_list): Same.
13322 (c_parser_omp_atomic): Same.
13323 (c_parser_omp_for_loop): Same.
13324 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13325 (build_array_declarator): New argument.
13326 * c-decl.c (build_array_declarator): Add location argument.
13327 (grokdeclarator): Set id_loc for cdk_array.
13328 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13329 build_array_declarator.
13330 * tree.c (build_omp_clause): Add location argument.
13331 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13332 (OMP_CLAUSE_LOCATION): New macro.
13333 (struct tree_omp_clause): Add location field.
13334 (build_omp_clause): Add argument.
13335 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13336 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13337 build_omp_clause.
13338 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13339 (cp_parser_omp_clause_collapse): Same.
13340 (cp_parser_omp_clause_default): Same.
13341 (cp_parser_omp_clause_if): Same.
13342 (cp_parser_omp_clause_nowait): Same.
13343 (cp_parser_omp_clause_num_threads): Same.
13344 (cp_parser_omp_clause_ordered): Same.
13345 (cp_parser_omp_clause_schedule): Same.
13346 (cp_parser_omp_clause_untied): Same.
13347 (cp_parser_omp_for_loop): Same.
13348 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13349 * c-tree.h (c_start_case): Add location argument.
13350 (c_process_expr_stmt): Same.
13351 (c_finish_goto_*): Same.
13352 * tree-parloops.c (initialize_reductions): Pass location to
13353 build_omp_clause.
13354 (create_parallel_loop): Same.
13355 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13356 (gfc_trans_omp_reduction_list): Same.
13357 (gfc_trans_omp_clauses): Same.
13358 (gfc_trans_omp_do): Same.
13359 * c-typeck.c (c_finish_goto_label): Same.
13360 (c_finish_goto_ptr): New location argument.
13361 (c_start_case): Same.
13362 (emit_side_effect_warnings): Same.
13363 (c_process_expr_stmt): Same.
13364 (c_finish_stmt_expr): Same.
13365 (c_finish_omp_clauses): Use error_at instead of error.
13366 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13367 build_omp_clause.
13368 * c-omp.c (c_split_parallel_clauses): New location argument.
13369 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13370 to build_omp_clause.
13371 (convert_local_reference_stmt): Same.
13372 (convert_gimple_call): Same.
13373 * c-common.h (c_split_parallel_clauses): New argument.
13374 * c-parser.c (c_parser_statement_after_labels): Pass location to
13375 c_finish_goto_label.
13376 (c_parser_switch_statement): Pass location to c_start_case.
13377 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13378 and c_process_expr_stmt.
13379 (c_parser_omp_variable_list): Add location argument.
13380 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13381 (c_parser_omp_clause_default): Same.
13382 (c_parser_omp_clause_if): Same.
13383 (c_parser_omp_clause_num_threads): Same.
13384 (-c_parser_omp_clause_ordered): Same.
13385 (c_parser_omp_clause_reduction): Pass location to
13386 c_parser_omp_variable_list.
13387 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13388 (c_parser_omp_clause_untied): Same.
13389 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13390 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13391
13392 * c-tree.h (check_for_loop_decls, undeclared_variable,
13393 build_component_ref, build_array_ref, build_external_ref,
13394 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13395 build_conditional_expr, build_compound_expr, c_cast_expr,
13396 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13397 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13398 argument.
13399 * c-semantics.c (build_stmt): Same.
13400 (build_case_label): Same.
13401 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13402 (undeclared_variable): New argument.
13403 (make_label): Same.
13404 (lookup_label): Pass location on down.
13405 (define_label): Same.
13406 (finish_decl): Same.
13407 (build_compound_literal): Same.
13408 (finish_struct): Same.
13409 (finish_function): Do not set location here.
13410 (check_for_loop_decls): New argument.
13411 * tree.c (save_expr): Set location.
13412 (build_empty_stmt): New argument.
13413 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13414 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13415 * builtins.c (gimplify_va_arg_expr): Use locations.
13416 (expand_builtin_sync_operation): Same.
13417 * c-typeck.c (build_component_ref): New argument.
13418 (build_array_ref): Same.
13419 (build_external_ref): Same.
13420 (c_expr_sizeof_expr): Same.
13421 (c_expr_sizeof_type): Same.
13422 (parser_build_unary_op): Same.
13423 (build_conditional_expr): Same.
13424 (build_compound_expr): Pass location on down.
13425 (build_compound_expr): New argument.
13426 (build_c_cast): Same.
13427 (c_cast_expr): Same.
13428 (build_asm_expr): Same.
13429 (c_finish_return): Same.
13430 (c_process_expr_stmt): Pass location on down.
13431 (c_finish_stmt_expr): New argument.
13432 (push_clenaup): Same.
13433 (c_finish_omp_parallel): Same.
13434 (c_finish_omp_task): Same.
13435 * gimplify.c (gimplify_call_expr): Pass location on down.
13436 * c-omp.c (c_finish_omp_master): New argument.
13437 (c_finish_omp_critical): Same.
13438 (c_finish_omp_ordered): Same.
13439 (c_finish_omp_barrier): Same.
13440 (-c_finish_omp_taskwait): Same.
13441 (c_finish_omp_atomic): Same.
13442 (c_finish_omp_flush): Same.
13443 * tree-inline.c (copy_tree_body_r): Pass location on down.
13444 (inline_forbidden_p): Remove use of input_location.
13445 * c-gimplify.c (c_build_bind_expr): New argument.
13446 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13447 (c_sizeof_or_alignof_type): New argument.
13448 (c_alignof_expr): Same.
13449 (build_va_arg): Same.
13450 (c_add_case_label): Same.
13451 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13452 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13453 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13454 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13455 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13456 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13457 New argument.
13458 * stub-objc.c (objc_build_selector_expr): Same.
13459 (objc_build_throw_stmt): Same.
13460 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13461 (c_parser_initelt): Same.
13462 (c_parser_compound_statement): Same.
13463 (c_parser_compound_statement_nostart): Same.
13464 (c_parser_label): Same.
13465 (c_parser_statement_after_labels): Same.
13466 (c_parser_if_body): Same.
13467 (c_parser_else_body): Same.
13468 (c_parser_if_statement): Same.
13469 (c_parser_switch_statement): Same.
13470 (c_parser_while_statement): Same.
13471 (c_parser_do_statement): Same.
13472 (c_parser_for_statement): Same.
13473 (c_parser_asm_statement): Same.
13474 (c_parser_conditional_expression): Same.
13475 (c_parser_binary_expression): Same.
13476 (c_parser_cast_expression): Same.
13477 (c_parser_unary_expression): Same.
13478 (c_parser_sizeof_expression): Same.
13479 (c_parser_alignof_expression): Same.
13480 (c_parser_postfix_expression): Same.
13481 (c_parser_expression): Same.
13482 (c_parser_objc_receiver): Same.
13483 (c_parser_omp_variable_list): Same.
13484 (c_parser_omp_structured_block): Same.
13485 (c_parser_omp_atomic): New argument.
13486 (c_parser_omp_barrier): Same.
13487 (c_parser_omp_critical): Same.
13488 (c_parser_omp_flush): Pass location on down.
13489 (c_parser_omp_for_loop): New argument.
13490 (c_parser_omp_for): Same.
13491 (c_parser_omp_master): Same.
13492 (c_parser_omp_ordered): Same.
13493 (c_parser_omp_sections_scope): Same.
13494 (c_parser_omp_sections): Same.
13495 (c_parser_omp_parallel): Same.
13496 (c_parser_omp_single): Same.
13497 (c_parser_omp_task): Same.
13498 (c_parser_omp_taskwait): Pass location on down.
13499 (c_parser_omp_construct): Same.
13500 (c_parser_omp_threadprivate): Same.
13501 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13502 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13503 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13504 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13505 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13506 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13507 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13508 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13509 config/i386/i386.c, stmt.c:
13510 Add location argument to the following function definitions and/or
13511 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13512 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13513 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13514 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13515 do_case, c_finish_bc_stmt, build_compound_literal,
13516 build_function_call.
13517 * c-decl.c (build_compound_literal): Add location argument.
13518 Make all diagnostic calls use location.
13519 (start_struct): Same.
13520 (finish_struct): Same.
13521 (start_enum): Same.
13522 (build_enumerator): Same.
13523 (start_function): Same.
13524 (grokdeclarator): Make all diagnostic calls use location.
13525 (store_parm_decls_oldstyle): Same.
13526 * c-typeck.c (build_function_call): Add location argument.
13527 Make all diagnostic calls use location.
13528 (do_case): Same.
13529 (c_finish_bc_stmt): Same.
13530 * tree-nested.c (get_trampoline_type): Add argument.
13531 Pass location to build_decl.
13532 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13533 * rtl.h (RTL_LOCATION): New.
13534 * c-common.c (c_add_case_label): Add location argument.
13535 Make all diagnostic calls use location.
13536 * c-common.h: Add location argument to make_fname_decl, do_case,
13537 c_add_case_label, build_function_call, resolve_overloaded_builtin.
13538 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13539 Set it appropriately for every case. Pass enum_loc to start_enum
13540 call. Pass value_loc first to build_enumerator. Pass enum_loc to
13541 parser_xref_tag.
13542 (c_parser_struct_or_union_specifier): Save location. Use it for
13543 start_struct, finish_struct, and parser_xref_tag.
13544
13545 2009-06-12 Ian Lance Taylor <iant@google.com>
13546
13547 * fold-const.c (fold_unary): Rename local variable and to and_expr.
13548
13549 * c-opts.c (c_common_handle_option): For -Wc++-compat set
13550 cpp_opts->warn_cxx_operator_names.
13551
13552 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
13553
13554 PR tree-opt/38865
13555 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13556 is returns NULL and OP is a VCE, look through the VCE.
13557
13558 2009-06-12 Ian Lance Taylor <iant@google.com>
13559
13560 PR bootstrap/40430
13561 * collect2.c (main): Use CONST_CAST2 in code inside #if
13562 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13563
13564 2009-06-12 Joey Ye <joey.ye@intel.com>
13565
13566 PR middle-end/39146
13567 * cfgexpand.c (get_decl_align_unit): Update
13568 max_used_stack_slot_alignment with align instead of
13569 stack_alignment_needed.
13570
13571 * function.c (assign_stack_local_1): Update
13572 max_used_stack_slot_alignment with alignment_in_bits instead
13573 of stack_alignment_needed.
13574 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13575 here.
13576
13577 2009-06-12 Jakub Jelinek <jakub@redhat.com>
13578
13579 * dwarf2out.c (last_var_location_insn): New variable.
13580 (dwarf2out_end_epilogue): Clear last_var_location_insn.
13581 (dwarf2out_var_location): Don't record anything after last real
13582 insn. Only change labels if there were any real instructions
13583 in between last note and this one, or if changed sections.
13584
13585 2009-06-11 Richard Henderson <rth@redhat.com>
13586
13587 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13588 note when storing the frame pointer in a register.
13589 (FRP): Don't redefine to nothing for epilogue.
13590 (alpha_expand_epilogue): Mark register and sp restores.
13591 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13592
13593 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13594 when gen_lowpart is needed.
13595
13596 2009-06-11 Richard Henderson <rth@redhat.com>
13597
13598 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13599
13600 * dwarf2out.c (need_data_align_sf_opcode): New.
13601 (div_data_align): Move earlier.
13602 (def_cfa_1, reg_save): Use it.
13603
13604 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
13605
13606 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13607 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13608 (ix86_handle_option): Handle OPT_mcrc32.
13609 (ix86_target_string): Add -mcrc32.
13610 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13611
13612 * config/i386/i386.h (TARGET_CRC32): New.
13613
13614 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13615 (sse4_2_crc32di): Likewise.
13616
13617 * config/i386/i386.opt (mcrc32): New.
13618
13619 * doc/invoke.texi: Document -mcrc32.
13620
13621 2009-06-11 Richard Henderson <rth@redhat.com>
13622
13623 * common.opt (gdwarf-): Accept a version number.
13624 * doc/invoke.texi (gdwarf-): Update docs.
13625 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13626 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13627 version level, and record it.
13628
13629 * dwarf2.h (DW_CIE_VERSION): Remove.
13630 * dwarf2out.c (DWARF_VERSION): Remove.
13631 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13632 (output_call_frame_info): Use CIE version 3 for dwarf3,
13633 or if the return register column is out of range for version 1.
13634 (dwarf_stack_op_name): Add all dwarf3 values.
13635 (DEBUG_PUBTYPES_SECTION): New.
13636 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13637 encoding change for dwarf3.
13638 (output_die) [dw_val_class_die_ref]: Likewise.
13639 (output_compilation_unit_header): Emit correct version for dwarf3.
13640 (output_line_info): Likewise.
13641 (output_pubnames): Update for DWARF_VERSION removal.
13642 (output_aranges): Likewise.
13643 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13644 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13645 (dwarf2out_finish): Likewise.
13646
13647 2009-06-11 David Daney <ddaney@caviumnetworks.com>
13648
13649 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13650 in r148403.
13651
13652 2009-06-11 David Daney <ddaney@caviumnetworks.com>
13653
13654 PR c/39252
13655 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13656 * builtins.c (expand_builtin_unreachable): New function.
13657 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13658 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13659 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13660 successors.
13661 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13662 searching for missing barriers.
13663
13664 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13665
13666 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13667 when -fprofile-generate* was passed.
13668 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13669
13670 2009-06-11 Anthony Green <green@moxielogic.com>
13671
13672 * config/moxie/moxie.md: Define length attribute for all instructions.
13673 (rCC): Define.
13674 (*b<cond:code>): Support limited branch ranges for new PC-relative
13675 branch instructions.
13676 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
13677
13678 2009-06-11 Jakub Jelinek <jakub@redhat.com>
13679
13680 * config/i386/i386.c (min_insn_size): Use get_attr_length
13681 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
13682 For __asm return 0.
13683
13684 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
13685 instead of emit_insn_before.
13686
13687 2009-06-10 Ian Lance Taylor <iant@google.com>
13688
13689 PR bootstrap/40408
13690 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
13691 GIMPLE_SWITCH.
13692
13693 2009-06-10 Revital Eres <eres@il.ibm.com>
13694
13695 * passes.c (init_optimization_passes): Reschedule
13696 predictive-commoning pass before complete unroll pass.
13697
13698 2009-06-10 Martin Jambor <mjambor@suse.cz>
13699
13700 * cgraph.c (cgraph_node_can_be_local_p): New function.
13701 (cgraph_make_node_local): New function.
13702 * cgraph.h (cgraph_node_can_be_local_p): Declare.
13703 (cgraph_make_node_local): Declare.
13704
13705 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
13706
13707 * tree.h (tree_base): Add packed_flag and user_align fields.
13708 Decrease size of spare field.
13709 (TYPE_USER_ALIGN): Use user_align from tree_base.
13710 (DECL_USER_ALIGN): Likewise.
13711 (TYPE_PACKED): Use packed_flag from tree_base.
13712 (DECL_PACKED): Likewise.
13713 (tree_type): Delete packed_flag and user_align fields. Widen
13714 precision field. Widen mode field and shuffle fields to align
13715 mode on an 8-bit boundary.
13716 (tree_decl_common): Delete decl_flag_1 and user_align fields.
13717 Renumber decl_flag_* fields. Fix comments. Widen
13718 decl_common_unused field.
13719 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
13720 (DECL_EXTERNAL): Likewise.
13721 (DECL_BIT_FIELD): Likewise.
13722 (DECL_NONADDRESSABLE_P): Likewise.
13723 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
13724 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
13725
13726 2009-06-10 Ian Lance Taylor <iant@google.com>
13727
13728 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
13729 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
13730 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
13731 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
13732 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
13733 DEF_VEC_ALLOC_FUNC_P.
13734 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
13735 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
13736 DEF_VEC_ALLOC_FUNC_O.
13737 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
13738 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
13739 DEF_VEC_ALLOC_FUNC_I.
13740 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
13741 (vec_stack_p_reserve_exact_1): Declare.
13742 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
13743 (vec_stack_free): Declare.
13744 (VEC_stack_alloc): Define.
13745 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
13746 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
13747 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
13748 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
13749 for void_p.
13750 (stack_vecs): New static variable.
13751 (vec_stack_p_reserve_exact_1): New function.
13752 (vec_stack_o_reserve_1): New static function.
13753 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
13754 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
13755 (vec_stack_free): New function.
13756 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
13757 (VEC_df_ref_stack_alloc): Define.
13758 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
13759 DEF_VEC_ALLOC_P_STACK.
13760 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
13761 (struct df_collection_rec): Change _vec fields to VEC. Remove
13762 _use fields.
13763 (df_free_collection_rec): Adjust for new fields.
13764 (df_insn_rescan): Use new df_collection_rec fields.
13765 (df_notes_rescan, df_canonize_collection_rec): Likewise.
13766 (df_ref_create_structure, df_ref_record): Likewise.
13767 (df_get_conditional_uses, df_get_call_refs): Likewise.
13768 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
13769 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
13770 (df_record_exit_block_uses, df_bb_verify): Likewise.
13771 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
13772 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
13773 Remove count parameter. Change return type to void. Change all
13774 callers.
13775 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
13776 Remove count parameter. Change return type to void. Change all
13777 callers.
13778 (df_install_refs): Change old_vec parameter to VEC. Remove count
13779 parameter. Change all callers.
13780 (df_install_mws): Change old_vec parameter to VEC. Remove count
13781 parameter. Change all callers.
13782 (df_refs_verify): Change new_rec parameter to VEC. Change call
13783 callers.
13784 (df_mws_verify): Likewise.
13785
13786 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
13787
13788 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
13789
13790 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
13791
13792 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
13793
13794 2009-06-10 Anthony Green <green@moxielogic.com>
13795
13796 * config/moxie/crti.asm: New file.
13797 * config/moxie/crtn.asm: New file.
13798 * config/moxie/moxie.c: New file.
13799 * config/moxie/moxie.h: New file.
13800 * config/moxie/sfp-machine.h: New file.
13801 * config/moxie/moxie-protos.h: New file.
13802 * config/moxie/t-moxie: Created.
13803 * config/moxie/t-moxie-softfp: Created.
13804 * config/moxie/moxie.md: Created.
13805 * config/moxie/constraints.md: Created.
13806 * config.gcc: Add moxie support.
13807 * doc/md.texi (Machine Constraints): Add moxie constraints.
13808 * doc/contrib.texi (Contributors): Mention moxie port.
13809 * doc/install.texi (Specific): Mention the moxie port.
13810
13811 2009-06-09 Ian Lance Taylor <iant@google.com>
13812
13813 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
13814 compiling with C++.
13815 * optabs.c (optab_table): Only use designated initializers if
13816 HAVE_DESIGNATED_INITIALIZERS is defined.
13817 (convert_optab_table): Likewise.
13818 (init_optabs): Always call init_insn_codes if
13819 HAVE_DESIGNATED_INITIALIZERS is not defined.
13820
13821 2009-06-09 Ian Lance Taylor <iant@google.com>
13822
13823 * targhooks.c (default_builtin_vectorized_function): Change fn
13824 parameter to unsigned int.
13825 (default_builtin_vectorized_conversion): Change code parameter to
13826 unsigned int.
13827 (default_builtin_reciprocal): Change fn parameter to unsigned int.
13828 * targhooks.h: Update declarations.
13829 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
13830 parameter to unsigned int.
13831
13832 * c-typeck.c (comptypes_check_enum_int): New static function.
13833 (comptypes_internal): Add enum_and_int_p parameter. Change all
13834 callers.
13835 (comp_target_types): Add location parameter. Change all callers.
13836 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
13837 Change all callers.
13838 (function_types_compatible_p, type_lists_compatible_p): Likewise.
13839 (build_conditional_expr): Add colon_loc parameter. Change all
13840 callers.
13841 (convert_for_assignment): Add location parameter. Change all callers.
13842 * c-parser.c (c_parser_conditional_expression): Pass location of
13843 colon to build_conditional_expr.
13844 * c-tree.h (build_conditional_expr): Update declaration.
13845
13846 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
13847
13848 * graphite.c: Revert previous patch.
13849
13850 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
13851
13852 PR bootstrap/40103
13853 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13854
13855 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
13856
13857 * tree-ssa-loop-prefetch.c
13858 (loop_prefetch_arrays): Fixed a portability problem in printf format
13859 string.
13860
13861 2009-06-09 Martin Jambor <mjambor@suse.cz>
13862
13863 PR tree-optimization/40351
13864 * tree-sra.c (propagate_subacesses_accross_link): Check that a
13865 refrence to a potential artifical subaccess can be constructed.
13866
13867 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13868
13869 * config/sh/sh-protos.h (sh_optimization_options): Declare.
13870 (sh_override_options): Likewise.
13871 * config/sh/sh.c: Include params.h.
13872 (sh_optimization_options): New.
13873 (sh_override_options): Likewise.
13874 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
13875 (OVERRIDE_OPTIONS): Use sh_override_options.
13876
13877 2009-06-08 Jakub Jelinek <jakub@redhat.com>
13878
13879 * dwarf2out.c (emit_cfa_remember): New variable.
13880 (add_fde_cfi): If emit_cfa_remember, recurse to add
13881 DW_CFA_remember_state first.
13882 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
13883 instead just set emit_cfa_remember.
13884
13885 2009-06-08 Jan Hubicka <jh@suse.cz>
13886
13887 PR debug/40126
13888 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
13889
13890 2009-06-08 Jan Hubicka <jh@suse.cz>
13891
13892 PR middle-end/39834
13893 * cgraphunit.c (save_inline_function_body): Do not copy transform
13894 hooks for saved inline bodies.
13895 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
13896 for given function.
13897
13898 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
13899
13900 * jump.c (returnjump_p): Handle delayed branches. Add missing
13901 function comment.
13902
13903 2009-06-08 Jan Hubicka <jh@suse.cz>
13904
13905 PR middle-end/40102
13906 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
13907 original node might've been modified.
13908 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
13909
13910 2009-06-08 Jakub Jelinek <jakub@redhat.com>
13911
13912 * tree-object-size.c (addr_object_size): Add OSI argument.
13913 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
13914 (compute_builtin_object_size, expr_object_size): Adjust callers.
13915 (plus_stmt_object_size): Call addr_object_size instead of
13916 compute_builtin_object_size.
13917
13918 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
13919 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13920
13921 * tree-ssa-loop-prefetch.c
13922 (gather_memory_references): Introduced a counter for the number of
13923 memory references.
13924 (anything_to_prefetch_p): Introduced a counter for the number of
13925 prefetches.
13926 (is_loop_prefetching_profitable): New function with a cost model
13927 for prefetching.
13928 (loop_prefetch_arrays): Use the new cost model to determine if
13929 prefetching is profitable.
13930 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
13931 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13932 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
13933 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13934 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
13935 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13936
13937 2009-06-08 Michael Matz <matz@suse.de>
13938
13939 PR debug/40012
13940 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
13941 partitions use the same.
13942 (expand_one_var): Deal with DECL_RTL sometimes begin set also
13943 for basevars of SSA_NAMEs.
13944 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
13945 to not expand them twice.
13946 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
13947 multiple places.
13948
13949 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
13950
13951 * common.opt (fcompare-debug=, fcompare-debug-second): New.
13952 (fdump-final-insns=, gtoggle): New.
13953 * doc/invoke.texi: Document them.
13954 * final.c (rest_of_clean_state): Dump final insn stream.
13955 * gcc.c (invoke_as): Hook in -fcompare-debug.
13956 (static_spec_functions): Add compare-debug-dump-opt,
13957 compare-debug-self-opt and compare-debug-auxbase-opt.
13958 (compare_debug, compare_debug_second, compare_debug_opt): New.
13959 (switches_debug_check, n_switches_debug_check): New.
13960 (debug_auxbase_opt, debug_check_temp_file): New.
13961 (process_command): Handle -fno-compare-debug, -fcompare-debug and
13962 -fcompare-debug=*.
13963 (do_self_spec): Handle arguments after switches.
13964 (do_spec_1): Add .gk extension to temp file basenames for compare.
13965 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
13966 (cc1_options): Use it instead of normal auxbase computation for
13967 the second compare-debug compilation.
13968 (compare_files): New.
13969 (main): Set up and implement compare debug mode.
13970 (compare_debug_dump_opt_spec_function): New.
13971 (compare_debug_self_opt_spec_function): New.
13972 (compare_debug_auxbase_opt_spec_function): New.
13973 * toplev.c (process_options): Handle flag_gtoggle,
13974 flag_dump_final_insns.
13975 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
13976 during -fcompare-debug-second compilation.
13977
13978 2009-06-07 Ian Lance Taylor <iant@google.com>
13979
13980 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
13981 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
13982
13983 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
13984 with no default node. Change warning with %H to warning_at.
13985 Don't clear warn_switch around case checking.
13986 * doc/invoke.texi (Warning Options): Clarify distinction between
13987 -Wswitch and -Wswitch-enum.
13988
13989 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13990
13991 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
13992
13993 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13994
13995 * gbl-ctors.h: Add header guard.
13996
13997 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13998
13999 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14000 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14001 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14002 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14003 prototypes for removed functions.
14004 (expressions_equal_p): Move to ...
14005 * tree-ssa-sccvn.h: ... here and ...
14006 * matrix-reorg.c: ... adjust includes.
14007
14008 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14009
14010 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14011
14012 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14013
14014 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14015 (finish_function): Remove erroneous whitespace.
14016
14017 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14018
14019 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14020 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14021
14022 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14023
14024 * errors.c (internal_error): Commentary typo fix.
14025 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14026 * tree-ssa-pre.c: Ditto.
14027
14028 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14029
14030 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14031 them is supposed to hold actual statements.
14032
14033 2009-06-06 Ian Lance Taylor <iant@google.com>
14034
14035 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14036 empty statements can now have attributes.
14037
14038 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14039
14040 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14041 * config/mips/mips.md: Ditto.
14042
14043 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14044
14045 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14046 _RELOCATABLE.
14047 (__eabi_uconvert): Likewise.
14048
14049 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14050
14051 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14052 CFI_* definitions with IN_GCC.
14053
14054 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14055
14056 * xcoffout.h (xcoffout_source_line): Update prototype.
14057
14058 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14059
14060 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14061 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14062
14063 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14064
14065 PR middle-end/40340
14066 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14067 inlined_function_outer_scope_p blocks for artificial inlines
14068 even at -g0/-g1.
14069 * tree.c (tree_nonartificial_location): Rewrite using
14070 block_nonartificial_location.
14071
14072 2009-06-05 Revital Eres <eres@il.ibm.com>
14073 Leehod Baruch <leehod@il.ibm.com>
14074
14075 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14076 (expand_expr_real_1): Remove comment.
14077 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14078 Vectorize misaligned access when the target supports it.
14079 (vect_supportable_dr_alignment): Check for unaligned access support.
14080 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14081 and remove asset.
14082
14083 2009-06-05 Julian Brown <julian@codesourcery.com>
14084
14085 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14086 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14087
14088 2009-06-05 Richard Guenther <rguenther@suse.de>
14089
14090 PR bootstrap/40350
14091 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14092 as possibly unused.
14093
14094 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14095
14096 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14097 (save_gprs): Don't tell unwinder when a global register is saved.
14098 (s390_emit_epilogue): Emit needed epilogue unwind info.
14099
14100 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14101
14102 * dwarf2out.c (deferred_asm_name): New.
14103 (add_name_and_src_coords_attributes): Defer creation of
14104 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14105 computed yet.
14106 (move_linkage_attr): New.
14107 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14108 right place.
14109
14110 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14111
14112 * tree-nested.c (finalize_nesting_tree_1): Declare the
14113 frame_decl in the binding tree.
14114
14115 2009-06-04 Cary Coutant <ccoutant@google.com>
14116
14117 * basic-block.h (struct basic_block_def): Add discriminator field.
14118 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14119 callers.
14120 * debug.c (do_nothing_debug_hooks): Add additional entry.
14121 (debug_nothing_int_charstar_int): New function.
14122 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14123 (debug_nothing_int_charstar_int): New declaration.
14124 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14125 discriminator value in .loc directive.
14126 * final.c (last_discriminator): New variable.
14127 (discriminator): New variable.
14128 (final_start_function): Initialize above variables, pass current
14129 discriminator to debug hook.
14130 (notice_source_line): Check for discriminator change.
14131 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14132 * sdbout.c (sdbout_source_line): New parameter.
14133 * tree-cfg.c (struct locus_discrim_map): New structure type.
14134 (discriminator_per_locus): New hash table.
14135 (build_gimple_cfg): Allocate and free discriminator hash table.
14136 (make_edges): Call assign_discriminator.
14137 (locus_map_hash): New function.
14138 (locus_map_eq): New function.
14139 (next_discriminator_for_locus): New function.
14140 (same_line_p): New function.
14141 (assign_discriminator): New function.
14142 (make_cond_expr_edges): Call assign_discriminator.
14143 (make_gimple_switch_edges): Likewise.
14144 (first_non_label_stmt): New function.
14145 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14146 all callers.
14147 * xcoffout.c (xcoffout_source_line): Add new parameter.
14148
14149 * configure.ac (gcc_cv_as_discriminator): New configury check for
14150 gas support for discriminator.
14151 * configure: Regenerate.
14152 * config.in: Regenerate.
14153
14154 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14155
14156 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14157 val after checking for integers.
14158
14159 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14160
14161 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14162 X64_REGPARM_MAX.
14163 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14164 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14165 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14166 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14167 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14168 X64_SSE_REGPARM_MAX.
14169 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14170 X64_SSE_REGPARM_MAX.
14171
14172 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14173
14174 * gcc.c (report_times_to_file): New.
14175 (execute): Implement it.
14176 (process_command): Support -time=.
14177 * doc/invoke.texi: Document it.
14178
14179 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14180
14181 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14182 that have value exprs.
14183
14184 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14185
14186 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14187 declarations for constants until...
14188 (dw2_output_indirect_constant_1): ... this point.
14189
14190 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14191
14192 PR target/10242
14193 * arm.md (arm_addsi3): Don't try to split an add with an
14194 eliminable register until after reload has completed.
14195
14196 2009-06-03 Ian Lance Taylor <iant@google.com>
14197
14198 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14199 * genattrtab.c (write_length_unit_log): Likewise.
14200 * genchecksum.c (dosum): Likewise.
14201 * gengtype.c (write_rtx_next): Likewise.
14202 (finish_root_table, write_roots): Likewise.
14203 * gimple.c (gimple_ops_offset_): Likewise.
14204 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14205 * config/arc/arc.c (arc_attribute_table): Likewise.
14206 * config/arm/arm.c (arm_attribute_table): Likewise.
14207 * config/avr/avr.c (avr_attribute_table): Likewise.
14208 * config/crx/crx.c (crx_attribute_table): Likewise.
14209 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14210 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14211 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14212 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14213 * config/sh/sh.c (sh_attribute_table): Likewise.
14214 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14215 * config/spu/spu.c (spu_attribute_table): Likewise.
14216 * config/v850/v850.c (v850_attribute_table): Likewise.
14217
14218 * config/alpha/alpha.c (vms_attribute_table): Make static.
14219 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14220 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14221 * config/mips/mips.c (mips_attribute_table): Likewise.
14222
14223 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14224 $(SYSTEM_H).
14225 (cc1-checksum.o): Likewise.
14226
14227 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14228
14229 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14230
14231 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14232
14233 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14234 insn if it is changing sp. Use gen_add3_insn instead of
14235 conditionally gen_addsi3 and gen_adddi3.
14236 (offset_below_red_zone_p): New static inline function.
14237 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14238 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14239 * config/rs6000/ppc-asm.h: Include auto-host.h.
14240 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14241 CFI_RESTORE): Define.
14242 * config/rs6000/crtresxgpr.asm: Add unwind info.
14243 * config/rs6000/crtresxfpr.asm: Likewise.
14244 * config/rs6000/crtresgpr.asm: Likewise.
14245 * config/rs6000/crtresfpr.asm: Likewise.
14246 * config/rs6000/crtsavgpr.asm: Likewise.
14247 * config/rs6000/crtsavfpr.asm: Likewise.
14248
14249 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14250 argument of DWARF2_FRAME_REG_OUT macros.
14251
14252 2009-06-03 Julian Brown <julian@codesourcery.com>
14253
14254 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14255 words or less (including TImode) in core registers.
14256
14257 2009-06-03 Richard Guenther <rguenther@suse.de>
14258
14259 PR middle-end/40328
14260 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14261
14262 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14263
14264 * statistics.c (statistics_counter_event): Do not record event
14265 in pass dump if its number == -1.
14266 (curr_statistics_hash): Add assert that we never get passes
14267 with static number == -1.
14268
14269 2009-06-03 Richard Guenther <rguenther@suse.de>
14270 Andrey Belevantsev <abel@ispras.ru>
14271
14272 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14273 non-BLKmode arrays addressable.
14274
14275 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14276
14277 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14278 * config/m68k/m68k.h: ... here.
14279
14280 2009-06-03 Martin Jambor <mjambor@suse.cz>
14281
14282 PR tree-optimization/40323
14283 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14284 assignment.
14285
14286 2009-06-03 Richard Guenther <rguenther@suse.de>
14287
14288 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14289 consistently.
14290
14291 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14292
14293 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14294 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14295 JUMP_TABLE_DATA_P where applicable.
14296 * config/sh/sh.c: Ditto.
14297 * config/sh/sh.h: Ditto.
14298 * config/sh/sh.md: Ditto.
14299 * config/sh/symbian.c: Ditto.
14300
14301 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14302
14303 * config/i386/driver-i386.c (describe_cache): Optimize
14304 concatenation of strings. Use snprintf instead of sprintf.
14305 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14306 target when not compiling with GCC.
14307
14308 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14309
14310 * config/sh/sh.c: Revert last change.
14311 (sh_expand_epilogue): Emit a blockage insn before the frame
14312 pointer adjustment unconditionally.
14313
14314 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14315
14316 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14317 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14318 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14319 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14320 to COLLECT_GCC_OPTIONS.
14321
14322 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14323
14324 * collect2.c (target_system_root): New variable.
14325 (main): Handle --sysroot=.
14326 (ignore_library): Strip the sysroot from the library path.
14327
14328 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14329
14330 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14331 (collect2.o): Depend on collect2-aix.h.
14332 (collect2-aix.o): New rule.
14333 * collect2-aix.h: New file.
14334 * collect2-aix.c: Likewise.
14335 * collect2.c: Include collect2-aix.h. Don't undefine
14336 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14337 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14338 Use TARGET_AIX_VERSION instead of _AIX51.
14339 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14340 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14341 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14342 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14343 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14344
14345 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14346
14347 * collect2.c (ignore_library): Avoid premature post-increment
14348 and null deference.
14349
14350 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14351
14352 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14353 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14354 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14355 CROSS_DIRECTORY_STRUCTURE too.
14356 (LINK_LIBG_SPEC): Likewise.
14357 (LIB_SPEC): Add %R to sysroot paths.
14358 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14359 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14360 * config/rs6000/aix51.h: As for aix43.h.
14361 * config/rs6000/aix52.h: Likewise.
14362 * config/rs6000/aix53.h: Likewise.
14363 * config/rs6000/aix61.h: Likewise.
14364 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14365 to the beginning of sysroot paths.
14366
14367 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14368
14369 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14370 INSN_LISTs that are out of the REG_NOTE range.
14371
14372 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14373
14374 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14375 (struct var_to_expand): Likewise.
14376 (struct opt_info): Add head and tail for linked lists of the above.
14377 (analyze_insn_to_expand_var): Initialize next.
14378 (analyze_iv_to_split_insn): Likewise.
14379 (analyze_insns_in_loop): Create linked lists.
14380 (allocate_basic_variable): Simplify for use without hash table.
14381 (insert_var_expansion_initialization): Likewise, make it type-safer.
14382 (combine_var_copies_in_loop_exit): Likewise.
14383 (apply_opt_in_copies): Walk lists rather than hash tables.
14384 (release_var_copies): Simplified and inlined by hand into...
14385 (free_opt_info): ... this function.
14386
14387 2009-06-02 Richard Guenther <rguenther@suse.de>
14388
14389 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14390 for field decls.
14391
14392 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14393
14394 * cfgexpand.c (gimple_expand_cfg): Discard the source location
14395 only for builtins that are not overridden.
14396
14397 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14398
14399 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14400 label string.
14401
14402 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14403
14404 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14405
14406 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14407
14408 * combine.c (move_deaths): Compare LUIDs within the same BB only.
14409
14410 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14411
14412 * common.opt (fdump-unnumbered-links): New.
14413 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14414 * print-rtl.c (flag_dump_unnumbered_links): New.
14415 (print_rtx): Test it.
14416
14417 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
14418
14419 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14420 push/pop multiple to 8-byte alignment.
14421
14422 2009-06-01 Jakub Jelinek <jakub@redhat.com>
14423
14424 * config/i386/i386.c (queued_cfa_restores): New static variable.
14425 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14426 functions.
14427 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14428 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14429 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14430 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14431 note unconditionally.
14432 (ix86_emit_restore_regs_using_mov): Likewise.
14433 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14434 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14435 it through to ix86_emit_restore_reg_using_pop.
14436 (ix86_emit_leave): Add RED_OFFSET argument. Call
14437 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
14438 instead of adding REG_CFA_OFFSET note unconditionally.
14439 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14440 the above functions. Call ix86_add_queued_cfa_restore_notes when
14441 needed.
14442
14443 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14444 force output of the label even for dwarf2out_do_cfi_asm.
14445 (add_fde_cfi): If -g2 and above and cfi might change CFA,
14446 force creation of CFI label and chain DW_CFA_set_loc jumping to it
14447 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
14448 caller.
14449 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14450 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14451 dwarf2out_cfi_label callers.
14452 * tree.h (dwarf2out_cfi_label): Adjust prototype.
14453 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14454 Adjust dwarf2out_cfi_label callers.
14455 * config/vax/vax.c (vax_output_function_prologue): Likewise.
14456
14457 * config/i386/i386.h (struct machine_cfa_state,
14458 struct machine_function): Guard with ifndef USED_FOR_TARGET
14459 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14460
14461 PR other/40024
14462 * emutls.c (__emutls_get_address): Change arr->size to mean number
14463 of allocated arr->data entries instead of # of slots + 1.
14464
14465 PR middle-end/40316
14466 * recog.c (peep2_reinit_state): New function.
14467 (peephole2_init_state): Use it at the end of a basic block and also
14468 when seeing a RTX_FRAME_RELATED_P insn.
14469
14470 2009-06-01 Steve Ellcey <sje@cup.hp.com>
14471
14472 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14473 fixuns_truncrfdi2): New.
14474 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14475 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14476 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14477 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14478 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14479 *recip_approx): Remove.
14480 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14481 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14482 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14483 move to div.md.
14484 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14485 setf_exp_rf): New.
14486
14487 2009-06-01 Ian Lance Taylor <iant@google.com>
14488
14489 * attribs.c (register_attribute): Use CONST_CAST.
14490 * collect2.c (main): Use CONST_CAST2.
14491 (scan_prog_file): Likewise.
14492 * gcc.c (process_command, main): Likewise.
14493 * toplev.c (toplev_main): Likewise.
14494
14495 * c-typeck.c (handle_warn_cast_qual): New static function,
14496 partially broken out of build_c_cast.
14497 (build_c_cast): Call handle_warn_cast_qual.
14498 * doc/invoke.texi (Warning Options): Document new effect of
14499 -Wcast-qual.
14500
14501 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
14502
14503 * diagnostic.c (diagnostic_build_prefix): Always print columns.
14504 (diagnostic_report_current_module): Print columns.
14505 * common.opt (flag_show_column): Enable by default.
14506
14507 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
14508
14509 * alias.c (find_base_term): Check for NULL term before returning.
14510
14511 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14512
14513 Revert due to PR40320:
14514 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14515 * calls.c (emit_library_call_value_1): Don't force_operand for move
14516 and push insns.
14517
14518 2009-06-01 Olivier Hainque <hainque@adacore.com>
14519 Eric Botcazou <ebotcazou@adacore.com>
14520
14521 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14522 to be processed as a bitfield for constructor output purposes.
14523 * output.h (initializer_constant_valid_for_bitfield_p): Declare
14524 new function.
14525 * varasm.c (oc_local_state): New type, output_constructor
14526 local state to support communication with helpers.
14527 (oc_outer_state): New type, output_constructor outer state of
14528 relevance in recursive calls.
14529 (output_constructor_array_range): New output_constructor helper,
14530 extracted code for an array range element.
14531 (output_constructor_regular_field): New output_constructor helper,
14532 extracted code for an element that is not a bitfield.
14533 (output_constructor_bitfield): New output_constructor helper,
14534 extracted code for a bitfield element. Accept an OUTER state
14535 argument for recursive processing. Recurse on record or array
14536 CONSTRUCTOR values, possibly past noop conversions.
14537 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
14538 VALUE is a valid constant-valued expression for use in a static
14539 bit-field initializer.
14540 (output_constructor): Rework to use helpers. Accept and honor an
14541 OUTER state argument for recursive calls. Return total size. Be
14542 prepared for nested constructors initializing bitfields.
14543 (output_constant): Feed OUTER in calls to output_constructor.
14544
14545 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14546
14547 * calls.c (emit_library_call_value_1): Don't force_operand for move
14548 and push insns.
14549
14550 2009-06-01 Nick Clifton <nickc@redhat.com>
14551
14552 * doc/invoke.texi (IA-64 Options): Fix typo.
14553
14554 2009-06-01 Ira Rosen <irar@il.ibm.com>
14555
14556 PR tree-optimization/39129
14557 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14558 printed message.
14559 (vect_do_peeling_for_loop_bound): Use
14560 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14561 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14562 (vect_loop_versioning): Likewise.
14563 (vect_create_cond_for_alias_checks): Fix indentation.
14564 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14565 macros.
14566 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14567 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14568 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14569 "control flow in loop".
14570 (vect_estimate_min_profitable_iters): Use
14571 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14572 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14573 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14574 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14575 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14576 statement belongs to a group of strided accesses with the exact code
14577 check.
14578 (vectorizable_load): Likewise.
14579 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14580 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14581
14582 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
14583
14584 * config/freebsd-stdint.h: New file.
14585 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14586 Add freebsd-stdint.h to tm_file.
14587
14588 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
14589
14590 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14591 (thumb2_extendhidi2): Likewise.
14592
14593 2009-05-31 Ian Lance Taylor <iant@google.com>
14594
14595 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14596
14597 2009-05-31 Ian Lance Taylor <iant@google.com>
14598
14599 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14600 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14601 (ipa-reference.o): Depend upon gt-ipa-reference.h.
14602
14603 2009-05-31 Jason Merrill <jason@redhat.com>
14604
14605 * tree-pretty-print.c (print_call_name): Take the callee, not the
14606 call itself. Make non-static. Use dump_function_name for functions.
14607 (dump_generic_node): Adjust.
14608 * diagnostic.h: Declare print_call_name.
14609 * gimple-pretty-print.c (dump_gimple_call): Use it.
14610
14611 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
14612
14613 * config/sh/sh.md (ashldi3_std): New define_expand.
14614 (ashldi3): Use it.
14615
14616 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
14617
14618 PR target/40313
14619 * config/sh/sh.c: Include debug.h.
14620 (sh_expand_epilogue): Emit a blockage insn before the frame
14621 pointer adjustment also when dwarf2out_do_frame returns true.
14622
14623 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
14624
14625 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14626 (thumb2_extendqidi2): New pattern.
14627
14628 2009-05-31 Ira Rosen <irar@il.ibm.com>
14629
14630 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14631 mark phis for renaming.
14632 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14633 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14634 Call mark_sym_for_renaming.
14635 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14636 * tree-vect-loop.c (vect_transform_loop): Remove
14637 vect_memsyms_to_rename initialization and a call to
14638 mark_set_for_renaming.
14639
14640 2009-05-31 Jakub Jelinek <jakub@redhat.com>
14641
14642 PR middle-end/40304
14643 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14644 frame related even if !set_cfa && style < 0.
14645
14646 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
14647
14648 * config/i386/mingw-tls.c: New file.
14649 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14650 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14651 defining _WIN32 but not __CYGWIN__.
14652
14653 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14654
14655 * configure.ac: Add MPC support.
14656
14657 * config.in, configure: Regenerate.
14658
14659 2009-05-29 Richard Henderson <rth@redhat.com>
14660
14661 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14662 NOTE_INSN_BASIC_BLOCK.
14663 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14664 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14665 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14666 to be deleted.
14667 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14668 add in_use field.
14669 (add_cfi): Disable check redefining cfa away from drap.
14670 (lookup_cfa_1): Add remember argument; handle remember/restore.
14671 (lookup_cfa): Pass remember argument.
14672 (cfa_remember): New.
14673 (compute_barrier_args_size_1): Remove sibcall check.
14674 (dwarf2out_frame_debug_def_cfa): New.
14675 (dwarf2out_frame_debug_adjust_cfa): New.
14676 (dwarf2out_frame_debug_cfa_offset): New.
14677 (dwarf2out_frame_debug_cfa_register): New.
14678 (dwarf2out_frame_debug_cfa_restore): New.
14679 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
14680 (dwarf2out_begin_epilogue): New.
14681 (dwarf2out_frame_debug_restore_state): New.
14682 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
14683 DW_CFA_restore_state.
14684 (output_cfi_directive): Likewise.
14685 (convert_cfa_to_fb_loc_list): Likewise.
14686 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
14687 * dwarf2out.h: Update.
14688 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
14689 (copy_insn_1): Early out for null.
14690 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
14691 and dwarf2out_frame_debug_restore_state.
14692 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
14693 (prologue_insn_hash, epilogue_insn_hash): New.
14694 (free_after_compilation): Adjust freeing accordingly.
14695 (record_insns): Create hash table if needed; push insns into
14696 hash instead of array.
14697 (maybe_copy_epilogue_insn): New.
14698 (contains): Search hash table instead of array.
14699 (sibcall_epilogue_contains): Remove.
14700 (thread_prologue_and_epilogue_insns): Split eh_return insns
14701 and mark them as epilogues.
14702 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
14703 scanning in terms of basic blocks.
14704 * insn-notes.def (CFA_RESTORE_STATE): New.
14705 * jump.c (returnjump_p_1): Accept EH_RETURN.
14706 (eh_returnjump_p_1, eh_returnjump_p): New.
14707 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
14708 CFA_REGISTER, CFA_RESTORE): New.
14709 * rtl.def (EH_RETURN): New.
14710 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
14711
14712 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
14713 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
14714
14715 * config/i386/i386.c (gen_push): Update cfa state.
14716 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
14717 add a CFA_ADJUST_CFA note.
14718 (ix86_dwarf_handle_frame_unspec): Remove.
14719 (ix86_expand_prologue): Update cfa state.
14720 (ix86_emit_restore_reg_using_pop): New.
14721 (ix86_emit_restore_regs_using_pop): New.
14722 (ix86_emit_leave): New.
14723 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
14724 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
14725 * config/i386/i386.h (struct machine_cfa_state): New.
14726 (ix86_cfa_state): New.
14727 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
14728 (eh_return_internal): Merge from eh_return_<mode>,
14729 use eh_return rtx, split w/ epilogue.
14730
14731 2009-05-29 Ian Lance Taylor <iant@google.com>
14732
14733 * builtins.c (validate_gimple_arglist): Don't use va_arg with
14734 enum type.
14735 * calls.c (emit_library_call_value_1): Likewise.
14736
14737 * c-typeck.c (c_build_va_arg): New function.
14738 * c-tree.h (c_build_va_arg): Declare.
14739 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
14740 instead of build_va_arg.
14741
14742 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
14743
14744 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
14745 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
14746 (ptr_difference_cost): Use affine combinations to compute it.
14747 (difference_cost): Likewise.
14748 (get_computation_cost_at): Compute more accurate cost for addresses
14749 if the ratio is a multiplier allowed in addresses.
14750 For non-addresses, consider that an additional offset or symbol is
14751 added only once.
14752
14753 2009-05-29 Jakub Jelinek <jakub@redhat.com>
14754
14755 * config/i386/i386.c (ix86_decompose_address): Avoid useless
14756 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
14757
14758 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
14759 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
14760 (prefix_rex): For UNIT_MMX don't imply the prefix by default
14761 if MODE_DI.
14762 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
14763 to 1 for TYPE_SSE{IADD1,CVT1}.
14764 (prefix_vex_imm8): Removed.
14765 (length_vex): Only pass 1 as second argument to
14766 ix86_attr_length_vex_default if prefix_extra is 0.
14767 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
14768 (length): For prefix vex computation use length_immediate
14769 attribute instead of prefix_vex_imm8.
14770 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
14771 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
14772 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
14773 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
14774 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
14775 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
14776 a space in between the operands.
14777 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
14778 if one operand is 0xff and the other one si, di, bp or sp.
14779 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
14780 other one si, di, bp or sp.
14781 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
14782 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
14783 type and mode attributes.
14784 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
14785 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
14786 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
14787 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
14788 prefix_data16 attribute iff MODE_DF.
14789 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
14790 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
14791 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
14792 constm128_operand in length_immediate computation.
14793 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
14794 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
14795 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
14796 length_immediate attribute to 1.
14797 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
14798 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
14799 for certain alternatives.
14800 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
14801 prefix_data16 attribute if MODE_V1DF.
14802 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
14803 length_immediate to 1.
14804 (set_got_rex64, set_rip_rex64): Remove length attribute, set
14805 length_address to 4, set mode attribute to MODE_DI.
14806 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
14807 (fxam<mode>2_i387): Set length attribute to 4.
14808 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
14809 *prefetch_3dnow_rex): Override length_address attribute.
14810 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
14811 attributes.
14812 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
14813 (constm128_operand): Removed.
14814 * config/i386/i386.c (memory_address_length): For
14815 disp && !index && !base in 64-bit mode account for SIB byte if
14816 print_operand_address can't optimize disp32 into disp32(%rip)
14817 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
14818 for fs: or gs: segment.
14819 (ix86_attr_length_immediate_default): When checking if shortform
14820 is possible, truncate immediate to the length of the non-shortened
14821 immediate.
14822 (ix86_attr_length_address_default): Ignore MEM_P operands
14823 with X constraint.
14824 (ix86_attr_length_vex_default): Only check for DImode on
14825 GENERAL_REG_P operands.
14826 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
14827 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
14828 (sse_cvttps2pi): Clear prefix_rep attribute.
14829 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
14830 attribute.
14831 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
14832 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
14833 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
14834 iff operand 2 is const_int_operand.
14835 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
14836 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
14837 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
14838 instead of vex.
14839 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
14840 prefix_data16.
14841 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
14842 prefix_data16 attribute for movlpd and movhpd instructions.
14843 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
14844 length_immediate for shufpd instruction.
14845 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
14846 (avx_cmpp<avxmodesuffixf2c><mode>3,
14847 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
14848 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
14849 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
14850 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
14851 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
14852 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
14853 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
14854 prefix_data16 attribute for the first alternative to 1.
14855 (*avx_loadlps): Override length_immediate for the first alternative.
14856 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
14857 attributes for second alternative.
14858 (*vec_concatv2sf_sse4_1): Override length_immediate and
14859 prefix_data16 attributes for second alternative.
14860 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
14861 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
14862 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
14863 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
14864 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
14865 prefix_data16 and length_immediate to 1.
14866 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
14867 to 1.
14868 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
14869 prefix_extra attribute for variants that don't have 0f prefix alone.
14870 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
14871 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
14872 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
14873 *sse4_1_pextrd): Set length_immediate to 1.
14874 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
14875 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
14876 to 1.
14877 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
14878 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
14879 length_immediate to 1 for second alternative.
14880 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
14881 prefix_extra and length_immediate attributes for the first
14882 alternative.
14883 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
14884 first alternative.
14885 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
14886 to 1 for the first and third alternative.
14887 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
14888 alternative.
14889 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
14890 attribute.
14891 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
14892 attribute to 0.
14893 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
14894 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
14895 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
14896 *avx_psign<mode>3): Set prefix_extra attribute to 1.
14897 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
14898 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
14899 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
14900 ssse3_psign<mode>3): Override prefix_rex attribute.
14901 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
14902 (ssse3_palignrti): Override length_immediate to 1.
14903 (ssse3_palignrdi): Override length_immediate to 1, override
14904 prefix_rex attribute.
14905 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
14906 (sse4a_extrqi): Override length_immediate to 2.
14907 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
14908 (sse4a_insertq): Override prefix_data16 to 0.
14909 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
14910 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
14911 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
14912 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
14913 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
14914 and length_immediate to 1.
14915 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
14916 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
14917 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
14918 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
14919 and length_immediate to 1.
14920 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
14921 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
14922 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
14923 avx_ptest256): Override prefix_extra to 1.
14924 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
14925 Override prefix_data16 and length_immediate to 1.
14926 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
14927 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
14928 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
14929 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
14930 prefix_data16 to 0 and prefix_extra to 2.
14931 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
14932 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
14933 attribute.
14934 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
14935 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
14936 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
14937 and prefix_extra to 2.
14938 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
14939 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
14940 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
14941 avx_vpermilvar<mode>3,
14942 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
14943 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
14944 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
14945 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
14946 Override prefix_extra to 1.
14947 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
14948 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
14949 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
14950 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
14951 prefix_extra and length_immediate to 1.
14952 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
14953 modrm to 0.
14954 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
14955 to 1 for the first alternative.
14956 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
14957 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
14958 cases.
14959 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
14960 *movv2sf_internal_avx, *movv2sf_internal): Override
14961 prefix_rep attribute for certain alternatives.
14962 (*mov<mode>_internal): Override prefix_rep or prefix_data16
14963 attributes for certain alternatives.
14964 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
14965 attributes for certain alternatives.
14966 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
14967 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
14968 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
14969 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
14970 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
14971 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
14972 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
14973 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
14974 length_immediate to 1 if operand 2 is const_int_operand.
14975 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
14976 *vec_extractv2si_1): Set length_immediate attribute to 1.
14977 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
14978 using old 3DNOW insn rather than SSE/3DNOW_A.
14979 (mmx_emms, mmx_femms): Clear modrm attribute.
14980
14981 2009-05-29 Martin Jambor <mjambor@suse.cz>
14982
14983 * tree-sra.c: New implementation of SRA.
14984
14985 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
14986 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
14987 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
14988 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
14989 (SRA_MAX_STRUCTURE_COUNT): Removed.
14990 (SRA_FIELD_STRUCTURE_RATIO): Removed.
14991 * doc/invoke.texi (sra-max-structure-size): Removed.
14992 (sra-field-structure-ratio): Removed.
14993
14994 2009-05-29 Jakub Jelinek <jakub@redhat.com>
14995
14996 PR middle-end/40291
14997 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
14998 before expansion.
14999
15000 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15001
15002 PR rtl-optimization/40101
15003 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15004 seqno. Adjust comment.
15005 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15006 inserting bookkeeping before a jump, the jump is not scheduled.
15007 When no positive seqno found, provide a value. Add comment.
15008
15009 2009-05-29 Richard Guenther <rguenther@suse.de>
15010
15011 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15012 short-cutting on the first component.
15013
15014 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15015
15016 PR middle-end/39958
15017 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15018 for trees other than decls/types.
15019
15020 2009-05-29 Richard Guenther <rguenther@suse.de>
15021
15022 * tree-ssa-operands.c (get_expr_operands): Do not handle
15023 INDIRECT_REFs in the handled-component case. Remove
15024 unused get_ref_base_and_extent case.
15025 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15026 tree_low_cst and host_integerp where possible.
15027 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15028 codes for equivalence.
15029 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15030
15031 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15032
15033 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15034 to tmake_file for i[34567]86-*-cygwin*.
15035
15036 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15037
15038 PR target/40017
15039 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15040 (altivec_categorize_keyword, init_vector_keywords,
15041 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15042 similar to bool.
15043
15044 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15045
15046 * tree.c (handle_dll_attribute): Check if node is
15047 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15048
15049 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15050
15051 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15052 component.
15053 (thumb2_zero_extendqidi2): Likewise.
15054
15055 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15056
15057 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15058 instead of gen_movrt.
15059 * config/sh/sh.md (movrt): Remove.
15060
15061 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15062
15063 * doc/invoke.texi (IA-64 Options):
15064 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15065 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15066 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15067 -msched-prefer-non-control-spec-insns,
15068 -msched-stop-bits-after-every-cycle,
15069 -msched-count-spec-in-critical-path,
15070 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15071 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15072 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15073 and -msched-spec-verbose.
15074
15075 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15076
15077 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15078 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15079 error if used.
15080 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15081
15082 2009-05-28 Richard Guenther <rguenther@suse.de>
15083
15084 * tree-ssa-alias.c (ao_ref_init): New function.
15085 (ao_ref_base): Likewise.
15086 (ao_ref_base_alias_set): Likewise.
15087 (ao_ref_alias_set): Likewise.
15088 (refs_may_alias_p_1): Change signature.
15089 (refs_may_alias_p): Adjust.
15090 (refs_anti_dependent_p): Likewise.
15091 (refs_output_dependent_p): Likewise.
15092 (call_may_clobber_ref_p_1): Change signature.
15093 (call_may_clobber_ref_p): Adjust.
15094 (stmt_may_clobber_ref_p_1): New function split out from ...
15095 (stmt_may_clobber_ref_p): ... here.
15096 (maybe_skip_until): Adjust signature.
15097 (get_continuation_for_phi): Likewise.
15098 (walk_non_aliased_vuses): Likewise.
15099 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15100 (ao_ref_init): Declare.
15101 (ao_ref_base): Likewise.
15102 (ao_ref_alias_set): Likewise.
15103 (stmt_may_clobber_ref_p_1): Likewise.
15104 (walk_non_aliased_vuses): Adjust.
15105 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15106 (get_ref_from_reference_ops): remove.
15107 (vn_reference_lookup_2): Adjust signature.
15108 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15109 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15110 (vn_reference_lookup): Adjust.
15111 (vn_reference_insert): Likewise.
15112 (vn_reference_insert_pieces): Adjust signature.
15113 (visit_reference_op_call): Adjust.
15114 * tree-ssa-pre.c (get_expr_type): Simplify.
15115 (phi_translate_1): Adjust.
15116 (compute_avail): Likewise.
15117 (translate_vuse_through_block): Do not re-build trees.
15118 (value_dies_in_block_x): Likewise.
15119 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15120 fields.
15121 (vn_reference_lookup_pieces): Adjust declaration.
15122 (vn_reference_insert_pieces): Likewise.
15123
15124 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15125
15126 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15127 with checking disabled.
15128
15129 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15130
15131 PR target/37216
15132
15133 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15134 macro definition for support of three-operand format aligned
15135 .comm directive in assembler on cygwin/pe/mingw target OS.
15136 * configure: Regenerate.
15137 * config.h: Regenerate.
15138
15139 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15140 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15141 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15142
15143 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15144 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15145
15146 2009-05-28 Ira Rosen <irar@il.ibm.com>
15147
15148 PR tree-optimization/40254
15149 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15150 in analysis of basic blocks.
15151
15152 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15153
15154 PR middle-end/33699
15155 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15156 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15157 (TARGET_INITIALIZER): Use it.
15158 * cse.c (CHEAPER): Move it up to the other macros.
15159 (insert): Rename this ...
15160 (insert_with_costs): ... to this. Add cost parameters. Update
15161 function comment.
15162 (insert): New function. Call insert_with_costs.
15163 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15164 find_reg_offset_for_const, try_const_anchors): New functions.
15165 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15166 when using a const-anchor. Call insert_const_anchors.
15167 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15168 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15169
15170 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15171
15172 * tree-inline.c (remap_decls): Enable nonlocalized variables
15173 when not optimizing.
15174
15175 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15176
15177 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15178 Simplify other tests involving optimize.
15179
15180 2009-05-27 Tom Tromey <tromey@redhat.com>
15181
15182 * unwind-dw2.c (_Unwind_DebugHook): New function.
15183 (uw_install_context): Call _Unwind_DebugHook.
15184
15185 2009-05-27 Tom Tromey <tromey@redhat.com>
15186
15187 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15188
15189 2009-05-27 Ian Lance Taylor <iant@google.com>
15190
15191 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15192 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15193 (ALL_LINKERFLAGS): Define.
15194 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15195 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15196 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15197 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15198 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15199 $(LINKER_FOR_BUILD).
15200 (build/gcov-iov$(build_exeext)): Likewise.
15201
15202 2009-05-27 Julian Brown <julian@codesourcery.com>
15203
15204 * gcse.c (target.h): Include.
15205 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15206 copy of argument to a pseudo register.
15207
15208 2009-05-27 Diego Novillo <dnovillo@google.com>
15209
15210 * tree-ssa-live.c (dump_scope_block): Document arguments.
15211 (dump_scope_blocks): Document.
15212 (debug_scope_blocks): New.
15213 * tree-flow.h (debug_scope_blocks): Declare.
15214
15215 2009-05-21 Denis Chertykov <denisc@overta.ru>
15216
15217 * doc/contrib.texi (Contributors): Add myself to the list.
15218
15219 2009-05-27 Olivier Hainque <hainque@adacore.com>
15220
15221 * expr.c (target_align): New function. Alignment the TARGET of an
15222 assignment may be assume to have.
15223 (highest_pow2_factor_for_target): Use it instead of relying on
15224 immediate tree attributes of TARGET, not necessarily honored when
15225 intermediate bitfields are involved.
15226
15227 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15228
15229 PR target/40266
15230 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15231 AVX, SSE4, AES, PCLMUL and POPCNT.
15232
15233 2009-05-27 Diego Novillo <dnovillo@google.com>
15234
15235 * tree-pretty-print.c (dump_location): New.
15236 (dump_generic_node): Call it.
15237 Factor code to handle BLOCK nodes ...
15238 (dump_block_node): ... here.
15239
15240 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15241
15242 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15243 with it.
15244 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15245 included.
15246 * gcc-plugin.h: Include config.h and system.h.
15247 (IN_GCC): Define if not defined.
15248
15249 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15250
15251 PR middle-end/40249
15252 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15253 with -fno-inline.
15254
15255 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15256
15257 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15258 applicable.
15259 * config/m32r/m32r.h: Ditto.
15260 * config/m32r/m32r.md: Ditto.
15261 * config/m32r/predicates.md: Ditto.
15262
15263 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15264
15265 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15266
15267 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15268
15269 * doc/plugins.texi
15270 (Loading plugins): typo.
15271 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15272 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15273 (Interacting with the GCC Garbage Collector): Added new section.
15274 (Giving information about a plugin): Added new section for
15275 PLUGIN_INFO.
15276 * ggc.h (ggc_register_root_tab): Added declaration.
15277 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15278 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15279 (register_callback): Improved comment in declaration.
15280 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15281 (extra_root_vec) Added static variable for dynamic roots registration.
15282 (ggc_register_root_tab) Added new routine.
15283 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15284 PLUGIN_GGC_MARKING event.
15285 * ggc-zone.c: Include plugin.h.
15286 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15287 * ggc-page.c: Include plugin.h.
15288 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15289 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15290 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15291 (register_callback): check lack of callbacks for
15292 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15293 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15294 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15295 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15296 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15297 dependency on plugin.h.
15298 (plugin.o): Added dependency on ggc.h...
15299
15300 2009-05-26 Richard Guenther <rguenther@suse.de>
15301
15302 PR middle-end/40248
15303 Revert
15304 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15305 with mismatched comparison modes.
15306
15307 * expr.c (expand_expr_real_1): Expand the operand of a
15308 VIEW_CONVERT_EXPR in its natural mode.
15309
15310 2009-05-26 Ian Lance Taylor <iant@google.com>
15311
15312 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15313 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15314 (ALL_COMPILERFLAGS): Define.
15315 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15316 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15317 (collect2$(exeext), collect2.o): Likewise.
15318 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15319 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15320 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15321 (libbackend.o, intl.o, cppdefault.o): Likewise.
15322 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15323 (build/%.o): Use $(COMPILER_FOR_BUILD).
15324 (build/gen%$(build_exeext)): Likewise.
15325 (build/gcov-iov$(build_exeext)): LIkewise.
15326 * config/t-darwin (darwin.o): Use $(COMPILER).
15327 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15328 * config/t-sol2 (sol2-c.o): Likewise.
15329 (sol2.o): Likewise.
15330 * config/t-vxworks (vxworks.o): Likewise.
15331 * config/x-darwin (host-darwin.o): Likewise.
15332 * config/x-hpux (host-hpux.o): Likewise.
15333 * config/x-linux (host-linux.o): Likewise.
15334 * config/x-solaris (host-solaris.o): Likewise.
15335 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15336 * config/arm/t-arm (arm-c.o): Likewise.
15337 * config/arm/t-pe (pe.o): Likewise.
15338 * config/arm/t-wince-pe (pe.o): Likewise.
15339 * config/i386/t-cygming (winnt.o): Likewise.
15340 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15341 * config/i386/t-cygwin (cygwin1.o): Likewise.
15342 (cygwin2.o): Likewise.
15343 * config/i386/t-i386 (i386-c.o): Likewise.
15344 * config/i386/t-interix (winnt.o): Likewise.
15345 * config/i386/t-netware (netware.o): Likewise.
15346 * config/i386/t-nwld (nwld.o): Likewise.
15347 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15348 * config/i386/x-i386 (driver-i386.o): Likewise.
15349 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15350 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15351 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15352 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15353 * config/mips/x-native (driver-native.o): Likewise.
15354 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15355 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15356 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15357 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15358 * config/score/t-score-elf (score7.o): Likewise.
15359 (score3.o): Likewise.
15360 * config/sh/t-sh (sh-c.o): Likewise.
15361 * config/sh/t-symbian (sh-c.o): Likewise.
15362 (symbian.o): Likewise.
15363 * config/spu/t-spu-elf (spu-c.o): Likewise.
15364 * config/v850/t-v850 (v850-c.o): Likewise.
15365 * config/v850/t-v850e (v850-c.o): Likewise.
15366
15367 2009-05-26 Richard Guenther <rguenther@suse.de>
15368
15369 PR tree-optimization/40122
15370 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15371 VECTOR_CSTs if possible.
15372 (fold_gimple_assign): Likewise.
15373
15374 2009-05-26 Richard Guenther <rguenther@suse.de>
15375
15376 PR middle-end/40252
15377 * fold-const.c (fold_binary): Use the correct types for building
15378 rotates.
15379
15380 2009-05-26 Richard Guenther <rguenther@suse.de>
15381
15382 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15383 redundant calls to merge_alias_info.
15384 (bump_vector_ptr): Likewise.
15385 * tree-ssa-copy.c (merge_alias_info): Remove.
15386 (replace_exp_1): Remove call to merge_alias_info.
15387 (propagate_tree_value): Likewise.
15388 (fini_copy_prop): Propagate points-to info.
15389 * tree-flow.h (merge_alias_info): Remove.
15390
15391 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
15392
15393 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15394
15395 2009-05-25 Jan Hubicka <jh@suse.cz>
15396
15397 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15398 * cgraph.h (struct inline_summary): New filed self_wize,
15399 size_inlining_benefit, self_time and time_inlining_benefit.
15400 (struct cgraph_global_info): Replace insns by time ans size fields.
15401 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15402 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15403 (ipcp_update_callgraph): Do not touch function bodies.
15404 * ipa-inline.c: Include except.h
15405 (MAX_TIME): New constant.
15406 (overall_insns): Remove.
15407 (leaf_node_p): New.
15408 (overall_size, max_benefit): New static variables.
15409 (cgraph_estimate_time_after_inlining): New function.
15410 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15411 (cgraph_clone_inlined_nodes): Update size.
15412 (cgraph_mark_inline_edge): Update size.
15413 (cgraph_estimate_growth): Use size info.
15414 (cgraph_check_inline_limits): Check size.
15415 (cgraph_default_inline_p): Likewise.
15416 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15417 (cgraph_decide_recursive_inlining): Check size.
15418 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15419 and times.
15420 (cgraph_decide_inlining): Likewise.
15421 (cgraph_decide_inlining_incrementally): Likewise; honor
15422 PARAM_EARLY_INLINING_INSNS.
15423 (likely_eliminated_by_inlining_p): New predicate.
15424 (estimate_function_body_sizes): New function.
15425 (compute_inline_parameters): Use it.
15426 * except.c (must_not_throw_labels): New function.
15427 * except.h (must_not_throw_labels): Declare.
15428 * tree-inline.c (init_inline_once): Kill inlining_weigths
15429 * tree-ssa-structalias.c: Avoid uninitialized warning.
15430 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15431 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15432 (PARAM_INLINE_CALL_COST): Remove.
15433 (PARAM_EARLY_INLINING_INSNS): New.
15434
15435 2009-05-25 Richard Guenther <rguenther@suse.de>
15436
15437 PR tree-optimization/36327
15438 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15439 callback for reference translation or lookup at the point of may-defs.
15440 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15441 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15442 for union COMPONENT_REFs.
15443 (vn_reference_lookup_3): New callback. Lookup from memset
15444 and CONSTRUCTOR assignment, translate through struct copies.
15445 (vn_reference_lookup_pieces): Make sure to not free the
15446 passed operands array. Adjust walk_non_aliased_vuses call.
15447 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15448 make sure we do not leak memory.
15449
15450 2009-05-25 Richard Guenther <rguenther@suse.de>
15451
15452 * tree-ssa-alias.h (dump_points_to_solution): Declare.
15453 * tree-inline.c (expand_call_inline): Reset the escaped and
15454 callused solutions.
15455 * tree-ssa-structalias.c (pass_build_ealias): New.
15456 * tree-pass.h (pass_build_ealias): Declare.
15457 * passes.c (init_optimization_passes): Add PTA during
15458 early optimizations.
15459 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15460 and CALLUSED solutions.
15461 (dump_points_to_solution): New function, split out from ...
15462 (dump_points_to_info_for): ... here.
15463 * tree-parloops.c (parallelize_loops): Reset the escaped and
15464 callused solutions.
15465
15466 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15467
15468 PR bootstrap/40027
15469 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15470 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15471
15472 2009-05-25 Ira Rosen <irar@il.ibm.com>
15473
15474 PR tree-optimization/40238
15475 * tree-vect-stmts.c (vect_init_vector): Insert initialization
15476 statements after basic block's labels.
15477 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15478 to free the allocated memory.
15479
15480 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
15481
15482 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15483 return address with a USE.
15484
15485 2009-05-24 Richard Guenther <rguenther@suse.de>
15486
15487 PR middle-end/40233
15488 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15489 array type from the main variant of the inner type.
15490
15491 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15492
15493 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15494 definition to bool (from int) to un-break build.
15495 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15496
15497 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
15498
15499 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15500 discard_stmt_changes): Delete.
15501 * tree-ssa-operands.c (scb_stack): Delete.
15502 (init_ssa_operands): Do not initialize it.
15503 (fini_ssa_operands): Do not free it.
15504 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15505
15506 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15507 update_stmt, remove the others. Fix comments.
15508 * tree-dfa.c (optimize_stack_restore): Likewise.
15509 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15510 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15511 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15512 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15513 Likewise.
15514 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15515 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15516 (dom_opt_finalize_block): Likewise, adjusting access to
15517 stmts_to_rescan.
15518 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15519 (stmts_to_rescan): Change item type to gimple.
15520 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15521
15522 2009-05-24 Ira Rosen <irar@il.ibm.com>
15523
15524 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15525 * tree-pass.h (pass_slp_vectorize): New pass.
15526 * params.h (SLP_MAX_INSNS_IN_BB): Define.
15527 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15528 * tree-vectorizer.c (timevar.h): Include.
15529 (user_vect_verbosity_level): Declare.
15530 (vect_location): Fix comment.
15531 (vect_set_verbosity_level): Update user_vect_verbosity_level
15532 instead of vect_verbosity_level.
15533 (vect_set_dump_settings): Add an argument. Ignore user defined
15534 verbosity if dump flags require higher level of verbosity. Print to
15535 stderr only for loop vectorization.
15536 (vectorize_loops): Update call to vect_set_dump_settings.
15537 (execute_vect_slp): New function.
15538 (gate_vect_slp): Likewise.
15539 (struct gimple_opt_pass pass_slp_vectorize): New.
15540 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15541 access its members.
15542 (vec_info_for_bb): New function.
15543 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15544 (VECTORIZATION_ENABLED): New macro.
15545 (SLP_ENABLED, SLP_DISABLED): Likewise.
15546 (vect_is_simple_use): Add bb_vec_info argument.
15547 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15548 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15549 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15550 vect_schedule_slp, vect_analyze_slp): Likewise.
15551 (vect_analyze_stmt): Add slp_tree argument.
15552 (find_bb_location): Declare.
15553 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15554 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15555 (vect_analyze_loop_operations, vect_analyze_loop,
15556 get_initial_def_for_induction, vect_create_epilog_for_reduction,
15557 vect_finalize_reduction, vectorizable_reduction,
15558 vectorizable_live_operation, vect_transform_loop): Likewise.
15559 * tree-data-ref.c (dr_analyze_innermost): Update comment,
15560 skip evolution analysis if analyzing a basic block.
15561 (dr_analyze_indices): Likewise.
15562 (initialize_data_dependence_relation): Skip the test whether the
15563 object is invariant for basic blocks.
15564 (compute_all_dependences): Skip dependence analysis for data
15565 references in basic blocks.
15566 (find_data_references_in_stmt): Don't fail in case of invariant
15567 access in basic block.
15568 (find_data_references_in_bb): New function.
15569 (find_data_references_in_loop): Move code to
15570 find_data_references_in_bb and add a call to it.
15571 (compute_data_dependences_for_bb): New function.
15572 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15573 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15574 that STEP is 0.
15575 (vect_analyze_data_ref_dependence): Check for interleaving in case of
15576 unknown dependence in basic block and fail in case of dependence in
15577 basic block.
15578 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15579 dependence instances from either loop or basic block vectorization
15580 info.
15581 (vect_compute_data_ref_alignment): Check if it is loop vectorization
15582 before calling nested_in_vect_loop_p.
15583 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15584 dependence instances from either loop or basic block vectorization
15585 info.
15586 (vect_verify_datarefs_alignment): Likewise.
15587 (vect_enhance_data_refs_alignment): Adjust function calls.
15588 (vect_analyze_data_refs_alignment): Likewise.
15589 (vect_analyze_group_access): Fix printing. Skip different checks if
15590 DR_STEP is 0. Keep strided stores either in loop or basic block
15591 vectorization data structure. Fix indentation.
15592 (vect_analyze_data_ref_access): Fix comments, allow zero step in
15593 basic blocks.
15594 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15595 dependence instances from either loop or basic block vectorization
15596 info.
15597 (vect_analyze_data_refs): Update comment. Call
15598 compute_data_dependences_for_bb to analyze basic blocks.
15599 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15600 case of loop vectorization. In case of basic block vectorization use
15601 data-ref itself as a base.
15602 (vect_create_data_ref_ptr): In case of basic block vectorization:
15603 don't advance the pointer, add new statements before the current
15604 statement. Adjust function calls.
15605 (vect_supportable_dr_alignment): Support only aligned accesses in
15606 basic block vectorization.
15607 * common.opt (ftree-slp-vectorize): New flag.
15608 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15609 (vect_pattern_recog_1): Likewise.
15610 * tree-vect-stmts.c (process_use): Likewise.
15611 (vect_init_vector): Add new statements in the beginning of the basic
15612 block in case of basic block SLP.
15613 (vect_get_vec_def_for_operand): Adjust function calls.
15614 (vect_finish_stmt_generation): Likewise.
15615 (vectorizable_call): Add assert that it is loop vectorization, adjust
15616 function calls.
15617 (vectorizable_conversion, vectorizable_assignment): Likewise.
15618 (vectorizable_operation): In case of basic block SLP, take
15619 vectorization factor from statement's type and skip the relevance
15620 check. Adjust function calls.
15621 (vectorizable_type_demotion): Add assert that it is loop
15622 vectorization, adjust function calls.
15623 (vectorizable_type_promotion): Likewise.
15624 (vectorizable_store): Check for outer loop only in case of loop
15625 vectorization. Adjust function calls. For basic blocks, skip the
15626 relevance check and don't advance pointers.
15627 (vectorizable_load): Likewise.
15628 (vectorizable_condition): Add assert that it is loop vectorization,
15629 adjust function calls.
15630 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15631 that it is not reduction, get vector type, call only supported
15632 functions, skip loop specific parts.
15633 (vect_transform_stmt): Check for outer loop only in case of loop
15634 vectorization.
15635 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15636 (vect_is_simple_use): Fix comment, add new argument, fix conditions
15637 for external definition.
15638 * passes.c (pass_slp_vectorize): New pass.
15639 * tree-vect-slp.c (find_bb_location): New function.
15640 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15641 check for patterns only in loops.
15642 (vect_build_slp_tree): Add argument, adjust function calls, fail in
15643 case of multiple types in basic block SLP.
15644 (vect_mark_slp_stmts_relevant): New function.
15645 (vect_supported_load_permutation_p): Fix comment.
15646 (vect_analyze_slp_instance): Add argument. In case of basic block
15647 SLP, take vectorization factor from statement's type, check that
15648 unrolling factor is 1. Adjust function call. Save SLP instance in
15649 either loop or basic block vectorization structure. Return FALSE,
15650 if SLP failed.
15651 (vect_analyze_slp): Add argument. Get strided stores groups from
15652 either loop or basic block vectorization structure. Return FALSE
15653 if basic block SLP failed.
15654 (new_bb_vec_info): New function.
15655 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15656 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15657 (vect_schedule_slp): Add argument. Get SLP instances from either
15658 loop or basic block vectorization structure. Set vectorization factor
15659 to be 1 for basic block SLP.
15660 (vect_slp_transform_bb): New function.
15661 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15662
15663 2009-05-23 Mark Mitchell <mark@codesourcery.com>
15664
15665 * final.c (shorten_branches): Do not align labels for jump tables.
15666 (final_scan_insn): Use JUMP_TABLE_DATA_P.
15667
15668 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
15669
15670 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
15671 Remove outdated reference to flow.c and fix nits.
15672 * doc/gccint.texi: Tweak RTL description.
15673 * doc/rtl.texi: Likewise.
15674
15675 2009-05-23 Denis Chertykov <chertykov@gmail.com>
15676
15677 * config/avr/avr.c: Change my email address.
15678 * config/avr/avr.h: Likewise.
15679 * config/avr/avr.md: Likewise.
15680 * config/avr/avr-protos.h: Likewise.
15681 * config/avr/libgcc.S: Likewise.
15682
15683 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
15684
15685 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
15686 (spu_split_load, spu_split_store): Change return type to int.
15687 (spu_split_convert): Declare.
15688 * config/spu/predicates.md (spu_mem_operand): Remove.
15689 (spu_mov_operand): Update.
15690 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
15691 * config/spu/spu.c (regno_aligned_for_load): Remove.
15692 (reg_aligned_for_addr, spu_expand_load): Define.
15693 (spu_expand_extv): Reimplement and handle MEM.
15694 (spu_expand_insv): Handle MEM.
15695 (spu_sched_reorder): Handle insn's with length 0.
15696 (spu_legitimate_address_p): Reimplement.
15697 (store_with_one_insn_p): Return TRUE for any mode with size
15698 larger than 16 bytes.
15699 (address_needs_split): Define.
15700 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
15701 operands.
15702 (spu_convert_move): Define.
15703 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
15704 (spu_split_store): Change all MEM's to TImode.
15705 (spu_init_expanders): Preallocate registers that correspond to
15706 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
15707 mark_reg_pointer.
15708 (spu_split_convert): Define.
15709 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
15710 (_move<mode>, _movdi, _movti): Update predicate and condition.
15711 (load, store): Change to define_split.
15712 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
15713 extend<mode>ti2.
15714 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
15715 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
15716 define_insn_and_split of lshr<mode>3.
15717 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
15718 (<v>ashr<mode>3_imm): Define.
15719 (extv, extzv, insv): Allow MEM operands.
15720 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
15721 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
15722 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
15723 (_spu_convert2): Change to define_insn_and_split and remove the
15724 corresponding define_peephole2.
15725 (stack_protect_set, stack_protect_test, stack_protect_test_si):
15726 Change predicates to memory_operand.
15727
15728 2009-05-22 Mark Mitchell <mark@codesourcery.com>
15729
15730 * config/arm/thumb2.md: Add 16-bit multiply instructions.
15731
15732 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15733
15734 PR tree-optimization/40219
15735 * tree.c (iterative_hash_expr): Make sure the builtin function is
15736 a normal builtin function and not a front end or back end builtin
15737 before indexing into the built_in_decls array.
15738
15739 2009-05-22 Richard Guenther <rguenther@suse.de>
15740
15741 PR middle-end/38964
15742 * alias.c (write_dependence_p): Do not use TBAA for answering
15743 anti-dependence or output-dependence.
15744 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
15745 (emit_pointer_definition): Remove.
15746 (emit_alias_warning): Likewise.
15747 (find_what_var_points_to): Remove TBAA pruning code.
15748 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
15749 violations.
15750 (compute_points_to_sets): Remove code computing the set of
15751 dereferenced pointers.
15752 * tree-data-ref.c (dr_may_alias_p): Properly use the split
15753 oracle for querying anti and output dependencies.
15754 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
15755 if TBAA may be applied.
15756 (refs_anti_dependent_p): New function.
15757 (refs_output_dependent_p): Likewise.
15758 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
15759 (refs_output_dependent_p): Likewise.
15760 * doc/tree-ssa.texi (Memory model): New section.
15761 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15762 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15763 * cfgexpand.c (expand_gimple_basic_block): Do not handle
15764 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
15765 * expr.c (expand_expr_real_1): Likewise.
15766 * gimple-low.c (lower_stmt): Likewise.
15767 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
15768 (dump_gimple_cdt): Remove.
15769 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15770 (gimple_size): Likewise.
15771 (walk_gimple_op): Likewise.
15772 (is_gimple_stmt): Likewise.
15773 (walk_stmt_load_store_addr_ops): Likewise.
15774 (gimple_build_cdt): Remove.
15775 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15776 * gimple.h (gimple_cdt_new_type): Remove.
15777 (gimple_cdt_new_type_ptr): Likewise.
15778 (gimple_cdt_set_new_type): Likewise.
15779 (gimple_cdt_location): Likewise.
15780 (gimple_cdt_location_ptr): Likewise.
15781 (gimple_cdt_set_location): Likewise.
15782 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15783 * tree-cfg.c (remove_useless_stmts_1): Do not handle
15784 GIMPLE_CHANGE_DYNAMIC_TYPE.
15785 (verify_types_in_gimple_stmt): Likewise.
15786 * tree-inline.c (estimate_num_insns): Likewise.
15787 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
15788 (copy_decl_to_var): Likewise.
15789 (copy_result_decl_to_var): Likewise.
15790 * tree-pretty-print.c (dump_generic_node): Do not handle
15791 CHANGE_DYNAMIC_TYPE_EXPR.
15792 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15793 * tree-ssa-operands.c (get_expr_operands): Likewise.
15794 * tree-ssa-structalias.c (struct variable_info): Remove
15795 no_tbaa_pruning member.
15796 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
15797 (unify_nodes): Do not copy it.
15798 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15799 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
15800 (set_uids_in_ptset): Do not check it.
15801 (find_what_var_points_to): Likewise.
15802 (compute_tbaa_pruning): Remove.
15803 (compute_points_to_sets): Do not call it.
15804 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15805 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15806 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
15807 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
15808 (DECL_NO_TBAA_P): Likewise.
15809 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
15810 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
15811 (expand_omp_atomic_pipeline): Do not set it.
15812 * print-tree.c (print_node): Do not dump it.
15813 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15814 redundant check.
15815
15816 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
15817
15818 PR target/39856
15819 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
15820 for clobber.
15821
15822 2009-05-22 Mark Mitchell <mark@codesourcery.com>
15823
15824 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
15825 non-external.
15826
15827 2009-05-22 Ben Elliston <bje@au.ibm.com>
15828
15829 * Makefile.in (bversion.h, s-bversion): New targets.
15830 (TOPLEV_H): Add bversion.h.
15831 * toplev.h: Include "bversion.h".
15832 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
15833 the __format__ attribute only if compiling with the same version
15834 of GCC as the sources (the "build version").
15835
15836 2009-05-22 Ben Elliston <bje@au.ibm.com>
15837
15838 * c-format.c (handle_format_attribute): Fix comment typo.
15839
15840 2009-05-21 Steve Ellcey <sje@cup.hp.com>
15841
15842 PR target/37846
15843 * config/ia64/ia64.opt (mfused-madd): New.
15844 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
15845 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
15846 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
15847 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
15848 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
15849 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
15850 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
15851 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
15852 instruction if !TARGET_FUSED_MADD.
15853 (fpma, fpms): Remove colon from name.
15854
15855 2009-05-22 Richard Guenther <rguenther@suse.de>
15856
15857 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15858 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
15859 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15860 TARGET_MEM_REF.
15861 (create_expression_by_pieces): Only convert if necessary.
15862 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
15863 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
15864
15865 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
15866
15867 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
15868 regular pattern from a template and rename it ...
15869 (*extzv_truncsi_exts): ... to this.
15870
15871 2009-05-21 Richard Guenther <rguenther@suse.de>
15872
15873 * cgraph.h (struct cgraph_node): Remove inline_decl member.
15874 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
15875 (cgraph_default_inline_p): Likewise.
15876 (cgraph_decide_inlining_incrementally): Likewise.
15877
15878 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
15879 Uros Bizjak <ubizjak@gmail.com>
15880
15881 * config/i386/cpuid.h (bit_MOVBE): New.
15882
15883 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15884
15885 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
15886 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
15887 (ix86_handle_option): Handle OPT_mmovbe.
15888 (ix86_target_string): Add -mmovbe.
15889 (pta_flags): Add PTA_MOVBE.
15890 (processor_alias_table): Add PTA_MOVBE to "atom".
15891 (override_options): Handle PTA_MOVBE.
15892
15893 * config/i386/i386.h (TARGET_MOVBE): New.
15894
15895 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
15896 (*bswapsi_movbe): New.
15897 (*bswapdi_movbe): Likewise.
15898 (bswapdi2): Renamed to ...
15899 (*bswapdi_1): This.
15900 (bswapdi2): New expander.
15901
15902 * config/i386/i386.opt (mmovbe): New.
15903
15904 * doc/invoke.texi: Document -mmovbe.
15905
15906 2009-05-21 Taras Glek <tglek@mozilla.com>
15907
15908 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
15909 * gcc-plugin.h (plugin_init): Updated signature.
15910 * gcc-plugin.h (plugin_name_args): Moved to this header.
15911 * doc/plugins.texi (plugin_init): Updated documention to reflect
15912 API change.
15913 * doc/plugins.texi (plugin_name_args): Added to documention.
15914
15915 2009-05-21 Mark Mitchell <mark@codesourcery.com>
15916
15917 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
15918 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
15919
15920 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
15921
15922 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
15923 JUMP_TABLE_DATA_P predicates where applicable.
15924 * config/i386/predicates.md: Ditto.
15925 * config/i386/sse.md: Ditto.
15926
15927 2009-05-21 Jakub Jelinek <jakub@redhat.com>
15928
15929 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
15930 operand2 -128 override length_immediate attribute to 1.
15931 * config/i386/predicates.md (constm128_operand): New predicate.
15932
15933 * config/i386/i386.c (memory_address_length): Handle %r12
15934 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
15935 also check REGNO.
15936 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
15937 mode look through optional ZERO_EXTEND and SUBREG.
15938 * config/i386/i386.md (R12_REG): New define_constant.
15939 (prefix_data16): For sse unit set also for MODE_TI insns.
15940 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
15941 insns set if operand 1 is ext_QIreg_operand.
15942 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
15943 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
15944 immediate.
15945 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
15946 mode from MODE_DI to MODE_SI.
15947 (movdi_1_rex64): Override modrm and length_immediate attributes
15948 only for movabs (TYPE_IMOV, alternative 2).
15949 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
15950 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15951 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15952 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15953 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
15954 prefix_rex attribute if DImode.
15955 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
15956 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
15957 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
15958 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
15959 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
15960 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
15961 Likewise. For TYPE_IMOV clear length_immediate attribute.
15962 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
15963 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
15964 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
15965 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
15966 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
15967 or one operand TYPE_ISHIFT.
15968 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
15969 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
15970 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
15971 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
15972 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
15973 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
15974 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
15975 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
15976 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
15977 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
15978 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
15979 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
15980 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
15981 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
15982 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
15983 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
15984 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
15985 set mode attribute, don't override length attribute.
15986 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
15987 to 1.
15988 (return_internal_long): Set length attribute to 2 instead of 1.
15989 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
15990 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
15991 prefix_rex attribute.
15992 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
15993 New predicates.
15994 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
15995
15996 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15997
15998 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
15999
16000 2009-05-20 Ian Lance Taylor <iant@google.com>
16001
16002 * tree.c (build_tree_list_vec_stat): New function.
16003 (ctor_to_vec): New function.
16004 (build_nt_call_vec): New function.
16005 (build_call_array): Change args to be a const pointer.
16006 (build_call_vec): New function.
16007 * tree.h (build_nt_call_vec): Declare.
16008 (build_tree_list_vec_stat): Declare.
16009 (build_tree_list_vec): Define.
16010 (build_call_array): Update declaration.
16011 (build_call_vec): Declare.
16012 (ctor_to_vec): Declare.
16013 * c-common.c (tree_vector_cache): New static variable.
16014 (make_tree_vector): New function.
16015 (release_tree_vector): New function.
16016 (make_tree_vector_single): New function.
16017 (make_tree_vector_copy): New function.
16018 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16019 (make_tree_vector_single, make_tree_vector_copy): Declare.
16020 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16021 (c_parser_expr_list): Don't manage cache here, instead call
16022 make_tree_vector.
16023 (c_parser_release_expr_list): Remove static function.
16024 (c_parser_vec_to_tree_list): Remove static function.
16025 (c_parser_attributes): Call build_tree_list_vec instead of
16026 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16027 c_parser_release_expr_list.
16028 (c_parser_postfix_expression_after_primary): Likewise.
16029 (c_parser_objc_keywordexpr): Likewise.
16030
16031 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16032
16033 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16034 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16035 TARGET_CONVERT_TO_TYPE.
16036 * hooks.c (hook_tree_const_tree_null): Define.
16037 * hooks.h (hook_tree_const_tree_null): Declare.
16038 * target.h (struct gcc_target): Add invalid_parameter_type,
16039 invalid_return_type, promoted_type, and convert_to_type fields.
16040 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16041 (TARGET_INVALID_RETURN_TYPE): Define.
16042 (TARGET_PROMOTED_TYPE): Define.
16043 (TARGET_CONVERT_TO_TYPE): Define.
16044 (TARGET_INITIALIZER): Update for new fields.
16045 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16046 (grokparms): Check targetm.invalid_parameter_type.
16047 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16048 * c-convert.c (convert): Check targetm.convert_to_type.
16049
16050 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16051
16052 * config/mips/mips.md (*extenddi_truncate<mode>,
16053 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16054 defintions.
16055 (*extendhi_truncateqi): New define_insn_and_sptit.
16056
16057 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16058
16059 PR middle-end/40204
16060 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16061 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16062
16063 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16064
16065 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16066 the operand of VIEW_CONVERT_EXPR.
16067
16068 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16069
16070 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16071 extended family and model for Intel processors. Support Intel Atom.
16072
16073 2009-05-20 Olivier Hainque <hainque@adacore.com>
16074
16075 * gstab.h (stab_code_type): Define, to be used instead of the
16076 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16077 notice.
16078 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16079 occurrences by stab_code_type.
16080 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16081
16082 2009-05-20 Martin Jambor <mjambor@suse.cz>
16083
16084 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16085 (sra_insert_before): Likewise.
16086 (sra_insert_after): Likewise.
16087 (sra_init_cache): Likewise.
16088 (sra_type_can_be_decomposed_p): Likewise.
16089 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16090 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16091 (sra_insert_before): Likewise.
16092 (sra_insert_after): Likewise.
16093 (sra_init_cache): Likewise.
16094 (insert_edge_copies_seq): Made static and moved upwards.
16095
16096 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16097 case.
16098
16099 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16100
16101 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16102 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16103 simple copies.
16104
16105 2009-05-20 Richard Guenther <rguenther@suse.de>
16106
16107 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16108 with mismatched comparison modes.
16109
16110 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16111
16112 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16113 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16114 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16115 with shifts for Thumb2.
16116 (orsi_notsi): New for orn.
16117 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16118 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16119 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16120 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16121 Don't invert remainder for IOR.
16122
16123 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16124
16125 PR tree-optimization/40087
16126 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16127 number_of_iterations_ne): Rename never_infinite argument.
16128 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16129 number_of_iterations_le): Handle pointer-type ivs when
16130 exit_must_be_taken is false.
16131 (number_of_iterations_cond): Do not always assume that
16132 exit_must_be_taken if the control variable is a pointer.
16133
16134 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16135
16136 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16137 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16138
16139 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16140
16141 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16142 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16143
16144 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16145
16146 PR c/40172
16147 * c.opt (Wlogical-op): Disabled by default.
16148 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16149 Wextra.
16150 * doc/invoke.texi (Wlogical-op): Likewise.
16151
16152 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16153
16154 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16155 into CASE_CONVERT.
16156 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16157 Propagate the type of the first operand.
16158 <ASSERT_EXPR>: Simplify.
16159 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16160 Rewrite using the RHS code as discriminant.
16161 <NOP_EXPR>: Turn into CASE_CONVERT.
16162 <PLUS_EXPR>: Propagate the type of the first operand.
16163
16164 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16165
16166 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16167 (ia64_dconst_0_375): New.
16168 * config/ia64/ia64.c (ia64_override_options): Remove
16169 -minline-sqrt-min-latency warning.
16170 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16171 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16172 * config/ia64/ia64.md (*sqrt_approx): Remove.
16173 (sqrtsf2): Remove #if 0.
16174 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16175 (sqrtdf): Remove assert.
16176 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16177 (sqrtxf2): Remove #if 0.
16178 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16179 * div.md (sqrt_approx_rf): New.
16180 (sqrtsf2_internal_thr): New implementation.
16181 (sqrtsf2_internal_lat): New.
16182 (sqrtdf2_internal_thr: New implementation.
16183 (sqrtxf2_internal): New implementation.
16184
16185 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16186 Hans-Peter Nilsson <hp@axis.com>
16187
16188 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16189 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16190 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16191 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16192 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16193 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16194 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16195 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16196 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16197 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16198 * c-common.c: ...from here.
16199
16200 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16201
16202 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16203
16204 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16205
16206 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16207
16208 2009-05-19 Ben Elliston <bje@au.ibm.com>
16209
16210 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16211 assignments with memcpy calls.
16212 (add_fdes): Likewise.
16213 (binary_search_unencoded_fdes): Likewise.
16214 (linear_search_fdes): Eliminate type puns.
16215
16216 2009-05-19 Richard Guenther <rguenther@suse.de>
16217
16218 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16219 not falsely claim to have propagated into all uses.
16220
16221 2009-05-19 Ben Elliston <bje@au.ibm.com>
16222
16223 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16224 version to v3.0.
16225
16226 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16227
16228 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16229 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16230 (TARGET_LEGITIMATE_ADDRESS_P): New.
16231 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16232 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16233
16234 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16235
16236 PR debug/40109
16237 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16238 child of the containing namespace's DIE.
16239
16240 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16241
16242 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16243 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16244 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16245 extend patterns.
16246
16247 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16248
16249 PR target/39942
16250 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16251 gen_align with gen_pad.
16252 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16253 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16254
16255 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16256 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16257
16258 * config/i386/i386.md (align): Renamed to ...
16259 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16260 ASM_OUTPUT_MAX_SKIP_PAD.
16261
16262 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16263
16264 * config.gcc: Fix variable syntax.
16265
16266 PR target/39531
16267 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16268 before calling exact_log2.
16269 (output_iorsi3): Likewise.
16270 (output_xorsi3): Likewise.
16271
16272 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16273
16274 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16275 for the none zero constant operand except for EQ and NE
16276 comprisons even when the first operand is R0.
16277
16278 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16279
16280 * config/s390/2064.md: Remove trailing whitespaces.
16281 * config/s390/2084.md: Likewise.
16282 * config/s390/constraints.md: Likewise.
16283 * config/s390/fixdfdi.h: Likewise.
16284 * config/s390/libgcc-glibc.ver: Likewise.
16285 * config/s390/s390-modes.def: Likewise.
16286 * config/s390/s390-protos.h: Likewise.
16287 * config/s390/s390.c: Likewise.
16288 * config/s390/s390.h: Likewise.
16289 * config/s390/s390.md: Likewise.
16290 * config/s390/tpf-unwind.h: Likewise.
16291
16292 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16293
16294 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16295
16296 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16297
16298 M68K TLS support.
16299 * configure.ac (m68k-*-*): Check if binutils support TLS.
16300 * configure: Regenerate.
16301 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16302 * config/m68k/constraints.md (Cu): New constraint.
16303 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16304 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16305 (movsi): Handle TLS symbols.
16306 (addsi3_5200): Handle XTLS symbols, indent.
16307 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16308 (m68k_tls_reference_p): Declare.
16309 (m68k_legitimize_address): Declare.
16310 (m68k_unwrap_symbol): Declare.
16311 * config/m68k/m68k.opt (mxtls): New option.
16312 * config/m68k/m68k.c (ggc.h): Include.
16313 (m68k_output_dwarf_dtprel): Implement hook.
16314 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16315 (m68k_expand_prologue): Load GOT pointer when function needs it.
16316 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16317 (m68k_legitimate_constant_address_p): Same.
16318 (m68k_decompose_address): Handle TLS references.
16319 (m68k_get_gp): New static function.
16320 (enum m68k_reloc): New contants.
16321 (TLS_RELOC_P): New macro.
16322 (m68k_wrap_symbol): New static function.
16323 (m68k_unwrap_symbol): New function.
16324 (m68k_final_prescan_insn_1): New static function.
16325 (m68k_final_prescan_insn): New function.
16326 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16327 functions.
16328 (legitimize_pic_address): Handle TLS references..
16329 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16330 (m68k_libcall_value_in_a0_p)
16331 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16332 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16333 (m68k_legitimize_tls_address): Handle TLS references.
16334 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16335 New functions.
16336 (m68k_legitimize_address): Handle TLS symbols.
16337 (m68k_get_reloc_decoration): New static function.
16338 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16339 UNSPEC_RELOC32.
16340 (m68k_output_dwarf_dtprel): Implement hook.
16341 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16342 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16343 m68k_call_* routines.
16344 (sched_attr_op_type): Handle TLS symbols.
16345 (gt-m68k.h): Include.
16346 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16347 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16348
16349 2009-05-18 Martin Jambor <mjambor@suse.cz>
16350
16351 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16352 (visit_store_addr_for_mod_analysis): New function.
16353 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16354 (determine_cst_member_ptr): Use gimple_assign_single_p.
16355 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16356 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16357 operands. Don't check number of operands of a NOP_EXPR.
16358
16359 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16360
16361 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16362
16363 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16364
16365 PR c/40172
16366 * c-common.c (warn_logical_operator): Don't warn if one of
16367 expression isn't always true or false.
16368
16369 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16370
16371 * config/i386/biarch32.h: New file.
16372 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16373
16374 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16375
16376 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16377 *zero_extend<mode>_truncqi): Merge these into ...
16378 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16379 Name the pattern following this as *zero_extendhi_truncqi.
16380
16381 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
16382
16383 PR middle-end/39301
16384 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16385 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16386 (output_info): Make field HOST_WIDEST_INT.
16387 (print_statistics): Use HOST_WIDEST_INT_PRINT.
16388 (dump_bitmat_statistics): Same.
16389
16390 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
16391
16392 * config.gcc (use_gcc_stdint): Set to wrap.
16393 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16394 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16395 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16396 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16397 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16398 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16399 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16400 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16401
16402 2009-05-16 Joseph Myers <joseph@codesourcery.com>
16403
16404 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16405 tune_64.
16406 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16407 Move definitions earlier.
16408 (OPT_ARCH64, OPT_ARCH32): Define.
16409 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16410 and tune_64.
16411
16412 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16413
16414 PR target/40153
16415 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16416 implies.
16417
16418 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16419
16420 * arm.md (movdi2): Copy non-reg values to DImode registers.
16421
16422 2009-05-16 Jakub Jelinek <jakub@redhat.com>
16423
16424 PR target/39942
16425 * final.c (label_to_max_skip): New function.
16426 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16427 CODE_LABEL_NUMBER <= max_labelno.
16428 * output.h (label_to_max_skip): New prototype.
16429 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16430 (ix86_avoid_jump_mispredicts): ... this. Don't define if
16431 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
16432 Handle CODE_LABELs with >= 16 byte alignment or with
16433 max_skip == (1 << align) - 1.
16434 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16435 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16436
16437 PR target/39942
16438 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16439 .p2align 3 if MAX_SKIP is smaller than 7.
16440 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16441
16442 2009-05-15 Ian Lance Taylor <iant@google.com>
16443
16444 * alias.c (struct alias_set_entry_d): Rename from struct
16445 alias_set_entry. Change all uses.
16446 * except.c (struct call_site_record_d): Rename from struct
16447 call_site_record. Change all uses.
16448 * except.h (struct eh_region_d): Rename from struct eh_region.
16449 Change all uses.
16450 * gcse.c (struct hash_table_d): Rename from struct hash_table.
16451 Change all uses.
16452 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16453 ivtype_map_elt. Change all uses.
16454 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16455 Change all uses.
16456 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
16457 * graphite.h (struct name_tree_d): Rename from struct name_tree.
16458 Change all uses.
16459 (struct sese_d): Rename from struct sese. Change all uses.
16460 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
16461 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
16462 * optabs.h (struct optab_d): Rename from struct optab. Change all
16463 uses.
16464 (struct convert_optab_d): Rename from struct convert_optab.
16465 Change all uses.
16466 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16467 ipa_opt_pass. Change all uses.
16468 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
16469 all uses.
16470
16471 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16472 defined as a typedef.
16473 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16474 defined as a tag.
16475
16476 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16477
16478 PR 16302
16479 * fold-const.c (make_range,build_range_check,merge_ranges): Move
16480 declaration to...
16481 (merge_ranges): Returns bool.
16482 * tree.h (make_range): .. to here.
16483 (build_range_check): Likewise.
16484 (merge_ranges): Likewise. Renamed from merge_ranges.
16485 * c-typeck.c (parser_build_binary_op): Update calls to
16486 warn_logical_operator.
16487 * c-common.c (warn_logical_operator): Add new warning.
16488 * c-common.h (warn_logical_operator): Update declaration.
16489
16490 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16491
16492 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16493
16494 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16495
16496 * doc/install.texi: Document MPC requirements, flags etc.
16497
16498 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16499 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16500 Evaluate constant arguments.
16501 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16502 (fold_builtin_1): Likewise, also evaluate constant arguments.
16503 Remove superfluous break.
16504 (do_mpc_ckconv): New.
16505 * real.h: Include mpc.h.
16506 * toplev.c (print_version): Output MPC version info if available.
16507
16508 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16509
16510 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16511
16512 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
16513
16514 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16515 only once.
16516
16517 2009-05-15 Jan Hubicka <jh@suse.cz>
16518
16519 * doc/invoke.texi (max-early-inliner-iterations): New flag.
16520 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16521 (try_inline): Fix return value.
16522 (cgraph_decide_inlining_incrementally): Honor new value.
16523 (cgraph_early_inlining): Handle indirect inlining.
16524 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16525
16526 2009-05-15 Jan Hubicka <jh@suse.cz>
16527
16528 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16529 * cgraphunit.c (cgraph_finalize_function): Set it.
16530 (cgraph_expand_function): Use it.
16531
16532 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16533
16534 * real.c (encode_ieee_half): Define.
16535 (decode_ieee_half): Define.
16536 (ieee_half_format): Define.
16537 (arm_half_format): Define.
16538 * real.h (ieee_half_format): Declare.
16539 (arm_half_format): Declare.
16540
16541 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16542
16543 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
16544 swapped, and reversed optabs exist before trying to use them.
16545
16546 2009-05-15 Paul Brook <paul@codesourcery.com>
16547 Sandra Loosemore <sandra@codesourcery.com>
16548
16549 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16550 loads. Allow PRE_DEC.
16551 (output_move_neon): Handle PRE_DEC.
16552 (arm_print_operand): Add 'A' for neon structure loads.
16553 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16554 * config/arm/neon.md (neon_mov): Update comment.
16555 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16556 calls.
16557 (Um): New constraint.
16558
16559 2009-05-15 Jan Hubicka <jh@suse.cz>
16560
16561 Revert the following patch until testsuite fallout is fixed:
16562 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16563 * cgraph.h (struct inline_summary): New filed self_wize,
16564 size_inlining_benefit, self_time and time_inlining_benefit.
16565 (struct cgraph_global_info): Replace insns by time ans size fields.
16566 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16567 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16568 (ipcp_update_callgraph): Do not touch function bodies.
16569 * ipa-inline.c: Include except.h
16570 (MAX_TIME): New constant.
16571 (overall_insns): Remove
16572 (overall_size, max_benefit): New static variables.
16573 (cgraph_estimate_time_after_inlining): New function.
16574 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16575 (cgraph_clone_inlined_nodes): Update size.
16576 (cgraph_mark_inline_edge): Update size.
16577 (cgraph_estimate_growth): Use size info.
16578 (cgraph_check_inline_limits): Check size.
16579 (cgraph_default_inline_p): Likewise.
16580 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16581 (cgraph_decide_recursive_inlining): Check size.
16582 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16583 and times.
16584 (cgraph_decide_inlining): Likewise.
16585 (cgraph_decide_inlining_incrementally): Likewise; honor
16586 PARAM_EARLY_INLINING_INSNS.
16587 (likely_eliminated_by_inlining_p): New predicate.
16588 (estimate_function_body_sizes): New function.
16589 (compute_inline_parameters): Use it.
16590 * except.c (must_not_throw_labels): New function.
16591 * except.h (must_not_throw_labels): Declare.
16592 * tree-inline.c (init_inline_once): Kill inlining_weigths
16593 * tree-ssa-structalias.c: Avoid uninitialized warning.
16594 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16595 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16596 (PARAM_INLINE_CALL_COST): Remove.
16597 (PARAM_EARLY_INLINING_INSNS): New.
16598
16599 2009-05-15 Richard Guenther <rguenther@suse.de>
16600
16601 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16602 not TODO_update_ssa.
16603
16604 2009-05-15 Richard Guenther <rguenther@suse.de>
16605
16606 PR tree-optimization/39999
16607 * gimple.h (gimple_expr_type): Use the expression type looking
16608 through useless conversions.
16609 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16610 (vn_nary_op_insert_stmt): Likewise.
16611 (simplify_binary_expression): Likewise.
16612
16613 2009-05-15 Richard Guenther <rguenther@suse.de>
16614
16615 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16616 New options, enabled by default.
16617 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16618 Document.
16619 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16620 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16621 * tree-ssa-structalias.c (gate_tree_pta): New function.
16622 (pass_build_alias): Use it.
16623
16624 2009-05-15 Joseph Myers <joseph@codesourcery.com>
16625
16626 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16627 recurse on an invariant address if a conversion from a pointer
16628 type to a wider integer type is involved.
16629
16630 2009-05-15 Jan Hubicka <jh@suse.cz>
16631
16632 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16633 * cgraph.h (struct inline_summary): New filed self_wize,
16634 size_inlining_benefit, self_time and time_inlining_benefit.
16635 (struct cgraph_global_info): Replace insns by time ans size fields.
16636 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16637 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16638 (ipcp_update_callgraph): Do not touch function bodies.
16639 * ipa-inline.c: Include except.h
16640 (MAX_TIME): New constant.
16641 (overall_insns): Remove
16642 (overall_size, max_benefit): New static variables.
16643 (cgraph_estimate_time_after_inlining): New function.
16644 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16645 (cgraph_clone_inlined_nodes): Update size.
16646 (cgraph_mark_inline_edge): Update size.
16647 (cgraph_estimate_growth): Use size info.
16648 (cgraph_check_inline_limits): Check size.
16649 (cgraph_default_inline_p): Likewise.
16650 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16651 (cgraph_decide_recursive_inlining): Check size.
16652 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16653 and times.
16654 (cgraph_decide_inlining): Likewise.
16655 (cgraph_decide_inlining_incrementally): Likewise; honor
16656 PARAM_EARLY_INLINING_INSNS.
16657 (likely_eliminated_by_inlining_p): New predicate.
16658 (estimate_function_body_sizes): New function.
16659 (compute_inline_parameters): Use it.
16660 * except.c (must_not_throw_labels): New function.
16661 * except.h (must_not_throw_labels): Declare.
16662 * tree-inline.c (init_inline_once): Kill inlining_weigths
16663 * tree-ssa-structalias.c: Avoid uninitialized warning.
16664 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16665 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16666 (PARAM_INLINE_CALL_COST): Remove.
16667 (PARAM_EARLY_INLINING_INSNS): New.
16668 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
16669 (inline-call-cost): Remove.
16670 (early-inlining-insns): New.
16671
16672 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
16673
16674 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
16675 for bounds.
16676 (print_int_cst_bounds_in_octal_p): Likewise.
16677 (dbxout_type): Adjust calls to above functions. Be prepared to deal
16678 with subtypes.
16679 * dwarf2out.c (base_type_die): Likewise.
16680 (is_subrange_type): Delete.
16681 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
16682 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
16683 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
16684 if the destination type is boolean.
16685 (build_range_check): Do not special-case subtypes.
16686 (fold_sign_changed_comparison): Likewise.
16687 (fold_unary): Likewise.
16688 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
16689 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
16690 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
16691 * tree.c (subrange_type_for_debug_p): New predicate based on the
16692 former is_subrange_type.
16693 * tree.h (subrange_type_for_debug_p): Declare.
16694 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
16695 (convert_affine_scev): Remove call to above function.
16696 (chrec_convert_aggressive): Likewise.
16697 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
16698 false for conversions involving subtypes.
16699 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
16700 (vrp_val_min): Likewise.
16701 (needs_overflow_infinity): Likewise.
16702 (extract_range_from_unary_expr): Likewise.
16703
16704 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
16705
16706 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16707 * config/frv/frv.c: Likewise.
16708 * config/s390/s390.c: Likewise.
16709 * config/sparc/sparc.h: Likewise.
16710 * config/i386/i386.h: Likewise.
16711 * config/i386/i386.c: Likewise.
16712 * config/crx/crx.c: Likewise.
16713 * config/m68hc11/m68hc11.h: Likewise.
16714 * config/iq2000/iq2000.c: Likewise.
16715 * config/mn10300/mn10300.h: Likewise.
16716 * config/mn10300/mn10300.c: Likewise.
16717 * config/m68k/m68k.c: Likewise.
16718 * config/rs6000/rs6000.c: Likewise.
16719 * config/rs6000/xcoff.h: Likewise.
16720 * config/rs6000/linux64.h: Likewise.
16721 * config/rs6000/sysv4.h: Likewise.
16722 * config/score/score3.c: Likewise.
16723 * config/score/score7.c: Likewise.
16724 * config/score/score.c: Likewise.
16725 * config/arm/arm.md: Likewise.
16726 * config/mips/mips.c: Likewise.
16727 * config/mips/mips.md: Likewise.
16728 * config/bfin/bfin.h: Likewise.
16729 * config/pa/pa.c: Likewise.
16730 * config/pa/constraints.md: Likewise.
16731
16732 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
16733 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
16734 * config/pdp11/pdp11.h: Use memory_address_p instead.
16735
16736 2009-05-14 Ian Lance Taylor <iant@google.com>
16737
16738 * passes.c (finish_optimization_passes): Change i to int.
16739 * plugin.c (plugins_active_p): Change event to int.
16740 (dump_active_plugins): Likewise.
16741 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
16742 Add cast.
16743 * tree.c (tree_range_check_failed): Change c to unsigned int.
16744 (omp_clause_range_check_failed): Likewise.
16745 (build_common_builtin_nodes): Change mode to int. Add cast.
16746 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
16747 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
16748
16749 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
16750 ++ or -- with a variable of enum type.
16751
16752 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
16753
16754 PR driver/40144
16755 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
16756
16757 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
16758
16759 * store-motion.c: Do not include params.h
16760 * Makefile.in: Fix dependencies for various files.
16761
16762 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
16763
16764 * auto-inc-dec.c: Fix pass description, remove apparent
16765 accidental duplication.
16766
16767 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
16768
16769 PR middle-end/40147
16770 * ipa-utils.h (memory_identifier_string): Moved to ...
16771 * tree.h (memory_identifier_string): Here. Add GTY(()).
16772
16773 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
16774
16775 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
16776 in the former documentation of...
16777 (GO_IF_LEGITIMATE_ADDRESS): ... this.
16778 * ira-conflicts.c (get_dup_num): Use address_operand.
16779 * targhooks.c (default_legitimate_address_p): New.
16780 * targhooks.h (default_legitimate_address_p): New.
16781 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
16782 Call hook.
16783 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
16784 * target.h (struct target): Add legitimate_address_p.
16785 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
16786 (TARGET_INITIALIZER): Include it.
16787
16788 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16789 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
16790 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
16791 (TARGET_LEGITIMATE_ADDRESS_P): New.
16792
16793 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16794 (REG_OK_STRICT_P): Delete.
16795 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
16796 (frv_legitimate_address_p_1): ... this.
16797 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
16798 (frv_legitimate_address_p_1): ... the renamed old
16799 frv_legitimate_address_p.
16800 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
16801 (TARGET_LEGITIMATE_ADDRESS_P): New.
16802
16803 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16804 * config/s390/s390-protos.h (legitimate_address_p): Remove.
16805 * config/s390/s390.c (legitimate_address_p): Rename to...
16806 (s390_legitimate_address_p): ... this, make static.
16807 (legitimize_address): Adjust call.
16808 (TARGET_LEGITIMATE_ADDRESS_P): New.
16809 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
16810
16811 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16812 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
16813 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
16814 (TARGET_LEGITIMATE_ADDRESS_P): New.
16815
16816 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16817 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
16818 * config/spu/spu.c (spu_legitimate_address): Rename to...
16819 (spu_legitimate_address_p): ... this, make static.
16820 (TARGET_LEGITIMATE_ADDRESS_P): New.
16821
16822 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16823 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
16824 * config/sparc/sparc.c (legitimate_address_p): Rename to...
16825 (sparc_legitimate_address_p): ... this, make static and return bool.
16826 (legitimize_address): Adjust call.
16827 (TARGET_LEGITIMATE_ADDRESS_P): New.
16828
16829 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16830 * config/i386/i386-protos.h (legitimate_address_p): Remove.
16831 * config/i386/i386.c (legitimate_address_p): Rename to...
16832 (ix86_legitimate_address_p): ... this, make static.
16833 (constant_address_p): Move after it, adjust call.
16834 (TARGET_LEGITIMATE_ADDRESS_P): New.
16835
16836 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16837 * config/avr/avr-protos.h (legitimate_address_p): Remove.
16838 * config/avr/avr.c (legitimate_address_p): Rename to...
16839 (avr_legitimate_address_p): ... this, make static.
16840 (legitimize_address): Adjust call.
16841 (TARGET_LEGITIMATE_ADDRESS_P): New.
16842
16843 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16844 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
16845 * config/crx/crx.c (crx_legitimate_address_p): Make static.
16846 (TARGET_LEGITIMATE_ADDRESS_P): New.
16847
16848 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16849 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
16850 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
16851 (TARGET_LEGITIMATE_ADDRESS_P): New.
16852
16853 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16854 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
16855 Remove.
16856 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16857 Make static.
16858 (TARGET_LEGITIMATE_ADDRESS_P): New.
16859
16860 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16861 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
16862 Remove.
16863 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
16864 Rename to...
16865 (m68hc11_legitimate_address_p): ... this, make static.
16866 (go_if_legitimate_address_internal): Rename to...
16867 (m68hc11_legitimate_address_p_1): ... this.
16868 (legitimize_address): Adjust call.
16869 (TARGET_LEGITIMATE_ADDRESS_P): New.
16870
16871 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16872 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
16873 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
16874 (TARGET_LEGITIMATE_ADDRESS_P): New.
16875
16876 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16877 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
16878 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
16879 (mn10300_legitimate_address_p): ... this, make static.
16880 (TARGET_LEGITIMATE_ADDRESS_P): New.
16881
16882 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16883 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
16884 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
16885 (TARGET_LEGITIMATE_ADDRESS_P): New.
16886
16887 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16888 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
16889 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
16890 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16891 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
16892 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
16893 (rs6000_legitimate_address_p): ... this, make static.
16894 (TARGET_LEGITIMATE_ADDRESS_P): New.
16895 (REG_MODE_OK_FOR_BASE_P): Delete.
16896 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
16897
16898 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16899 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
16900 Delete.
16901 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
16902 static, adjust types.
16903 (TARGET_LEGITIMATE_ADDRESS_P): New.
16904
16905 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16906 * config/score/score.c (score_address_p): Rename to...
16907 (score_legitimate_address_p): ... this.
16908 (TARGET_LEGITIMATE_ADDRESS_P): New.
16909 * config/score/score3.c (score3_address_p): Rename to...
16910 (score3_legitimate_address_p): ... this.
16911 * config/score/score7.c (score7_address_p): Rename to...
16912 (score7_legitimate_address_p): ... this.
16913
16914 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
16915 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
16916 GO_IF_LEGITIMATE_ADDRESS): Delete.
16917 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
16918 thumb2_legitimate_address_p): Delete.
16919 (arm_legitimate_address_p): Rename to...
16920 (arm_legitimate_address_outer_p): ... this.
16921 * config/arm/constraints.md ("Uq"): Adjust call.
16922 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
16923 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
16924 to...
16925 (arm_legitimate_address_outer_p): ... this.
16926 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
16927 static.
16928 (TARGET_LEGITIMATE_ADDRESS_P): New.
16929
16930 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16931 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
16932 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
16933 (TARGET_LEGITIMATE_ADDRESS_P): New.
16934
16935 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16936 * config/vax/vax-protos.h (legitimate_address_p): Remove.
16937 * config/vax/vax.c (legitimate_address_p): Rename to...
16938 (vax_legitimate_address_p): ... this, make static.
16939 (TARGET_LEGITIMATE_ADDRESS_P): New.
16940
16941 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16942 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
16943 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
16944 (TARGET_LEGITIMATE_ADDRESS_P): New.
16945
16946 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16947 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
16948 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
16949 (mmix_legitimate_address_p): ... this, make static.
16950 (TARGET_LEGITIMATE_ADDRESS_P): New.
16951
16952 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16953 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
16954 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
16955 (TARGET_LEGITIMATE_ADDRESS_P): New.
16956
16957 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
16958
16959 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
16960 of MODE_COMPLEX_INT.
16961
16962 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16963
16964 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
16965 LCT_NORMAL in function call.
16966 * mips-tdump.c (print_file_desc): Add cast to enum type.
16967 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
16968 (mark_stabs): Add casts to enum types.
16969 (parse_stabs_common): Add casts to enum types.
16970
16971 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
16972
16973 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
16974 Check for invalid values of LETTER.
16975
16976 2009-05-13 Taras Glek <tglek@mozilla.com>
16977
16978 * attribs.c (register_attribute): moved out attribute registration
16979 into register_attribute.
16980 * doc/plugins.texi: Documented register_attribute and
16981 PLUGIN_ATTRIBUTES.
16982 * gcc-plugin.h: Added forward decl for register_attribute.
16983 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
16984 * plugin.c (register_callback, invoke_plugin_callbacks): Added
16985 PLUGIN_ATTRIBUTES boilerplate.
16986
16987 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
16988
16989 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
16990 values even in sentinel and empty entries.
16991 (ms_printf_flag_specs): Likewise.
16992 (ms_scanf_flag_specs): Likewise.
16993 (ms_strftime_flag_specs): Likewise.
16994 (ms_print_char_table): Likewise.
16995 (ms_scan_char_table): Likewise.
16996 (ms_time_char_table): Likewise.
16997
16998 2009-05-13 Doug Kwan <dougkwan@google.com>
16999
17000 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17001
17002 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17003
17004 * config/mips/mips.md (store): Add attributes for QI and HI.
17005 Update comment.
17006 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17007 (truncdi<mode>2): ... this new pattern.
17008
17009 2009-05-13 Brad Hards <bradh@kde.org>
17010
17011 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17012
17013 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17014 Ben Elliston <bje@au.ibm.com>
17015
17016 PR middle-end/40035
17017 * dse.c (check_mem_read_rtx): Guard against width == -1.
17018
17019 2009-05-13 Michael Matz <matz@suse.de>
17020
17021 PR middle-end/39976
17022 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17023 (trivially_conflicts_p): New function.
17024 (insert_backedge_copies): Use it.
17025
17026 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17027
17028 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17029 (handle_stdc_pragma): Use new enum constant names.
17030 (handle_pragma_float_const_decimal64): Ditto.
17031
17032 2009-05-13 Ian Lance Taylor <iant@google.com>
17033
17034 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17035 tree.def.
17036
17037 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17038
17039 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17040 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17041 multilibs.
17042 * config/m68k/m68k.h (FL_UCLINUX): Define.
17043
17044 2009-05-13 Jan Hubicka <jh@suse.cz>
17045
17046 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17047
17048 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17049
17050 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17051 unless -fschedule-insns is specified.
17052
17053 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17054
17055 PR target/39561
17056 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17057 TARGET_EXPAND_CBRANCHDI4.
17058 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17059 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17060 (cmpeqdi): Fix comment.
17061
17062 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17063
17064 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17065 (sh_legitimate_address_p): Likewise.
17066 * config/sh/sh.c (sh_legitimate_index_p): New.
17067 (sh_legitimate_address_p): Likewise.
17068 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17069 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17070 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17071 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17072 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17073 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17074 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17075 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17076 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17077
17078 2009-05-12 Jan Hubicka <jh@suse.cz>
17079
17080 * tree-inline.c (estimate_operator_cost): Add operands;
17081 when division happens by constant, it is cheap.
17082 (estimate_num_insns): Loads and stores are not having cost of 0;
17083 EH magic stuff is cheap; when computing runtime cost of switch,
17084 use log2 base of amount of its cases; builtin_expect has cost of 0;
17085 compute cost for moving return value of call.
17086 (init_inline_once): Initialize time_based flags.
17087 * tree-inline.h (eni_weights_d): Add time_based flag.
17088
17089 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17090
17091 * df-core.c: Update head documentation.
17092
17093 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17094
17095 PR bootstrap/40118
17096 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17097 shadowing exisiting variable op1.
17098
17099 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17100
17101 PR target/37179
17102 * config/i386/driver-i386.c (processor_signatures): New enum.
17103 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17104 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17105 processor signature to detect geode processor.
17106
17107 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17108
17109 Revert:
17110
17111 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17112
17113 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17114 causes spurious differences between trunk and cond-optab branch.
17115
17116 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17117
17118 * dojump.c (compare_from_rtx): Delete.
17119 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17120 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17121 if the comparison does not satisfy the predicate; test predicates for
17122 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17123 further if one existing pattern fails.
17124 * expr.h (compare_from_rtx): Delete.
17125 (prepare_operand): Declare it.
17126 * optabs.c: Change "lib call" to "libcall" throughout.
17127 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17128 HAVE_conditional_trap, emit_cmp_insn): Delete.
17129 (can_compare_p): Delete cmp_optab case.
17130 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17131 Accept other parameters by value.
17132 (prepare_operand): Make non-static.
17133 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17134 other parameters by value. Try to widen operands here based on
17135 an optab_methods argument and looking at cbranch_optab.
17136 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17137 loop. Use cbranch_optab directly.
17138 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17139 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17140 assertion.
17141 (emit_conditional_move, emit_conditional_add): Inline what's needed
17142 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17143 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17144 with COMPARE. Move cmov_optab and cstore_optab above
17145 with cbranch_optab, move cmp_optab down with ucmp_optab,
17146 remove tst_otpab. Do not initialize trap_rtx.
17147 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17148 for trap code. Do not check HAVE_conditional_trap. Use
17149 prepare_cmp_insn. Accept no predicate for operand 3.
17150 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17151 (OTI_ctrap, ctrap_optab): New.
17152 (tst_optab): Delete.
17153 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17154 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17155 with lookup of ctrap_optab.
17156 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17157 Delete.
17158 (ctrap_optab): New.
17159
17160 * combine.c (combine_simplify_rtx, simplify_set): Do not
17161 special case comparing against zero for cc0 machines.
17162 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17163 COMPARE on cc0 machines.
17164 (simplify_relational_operation): Return a new expression when
17165 a COMPARE could be removed.
17166 * final.c (final_scan_insn): Compare cc_status values
17167 against LHS of a (compare FOO (const_int 0)) cc0 source.
17168 Also check if cc_status.value is the full compare.
17169
17170 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17171 (cstoreMM4): Document.
17172 (conditional_trap): Document ctrapMM4 instead.
17173 (sync_compare_and_swapMM): Refer to cbranchcc4.
17174 (Dependent Patterns): Eliminate obsolete information referring to
17175 the old jump optimization phase.
17176 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17177 of compares with 0 on cc0 machines.
17178 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17179 avoiding references to cc0. Remove text about storing operands
17180 in cmpMM.
17181 * doc/tm.texi (Condition Codes): Include blurb on different
17182 condition code representations, separate into subsections for
17183 CC0, MODE_CC and conditional execution.
17184
17185 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17186 alpha_emit_setcc): Accept operands and a machine mode.
17187 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17188 Get code/op0/op1 from operands, use machine mode argument
17189 instead of alpha_compare.fp_p. Emit the branch here.
17190 (alpha_emit_setcc): Likewise, and return boolean.
17191 (alpha_emit_conditional_move): Likewise. Assert that
17192 cmp_op_mode == cmp_mode, and simplify accordingly.
17193 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17194 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17195 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17196 Delete.
17197 (stack probe test): Use cbranchdi4.
17198 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17199
17200 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17201 * config/arc/arc.h (movsicc, movsfcc): Use it.
17202 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17203 (cbranchsi4, cstoresi4): New.
17204 (cmpsi, bCC and sCC expanders): Remove.
17205
17206 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17207 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17208 * config/arm/predicates.md (arm_comparison_operator): Only include
17209 floating-point operators if there is a hardware floating-point unit.
17210 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17211 deferring to cbranch_cc and cstore_cc respectively.
17212 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17213 cbranch_cc, cstore_cc): New.
17214 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17215 arm_compare_op1.
17216 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17217
17218 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17219 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17220 as an argument.
17221 (adjust_insn_length): Adjust calls.
17222 (avr_reorg): Handle (compare (foo) (const_int 0)).
17223 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17224 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17225 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17226 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17227 (bCC): Remove.
17228 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17229 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17230
17231 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17232 (cbranchsi4, cstorebi4, cstoresi4): New.
17233 (movbisi): This insn is duplicate, split it to zero_extend.
17234 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17235 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17236 (bfin_optimize_loop): Use cbranch expander.
17237 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17238 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17239 (bfin_bimode_comparison_operator): ... this.
17240 (bfin_direct_comparison_operator): New.
17241
17242 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17243 inside (compare FOO (const_int 0)).
17244 (cris_rtx_costs): Handle ZERO_EXTRACT.
17245 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17246 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17247 (*tstdi_v32): Delete.
17248 (*cmpdi_non_v32): Add M alternative for operand 1.
17249 (cmpsi, cmp<mode>): Make private.
17250 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17251 with COMPARE.
17252 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17253
17254 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17255 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17256 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17257 (cc_reg_operand): New.
17258 (any_cond): Delete.
17259 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17260 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17261 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17262 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17263 crx_expand_scond): Delete.
17264
17265 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17266 (cbranchsi4): New.
17267 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17268 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17269
17270 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17271 cstoresi4, cstoresf4, cstoredf4): New.
17272 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17273 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17274 Receive the entire operands array.
17275 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17276 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17277 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17278 Get test/op0/op1 from the operands array.
17279 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17280
17281 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17282 (h8300_expand_store): New.
17283 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17284 (const_int 0)).
17285 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17286 (h8300_expand_store): New.
17287 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17288 or do not try to produce (set (cc0) REG).
17289 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17290 change a compare into a move to a scratch register. Disable some
17291 peepholes when comparing with zero.
17292 (tstsi, tsthi, tstsi, cmpqi): Make private.
17293 (cmphi): Delete.
17294 (bCC, sCC): Delete.
17295 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17296 cstoresi4): New.
17297
17298 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17299 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17300 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17301 (ix86_emit_i387_log1p): Use cbranchxf2.
17302 (ix86_expand_setcc): Return void.
17303 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17304 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17305 cmp<MODEF>, cmpcc): Remove.
17306 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17307 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17308 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17309 (sCC and bCC expanders): Remove.
17310 (stack_protect_test): Use cbranchcc4.
17311
17312 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17313 Delete.
17314 (ia64_expand_compare): Accept three rtx by reference and return void.
17315 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17316 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17317 from *expr. Update *expr with the BImode comparison to do.
17318 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17319 cmptf, bCC, sCC, conditional_trap): Delete.
17320 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17321 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17322 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17323 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17324 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17325
17326 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17327 type of last argument.
17328 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17329 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17330 use machine mode argument instead of branch_type. Remove dead
17331 code for floating-point comparisons.
17332 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17333 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17334 Remove.
17335 (cbranchsi4, cstoresi4): New.
17336 * config/iq2000/predicates.md (reg_or_const_operand): New.
17337
17338 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17339 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17340 (b<code>_op): Rewrite to...
17341 (bcc_op): ... this, using match_operator.
17342 (s<code>_op): Rewrite to...
17343 (scc_op): ... this, using match_operator.
17344 (s<code>_24_op): Rewrite to...
17345 (scc_op_24): ... this, using match_operator.
17346 (s<code>_<mode>): Rewrite to...
17347 (cstore<mode>4): ... this, using match_operator.
17348 (s<code>_<mode>_24): Rewrite to...
17349 (cstore<mode>4_24): ... this, using match_operator.
17350 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17351 m32c_unpend_compare, m32c_expand_scc): Delete.
17352 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17353 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17354 (m32c_expand_movcc): Change NE to EQ if necessary.
17355 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17356
17357 * config/m32r/m32r-protos.h (gen_cond_store): New.
17358 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17359 (gen_cond_store): New, from sCC patterns.
17360 (m32r_expand_block_move): Use cbranchsi4.
17361 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17362 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17363 (cbranchsi4, cstoresi4): New.
17364
17365 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17366 Delete.
17367 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17368 (m68hc11_notice_update_cc): Look into a compare with 0.
17369 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17370 Delete.
17371 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17372 cmphi, cmpqi, bCC): Delete.
17373 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17374 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17375 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17376 sets with COMPARE.
17377
17378 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17379 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17380 * config/m68k/constraints.md (H): New.
17381 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17382 the define_insn below.
17383 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17384 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17385 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17386 patterns): Wrap RHS with COMPARE.
17387 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17388 (*cmpdi_internal): Name this pattern.
17389 (cmpdi): Change to define_insn.
17390 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17391 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17392 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17393 predicate.
17394 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17395 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17396 (conditional_trap): Change to...
17397 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17398 (*conditional_trap): Use the ordered_comparison_operator and
17399 const1_operand predicates.
17400 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17401 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17402 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17403 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17404
17405 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17406 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17407 (mcore_gen_compare): New.
17408 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17409 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17410 (mcore_gen_compare): ... this.
17411 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17412 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17413 (stack probe pattern): Use cbranchsi4.
17414
17415 * config/mips/predicates.md (mips_cstore_operator): New.
17416 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17417 * config/mips/mips.md (any_cond): Delete.
17418 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
17419 always succeed.
17420 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17421 fixuns_truncsfdi2): Use cbranch patterns.
17422 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17423 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17424 Adjust call to mips_expand_conditional_branch.
17425 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17426 cstore<GPR:mode>4.
17427 * config/mips/mips-protos.h (mips_expand_conditional_branch,
17428 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17429 * config/mips/mips.c (cmp_operands): Delete.
17430 (mips_emit_compare): Get comparison operands from *op0/*op1.
17431 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
17432 that it succeeds. Use op0/op1 instead of cmp_operands.
17433 (mips_expand_conditional_branch, mips_expand_conditional_move,
17434 mips_expand_conditional_trap): Likewise.
17435 (mips_block_move_loop): Use cbranch patterns.
17436 * config/mips/mips.h (cmp_operands): Delete.
17437
17438 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17439 (mmix_gen_compare_reg): Just return a register in the right CC mode.
17440 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17441 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17442 (*cmpcc_folded): Rename to...
17443 (*cmpdi_folded): this.
17444 (*cmpcc): Rename to...
17445 (*cmps): ... this.
17446 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17447 (bCC): Remove.
17448 (cbranchdi4): New.
17449 (cbranchdf4): New. Handle invalid comparisons here.
17450 * config/mmix/predicates.md (float_comparison_operator): New.
17451
17452 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17453 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17454 * config/mn10300/mn10300.md (tst): Delete.
17455 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17456 Name these patterns and wrap RHS in a compare.
17457 (*cmpsi): Make this pattern private. Include tst.
17458 (*cmpsf): Make this pattern private.
17459 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17460 (compare with zero peepholes): Likewise.
17461 (bCC): Remove.
17462 (cbranchsi4, cbranchsf4): New.
17463 (casesi): Use cbranchsi4.
17464
17465 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17466 hppa_branch_type): Delete.
17467 (return_addr_rtx): Use cbranchsi4.
17468 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
17469 Emit CCFPmode comparison here.
17470 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17471 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17472 hppa_branch_type): Delete.
17473 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17474 (movsicc, movdicc): Remove references to hppa_compare_op0,
17475 hppa_compare_op1 and compare_from_rtx.
17476 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17477 (casesi): Use cbranchsi4.
17478
17479 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17480 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17481 * config/pdp11/pdp11.md (register_or_const0_operand): New.
17482 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
17483 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17484 (bCC): Delete.
17485 (cbranchdf4, cbranchhi4, cbranchqi4): New.
17486 (*branch, *branch_inverted): New.
17487
17488 * config/picochip/picochip.md (cbranchhi4): Use
17489 ordered_comparison_operator.
17490 (cmphi, bCC): Remove.
17491
17492 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17493 (trap_comparison_operator): Delete.
17494 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17495 rs6000_emit_cbranch): Accept mode and operands.
17496 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17497 rs6000_compare_fp_p): Delete.
17498 (rs6000_generate_compare): Accept mode and comparison. Extract code
17499 and op0/op1 from there. Replace references to rs6000_compare_op0
17500 and rs6000_compare_op1.
17501 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17502 extract result from passed operands.
17503 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17504 extract loc from passed operands.
17505 (rs6000_emit_cmove): Likewise.
17506 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17507 rs6000_compare_fp_p): Delete.
17508 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17509 (cbranch<GPR>4, cbranch<FP>4): New.
17510 (cstore<mode>4): New. Consolidate here all choices about when to use
17511 portable or specialized sCC sequences.
17512 (stack_protect_test): Use cbranchsi4.
17513 (conditional_trap): Replace with ctrap<GPR>4.
17514 (conditional trap insn): Replace trap_comparison_operator with
17515 ordered_comparison_operator.
17516
17517 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17518 (s390_emit_prologue): Use ctrap.
17519 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17520 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17521 New predicates replacing...
17522 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17523 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17524 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17525 (add<mode>cc): Do not use s390_compare_op0/op1.
17526 (s<code>): Change to...
17527 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17528 (seq): Change to...
17529 (cstorecc4): ... this. Handle EQ or NE equally.
17530 (*sne): Un-privatize for use in cstorecc4.
17531 (b<code>): Change to...
17532 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17533 (conditional_trap): Replace with...
17534 (ctrap<GPR>4, ctrap<FP>4): ... these.
17535 (stack_protect): Use cbranchcc4.
17536
17537 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17538 * config/score/score-protos.h (score_gen_cmp): Delete.
17539 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17540 (score_block_move-loop): Use cbranchsi4.
17541 * config/score/score.md (cbranchsi4): New.
17542 (cmpsi, bCC): Delete.
17543 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17544 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17545 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17546 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17547 * config/score/score3.h (score3_gen_cmp): Delete.
17548 * config/score/score7.h (score7_gen_cmp): Delete.
17549
17550 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17551 (sh_emit_scc_to_t): ... this. Return void.
17552 (from_compare): Rename to...
17553 (sh_emit_compare_and_branch): ... this.
17554 (sh_emit_compare_and_set): New.
17555 (sh_expand_t_scc): Accept operands.
17556 * config/sh/predicates.md (sh_float_comparison_operator): New.
17557 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17558 (prepare_scc_operands): Rename to...
17559 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
17560 arguments.
17561 (sh_emit_cheap_store_flag): New.
17562 (sh_emit_set_t_insn): New.
17563 (from_compare): Rename to...
17564 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
17565 handling of TARGET_SH2E floating point to avoid recursive call.
17566 Generate branch here.
17567 (sh_emit_compare_and_set): New.
17568 (sh_expand_t_scc): Get op0/op1 from arguments.
17569 (sh_emit_cheap_store_flag): New.
17570 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17571 cases.
17572 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17573 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17574 (movsicc, movdicc): Do nothing when it recreated operands from
17575 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
17576 prepare_scc_operands (now sh_emit_scc_to_t).
17577 (udivdi3): Use cstoresi4.
17578 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17579 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17580 (cbranchint4_media, cbranchfp4_media): New.
17581 (casesi): Use cbranchdi4.
17582 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17583 Delete.
17584 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17585 (movnegt): Remove second operand.
17586 (cbranchsf4, cbranchdf4): New.
17587 (stack_protect): Use cbranchdi4/cbranchsi4.
17588
17589 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17590 (gen_compare_reg): Accept comparison, extract part of it to...
17591 (gen_compare_reg_1): ... this.
17592 (gen_compare_operator): Delete.
17593 (gen_v9_scc): Accept separate destination, comparison code and arms.
17594 Do not use sparc_compare_op0/sparc_compare_op1.
17595 (emit_scc_insn, emit_conditional_branch_insn): New.
17596 (emit_v9_brxx): Make static. Remove useless assertion.
17597 (sparc_emit_float_lib_cmp): Return RTL instead of calling
17598 emit_cmp_insn.
17599 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17600 * config/sparc/sparc-protos.h (gen_compare_reg,
17601 sparc_emit_float_lib_cmp): Adjust prototype.
17602 (emit_scc_insn, emit_conditional_branch_insn): New.
17603 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17604 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17605 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17606 iterators to the top.
17607 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17608 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17609 snedi_special_trunc): Delete.
17610 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17611 and snedi_special_trunc.
17612 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17613 cbranchdi4, cbranch<F:mode>4): New.
17614 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17615 here. Use gen_compare_reg instead of gen_compare_operator.
17616 (conditional_trap): Replace with...
17617 (ctrapsi4, ctrapdi4): ... this.
17618 (stack_protect_test): Use cbranchcc4.
17619
17620 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17621 argument to rtx.
17622 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17623 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17624 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
17625 from operands[0] or operands[3] depending on is_set.
17626 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17627 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17628 cmpdf, bCC), sCC: Remove.
17629 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17630 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17631 cstoredf4): New.
17632 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17633 spu_emit_branch_or_set.
17634
17635 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17636 Add two arguments.
17637 * config/stormy16/stormy16.h (xstormy16_compare_op0,
17638 xstormy16_compare_op1): Delete.
17639 * config/stormy16/stormy16.c (xstormy16_compare_op0,
17640 xstormy16_compare_op1): Delete.
17641 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17642 Adjust calls.
17643 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17644 (cmphi, cmpsi, bCC): Remove.
17645
17646 * config/v850/v850.md (tstsi, cmpsi): Fold into...
17647 (*cmpsi): ... this one.
17648 (cbranchsi4, cstoresi4): New.
17649 (bCC expanders): Delete.
17650 (sCC insns): Fold into...
17651 (*setcc): ... this one.
17652 (casesi): Do not use gen_cmpsi and gen_bgtu.
17653 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17654 (movsicc): Simplify.
17655 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17656
17657 * config/vax/vax-protos.h (cond_name): New.
17658 (vax_output_conditional_branch): Remove.
17659 * config/vax/vax.c (cond_name): New.
17660 (vax_output_conditional_branch): Remove.
17661 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17662 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17663 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
17664 (bit<VAXint>): Wrap source with (compare).
17665 (b<code> and following unnamed pattern): Rename to *branch and
17666 *branch_reversed. Change macroization to match_operator.
17667 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17668
17669 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
17670 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
17671 Change last argument to machine_mode.
17672 (xtensa_expand_scc): Add machine_mode argument.
17673 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
17674 (gen_conditional_move, xtensa_expand_conditional_branch,
17675 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
17676 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
17677 Adjust operand numbers.
17678 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
17679 Delete.
17680 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
17681 (cmpsi, cmpsf, b<code>, s<code>): Delete.
17682 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
17683
17684 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17685
17686 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17687 causes spurious differences between trunk and cond-optab branch.
17688
17689 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
17690
17691 PR target/37137
17692 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
17693
17694 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
17695
17696 * tree.c (iterative_hash_pointer): Delete.
17697 (iterative_hash_expr): Short-circuit handling of NULL pointer.
17698 Hash UIDs and versions of SSA names. Don't special-case built-in
17699 function declarations.
17700
17701 2009-05-11 Ian Lance Taylor <iant@google.com>
17702
17703 PR bootstrap/40103
17704 * graphite.c: Force -Wc++-compat to only be a warning before
17705 #including "cloog/cloog.h".
17706
17707 2009-05-11 Martin Jambor <mjambor@suse.cz>
17708
17709 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
17710
17711 2009-05-11 Jan Hubicka <jh@suse.cz>
17712
17713 * tree-ssa-loop-ivcanon.c: Include target.h
17714 (struct loop_size): new structure.
17715 (constant_after_peeling): New predicate.
17716 (tree_estimate_loop_size): New function.
17717 (estimated_unrolled_size): Rewrite for new estimates.
17718 (try_unroll_loop_completely): Use new estimates.
17719 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
17720
17721 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
17722
17723 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
17724 libcpp interface change.
17725 (spu_macro_to_expand): Likewise.
17726
17727 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
17728
17729 PR tree-optimization/40026
17730 * gimplify.c (gimplify_init_constructor): Change initial conditional
17731 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
17732 optimize_compound_literals_in_ctor.
17733
17734 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
17735
17736 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
17737 New devices.
17738 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
17739
17740 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
17741
17742 * tree-vect-data-refs.c (vect_analyze_group_access): Use
17743 HOST_WIDE_INT for gap.
17744
17745 2009-05-11 Ira Rosen <irar@il.ibm.com>
17746
17747 PR tree-optimization/40074
17748 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
17749 account in group size and step comparison.
17750
17751 2009-05-11 Richard Guenther <rguenther@suse.de>
17752
17753 * passes.c (init_optimization_passes): Strip now incorrect comment.
17754 (execute_function_todo): Do not set PROP_alias.
17755 * tree-pass.h (PROP_alias): Remove.
17756 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
17757 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
17758 * tree-nrv.c (pass_return_slot): Likewise.
17759 * tree-object-size.c (pass_object_sizes): Likewise.
17760 * tree-ssa-dom.c (pass_dominator): Likewise.
17761 (pass_phi_only_cprop): Likewise.
17762 * tree-ssa-dse.c (pass_dse): Likewise.
17763 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17764 (pass_cselim): Likewise.
17765 * tree-ssa-pre.c (pass_pre): Likewise.
17766 (pass_fre): Likewise.
17767 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17768 * tree-ssa-sink.c (pass_sink_code): Likewise.
17769 * tree-stdarg.c (pass_stdarg): Likewise.
17770 * tree-tailcall.c (pass_tail_calls): Likewise.
17771 * tree-vrp.c (pass_vrp): Likewise.
17772
17773 2009-05-10 Ian Lance Taylor <iant@google.com>
17774
17775 * basic-block.h (enum profile_status): Break out of struct
17776 control_flow_graph.
17777 * cgraph.h (struct inline_summary): Break out of struct
17778 cgraph_local_info.
17779 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
17780 of struct cgraph_order_sort.
17781 * combine.c (enum undo_kind): New enum, broken out of struct undo.
17782 * cse.c (struct branch_path): Break out of struct
17783 cse_basic_block_data.
17784 * except.h (enum eh_region_type): Break out of struct eh_region.
17785 * gcc.c (enum add_del): Break out of struct modify_target.
17786 * genrecog.c (enum decision_type): Break out of struct decision_test.
17787 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
17788 ggc_pch_data.
17789 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
17790 * regmove.c (enum match_use): New enum, broken out of struct match.
17791 * sched-int.h (enum post_call_group): New enum, broken out of
17792 struct deps.
17793 (struct deps_reg): Break out of struct deps.
17794 * target.h (struct asm_int_op): Break out of struct gcc_target.
17795 * tree-eh.c (struct goto_queue_node): Break out of struct
17796 leh_tf_state.
17797 * tree-inline.h (enum copy_body_cge_which): Break out of
17798 copy_body_data.
17799 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
17800
17801 * c-decl.c (in_struct, struct_types): New static variables.
17802 (pushtag): Add loc parameter. Change all callers.
17803 (lookup_tag): Add ploc parameter. Change all callers.
17804 (check_compound_literal_type): New function.
17805 (parser_xref_tag): Add loc parameter. Change all callers. If
17806 -Wc++-compat, warn about struct/union/enum types defined within a
17807 struct or union.
17808 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
17809 and loc parameters. Change all callers. Change error calls to
17810 error_at, using loc. For a redefinition, if the location of the
17811 original definition is known, report it. Set in_struct and
17812 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
17813 (finish_struct): Add new parameters enclosing_in_struct and
17814 enclosing_struct_types. Change all callers. Set
17815 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
17816 in the struct. If in a struct, add this struct to struct_types.
17817 (start_enum): Add loc parameter. Change all callers. Use
17818 error_at for errors, using loc. For a redefinition, if the
17819 location of the original definition is known, report it. If in a
17820 struct, add this enum type to struct_types. If -Wc++-compat warn
17821 if in sizeof, typeof, or alignof.
17822 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
17823 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
17824 (c_parser_enum_specifier): Get enum location for start_enum.
17825 (c_parser_struct_or_union_specifier): Get struct location for
17826 start_struct. Save in_struct and struct_types status between
17827 start_struct and finish_struct.
17828 (c_parser_cast_expression): Get location of cast.
17829 (c_parser_alignof_expression): Get location of type.
17830 (c_parser_postfix_expression): Likewise.
17831 (c_parser_postfix_expression_after_paren_type): Add type_loc
17832 parameter. Change all callers. Call check_compound_literal_type.
17833 Use type_loc for error about variable size type.
17834 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
17835 of an enum constant from an enum type defined in a struct or union.
17836 (c_cast_expr): Add loc parameter. Change all callers. If
17837 -Wc++-compat, warn about defining a type in a cast.
17838 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
17839 (start_enum, start_struct, finish_struct): Update declarations.
17840 (parser_xref_tag, c_cast_expr): Update declarations.
17841 (check_compound_literal_type): Declare.
17842
17843 2009-05-11 Ben Elliston <bje@au.ibm.com>
17844
17845 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
17846 for recent libcpp interface change.
17847 (rs6000_macro_to_expand): Likewise.
17848
17849 2009-05-10 Michael Matz <matz@suse.de>
17850
17851 PR target/40031
17852 * config/arm/arm.c (require_pic_register): Emit on entry edge,
17853 not at entry of function.
17854
17855 2009-05-10 Richard Guenther <rguenther@suse.de>
17856
17857 PR tree-optimization/40081
17858 Revert
17859 * tree-sra.c (instantiate_element): Instantiate scalar replacements
17860 using the main variant of the element type. Do not fiddle with
17861 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17862
17863 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
17864 structs with volatile fields.
17865
17866 2009-05-10 Jan Hubicka <jh@suse.cz>
17867
17868 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
17869 (estimate_move_cost): Assert that it does not get called for
17870 VOID_TYPE_P.
17871 (estimate_num_insns): Skip VOID types in argument handling.
17872 (optimize_inline_calls): Delete unreachable blocks and verify that
17873 callgraph is valid.
17874
17875 2009-05-10 Jan Hubicka <jh@suse.cz>
17876
17877 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
17878 * cgraph.c (cgraph_mark_address_taken_node): New function.
17879 (dump_cgraph_node): Dump new flag.
17880 * cgraph.h (struct cgraph_node): Add address_taken.
17881 (cgraph_mark_address_taken_node): New function.
17882 * ipa.c (cgraph_postorder): Prioritize functions with address taken
17883 since new direct calls can be born.
17884
17885 2009-05-10 Joseph Myers <joseph@codesourcery.com>
17886
17887 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
17888 tok->val.node.node.
17889
17890 2009-05-10 Jan Hubicka <jh@suse.cz>
17891
17892 PR middle-end/40084
17893 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
17894 argument; rewrite.
17895 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
17896 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
17897 * tree-inline.c (copy_bb): Set frequency correctly.
17898 (fold_marked_statements): Update call to
17899 cgraph_update_edges_for_call_stmt.
17900
17901 2009-05-10 Joseph Myers <joseph@codesourcery.com>
17902
17903 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
17904 identifiers in diagnostics.
17905 * config/arm/arm.c (arm_handle_fndecl_attribute,
17906 arm_handle_isr_attribute): Likewise.
17907 * config/avr/avr.c (avr_handle_progmem_attribute,
17908 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
17909 * config/bfin/bfin.c (handle_int_attribute,
17910 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
17911 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
17912 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
17913 Likewise.
17914 * config/darwin.c (darwin_handle_kext_attribute,
17915 darwin_handle_weak_import_attribute): Likewise.
17916 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
17917 h8300_handle_eightbit_data_attribute,
17918 h8300_handle_tiny_data_attribute): Likewise.
17919 * config/i386/i386.c (ix86_handle_cconv_attribute,
17920 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
17921 * config/i386/winnt.c (ix86_handle_shared_attribute,
17922 ix86_handle_selectany_attribute): Likewise.
17923 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17924 * config/m32c/m32c.c (function_vector_handler): Likewise.
17925 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
17926 m68hc11_handle_fntype_attribute): Likewise.
17927 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17928 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17929 * config/mips/mips.c (mips_insert_attributes,
17930 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
17931 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
17932 rs6000_handle_struct_attribute): Likewise.
17933 * config/sh/sh.c (sh_insert_attributes,
17934 sh_handle_resbank_handler_attribute,
17935 sh_handle_interrupt_handler_attribute,
17936 sh2a_handle_function_vector_handler_attribute,
17937 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
17938 Likewise.
17939 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
17940 * config/spu/spu.c (spu_handle_fndecl_attribute,
17941 spu_handle_vector_attribute): Likewise.
17942 * config/stormy16/stormy16.c
17943 (xstormy16_handle_interrupt_attribute): Likewise.
17944 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
17945 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17946
17947 2009-05-10 Joseph Myers <joseph@codesourcery.com>
17948
17949 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
17950 (pp_translate_identifiers): New.
17951 (pp_identifier): Only conditionally translate identifier to locale
17952 character set.
17953 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
17954 (pp_base_tree_identifier): Only conditionally translate identifier
17955 to locale character set.
17956 * c-pretty-print.c (M_): Define.
17957 (pp_c_type_specifier, pp_c_primary_expression): Mark English
17958 fragments for conditional translation with M_.
17959 * tree-pretty-print.c (maybe_init_pretty_print): Disable
17960 identifier translation.
17961
17962 2009-05-10 Richard Guenther <rguenther@suse.de>
17963
17964 PR tree-optimization/40081
17965 * tree-sra.c (instantiate_element): Instantiate scalar replacements
17966 using the main variant of the element type. Do not fiddle with
17967 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17968
17969 2009-05-09 Jan Hubicka <jh@suse.cz>
17970
17971 PR middle-end/40080
17972 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
17973 indirect calls; verify cgraph afterwards.
17974
17975 2009-05-09 Jan Hubicka <jh@suse.cz>
17976
17977 PR bootstrap/40082
17978 * ipa.c (update_inlined_to_pointer): New function.
17979 (cgraph_remove_unreachable_nodes): Use it.
17980
17981 2009-05-09 Jan Hubicka <jh@suse.cz>
17982
17983 * tree-eh.c (struct leh_state): Remove prev_try.
17984 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
17985 not track prev_try.
17986 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
17987 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
17988 remove_eh_handler_and_replace, foreach_reachable_handler,
17989 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
17990 * except.h (struct eh_region): Remove eh_region_u_cleanup.
17991 (gen_eh_region_cleanup): Update prototype.
17992
17993 2009-05-09 Jan Hubicka <jh@suse.cz>
17994
17995 PR middle-end/40043
17996 * except.c (copy_eh_region): Always set prev_try.
17997 (redirect_eh_edge_to_label): Find outer try.
17998 (foreach_reachable_handler): When looking for prev try
17999 handle case where previous try is not going to be taken.
18000
18001 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18002
18003 PR tree-optimization/40049
18004 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18005 only vector/vector shifts, convert the type of the constant to the
18006 appropriate type to avoid building incorrect trees, which
18007 eventually have problems with garbage collection.
18008
18009 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18010
18011 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18012 -1 for complex floating-point types if honoring signed zeros.
18013
18014 2009-05-08 Jan Hubicka <jh@suse.cz>
18015
18016 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18017 argument; handle correctly when profile is absent.
18018 (build_cgraph_edges): Update.
18019 (rebuild_cgraph_edges): Update.
18020 * cgraph.c: Do not include varray.h.
18021 (cgraph_set_call_stmt_including_clones): New function.
18022 (cgraph_create_edge_including_clones): Likewise
18023 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18024 (cgraph_update_edges_for_call_stmt): Handle clones.
18025 (cgraph_remove_node): Handle clone tree.
18026 (cgraph_remove_node_and_inline_clones): New function.
18027 (dump_cgraph_node): Dump clone tree.
18028 (cgraph_clone_node): Handle clone tree.
18029 (clone_function_name): Bring here from tree-inline.c.
18030 (cgraph_create_virtual_clone): New function.
18031 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18032 (cgraph_clone_info): New function.
18033 (strut cgraph_node): Add clone_info and new clone tree pointers.
18034 (cgraph_remove_node_and_inline_clones,
18035 cgraph_set_call_stmt_including_clones,
18036 cgraph_create_edge_including_clones,
18037 cgraph_create_virtual_clone): Declare.
18038 (cgraph_function_versioning): Use VEC argument.
18039 (compute_call_stmt_bb_frequency): Update prototype.
18040 (cgraph_materialize_all_clones): New function.
18041 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18042 (ipcp_create_replace_map): Update to VECtors.
18043 (ipcp_update_callgraph): Use virtual clones.
18044 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18045 (ipcp_update_profiling): Do not update local profiling.
18046 (ipcp_insert_stage): Use VECtors and virtual clones.
18047 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18048 (clone_of_p): New function.
18049 (cgraph_preserve_function_body_p): Use clone tree.
18050 (cgraph_optimize): Materialize clones.
18051 (cgraph_function_versioning): Update for VECtors.
18052 (save_inline_function_body): Use clone tree.
18053 (cgraph_materialize_clone): New function.
18054 (cgraph_materialize_all_clones): Likewise.
18055 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18056 * ipa.c: Include gimple.h.
18057 (cgraph_remove_unreachable_nodes): Use clone tree.
18058 * ipa-prop.c (ipa_note_param_call): Update call to
18059 compute_call_stmt_bb_frequencycall.
18060 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18061 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18062 (copy_bb): Handle updating of clone tree; add new edge when new call
18063 appears.
18064 (expand_call_inline): Be strict about every call having edge.
18065 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18066 (delete_unreachable_blocks_update_callgraph): New function.
18067 (tree_function_versioning): Use VECtors; always remove unreachable
18068 blocks and fold conditionals.
18069 * tree-inline.h: Do not include varray.h.
18070 (tree_function_versioning): Remove.
18071 * Makefile.in (GTFILES): Remove tree-inline.c
18072 * passes.c (do_per_function): Do only functions having body.
18073 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18074 tree.
18075
18076 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18077 Andrew Morrow <acm@google.com>
18078
18079 PR c/36892
18080 * c-common.c (c_common_attribute_table): Permit deprecated
18081 attribute to take an optional argument.
18082 (handle_deprecated_attribute): If the optional argument to
18083 __attribute__((deprecated)) is not a string ignore the attribute
18084 and emit a warning.
18085
18086 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18087 * c-typeck.c (build_component_ref): Likewise.
18088 (build_external_ref): Likewise.
18089
18090 * toplev.c (warn_deprecated_use): Add an attribute argument.
18091 Emit the message associated with __attribute__((deprecated)).
18092
18093 * toplev.h (warn_deprecated_use): Updated.
18094
18095 * doc/extend.texi: Document new optional parameter to
18096 __attribute__((deprecated))
18097
18098 2009-05-08 Michael Eager <eager@eagercon.com>
18099
18100 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18101 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18102
18103 2009-05-08 Richard Guenther <rguenther@suse.de>
18104
18105 PR tree-optimization/40062
18106 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18107 Avoid exponential behavior.
18108
18109 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18110
18111 PR rtl-optimization/33928
18112 PR 26854
18113 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18114 process_uses, build_single_def_use_links): New.
18115 (update_df): Update use_def_ref.
18116 (forward_propagate_into): Use get_def_for_use instead of use-def
18117 chains.
18118 (fwprop_init): Call build_single_def_use_links and let it initialize
18119 dataflow.
18120 (fwprop_done): Free use_def_ref.
18121 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18122 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18123 df_rd_simulate_one_insn): New.
18124 (df_rd_bb_local_compute_process_def): Update head comment.
18125 (df_chain_create_bb): Use the new RD simulation functions.
18126 * df.h (df_rd_simulate_artificial_defs_at_top,
18127 df_rd_simulate_one_insn): New.
18128 * opts.c (decode_options): Enable fwprop at -O1.
18129 * doc/invoke.texi (-fforward-propagate): Document this.
18130
18131 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18132
18133 PR c/24581
18134 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18135 and one complex operand specially.
18136 * tree-complex.c (some_nonzerop): Do not identify a real value as
18137 zero if flag_signed_zeros.
18138
18139 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18140
18141 PR rtl-optimization/33928
18142 * loop-invariant.c (record_use): Fix && vs. || mishap.
18143
18144 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18145
18146 PR rtl-optimization/33928
18147 * loop-invariant.c (struct use): Add addr_use_p.
18148 (struct def): Add n_addr_uses.
18149 (struct invariant): Add cheap_address.
18150 (create_new_invariant): Set cheap_address.
18151 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18152 (record_uses): Pass df_ref to record_use.
18153 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18154 used only as such.
18155
18156 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18157
18158 * config/sh/sh.c: Do not include c-pragma.h.
18159
18160 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18161
18162 * config/spu/spu.c: Remove include of c-common.h.
18163
18164 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18165
18166 PR c/39037
18167 * c-common.h (mark_valid_location_for_stdc_pragma,
18168 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18169 clear_float_const_decimal64, float_const_decimal64_p): New.
18170 * c.opt (Wunsuffixed-float-constants): New.
18171 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18172 unsuffixed float constant, handle new warning.
18173 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18174 * c-decl.c (c_scope): New flag float_const_decimal64.
18175 (set_float_const_decimal64, clear_float_const_decimal64,
18176 float_const_decimal64_p): New.
18177 (push_scope): Set new flag.
18178 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18179 to use STDC pragmas.
18180 (c_parser_external_declaration): Ditto.
18181 (c_parser_compound_statement_nostart): Ditto.
18182 * c-pragma.c (valid_location_for_stdc_pragma,
18183 mark_valid_location_for_stdc_pragma,
18184 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18185 handle_pragma_float_const_decimal64): New.
18186 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18187 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18188 set_float_const_decimal64, clear_float_const_decimal64,
18189 float_const_decimal64_p): New dummy functions.
18190 * doc/extend.texi (Decimal Float): Remove statement that the
18191 pragma, and suffix for double constants, are not supported.
18192 * doc/invoke.texi (Warning Options): List new option.
18193 (-Wunsuffixed-float-constants): New.
18194
18195 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18196
18197 * config/i386/i386.c: Do not include c-common.h.
18198
18199 2009-05-07 Mark Heffernan <meheff@google.com>
18200
18201 * doc/invoke.texi (Debugging Options): Document change of debugging
18202 dump location.
18203 * opts.c (decode_options): Make dump_base_name relative to
18204 aux_base_name directory.
18205
18206 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18207
18208 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18209 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18210
18211 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18212
18213 * Makefile.in (install-plugin): Simplify a bit.
18214
18215 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18216
18217 * Makefile.in (OBJS-common): Add regcprop.o.
18218 (regcprop.o): New.
18219 * timevar.def (TV_CPROP_REGISTERS): New.
18220 * regrename.c (regrename_optimize): Return 0.
18221 (rest_of_handle_regrename): Delete.
18222 (pass_rename_registers): Point to regrename_optimize.
18223 (struct value_data_entry, struct value_data,
18224 kill_value_one_regno, kill_value_regno, kill_value,
18225 set_value_regno, init_value_data, kill_clobbered_value,
18226 kill_set_value, kill_autoinc_value, copy_value,
18227 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18228 replace_oldest_value_reg, replace_oldest_value_addr,
18229 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18230 debug_value_data, validate_value_data): Move...
18231 * regcprop.c: ... here.
18232 (rest_of_handle_cprop): Delete.
18233 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18234
18235 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18236
18237 PR middle-end/40057
18238 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18239 GEN_INT for 1 << bitnum.
18240 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18241 build_int_cst_type.
18242
18243 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18244
18245 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18246 Remove wrong description of "nand" operation.
18247
18248 2009-05-06 Richard Guenther <rguenther@suse.de>
18249 Adam Nemet <anemet@caviumnetworks.com>
18250
18251 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18252 comment. Add that if LHS is not a gimple register, then RHS1 has
18253 to be a single object (GIMPLE_SINGLE_RHS).
18254
18255 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18256
18257 * expr.c (get_def_for_expr): Move it up in the file.
18258 (store_field): When expanding a bit-field store, look at the
18259 defining gimple stmt for the masking conversion.
18260
18261 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18262
18263 PR middle-end/39986
18264 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18265 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18266 32-bit memcpy into long.
18267
18268 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18269
18270 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18271 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18272 new_reg_loc_descr.
18273 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18274 instead of appending DW_OP_deref*.
18275
18276 2009-05-06 Michael Matz <matz@suse.de>
18277
18278 PR middle-end/40021
18279 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18280 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18281
18282 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18283
18284 * Makefile.in (install-plugin): Fix srcdir handling.
18285
18286 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18287
18288 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18289 when processing for not_regs_needed bitmap.
18290 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18291 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18292 handling it for rhs.
18293
18294 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18295
18296 * config/i386/i386.md (unnamed inc/dec peephole): Use
18297 optimize_insn_for_size_p instead of optimize_size.
18298 * config/i386/predicates.md (incdec_operand): Likewise.
18299 (aligned_operand): Likewise.
18300 * config/i386/sse.md (divv8sf3): Likewise.
18301 (sqrtv8sf2): Likewise.
18302
18303 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18304
18305 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18306
18307 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18308
18309 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18310
18311 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18312 ssemodesuffixf2c with avxmodesuffixf2c.
18313
18314 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18315
18316 PR c/40032
18317 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18318
18319 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18320
18321 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18322 (struct tree_base): Adjust spacing for 8 bit boundaries.
18323 (struct tree_decl_common): Add decl_by_reference_flag bit.
18324 (DECL_BY_REFERENCE): Adjust.
18325 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18326 print DECL_BY_REFERENCE bit.
18327 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18328 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18329 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18330 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18331 unconditionally.
18332
18333 PR middle-end/39666
18334 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18335 range of the type, but default label is missing, add it with one
18336 of the existing labels instead of adding a new label for it.
18337
18338 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18339
18340 * dwarf.h: Remove.
18341
18342 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18343
18344 * Makefile.in (enable_plugin, plugin_includedir): New.
18345 (install): Depend on install-plugin.
18346 (PLUGIN_HEADERS): New.
18347 (install-plugin): New.
18348 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18349
18350 2009-05-05 Richard Guenther <rguenther@suse.de>
18351
18352 PR tree-optimization/40022
18353 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18354 the only vuse.
18355 (phivn_valid_p): Fix tuplification error, simplify.
18356 (phiprop_insert_phi): Add dumps.
18357 (propagate_with_phi): Simplify.
18358
18359 2009-05-05 Richard Guenther <rguenther@suse.de>
18360
18361 PR middle-end/40023
18362 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18363
18364 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18365
18366 * tree.h (strip_float_extensions): Remove duplicate declaration.
18367 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18368 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18369 block_ultimate_origin): Rearrange the declarations line to match the
18370 comment that indicates the .c file which the functions are defined.
18371 (dwarf2out_*, set_decl_rtl): Add comment.
18372 (get_base_address): Adjust comment.
18373 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18374 declarations line and add comment.
18375 (is_builtin_name): Add blank after function name, for clarity.
18376
18377 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18378
18379 * attribs.c (decl_attributes): Use %qE for identifiers in
18380 diagnostics.
18381 * cgraphunit.c (verify_cgraph_node): Translate function names to
18382 locale character set in diagnostics.
18383 * coverage.c (get_coverage_counts): Use %qE for identifiers in
18384 diagnostics.
18385 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18386 Document that functions are named in UTF-8.
18387 * expr.c (expand_expr_real_1): Translate function names to locale
18388 character set in diagnostics.
18389 * gimplify.c (omp_notice_variable, omp_is_private,
18390 gimplify_scan_omp_clauses): Use %qE for identifiers in
18391 diagnostics.
18392 * langhooks.c (lhd_print_error_function): Translate function names
18393 to locale character set.
18394 * langhooks.h (decl_printable_name): Document that return value is
18395 in internal character set.
18396 * stmt.c: Include pretty-print.h
18397 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18398 diagnostics.
18399 (resolve_operand_name_1): Translate named operand name to locale
18400 character set.
18401 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18402 diagnostics.
18403 * toplev.c (announce_function): Translate function names to locale
18404 character set.
18405 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18406 (default_tree_printer): Use pp_identifier or translate identifiers
18407 to locale character set. Mark "<anonymous>" for translation.
18408 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18409 for identifiers in diagnostics.
18410 * tree.c (handle_dll_attribute): Use %qE for identifiers in
18411 diagnostics.
18412 * varasm.c (output_constructor): Use %qE for identifiers in
18413 diagnostics.
18414
18415 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
18416
18417 * configure.ac: use ` ` instead of $()
18418 * configure: Regenerate.
18419
18420 2009-05-05 Ben Elliston <bje@au.ibm.com>
18421
18422 * config/pa/linux-atomic.c: Eliminate conditional include of
18423 errno.h on non-LP64 systems to simplify build requirements.
18424
18425 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18426
18427 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18428 diagnostics.
18429 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18430 and pass value to identifier_to_locale.
18431 (warn_variable_length_array): Make name a tree.
18432 (grokdeclarator): Separate diagnostic texts for named and unnamed
18433 declarators. Use %qE for named declarators.
18434 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18435 diagnostics.
18436 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18437 identifiers in diagnostics.
18438 * c-typeck.c (push_member_name, start_init): Pass identifiers to
18439 identifier_to_locale. Mark "anonymous" strings for translation.
18440
18441 2009-05-04 Michael Eager <eager@eagercon.com>
18442
18443 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18444 address for DImode/DFmode only if double-precision FP regs.
18445
18446 2009-05-04 Michael Eager <eager@eagercon.com>
18447
18448 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18449 TARGET_SINGLE_FLOAT check.
18450
18451 2009-05-04 Michael Eager <eager@eagercon.com>
18452
18453 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18454
18455 2009-05-04 Michael Eager <eager@eagercon.com>
18456
18457 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18458 * config/rs6000/t-xilinx: New
18459
18460 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
18461
18462 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18463 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18464 * gcc/explow.c (memory_address): Use target hook.
18465 * gcc/targhooks.c (default_legitimize_address): New.
18466 * gcc/targhooks.h (default_legitimize_address): New.
18467 * gcc/target.h (legitimize_address): New.
18468 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18469 (TARGET_INITIALIZER): Include it.
18470 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18471
18472 * config/bfin/bfin-protos.h (legitimize_address): Remove.
18473 * config/bfin/bfin.c (legitimize_address): Remove.
18474 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18475 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18476 Remove.
18477 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18478 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18479
18480 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18481 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18482 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18483 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18484 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18485 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18486 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18487 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18488 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18489 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18490 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18491 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18492 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18493 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18494 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18495 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18496 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18497 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18498 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18499 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18500 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18501 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18502 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18503
18504 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18505 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18506 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18507 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18508 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18509 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18510 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18511 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18512 (thumb_legitimize_address): Delete.
18513 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18514 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18515 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18516 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18517 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18518 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18519 Delete.
18520 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18521 Delete.
18522
18523 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18524 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18525 * config/m32r/m32r.c (m32r_legitimize_address): New.
18526 * config/m68k/m68k.c (m68k_legitimize_address): New.
18527 * config/score/score.c (score_legitimize_address): Standardize.
18528 * config/score/score3.c (score3_legitimize_address): Standardize.
18529 * config/score/score3.h (score3_legitimize_address): Adjust.
18530 * config/score/score7.c (score7_legitimize_address): Standardize.
18531 * config/score/score7.h (score7_legitimize_address): Adjust.
18532 * config/sh/sh.c (sh_legitimize_address): New.
18533 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18534
18535 * gcc/config/s390/s390.c (legitimize_address): Rename to...
18536 (s390_legitimize_address): ... this.
18537 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18538 (sparc_legitimize_address): ... this.
18539 * gcc/config/i386/i386.c (legitimize_address): Rename to...
18540 (ix86_legitimize_address): ... this.
18541 * gcc/config/avr/avr.c (legitimize_address): Rename to...
18542 (avr_legitimize_address): ... this.
18543 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18544 (mn10300_legitimize_address): ... this.
18545 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18546 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18547 (alpha_expand_mov): Adjust call.
18548
18549 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18550 * config/spu/spu.c (spu_legitimize_address): Likewise.
18551 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18552 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18553
18554 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18555
18556 * intl.c (locale_encoding, locale_utf8): New.
18557 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18558 * intl.h (locale_encoding, locale_utf8): Declare.
18559 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
18560 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18561 New.
18562 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18563 argument.
18564 (pp_tree_identifier): Define to call pp_base_tree_identifier.
18565 (pp_base_tree_identifier): Declare as function.
18566 (identifier_to_locale): Declare.
18567 * Makefile.in (pretty-print.o): Update dependencies.
18568 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18569
18570 2009-05-04 Richard Guenther <rguenther@suse.de>
18571
18572 PR middle-end/40015
18573 * builtins.c (fold_builtin_memory_op): Do not decay to element
18574 type if the size matches the whole array.
18575
18576 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
18577
18578 * expmed.c (synth_mult): When trying out a shift, pass the result
18579 of a signed shift.
18580
18581 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
18582
18583 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18584 (shiftsub1_cost): New.
18585 (init_expmed): Compute shiftsub1_cost.
18586 (synth_mult): Optimize multiplications by constants of the form
18587 -(2^^m-1) for some constant positive integer m.
18588
18589 2009-05-03 Richard Guenther <rguenther@suse.de>
18590
18591 PR c/39983
18592 * c-typeck.c (array_to_pointer_conversion): Do not built
18593 ADDR_EXPRs of arrays of pointer-to-element type.
18594 * c-gimplify.c (c_gimplify_expr): Revert change fixing
18595 up wrong ADDR_EXPRs after-the-fact.
18596 * c-common.c (strict_aliasing_warning): Strip pointer
18597 conversions for obtaining the original type.
18598 * builtins.c (fold_builtin_memset): Handle array types.
18599 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18600 and array types
18601
18602 2009-05-03 Richard Guenther <rguenther@suse.de>
18603
18604 PR middle-end/23329
18605 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18606 Do not lose casts from array types with unknown extent to array
18607 types with known extent.
18608 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18609 alias set compatibility.
18610
18611 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
18612
18613 * flags.h (extra_warnings): Delete.
18614 * toplev.c (process_options): Handle Wuninitialized here.
18615 * opts.c (extra_warnings): Delete.
18616 (set_Wextra): Delete.
18617 (common_handle_option): -Wextra can be handled automatically.
18618 * c-opts.c (c_common_handle_option): Delete obsolete code.
18619 (c_common_post_options): Simplify comment.
18620 * common.opt (W): Add Var.
18621 (Wextra): Add Var.
18622 (Wuninitialized): Initialize to -1.
18623
18624 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
18625 Richard Guenther <rguenther@suse.de>
18626
18627 * expr.c (get_def_for_expr): New function.
18628 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18629 SSA rather than trees.
18630 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
18631 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18632
18633 2009-05-03 Joseph Myers <joseph@codesourcery.com>
18634
18635 * c-common.c (reswords): Add _Imaginary.
18636 * c-common.c (enum rid): Add RID_IMAGINARY.
18637
18638 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
18639
18640 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18641 Patch by Richard Guenther.
18642
18643 2009-05-03 Anatoly Sokolov <aesok@post.ru>
18644
18645 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18646 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18647 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18648 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18649 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18650 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18651 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18652 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18653 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18654 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18655 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18656 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18657 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18658 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18659 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18660 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18661 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18662 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18663
18664 2009-05-02 Richard Guenther <rguenther@suse.de>
18665
18666 PR tree-optimization/39940
18667 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18668 doing so.
18669
18670 2009-05-02 Richard Guenther <rguenther@suse.de>
18671
18672 PR middle-end/40001
18673 * tree-ssa.c (execute_update_addresses_taken): Properly check
18674 if we can mark a variable DECL_GIMPLE_REG_P.
18675 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
18676 back to the end of the function.
18677 (is_gimple_reg_type): Remove complex type special casing.
18678 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
18679 if not optimizing.
18680
18681 2009-05-02 Ben Elliston <bje@au.ibm.com>
18682
18683 * doc/collect2.texi (Collect2): Document search path behaviour
18684 when configured with --with-ld.
18685
18686 2009-05-02 Jan Hubicka <jh@suse.cz>
18687
18688 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
18689 parameter; update callers.
18690 (coalesce_cost_edge): EH edges are costier because they needs
18691 splitting even if not critical and even more costier when there are
18692 multiple EH predecestors.
18693
18694 2009-05-02 Jan Hubicka <jh@suse.cz>
18695
18696 * except.c (remove_eh_handler_and_replace): Handle updating after
18697 removing TRY blocks.
18698
18699 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
18700
18701 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
18702
18703 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
18704
18705 * varasm.c: Do not include c-pragma.h.
18706 * attribs.c: Do not incude c-common.h.
18707
18708 2009-05-01 Michael Matz <matz@suse.de>
18709
18710 * calls.c (initialize_argument_information): Handle SSA names like
18711 decls with a non MEM_P DECL_RTL.
18712
18713 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
18714
18715 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
18716 * ipa-utils.c: Likewise.
18717 * ipa-type-escape.c: Likewise.
18718 * cgraphunit.c Do not include c-common.h.
18719 * ipa-pure-const.c: Likewise.
18720 * tree-if-conv.c: Likewise.
18721 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
18722 * ipa-struct-reorg.c: Likewise.
18723 * tree-nomudflap.c: Likewise.
18724 * tree-ssa-structalias.c: Likewise.
18725
18726 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
18727
18728 * store-motion.c: Many cleanups to make this pass a first-class
18729 citizen instead of an appendix to gcse load motion. Add TODO list
18730 to make this pass faster/cleaner/better.
18731
18732 (struct ls_expr): Post gcse.c-split cleanups.
18733 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
18734 "stores" field to "avail_stores".
18735 (pre_ldst_mems): Rename to store_motion_mems.
18736 (pre_ldst_table): Rename to store_motion_mems_table.
18737 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
18738 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
18739 (ldst_entry): Rename to st_expr_entry, update users.
18740 (free_ldst_entry): Rename to free_st_expr_entry, update users.
18741 (free_ldst_mems): Rename to free_store_motion_mems, update users.
18742 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
18743 update caller.
18744 (first_ls_expr): Rename to first_st_expr, update users.
18745 (next_ls_expr): Rename to next_st_expr, update users.
18746 (print_ldst_list): Rename to print_store_motion_mems. Print names of
18747 fields properly for store motion instead of names inherited from load
18748 motion in gcse.c.
18749 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
18750 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
18751 are done with it.
18752
18753 (ae_kill): Rename to st_kill, update users.
18754 (ae_gen): Rename to st_avloc, update users.
18755 (transp): Rename to st_transp, update users.
18756 (pre_insert_map): Rename to st_insert_map, update users.
18757 (pre_delete_map): Rename to st_delete_map, update users.
18758 (insert_store, build_store_vectors, free_store_memory,
18759 one_store_motion_pass): Update for abovementioned changes.
18760
18761 (gcse_subst_count, gcse_create_count): Remove.
18762 (one_store_motion_pass): New statistics counters "n_stores_deleted"
18763 and "n_stores_created", local variables.
18764
18765 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
18766 use for_each_rtx.
18767
18768 (regvec, compute_store_table_current_insn): Remove.
18769 (reg_set_info, reg_clear_last_set): Remove.
18770 (compute_store_table): Use DF caches instead of local dataflow
18771 solvers.
18772
18773 2009-05-01 Joseph Myers <joseph@codesourcery.com>
18774
18775 * c-objc-common.c (c_tree_printer): Print identifiers with
18776 pp_identifier, not pp_string. Mark "({anonymous})" for
18777 translation.
18778 * c-pretty-print.c (pp_c_ws_string): New.
18779 (pp_c_cv_qualifier, pp_c_type_specifier,
18780 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
18781 pp_c_storage_class_specifier, pp_c_function_specifier,
18782 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
18783 pp_c_primary_expression, pp_c_postfix_expression,
18784 pp_c_unary_expression, pp_c_shift_expression,
18785 pp_c_relational_expression, pp_c_equality_expression,
18786 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
18787 use pp_string and pp_c_ws_string in place of pp_identifier and
18788 pp_c_identifier for non-identifiers. Mark English strings for
18789 translation.
18790 * c-pretty-print.h (pp_c_ws_string): Declare.
18791
18792 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
18793 Roland McGrath <roland@redhat.com>
18794
18795 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
18796 (ENABLE_LD_BUILDID): New configuration option.
18797 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
18798 (LINK_BUILDID_SPEC): New macro.
18799 (init_spec): If defined, prepend it between LINK_EH_SPEC and
18800 link_spec.
18801 * doc/install.texi: Document --enable-linker-build-id option.
18802 * configure: Rebuild.
18803 * config.in: Rebuild.
18804
18805 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
18806
18807 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
18808 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
18809 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
18810 MIPS_GP_SAVE_AREA_SIZE.
18811 * config/mips/mips.c (struct mips_frame_info): Update comment
18812 before arg_pointer_offset and hard_frame_pointer_offset.
18813 (mips_compute_frame_info): Update diagram before function: to
18814 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
18815 indicate the position of frame_pointer_rtx with -fstack-protector and
18816 to show args_size. Don't allocate cprestore area for leaf functions
18817 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
18818 cprestore_size.
18819 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
18820
18821 2009-04-30 Michael Matz <matz@suse.de>
18822
18823 PR tree-optimization/39955
18824 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
18825
18826 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
18827
18828 * ira.c (setup_cover_and_important_classes): Use safe macro
18829 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
18830 directly.
18831 * genpreds.c (write_tm_preds_h): Output suitable definition of
18832 REG_CLASS_FOR_CONSTRAINT.
18833
18834 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
18835
18836 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
18837 instead of an int.
18838 * bitmap.c (bitmap_descriptor): Likewise.
18839 * ggc-common.c (loc_descriptor): Likewise.
18840 * varray.c (varray_descriptor): Likewise.
18841 * vec.c (vec_descriptor): Likewise.
18842
18843 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
18844
18845 * Makefile.in (dce.o): Add $(EXCEPT_H).
18846 * dce.c: Include except.h and delete redundant vector definitions.
18847 (deletable_insn_p): Return false for non-call insns that can throw
18848 if DF is running.
18849
18850 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
18851
18852 * gcse.c (ae_gen): Remove.
18853 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
18854 and make non-static function to make it available in store-motion.c.
18855 Update call sites with search-and-replace.
18856 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
18857 extract_mentioned_regs, extract_mentioned_regs_helper,
18858 find_moveable_store, compute_store_table, load_kills_store, find_loads,
18859 store_killed_in_insn, store_killed_after, store_killed_before,
18860 build_store_vectors, insert_insn_start_basic_block, insert-store,
18861 remove_reachable_equiv_notes, replace_store_insn, delete_store,
18862 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
18863 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
18864 * store-motion.c: ...new file. Also copy data structures from gcse.c
18865 and clean up to remove parts not used by store motion.
18866 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
18867 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
18868
18869 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18870
18871 PR target/38571
18872 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
18873 when optimizing for size.
18874
18875 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
18876
18877 * gcse.c (gcse_constant_p): Fix typo in last change.
18878
18879 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
18880
18881 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
18882
18883 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
18884
18885 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
18886
18887 2009-04-29 James E. Wilson <wilson@codesourcery.com>
18888
18889 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
18890 CONST_HIGH_PART result.
18891
18892 2009-04-29 Anatoly Sokolov <aesok@post.ru>
18893
18894 * config/avr/avr.c (initial_elimination_offset): Rename to
18895 avr_initial_elimination_offset.
18896 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
18897 change return type to bool.
18898 (avr_can_eliminate): New function.
18899 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
18900 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
18901 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
18902 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
18903 avr_initial_elimination_offset.
18904 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
18905 (avr_initial_elimination_offset): Define.
18906
18907 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
18908 Steven Bosscher <steven@gcc.gnu.org>
18909
18910 PR rtl-optimization/39938
18911 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
18912 * cfgrtl.c: Include insn-attr.h.
18913 (rest_of_pass_free_cfg): New function.
18914 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
18915 * resource.c (init_resource_info): Remove call to df_analyze.
18916
18917 2009-04-29 Richard Guenther <rguenther@suse.de>
18918
18919 PR target/39943
18920 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
18921 allow conversion to signed integers.
18922
18923 2009-04-29 Richard Guenther <rguenther@suse.de>
18924
18925 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
18926 shifts of floating point vectors if the shift amount is
18927 a constant multiple of the element size.
18928
18929 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
18930 Michael Matz <matz@suse.de>
18931
18932 PR middle-end/39927
18933 PR bootstrap/39929
18934 * tree-outof-ssa.c (emit_partition_copy): New function.
18935 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18936 insert_part_to_rtx_on_edge): Perform the partition base var
18937 copy using emit_partition_copy.
18938 (insert_value_copy_on_edge): Convert constants to the right mode.
18939 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
18940 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
18941
18942 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18943
18944 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
18945 scan backwards to try to find a constant to initialize it.
18946
18947 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
18948 insn before the loop_end instruction, don't look past labels.
18949
18950 2009-04-29 Richard Guenther <rguenther@suse.de>
18951
18952 PR middle-end/39937
18953 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
18954 loose type conversions.
18955 (forward_propagate_addr_expr): Fix tuplification bug. Remove
18956 stmts only if there are no uses of its definition.
18957
18958 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18959
18960 * config/bfin/bfin.h (splitting_loops): Declare.
18961 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
18962 Reorder bit definitions to be ascending.
18963 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
18964 * config/bfin/bfin.c (splitting_loops): New variable.
18965 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
18966 (struct loop_info): Remove members INIT and LOOP_INIT.
18967 (bfin_optimize_loop): Don't set them. Reorder the code that generates
18968 the LSETUP sequence. Allow LC to be loaded from any register, but
18969 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
18970 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
18971 set to 1.
18972 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
18973 of reload_completed.
18974
18975 From Jie Zhang:
18976 * config/bfin/bfin.md (movsi_insn): Refine constraints.
18977
18978 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
18979
18980 * Makefile.in (PLUGIN_VERSION_H): New.
18981 (OBJS-common): Remove plugin-version.o.
18982 (plugin.o): Depend on (PLUGIN_VERSION_H).
18983 (plugin-version.o): Remove.
18984 * configure: Regenerate
18985 * configure.ac: Create plugin-version.h.
18986 * gcc-plugin.h (plugin_gcc_version): Remove.
18987 (plugin_default_version_check): Change signature.
18988 * plugin-version.c: Remove.
18989 * plugin.c: Include plugin-version.h.
18990 (str_plugin_gcc_version_name): Remove.
18991 (try_init_one_plugin): Pass gcc version to plugin_init.
18992 (plugin_default_version_check): Both gcc and plugin versions are now
18993 arguments.
18994
18995 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18996
18997 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
18998 problematic last insns. Test for TYPE_CALL rather than CALL_P.
18999 Remove special case testing for last insn of inner loops. Don't fail
19000 if the loop ends with a jump, emit an extra nop instead.
19001
19002 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19003 DREGS rather than comparing directly. Remove code that tries to
19004 account for latencies.
19005
19006 2009-04-29 Richard Guenther <rguenther@suse.de>
19007
19008 PR tree-optimization/39941
19009 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19010 eliminating an indirect call.
19011
19012 2009-04-29 Richard Guenther <rguenther@suse.de>
19013
19014 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19015 parameter. Allow invariants as base if !require_lvalue.
19016 (verify_gimple_assign_single): Adjust.
19017
19018 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19019
19020 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19021 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19022 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19023 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19024 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19025 a VEC_SELECT.
19026 * config/bfin/bfin.c (bfin_expand_builtin,
19027 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19028
19029 2009-04-28 Richard Guenther <rguenther@suse.de>
19030
19031 * tree-vect-loop.c (get_initial_def_for_induction): Use
19032 correct types for pointer increment.
19033
19034 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19035
19036 * toplev.c (print_version): Update GMP version string calculation.
19037
19038 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19039
19040 PR rtl-optimization/39938
19041 * resource.c (init_resource_info): Add call to df_analyze.
19042
19043 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19044
19045 * config/alpha/alpha.md (usegp): Cast the result of
19046 alpha_find_lo_sum_using_gp to enum attr_usegp.
19047 * config/alpha/alpha.c (override_options): Remove end-of-structure
19048 marker element from cpu_table. Use array size of cpu_table to handle
19049 -mcpu and -mtune options.
19050 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19051
19052 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19053
19054 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19055 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19056 tune_32 and tune_64.
19057 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19058 support on PowerPC.
19059 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19060 * config/rs6000/option-defaults.h: ... here. New file.
19061 (OPT_64, OPT_32): Define.
19062 (MASK_64BIT): Define to 0 if not already defined.
19063 (OPT_ARCH64, OPT_ARCH32): Define.
19064 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19065 and tune_64.
19066
19067 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19068
19069 * config/arm/arm.c (arm_override_options): Emit error on using
19070 fpa with AAPCS.
19071
19072 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19073
19074 PR rtl-optimization/39914
19075 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19076 registers for allocnos created from user-defined variables only
19077 when not optimizing.
19078
19079 2009-04-28 Richard Guenther <rguenther@suse.de>
19080
19081 PR middle-end/39937
19082 * fold-const.c (fold_binary): Use distribute_real_division only
19083 on float types.
19084
19085 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19086
19087 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19088 add hpux-stdint.h to tm_file.
19089 (hppa[12]*-*-hpux11*): Ditto.
19090 (ia64*-*-hpux*): Ditto.
19091 * config/hpux-stdint.h: New.
19092 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19093 __STDC_EXT__ for all compiles.
19094 * config/pa/pa-hpux.h: Ditto.
19095 * config/pa/pa-hpux10.h: Ditto.
19096 * config/pa/pa-hpux11.h: Ditto.
19097
19098 2009-04-28 Catherine Moore <clm@codesourcery.com>
19099
19100 * debug.h (set_name): Add comment.
19101
19102 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19103
19104 PR target/39929
19105 * config/darwin.c (machopic_gen_offset): Check
19106 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19107 * config/arm/arm.c (require_pic_register): Likewise.
19108
19109 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19110
19111 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19112 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19113 m32c_promote_prototypes): Delete.
19114
19115 2009-04-28 Michael Matz <matz@suse.de>
19116
19117 PR middle-end/39922
19118 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19119 constants.
19120
19121 2009-04-28 Richard Guenther <rguenther@suse.de>
19122
19123 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19124
19125 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19126
19127 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19128 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19129 * config/arm/arm-tune.md: Regenerate.
19130
19131 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19132
19133 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19134 block if there are complex incoming edges.
19135 (sel_merge_blocks): Remove useless assert.
19136 (sel_redirect_edge_and_branch): Check that edge was redirected.
19137 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19138 (sel_find_rgns): Delete declaration.
19139 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19140 the region when it is not a preheader.
19141
19142 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19143
19144 PR c/39323
19145 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19146
19147 2009-04-28 Richard Guenther <rguenther@suse.de>
19148
19149 * tree.h (SSA_NAME_VALUE): Remove.
19150 (struct tree_ssa_name): Remove value_handle member.
19151 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19152 array for jump threading.
19153 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19154 SSA_NAME_VALUEs.
19155 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19156 * tree-flow.h (threadedge_initialize_values): Declare.
19157 (threadedge_finalize_values): Likewise.
19158 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19159 (SSA_NAME_VALUE): Define.
19160 (threadedge_initialize_values): New function.
19161 (threadedge_finalize_values): Likewise.
19162 * tree-ssa-dom.c (ssa_name_values): New global variable.
19163 (SSA_NAME_VALUE): Define.
19164 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19165
19166 2009-04-28 Ira Rosen <irar@il.ibm.com>
19167
19168 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19169 Use REPORT_VECTORIZED_LOCATIONS instead
19170 REPORT_VECTORIZED_LOOPS.
19171 * tree-vectorizer.c (vect_verbosity_level): Make static.
19172 (vect_loop_location): Rename to vect_location.
19173 (vect_set_verbosity_level): Update comment.
19174 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19175 and vect_location.
19176 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19177 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19178 instead REPORT_UNVECTORIZED_LOOPS.
19179 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19180 and vect_loop_def to vect_external_def and vect_internal_def.
19181 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19182 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19183 REPORT_UNVECTORIZED_LOCATIONS.
19184 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19185 and vect_used_in_loop and to vect_unused_in_scope and
19186 vect_used_in_scope.
19187 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19188 (vect_verbosity_level): Remove declaration.
19189 (vect_analyze_operations): Likewise.
19190 (vect_analyze_stmt): Declare.
19191 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19192 REPORT_UNVECTORIZED_LOCATIONS.
19193 (vect_get_loop_niters): Fix indentation.
19194 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19195 (vect_analyze_loop_operations): New function.
19196 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19197 vect_analyze_operations.
19198 (vect_is_simple_reduction): Use new names.
19199 (vectorizable_live_operation, vect_transform_loop): Likewise.
19200 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19201 to specify whether the data references can be a part of interleaving
19202 chain.
19203 (vect_analyze_data_ref_dependence): Use new names.
19204 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19205 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19206 * tree-vect-patterns.c (widened_name_p): Use new names.
19207 (vect_recog_dot_prod_pattern): Likewise.
19208 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19209 (process_use, vect_mark_stmts_to_be_vectorized,
19210 vect_model_simple_cost, vect_model_store_cost,
19211 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19212 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19213 vectorizable_operation, vectorizable_type_demotion,
19214 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19215 vectorizable_condition): Likewise.
19216 (vect_analyze_operations): Split into vect_analyze_loop_operations
19217 and ...
19218 (vect_analyze_stmt): ... new function.
19219 (new_stmt_vec_info): Use new names.
19220 (vect_is_simple_use): Use new names and fix comment.
19221 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19222 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19223
19224 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19225
19226 PR target/39911
19227 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19228 and integer modes for x87 operands. Do not ICE for unsupported size,
19229 generate error instead. Generate error for unsupported operand types.
19230 ['z']: Do not handle HImode memory operands specially. Warning
19231 for floating-point operands. Fallthru to 'Z' for unsupported operand
19232 types. Do not ICE for unsupported size, generate error instead.
19233 (output_387_binary_op): Use %Z to output operands.
19234 (output_fp_compare): Ditto.
19235 (output_387_reg_move): Ditto.
19236
19237 2009-04-28 Ben Elliston <bje@au.ibm.com>
19238
19239 PR c++/35652
19240 Revert:
19241
19242 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19243
19244 * builtins.c (c_strlen): Do not warn here.
19245 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19246 * c-common.c (pointer_int_sum): Take an explicit location.
19247 Warn about offsets out of bounds.
19248 * c-common.h (pointer_int_sum): Adjust declaration.
19249
19250 2009-04-27 Ian Lance Taylor <iant@google.com>
19251
19252 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19253 names to symkind.
19254 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19255 * df-core.c (df_set_flags): Change return type to int. Change
19256 type of old_flags to int.
19257 (df_clear_flags): Likewise.
19258 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19259 (df_get_conditional_uses): Likewise.
19260 * df.h (df_set_flags, df_clear_flags): Update declarations.
19261 * dwarf2out.c (struct indirect_string_node): Change type of form
19262 field to enum dwarf_form.
19263 (AT_string_form): Change return type to enum dwarf_form.
19264 * fixed-value.c (fixed_compare): Add cast to enum type.
19265 * fwprop.c (update_df): Change 0 to VOIDmode.
19266 * gensupport.c: Change 0 to UNKNOWN.
19267 * gimple.h (gimple_cond_code): Add cast to enum type.
19268 * haifa-sched.c (reemit_notes): Add cast to enum type.
19269 * hooks.c (hook_int_void_no_regs): Remove function.
19270 * hooks.h (hook_int_void_no_regs): Remove declaration.
19271 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19272 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19273 * real.c (real_arithmetic): Add cast to enum type.
19274 (real_compare): Likewise.
19275 * target.h (struct gcc_target): Change return type of
19276 branch_target_register_class to enum reg_class.
19277 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19278 default_branch_target_register_class.
19279 * targhooks.c (default_branch_target_register_class): New function.
19280 * targhooks.h (default_branch_target_register_class): Declare.
19281 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19282 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19283 cast to int.
19284 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19285 ERROR_MARK.
19286 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19287 vect_uninitialized_def. Change 0 to ERROR_MARK.
19288 * tree-vect-stmts.c (supportable_widening_operation): Don't
19289 initialize icode1 and icode2.
19290 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19291 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19292 and to STD_C89.
19293 (cmn_err_flag_specs): Change 0 to STD_C89.
19294 (cmn_err_char_table): Likewise.
19295 * config/arm/arm.c (get_arm_condition_code): Change type of code
19296 to enum arm_cond_code.
19297 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19298 (IWMMXT_BUILTIN2): Likewise.
19299 (neon_builtin_type_bits): Don't define typedef.
19300 (neon_builtin_datum): Change type of bits field to int.
19301 (arm_expand_neon_args): Add cast to enum type.
19302 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19303 TLS_MODEL_NONE.
19304 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19305 casts to enum type.
19306 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19307 MIPS_FP_COND_f.
19308 * config/mips/mips.md (jal_macro): Return enum constant.
19309 (single_insn): Likewise.
19310 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19311 CODE_FOR_nothing.
19312 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19313 casts to enum type.
19314 * config/s390/s390.c (s390_tune_flags): Change type to int.
19315 (s390_arch_flags): Likewise.
19316 (s390_handle_arch_option): Change flags field of struct pta to int.
19317 * config/s390/s390.h (s390_tune_flags): Update declaration.
19318 (s390_arch_flags): Likewise.
19319 * config/sh/sh.c (prepare_move_operands): Compare
19320 tls_symbolic_operand result with enum constant.
19321 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19322 (sh_expand_prologue): Add cast to enum type.
19323 (sh_expand_epilogue): Likewise.
19324 (tls_symbolic_operand): Change return type to enum tls_model.
19325 (fpscr_set_from_mem): Add cast to enum type.
19326 (legitimize_pic_address): Compare tls_symbolic_operand result with
19327 enum constant.
19328 (sh_target_reg_class): Change return type to enum reg_class.
19329 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19330 PROCESSOR_xxx.
19331 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19332 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19333 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19334 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19335 (delayed_branch, tls_call_delay): Likewise.
19336 (eligible_for_sibcall_delay): Likewise.
19337 (eligible_for_return_delay): Likewise.
19338 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19339 (spu_expand_builtin_1): Likewise.
19340
19341 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19342 for all types of conversions.
19343 (output_init_element): Issue -Wc++-compat warning if needed when
19344 initializing a bitfield with enum type.
19345 * c-parser.c (c_parser_expression): Set original_type to
19346 original_type of right hand operand of comma operator.
19347
19348 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19349
19350 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19351 grammar nits.
19352 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19353 * doc/cpp.texi (Standard Predefined Macros)
19354 (Implementation-defined behavior): Likewise.
19355 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19356 * doc/gimple.texi (GIMPLE Exception Handling)
19357 (@code{GIMPLE_ASSIGN}): Likewise.
19358 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19359 * doc/invoke.texi (Warning Options, Optimize Options)
19360 (AVR Options, Darwin Options): Likewise.
19361 (Optimize Options): Reformulate -fwhole-program description.
19362 * doc/loop.texi (Lambda): Likewise.
19363 * doc/md.texi (Output Template, Define Constraints)
19364 (Standard Names, Insn Splitting): Likewise.
19365 * doc/options.texi (Option properties): Likewise.
19366 * doc/passes.texi (Tree-SSA passes): Likewise.
19367 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19368 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19369 (File Names and DBX): Likewise.
19370 * doc/trouble.texi (Incompatibilities): Likewise.
19371
19372 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19373
19374 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19375 instruction is correct.
19376
19377 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19378
19379 Allow non-constant arguments to conversion intrinsics.
19380 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19381 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19382 * spu.c (print_operand): Handle 'v' and 'w'.
19383 (exp2_immediate_p, spu_gen_exp2): Define.
19384 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19385 spu_convtf_1): Update parameter descriptions.
19386 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19387 * constraints.md ('v', 'w'): New.
19388 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19389 Remove.
19390 (i2f, I2F): New define_mode_attr.
19391 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19392 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19393 fixuns_truncv4sfv4si2): Update to use mode attribute.
19394 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19395 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19396 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19397 patterns for combine.
19398
19399 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
19400
19401 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19402 (cprop, hoist, pre, store_motion): New debug counters.
19403 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19404 is not an RTL pass anymore.
19405 (pass_profiling): Remove extern decl for pass removed in 2005.
19406 (pass_gcse, pass_jump_bypass): Remove.
19407 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19408 to 0 for clean state.
19409 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19410 * cse.c (gate_handle_cse_after_global_opts,
19411 rest_of_handle_cse_after_global_opts): New functions.
19412 (pass_cse_after_global_opts): New pass, does local CSE.
19413 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19414 (TV_CPROP): New timevar.
19415 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19416 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19417 (gcse_main, recompute_all_luids): Remove.
19418 (compute_hash_table_work): Call max_reg_num instead of reading
19419 max_gcse_regno.
19420 (cprop_jump): Don't set run_jump_opt_after_gcse.
19421 (constprop_register): Always allow to alter jumps.
19422 (cprop_insn): Likewise.
19423 (do_local_cprop): Likewise.
19424 (local_cprop_pass): Likewise. Return non-zero if something changed.
19425 (cprop): Remove function, fold interesting bits into one_cprop_pass.
19426 (find_implicit_sets): Add note about missed optimization opportunity.
19427 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19428 pass_rtl_cprop execute function.
19429 Don't bother tracking the pass number, each pass gets its own dumpfile
19430 now anyway.
19431 Always allow to alter jumpsand bypass jumps.
19432 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19433 will just find no suitable set.
19434 (pre_edge_insert): Fix dumping, this function is for PRE only.
19435 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19436 pass_rtl_pre execute function.
19437 (hoist_code): Return non-zero if something changed. Keep track of
19438 substitutions and insertions for statistics gathering similar to PRE.
19439 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19440 called from the pass_rtl_hoist execute function. Show pass statistics.
19441 (compute_store_table): Use max_reg_num directly instead of using the
19442 formerly global max_gcse_regno.
19443 (build_store_vectors): Likewise.
19444 (replace_store_insn): Fix dumping.
19445 (store_motion): Rename to ...
19446 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
19447 pass, called from the pass_rtl_store_motion execute function. Keep
19448 track of substitutions and insertions for statistics gathering similar
19449 to PRE.
19450 (bypass_jumps): Remove, fold interesting bits into ...
19451 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
19452 from the pass_rtl_cprop execute function.
19453 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19454 pass_jump_bypass): Remove.
19455 (gate_handle_gcse, rest_of_handle_gcse): Remove.
19456 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19457 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19458 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19459 (gate_rtl_store_motion, execute_rtl_store_motion,
19460 pass_rtl_store_motion): New.
19461 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19462 make it clear that -fcse-skip-blocks is a no-op for backward compat.
19463 * passes.c (init_optimization_passes): Remove pass_gcse and
19464 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
19465 and cse_after_global_opts in place of pass_gcse. Schedule cprop
19466 instead of pass_jump_bypass.
19467
19468 2009-04-27 Richard Guenther <rguenther@suse.de>
19469
19470 PR middle-end/39928
19471 * gimplify.c (gimplify_expr): If we are required to create
19472 a temporary make sure it ends up as register.
19473
19474 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
19475
19476 PR target/39903
19477 * config/i386/i386.c (construct_container): Don't call
19478 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19479 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19480
19481 2009-04-27 Michael Matz <matz@suse.de>
19482
19483 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19484 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19485 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19486 (dump_replaceable_exprs): Take a bitmap.
19487 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19488 array.
19489 (expand_gimple_basic_block): Likewise.
19490 * tree-ssa-ter.c (struct temp_expr_table_d): Make
19491 replaceable_expressions member a bitmap.
19492 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19493 (mark_replaceable): Likewise.
19494 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19495 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19496
19497 2009-04-27 Richard Guenther <rguenther@suse.de>
19498
19499 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19500 (verify_stmts): Dispatch to gimple/type verification code.
19501 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19502 issue with call argument types.
19503
19504 2009-04-27 Michael Matz <matz@suse.de>
19505
19506 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19507 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19508 to above.
19509
19510 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
19511 Eric Botcazou <ebotcazou@adacore.com>
19512
19513 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19514 a label's basic block.
19515 (mark_target_live_regs): Tidy and rework obsolete comments.
19516 Change back DF problem to LIVE. If a label starts a basic block,
19517 assume that all registers that used to be live then still are.
19518 (init_resource_info): If a label starts a basic block, set its
19519 BLOCK_FOR_INSN accordingly.
19520 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19521
19522 2009-04-27 Richard Guenther <rguenther@suse.de>
19523
19524 * tree-flow-inline.h (function_ann): Remove.
19525 (get_function_ann): Likewise.
19526 * tree-dfa.c (create_function_ann): Remove.
19527 * tree-flow.h (struct static_var_ann_d): Remove.
19528 (struct function_ann_d): Likewise.
19529 (union tree_ann_d): Remove fdecl member.
19530 (function_ann_t): Remove.
19531 (function_ann, get_function_ann, create_function_ann): Remove
19532 declarations.
19533
19534 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
19535
19536 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19537
19538 2009-04-27 Jan Hubicka <jh@suse.cz>
19539
19540 * ipa-pure-const.c (struct funct_state_d): New fields
19541 state_previously_known, looping_previously_known; remove
19542 state_set_in_source.
19543 (analyze_function): Use new fields.
19544 (propagate): Avoid assumption that state_set_in_source imply
19545 nonlooping.
19546
19547 * tree-ssa-loop-niter.c (finite_loop_p): New function.
19548 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19549 * cfgloop.h (finite_loop_p): Declare.
19550
19551 2009-04-26 Michael Matz <matz@suse.de>
19552
19553 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19554
19555 2009-04-26 Michael Matz <matz@suse.de>
19556
19557 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19558 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19559 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19560 pass_mark_used_blocks): Remove.
19561 * tree-optimize.c (pass_free_datastructures,
19562 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19563 * passes.c (init_optimization_passes): Don't call
19564 pass_mark_used_blocks, remove dead code.
19565
19566 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
19567
19568 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19569 * tree-ssa-live.h (register_ssa_partition): Likewise.
19570
19571 2009-04-26 Michael Matz <matz@suse.de>
19572
19573 Expand from SSA.
19574 * builtins.c (fold_builtin_next_arg): Handle SSA names.
19575 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19576 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19577 SSA names.
19578 (compare_pairs): Swap cost comparison.
19579 (coalesce_ssa_name): Don't use change_partition_var.
19580 * tree-nrv.c (struct nrv_data): Add modified member.
19581 (finalize_nrv_r): Set it.
19582 (tree_nrv): Use it to update statements.
19583 (pass_nrv): Require PROP_ssa.
19584 * tree-mudflap.c (mf_decl_cache_locals,
19585 mf_build_check_statement_for): Use make_rename_temp.
19586 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19587 * alias.c (find_base_decl): Handle SSA names.
19588 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19589 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19590 * rtl.h (set_reg_attrs_for_parm): Declare.
19591 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19592 to "optimized", remove unused locals at finish.
19593 (execute_free_datastructures): Make global, call
19594 delete_tree_cfg_annotations.
19595 (execute_free_cfg_annotations): Don't call
19596 delete_tree_cfg_annotations.
19597
19598 * ssaexpand.h: New file.
19599 * expr.c (toplevel): Include ssaexpand.h.
19600 (expand_assignment): Handle SSA names the same as register variables.
19601 (expand_expr_real_1): Expand SSA names.
19602 * cfgexpand.c (toplevel): Include ssaexpand.h.
19603 (SA): New global variable.
19604 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19605 (SSAVAR): New macro.
19606 (set_rtl): New helper function.
19607 (add_stack_var): Deal with SSA names, use set_rtl.
19608 (expand_one_stack_var_at): Likewise.
19609 (expand_one_stack_var): Deal with SSA names.
19610 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19611 before unique numbers.
19612 (expand_stack_vars): Use set_rtl.
19613 (expand_one_var): Accept SSA names, add asserts for them, feed them
19614 to above subroutines.
19615 (expand_used_vars): Expand all partitions (without default defs),
19616 then only the local decls (ignoring those expanded already).
19617 (expand_gimple_cond): Remove edges when jumpif() expands an
19618 unconditional jump.
19619 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19620 or remove abnormal edges. Ignore insns setting the LHS of a TERed
19621 SSA name.
19622 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19623 members of SA; deal with PARM_DECL partitions here; expand
19624 all PHI nodes, free tree datastructures and SA. Commit instructions
19625 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19626 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19627 info and statements at start, collect garbage at finish.
19628 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19629 (VAR_ANN_PARTITION) Remove.
19630 (change_partition_var): Don't declare.
19631 (partition_to_var): Always return SSA names.
19632 (var_to_partition): Only accept SSA names.
19633 (register_ssa_partition): Only check argument.
19634 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19635 member.
19636 (delete_var_map): Don't free it.
19637 (var_union): Only accept SSA names, simplify.
19638 (partition_view_init): Mark only useful SSA names as used.
19639 (partition_view_fini): Only deal with SSA names.
19640 (change_partition_var): Remove.
19641 (dump_var_map): Use ssa_name instead of partition_to_var member.
19642 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19643 basic blocks.
19644 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19645 (struct _elim_graph): New member const_dests; nodes member vector of
19646 ints.
19647 (set_location_for_edge): New static helper.
19648 (create_temp): Remove.
19649 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19650 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19651 (new_elim_graph): Allocate const_dests member.
19652 (clean_elim_graph): Truncate const_dests member.
19653 (delete_elim_graph): Free const_dests member.
19654 (elim_graph_size): Adapt to new type of nodes member.
19655 (elim_graph_add_node): Likewise.
19656 (eliminate_name): Likewise.
19657 (eliminate_build): Don't take basic block argument, deal only with
19658 partition numbers, not variables.
19659 (get_temp_reg): New static helper.
19660 (elim_create): Use it, deal with RTL temporaries instead of trees.
19661 (eliminate_phi): Adjust all calls to new signature.
19662 (assign_vars, replace_use_variable, replace_def_variable): Remove.
19663 (rewrite_trees): Only do checking.
19664 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19665 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19666 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19667 contains_tree_r, MAX_STMTS_IN_LATCH,
19668 process_single_block_loop_latch, analyze_edges_for_bb,
19669 perform_edge_inserts): Remove.
19670 (expand_phi_nodes): New global function.
19671 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
19672 functions, initialize new parameter, remember partitions having a
19673 default def.
19674 (finish_out_of_ssa): New global function.
19675 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
19676 don't reset in_ssa_p here, don't disable TER when mudflap.
19677 (pass_del_ssa): Remove.
19678 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
19679 partition members.
19680 (execute_free_datastructures): Declare.
19681 * Makefile.in (SSAEXPAND_H): New variable.
19682 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
19683 * basic-block.h (commit_one_edge_insertion): Declare.
19684 * passes.c (init_optimization_passes): Move pass_nrv and
19685 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
19686 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
19687 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
19688 (redirect_branch_edge): Deal with super block when expanding, split
19689 out jump patching itself into ...
19690 (patch_jump_insn): ... here, new static helper.
19691
19692 2009-04-26 Michael Matz <matz@suse.de>
19693
19694 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
19695 beyond num_ssa_names.
19696 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
19697 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
19698
19699 2009-04-26 Jakub Jelinek <jakub@redhat.com>
19700
19701 PR inline-asm/39543
19702 * fwprop.c (forward_propagate_asm): New function.
19703 (forward_propagate_and_simplify): Propagate also into __asm, if it
19704 doesn't increase the number of referenced registers.
19705
19706 PR c/39889
19707 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
19708
19709 2009-04-26 Jakub Jelinek <jakub@redhat.com>
19710
19711 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
19712 note_nonlocal_vla_type for nonlocal VLAs.
19713 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
19714 contains_remapped_vars, remap_vla_decls): New functions.
19715 (convert_nonlocal_reference_stmt): If not optimizing, call
19716 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
19717 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
19718 if it wasn't found in var_map.
19719 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
19720 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
19721 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
19722 declare_vars.
19723 * gimplify.c (nonlocal_vlas): New variable.
19724 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
19725 referenced VLAs.
19726 (gimplify_body): Create and destroy nonlocal_vlas.
19727
19728 * dwarf2out.c (loc_descr_plus_const): New function.
19729 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
19730 mem_loc_descriptor, loc_descriptor_from_tree_1,
19731 descr_info_loc, gen_variable_die): Use it.
19732
19733 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
19734 !TREE_STATIC VAR_DECLs.
19735 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
19736 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
19737 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
19738 DECL_BY_REFERENCE is valid.
19739 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
19740 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
19741 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
19742 Copy DECL_BY_REFERENCE.
19743 (struct nesting_copy_body_data): New type.
19744 (nesting_copy_decl): New function.
19745 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
19746 if they have variable length.
19747
19748 2009-04-26 Michael Matz <matz@suse.de>
19749
19750 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
19751 mark new temporaries for renaming.
19752
19753 2009-04-26 Joseph Myers <joseph@codesourcery.com>
19754
19755 PR c/39581
19756 * c-decl.c (global_bindings_p): Return negative value.
19757 (c_variable_size): New. Based on variable_size from
19758 stor-layout.c.
19759 (grokdeclarator): Call c_variable_size not variable_size.
19760
19761 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
19762
19763 * config/i386/i386.c (print_operand) ['z']: Fix typo.
19764
19765 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
19766
19767 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
19768 Redefine it to just use mingw/include.
19769 (ASM_SPEC): Rules for -m32 and -m64.
19770 (LINK_SPEC): Use Likewise.
19771 (SPEC_32): New define.
19772 (SPEC_64): Likewise.
19773 (SUB_LINK_SPEC): Likewise.
19774 (MULTILIB_DEFAULTS): New define.
19775 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
19776 Add multilib options.
19777 (MULTILIB_DIRNAMES): Likewise.
19778 (MULTILIB_OSDIRNAMES): Likewise.
19779 (LIBGCC): Likewise.
19780 (INSTALL_LIBGCC): Likewise.
19781
19782 2009-04-26 Joseph Myers <joseph@codesourcery.com>
19783
19784 PR c/39556
19785 * c-tree.h (enum c_inline_static_type): New.
19786 (record_inline_static): Declare.
19787 * c-decl.c (struct c_inline_static, c_inline_statics,
19788 record_inline_static, check_inline_statics): New.
19789 (pop_file_scope): Call check_inline_statics.
19790 (start_decl): Call record_inline_static instead of pedwarning
19791 directly for static in inline function.
19792 * c-typeck.c (build_external_ref): Call record_inline_static
19793 instead of pedwarning directly for static referenced in inline
19794 function.
19795
19796 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
19797
19798 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
19799 not new but only being rescanned.
19800 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
19801 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
19802 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
19803 record_set_info, compute_set, grealloc): Remove.
19804 (recompute_all_luids): New function.
19805 (gcse_main): Don't compute sets, and don't do related memory
19806 allocations/free-ing. If something changed before the end of the
19807 pass, update LUIDs using recompute_all_luids.
19808 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
19809 (free_gcse_mem): Don't free it either.
19810 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
19811 Use the df insn LUIDs.
19812 (load_killed_in_block): Likewise.
19813 (compute_hash_table_work): Don't compute reg_set_in_block.
19814 (compute_transp): Use DF_REG_DEF_CHAINs.
19815 (local_cprop_pass): Don't use compute_sets and related functions.
19816 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
19817 Use get_max_uid() instead of max_cuid.
19818 (insert_insn_end_basic_block, pre_insert_copy_insn,
19819 update_ld_motion_stores): Don't try to
19820 keep reg_set tables up to date.
19821 (pre_insert_copies): Use df insn LUIDs.
19822 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
19823 (reg_set_info): Don't use extra bitmap argument.
19824 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
19825 information to compute regs_set_in_block.
19826 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
19827 (bypass_jumps): Don't use compute_sets and friends.
19828
19829 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19830
19831 PR testsuite/39710
19832 * opts.c (undocumented_msg): Do not leave blank even with
19833 ENABLE_CHECKING.
19834
19835 2009-04-25 Joseph Myers <joseph@codesourcery.com>
19836
19837 * c-decl.c (build_enumerator): Allow values folding to integer
19838 constants but not integer constant expressions with a pedwarn if
19839 pedantic.
19840
19841 2009-04-25 Joseph Myers <joseph@codesourcery.com>
19842
19843 PR c/39582
19844 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
19845 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
19846 type is an integer constant.
19847
19848 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
19849
19850 PR target/39897
19851 * config/i386/i386.c (print_operand) ['z']: Revert handling of
19852 HImode operands.
19853
19854 2009-04-25 Joseph Myers <joseph@codesourcery.com>
19855
19856 PR c/39564
19857 * c-decl.c (grokdeclarator): Diagnose declarations of functions
19858 with variably modified return type and no storage class
19859 specifiers, except for the case of nested functions. Distinguish
19860 extern declarations of functions with variably modified return
19861 types from those of objects with variably modified types.
19862
19863 2009-04-25 Jan Hubicka <jh@suse.cz>
19864
19865 * tree.c (list_equal_p): New function.
19866 * tree.h (list_equal_p): Declare.
19867 * coretypes.h (edge_def, edge, const_edge, basic_block_def
19868 basic_block_def, basic_block, const_basic_block): New.
19869 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
19870 (redirect_eh_edge): New function.
19871 (make_eh_edge_update_phi): EH edges are not abnormal.
19872 * except.c: Include tree-flow.h.
19873 (list_match): New function.
19874 (eh_region_replaceable_by_p): New function.
19875 (replace_region): New function.
19876 (hash_type_list): New function.
19877 (hash_eh_region): New function.
19878 (eh_regions_equal_p): New function.
19879 (merge_peers): New function.
19880 (remove_unreachable_regions): Verify EH tree when checking;
19881 merge peers.
19882 (copy_eh_region_1): New function.
19883 (copy_eh_region): New function.
19884 (push_reachable_handler): New function.
19885 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
19886 regions without label but with live RESX.
19887 * except.h (redirect_eh_edge_to_label): New.
19888 * tree-flow.h (redirect_eh_edge): New.
19889 * coretypes.h (edge_def, edge, const_edge, basic_block_def
19890 basic_block_def, basic_block, const_basic_block): Remove.
19891 * Makefile.in (except.o): Add dependency on tree-flow.h
19892 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
19893 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
19894 Remove.
19895
19896 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
19897
19898 PR bootstrap/39645
19899 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
19900 on the destination of memcpy.
19901
19902 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
19903
19904 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
19905 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
19906 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
19907
19908 2009-04-25 Jan Hubicka <jh@suse.cz>
19909
19910 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
19911 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
19912 to be reached by different label than left.
19913 (update_eh_edges): Update comment; remove edge_to_remove if possible
19914 and return true if suceeded.
19915 (cleanup_empty_eh): Accept sharing map; handle shared regions.
19916 (cleanup_eh): Compute sharing map.
19917 * except.c (remove_eh_handler_and_replace): Add argument if we should
19918 update regions.
19919 (remove_unreachable_regions): Update for label sharing.
19920 (label_to_region_map): Likewise.
19921 (get_next_region_sharing_label): New function.
19922 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
19923 prev_try pointers.
19924 (remove_eh_handler): Update.
19925 (remove_eh_region_and_replace_by_outer_of): New function.
19926 * except.h (struct eh_region): Add next_region_sharing_label.
19927 (remove_eh_region_and_replace_by_outer_of,
19928 get_next_region_sharing_label): Declare.
19929 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
19930
19931 2009-04-25 Jan Hubicka <jh@suse.cz>
19932
19933 * tree-cfg.c (split_critical_edges): Split also edges where we can't
19934 insert code even if they are not critical.
19935
19936 2009-04-25 Jan Hubicka <jh@suse.cz>
19937
19938 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19939 (gimple_can_remove_branch_p): EH edges won't remove branch by
19940 redirection.
19941 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
19942 updating of non-abnormal EH edges.
19943 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19944 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
19945 (split_critical_edges): Split also edges where emitting code on them
19946 will lead to splitting later.
19947
19948 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
19949 H.J. Lu <hongjiu.lu@intel.com>
19950
19951 PR target/39590
19952 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
19953 the configured assembler supports fildq and fistpq mnemonics.
19954 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
19955 * configure: Regenerated.
19956 * config.in: Ditto.
19957
19958 * config/i386/i386.c (print_operand): Handle 'Z'.
19959 ['z']: Remove handling of special fild/fist suffixes.
19960 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
19961 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
19962 suffix of fild insn.
19963 (*floatsi<mode>2_vector_mixed): Ditto.
19964 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
19965 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
19966 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19967 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
19968 * config/i386/gas.h (GAS_MNEMONICS): Remove.
19969
19970 2009-04-25 Ben Elliston <bje@au.ibm.com>
19971
19972 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
19973 the source of a set operation.
19974
19975 2009-04-25 Anatoly Sokolov <aesok@post.ru>
19976
19977 * target.h (struct gcc_target): Add case_values_threshold field.
19978 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
19979 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
19980 * targhooks.c (default_case_values_threshold): New function.
19981 * targhooks.h (default_case_values_threshold): Declare function.
19982 * stmt.c (expand_case): Use case_values_threshold target hook.
19983 * expr.h (case_values_threshold): Remove declartation.
19984 * expr.c (case_values_threshold): Remove function.
19985 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
19986
19987 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
19988 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19989 (avr_case_values_threshold): Declare as static.
19990 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
19991
19992 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
19993 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19994 (mn10300_case_values_threshold): New function.
19995
19996 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
19997
19998 * ira.c (setup_cover_and_important_classes): Add enum cast.
19999
20000 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20001
20002 * genpreds.c (write_enum_constraint_num): Output definition of
20003 CONSTRAINT_NUM_DEFINED_P macro.
20004 * ira.c (setup_cover_and_important_classes): Use
20005 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20006
20007 2009-04-24 DJ Delorie <dj@redhat.com>
20008
20009 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20010 __SH2A_SINGLE_ONLY__ also.
20011
20012 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20013
20014 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20015 (movdf_internal): Ditto.
20016 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20017 SFmode and DFmode constants.
20018 (ia64_print_operand): Add 'G' format for printing
20019 floating point constants.
20020
20021 2009-04-24 Richard Guenther <rguenther@suse.de>
20022
20023 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20024 from unsigned additions.
20025
20026 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20027
20028 * c-typeck.c (set_init_index): Allow array designators that are
20029 not integer constant expressions with a pedwarn if pedantic.
20030
20031 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20032
20033 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20034 zero if no overlap in nonzero bits between the operands.
20035
20036 2009-04-24 Ian Lance Taylor <iant@google.com>
20037
20038 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20039 (record_dead_and_set_regs): Likewise.
20040 * df.h (struct df_mw_hardreg): Change flags field to int.
20041 (struct df_base_ref): Likewise.
20042 (struct df): Change changeable_flags field to int.
20043 * df-scan.c (df_defs_record): Change clobber_flags to int.
20044 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20045 constants rather than #define macros.
20046 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20047 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20048 (enum dwarf_calling_convention): Likewise.
20049 (enum dwarf_line_number_x_ops): Likewise.
20050 (enum dwarf_call_frame_info): Likewise.
20051 (enum dwarf_source_language): Likewise.
20052 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20053 (add_calling_convention_attribute): Likewise.
20054 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20055 (combine_comparisons): Change compcode to int. Add cast to enum type.
20056 * genrecog.c (maybe_both_true_2): Change c to int.
20057 (write_switch): Likewise. Add cast to enum type.
20058 * gimplify.c (gimplify_omp_for): Handle return values from
20059 gimplify_expr using MIN rather than bitwise or.
20060 (gimplify_expr): Add cast to enum type.
20061 * ipa-prop.c (update_jump_functions_after_inlining): Change
20062 IPA_BOTTOM to IPA_JF_UNKNOWN.
20063 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20064 Add casts to enum type.
20065 (setup_cover_and_important_classes): Change cl to int. Add casts
20066 to enum type.
20067 (setup_class_translate): Change cl and mode to int.
20068 (ira_init_once): Change mode to int.
20069 (free_register_move_costs): Likewise.
20070 (setup_prohibited_mode_move_regs): Add casts to enum type.
20071 * langhooks.c (add_builtin_function_common): Rework assertion that
20072 value fits bitfield.
20073 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20074 * omega.c (omega_do_elimination): Avoid math on enum types.
20075 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20076 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20077 int local to handle integral_argment value.
20078 * regmove.c (try_auto_increment): Change PUT_MODE to
20079 PUT_REG_NOTE_KIND.
20080 * reload.c (push_secondary_reload): Add casts to enum type.
20081 (secondary_reload_class, find_valid_class): Likewise.
20082 * reload1.c (emit_input_reload_insns): Likewise.
20083 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20084 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20085 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20086 constant.
20087 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20088 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20089 enum type.
20090 (expand_complex_libcall): Add casts to enum type.
20091 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20092 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20093 with ERROR_MARK, not NUM_TREE_CODES.
20094 (vect_create_epilog_for_reduction): Likewise.
20095 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20096 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20097 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20098 enum machine_mode.
20099 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20100 vect_unused_in_loop. Change 0 to loop_vect.
20101 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20102 * var-tracking.c (get_init_value): Change return type to enum
20103 var_init_status.
20104 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20105 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20106 arm_fp_model.
20107 (arm_override_options): Add casts to enum type.
20108 (arm_emit_tls_decoration): Likewise.
20109 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20110 to enum type.
20111 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20112 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20113 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20114 enum type.
20115 * config/s390/s390.c (code_for_builtin_64): Change to array of
20116 enum insn_code.
20117 (code_for_builtin_31): Likewise.
20118 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20119 const *.
20120 * config/sparc/sparc.c (sparc_override_options): Change value
20121 field in struct code_model to enum cmodel. In initializer change
20122 0 to NULL and add cast to enum type.
20123
20124 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20125 Change all callers. Issue a -Wc++-compat warning using
20126 lhs_origtype if necessary.
20127 (convert_for_assignment): Issue -Wc++-compat warnings about
20128 invalid conversions to enum type on assignment.
20129 * c-common.h (build_modify_expr): Update declaration.
20130
20131 2009-04-24 Nick Clifton <nickc@redhat.com>
20132
20133 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20134 (function_arg_advance): Likewise.
20135 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20136 5th alternative.
20137
20138 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20139
20140 * config/s390/constraints.md ('I', 'J'): Fix condition.
20141
20142 2009-04-24 Diego Novillo <dnovillo@google.com>
20143
20144 * gengtype-parse.c (parse_error): Add newline after message.
20145
20146 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20147
20148 * config/i386/sse.md (avxmodesuffixs): Removed.
20149 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20150 (*avx_pinsr<ssevecsize>): This.
20151
20152 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20153
20154 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20155 follow chains of regs with a single definition, and allow expressions
20156 that are function_invariant_p.
20157 (simple_rhs_p): Allow expressions that are function_invariant_p.
20158
20159 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20160
20161 PR middle-end/39867
20162 * fold-const.c (fold_cond_expr_with_comparison): When folding
20163 > and >= to MAX, make sure the MAX uses the same type as the
20164 comparison's operands.
20165
20166 2009-04-24 Nick Clifton <nickc@redhat.com>
20167
20168 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20169 addressing for DImode accesses.
20170 (frv_print_operand_address): Handle PLUS case.
20171 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20172
20173 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20174
20175 PR rtl-optimization/39794
20176 * alias.c (canon_true_dependence): Add x_addr argument.
20177 * rtl.h (canon_true_dependence): Adjust prototype.
20178 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20179 * cselib.c (cselib_invalidate_mem): Likewise.
20180 * gcse.c (compute_transp): Likewise.
20181 * dse.c (scan_reads_nospill): Likewise.
20182 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20183 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20184 canon_base_addr of the group, plus optional offset.
20185 (struct group_info): Rename canon_base_mem to
20186 canon_base_addr.
20187 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20188 canon_rtx of base_mem.
20189
20190 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20191
20192 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20193 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20194
20195 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20196
20197 * config/spu/spu-builtins.h: Delete file.
20198
20199 * config/spu/spu.h (enum spu_builtin_type): Move here from
20200 spu-builtins.h.
20201 (struct spu_builtin_description): Likewise. Add GTY marker.
20202 Do not use enum spu_function_code or enum insn_code.
20203 (spu_builtins): Add extern declaration.
20204
20205 * config/spu/spu.c: Do not include "spu-builtins.h".
20206 (enum spu_function_code, enum spu_builtin_type_index,
20207 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20208 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20209 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20210 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20211 (spu_builtin_types): Make static. Add GTY marker.
20212 (spu_builtins): Add extern declaration with GTY marker.
20213 Include "gt-spu.h".
20214
20215 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20216 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20217 Check programmatically whether all parameters are scalar.
20218
20219 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20220
20221 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20222
20223 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20224 assignment from the constructor either if the target is volatile.
20225
20226 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20227
20228 * config/arm/arm.md (insv): Do not share operands[0].
20229
20230 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20231
20232 * config/vxlib-tls.c (active_tls_threads): Delete.
20233 (delete_hook_installed): New.
20234 (tls_delete_hook): Don't delete the delete hook.
20235 (tls_destructor): Delete it here.
20236 (__gthread_set_specific): Adjust installing the delete hook.
20237 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20238 __gthread_leave_tsd_dtor_context.
20239
20240 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20241
20242 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20243
20244 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20245
20246 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20247 enum type.
20248 (alpha_rtx_costs): Ditto.
20249 (emit_unlikely_jump): Use add_reg_note.
20250 (emit_frame_store_1): Ditto.
20251 (alpha_expand_prologue): Ditto.
20252 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20253 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20254
20255 2009-04-23 Nick Clifton <nickc@redhat.com>
20256
20257 * config/v850/v850.md (epilogue): Remove suppressed code.
20258 (return): Rename to return_simple and remove test of frame size.
20259 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20260 to gen_return_simple.
20261
20262 2009-04-22 Jing Yu <jingyu@google.com>
20263
20264 PR testsuite/39781
20265 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20266
20267 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20268
20269 PR C/31499
20270 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20271 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20272 value is a VECTOR_CST, the element type is the element type of the
20273 vector.
20274
20275 2009-04-22 DJ Delorie <dj@redhat.com>
20276
20277 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20278
20279 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20280
20281 * alias.c (find_base_term): Move around LO_SUM case, so that
20282 CONST falls through into PLUS/MINUS handling.
20283
20284 PR c/39855
20285 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20286 into 0, use omit_one_operand.
20287
20288 2009-04-23 Ben Elliston <bje@au.ibm.com>
20289
20290 * config/rs6000/linux-unwind.h (get_regs): Remove type
20291 puns. Change the type of `pc' to an array of unsigned ints and
20292 update all users. Constify frame24.
20293
20294 2009-04-22 DJ Delorie <dj@redhat.com>
20295
20296 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20297 declarations before code.
20298 (current_function_special_page_vector): Likewise.
20299 (m32c_expand_insv): Silence a warning.
20300
20301 2009-04-21 Taras Glek <tglek@mozilla.com>
20302
20303 * alias.c: Update GTY annotations to new syntax.
20304 * basic-block.h: Likewise.
20305 * bitmap.h: Likewise.
20306 * c-common.h: Likewise.
20307 * c-decl.c: Likewise.
20308 * c-parser.c: Likewise.
20309 * c-pragma.c: Likewise.
20310 * c-tree.h: Likewise.
20311 * cfgloop.h: Likewise.
20312 * cgraph.h: Likewise.
20313 * config/alpha/alpha.c: Likewise.
20314 * config/arm/arm.h: Likewise.
20315 * config/avr/avr.h: Likewise.
20316 * config/bfin/bfin.c: Likewise.
20317 * config/cris/cris.c: Likewise.
20318 * config/darwin.c: Likewise.
20319 * config/frv/frv.c: Likewise.
20320 * config/i386/i386.c: Likewise.
20321 * config/i386/i386.h: Likewise.
20322 * config/i386/winnt.c: Likewise.
20323 * config/ia64/ia64.h: Likewise.
20324 * config/iq2000/iq2000.c: Likewise.
20325 * config/mips/mips.c: Likewise.
20326 * config/mmix/mmix.h: Likewise.
20327 * config/pa/pa.c: Likewise.
20328 * config/pa/pa.h: Likewise.
20329 * config/rs6000/rs6000.c: Likewise.
20330 * config/s390/s390.c: Likewise.
20331 * config/sparc/sparc.c: Likewise.
20332 * config/xtensa/xtensa.c: Likewise.
20333 * cselib.h: Likewise.
20334 * dbxout.c: Likewise.
20335 * dwarf2out.c: Likewise.
20336 * except.c: Likewise.
20337 * except.h: Likewise.
20338 * fixed-value.h: Likewise.
20339 * function.c: Likewise.
20340 * function.h: Likewise.
20341 * gimple.h: Likewise.
20342 * integrate.c: Likewise.
20343 * optabs.c: Likewise.
20344 * output.h: Likewise.
20345 * real.h: Likewise.
20346 * rtl.h: Likewise.
20347 * stringpool.c: Likewise.
20348 * tree-data-ref.c: Likewise.
20349 * tree-flow.h: Likewise.
20350 * tree-scalar-evolution.c: Likewise.
20351 * tree-ssa-address.c: Likewise.
20352 * tree-ssa-alias.h: Likewise.
20353 * tree-ssa-operands.h: Likewise.
20354 * tree.c: Likewise.
20355 * tree.h: Likewise.
20356 * varasm.c: Likewise.
20357 * varray.h: Likewise.
20358 * vec.h: Likewise.
20359 * coretypes.h: Do not define GTY macro if it is already defined.
20360 * doc/gty.texi: Update GTY documentation to new syntax.
20361 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20362 annotations on structs.
20363 * gengtype-parse.c: Likewise.
20364
20365 2009-04-22 Mark Heffernan <meheff@google.com>
20366
20367 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20368
20369 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20370
20371 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20372 where appropriate.
20373
20374 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20375
20376 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20377 the same as a PLUS without a shift. Increase the cost of a
20378 CONST_INT in MULT.
20379
20380 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20381
20382 * Makefile.in: Update dependencies.
20383 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20384 * errors.h: Remove bogus comment about compatibility.
20385 (warning): Update declaration.
20386 * genautomata.c: Update all calls to warning.
20387 * gimple.c: Do not include errors.h. Include toplev.h.
20388 * tree-ssa-structalias.c: Do not include errors.h.
20389 * omega.c: Likewise.
20390 * tree-ssa-reassoc.c: Likewise.
20391 * config/spu/spu-c.c: Likewise.
20392 * config/spu/t-spu-elf: Update dependencies.
20393
20394 2009-04-22 Richard Guenther <rguenther@suse.de>
20395
20396 PR tree-optimization/39824
20397 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20398 make sure the types are compatible.
20399
20400 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20401
20402 PR c++/14875
20403 * c-common.c (c_parse_error): Take a token_flags parameter.
20404 Use token_type for the token type instead.
20405 Pass token_flags to cpp_type2name.
20406 * c-common.h (c_parse_error): Update declaration.
20407 * c-parser.c (c_parser_error): Pass 0 as token flags.
20408
20409 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
20410
20411 PR rtl-optimization/39580
20412 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20413
20414 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20415
20416 * function.c (expand_function_end): Do not emit a jump to the "naked"
20417 return label for fall-through returns.
20418 * except.c (sjlj_emit_function_exit): Always place the call to the
20419 unregister function at the location installed by expand_function_end.
20420
20421 2009-04-22 Richard Guenther <rguenther@suse.de>
20422
20423 PR tree-optimization/39845
20424 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20425 (gen_inbound_check): Likewise.
20426
20427 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
20428
20429 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20430 padding for PPC.
20431 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20432 * config/vxlib.c (__gthread_once): Add race guard for PPC.
20433
20434 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20435
20436 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20437 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20438 shift counts to avoid out-of-bounds array accesses.
20439
20440 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20441
20442 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20443 (Pmode): Move above.
20444
20445 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
20446
20447 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20448 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20449 GET_CODE macro. Use IN_RANGE macro where appropriate.
20450 * config/alpha/alpha.h: Ditto.
20451 * config/alpha/alpha.md: Ditto.
20452 * config/alpha/constraints.md: Ditto.
20453 * config/alpha/predicates.md: Ditto.
20454
20455 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20456
20457 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20458 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20459 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20460 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20461 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20462 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20463 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20464 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20465 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20466 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20467 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20468 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20469 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20470 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20471 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20472 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20473 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20474 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20475 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20476 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20477 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20478 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20479 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20480 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20481 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20482 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20483 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20484
20485 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20486
20487 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20488 references from comments.
20489 * cfgbuild.c: (count_basic_blocks): Delete.
20490 (find_basic_blocks_1): Delete.
20491 (find_basic_blocks): Delete.
20492 * except.c (finish_eh_generation): Make static. Move comment from
20493 except.h here. Remove find_basic_blocks references from comments.
20494 * except.h (finish_eh_generation): Delete.
20495 * basic-block.h (find_basic_blocks): Delete.
20496 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20497
20498 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
20499
20500 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
20501 (sdbout_parms): Likewise.
20502
20503 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
20504
20505 * config/sh/sh.c (prepare_cbranch_operands): Use
20506 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20507 (expand_cbranchdi4): Likewise.
20508 (from_compare): Add cast to enum type.
20509 (expand_cbranchsi4): Use add_reg_note.
20510 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20511 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20512 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20513 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20514 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20515 instead of CODE_FOR_nothing.
20516 (cbranchdi4): Likewise. Fix the order of arguments for
20517 gen_rtx_fmt_ee.
20518 (push_fpscr): Use add_reg_note.
20519 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20520 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20521
20522 2009-04-21 Joseph Myers <joseph@codesourcery.com>
20523
20524 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20525 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20526 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20527 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20528 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20529 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20530 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20531 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20532 config/alpha/x-vms, config/arc/t-arc,
20533 config/arm/README-interworking, config/arm/arm-c.c,
20534 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20535 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20536 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20537 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20538 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20539 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20540 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20541 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20542 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20543 config/cris/t-elfmulti, config/crx/t-crx,
20544 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20545 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20546 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20547 config/h8300/t-h8300, config/i386/athlon.md,
20548 config/i386/darwin-libgcc.10.4.ver,
20549 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20550 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20551 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20552 config/i386/t-linux64, config/i386/t-nwld,
20553 config/i386/t-rtems-i386, config/i386/t-sol2-10,
20554 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20555 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20556 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20557 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20558 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20559 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20560 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20561 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20562 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20563 config/m68k/t-uclinux, config/mcore/t-mcore,
20564 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20565 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20566 config/mips/crtn.asm, config/mips/irix-crti.asm,
20567 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20568 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20569 config/mips/mips-fixed.md, config/mips/sb1.md,
20570 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20571 config/mips/t-iris6, config/mips/t-isa3264,
20572 config/mips/t-libgcc-mips16, config/mips/t-linux64,
20573 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20574 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20575 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20576 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20577 config/mn10300/t-linux, config/mn10300/t-mn10300,
20578 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20579 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20580 config/picochip/libgccExtras/clzsi2.asm,
20581 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20582 config/rs6000/darwin-libgcc.10.4.ver,
20583 config/rs6000/darwin-libgcc.10.5.ver,
20584 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20585 config/rs6000/t-aix43, config/rs6000/t-aix52,
20586 config/rs6000/t-darwin, config/rs6000/t-fprules,
20587 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20588 config/rs6000/t-lynx, config/rs6000/t-netbsd,
20589 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20590 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20591 config/rs6000/t-rtems, config/rs6000/t-spe,
20592 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20593 config/score/t-score-elf, config/sh/divcost-analysis,
20594 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20595 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20596 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20597 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20598 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20599 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20600 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20601 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20602 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20603 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20604 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20605 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20606 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20607 limitx.h, version.c, xcoff.h: Add copyright and license notices.
20608 * config/h8300/genmova.sh: Include copyright and license notices
20609 in generated output.
20610 * config/h8300/mova.md: Regenerate.
20611 * doc/install.texi2html: Include word "Copyright" in copyright
20612 notice and use name "Free Software Foundation, Inc.".
20613 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20614 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20615 ChangeLog-2007, ChangeLog-2008: Correct dates.
20616
20617 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
20618
20619 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20620 NE_EXPR operations as well.
20621 * c-parser.c (c_parser_condition): Do not set location information on
20622 the condition.
20623 (c_parser_conditional_expression): Likewise.
20624 (c_parser_binary_expression): Set location information on operators.
20625 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20626 TRUTH_NOT_EXPR has been folded.
20627 * fold-const.c (fold_truth_not_expr): Copy location information from
20628 the incoming expression to the outgoing one.
20629 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
20630 recursive calls on the LHS of the operator but pass that of the
20631 operator to recursive calls on the RHS of the operator. Set it
20632 on the COND_EXPR.
20633 (shortcut_cond_expr): Set the locus of the operator on the second
20634 COND_EXPR and that of the expression on the first in degenerate cases.
20635 Pass the locus of the expression to calls to shortcut_cond_r.
20636 Set the locus of the 'then' block on the associated jump, if any.
20637 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
20638 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20639 expression to call to gimplify_boolean_expr.
20640
20641 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
20642
20643 * config.gcc: Add additional configuration for
20644 i686-w64-mingw* and x86_64-w64-mingw* triplet.
20645 * config/i386/mingw-w64.h: New mingw-w64 specific header.
20646 (CPP_SPEC): Redefine for allowing -municode option.
20647 (STARTFILE_SPEC): Likewise.
20648 * config/i386/t-mingw-w64: New.
20649 * config/i386/mingw-w64.opt: New.
20650 (municode): Add new target option.
20651 * doc/invoke.texi (municode): Add documentation for new option.
20652
20653 2009-04-21 Ian Lance Taylor <iant@google.com>
20654
20655 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20656 Correct test for number of arguments.
20657 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20658
20659 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
20660
20661 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20662 argument of emit_library_call.
20663
20664 2009-04-21 Richard Guenther <rguenther@suse.de>
20665
20666 PR middle-end/39829
20667 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20668 inside VIEW_CONVERT_EXPRs.
20669
20670 2009-04-21 Martin Jambor <mjambor@suse.cz>
20671
20672 * tree-switch-conversion.c (build_constructors): Split a long line.
20673 (constructor_contains_same_values_p): New function.
20674 (build_one_array): Create assigns of constants if possible, do not
20675 call mark_sym_for_renaming, call update_stmt.
20676 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
20677 make_rename_temp. Do not call mark_symbols_for_renaming, call
20678 update_stmt.
20679 (gen_def_assigns): Do not call mark_symbols_for_renaming or
20680 find_new_referenced_vars, call update_stmt.
20681 (gen_inbound_check): Use create_tmp_var and create ssa names manually
20682 instead of calling make_rename_temp. Do not call
20683 find_new_referenced_vars or mark_symbols_for_renaming, call
20684 update_stmt.
20685
20686 2009-04-21 Richard Guenther <rguenther@suse.de>
20687
20688 PR tree-optimization/39827
20689 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
20690 (tree_ssa_phiprop): Pass the correct array size.
20691
20692 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
20693
20694 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
20695
20696 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
20697
20698 PR 16202
20699 * c-typeck.c (lvalue_p): Move declaration ...
20700 * c-common.h (lvalue_p): ... to here.
20701 * c-common.c (candidate_equal_p): New.
20702 (add_tlist): Use it.
20703 (merge_tlist): Use it.
20704 (warn_for_collisions_1): Likewise.
20705 (warning_candidate_p): Accept more candidates.
20706 (verify_tree): A warning candidate can be an expression. Use
20707 candidate_equal_p.
20708
20709 2009-04-21 Ben Elliston <bje@au.ibm.com>
20710
20711 PR target/5267
20712 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20713 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
20714 options. Remove -mcall-solaris documentation.
20715
20716 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20717
20718 PR c++/13358
20719 * doc/invoke.texi (-Wlong-long): Update description.
20720 * c-lex (interpret_integer): Only warn if there was no previous
20721 overflow and -Wlong-long is enabled.
20722 * c-decl.c (declspecs_add_type): Drop redundant flags.
20723 * c.opt (Wlong-long): Init to -1.
20724 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
20725 and front-end warn_long_long. Wlong-long only depends on other
20726 flags if it is uninitialized.
20727 * c-parser.c (disable_extension_diagnostics): warn_long_long is
20728 the same for CPP and FE.
20729 (restore_extension_diagnostics): Likewise.
20730
20731 2009-04-20 Ian Lance Taylor <iant@google.com>
20732
20733 Fix enum conversions which are invalid in C++:
20734 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
20735 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
20736 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
20737 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
20738 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
20739 (dbxout_parms): Likewise.
20740 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
20741 (df_clear_flags): Likewise.
20742 * df-problems.c (df_rd_bb_local_compute_process_def): Change
20743 top_flag parameter to int.
20744 (df_chain_create_bb_process_use): Likewise.
20745 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
20746 Remove cast.
20747 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
20748 (df_ref_create_structure, df_def_record_1): Likewise.
20749 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
20750 (df_notes_rescan): Change 0 to VOIDmode in function call.
20751 (df_get_call_refs, df_insn_refs_collect): Likewise.
20752 (df_bb_regs_collect): Likewise.
20753 (df_entry_block_defs_collect): Likewise.
20754 (df_exit_block_uses_collect): Likewise.
20755 * df.h: Update declarations.
20756 * double-int.c (double_int_divmod): Add cast to enum type.
20757 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
20758 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
20759 (based_loc_descr): Likewise.
20760 (loc_descriptor_from_tree_1): Change first_op and second_op to
20761 enum dwarf_location_atom. Add cast to enum type.
20762 * expmed.c (init_expmed): Change 0 to SET in function call.
20763 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
20764 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
20765 (do_store_flag): Likewise.
20766 * fixed-value.h (struct fixed_value): Change mode to enum
20767 machine_mode.
20768 * function.c (assign_parms): Change 0 to VOIDmode in function call.
20769 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
20770 function call.
20771 (insert_insn_decl, insert_decl, insert_state): Likewise.
20772 (automata_list_finish): Likewise.
20773 * genrecog.c (process_define_predicate): Add cast to enum type.
20774 * gensupport.c (init_predicate_table): Add cast to enum type.
20775 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
20776 function call.
20777 (gimple_build_call_1, gimple_build_label): Likewise.
20778 (gimple_build_goto, gimple_build_asm_1): Likewise.
20779 (gimple_build_switch_1, gimple_build_cdt): Likewise.
20780 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
20781 (enum fallback): Rename from enum fallback_t.
20782 (fallback_t): Typedef as int.
20783 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
20784 GSI_SAME_STMT in function call.
20785 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
20786 enum type.
20787 (setup_reg_class_relations): Likewise.
20788 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
20789 (setup_prohibited_class_mode_regs): Add cast to enum type.
20790 (setup_prohibited_mode_move_regs): Likewise.
20791 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
20792 (record_address_regs): Change i to enum reg_class.
20793 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
20794 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
20795 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
20796 (GET_MODE_2XWIDER_MODE): Likewise.
20797 (GET_CLASS_NARROWEST_MODE): Likewise.
20798 * omp-low.c (expand_omp_for): Add cast to enum type.
20799 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
20800 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
20801 * postreload.c (reload_cse_simplify_operands): Change rclass local
20802 to enum reg_class.
20803 * predict.c (combine_predictions_for_insn): Change best_predictor
20804 and predictor to enum br_predictor.
20805 (combine_predictions_for_bb): Likewise.
20806 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
20807 use SET_PREDICT_EXPR_OUTCOME.
20808 * real.c (real_arithmetic): Change icode to code in function call.
20809 * reginfo.c (init_move_cost): Add casts to enum type.
20810 (init_reg_sets_1, init_fake_stack_mems): Likewise.
20811 * regmove.c (regclass_compatible_p): Change class0 and class1 to
20812 enum reg_class.
20813 * reload.c (find_valid_class): Add casts to enum type.
20814 (push_reload): Change 0 to NO_REGS in function call.
20815 (find_reloads): Change this_alternative to array of enum
20816 reg_class. Remove some now-unnecessary casts.
20817 (make_memloc): Change 0 to VOIDmode in function call.
20818 * reload1.c (reload): Change 0 to VOIDmode in function call.
20819 (eliminate_regs_1, elimination_effects): Likewise.
20820 (eliminate_regs_in_insn): Likewise.
20821 (emit_input_reload_insns): Add cast to enum type.
20822 (delete_output_reload): Change 0 to VOIDmode in function call.
20823 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
20824 to enum type in function call.
20825 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
20826 (SET_PREDICT_EXPR_OUTCOME): Define.
20827 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
20828 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
20829 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
20830 (dump_function): Likewise.
20831 * tree-dump.h: Update declarations.
20832 * tree-pass.h: Update declarations.
20833 * varasm.c (assemble_integer): Change mclass to enum mode_class.
20834 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
20835 enum type.
20836 (arm_rtx_costs_1): Correct parenthesization.
20837 (arm_rtx_costs): Add casts to enum type.
20838 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
20839 (vfp_emit_fstmd): Use add_rg_note.
20840 (emit_multi_reg_push, emit_sfm): Likewise.
20841 (thumb_set_frame_pointer): Likewise.
20842 (arm_expand_prologue): Likewise.
20843 (arm_regno_class): Change return type to enum reg_class.
20844 (thumb1_expand_prologue): Use add_reg_note.
20845 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
20846 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
20847 in function call.
20848 * config/arm/gentune.sh: Add cast to enum type.
20849 * config/arm/arm-tune.md: Rebuild.
20850 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
20851 (ix86_split_fp_branch, predict_jump): Likewise.
20852 (ix86_expand_multi_arg_builtin): Change sub_code from enum
20853 insn_code to enum rtx_code.
20854 (ix86_builtin_vectorized_function): Add cast to enum type.
20855 * config/i386/i386.md (truncdfsf2): Change slot to enum
20856 ix86_stack_slot.
20857 (truncxf<mode>2, isinf<mode>2): Likewise.
20858 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
20859 enum type.
20860 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
20861 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
20862 (insert_bundle_state): Change 1 to INSERT in function call.
20863 (ia64_add_bundle_selector_before): Likewise.
20864 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
20865 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
20866 (restore_stack_nonlocal): Likewise.
20867 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
20868 function call.
20869 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
20870 function call.
20871 (mips_rtx_costs): Likewise.
20872 (mips_override_options): Add casts to enum type.
20873 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
20874 in function call.
20875 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
20876 (store_reg, set_reg_plus_d): Likewise.
20877 (hppa_expand_prologue, hppa_profile_hook): Likewise.
20878 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20879 cast to enum type.
20880 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
20881 function call.
20882 (emit_unlikely_jump): Use add_reg_note.
20883 (rs6000_emit_allocate_stack): Likewise.
20884 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
20885 (output_toc): Change 1 to INSERT in function call.
20886 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
20887 (rs6000_initialize_trampoline): Likewise.
20888 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
20889 function call.
20890 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
20891 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
20892 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
20893 (save_gprs): Use add_reg_note.
20894 (s390_emit_prologue): Likewise.
20895 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20896 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
20897 (sparc_fold_builtin): Add cast to enum type.
20898 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
20899 enum insn_code.
20900 (spu_expand_prologue): Use add_reg_note.
20901 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
20902
20903 2009-04-20 Ian Lance Taylor <iant@google.com>
20904
20905 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
20906 (c_parser_postfix_expression_after_primary): Get VEC for list of
20907 arguments. Get original types of arguments. Call
20908 build_function_call_vec.
20909 (cached_expr_list_1, cached_expr_list_2): New static variables.
20910 (c_parser_expr_list): Change return type to VEC *. Add
20911 p_orig_types parameter. Change all callers.
20912 (c_parser_release_expr): New static function.
20913 (c_parser_vec_to_tree_list): New static function.
20914 * c-typeck.c (build_function_call): Rewrite to build a VEC and
20915 call build_function_call_vec.
20916 (build_function_call_vec): New function, based on old
20917 build_function_call.
20918 (convert_arguments): Remove nargs and argarray parameters. Change
20919 values to a VEC. Add origtypes parameter.
20920 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
20921 (convert_for_assignment): Add origtype parameter. Change all
20922 callers. If warn_cxx_compat, check for conversion to an enum
20923 type when calling a function.
20924 (store_init_value): Add origtype parameter. Change all callers.
20925 (digest_init): Likewise.
20926 (struct init_node): Add origtype field.
20927 (add_pending_init): Add origtype parameter. Change all callers.
20928 (output_init_element): Likewise.
20929 (output_pending_init_elements): Pass origtype from init_node to
20930 output_init_element.
20931 (process_init_element): Pass origtype from c_expr to
20932 output_init_element.
20933 (c_finish_return): Add origtype parameter. Change all callers.
20934 * c-common.c (sync_resolve_size): Change params to VEC *. Change
20935 caller.
20936 (sync_resolve_params): Likewise.
20937 (sync_resolve_return): Change params to first_param. Change caller.
20938 (resolve_overloaded_builtins): Change params to VEC *. Change
20939 callers. Save first parameter around call to build_function_call_vec.
20940 * c-decl.c (finish_decl): Add origtype parameter. Change all
20941 callers. Call build_function_call_vec rather than
20942 build_function_call for cleanup.
20943 * c-tree.h: Update declarations.
20944 * c-common.h: Update declarations.
20945 * stub-objc.c (objc_rewrite_function_call): Change parameter from
20946 params to first_param.
20947 * target.h (struct gcc_target): Change resolve_overloaded_builtin
20948 params parameter from tree to void *.
20949 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20950 Change arglist parameter to have type void *, and to be a pointer
20951 to a VEC.
20952 * config/rs6000/rs6000-protos.h
20953 (altivec_resolve_overloaded_builtin): Update declaration.
20954 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
20955 fnargs parameter to have type void *, and to be a pointer to a
20956 VEC. Call build_function_call_vec instead of
20957 build_function_call.
20958 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
20959
20960 2009-04-20 Joey Ye <joey.ye@intel.com>
20961 Xuepeng Guo <xuepeng.guo@intel.com>
20962 H.J. Lu <hongjiu.lu@intel.com>
20963
20964 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
20965
20966 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
20967 (IX86_LEA_PRIORITY): Likewise.
20968 (distance_non_agu_define): New function.
20969 (distance_agu_use): Likewise.
20970 (ix86_lea_for_add_ok): Likewise.
20971 (ix86_dep_by_shift_count): Likewise.
20972
20973 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
20974 should split for LEA.
20975
20976 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
20977 function.
20978 (ix86_dep_by_shift_count): Likewise.
20979
20980 2009-04-20 Richard Guenther <rguenther@suse.de>
20981
20982 * expr.c (handled_component_p): Move ...
20983 * tree.h (handled_component_p): ... here.
20984 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
20985 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
20986 and REALPART_EXPR to be in one group.
20987
20988 2009-04-20 Richard Guenther <rguenther@suse.de>
20989
20990 * basic-block.h (get_all_dominated_blocks): Declare.
20991 * dominance.c (get_all_dominated_blocks): New function.
20992 * tree-cfg.c (get_all_dominated_blocks): Remove.
20993 (remove_edge_and_dominated_blocks): Adjust.
20994 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
20995 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
20996 instead of recursing.
20997
20998 2009-04-20 Doug Kwan <dougkwan@google.com>
20999
21000 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21001 (struct cgraph_node_set_def): New type.
21002 (cgraph_node_set) New type. Also declare vector functions.
21003 (struct cgraph_node_set_element_def): New type.
21004 (cgraph_node_set_element): Ditto.
21005 (cgraph_node_set_iterator): New iterator type.
21006 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21007 cgraph_node_set_remove, dump_cgraph_node_set,
21008 debug_cgraph_node_set): New prototypes.
21009 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21010 cgraph_node_set_size): New inlines.
21011 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21012 including cgraph.h.
21013 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21014 argument to function 'write_summary'.
21015 * ipa.c: Include ggc.h.
21016 (hash_cgraph_node_set_element,
21017 eq_cgraph_node_set_element, cgraph_node_set_new,
21018 cgraph_node_set_add, cgraph_node_set_remove,
21019 cgraph_node_set_find, dump_cgraph_node_set,
21020 debug_cgraph_node_set): New functions.
21021 * Makefile.in (ipa.o): Add dependency on GGC_H.
21022
21023 2009-04-20 Ira Rosen <irar@il.ibm.com>
21024
21025 PR tree-optimization/39675
21026 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21027 check of the return code of vect_schedule_slp. Check that
21028 stmt_vec_info still exists for the statement, before checking its
21029 vectorization type.
21030
21031 2009-04-20 Michael Matz <matz@suse.de>
21032
21033 * Makefile.in (generated_files): Take out $(simple_generated_c).
21034
21035 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21036
21037 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21038 (UINTPTR_TYPE): Likewise.
21039
21040 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21041
21042 PR c/37481
21043 * c-typeck.c (digest_init): Check for initializing an array with a
21044 string literal.
21045
21046 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21047
21048 PR c/19771
21049 * c-semantics.c (pop_stmt_list): Propagate
21050 STATEMENT_LIST_HAS_LABEL to parent statement list.
21051
21052 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21053
21054 * config/mips/mips.h (mips_tune_attr): New macro.
21055 * config/mips/mips.md (cpu): Use it.
21056
21057 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21058
21059 PR c/38243
21060 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21061 declaring a tag.
21062
21063 2009-04-19 Diego Novillo <dnovillo@google.com>
21064
21065 * toplev.c (compile_file): Move call to coverage_finish ...
21066 * cgraphunit.c (ipa_passes): ... here.
21067 Call cgraph_process_new_functions.
21068 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21069 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21070
21071 2009-04-19 Jan Hubicka <jh@suse.cz>
21072
21073 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21074 cfun.
21075 (dump_cgraph_node): Dump can throw external flag.
21076 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21077
21078 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21079
21080 PR c/32061
21081 PR c++/36954
21082 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21083 * common.opt (Wlogical-op): Move from here...
21084 * c.opt (Wlogical-op): ... to here.
21085 * c-typeck.c (parser_build_binary_op): Update call to
21086 warn_logical_operator.
21087 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21088 extra_warnings.
21089 * c-common.c (warn_logical_op): Update.
21090 * c-common.h (warn_logical_op): Update declaration.
21091
21092 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21093
21094 * tree.c (protected_set_expr_location): Fix formatting.
21095
21096 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21097
21098 PR c/27676
21099 * c-typeck.c (readonly_warning): new.
21100 (build_unary_op, build_modify_expr): Use readonly_warning for
21101 storing into something readonly but not const-qualified.
21102
21103 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21104
21105 PR c/22367
21106 * c-typeck.c (build_unary_op): Check for taking address of
21107 expression of type void.
21108
21109 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21110
21111 PR c/35210
21112 * c-typeck.c (build_function_call): Check for calling a function
21113 with qualified void return types. Call require_complete_type when
21114 generating a trap.
21115
21116 2009-04-18 Jan Hubicka <jh@suse.cz>
21117
21118 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21119 Set nothrow flag.
21120 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21121 can_throw_external flag.
21122 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21123 * ipa-pure-const.c (ignore_edge): New function.
21124 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21125 only over can_throw_external edges.
21126 (local_pure_const): Add nothrow flag.
21127 * ipa-utils.c (searchc): Add ignore_edge callback.
21128 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21129 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21130 (set_nothrow_function_flags): Update cgraph.
21131 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21132
21133 2009-04-18 Richard Guenther <rguenther@suse.de>
21134
21135 PR middle-end/39804
21136 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21137 (fold_stmt): ... this and ...
21138 (fold_stmt_inplace): ... this.
21139 (fold_stmt_1): Fold references in calls and asms.
21140 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21141
21142 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21143
21144 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21145 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21146
21147 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21148
21149 * tree.c (function_args_count): Remove.
21150 * tree.h: Remove the prototype for function_args_count.
21151
21152 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21153
21154 * tree-iterator.c (expr_only): Remove.
21155 * tree.h: Remove the prototype for expr_only.
21156
21157 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21158
21159 * reginfo.c (cannot_change_mode_set_regs): Remove.
21160 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21161
21162 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21163
21164 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21165 whether operands 0 and 1 overlaps.
21166
21167 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21168
21169 PR middle-end/36902
21170 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21171 pointer. Use warning_at instead of warning.
21172 (search_for_addr_array): Likewise.
21173 (check_array_bounds): Likewise.
21174 (check_all_array_refs): Check that the incoming edge is not in the
21175 list of edges to be removed.
21176 (check_all_array_refs): Avoid the temporal pointer.
21177 (vrp_visit_cond_stmt): Fix typo.
21178 (simplify_switch_using_ranges): Handle the case where the switch
21179 index is an integer constant.
21180
21181 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21182
21183 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21184
21185 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21186
21187 * doc/extend.texi, doc/invoke.texi: Fix typos.
21188
21189 2009-04-17 Cary Coutant <ccoutant@google.com>
21190
21191 * tree-flow-inline.h (get_lineno): Fix inverted test.
21192
21193 2009-04-17 Diego Novillo <dnovillo@google.com>
21194
21195 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21196 assertion for AVAIL_OUT.
21197
21198 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21199
21200 PR target/38627
21201 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21202 * config/sh/linux-atomic.asm: Likewise.
21203
21204 2009-04-17 Diego Novillo <dnovillo@google.com>
21205
21206 * except.c (debug_eh_tree): New.
21207 (struct eh_region, struct eh_status): Move ...
21208 * except.h: ... here.
21209 (add_type_for_runtime): Declare extern.
21210 (lookup_type_for_runtime): Likewise.
21211 (debug_eh_tree): Declare.
21212 * Makefile.in (GTFILES): List except.h before except.c
21213
21214 2009-04-17 Diego Novillo <dnovillo@google.com>
21215
21216 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21217 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21218 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21219 (find_vars_r): ... here.
21220 * tree-flow.h (find_referenced_vars_in): Declare.
21221 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21222 that AVAIL_OUT exists for BLOCK.
21223 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21224 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21225 (tree-parloops.o): Likewise.
21226
21227 2009-04-17 Simon Baldwin <simonb@google.com>
21228
21229 * toplev.c (default_tree_printer): Add handling for %E format.
21230
21231 2009-04-17 Diego Novillo <dnovillo@google.com>
21232
21233 * tree-pretty-print.c (dump_generic_node): Add break after
21234 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21235 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21236 FUNCTION_TYPE together. Call print_struct_decl when printing
21237 structures and TDF_SLIM is not given.
21238 (print_struct_decl): Fix logic for detecting recursion.
21239
21240 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21241
21242 PR 31567
21243 * gcc.c (create_at_file): New.
21244 (compile_input_file_p): New.
21245 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21246 * main.c (main): Update call to toplev_main.
21247 * toplev.c (toplev_main): Change signature. Call expandargv.
21248 * toplev.h (toplev_main): Change signature.
21249
21250 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21251
21252 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21253 if the latter is not constant.
21254
21255 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21256
21257 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21258
21259 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21260
21261 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21262 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21263
21264 2009-04-17 Richard Guenther <rguenther@suse.de>
21265
21266 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21267 Handle component references view-converting an invariant address.
21268
21269 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21270
21271 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21272 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21273 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21274 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21275 Use @deftypevr rather than @deftypevar.
21276
21277 2009-04-17 Richard Guenther <rguenther@suse.de>
21278
21279 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21280 (get_prop_source_stmt): Likewise.
21281 (can_propagate_from): Likewise.
21282
21283 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21284
21285 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21286 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21287 (--with-multilib-list): Add default value.
21288 * configure: Regenerate.
21289 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21290 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21291 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21292 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21293 Don't add default cpu to multilib list unnecessarily, but do enable
21294 the relevant compiler option..
21295 Add support for --with-multilib-list=<blank> and
21296 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21297 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21298 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21299 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21300 TM_MULTILIB_CONFIG.
21301 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21302 (MULTILIB_OSDIRNAMES): New variable.
21303 * config/sh/t-1e: Delete file.
21304 * config/sh/t-mlib-sh1: Delete file.
21305 * config/sh/t-mlib-sh2: Delete file.
21306 * config/sh/t-mlib-sh2a: Delete file.
21307 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21308 * config/sh/t-mlib-sh2a-single: Delete file.
21309 * config/sh/t-mlib-sh2a-single-only: Delete file.
21310 * config/sh/t-mlib-sh2e: Delete file.
21311 * config/sh/t-mlib-sh3e: Delete file.
21312 * config/sh/t-mlib-sh4: Delete file.
21313 * config/sh/t-mlib-sh4-nofpu: Delete file.
21314 * config/sh/t-mlib-sh4-single: Delete file.
21315 * config/sh/t-mlib-sh4-single-only: Delete file.
21316 * config/sh/t-mlib-sh4a: Delete file.
21317 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21318 * config/sh/t-mlib-sh4a-single: Delete file.
21319 * config/sh/t-mlib-sh4a-single-only: Delete file.
21320 * config/sh/t-mlib-sh4al: Delete file.
21321 * config/sh/t-mlib-sh5-32media: Delete file.
21322 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21323 * config/sh/t-mlib-sh5-64media: Delete file.
21324 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21325 * config/sh/t-mlib-sh5-compact: Delete file.
21326 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21327 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21328 * doc/install.texi (Options specification): Add
21329 --with-multilib-list and --with-endian.
21330
21331 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21332
21333 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21334 REVISION_c.
21335 (OBJS-common): Add plugin-version.o.
21336 (plugin-version.o): New.
21337 * gcc-plugin.h (plugin_gcc_version): New.
21338 (plugin_default_version_check): New.
21339 (plugin_init_func, plugin_init): Add version argument.
21340 * plugin-version.c: New.
21341 * plugin.c (str_plugin_gcc_version_name): New.
21342 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21343 pass it to the init function.
21344 (plugin_default_version_check): New.
21345
21346 2009-04-17 Richard Guenther <rguenther@suse.de>
21347
21348 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21349 for decl-vs-decl disambiguation.
21350
21351 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21352
21353 * config/s390/s390.h (s390_tune_attr): New macro definition.
21354 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21355
21356 2009-04-17 Richard Guenther <rguenther@suse.de>
21357
21358 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21359 (fold_stmt_r): Likewise.
21360 (maybe_fold_reference): New function.
21361 (fold_gimple_assign): Handle cases fold_stmt_r did.
21362 (fold_stmt): Do not use fold_stmt_r.
21363 (fold_stmt_inplace): Likewise.
21364
21365 2009-04-17 Richard Guenther <rguenther@suse.de>
21366
21367 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21368 (record_equivalences_from_stmt): Remove useless checks and
21369 simplifications.
21370 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21371 the type is already suitable.
21372
21373 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21374
21375 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21376
21377 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
21378
21379 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21380 (CMPtype): Define as __gcc_CMPtype.
21381
21382 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
21383
21384 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21385 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21386
21387 2009-04-17 Richard Guenther <rguenther@suse.de>
21388
21389 PR tree-optimization/39746
21390 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21391 special-casing for builtins and static variable use/def.
21392 (call_may_clobber_ref_p_1): Likewise.
21393
21394 2009-04-16 Ian Lance Taylor <iant@google.com>
21395
21396 * df.h: Include "timevar.h".
21397 (struct df_problem): Change tv_id field to timevar_id_t.
21398 * tree-pass.h: Include "timevar.h".
21399 (struct opt_pass): Change tv_id field to timevar_id_t.
21400 * timevar.h (timevar_id_t): Define TV_NONE.
21401 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21402 TV_NONE rather than tv_id != 0.
21403 (execute_one_pass): Likewise.
21404 * Makefile.in (DF_H): Add $(TIMEVAR_H).
21405 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
21406 dependencies to $(TREE_PASS_H).
21407 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21408 to TV_NONE.
21409 (pass_branch_target_load_optimize2): Likewise.
21410 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21411 (pass_outof_cfg_layout_mode): Likewise.
21412 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21413 (pass_rebuild_cgraph_edges): Likewise.
21414 (pass_remove_cgraph_callee_edges): Likewise.
21415 * df-core.c (pass_df_initialize_opt): Likewise.
21416 (pass_df_initialize_no_opt): Likewise.
21417 (pass_df_finish): Likewise.
21418 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21419 * except.c (pass_set_nothrow_function_flags): Likewise.
21420 (pass_convert_to_eh_region_ranges): Likewise.
21421 * final.c (pass_compute_alignments): Likewise.
21422 * function.c (pass_instantiate_virtual_regs): Likewise.
21423 (pass_init_function): Likewise.
21424 (pass_leaf_regs): Likewise.
21425 (pass_match_asm_constraints): Likewise.
21426 * gimple-low.c (pass_lower_cf): Likewise.
21427 (pass_mark_used_blocks): Likewise.
21428 * init-regs.c (pass_initialize_regs): Likewise.
21429 * integrate.c (pass_initial_value_sets): Likewise.
21430 * ira.c (pass_ira): Likewise.
21431 * jump.c (pass_cleanup_barriers): Likewise.
21432 * omp-low.c (pass_expand_omp): Likewise.
21433 (pass_lower_omp): Likewise.
21434 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21435 * recog.c (pass_split_all_insns): Likewise.
21436 (pass_split_after_reload): Likewise.
21437 (pass_split_before_regstack): Likewise.
21438 (pass_split_before_sched2): Likewise.
21439 (pass_split_for_shorten_branches): Likewise.
21440 * reginfo.c (pass_reginfo_init): Likewise.
21441 (pass_subregs_of_mode_init): Likewise.
21442 (pass_subregs_of_mode_finish): Likewise.
21443 * passes.c (pass_postreload): Likewise.
21444 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21445 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21446 (pass_warn_function_return): Likewise.
21447 (pass_warn_function_noreturn): Likewise.
21448 * tree-complex.c (pass_lower_complex): Likewise.
21449 (pass_lower_complex_O0): Likewise.
21450 * tree-if-conv.c (pass_if_conversion): Likewise.
21451 * tree-into-ssa.c (pass_build_ssa): Likewise.
21452 * tree-mudflap.c (pass_mudflap_1): Likewise.
21453 (pass_mudflap_2): Likewise.
21454 * tree-nomudflap.c (pass_mudflap_1): Likewise.
21455 (pass_mudflap_2): Likewise.
21456 * tree-nrv.c (pass_return_slot): Likewise.
21457 * tree-object-size.c (pass_object_sizes): Likewise.
21458 * tree-optimize.c (pass_all_optimizations): Likewise.
21459 (pass_early_local_passes): Likewise.
21460 (pass_all_early_optimizations): Likewise.
21461 (pass_cleanup_cfg): Likewise.
21462 (pass_cleanup_cfg_post_optimizing): Likewise.
21463 (pass_free_datastructures): Likewise.
21464 (pass_free_cfg_annotations): Likewise.
21465 (pass_fixup_cfg): Likewise.
21466 (pass_init_datastructures): Likewise.
21467 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21468 (pass_late_warn_uninitialized): Likewise.
21469 (pass_update_address_taken): Likewise.
21470 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21471 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21472 (pass_cse_sincos): Likewise.
21473 (pass_convert_to_rsqrt): Likewise.
21474 * tree-ssa-structalias.c (pass_build_alias): Likewise.
21475 * tree-stdarg.c (pass_stdarg): Likewise.
21476 * tree-tailcall.c (pass_tail_recursion): Likewise.
21477 (pass_tail_calls): Likewise.
21478 * tree-vect-generic.c (pass_lower_vector): Likewise.
21479 (pass_lower_vector_ssa): Likewise.
21480 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21481
21482 2009-04-16 Joseph Myers <joseph@codesourcery.com>
21483
21484 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21485 XLR entry.
21486 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21487 Handle -march=xlr.
21488 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21489 logical and signext.
21490
21491 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
21492
21493 PR target/39767
21494 * config/sh/predicates.md (arith_operand): Check if the operand
21495 of TRUNCATE is a REG.
21496
21497 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21498
21499 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21500 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21501
21502 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21503
21504 * tree-iterator.c (tsi_split_statement_list_after,
21505 tsi_split_statement_list_before): Remove.
21506 * tree-iterator.h: Remove the prototypes for
21507 tsi_split_statement_list_after and tsi_split_statement_list_before.
21508
21509 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21510
21511 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21512 * tree-ssa-propagate.h: Remove the prototype for
21513 stmt_makes_single_load.
21514
21515 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21516
21517 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21518 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21519
21520 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21521
21522 * tree-iterator.c (EXPR_LAST_BODY): Remove.
21523
21524 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21525
21526 * except.c (eh_region_outer_p): Remove.
21527 * except.h: Remove the prototype for eh_region_outer_p.
21528
21529 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21530
21531 * function.c (current_function_assembler_name): Remove.
21532 * function.h: Remove the prototype for
21533 current_function_assembler_name.
21534
21535 2009-04-16 Ian Lance Taylor <iant@google.com>
21536
21537 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21538 (add_reg_note): Call alloc_reg_note.
21539 * rtl.h (alloc_reg_note): Declare.
21540 * combine.c (try_combine): Use alloc_reg_note.
21541 (recog_for_combine, move_deaths): Likewise.
21542 (distribute_notes): Use alloc_reg_note and add_reg_note.
21543 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21544 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21545 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21546
21547 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
21548
21549 PR rtl-optimization/39762
21550 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21551 ira_may_move_out_cost): Add comments about way of their usage.
21552 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21553
21554 * ira-conflicts.c (process_regs_for_copy): Use function
21555 ira_get_register_move_cost instead of global
21556 ira_register_move_cost.
21557
21558 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21559 color_pass, move_spill_restore, update_curr_costs): Ditto.
21560
21561 * ira-lives.c (process_single_reg_class_operands): Ditto.
21562
21563 * ira-emit.c (emit_move_list): Ditto.
21564
21565 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21566 (record_reg_classes): Ditto. Use functions
21567 ira_get_register_move_cost and ira_get_may_move_cost instead of
21568 global vars ira_register_move_cost, ira_may_move_out_cost and
21569 ira_may_move_in_cost.
21570 (record_address_regs): Don't call ira_init_register_move_cost.
21571 Use function ira_get_may_move_cost instead of global
21572 ira_may_move_in_cost.
21573 (process_bb_node_for_hard_reg_moves): Use function
21574 ira_get_register_move_cost instead of global ira_register_move_cost.
21575 (ira_costs): Don't call ira_init_register_move_cost.
21576
21577 2009-04-16 Richard Guenther <rguenther@suse.de>
21578
21579 * tree-cfg.c (verify_gimple_assign_binary):
21580 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21581 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21582 (create_general_new_stmt): Note that this function is broken.
21583
21584 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
21585
21586 * common.opt (fhelp): Add Var(help_flag).
21587 * gcc-plugin.h (plugin_info): Add help.
21588 * plugin.c (plugin_name_args): Add help.
21589 (register_plugin_info): Set plugin->help.
21590 (print_help_one_plugin): New.
21591 (print_plugins_help): New.
21592 * plugin.h (print_plugins_help): New.
21593 * toplev.c (toplev_main): Call print_plugins_help if needed.
21594
21595 2009-04-16 Richard Guenther <rguenther@suse.de>
21596
21597 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21598 (gimple_ior_addresses_taken_1): New function.
21599 (gimple_ior_addresses_taken): Likewise.
21600 * gimple.h (struct gimple_statement_with_ops_base): Remove
21601 addresses_taken member.
21602 (gimple_ior_addresses_taken): Declare.
21603 (gimple_addresses_taken, gimple_addresses_taken_ptr,
21604 gimple_set_addresses_taken): Remove.
21605 * ipa-reference.c (mark_address): New function.
21606 (scan_stmt_for_static_refs): Use it for marking addresses taken.
21607 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21608 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
21609 (gimple_add_to_addresses_taken): Remove.
21610 (get_tmr_operands): Call mark_address_taken.
21611 (get_asm_expr_operands): Likewise.
21612 (get_expr_operands): Likewise.
21613 (build_ssa_operands): Do not clear the addresses_taken bitmap.
21614 (free_stmt_operands): Do not free it.
21615 * tree-ssa.c (delete_tree_ssa): Likewise.
21616 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21617
21618 2009-04-16 Richard Guenther <rguenther@suse.de>
21619
21620 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21621 (walk_stmt_load_store_ops): Likewise.
21622 * gimple.c (get_base_loadstore): New function.
21623 (walk_stmt_load_store_addr_ops): Likewise.
21624 (walk_stmt_load_store_ops): Likewise.
21625 * ipa-pure-const.c (check_op): Simplify.
21626 (check_load, check_store): New functions.
21627 (check_stmt): Use walk_stmt_load_store_ops.
21628 * ipa-reference.c (mark_load): Adjust signature.
21629 (mark_store): Likewise.
21630 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21631
21632 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
21633
21634 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21635 (plugin_info): New.
21636 * opts.c (common_handle_option): Don't call print_version.
21637 * plugin.c (plugin_name_args): Add version.
21638 (register_plugin_info): New.
21639 (register_callback): Handle PLUGIN_INFO.
21640 (try_init_one_plugin): New.
21641 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21642 if failed to init.
21643 (finalize_one_plugin): New.
21644 (finalize_plugins): New.
21645 (print_one_plugin): New.
21646 (print_plugins_versions): New.
21647 * plugin.h (print_plugins_versions): New.
21648 (finalize_plugins): New.
21649 * toplev.c (compile_file): Don't call initialize_plugins.
21650 (print_version): Call print_plugins_versions.
21651 (toplev_main): Call initialize_plugins. Print version if needed.
21652 Call finalize_plugins.
21653
21654 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
21655
21656 * common.opt (fversion): New.
21657 * gcc.c (print_version): New.
21658 (process_command): Don't print the version. Just set print_version.
21659 (main): Print version. Call subprocesses if print_version and
21660 verbose_flag are set.
21661 * opts.c (common_handle_option): Handle OPT_fversion.
21662
21663 2009-04-16 Richard Guenther <rguenther@suse.de>
21664 Ira Rosen <irar@il.ibm.com>
21665
21666 PR tree-optimization/39698
21667 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21668 type of the reduction variable. Only generate the def if
21669 it is needed.
21670
21671 * omp-low.c (expand_omp_for_generic): When converting to a pointer
21672 make sure to first convert to an integer of the same precision.
21673 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
21674 the type of the evolution correctly in computing the new
21675 induction variable base.
21676
21677 2009-04-16 Richard Guenther <rguenther@suse.de>
21678
21679 PR middle-end/39625
21680 * tree-cfg.c (make_blocks): Split statements with to-be
21681 abnormal SSA names on the lhs.
21682
21683 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
21684
21685 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
21686 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
21687 * c-typeck.c (really_start_incremental_init): Likewise.
21688 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
21689 (TARGET_INITIALIZER): Remove it.
21690 * target.h (struct target): Remove vector_opaque_p.
21691 * tree.c (build_opaque_vector_type): New.
21692 * tree.h (TYPE_VECTOR_OPAQUE): New.
21693 (build_opaque_vector_type): Declare.
21694 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
21695 * config/rs6000/rs6000.c (build_opaque_vector_type,
21696 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
21697 (rs6000_init_builtins): Use build_opaque_vector_type for
21698 opaque_V4SI_type_node.
21699
21700 2009-04-15 Catherine Moore <clm@codesourcery.com>
21701
21702 * debug.h (set_name): Declare.
21703 * dwarf2out.c (dwarf2out_set_name): Declare.
21704 (dwarf2_debug_hooks): Add set_name.
21705 (find_AT_string): New.
21706 (add_AT_string): Call find_AT_string.
21707 (dwarf2out_set_name): New.
21708 * cp/decl.c (grokdeclarator): Call set_name.
21709 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
21710 * debug.c (do_nothing_debug_hooks): Likewise.
21711 * dbxout.c (dbx_debug_hooks): Likewise.
21712 * sdbout.c (sdb_debug_hooks): Likewise.
21713
21714 2009-04-15 Michael Eager <eager@eagercon.com>
21715
21716 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
21717 reg for single-precision FPU.
21718 * config/rs6000/rs6000.md (movsi_internal1): Only for
21719 !TARGET_SINGLE_FPU.
21720 (movsi_internal1_single): New. Add pattern to move SI values to/from
21721 single-precision FP regs.
21722
21723 2009-04-15 Richard Guenther <rguenther@suse.de>
21724
21725 * omp-low.c (lower_rec_input_clauses): Build correct address
21726 expressions.
21727 (expand_omp_for_generic): Fix multiplication type.
21728 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
21729 (generate_memset_zero): Fix types.
21730 * tree-profile.c (prepare_instrumented_value): Correctly
21731 widen a pointer.
21732
21733 2009-04-15 Ian Lance Taylor <iant@google.com>
21734
21735 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
21736 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
21737 for -Wall and for -Wc++-compat.
21738 (c_common_post_options): For C++, set warn_enum_compare if not
21739 already set.
21740 * c-tree.h (struct c_expr): Add field original_type.
21741 (build_external_ref): Update declaration.
21742 * c-parser.c (c_parser_braced_init): Set original_type.
21743 (c_parser_initelt): Likewise.
21744 (c_parser_expr_no_commas): Likewise.
21745 (c_parser_conditional_expression): Likewise.
21746 (c_parser_cast_expression): Likewise.
21747 (c_parser_unary_expression): Likewise. Pull setting of
21748 original_code to top of function.
21749 (c_parser_sizeof_expression): Set original_type.
21750 (c_parser_alignof_expression): Likewise.
21751 (c_parser_postfix_expression): Likewise. Pull setting of
21752 original_code to top of function.
21753 (c_parser_postfix_expression_after_paren_type): Set original_type.
21754 (c_parser_postfix_expression_after_primary): Likewise.
21755 (c_parser_expression): Likewise.
21756 * c-typeck.c (build_external_ref): Add type parameter. Change all
21757 callers.
21758 (c_expr_sizeof_expr): Set original_type field.
21759 (parser_build_unary_op): Likewise.
21760 (parser_build_binary_op): Likewise. Optionally warn about
21761 comparisons of enums of different types.
21762 (digest_init): Set original_type field.
21763 (really_start_incremental_init): Likewise.
21764 (push_init_level, pop_init_level): Likewise.
21765 * doc/invoke.texi (Warning Options): -Wenum-compare now
21766 supported in C.
21767
21768 2009-04-15 Richard Guenther <rguenther@suse.de>
21769
21770 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
21771 out a necessary conversion.
21772 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
21773 names we didn't value number.
21774 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
21775
21776 2009-04-15 Richard Guenther <rguenther@suse.de>
21777
21778 PR tree-optimization/39764
21779 * tree-ssa-ccp.c (get_value): Canonicalize value with
21780 canonicalize_float_value.
21781
21782 2009-04-15 Jan Hubicka <jh@suse.cz>
21783
21784 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
21785 Wrong version of patch.
21786
21787 2009-04-15 Jan Hubicka <jh@suse.cz>
21788
21789 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
21790
21791 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
21792
21793 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
21794 our distinct integral and vector types.
21795
21796 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
21797
21798 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
21799 * init.c (build_vtbl_address): Remove call to assemble_external.
21800
21801 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
21802
21803 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
21804 output for other floating point modes.
21805
21806 2009-04-14 Diego Novillo <dnovillo@google.com>
21807
21808 * diagnostic.c (diagnostic_report_diagnostic): Do not
21809 warn about loaded plugins for DK_ERROR and DK_WARNING.
21810 * c-decl.c (declspecs_add_type): Move call to
21811 invoke_plugin_callbacks ...
21812 * c-parser.c (c_parser_declspecs): ... here.
21813 * plugin.c (dump_active_plugins): Tidy output.
21814
21815 2009-04-14 Diego Novillo <dnovillo@google.com>
21816 Le-Chun Wu <lcwu@google.com>
21817
21818 * configure.ac: Add --enable-plugin support.
21819 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
21820 * Makefile.in (PLUGIN_H): Define.
21821 Export ENABLE_PLUGIN and GMPINC to site.exp.
21822 Add PLUGINLIBS to link command.
21823 Add/modify dependencies for plugin.o and files including plugin.h.
21824 (plugin.o): New.
21825 * config.in: Regenerate.
21826
21827 * opts.c (common_handle_option): Handle OPT_fplugin_ and
21828 OPT_fplugin_arg_.
21829
21830 2009-04-14 Le-Chun Wu <lcwu@google.com>
21831
21832 * tree-pass.h (register_one_dump_file): Add a prototype for
21833 register_one_dump_file.
21834 * toplev.c (compile_file): Call initialize_plugins.
21835 (do_compile): Call invoke_plugin_callbacks.
21836 (toplev_main): Call invoke_plugin_callbacks.
21837 * common.opt: Add -fplugin= and -fplugin-arg-.
21838 * gcc-plugin.h: New public header file for plugins to include.
21839 * plugin.c: New source file.
21840 * plugin.h: New internal header file.
21841 * passes.c (register_one_dump_file): Make it external.
21842
21843 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
21844
21845 2009-04-14 Diego Novillo <dnovillo@google.com>
21846
21847 * doc/plugins.texi: New.
21848 * doc/gccint.texi: Add reference to Plugins chapter.
21849 * doc/invoke.texi: Document -fplugin and -fplugin-arg
21850 * diagnostic.c (diagnostic_report_diagnostic): Warn about
21851 loaded plugins, if any.
21852 * timevar.def (TV_PLUGIN_INIT): Define.
21853 (TV_PLUGIN_RUN): Define.
21854 * plugin.c: Include timevar.h
21855 (plugins_active_p): New.
21856 (dump_active_plugins): New.
21857 (debug_active_plugins): New.
21858
21859 2009-04-14 Joseph Myers <joseph@codesourcery.com>
21860
21861 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
21862 library paths.
21863 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
21864
21865 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
21866
21867 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
21868 the same as a minus without a shift.
21869
21870 2009-04-14 Nick Clifton <nickc@redhat.com>
21871
21872 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
21873 comparisons with small integers will always produce a short
21874 branch.
21875
21876 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
21877
21878 Merge:
21879 2008-12-19 Diego Novillo <dnovillo@google.com>
21880
21881 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
21882
21883 2009-04-14 Richard Guenther <rguenther@suse.de>
21884
21885 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
21886 verification.
21887 (verify_gimple_assign_binary): Likewise. Handle shifts and
21888 rotates correctly.
21889 (verify_gimple_phi): Print the mismatched argument position.
21890 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21891 Fix types.
21892 (vect_update_init_of_dr): Likewise.
21893 * matrix-reorg.c (transform_access_sites): Do what the
21894 comment suggests.
21895 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
21896
21897 2009-04-13 Michael Eager <eager@eagercon.com>
21898
21899 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
21900 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
21901 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
21902 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
21903 remove duplicate config
21904
21905 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
21906
21907 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
21908 file_name:line_number type locator of the call site.
21909
21910 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
21911
21912 * genautomata.c: Put blank after comma.
21913 (automaton_decls): New.
21914 (struct unit_usage): Add comments to member next.
21915 (store_alt_unit_usage): Keep the list ordered.
21916 (unit_present_on_list_p, equal_alternatives_p): New.
21917 (check_regexp_units_distribution): Check units distribution
21918 correctness correctly.
21919 (main): Don't write automata if error is found. Return correct
21920 exit code.
21921
21922 * config/m68k/cf.md (cfv4_ds): Remove.
21923 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
21924 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
21925
21926 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
21927 power4-load-ext, power4-store, power4-store-update,
21928 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
21929 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
21930 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
21931 power4-sqrt, power4-isync): Modify reservation to make correct
21932 unit distribution to automata.
21933
21934 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
21935 power5-store-update, power5-two, power5-three, power5-lmul,
21936 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
21937
21938 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
21939
21940 * except.c (pass_set_nothrow_function_flags): Set name and add
21941 TODO_dump_func.
21942 (set_nothrow_function_flags): Mention in the dump file when
21943 changing a function to nothrow.
21944
21945 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
21946
21947 PR/39066
21948 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
21949 instead of unsigned long.
21950
21951 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21952
21953 * config/arm/arm.c (return_used_this_function): Remove.
21954 (arm_output_function_prologue): Remove use of
21955 return_used_this_function.
21956 (output_return_instruction): Replace use of
21957 return_used_this_function
21958 by cfun->machine->return_used_this_function.
21959 (arm_output_epilogue): Likewise.
21960 (arm_output_function_epilogue): Likewise.
21961 (thumb_unexpanded_epilogue): Likewise.
21962 * config/arm/arm.h (struct machine_function):
21963 New member return_used_this_function.
21964
21965 2009-04-12 Mark Mitchell <mark@codesourcery.com>
21966
21967 * doc/install.texi: Correct description of default directory for
21968 --with-gxx-include-dir.
21969
21970 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
21971
21972 * fold-const.c (build_range_check): Properly deal with enumeral and
21973 boolean base types.
21974
21975 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
21976
21977 * doc/invoke.texi (max_gcse_passes): Remove documentation.
21978 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
21979 * params.h (MAX_GCSE_PASSES): Remove.
21980 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
21981 in sequence. Remove ability to run multiple passes.
21982 (bypass_jumps): Report run as third CPROP pass.
21983
21984 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
21985
21986 PR middle-end/39651
21987 * except.c (can_throw_external): Look at each insn in a SEQUENCE
21988 when deciding whether the whole SEQUENCE can throw.
21989
21990 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
21991
21992 PR target/39740
21993 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
21994 offseted label references.
21995
21996 2009-04-11 Jan Hubicka <jh@suse.cz>
21997
21998 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
21999
22000 2009-04-11 Richard Guenther <rguenther@suse.de>
22001
22002 PR middle-end/39732
22003 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22004 return variables as TREE_ADDRESSABLE.
22005
22006 2009-04-11 Richard Guenther <rguenther@suse.de>
22007
22008 PR tree-optimization/39713
22009 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22010 reference trees have SSA_NAME operands.
22011
22012 2009-04-11 Richard Guenther <rguenther@suse.de>
22013
22014 PR c/39712
22015 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22016 address expressions.
22017
22018 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22019
22020 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22021 match changes in Cygwin 1.7
22022 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22023 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22024
22025 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22026
22027 PR tree-optimization/39701
22028 * doc/invoke.texi (Optimization Options): Document change in
22029 meaning and initialization of -fdelete-null-pointer-checks.
22030
22031 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22032
22033 PR middle-end/39701
22034 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22035
22036 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22037 here.
22038
22039 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22040
22041 2009-04-10 Chao-ying Fu <fu@mips.com>
22042
22043 * doc/tm.texi (Instruction Output): Document
22044 TARGET_ASM_FINAL_POSTSCAN_INSN.
22045 * target.h (final_postscan_insn): New field in asm_out.
22046 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22047 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22048 * final.c (final_scan_insn): Call
22049 targetm.asm_out.final_postscan_insn after outputting
22050 an asm macro and a normal instruction.
22051
22052 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22053 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22054 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22055 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22056 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22057
22058 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22059
22060 PR middle-end/39701
22061 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22062 variables as non-NULL even with -fdelete-null-pointer-checks.
22063
22064 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22065
22066 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22067
22068 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22069
22070 PR target/39678
22071 * config/i386/i386.c (classify_argument): Handle SCmode with
22072 (bit_offset % 64) != 0.
22073
22074 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22075
22076 * doc/invoke.texi (Optimize Options): Add cross-reference to
22077 -Q --help=optimizers examples.
22078
22079 2009-04-10 Ben Elliston <bje@au.ibm.com>
22080
22081 PR target/36800
22082 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22083 regalign for the reg == fpr and TDmode case.
22084
22085 2009-04-09 David Ayers <ayers@fsfe.org>
22086
22087 PR objc/29200
22088 * objc/objc-act.c (warn_with_method): Remove helper function.
22089 (check_duplicates): Call warning and inform directly.
22090 (really_start_method): Likewise.
22091
22092 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22093
22094 * expmed.c (expand_divmod): Always use a comparison for a division
22095 by a large unsigned integer.
22096
22097 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22098 for things others than variables or functions as nonzero.
22099
22100 2009-04-09 Nick Clifton <nickc@redhat.com>
22101
22102 * unwind-compat.c: Change copyright header to refer to version
22103 3 of the GNU General Public License with version 3.1 of the
22104 GCC Runtime Library Exception and to point readers at the
22105 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22106 * config/alpha/crtfastmath.c: Likewise.
22107 * config/alpha/linux-unwind.h: Likewise.
22108 * config/alpha/qrnnd.asm: Likewise.
22109 * config/alpha/vms-crt0-64.c: Likewise.
22110 * config/alpha/vms-crt0.c: Likewise.
22111 * config/alpha/vms-dwarf2.asm: Likewise.
22112 * config/alpha/vms-dwarf2eh.asm: Likewise.
22113 * config/alpha/vms-psxcrt0-64.c: Likewise.
22114 * config/alpha/vms-psxcrt0.c: Likewise.
22115 * config/alpha/vms_tramp.asm: Likewise.
22116 * config/arc/initfini.c: Likewise.
22117 * config/arc/lib1funcs.asm: Likewise.
22118 * config/arm/bpabi-v6m.S: Likewise.
22119 * config/arm/bpabi.S: Likewise.
22120 * config/arm/bpabi.c: Likewise.
22121 * config/arm/crti.asm: Likewise.
22122 * config/arm/crtn.asm: Likewise.
22123 * config/arm/ieee754-df.S: Likewise.
22124 * config/arm/ieee754-sf.S: Likewise.
22125 * config/arm/lib1funcs.asm: Likewise.
22126 * config/arm/libunwind.S: Likewise.
22127 * config/arm/linux-atomic.c: Likewise.
22128 * config/arm/mmintrin.h: Likewise.
22129 * config/arm/pr-support.c: Likewise.
22130 * config/arm/unaligned-funcs.c: Likewise.
22131 * config/arm/unwind-arm.c: Likewise.
22132 * config/arm/unwind-arm.h: Likewise.
22133 * config/avr/libgcc.S: Likewise.
22134 * config/bfin/crti.s: Likewise.
22135 * config/bfin/crtlibid.s: Likewise.
22136 * config/bfin/crtn.s: Likewise.
22137 * config/bfin/lib1funcs.asm: Likewise.
22138 * config/bfin/linux-unwind.h: Likewise.
22139 * config/cris/arit.c: Likewise.
22140 * config/cris/cris_abi_symbol.c: Likewise.
22141 * config/darwin-64.c: Likewise.
22142 * config/darwin-crt2.c: Likewise.
22143 * config/darwin-crt3.c: Likewise.
22144 * config/darwin.h: Likewise.
22145 * config/dbxelf.h: Likewise.
22146 * config/dfp-bit.c: Likewise.
22147 * config/dfp-bit.h: Likewise.
22148 * config/elfos.h: Likewise.
22149 * config/fixed-bit.c: Likewise.
22150 * config/fixed-bit.h: Likewise.
22151 * config/fp-bit.c: Likewise.
22152 * config/fp-bit.h: Likewise.
22153 * config/fr30/crti.asm: Likewise.
22154 * config/fr30/crtn.asm: Likewise.
22155 * config/fr30/lib1funcs.asm: Likewise.
22156 * config/freebsd-spec.h: Likewise.
22157 * config/frv/cmovd.c: Likewise.
22158 * config/frv/cmovh.c: Likewise.
22159 * config/frv/cmovw.c: Likewise.
22160 * config/frv/frvbegin.c: Likewise.
22161 * config/frv/frvend.c: Likewise.
22162 * config/frv/lib1funcs.asm: Likewise.
22163 * config/glibc-stdint.h: Likewise.
22164 * config/h8300/clzhi2.c: Likewise.
22165 * config/h8300/crti.asm: Likewise.
22166 * config/h8300/crtn.asm: Likewise.
22167 * config/h8300/ctzhi2.c: Likewise.
22168 * config/h8300/fixunssfsi.c: Likewise.
22169 * config/h8300/lib1funcs.asm: Likewise.
22170 * config/h8300/parityhi2.c: Likewise.
22171 * config/h8300/popcounthi2.c: Likewise.
22172 * config/i386/ammintrin.h: Likewise.
22173 * config/i386/att.h: Likewise.
22174 * config/i386/avxintrin.h: Likewise.
22175 * config/i386/biarch64.h: Likewise.
22176 * config/i386/bmmintrin.h: Likewise.
22177 * config/i386/cpuid.h: Likewise.
22178 * config/i386/cross-stdarg.h: Likewise.
22179 * config/i386/crtfastmath.c: Likewise.
22180 * config/i386/crtprec.c: Likewise.
22181 * config/i386/cygming-crtbegin.c: Likewise.
22182 * config/i386/cygming-crtend.c: Likewise.
22183 * config/i386/cygwin.asm: Likewise.
22184 * config/i386/emmintrin.h: Likewise.
22185 * config/i386/gmm_malloc.h: Likewise.
22186 * config/i386/gthr-win32.c: Likewise.
22187 * config/i386/i386.h: Likewise.
22188 * config/i386/immintrin.h: Likewise.
22189 * config/i386/linux-unwind.h: Likewise.
22190 * config/i386/linux64.h: Likewise.
22191 * config/i386/mm3dnow.h: Likewise.
22192 * config/i386/mmintrin-common.h: Likewise.
22193 * config/i386/mmintrin.h: Likewise.
22194 * config/i386/nmmintrin.h: Likewise.
22195 * config/i386/pmm_malloc.h: Likewise.
22196 * config/i386/pmmintrin.h: Likewise.
22197 * config/i386/smmintrin.h: Likewise.
22198 * config/i386/sol2-c1.asm: Likewise.
22199 * config/i386/sol2-ci.asm: Likewise.
22200 * config/i386/sol2-cn.asm: Likewise.
22201 * config/i386/sol2-gc1.asm: Likewise.
22202 * config/i386/tmmintrin.h: Likewise.
22203 * config/i386/unix.h: Likewise.
22204 * config/i386/w32-unwind.h: Likewise.
22205 * config/i386/wmmintrin.h: Likewise.
22206 * config/i386/x86-64.h: Likewise.
22207 * config/i386/x86intrin.h: Likewise.
22208 * config/i386/xmmintrin.h: Likewise.
22209 * config/ia64/crtbegin.asm: Likewise.
22210 * config/ia64/crtend.asm: Likewise.
22211 * config/ia64/crtfastmath.c: Likewise.
22212 * config/ia64/crti.asm: Likewise.
22213 * config/ia64/crtn.asm: Likewise.
22214 * config/ia64/fde-glibc.c: Likewise.
22215 * config/ia64/lib1funcs.asm: Likewise.
22216 * config/ia64/linux-unwind.h: Likewise.
22217 * config/ia64/quadlib.c: Likewise.
22218 * config/ia64/unwind-ia64.c: Likewise.
22219 * config/linux.h: Likewise.
22220 * config/m32c/m32c-lib1.S: Likewise.
22221 * config/m32c/m32c-lib2-trapv.c: Likewise.
22222 * config/m32c/m32c-lib2.c: Likewise.
22223 * config/m32r/initfini.c: Likewise.
22224 * config/m68hc11/larith.asm: Likewise.
22225 * config/m68hc11/m68hc11-crt0.S: Likewise.
22226 * config/m68k/cf.md: Likewise.
22227 * config/m68k/crti.s: Likewise.
22228 * config/m68k/crtn.s: Likewise.
22229 * config/m68k/lb1sf68.asm: Likewise.
22230 * config/m68k/linux-unwind.h: Likewise.
22231 * config/mcore/crti.asm: Likewise.
22232 * config/mcore/crtn.asm: Likewise.
22233 * config/mcore/lib1.asm: Likewise.
22234 * config/mips/linux-unwind.h: Likewise.
22235 * config/mips/loongson.h: Likewise.
22236 * config/mips/mips16.S: Likewise.
22237 * config/mmix/crti.asm: Likewise.
22238 * config/mmix/crtn.asm: Likewise.
22239 * config/pa/fptr.c: Likewise.
22240 * config/pa/hpux-unwind.h: Likewise.
22241 * config/pa/lib2funcs.asm: Likewise.
22242 * config/pa/linux-atomic.c: Likewise.
22243 * config/pa/linux-unwind.h: Likewise.
22244 * config/pa/milli64.S: Likewise.
22245 * config/pa/quadlib.c: Likewise.
22246 * config/pa/stublib.c: Likewise.
22247 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22248 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22249 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22250 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22251 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22252 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22253 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22254 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22255 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22256 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22257 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22258 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22259 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22260 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22261 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22262 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22263 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22264 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22265 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22266 * config/rs6000/750cl.h: Likewise.
22267 * config/rs6000/altivec.h: Likewise.
22268 * config/rs6000/biarch64.h: Likewise.
22269 * config/rs6000/crtresfpr.asm: Likewise.
22270 * config/rs6000/crtresgpr.asm: Likewise.
22271 * config/rs6000/crtresxfpr.asm: Likewise.
22272 * config/rs6000/crtresxgpr.asm: Likewise.
22273 * config/rs6000/crtsavfpr.asm: Likewise.
22274 * config/rs6000/crtsavgpr.asm: Likewise.
22275 * config/rs6000/darwin-asm.h: Likewise.
22276 * config/rs6000/darwin-fallback.c: Likewise.
22277 * config/rs6000/darwin-fpsave.asm: Likewise.
22278 * config/rs6000/darwin-ldouble.c: Likewise.
22279 * config/rs6000/darwin-tramp.asm: Likewise.
22280 * config/rs6000/darwin-unwind.h: Likewise.
22281 * config/rs6000/darwin-vecsave.asm: Likewise.
22282 * config/rs6000/darwin-world.asm: Likewise.
22283 * config/rs6000/e500crtres32gpr.asm: Likewise.
22284 * config/rs6000/e500crtres64gpr.asm: Likewise.
22285 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22286 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22287 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22288 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22289 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22290 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22291 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22292 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22293 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22294 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22295 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22296 * config/rs6000/eabi-ci.asm: Likewise.
22297 * config/rs6000/eabi-cn.asm: Likewise.
22298 * config/rs6000/eabi.asm: Likewise.
22299 * config/rs6000/linux-unwind.h: Likewise.
22300 * config/rs6000/linux64.h: Likewise.
22301 * config/rs6000/paired.h: Likewise.
22302 * config/rs6000/paired.md: Likewise.
22303 * config/rs6000/ppc64-fp.c: Likewise.
22304 * config/rs6000/ppu_intrinsics.h: Likewise.
22305 * config/rs6000/rs6000.h: Likewise.
22306 * config/rs6000/si2vmx.h: Likewise.
22307 * config/rs6000/sol-ci.asm: Likewise.
22308 * config/rs6000/sol-cn.asm: Likewise.
22309 * config/rs6000/spe.h: Likewise.
22310 * config/rs6000/spu2vmx.h: Likewise.
22311 * config/rs6000/sysv4.h: Likewise.
22312 * config/rs6000/tramp.asm: Likewise.
22313 * config/rs6000/vec_types.h: Likewise.
22314 * config/s390/linux-unwind.h: Likewise.
22315 * config/s390/tpf-unwind.h: Likewise.
22316 * config/score/crti.asm: Likewise.
22317 * config/score/crtn.asm: Likewise.
22318 * config/sh/crt1.asm: Likewise.
22319 * config/sh/crti.asm: Likewise.
22320 * config/sh/crtn.asm: Likewise.
22321 * config/sh/divtab-sh4-300.c: Likewise.
22322 * config/sh/divtab-sh4.c: Likewise.
22323 * config/sh/divtab.c: Likewise.
22324 * config/sh/lib1funcs-4-300.asm: Likewise.
22325 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22326 * config/sh/lib1funcs.asm: Likewise.
22327 * config/sh/lib1funcs.h: Likewise.
22328 * config/sh/linux-atomic.asm: Likewise.
22329 * config/sh/linux-unwind.h: Likewise.
22330 * config/sh/shmedia.h: Likewise.
22331 * config/sh/sshmedia.h: Likewise.
22332 * config/sh/ushmedia.h: Likewise.
22333 * config/sparc/crtfastmath.c: Likewise.
22334 * config/sparc/linux-unwind.h: Likewise.
22335 * config/sparc/sol2-c1.asm: Likewise.
22336 * config/sparc/sol2-ci.asm: Likewise.
22337 * config/sparc/sol2-cn.asm: Likewise.
22338 * config/spu/divmodti4.c: Likewise.
22339 * config/spu/divv2df3.c: Likewise.
22340 * config/spu/float_disf.c: Likewise.
22341 * config/spu/float_unsdidf.c: Likewise.
22342 * config/spu/float_unsdisf.c: Likewise.
22343 * config/spu/float_unssidf.c: Likewise.
22344 * config/spu/mfc_multi_tag_release.c: Likewise.
22345 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22346 * config/spu/mfc_tag_release.c: Likewise.
22347 * config/spu/mfc_tag_reserve.c: Likewise.
22348 * config/spu/mfc_tag_table.c: Likewise.
22349 * config/spu/multi3.c: Likewise.
22350 * config/spu/spu_internals.h: Likewise.
22351 * config/spu/spu_intrinsics.h: Likewise.
22352 * config/spu/spu_mfcio.h: Likewise.
22353 * config/spu/vec_types.h: Likewise.
22354 * config/spu/vmx2spu.h: Likewise.
22355 * config/stormy16/stormy16-lib2.c: Likewise.
22356 * config/svr4.h: Likewise.
22357 * config/sync.c: Likewise.
22358 * config/v850/lib1funcs.asm: Likewise.
22359 * config/vxlib-tls.c: Likewise.
22360 * config/vxlib.c: Likewise.
22361 * config/vxworks-dummy.h: Likewise.
22362 * config/xtensa/crti.asm: Likewise.
22363 * config/xtensa/crtn.asm: Likewise.
22364 * config/xtensa/ieee754-df.S: Likewise.
22365 * config/xtensa/ieee754-sf.S: Likewise.
22366 * config/xtensa/lib1funcs.asm: Likewise.
22367 * config/xtensa/lib2funcs.S: Likewise.
22368 * config/xtensa/linux-unwind.h: Likewise.
22369 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22370 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22371 * coretypes.h: Likewise.
22372 * crtstuff.c: Likewise.
22373 * defaults.h: Likewise.
22374 * dwarf2.h: Likewise.
22375 * emutls.c: Likewise.
22376 * gbl-ctors.h: Likewise.
22377 * gcov-io.h: Likewise.
22378 * ginclude/float.h: Likewise.
22379 * ginclude/iso646.h: Likewise.
22380 * ginclude/stdarg.h: Likewise.
22381 * ginclude/stdbool.h: Likewise.
22382 * ginclude/stddef.h: Likewise.
22383 * ginclude/stdfix.h: Likewise.
22384 * ginclude/stdint-gcc.h: Likewise.
22385 * ginclude/tgmath.h: Likewise.
22386 * gthr-aix.h: Likewise.
22387 * gthr-dce.h: Likewise.
22388 * gthr-gnat.c: Likewise.
22389 * gthr-gnat.h: Likewise.
22390 * gthr-lynx.h: Likewise.
22391 * gthr-mipssde.h: Likewise.
22392 * gthr-nks.h: Likewise.
22393 * gthr-posix.c: Likewise.
22394 * gthr-posix.h: Likewise.
22395 * gthr-posix95.h: Likewise.
22396 * gthr-rtems.h: Likewise.
22397 * gthr-single.h: Likewise.
22398 * gthr-solaris.h: Likewise.
22399 * gthr-tpf.h: Likewise.
22400 * gthr-vxworks.h: Likewise.
22401 * gthr-win32.h: Likewise.
22402 * gthr.h: Likewise.
22403 * libgcc2.c: Likewise.
22404 * libgcc2.h: Likewise.
22405 * libgcov.c: Likewise.
22406 * tsystem.h: Likewise.
22407 * typeclass.h: Likewise.
22408 * unwind-c.c: Likewise.
22409 * unwind-compat.h: Likewise.
22410 * unwind-dw2-fde-compat.c: Likewise.
22411 * unwind-dw2-fde-darwin.c: Likewise.
22412 * unwind-dw2-fde-glibc.c: Likewise.
22413 * unwind-dw2-fde.c: Likewise.
22414 * unwind-dw2-fde.h: Likewise.
22415 * unwind-dw2.c: Likewise.
22416 * unwind-dw2.h: Likewise.
22417 * unwind-generic.h: Likewise.
22418 * unwind-pe.h: Likewise.
22419 * unwind-sjlj.c: Likewise.
22420 * unwind.inc: Likewise.
22421 * config/arm/neon-gen.ml: Change generated copyright header to
22422 refer to version 3 of the GNU General Public License with
22423 version 3.1 of the GCC Runtime Library Exception and to point
22424 readers at the COPYING3 and COPYING3.RUNTIME files and the
22425 FSF's license web page.
22426 * config/arm/arm_neon.h: Regenerate.
22427
22428 2009-04-09 Jakub Jelinek <jakub@redhat.com>
22429
22430 * config/cris/cris.md: Change copyright header to refer to version
22431 3 of the GNU General Public License.
22432 * doc/install.texi2html: Change copyright header to refer to version
22433 3 of the GNU General Public License and to point readers at the
22434 COPYING3 file and the FSF's license web page.
22435 * config/vax/linux.h: Likewise.
22436
22437 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22438
22439 * config/i386/i386.md (cmpcc): New.
22440 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22441 (sync_compare_and_swap_cc*): Delete.
22442
22443 * config/s390/s390.c (s390_compare_emitted): Remove.
22444 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22445 s390_compare_emitted used to be handled. Assert that modes match.
22446 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22447 refer to sync_compare_and_swap_ccsi.
22448 * config/s390/s390.h (s390_compare_emitted): Remove.
22449 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22450 instead of s390_compare_emitted.
22451 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22452 instead of s390_compare_emitted.
22453 * config/s390/s390.md (cmpcc): New.
22454 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22455 CC_REGNUM, do not pretend it's set.
22456 (sync_compare_and_swap_cc*): Delete.
22457 * config/s390/predicates.md (cc_reg_operand): New.
22458
22459 * expr.c (sync_compare_and_swap_cc): Delete.
22460 * optabs.h (sync_compare_and_swap_cc): Delete.
22461 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22462 is being used with can_compare_p.
22463 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22464 (find_cc_set): New.
22465 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22466 look for a MODE_CC set instead. Use emit_store_flag.
22467 (expand_compare_and_swap_loop): Likewise, with some additional
22468 complication to avoid a force_reg when useless. Use
22469 emit_cmp_and_jump_insns.
22470 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22471 * doc/md.texi (sync_compare_and_swap_cc): Merge with
22472 sync_compare_and_swap documentation.
22473
22474 2009-04-09 Jan Hubicka <jh@suse.cz>
22475
22476 * except.c (find_prev_try): Break out from ....
22477 (duplicate_eh_regions): ... here; properly update prev_try pointers
22478 when duplication part of tree.
22479 (dump_eh_tree): Improve dumping.
22480 (verify_eh_region): New.
22481 (verify_eh_tree): Use it.
22482
22483 2009-04-06 Richard Guenther <rguenther@suse.de>
22484
22485 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22486 &ARRAY addresses by adjusting their types and prepending
22487 a conversion.
22488 * tree-cfg.c (verify_gimple_assign_single): Verify that
22489 addresses are correct.
22490
22491 2009-04-09 Richard Guenther <rguenther@suse.de>
22492
22493 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22494 indices into an array reference if possible.
22495 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22496 Fold POINTER_PLUS_EXPR statements with invariant address.
22497
22498 2009-04-09 Alan Modra <amodra@bigpond.net.au>
22499
22500 PR target/39634
22501 * config.gcc (powerpc64-*-linux*): Always build biarch.
22502
22503 2009-04-09 Joseph Myers <joseph@codesourcery.com>
22504
22505 PR c/39613
22506 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22507 it and pedwarn if this results in an INTEGER_CST.
22508
22509 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22510
22511 * doc/install.texi: Update minimum GMP version. Remove obsolete
22512 text in MPFR section.
22513
22514 2009-04-08 Jakub Jelinek <jakub@redhat.com>
22515
22516 * dwarf2out.c (class_scope_p): New static inline.
22517 (class_or_namespace_scope_p): Use it.
22518 (gen_variable_die): Use DW_TAG_member tag for static data member
22519 declarations instead of DW_TAG_variable.
22520
22521 PR middle-end/39573
22522 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22523 variables.
22524
22525 2009-04-08 Richard Guenther <rguenther@suse.de>
22526
22527 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22528 valueize random data.
22529
22530 2009-04-08 David Edelsohn <edelsohn@gnu.org>
22531
22532 * config.gcc (aix tm_file): Add aix-stdint.h.
22533 (aix tm clause use_gcc_stdint): Set to wrap.
22534 * config/rs6000/aix-stdint.h: New file.
22535
22536 2009-04-08 Richard Guenther <rguenther@suse.de>
22537
22538 PR middle-end/36291
22539 * tree-dfa.c (add_referenced_var): Do not recurse into
22540 global initializers.
22541 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22542 exposed variables.
22543 (fold_const_aggregate_ref): Likewise.
22544
22545 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
22546
22547 * recog.c (ordered_comparison_operator): New.
22548 * gensupport.c (std_preds): Add it.
22549 * doc/md.texi (Machine-Independent Predicates): Document it.
22550
22551 2009-04-08 Jan Hubicka <jh@suse.cz>
22552
22553 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22554 * function.h (rtl_eh): Remove exception_handler_label_map.
22555 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22556 remove_exception_handler_label, for_each_eh_label_1): Remove.
22557 (rtl_remove_unreachable_regions): Remove.
22558 (convert_from_eh_region_ranges): Do not remove unreachable regions.
22559 (find_exception_handler_labels): Don't build the hashtable.
22560 (maybe_remove_eh_handler): Remove.
22561 (for_each_eh_label): Rewrite to walk the tree.
22562 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22563 * except.h (maybe_remove_eh_handler): Remove.
22564 * passes.c (init_optimization_passes): Schedule second EH cleanup
22565 before out-of-ssa.
22566 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22567 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22568
22569 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
22570
22571 * genoutput.c (validate_optab_operands): New.
22572 (gen_insn, gen_expand): Call it.
22573
22574 * genflags.c (gen_insn): Detect misused iterators.
22575 (main): Pass line_no to gen_insn, exit with status 1 on error.
22576
22577 * genextract.c (line_no): Make global.
22578 (VEC_safe_set_locstr): Change assertion to error message.
22579 (main): Exit with status 1 on error.
22580
22581 2009-04-08 Joseph Myers <joseph@codesourcery.com>
22582
22583 PR c/39614
22584 PR c/39673
22585 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22586 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22587 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22588 * c-convert.c (convert): Do not call fold on results of conversion
22589 functions when the result is a C_MAYBE_CONST_EXPR.
22590 * c-parser.c (c_parser_postfix_expression): Do not fold condition
22591 of __builtin_choose_expr.
22592 * c-typeck.c (remove_c_maybe_const_expr): New.
22593 (build_unary_op, build_conditional_expr, build_compound_expr,
22594 build_binary_op, c_objc_common_truthvalue_conversion): Call
22595 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22596 integer operands.
22597
22598 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
22599
22600 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22601 CODE to produce a new one. Add a prototype to use fold_convert_const
22602
22603 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
22604
22605 PR bootstrap/39660
22606 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22607 mix declarations and code.
22608
22609 2009-04-08 Ben Elliston <bje@au.ibm.com>
22610
22611 * gcc.c: Replace `CC' with `GCC' throughout.
22612
22613 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
22614
22615 * doc/invoke.texi: Document Atom support.
22616
22617 2009-04-07 Jason Merrill <jason@redhat.com>
22618
22619 PR c++/25185
22620 * c-common.h, c-common.c: Add flag_pretty_templates.
22621 * c-opts.c (c_common_handle_option): Set it.
22622 * c.opt: Add -fno-pretty-templates.
22623 * doc/invoke.texi (C++ Dialect Options): Likewise.
22624
22625 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
22626
22627 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22628 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22629 (ia64_expand_builtin): Likewise.
22630
22631 2009-04-07 Martin Jambor <mjambor@suse.cz>
22632
22633 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22634 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22635 ADDR_EXPRS are include too.
22636
22637 2009-04-07 Richard Guenther <rguenther@suse.de>
22638
22639 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22640 decls are only used if passes as parameters or if they are
22641 local statics and the call is not to a builtin.
22642 (call_may_clobber_ref_p_1): Likewise.
22643
22644 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
22645
22646 * expr.c (do_store_flag): Remove last argument. Simplify code
22647 to avoid duplication of tests already done by can_compare_p.
22648 (expand_expr_real_1): Adjust caller.
22649
22650 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
22651
22652 * optabs.c (can_compare_p): Test the predicate of a
22653 cbranch and cstore pattern.
22654
22655 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
22656
22657 * expr.c (convert_move): Use emit_store_flag instead of
22658 "emulating" it.
22659
22660 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
22661
22662 * config/i386/i386.c (ix86_compare_emitted): Remove.
22663 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22664 ix86_compare_op0 like ix86_compare_emitted used to be handled.
22665 * config/i386/i386.h (ix86_compare_emitted): Remove.
22666 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22667 instead of ix86_compare_emitted.
22668 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
22669
22670 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
22671
22672 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
22673 Add t-sysroot-suffix to tmake_file.
22674 * config/print-sysroot-suffix.sh: New file.
22675 * config/t-sysroot-suffix: New file.
22676
22677 2009-04-07 Ben Elliston <bje@au.ibm.com>
22678
22679 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
22680 as the latter produces a warning when the target does not support
22681 infinity.
22682
22683 2009-04-07 Ben Elliston <bje@au.ibm.com>
22684
22685 * dfp.c: Replace type punning assignments with memcpy throughout.
22686 * Makefile.in (dfp.o-warn): Remove.
22687
22688 2009-04-07 Alan Modra <amodra@bigpond.net.au>
22689
22690 PR target/39634
22691 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
22692 Include soft-fp/t-softfp after rs6000/t-linux64.
22693
22694 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
22695
22696 * stor-layout.c (set_sizetype): Use the full precision of their
22697 machine mode for bitsize types.
22698
22699 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
22700
22701 * config/i386/i386.md: Revert 2 accidental checkins.
22702
22703 2009-04-06 Joey Ye <joey.ye@intel.com>
22704 Xuepeng Guo <xuepeng.guo@intel.com>
22705 H.J. Lu <hongjiu.lu@intel.com>
22706
22707 Atom pipeline model, tuning and insn selection.
22708 * config.gcc (atom): Add atom config options and target.
22709
22710 * config/i386/atom.md: New.
22711
22712 * config/i386/i386.c (atom_cost): New cost.
22713 (m_ATOM): New macro flag.
22714 (initial_ix86_tune_features): Set m_ATOM.
22715 (x86_accumulate_outgoing_args): Likewise.
22716 (x86_arch_always_fancy_math_387): Likewise.
22717 (processor_target): Add Atom cost.
22718 (cpu_names): Add Atom cpu name.
22719 (override_options): Set Atom ISA.
22720 (ix86_issue_rate): New case PROCESSOR_ATOM.
22721 (ix86_adjust_cost): Likewise.
22722
22723 * config/i386/i386.h (TARGET_ATOM): New target macro.
22724 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
22725 (TARGET_OPT_AGU): New target option.
22726 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
22727 (processor_type): Add PROCESSOR_ATOM.
22728
22729 * config/i386/i386.md (cpu): Add new value "atom".
22730 (use_carry, movu): New attr.
22731 (atom.md): Include atom.md.
22732 (adddi3_carry_rex64): Set attr "use_carry".
22733 (addqi3_carry): Likewise.
22734 (addhi3_carry): Likewise.
22735 (addsi3_carry): Likewise.
22736 (*addsi3_carry_zext): Likewise.
22737 (subdi3_carry_rex64): Likewise.
22738 (subqi3_carry): Likewise.
22739 (subhi3_carry): Likewise.
22740 (subsi3_carry): Likewise.
22741 (x86_movdicc_0_m1_rex64): Likewise.
22742 (*x86_movdicc_0_m1_se): Likewise.
22743 (x86_movsicc_0_m1): Likewise.
22744 (*x86_movsicc_0_m1_se): Likewise.
22745 (*adddi_1_rex64): Emit add insn as much as possible.
22746 (*addsi_1): Likewise.
22747 (return_internal): Set atom_unit.
22748 (return_internal_long): Likewise.
22749 (return_pop_internal): Likewise.
22750 (*rcpsf2_sse): Set atom_sse_attr attr.
22751 (*qrt<mode>2_sse): Likewise.
22752 (*prefetch_sse): Likewise.
22753
22754 * config/i386/i386-c.c (ix86_target_macros_internal): New case
22755 PROCESSOR_ATOM.
22756 (ix86_target_macros_internal): Likewise.
22757
22758 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
22759 (*prefetch_sse_rex): Likewise.
22760 (sse_rcpv4sf2): Likewise.
22761 (sse_vmrcpv4sf2): Likewise.
22762 (sse_sqrtv4sf2): Likewise.
22763 (<sse>_vmsqrt<mode>2): Likewise.
22764 (sse_ldmxcsr): Likewise.
22765 (sse_stmxcsr): Likewise.
22766 (*sse_sfence): Likewise.
22767 (sse2_clflush): Likewise.
22768 (*sse2_mfence): Likewise.
22769 (*sse2_lfence): Likewise.
22770 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
22771 (<sse>_movup<ssemodesuffixf2c>): Likewise.
22772 (avx_movdqu<avxmodesuffix>): Likewise.
22773 (avx_lddqu<avxmodesuffix>): Likewise.
22774 (sse2_movntv2di): Change attr "type" to "ssemov".
22775 (sse2_movntsi): Likewise.
22776 (rsqrtv8sf2): Change attr "type" to "sseadd".
22777 (sse3_addsubv2df3): Set attr "atom_unit".
22778 (sse3_h<plusminus_insn>v4sf3): Likewise.
22779 (*sse2_pmaddwd): Likewise.
22780 (*vec_extractv2di_1_rex64): Likewise.
22781 (*vec_extractv2di_1_avx): Likewise.
22782 (sse2_psadbw): Likewise.
22783 (ssse3_phaddwv8hi3): Likewise.
22784 (ssse3_phaddwv4hi3): Likewise.
22785 (ssse3_phadddv4si3): Likewise.
22786 (ssse3_phadddv2si3): Likewise.
22787 (ssse3_phaddswv8hi3): Likewise.
22788 (ssse3_phaddswv4hi3): Likewise.
22789 (ssse3_phsubwv8hi3): Likewise.
22790 (ssse3_phsubwv4hi3): Likewise.
22791 (ssse3_phsubdv4si3): Likewise.
22792 (ssse3_phsubdv2si3): Likewise.
22793 (ssse3_phsubswv8hi3): Likewise.
22794 (ssse3_phsubswv4hi3): Likewise.
22795 (ssse3_pmaddubsw128): Likewise.
22796 (sse3_pmaddubsw: Likewise.
22797 (ssse3_palignrti): Likewise.
22798 (ssse3_palignrdi): Likewise.
22799
22800 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
22801
22802 * doc/install.texi (Specific): Fix two cross-references to MinGW.
22803
22804 2009-04-06 Richard Guenther <rguenther@suse.de>
22805
22806 PR tree-optimization/28868
22807 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
22808 of which PHI results we inserted.
22809 (insert_into_preds_of_block): Record inserted PHIs.
22810 (eliminate): Eliminate redundant PHI nodes.
22811 (init_pre): Init inserted_phi_names.
22812
22813 2009-04-06 Richard Guenther <rguenther@suse.de>
22814
22815 PR tree-optimization/39643
22816 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
22817 IMAGPART_EXPRs of complex constants.
22818 (execute_fold_all_builtins): If we folded a call queue
22819 TODO_update_address_taken.
22820
22821 2009-04-06 Jan Hubicka <jh@suse.cz>
22822
22823 PR middle-end/39659
22824 * except.c (remove_unreachable_regions): Propagate may_contain_throw
22825 flag.
22826
22827 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
22828
22829 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
22830 delay slot.
22831 (ic_invalidate_array): Likewise.
22832
22833 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
22834
22835 * calls.c (emit_library_call_value_1): Fix a problem with parameter
22836 alignment for library calls.
22837
22838 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
22839
22840 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
22841 (mingw32 tm clause use_gcc_stdint): Set to wrap.
22842 * config/i386/mingw-stdint.h: New file.
22843
22844 2009-04-05 Richard Guenther <rguenther@suse.de>
22845
22846 PR tree-optimization/39648
22847 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
22848 our &A vs. &A[0] IL deficiencies.
22849
22850 2009-04-04 Jan Hubicka <jh@suse.cz>
22851
22852 * except.c (sjlj_find_directly_reachable_regions): Be ready for
22853 removed toplevel regions.
22854 (sjlj_mark_call_sites): Likewise.
22855
22856 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
22857
22858 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
22859 (cygwin tm clause use_gcc_stdint): Set to wrap.
22860 * config/i386/cygwin-stdint.h: New file.
22861
22862 2009-04-04 Richard Guenther <rguenther@suse.de>
22863
22864 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
22865 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
22866 single-argument PHIs if we are in loop-closed SSA form.
22867 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
22868 for the pre-condition.
22869 (slpeel_tree_peel_loop_to_edge): Likewise.
22870 (vect_build_loop_niters): Take an optional sequence to append stmts.
22871 (vect_generate_tmps_on_preheader): Likewise.
22872 (vect_do_peeling_for_loop_bound): Take extra guards for the
22873 pre-condition.
22874 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
22875 the cost model check.
22876 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
22877 guards if we are going to peel. Do not apply versioning in that case.
22878 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
22879 (vect_do_peeling_for_loop_bound): Likewise.
22880 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
22881 loop bound only record extra pre-conditions, do not apply loop
22882 versioning.
22883
22884 2009-04-04 Richard Guenther <rguenther@suse.de>
22885
22886 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
22887 renaming code.
22888
22889 2009-04-04 Jan Hubicka <jh@suse.cz>
22890
22891 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
22892 last_basic_block for size of bb->index indexed array.
22893 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
22894 compute_out, link_btr_uses, build_btr_def_use_webs,
22895 build_btr_def_use_webs, migrate_btr_defs): Likewise.
22896
22897 2009-04-04 Jan Hubicka <jh@suse.cz>
22898
22899 * except.c (remove_eh_handler_and_replace): Break out from ...
22900 (remove_eh_handler): ... here.
22901 (bring_to_root): New function.
22902 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
22903 handled ones, bring others to root of tree.
22904
22905 2009-04-04 Jan Hubicka <jh@suse.cz>
22906
22907 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
22908 (all_phis_safe_to_merge): New function.
22909 (update_info): New structure.
22910 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
22911 (cleanup_empty_eh): Update SSA if possible.
22912
22913 2009-04-04 Richard Guenther <rguenther@suse.de>
22914
22915 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
22916 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
22917 (append_vuse): Likewise.
22918
22919 2009-04-04 Jakub Jelinek <jakub@redhat.com>
22920
22921 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
22922 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
22923 instead of REG_UNSAVED for DW_CFA_undefined.
22924 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
22925 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
22926 outermost frame.
22927
22928 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
22929
22930 PR target/39501
22931 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
22932
22933 2009-04-04 Richard Guenther <rguenther@suse.de>
22934
22935 PR tree-optimization/8781
22936 PR tree-optimization/37892
22937 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
22938 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
22939 (valueize_refs): Call it for *& valueizations.
22940 (shared_reference_ops_from_ref): Rename to ...
22941 (valueize_shared_reference_ops_from_ref): ... this and valueize.
22942 (shared_reference_ops_from_call): Rename to ...
22943 (valueize_shared_reference_ops_from_call): ... this and valueize.
22944 (vn_reference_lookup): Update.
22945 (visit_reference_op_call): Likewise.
22946 * tree-ssa-pre.c (phi_translate_1): Fold *&.
22947 (eliminate): Value-replace the call address in call statements.
22948
22949 2009-04-04 Richard Guenther <rguenther@suse.de>
22950
22951 PR tree-optimization/39636
22952 * tree-ssa-forwprop.c
22953 (forward_propagate_addr_into_variable_array_index): Check for
22954 GIMPLE_ASSIGN before accessing the rhs code.
22955
22956 2009-04-03 Jason Merrill <jason@redhat.com>
22957
22958 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
22959
22960 2009-04-03 Steve Ellcey <sje@cup.hp.com>
22961
22962 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
22963 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
22964 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
22965 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
22966 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
22967 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
22968 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
22969 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
22970 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
22971 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
22972 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
22973 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
22974 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
22975 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
22976 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
22977 Use fr_reg_or_fp01_operand instead of fr_register_operand
22978
22979 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
22980 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
22981 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
22982
22983 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
22984
22985 PR rtl-optimization/39607
22986 PR rtl-optimization/39631
22987
22988 Revert:
22989
22990 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
22991 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22992 instead of DF_LR_OUT.
22993 * ira-lives.c (process_bb_node_lives): Ditto.
22994 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22995 instead of DF_LR_{OUT,IN}.
22996 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22997 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22998
22999 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23000
23001 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23002 (execute_lower_omp): Always run but take the short way out if -fopenmp
23003 is not given.
23004 (gate_lower_omp): Remove, forcing the pass manager to always run the
23005 pass and always set PROP_gimple_lomp.
23006 (pass_lower_omp): Remove gate function.
23007 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23008 PROP_trees. Instead, require it.
23009 * ipa-cp.c (pass_ipa_cp): Likewise.
23010 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23011 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23012 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23013 and PROP_gimple_leh.
23014
23015 2009-04-03 Richard Guenther <rguenther@suse.de>
23016
23017 PR middle-end/13146
23018 PR tree-optimization/23940
23019 PR tree-optimization/33237
23020 PR middle-end/33974
23021 PR middle-end/34093
23022 PR tree-optimization/36201
23023 PR tree-optimization/36230
23024 PR tree-optimization/38049
23025 PR tree-optimization/38207
23026 PR tree-optimization/38230
23027 PR tree-optimization/38301
23028 PR tree-optimization/38585
23029 PR middle-end/38895
23030 PR tree-optimization/38985
23031 PR tree-optimization/39299
23032 * tree-ssa-structalias.h: Remove.
23033 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23034 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23035 (struct vuse_element_d): Remove.
23036 (struct vuse_vec_d): Likewise.
23037 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23038 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23039 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23040 VUSE_ELEMENT_VAR): Likewise.
23041 (struct voptype_d): Likewise.
23042 (NUM_VOP_FREE_BUCKETS): Likewise.
23043 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23044 (struct stmt_operands_d): Remove.
23045 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23046 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23047 VDEF_NUM, VDEF_VECT): Likewise.
23048 (copy_virtual_operands): Remove.
23049 (operand_build_cmp): Likewise.
23050 (create_ssa_artificial_load_stmt): Likewise.
23051 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23052 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23053 vuse_index and mayuse_index members. Pack and move done and iter_type
23054 members to the front.
23055 (SSA_OP_VMAYUSE): Remove.
23056 (SSA_OP_VIRTUAL_USES): Adjust.
23057 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23058 (unlink_stmt_vdef): Declare.
23059 (add_to_addressable_set): Remove.
23060 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23061 (vrp_visit_stmt): Likewise.
23062 * doc/tree-ssa.texi (Alias analysis): Update.
23063 * doc/invoke.texi (max-aliased-vops): Remove docs.
23064 (avg-aliased-vops): Likewise.
23065 * tree-into-ssa.c (syms_to_rename): Remove.
23066 (need_to_update_vops_p): Likewise.
23067 (need_to_initialize_update_ssa_p): Rename to ...
23068 (update_ssa_initialized_fn): ... this. Track function we are
23069 initialized for.
23070 (symbol_marked_for_renaming): Simplify.
23071 (add_new_name_mapping): Do not set need_to_update_vops_p.
23072 (dump_currdefs): Use SYMS_TO_RENAME.
23073 (rewrite_update_stmt): Always walk all uses/defs.
23074 (dump_update_ssa): Adjust.
23075 (init_update_ssa): Take function argument. Track what we are
23076 initialized for.
23077 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23078 (create_new_def_for): Initialize for cfun, assert we are initialized
23079 for cfun.
23080 (mark_sym_for_renaming): Simplify.
23081 (mark_set_for_renaming): Do not initialize update-ssa.
23082 (need_ssa_update_p): Simplify. Take function argument.
23083 (name_mappings_registered_p): Assert we ask for the correct function.
23084 (name_registered_for_update_p): Likewise.
23085 (ssa_names_to_replace): Likewise.
23086 (release_ssa_name_after_update_ssa): Likewise.
23087 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23088 (dump_decl_set): Do not print a newline.
23089 (debug_decl_set): Do it here.
23090 (dump_update_ssa): And here.
23091 * tree-ssa-loop-im.c (move_computations): Adjust.
23092 (movement_possibility): Likewise.
23093 (determine_max_movement): Likewise.
23094 (gather_mem_refs_stmt): Likewise.
23095 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23096 or NAME_MEMORY_TAG.
23097 * tree-complex.c (update_all_vops): Remove.
23098 (expand_complex_move): Adjust.
23099 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23100 Simplify test for memory referencing statement. Exclude
23101 non-invariant ADDR_EXPRs.
23102 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23103 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23104 (rdg_flag_uses): Likewise.
23105 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23106 related code.
23107 (tree_optimize_tail_calls_1): Also split the
23108 edge from the entry block if we have degenerate PHI nodes in
23109 the first basic block.
23110 * tree.c (init_ttree): Remove memory-tag related code.
23111 (tree_code_size): Likewise.
23112 (tree_node_structure): Likewise.
23113 (build7_stat): Re-write to be build6_stat.
23114 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23115 (SSA_VAR_P): Adjust.
23116 (struct tree_memory_tag): Remove.
23117 (struct tree_memory_partition_tag): Likewise.
23118 (union tree_node): Adjust.
23119 (build7): Re-write to be build6.
23120 * tree-pass.h (pass_reset_cc_flags): Remove.
23121 (TODO_update_address_taken): New flag.
23122 (pass_simple_dse): Remove.
23123 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23124 * params.h (MAX_ALIASED_VOPS): Remove.
23125 (AVG_ALIASED_VOPS): Likewise.
23126 * omp-low.c (expand_omp_taskreg): Update SSA form.
23127 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23128 aliases the lhs in a copy stmt.
23129 * tree-ssa-dse.c (struct address_walk_data): Remove.
23130 (memory_ssa_name_same): Likewise.
23131 (memory_address_same): Likewise.
23132 (get_kill_of_stmt_lhs): Likewise.
23133 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23134 unused stores. Look through PHI nodes into post-dominated regions.
23135 (dse_optimize_stmt): Simplify. Properly remove stores.
23136 (tree_ssa_dse): Compute dominators.
23137 (execute_simple_dse): Remove.
23138 (pass_simple_dse): Likewise.
23139 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23140 gimple_loaded_syms and gimple_stored_syms computation.
23141 * toplev.c (dump_memory_report): Dump alias and pta stats.
23142 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23143 (vn_reference_eq): Likewise.
23144 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23145 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23146 valueize_vuses): Remove.
23147 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23148 (get_def_ref_stmt_vuse): ... this.
23149 (vn_reference_lookup_2): New function.
23150 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23151 walking equivalent vuses. Simplify.
23152 (vn_reference_lookup): Likewise.
23153 (vn_reference_insert): Likewise.
23154 (vn_reference_insert_pieces): Likewise.
23155 (visit_reference_op_call): Simplify.
23156 (visit_reference_op_load): Likewise.
23157 (visit_reference_op_store): Likewise.
23158 (init_scc_vn): Remove shared_lookup_vuses initialization.
23159 (free_scc_vn): Remove shared_lookup_vuses freeing.
23160 (sort_vuses, sort_vuses_heap): Remove.
23161 (get_ref_from_reference_ops): Export.
23162 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23163 vector with single vuse pointer.
23164 (vn_reference_lookup_pieces, vn_reference_lookup,
23165 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23166 (shared_vuses_from_stmt): Remove.
23167 (get_ref_from_reference_ops): Declare.
23168 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23169 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23170 memory-tag related code.
23171 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23172 (likely_value): Add comment, skip static-chain of call statements.
23173 (surely_varying_stmt_p): Adjust.
23174 (gimplify_and_update_call_from_tree): Likewise.
23175 (execute_fold_all_builtins): Do not rebuild alias info.
23176 (gimplify_and_update_call_from_tree): Properly update VOPs.
23177 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23178 (copy_ref_info): Remove memory-tag related code.
23179 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23180 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23181 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23182 computation.
23183 * tree-ssa-dom.c (gimple_p): Remove typedef.
23184 (eliminate_redundant_computations): Adjust.
23185 (record_equivalences_from_stmt): Likewise.
23186 (avail_expr_hash): Likewise.
23187 (avail_expr_eq): Likewise.
23188 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23189 (stmt_makes_single_load): Likewise.
23190 (stmt_makes_single_store): Likewise.
23191 * tree-ssa-alias.c: Rewrite completely.
23192 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23193 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23194 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23195 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23196 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23197 Remove public functions.
23198 (pass_reset_cc_flags): Remove.
23199 (pass_build_alias): Move ...
23200 * tree-ssa-structalias.c (pass_build_alias): ... here.
23201 * tree-ssa-alias.c (may_be_aliased): Move ...
23202 * tree-flow-inline.h (may_be_aliased): ... here.
23203 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23204 count_uses_and_derefs): Move ...
23205 * gimple.c: ... here.
23206 * gimple.h (count_uses_and_derefs): Declare.
23207 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23208 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23209 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23210 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23211 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23212 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23213 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23214 New functions.
23215 * tree-dfa.c (refs_may_alias_p): Move ...
23216 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23217 * tree-ssa-alias.h: New file.
23218 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23219 (statement_sink_location): Likewise.
23220 * opts.c (decode_options): Do not adjust max-aliased-vops or
23221 avg-aliased-vops values.
23222 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23223 (TV_CALL_CLOBBER): Likewise.
23224 (TV_FLOW_SENSITIVE): Likewise.
23225 (TV_FLOW_INSENSITIVE): Likewise.
23226 (TV_MEMORY_PARTITIONING): Likewise.
23227 (TV_ALIAS_STMT_WALK): New timevar.
23228 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23229 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23230 (get_address_description): Remove memory-tag related code.
23231 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23232 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23233 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23234 and immediate uses in statements. Document.
23235 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23236 (dump_symbols): Remove.
23237 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23238 * alias.c (get_deref_alias_set): New function split out from ...
23239 (get_alias_set): ... here.
23240 * alias.h (get_deref_alias_set): Declare.
23241 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23242 type parameter. Remove restrict pointer handling. Create a
23243 ref-all pointer in case type-based alias sets do not conflict.
23244 (vect_analyze_data_refs): Remove SMT related code.
23245 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23246 (vectorizable_load): Likewise.
23247 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23248 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23249 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23250 Ignore vops and SMTs.
23251 (dr_analyze_alias): Likewise..
23252 (free_data_ref): Likewise.
23253 (create_data_ref): Likewise.
23254 (analyze_all_data_dependences): Likewise.
23255 (get_references_in_stmt): Adjust.
23256 * tree-flow-inline.h (gimple_aliases_computed_p,
23257 gimple_addressable_vars, gimple_call_clobbered_vars,
23258 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23259 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23260 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23261 gimple_mem_ref_stats): Remove.
23262 (gimple_vop): New function.
23263 (op_iter_next_use): Remove vuses and mayuses cases.
23264 (op_iter_next_def): Remove vdefs case.
23265 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23266 (clear_and_done_ssa_iter): Do not set removed fields.
23267 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23268 Assert we are not iterating over vuses or vdefs if not also
23269 iterating over uses or defs.
23270 (op_iter_init_use): Likewise.
23271 (op_iter_init_def): Likewise.
23272 (op_iter_next_vdef): Remove.
23273 (op_iter_next_mustdef): Likewise.
23274 (op_iter_init_vdef): Likewise.
23275 (compare_ssa_operands_equal): Likewise.
23276 (link_use_stmts_after): Handle vuse operand.
23277 (is_call_used): Use is_call_clobbered.
23278 (is_call_clobbered): Global variables are always call clobbered,
23279 query the call-clobbers bitmap.
23280 (mark_call_clobbered): Ignore global variables.
23281 (clear_call_clobbered): Likewise.
23282 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23283 virtual operands sanity check.
23284 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23285 Remove.
23286 (TARGET_MEM_REF): Remove TMR_TAG operand.
23287 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23288 Remove call-clobber related code.
23289 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23290 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23291 partitions or escape reason.
23292 (get_single_def_stmt, get_single_def_stmt_from_phi,
23293 get_single_def_stmt_with_phi): Remove.
23294 (dump_referenced_vars): Tidy.
23295 (get_ref_base_and_extent): Allow bare decls.
23296 (collect_dfa_stats): Adjust.
23297 * graphite.c (rename_variables_in_stmt): Adjust.
23298 (graphite_copy_stmts_from_block): Likewise.
23299 (translate_clast): Likewise.
23300 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23301 (EXPR_DIES): New.
23302 (translate_vuse_through_block): Use the oracle.
23303 (phi_translate_1): Adjust.
23304 (value_dies_in_block_x): Use the oracle. Cache the outcome
23305 in EXPR_DIES.
23306 (valid_in_sets): Check if the VUSE for
23307 a REFERENCE is available.
23308 (eliminate): Do not remove stmts during elimination,
23309 instead queue and remove them afterwards.
23310 (do_pre): Do not rebuild alias info.
23311 (pass_pre): Run TODO_rebuild_alias before PRE.
23312 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23313 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23314 (mark_all_v_defs_stmt): Remove.
23315 (mark_all_v_defs_seq): Adjust.
23316 (sra_replace): Likewise.
23317 (scalarize_use): Likewise.
23318 (scalarize_copy): Likewise.
23319 (scalarize_init): Likewise.
23320 (scalarize_ldst): Likewise.
23321 (todoflags): Remove.
23322 (tree_sra): Do not rebuild alias info.
23323 (tree_sra_early): Adjust.
23324 (pass_sra): Run TODO_update_address_taken before SRA.
23325 * tree-predcom.c (set_alias_info): Remove.
23326 (prepare_initializers_chain): Do not call it.
23327 (mark_virtual_ops_for_renaming): Adjust.
23328 (mark_virtual_ops_for_renaming_list): Remove.
23329 (initialize_root_vars): Adjust.
23330 (initialize_root_vars_lm): Likewise.
23331 (prepare_initializers_chain): Likewise.
23332 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23333 (may_propagate_copy_into_stmt): Likewise.
23334 (merge_alias_info): Do nothing for now.
23335 (propagate_tree_value_into_stmt): Adjust.
23336 (stmt_may_generate_copy): Likewise.
23337 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23338 not mark symbols for renaming.
23339 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23340 with the same statement, make sure to update the new pointed-to one.
23341 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23342 call statements, do not mark symbols for renaming.
23343 (mark_operand_necessary): Dump something.
23344 (ref_may_be_aliased): New function.
23345 (mark_aliased_reaching_defs_necessary_1): New helper function.
23346 (mark_aliased_reaching_defs_necessary): Likewise.
23347 (mark_all_reaching_defs_necessary_1): Likewise.
23348 (mark_all_reaching_defs_necessary): Likewise.
23349 (propagate_necessity): Do not process virtual PHIs. For
23350 non-aliased loads mark all reaching definitions as necessary.
23351 For aliased loads and stores mark the immediate dominating
23352 aliased clobbers as necessary.
23353 (visited): New global static.
23354 (perform_tree_ssa_dce): Free visited bitmap after propagating
23355 necessity.
23356 (remove_dead_phis): Perform simple dead virtual PHI removal.
23357 (remove_dead_stmt): Properly unlink virtual operands when
23358 removing stores.
23359 (eliminate_unnecessary_stmts): Schedule PHI removal after
23360 stmt removal.
23361 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23362 (process_replaceable): Likewise.
23363 (find_replaceable_in_bb): Likewise.
23364 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23365 based on the single gimple vop.
23366 (verify_flow_insensitive_alias_info): Remove.
23367 (verify_flow_sensitive_alias_info): Likewise.
23368 (verify_call_clobbering): Likewise.
23369 (verify_memory_partitions): Likewise.
23370 (verify_alias_info): Likewise.
23371 (verify_ssa): Adjust..
23372 (execute_update_addresses_taken): Export. Update SSA
23373 manually. Optimize only when optimizing. Use a local bitmap.
23374 (pass_update_address_taken): Remove TODO_update_ssa, add
23375 TODO_dump_func.
23376 (pass_update_address_taken): Just use TODO_update_address_taken.
23377 (init_tree_ssa): Do not initialize addressable_vars.
23378 (verify_ssa): Verify new VUSE / VDEF properties.
23379 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23380 Do not call verify_alias_info.
23381 (delete_tree_ssa): Clear the VUSE, VDEF operands.
23382 Do not free the loaded and stored syms bitmaps. Reset the escaped
23383 and callused solutions. Do not free addressable_vars.
23384 Remove memory-tag related code.
23385 (warn_uninitialized_var): Aliases are always available.
23386 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23387 * lambda-code.c (can_put_in_inner_loop): Adjust.
23388 (can_put_after_inner_loop): Likewise.
23389 (perfect_nestify): Likewise.
23390 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23391 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23392 (vectorizable_conversion): Do not mark symbols for renaming.
23393 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23394 (expand_call_inline): Unlink the calls virtual operands before
23395 replacing it.
23396 (tree_function_versioning): Do not call update_ssa if we are not
23397 updating clones. Simplify.
23398 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23399 (propagate_with_phi): Likewise..
23400 * tree-outof-ssa.c (create_temp): Remove memory tag and call
23401 clobber code. Assert we are not aliased or global.
23402 * tree-flow.h: Include tree-ssa-alias.h
23403 (enum escape_type): Remove.
23404 (struct mem_sym_stats_d): Likewise.
23405 (struct mem_ref_stats_d): Likewise.
23406 (struct gimple_df): Add vop member. Remove global_var,
23407 call_clobbered_vars, call_used_vars, addressable_vars,
23408 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
23409 escaped and callused members.
23410 (struct ptr_info_def): Remove all members, add points-to solution
23411 member pt.
23412 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23413 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23414 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23415 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23416 (tree-ssa-alias.o): Likewise.
23417 (toplev.o): Add tree-ssa-alias.h
23418 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23419 * gimple.c (gimple_set_bb): Fix off-by-one error.
23420 (is_gimple_reg): Do not handle memory tags.
23421 (gimple_copy): Also copy virtual operands.
23422 Delay updating the statement. Do not reset loaded and stored syms.
23423 (gimple_set_stored_syms): Remove.
23424 (gimple_set_loaded_syms): Likewise.
23425 (gimple_call_copy_skip_args): Copy the virtual operands
23426 and mark the new statement modified.
23427 * tree-ssa-structalias.c (may_alias_p): Remove.
23428 (set_uids_in_ptset): Take the alias set to prune with as
23429 parameter. Fold in the alias test of may_alias_p.
23430 (compute_points_to_sets): Compute whether a ptr is dereferenced
23431 in a local sbitmap.
23432 (process_constraint): Deal with &ANYTHING on the lhs, reject all
23433 other ADDRESSOF constraints on the lhs.
23434 (get_constraint_for_component_ref): Assert that we don't get
23435 ADDRESSOF constraints from the base of the reference.
23436 Properly generate UNKNOWN_OFFSET for DEREF if needed.
23437 (struct variable_info): Remove collapsed_to member.
23438 (get_varinfo_fc): Remove.
23439 (new_var_info): Do not set collapsed_to.
23440 (dump_constraint): Do not follow cycles.
23441 (dump_constraint_graph): Likewise.
23442 (build_pred_graph): Likewise.
23443 (build_succ_graph): Likewise.
23444 (rewrite_constraints): Likewise.
23445 (do_simple_structure_copy): Remove.
23446 (do_rhs_deref_structure_copy): Remove.
23447 (do_lhs_deref_structure_copy): Remove.
23448 (collapse_rest_of_var): Remove.
23449 (do_structure_copy): Re-implement.
23450 (pta_stats): New global variable.
23451 (dump_pta_stats): New function.
23452 (struct constraint_expr): Make offset signed.
23453 (UNKNOWN_OFFSET): Define special value.
23454 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23455 (solution_set_expand): New helper function split out from ...
23456 (do_sd_constraint): ... here.
23457 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
23458 (do_ds_constraint): Likewise.
23459 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
23460 and CALLUSED = *CALLUSED.
23461 (set_union_with_increment): Make inc argument signed.
23462 (type_safe): Remove.
23463 (get_constraint_for_ptr_offset): Handle unknown and negative
23464 constant offsets.
23465 (first_vi_for_offset): Handle offsets before start. Bail
23466 out early for offsets beyond the variable extent.
23467 (first_or_preceding_vi_for_offset): New function.
23468 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23469 Together with ESCAPED = *ESCAPED this properly computes reachability.
23470 (find_what_var_points_to): New function.
23471 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23472 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23473 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23474 pt_solutions_intersect): New functions.
23475 (compute_call_used_vars): Remove.
23476 (compute_may_aliases): New main entry into PTA computation.
23477 * gimple.h (gimple_p): New typedef.
23478 (struct gimple_statement_base): Remove references_memory_p.
23479 (struct gimple_statement_with_memory_ops_base): Remove
23480 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
23481 members.
23482 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23483 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23484 gimple_set_references_memory): Remove.
23485 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23486 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23487 New functions.
23488 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23489 (verify_expr): Allow RESULT_DECL.
23490 (gimple_duplicate_bb): Do not copy virtual operands.
23491 (gimple_duplicate_sese_region): Adjust.
23492 (gimple_duplicate_sese_tail): Likewise.
23493 (mark_virtual_ops_in_region): Remove.
23494 (move_sese_region_to_fn): Do not call it.
23495 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23496 and pass_simple_dse.
23497 (execute_function_todo): Handle TODO_update_address_taken,
23498 call execute_update_addresses_taken for TODO_rebuild_alias.
23499 (execute_todo): Adjust.
23500 (execute_one_pass): Init dump files early.
23501 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23502 call-clobbered.
23503 (create_general_new_stmt): Clear vops.
23504 * tree-ssa-reassoc.c (get_rank): Adjust.
23505 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23506 symbols for renaming.
23507 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23508 (PARAM_AVG_ALIASED_VOPS): Likewise.
23509 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23510 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23511 * tree-ssa-operands.c: Simplify for new virtual operand representation.
23512 (operand_build_cmp, copy_virtual_operands,
23513 create_ssa_artificial_load_stmt, add_to_addressable_set,
23514 gimple_add_to_addresses_taken): Remove public functions.
23515 (unlink_stmt_vdef): New function.
23516
23517 2009-04-03 Alan Modra <amodra@bigpond.net.au>
23518
23519 * config.gcc (powerpc-*-linux*): Merge variants.
23520
23521 2009-04-02 Chao-ying Fu <fu@mips.com>
23522 James Grosbach <james.grosbach@microchip.com>
23523
23524 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23525 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23526 cop0_sp_offset.
23527 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23528 keep_interrupts_masked_p, use_debug_exception_return_p.
23529 (mips_attribute_table): Add interrupt, use_shadow_register_set,
23530 keep_interrupts_masked, use_debug_exception_return.
23531 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23532 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23533 New functions.
23534 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23535 (mips_print_operand): Process COP0 registers to print $0 .. $31
23536 correctly for GAS to process.
23537 (mips_interrupt_extra_call_saved_reg_p): New function.
23538 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23539 extra registers.
23540 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23541 (mips_compute_frame_info): Add supports for interrupt context that
23542 includes doubleword accumulators and COP0 registers.
23543 (mips_for_each_saved_acc): New function.
23544 (mips_for_each_saved_gpr_and_fpr): Change the function name from
23545 mips_for_each_saved_reg.
23546 (mips_save_reg): Save accumulators.
23547 (mips_kernel_reg_p): A new for_each_rtx callback.
23548 (mips_expand_prologue): Support interrupt handlers.
23549 (mips_restore_reg): Restore accumulators.
23550 (mips_expand_epilogue): Support interrupt handlers.
23551 (mips_can_use_return_insn): Return false for interrupt handlers.
23552 (mips_epilogue_uses): New function.
23553 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23554 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23555 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23556 cop0_move): New instructions.
23557 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23558 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23559 defines.
23560 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23561 New defines.
23562 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23563 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23564 interrupt handlers, we use K0 as the temporary register.
23565 (EPILOGUE_USES): Change to a function call.
23566 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23567 handlers, we use K0 as the temporary register.
23568
23569 * doc/extend.texi (Function Attributes): Document interrupt,
23570 use_shadow_register_set, keep_interrupts_masked,
23571 use_debug_exception_return for MIPS attributes.
23572
23573 2009-04-03 Alan Modra <amodra@bigpond.net.au>
23574
23575 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23576 Remove a number of t-files from tmake_file.
23577 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23578 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23579 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23580 target_prototype, not TARGET_PROTOTYPE.
23581 (LINK_OS_GNU_SPEC): Define.
23582 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23583 and darwin-ldoubdle.c.
23584
23585 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23586
23587 PR driver/39293
23588 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23589 (cpp_options): Ditto.
23590 (default_compilers): Ditto.
23591 (display_help): Ditto.
23592 (process_command): Ditto.
23593 (do_spec_1): Ditto.
23594 (set_input): Use lbasename instead of duplicate code.
23595 (save_temps_prefix): New static for -save-temps=obj.
23596 (save_temps_length): Ditto.
23597
23598 * doc/invoke.texi (-save-temps=obj): Document new variant to
23599 -save-temps switch.
23600
23601 2009-04-02 Jeff Law <law@redhat.com>
23602
23603 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23604 variable.
23605
23606 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
23607
23608 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23609 * configure: Regenerated.
23610
23611 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23612
23613 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23614 share the argument list.
23615
23616 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23617
23618 Merge
23619
23620 2009-02-12 Diego Novillo <dnovillo@google.com>
23621
23622 * varpool.c (debug_varpool): New.
23623 * cgraph.h (debug_varpool): Declare.
23624
23625 2009-04-02 Jan Hubicka <jh@suse.cz>
23626
23627 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23628 pass.
23629
23630 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
23631
23632 * config/i386/i386.c (ix86_abi): Move initialization to ...
23633 (override_options): Here.
23634
23635 2009-04-02 Christian Bruel <christian.bruel@st.com>
23636
23637 * config/sh/sh.c (sh_dwarf_register_span): New function.
23638 (TARGET_DWARF_REGISTER_SPAN): Define.
23639 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23640
23641 2009-04-02 Ira Rosen <irar@il.ibm.com>
23642
23643 PR tree-optimization/39595
23644 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23645 interleaved loads group is not greater than the SLP group size.
23646
23647 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23648
23649 * builtins.c (is_builtin_name): New.
23650 (called_as_built_in): Use is_builtin_name.
23651 * tree.h (is_builtin_name): New.
23652 * varasm.c (incorporeal_function_p): Use is_builtin_name
23653
23654 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
23655
23656 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23657
23658 2009-04-02 Dodji Seketeli <dodji@redhat.com>
23659
23660 PR c++/26693
23661 * c-decl.c (clone_underlying_type): Move this ...
23662 * c-common.c (set_underlying_type): ... here.
23663 Also, make sure the function properly sets TYPE_STUB_DECL() on
23664 the newly created typedef variant type.
23665 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23666 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23667 points.
23668
23669 2009-04-02 Richard Guenther <rguenther@suse.de>
23670
23671 PR tree-optimization/37221
23672 * tree-flow.h (degenerate_phi_result): Declare.
23673 * tree-ssa-dom.c (degenerate_phi_result): Export.
23674 * tree-scalar-evolution.c (analyze_initial_condition): If
23675 the initial condition is defined by a degenerate PHI node
23676 use the degenerate value.
23677
23678 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
23679
23680 PR rtl-optimization/39588
23681 * combine.c (merge_outer_ops): Do not set the constant when this
23682 is not necessary.
23683 (simplify_shift_const_1): Do not modify it either in this case.
23684
23685 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
23686
23687 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
23688 tuning is deprecated if -mtune value is set to an Itanium1 variant.
23689
23690 2009-04-01 Janis Johnson <janis187@us.ibm.com>
23691
23692 PR c/29027
23693 * c-lex.c (interpret_float): Default (no suffix) is double.
23694
23695 2009-04-1 Xinliang David Li <davidxl@google.com>
23696
23697 * config/i386/i386.c (legitimate_constant_p): Recognize
23698 all one vector constant.
23699
23700 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23701
23702 * config/vax/vax.c: Add #includes to silence warnings.
23703 Change #include order to silence two warnings.
23704
23705 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23706
23707 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
23708 (ASM_SPEC): Pass -k to the assembler for PIC code.
23709
23710 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23711
23712 * config.gcc: Add vax-*-linux* to the switch.
23713 * config/vax/linux.h: New file. (TARGET_VERSION,
23714 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
23715
23716 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23717
23718 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
23719 Use predicate macros instead of GET_CODE() == foo.
23720 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
23721 ashlsi3, rotrsi3, <unnamed>): Likewise.
23722
23723 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23724
23725 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
23726 jbbccihi, jbbccisi): Remova trailing whitespace.
23727 * config/vax/constraints.md: Likewise.
23728 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23729 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
23730 * config/vax/predicates.md: Likewise.
23731 * config/vax/vax.c (print_operand_address, vax_output_int_move,
23732 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
23733 * config/vax/vax.h: Likewise.
23734 * config/vax/vax.md (nonlocal_goto): Likewise.
23735
23736 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23737
23738 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
23739 (indirectable_address_p, adjacent_operands_p): Add spaces around
23740 braces.
23741 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
23742
23743 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23744
23745 * config/vax/vax.c (legitimate_constant_address_p,
23746 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
23747 index_term_p, reg_plus_index_p, legitimate_address_p,
23748 vax_mode_dependent_address_p): Update comments to match functions
23749 modified by the recent int->bool conversion.
23750
23751 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23752
23753 * config/vax/builtins.md: Update copyright message.
23754 * config/vax/constraints.md: Likewise.
23755 * config/vax/netbsd-elf.h: Likewise.
23756 * config/vax/predicates.md: Likewise.
23757 * config/vax/vax-protos.h: Likewise.
23758 * config/vax/vax.c: Likewise.
23759 * config/vax/vax.h: Likewise.
23760 * config/vax/vax.md: Likewise.
23761 * config/vax/vax.opt: Likewise.
23762
23763 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
23764
23765 * config/vax/builtins.md (ffssi2, ffssi2_internal,
23766 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
23767 * config/vax/constraints.md (B, R): Likewise.
23768 * config/vax/predicates.md (external_memory_operand,
23769 nonimmediate_addsub_di_operand): Likewise.
23770 * config/vax/vax.c (vax_output_int_add): Likewise.
23771 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
23772 untyped_call): Likewise.
23773
23774 2009-04-01 Matt Thomas <matt@3am-software.com>
23775
23776 * config/vax/predicates.md: New file.
23777 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
23778 external_const_operand, nonsymbolic_operand, external_memory_operand,
23779 indirect_memory_operand, indexed_memory_operand,
23780 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
23781 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
23782 predicate.
23783 * config/vax/constraints.md: New file.
23784 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
23785 New constraint.
23786 * config/vax/builtins.md: New file.
23787 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
23788 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
23789 jbbccisi): Define.
23790 * config/vax/vax.opt (mqmath): Add option.
23791 * config/vax/vax.md (isfx): Extend with DI.
23792 (VAXintQH, VAXintQHSD): Define.
23793 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
23794 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
23795 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
23796 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
23797 (movdi): Update constraints and use vax_output_int_move().
23798 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
23799 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
23800 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
23801 nonlocal_goto): New.
23802 (mov<mode>): Extend accepted operand types.
23803 (subdi3_old): Rename from subdi3, change update constraints and use
23804 a new implementation.
23805 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
23806 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
23807 MOVE_RATIO, CLEAR_RATIO): Define.
23808 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
23809 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
23810 (PRINT_OPERAND): Redefine using a function instead of inlined code.
23811 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23812 (split_quadword_operands): Make static and really allow variable
23813 splitting.
23814 (print_operand_address): Update for PIC generation.
23815 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
23816 indexable_address_p, fixup_mathdi_operand,
23817 vax_expand_addsub_di_operands, adjacent_operands_p): New.
23818 (vax_float_literal, legitimate_constant_p,
23819 indirectable_constant_address_p, index_term_p,
23820 reg_plus_index_p): Return bool instead of int.
23821 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
23822 where needed.
23823 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
23824 generation.
23825 (vax_output_conditional_branch): Indent.
23826 (legitimate_constant_address_p, indirectable_constant_address_p,
23827 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
23828 vax_mode_dependent_address_p): Return bool instead of int, update for
23829 PIC generation.
23830 * config/vax/vax-protos.h (legitimate_constant_address_p,
23831 legitimate_constant_p, legitimate_address_p,
23832 vax_mode_dependent_address_p): Change declaration to bool.
23833 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
23834 vax_expand_addsub_di_operands, vax_output_int_subtract,
23835 vax_output_movmemsi): Declare.
23836 (split_quadword_operands, vax_float_literal): Delete declaration.
23837 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
23838 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
23839 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
23840 ASM_OUTPUT_DWARF_PCREL): Define.
23841 (ASM_SPEC): Change definition to allow PIC generation.
23842
23843 2009-04-01 Steve Ellcey <sje@cup.hp.com>
23844
23845 * doc/sourcebuild.texi: Update front-end requirements.
23846
23847 2009-04-01 Jakub Jelinek <jakub@redhat.com>
23848
23849 PR target/39226
23850 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
23851 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
23852 (booldi3_internal3): Use boolean_or_operator instead of
23853 boolean_operator.
23854
23855 2009-04-01 Joseph Myers <joseph@codesourcery.com>
23856
23857 PR c/39605
23858 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
23859 declarator whose size is not an integer constant expression but
23860 folds to an integer constant, then treat it as a constant
23861 subsequently.
23862
23863 2009-04-01 Richard Guenther <rguenther@suse.de>
23864
23865 * fold-const.c (fold_plusminus_mult_expr): Do not fold
23866 i * 4 + 2 to (i * 2 + 1) * 2.
23867
23868 2009-04-01 Jakub Jelinek <jakub@redhat.com>
23869
23870 PR c/37772
23871 * c-parser.c (c_parser_asm_statement): Skip until close paren and
23872 return if c_parser_asm_string_literal returned NULL.
23873
23874 2009-04-01 Nick Clifton <nickc@redhat.com>
23875
23876 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
23877 already defined.
23878 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
23879 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
23880 other typedefs to avoid conflicts with libgcc2.c. Define labels
23881 to gain 16-bit bit-manipulation functions from libgcc2.c and then
23882 include it.
23883 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
23884 to gain 16-bit trapping arithmetic functions from libgcc2.c and
23885 then include it.
23886
23887 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
23888
23889 * varasm.c (default_function_rodata_section): Declare DOT as
23890 const char*.
23891
23892 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
23893 Andrey Galkin <agalkin@hypercom.com>
23894
23895 PR/39492
23896 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23897 Make object_name unique for each process.
23898
23899 2009-04-01 Jakub Jelinek <jakub@redhat.com>
23900
23901 PR other/39591
23902 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
23903 addressable variables in the parallel that could go out of scope while
23904 running queued tasks.
23905
23906 2009-04-01 Anatoly Sokolov <aesok@post.ru>
23907
23908 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
23909 (CASE_VALUES_THRESHOLD): Redefine.
23910 * config/avr/avr.c (avr_override_options): Remove initialization of
23911 avr_case_values_threshold variable.
23912 (avr_case_values_threshold): Remove variable. Add new function.
23913 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
23914 * config/avr/avr.opt (mno-tablejump): Remove option.
23915 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
23916
23917 2009-04-01 DJ Delorie <dj@redhat.com>
23918
23919 * varasm.c (default_function_rodata_section): Don't assume
23920 anything about where the first '.' in the section name is.
23921
23922 2009-04-01 Alan Modra <amodra@bigpond.net.au>
23923
23924 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
23925 rs6000_emit_stack_tie.
23926
23927 2009-03-31 Ian Lance Taylor <iant@google.com>
23928
23929 * tree-eh.c (tree_remove_unreachable_handlers): Compare
23930 gimple_code with GIMPLE_RESX, not RESX.
23931
23932 2009-03-31 Joseph Myers <joseph@codesourcery.com>
23933
23934 * c-common.c (c_get_ident): New.
23935 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
23936
23937 2009-04-01 Ben Elliston <bje@au.ibm.com>
23938
23939 * config/rs6000/sysv4.opt (msdata): Improve option description.
23940
23941 2009-03-31 Steve Ellcey <sje@cup.hp.com>
23942
23943 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
23944 (divdf3_internal_lat): Remove.
23945 (divxf3_internal_lat): Remove.
23946 (divxf3_internal_thr): Remove.
23947 (divxf): Use divxf3_internal.
23948 * config/ia64/div.md (divsf3_internal_lat): New.
23949 (divdf3_internal_lat): New.
23950 (divxf3_internal): New.
23951
23952 2009-03-31 Joseph Myers <joseph@codesourcery.com>
23953
23954 PR c/448
23955 * Makefile.in (USE_GCC_STDINT): Define.
23956 (stmp-int-hdrs): Install stdint.h if applicable.
23957 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
23958 if known.
23959 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
23960 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
23961 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23962 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23963 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23964 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23965 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23966 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23967 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23968 (c_common_nodes_and_builtins): Initialize
23969 underlying_wchar_type_node. Do not initialize
23970 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
23971 nodes for new types.
23972 (c_stddef_cpp_builtins): Define macros for new types.
23973 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
23974 Remove.
23975 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
23976 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
23977 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
23978 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
23979 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
23980 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
23981 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
23982 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
23983 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
23984 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
23985 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
23986 int16_type_node, int32_type_node, int64_type_node,
23987 uint8_type_node, uint16_type_node, c_uint32_type_node,
23988 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
23989 int_least32_type_node, int_least64_type_node,
23990 uint_least8_type_node, uint_least16_type_node,
23991 uint_least32_type_node, uint_least64_type_node,
23992 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
23993 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
23994 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
23995 uintptr_type_node): Define.
23996 * c-cppbuiltin.c (builtin_define_constants,
23997 builtin_define_type_minmax): New.
23998 (builtin_define_stdint_macros): Define more macros.
23999 (c_cpp_builtins): Define more limit macros.
24000 (type_suffix): New.
24001 (builtin_define_type_max): Define in terms of
24002 builtin_define_type_minmax. Remove is_long parameter. All
24003 callers changed.
24004 * config.gcc (use_gcc_stdint): Define.
24005 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24006 Add newlib-stdint.h for generic targets.
24007 * config/glibc-stdint.h, config/newlib-stdint.h,
24008 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24009 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24010 * config/score/score.h (UINTPTR_TYPE): Define.
24011 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24012 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24013 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24014 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24015 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24016 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24017 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24018 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24019 * config/spu/spu.h (STDINT_LONG32): Define.
24020 * configure.ac (use_gcc_stdint): Substitute.
24021 * configure: Regenerate.
24022 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24023 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24024 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24025 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24026 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24027 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24028 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24029 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24030 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24031 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24032 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24033 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24034 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24035 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24036 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24037 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24038 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24039 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24040 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24041 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24042 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24043 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24044 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24045 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24046 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24047 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24048 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24049 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24050 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24051
24052 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24053
24054 * loop-iv.c (suitable_set_for_replacement): Renamed from
24055 simplify_using_assignment; changed to return bool and to accept new
24056 args DEST and SRC. Return true iff we find a source/destination pair
24057 that can be used to make a replacement, and fill SRC and DEST if so.
24058 Remove arg ALTERED. Don't deal with altered regs here. All callers
24059 changed.
24060 (simplify_using_initial_values): Deal with altered regs here and track
24061 more precisely the effect they have on the validity of our expression.
24062
24063 * loop-iv.c (simplify_using_condition): A condition of the form
24064 (EQ REG CONST) can be used to simply make a substitution.
24065 (simplify_using_initial_values): Keep track of conditions we have seen
24066 and keep using them to simplify new expressions, while applying the
24067 same substitutions to them as to the expression.
24068
24069 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24070 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24071 GEU/LTU reversed.
24072
24073 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24074 changed. Use this when trying to improve the upper bound.
24075 Generate the comparison by using simplify_gen_relational.
24076
24077 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24078
24079 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24080 functions.
24081 (simplify_using_assignment, simplify_using_initial_values): Call
24082 replace_in_expr to make replacements. Call replace_single_def_regs
24083 once on the initial version of the expression.
24084
24085 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24086
24087 PR target/27237
24088 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24089
24090 2009-03-31 Richard Guenther <rguenther@suse.de>
24091
24092 PR middle-end/31029
24093 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24094 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24095
24096 2009-03-31 Richard Guenther <rguenther@suse.de>
24097
24098 * tree.h (div_if_zero_remainder): Declare.
24099 * fold-const.c (div_if_zero_remainder): Export.
24100 * tree-ssa-forwprop.c
24101 (forward_propagate_addr_into_variable_array_index): Handle
24102 constant array index addition outside of the variable index.
24103
24104 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24105
24106 PR target/39592
24107 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24108 define_splits, floatunssi<mode>2): Require x87 conversions from
24109 DImode to be permitted.
24110
24111 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24112
24113 PR preprocessor/15638
24114 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24115
24116 2009-03-31 Richard Guenther <rguenther@suse.de>
24117
24118 PR middle-end/23401
24119 PR middle-end/27810
24120 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24121 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24122 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24123 a separate statement.
24124 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24125 (lookup_tmp_var): Likewise.
24126 (is_gimple_formal_tmp_or_call_rhs): Remove.
24127 (is_gimple_reg_or_call_rhs): Rename to ...
24128 (is_gimple_reg_rhs_or_call): ... this.
24129 (is_gimple_mem_or_call_rhs): Rename to ...
24130 (is_gimple_mem_rhs_or_call): ... this.
24131 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24132 DECL_GIMPLE_REG_P only if is_formal is true.
24133 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24134 for non-proper post-modify expression gimplification.
24135 (gimplify_self_mod_expr): For post-modify expressions gimplify
24136 the lvalue to a minimal lvalue.
24137 (rhs_predicate_for): Remove formal temp case.
24138 (gimplify_modify_expr_rhs): Likewise.
24139 (gimplify_addr_expr): Use is_gimple_reg.
24140 (gimplify_expr): Remove formal temp cases.
24141 (gimple_regimplify_operands): Likewise.
24142 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24143 and FILTER_EXPR like constants.
24144 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24145 is_gimple_reg.
24146 (is_gimple_formal_tmp_rhs): Remove.
24147 (is_gimple_reg_rhs): Remove special casing.
24148 (is_gimple_mem_rhs): Fix.
24149 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24150 (is_gimple_formal_tmp_var): Remove.
24151 (is_gimple_formal_tmp_reg): Likewise.
24152 (is_gimple_min_lval): Allow invariant component ref parts.
24153 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24154 is_gimple_formal_tmp_reg): Remove declarations.
24155 * tree-cfg.c (verify_expr): Verify that variables with address
24156 taken do not have DECL_GIMPLE_REG_P set.
24157 * tree-mudflap.c (mf_build_check_statement_for): Use
24158 force_gimple_operand instead of gimplify_expr.
24159
24160 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24161
24162 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24163 schedulable rows to compute_split_row.
24164
24165 2009-03-31 Ben Elliston <bje@au.ibm.com>
24166
24167 PR target/31635
24168 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24169 OPT_mvrsave.
24170
24171 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24172
24173 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24174 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24175 * configure: Regenerate.
24176 * config.in: Regenerate.
24177 * config/rs6000/rs6000.opt (mtls-markers): Add.
24178 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24179 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24180 (tls_ld_aix, tls_ld_sysv): Likewise.
24181 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24182 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24183
24184 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24185
24186 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24187
24188 2009-03-30 Jan Hubicka <jh@suse.cz>
24189
24190 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24191 out of RESX.
24192 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24193 detection and label handling.
24194
24195 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24196
24197 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24198 left_conflicts_size.
24199 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24200 ALLOCNO_LEFT_CONFLICTS_SIZE.
24201
24202 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24203 remove_allocno_from_bucket_and_push,
24204 allocno_spill_priority_compare, push_allocnos_to_stack,
24205 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24206 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24207 (setup_allocno_left_conflicts_num): Ditto. Rename to
24208 setup_allocno_left_conflicts_size.
24209 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24210 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24211 setup_allocno_left_conflicts_size instead of
24212 setup_allocno_left_conflicts_num.
24213
24214 * ira-build.c (ira_create_allocno): Use
24215 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24216 ALLOCNO_LEFT_CONFLICTS_NUM.
24217
24218 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24219
24220 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24221 instead of DF_LR_OUT.
24222
24223 * ira-lives.c (process_bb_node_lives): Ditto.
24224
24225 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24226 instead of DF_LR_{OUT,IN}.
24227
24228 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24229
24230 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24231
24232 2009-03-30 Jan Hubicka <jh@suse.cz>
24233
24234 * except.c (label_to_region_map): Fix thinko.
24235
24236 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24237
24238 PR middle-end/38237
24239 * tree.h (tree_find_value): New declaration.
24240 * tree.c (tree_find_value): New function.
24241 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24242
24243 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24244
24245 PR debug/39563
24246 * c-decl.c (struct c_binding): Add locus field.
24247 (bind): Add locus argument, set locus field from it.
24248 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24249 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24250 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24251 implicitly_declare, undeclared_variable, lookup_label,
24252 declare_label, c_make_fname_decl, c_builtin_function,
24253 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24254 bind callers.
24255
24256 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24257
24258 PR target/38781
24259 * config/i386/i386.c (classify_argument): Check total size of
24260 structure.
24261
24262 2009-03-30 Martin Jambor <mjambor@suse.cz>
24263
24264 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24265 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24266 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24267 respectively.
24268
24269 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24270 seen_variable_array_ref while also traversing a union.
24271
24272 * tree-inline.c (optimize_inline_calls): Do not call
24273 cgraph_node_remove_callees.
24274 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24275 (pass_remove_cgraph_callee_edges): New variable.
24276 * passes.c (init_optimization_passes): Add
24277 pass_remove_cgraph_callee_edges after early inlining and before all
24278 late intraprocedural passes.
24279
24280 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24281
24282 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24283
24284 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24285 Fix typos in names.
24286
24287 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24288
24289 * combine.c (simplify_comparison): Use have_insn_for.
24290 * dojump.c (do_jump): Likewise.
24291
24292 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24293
24294 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24295 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24296 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24297 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24298 instead of sparc_compare_emitted.
24299 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24300 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24301 instead of sparc_compare_emitted.
24302
24303 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24304
24305 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24306 enter/exit cfglayout mode.
24307 (pass_partition_block): Require it.
24308 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24309 (combine_instructions): Track basic blocks instead of labels.
24310 (update_cfg_for_uncondjump): New.
24311 (try_combine): Use it. Update jumps after rescanning.
24312 (pass_combine): Require PROP_cfglayout.
24313 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24314
24315 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24316
24317 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24318 Provide/destroy PROP_cfglayout respectively.
24319 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24320 * tree-pass.h (PROP_cfglayout): New.
24321
24322 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24323
24324 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24325 fold_convert_const_fixed_from_fixed,
24326 fold_convert_const_fixed_from_int,
24327 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24328 set TREE_CONSTANT_OVERFLOW.
24329 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24330 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24331
24332 2009-03-30 Ira Rosen <irar@il.ibm.com>
24333
24334 * tree-vect-loop-manip.c: New file.
24335 * tree-vectorizer.c: Update documentation and included files.
24336 (vect_loop_location): Make extern.
24337 (rename_use_op): Move to tree-vect-loop-manip.c
24338 (rename_variables_in_bb, rename_variables_in_loop,
24339 slpeel_update_phis_for_duplicate_loop,
24340 slpeel_update_phi_nodes_for_guard1,
24341 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24342 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24343 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24344 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24345 find_loop_location): Likewise.
24346 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24347 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24348 get_vectype_for_scalar_type, vect_is_simple_use,
24349 supportable_widening_operation, supportable_narrowing_operation):
24350 Likewise.
24351 (bb_in_loop_p): Move to tree-vect-loop.c.
24352 (new_loop_vec_info, destroy_loop_vec_info,
24353 reduction_code_for_scalar_code, report_vect_op,
24354 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24355 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24356 (vect_supportable_dr_alignment): Likewise.
24357 * tree-vectorizer.h (tree-data-ref.h): Include.
24358 (vect_loop_location): Declare.
24359 Reorganize function declarations according to the new file structure.
24360 * tree-vect-loop.c: New file.
24361 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24362 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24363 * tree-vect-data-refs.c: New file.
24364 * tree-vect-patterns.c (timevar.h): Don't include.
24365 * tree-vect-stmts.c: New file.
24366 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24367 tree-vect-slp.c, tree-vect-loop.c.
24368 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24369 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24370 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24371 (tree-vect-analyze.o): Remove.
24372 (tree-vect-transform.o): Likewise.
24373 (tree-vect-data-refs.o): Add rule.
24374 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24375 tree-vect-slp.o): Likewise.
24376 (tree-vect-patterns.o): Remove redundant dependencies.
24377 (tree-vectorizer.o): Likewise.
24378 * tree-vect-slp.c: New file.
24379
24380 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24381
24382 * optc-gen.awk: Warn if an option flag has multiple different
24383 help strings.
24384
24385 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
24386
24387 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24388 -floop-block): Document dependences on PPL, CLooG and Graphite.
24389
24390 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24391
24392 PR rtl-optimization/323
24393 * c-common.c (c_fully_fold, convert_and_check,
24394 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24395 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24396 * c-common.def (EXCESS_PRECISION_EXPR): New.
24397 * c-cppbuiltin.c (builtin_define_float_constants): Define
24398 constants with enough digits for long double.
24399 * c-lex.c (interpret_float): Interpret constant with excess
24400 precision where appropriate.
24401 * c-opts.c (c_common_post_options): Set
24402 flag_excess_precision_cmdline. Give an error for
24403 -fexcess-precision=standard for C++ for processors where the
24404 option is significant.
24405 * c-parser.c (c_parser_conditional_expression): Handle excess
24406 precision in condition.
24407 * c-typeck.c (convert_arguments): Handle arguments with excess
24408 precision.
24409 (build_unary_op): Move excess precision outside operation.
24410 (build_conditional_expr): Likewise.
24411 (build_compound_expr): Likewise.
24412 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24413 (build_modify_expr): Handle excess precision in RHS.
24414 (convert_for_assignment): Handle excess precision in converted
24415 value.
24416 (digest_init, output_init_element, process_init_element): Handle
24417 excess precision in initializer.
24418 (c_finish_return): Handle excess precision in return value.
24419 (build_binary_op): Handle excess precision in operands and add
24420 excess precision as needed for operation.
24421 * common.opt (-fexcess-precision=): New option.
24422 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24423 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24424 For standard excess precision, output explicit conversion to and
24425 truncation from XFmode.
24426 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24427 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24428 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24429 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24430 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24431 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24432 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24433 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24434 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24435 define_splits, sqrt<mode>2): Disable where appropriate for
24436 standard excess precision.
24437 * convert.c (convert_to_real): Do not shorten arithmetic to type
24438 for which excess precision would be used.
24439 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24440 * doc/invoke.texi (-fexcess-precision=): Document option.
24441 (-mfpmath=): Correct index entry.
24442 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24443 flag_excess_precision): New.
24444 * langhooks.c (lhd_post_options): Set
24445 flag_excess_precision_cmdline.
24446 * opts.c (common_handle_option): Handle -fexcess-precision=.
24447 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24448 init_excess_precision): New.
24449 (lang_dependent_init_target): Call init_excess_precision.
24450 * tree.c (excess_precision_type): New.
24451 * tree.h (excess_precision_type): Declare.
24452
24453 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24454
24455 PR c/35235
24456 * c-typeck.c (build_component_ref): Do not copy qualifiers from
24457 non-lvalue to component.
24458
24459 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24460
24461 PR preprocessor/34695
24462 * Makefile.in (c-opts.o): Depend on c-tree.h.
24463 * c-common.c: Move down include of diagnostic.h.
24464 (done_lexing, c_cpp_error): New.
24465 * c-common.h (done_lexing): Declare.
24466 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24467 (parse_in).
24468 * c-opts.c: Include c-tree.h.
24469 (c_common_init_options): Set preprocessor error callback.
24470 (c_common_handle_option): Do not set preprocessor
24471 inhibit_warnings, warnings_are_errors, warn_system_headers,
24472 pedantic_errors or inhibit_warnings flags.
24473 (c_common_post_options): Do not check cpp_errors (parse_in).
24474 (c_common_finish): Do not output dependencies if there were
24475 errors. Do not check return value of cpp_finish.
24476 * c-ppoutput.c (pp_file_change): Set input_location.
24477 * c-tree.h (c_cpp_error): Declare.
24478 * diagnostic.c (diagnostic_set_info_translated): Also initialize
24479 override_column.
24480 (diagnostic_build_prefix): Check override_column.
24481 * diagnostic.h (diagnostic_info): Add override_column field.
24482 (diagnostic_override_column): Define.
24483
24484 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
24485
24486 * c-common.c (c_expand_expr, c_staticp): Remove.
24487 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24488 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24489 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24490 * c-gimplify.c (gimplify_compound_literal_expr,
24491 optimize_compound_literals_in_ctor): Remove.
24492 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24493 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24494 * c-semantics.c (emit_local_var): Remove.
24495
24496 * langhooks-def.h (lhd_expand_expr): Remove.
24497 * langhooks.c (lhd_expand_expr): Remove.
24498 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24499
24500 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24501 handling from c-semantics.c; don't call into langhook.
24502 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24503 * gimplify.c (gimplify_compound_literal_expr,
24504 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24505 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24506 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24507 as was done in c-gimplify.c.
24508 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24509 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24510 Move from c-common.h.
24511 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24512
24513 * tree.c (staticp): Do not call langhook.
24514 * langhooks.c (lhd_staticp): Delete.
24515 * langhooks-def.h (lhd_staticp): Delete prototype.
24516 (LANG_HOOKS_STATICP): Delete.
24517 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24518
24519 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24520 instead of DECL_STMTs.
24521
24522 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24523
24524 PR c/456
24525 PR c/5675
24526 PR c/19976
24527 PR c/29116
24528 PR c/31871
24529 PR c/35198
24530 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24531 void_type_node.
24532 (fold_call_expr): Return a NOP_EXPR from folding rather than the
24533 contained expression.
24534 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24535 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
24536 conditional expressions for C.
24537 (decl_constant_value_for_optimization): Move from
24538 decl_constant_value_for_broken_optimization in c-typeck.c. Check
24539 whether optimizing and that the expression is a VAR_DECL not of
24540 array type instead of doing such checks in the caller. Do not
24541 check pedantic. Call gcc_unreachable for C++.
24542 * c-common.def (C_MAYBE_CONST_EXPR): New.
24543 * c-common.h (c_fully_fold, c_save_expr,
24544 decl_constant_value_for_optimization): New prototypes.
24545 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24546 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24547 EXPR_INT_CONST_OPERANDS): Define.
24548 * c-convert.c (convert): Strip nops from expression.
24549 * c-decl.c (groktypename): Take extra parameters expr and
24550 expr_const_operands. Update call to grokdeclarator.
24551 (start_decl): Update call to grokdeclarator. Add statement for
24552 expressions used in type of decl.
24553 (grokparm): Update call to grokdeclarator.
24554 (push_parm_decl): Update call to grokdeclarator.
24555 (build_compound_literal): Add parameter non_const and build a
24556 C_MAYBE_COSNT_EXPR if applicable.
24557 (grokdeclarator): Take extra parameters expr and
24558 expr_const_operands. Track expressions used in declaration
24559 specifiers and declarators. Fold array sizes and track whether
24560 they are constant expressions and whether they are integer
24561 constant expressions.
24562 (parser_xref_tag): Set expr and expr_const_operands fields in
24563 return value.
24564 (grokfield): Update call to grokdeclarator.
24565 (start_function): Update call to grokdeclarator.
24566 (build_null_declspecs): Set expr and expr_const_operands fields in
24567 return value.
24568 (declspecs_add_type): Handle expressions in typeof specifiers.
24569 * c-parser.c (c_parser_declspecs): Set expr and
24570 expr_const_operands fields for declaration specifiers.
24571 (c_parser_enum_specifier): Likewise.
24572 (c_parser_struct_or_union_specifier): Likewise.
24573 (c_parser_typeof_specifier): Likewise. Update call to
24574 groktypename. Fold expression as needed. Return expressions with
24575 type instead of adding statements.
24576 (c_parser_attributes): Update calls to c_parser_expr_list.
24577 (c_parser_statement_after_labels): Fold expression before passing
24578 to objc_build_throw_stmt.
24579 (c_parser_condition): Fold expression.
24580 (c_parser_asm_operands): Fold expression.
24581 (c_parser_conditional_expression): Use c_save_expr. Update call
24582 to build_conditional_expr.
24583 (c_parser_alignof_expression): Update call to groktypename.
24584 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24585 original_code. Fold expression argument of va_arg. Create
24586 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24587 argument to va_arg. Update calls to groktypename. Fold array
24588 index for offsetof. Verify that first argument to
24589 __builtin_choose_expr has integer type.
24590 (c_parser_postfix_expression_after_paren_type): Update calls to
24591 groktypename and build_compound_literal. Handle expressions with
24592 side effects in type name.
24593 (c_parser_postfix_expression_after_primary): Update call to
24594 c_parser_expr_list. Set original_code for calls to
24595 __builtin_constant_p.
24596 (c_parser_expr_list): Take extra parameter fold_p. Fold
24597 expressions if requested.
24598 (c_parser_objc_type_name): Update call to groktypename.
24599 (c_parser_objc_synchronized_statement): Fold expression.
24600 (c_parser_objc_receiver): Fold expression.
24601 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24602 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24603 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24604 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24605 (struct c_typespec): Add elements expr and expr_const_operands.
24606 (struct c_declspecs): Add elements expr and expr_const_operands.
24607 (groktypename, build_conditional_expr, build_compound_literal):
24608 Update prototypes.
24609 (in_late_binary_op): Declare.
24610 * c-typeck.c (note_integer_operands): New function.
24611 (in_late_binary_op): New variable.
24612 (decl_constant_value_for_broken_optimization): Move to c-common.c
24613 and rename to decl_constant_value_for_optimization.
24614 (default_function_array_conversion): Do not strip nops.
24615 (default_conversion): Do not call
24616 decl_constant_value_for_broken_optimization.
24617 (build_array_ref): Do not fold result.
24618 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
24619 result when operand is a VLA.
24620 (c_expr_sizeof_type): Update call to groktypename. Handle
24621 expressions included in type name. Use C_MAYBE_CONST_EXPR for
24622 result when operand names a VLA type.
24623 (build_function_call): Update call to build_compound_literal.
24624 Only fold result for calls to __builtin_* functions. Strip
24625 NOP_EXPR from INTEGER_CST returned from such functions. Fold
24626 the function designator.
24627 (convert_arguments): Fold arguments. Update call to
24628 convert_for_assignment.
24629 (build_unary_op): Handle increment and decrement of
24630 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
24631 decrement earlier. Fold operand of increment and decrement.
24632 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
24633 built for integer operand. Wrap returns that are INTEGER_CSTs
24634 without being integer constant expressions or that have integer
24635 constant operands without being INTEGER_CSTs.
24636 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24637 (build_conditional_expr): Add operand ifexp_bcp. Track whether
24638 result is an integer constant expression or can be used in
24639 unevaluated parts of one and avoid folding and wrap as
24640 appropriate. Fold operands before possibly doing -Wsign-compare
24641 warnings.
24642 (build_compound_expr): Wrap result for C99 if operands can be used
24643 in integer constant expressions.
24644 (build_c_cast): Update call to digest_init. Do not ignore
24645 overflow from casting floating-point constants to integers. Wrap
24646 results that could be confused with integer constant expressions,
24647 null pointer constants or floating-point constants.
24648 (c_cast_expr): Update call to groktypename. Handle expressions
24649 included in type name.
24650 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
24651 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
24652 Update calls to convert_for_assignment.
24653 (convert_for_assignment): Take new parameter
24654 null_pointer_constant. Do not strip nops or call
24655 decl_constant_value_for_broken_optimization. Set
24656 in_late_binary_op for conversions to boolean.
24657 (store_init_value): Update call to digest_init.
24658 (digest_init): Take new parameter null_pointer_constant. Do not
24659 call decl_constant_value_for_broken_optimization. pedwarn for
24660 initializers not constant expressions. Update calls to
24661 convert_for_assignment.
24662 (constructor_nonconst): New.
24663 (struct constructor_stack): Add nonconst element.
24664 (really_start_incremental_init, push_init_level, pop_init_level):
24665 Handle constructor_nonconst and nonconst element.
24666 (set_init_index): Call constant_expression_warning for array
24667 designators.
24668 (output_init_element): Fold value. Set constructor_nonconst as
24669 applicable. pedwarn for initializers not constant expressions.
24670 Update call to digest_init. Call constant_expression_warning
24671 where constant initializers are required.
24672 (process_init_element): Use c_save_expr.
24673 (c_finish_goto_ptr): Fold expression.
24674 (c_finish_return): Fold return value. Update call to
24675 convert_for_assignment.
24676 (c_start_case): Fold switch expression.
24677 (c_process_expr_stmt): Fold expression.
24678 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
24679 ensure statement expression is not evaluated in constant expression.
24680 (build_binary_op): Track whether results are integer constant
24681 expressions or may occur in such, disable folding and wrap results
24682 as applicable. Fold operands for -Wsign-compare warnings unless
24683 in_late_binary_op.
24684 (c_objc_common_truthvalue_conversion): Handle results folded to
24685 integer constants that are not integer constant expressions.
24686 * doc/extend.texi: Document when typeof operands are evaluated,
24687 that condition of __builtin_choose_expr is an integer constant
24688 expression, and more about use of __builtin_constant_p in
24689 initializers.
24690
24691 2009-03-29 Richard Guenther <rguenther@suse.de>
24692
24693 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
24694 propagate addresses of array references.
24695
24696 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
24697
24698 * regmove.c (perhaps_ends_bb_p): Remove.
24699 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
24700 from INSN and check that the main loop stays within that basic block.
24701 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
24702 (regmove_forward_pass): Split out from regmove_optimize. Use
24703 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
24704 (regmove_backward_pass): Split out from regmove_optimize. Use
24705 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
24706 (regmove_optimize): Simplify.
24707
24708 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
24709
24710 PR target/39545
24711 * config/i386/i386.c (classify_argument): Ignore flexible array
24712 member in struct and warn ABI change.
24713
24714 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
24715
24716 * config/i386/i386-protos.h (ix86_agi_dependent): New.
24717
24718 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
24719 (ix86_adjust_cost): Updated.
24720
24721 2009-03-29 Jan Hubicka <jh@suse.cz>
24722
24723 PR middle-end/28850
24724 * tree-pass.h (pass_cleanup_eh): New function.
24725 (remove_unreachable_regions): Break code handling RTL
24726 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
24727 that can not be reached by runtime.
24728 (can_be_reached_by_runtime): New function.
24729 (label_to_region_map): New function.
24730 (num_eh_regions): New function.
24731 (rtl_remove_unreachable_regions): New function.
24732 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
24733 (remove_eh_region): New function.
24734 * except.h: Include sbitmap and vecprim.
24735 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
24736 num_eh_regions): Declare.
24737 * passes.c (init_optimization_passes): Schedule cleanup_eh.
24738 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
24739 * tree-eh.c (tree_remove_unreachable_handlers): New function.
24740 (tree_empty_eh_handler_p): New function.
24741 (cleanup_empty_eh): New function.
24742 (cleanup_eh): New function.
24743 (pass_cleanup_eh): New function.
24744
24745 2009-03-29 Jan Hubicka <jh@suse.cz>
24746
24747 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
24748 for removed regions.
24749
24750 2009-03-29 Jan Hubicka <jh@suse.cz>
24751
24752 * except.c (dump_eh_tree): Dump all datastructures.
24753
24754 2009-03-29 Jan Hubicka <jh@suse.cz>
24755
24756 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
24757 (duplicate_eh_regions_1): Likewise.
24758 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
24759 vector; call EH verification.
24760 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24761 Be ready for region being removed.
24762
24763 2009-03-29 Jan Hubicka <jh@suse.cz>
24764
24765 * bitmap.c (bitmap_last_set_bit): New function.
24766 * bitmap.h (bitmap_last_set_bit): Declare.
24767
24768 2009-03-29 David Ayers <ayers@fsfe.org>
24769
24770 PR objc/27377
24771 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
24772 by calling objc_compare_types and surpress warnings about
24773 incompatible C pointers that are compatible ObjC pointers.
24774
24775 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
24776
24777 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
24778 call initialize_inline_failed.
24779 (initialize_inline_failed): Move it from here ...
24780 * cgraph.c (initialize_inline_failed): ... to here.
24781 (cgraph_create_edge): Call initialize_inline_failed rather than
24782 setting inline_failed directly.
24783
24784 2009-03-29 Ben Elliston <bje@au.ibm.com>
24785
24786 PR target/32542
24787 * sysv4.opt (msdata): Improve comment.
24788 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
24789 * sysv4.h (SVR4_ASM_SPEC): Likewise.
24790
24791 2009-03-29 Ben Elliston <bje@au.ibm.com>
24792
24793 PR target/30451
24794 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
24795 load and store attributes.
24796
24797 2009-03-29 Ben Elliston <bje@au.ibm.com>
24798
24799 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
24800 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
24801 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
24802 * doc/extend.texi (X86 Built-in Functions): Add index entries for
24803 __builtin_infq and __builtin_huge_valq.
24804
24805 2009-03-28 Anatoly Sokolov <aesok@post.ru>
24806
24807 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
24808 atmega8m1 devices.
24809 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24810 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
24811
24812 2009-03-28 Xinliang David Li <davidxl@google.com>
24813
24814 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
24815 (do_dbg_cnt): New function.
24816
24817 2009-03-28 Jan Hubicka <jh@suse.cz>
24818
24819 Merge from pretty-ipa:
24820
24821 2009-03-27 Jan Hubicka <jh@suse.cz>
24822
24823 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24824 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
24825 * passes.c (function_called_by_processed_nodes_p): New.
24826 * ipa-pure-const.c (check_call): Fix handling of operands.
24827 (analyze_function): Dump debug output for skipped bodies.
24828 (local_pure_const): Use function_called_by_processed_nodes_p.
24829 * dwarf2out.c (reference_to_unused): Use output.
24830 * passes.c (do_per_function_toporder): Likewise.
24831
24832 2008-11-12 Jan Hubicka <jh@suse.cz>
24833
24834 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
24835 * ipa-pure-const.c (funct_state_d): Add can throw field; make
24836 state_set_in_source enum
24837 (check_decl): Ignore memory tags; do not set fake looping flags;
24838 dump diagnostics.
24839 (check_operand, check_tree, check_rhs_var, check_lhs_var,
24840 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
24841 (check_call, analyze_function): Rewrite.
24842 (check_stmt): New.
24843 (add_new_function): Update call of analyze_function.
24844 (generate_summary): Add call of analyze_function.
24845 (propagate): Propagate can_throw; handle state_set_in_source correctly.
24846 (local_pure_const): New function.
24847 (pass_local_pure_const): New pass.
24848 * ipa-inline.c (inline_transform): Set after_inlining.
24849 * tree-eh.c (stmt_can_throw_external): New.
24850 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
24851 work with aliasing built.
24852 * tree-flow.h (stmt_can_throw_external): New.
24853 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
24854 and local pure/const pass in early and late optimization queue.
24855
24856 2009-03-28 Martin Jambor <mjambor@suse.cz>
24857
24858 * fold-const.c (get_pointer_modulus_and_residue): New parameter
24859 allow_func_align.
24860 (fold_binary): Allow function decl aligment consideration is the
24861 second argument is integer constant one.
24862 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
24863 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
24864 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
24865
24866 2009-03-28 Jan Hubicka <jh@suse.cz>
24867
24868 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
24869 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
24870 * function.h (rtl_data): Add nothrow flag.
24871 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
24872 set DECL_NOTHROW for AVAILABLE functions.
24873
24874 2009-03-28 Jakub Jelinek <jakub@redhat.com>
24875
24876 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
24877 following vector keyword has expansion starting with pixel or bool
24878 keyword, expand vector to __vector and pixel or bool to __pixel or
24879 __bool.
24880
24881 PR c++/39554
24882 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
24883 warn_if_disallowed_function_p): Removed.
24884 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
24885 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
24886 warning_if_disallowed_function_p.
24887 * flags.h (warn_if_disallowed_function_p,
24888 warn_disallowed_functions): Removed.
24889 * common.opt (Wdisallowed-function-list=): Removed.
24890 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
24891
24892 2009-03-28 Richard Guenther <rguenther@suse.de>
24893
24894 PR tree-optimization/38723
24895 * tree-ssa-pre.c (compute_avail): Add all default definitions to
24896 the entry block.
24897
24898 2009-03-28 Jan Hubicka <jh@suse.cz>
24899
24900 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
24901 test introduced by my previous patch.
24902
24903 2009-03-28 Richard Guenther <rguenther@suse.de>
24904
24905 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
24906 the PHIs value undefined.
24907
24908 2009-03-28 Jan Hubicka <jh@suse.cz>
24909
24910 * tree-pass.h (pass_fixup_cfg): New pass.
24911 * ipa-inline.c (inline_transform): Set
24912 always_inline_functions_inlined/after_inlining.
24913 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
24914 (pass_fixup_cfg): New pass.
24915 * passes.c (init_optimization_passes): Add fixup_cfg.
24916
24917 2009-03-28 Richard Guenther <rguenther@suse.de>
24918
24919 PR tree-optimization/38458
24920 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
24921 argument use the arguments copy-of value.
24922
24923 2009-03-28 Richard Guenther <rguenther@suse.de>
24924
24925 PR tree-optimization/38180
24926 * tree-ssa-ccp.c (get_default_value): Simplify.
24927 (likely_value): Likewise.
24928 (surely_varying_stmt_p): Properly handle VOP case.
24929 (ccp_initialize): Likewise.
24930 (ccp_fold): Handle propagating through *&.
24931 (fold_const_aggregate_ref): Also handle decls.
24932
24933 2009-03-28 Jan Hubicka <jh@suse.cz>
24934
24935 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24936 * cgraph.h (cgraph_node): Likewise.
24937 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
24938 (cgraph_reset_node): Use process flag.
24939 (cgraph_mark_functions_to_output): Likewise.
24940 (cgraph_expand_function): Likewise.
24941 (cgraph_expand_all_functions): Likewise.
24942 (cgraph_output_in_order): Likewise.
24943 * dwarf2out.c (reference_to_unused): Likewise.
24944 * passes.c do_per_function_toporder): Likewise.
24945
24946 2009-03-28 Jan Hubicka <jh@suse.cz>
24947
24948 Bring from lto-branch:
24949
24950 2008-09-03 Doug Kwan <dougkwan@google.com>
24951
24952 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
24953 enums instead of reason strings.
24954 * cgraph.c (cgraph_create_edge): Same.
24955 (cgraph_inline_failed_string): New function.
24956 * cgraph.h (cgraph_inline_failed_t): New enum type.
24957 (cgraph_inline_failed_string): New prototype.
24958 (struct cgraph_edge): Change type of INLINED_FAILED from constant
24959 char pointer to cgraph_inline_failed_t.
24960 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
24961 (cgraph_default_inline_p): Ditto.
24962 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
24963 to cgraph_inline_failed_t pointer.
24964 * cif-code.def: New file.
24965 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
24966 reason string.
24967 (cgraph_check_inline_limits): Change type of REASON to pointer to
24968 cgraph_inline_failed_t. Replace reason strings with enums.
24969 (cgraph_default_inline_p): Ditto.
24970 (cgraph_recursive_inlining_p): Ditto.
24971 (update_caller_keys): Change type of FAILED_REASON to
24972 cgraph_inline_failed_t.
24973 (cgraph_set_inline_failed): Change type of REASON to pointer to
24974 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
24975 convert enums to strings for text output.
24976 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
24977 to be of type cgraph_inline_failed_t. Replace reason strings with
24978 enums. Call cgraph_inline_failed_string to covert enums
24979 to strings for text output.
24980 (cgraph_decide_inlining): Replace reason strings with enums.
24981 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
24982 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
24983 for text output.
24984 * tree-inline.c (expand_call_inline): Change type of REASON
24985 to cgraph_inline_failed_t. Replace reason strings with enums.
24986 Call cgraph_inline_failed_string for text output.
24987 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
24988 (cgraph.o): Ditto.
24989
24990 2009-03-28 Jan Hubicka <jh@suse.cz>
24991
24992 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
24993 cgraph_clone_node): Remove master clone handling.
24994 (cgraph_is_master_clone, cgraph_master_clone): Remove.
24995 * cgraph.h (master_clone): Remove.
24996 (cgraph_is_master_clone, cgraph_master_clone): Remove.
24997 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
24998 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
24999
25000 2009-03-28 Jan Hubicka <jh@suse.cz>
25001
25002 * cgraph.c (cgraph_function_body_availability): Functions declared
25003 inline are always safe to assume that it is not going to be replaced.
25004
25005 2009-03-28 Richard Guenther <rguenther@suse.de>
25006
25007 PR tree-optimization/38513
25008 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25009 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25010 EXC_PTR_EXPR and FILTER_EXPR.
25011 (get_ref_from_reference_ops): Likewise.
25012
25013 2009-03-28 Richard Guenther <rguenther@suse.de>
25014
25015 PR tree-optimization/38968
25016 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25017 Use FLOOR_MOD_EXPR to compute misalignment.
25018
25019 2009-03-28 Richard Guenther <rguenther@suse.de>
25020
25021 PR tree-optimization/37795
25022 * tree.h (combine_comparisons): Declare.
25023 * fold-const.c (combine_comparisons): Export.
25024 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25025 comparisons.
25026 (ifcombine_iforif): Use combine_comparisons.
25027
25028 2009-03-28 Jan Hubicka <jh@suse.cz>
25029
25030 * tree-eh.c (inlinable_call_p): New function.
25031 (make_eh_edges): Use it.
25032 (verify_eh_edges): Use it.
25033 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25034 * except.c (reachable_next_level): Add inlinable_function argument
25035 (sjlj_find_directly_reachable_regions): Update.
25036 (add_reachable_handler): Do not set saw_any_handlers.
25037 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25038 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25039 Add new inlinable call parameter.
25040 (can_throw_internal, can_throw_external): Update.
25041 * except.h (can_throw_internal_1, can_throw_external_1,
25042 foreach_reachable_handler): Update declaration.
25043
25044 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25045
25046 * config/arm/t-arm-coff, config/h8300/coff.h,
25047 config/i386/i386-aout.h, config/i386/i386-coff.h,
25048 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25049 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25050 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25051 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25052 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25053 sys-types.h: Remove.
25054 * Makefile.in: Remove protoize and fixproto support and references
25055 in comments.
25056 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25057 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25058 Remove.
25059 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25060 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25061 unprotoize$(exeext).
25062 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25063 (.PHONY): Don't depend on proto.
25064 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25065 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25066 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25067 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25068 build/gen-protos.o, build/scan.o, xsys-protos.h,
25069 build/fix-header$(build_exeext), build/fix-header.o,
25070 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25071 stmp-install-fixproto): Remove.
25072 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25073 SYSCALLS.c or fixproto files.
25074 (install-common): Don't install protoize.
25075 (install-headers-tar, install-headers-cpio, install-headers-cp):
25076 Don't depend on $(STMP_FIXPROTO).
25077 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25078 install fixproto files or write out fixproto settings.
25079 (uninstall): Don't uninstall protoize.
25080 * config.gcc (use_fixproto): Remove.
25081 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25082 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25083 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25084 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25085 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25086 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25087 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25088 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25089 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25090 * config/t-vxworks (STMP_FIXPROTO): Remove.
25091 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25092 STMP_FIXPROTO): Remove.
25093 * config.in, configure: Regenerate.
25094 * crtstuff.c (gid_t, uid_t): Don't undefine.
25095 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25096 (arm-*-coff, arm-*-aout: Remove target entries.
25097 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25098 Remove mention of AIX 4.1.
25099 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25100 * doc/invoke.texi (Running Protoize): Remove.
25101 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25102 (Protoize Caveats): Remove.
25103 * tsystem.h: Update comments on headers assumed to exist.
25104
25105 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25106
25107 * genautomata.c: Add a new year to the copyright. Add a new
25108 reference.
25109 (struct insn_reserv_decl): Add comments for member bypass_list.
25110 (find_bypass): Remove.
25111 (insert_bypass): New.
25112 (process_decls): Use insert_bypass.
25113 (output_internal_insn_latency_func): Output all bypasses with the
25114 same input insn in one switch case.
25115
25116 * rtl.def (define_bypass): Describe bypass choice.
25117 * doc/md.texi (define_bypass): Ditto.
25118
25119 2009-03-27 Richard Guenther <rguenther@suse.de>
25120
25121 * gimplify.c (mark_addressable): Export.
25122 * tree-flow.h (mark_addressable): Declare.
25123 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25124 * tree-ssa.c (verify_phi_args): Verify that address taken
25125 variables have TREE_ADDRESSABLE set.
25126
25127 2009-03-27 Richard Guenther <rguenther@suse.de>
25128
25129 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25130 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25131 Do not mark decls TREE_ADDRESSABLE.
25132 (build_fold_addr_expr): Adjust.
25133 (fold_addr_expr): Remove.
25134 (fold_unary): Use build_fold_addr_expr.
25135 (fold_comparison): Likewise.
25136 (split_address_to_core_and_offset): Likewise.
25137 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25138 TREE_ADDRESSABLE.
25139 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25140 (gimplify_modify_expr_to_memcpy): Mark source and destination
25141 addressable.
25142 * omp-low.c (create_omp_child_function): Mark the object decl
25143 TREE_ADDRESSABLE.
25144 (lower_rec_input_clauses): Mark the var we take the address of
25145 TREE_ADDRESSABLE.
25146 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25147
25148 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25149
25150 PR middle-end/39315
25151 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25152 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25153
25154 2009-03-27 Richard Guenther <rguenther@suse.de>
25155
25156 PR tree-optimization/39120
25157 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25158 constraints.
25159 (handle_lhs_call): Process return constraints. Add escape
25160 constraints if necessary.
25161 (handle_const_call): Fill out return constraints. Make nested
25162 case more precise. Avoid consttmp if possible.
25163 (handle_pure_call): Fill out return constraints. Avoid
25164 callused if possible.
25165 (find_func_aliases): Simplify call handling.
25166
25167 2009-03-27 Richard Guenther <rguenther@suse.de>
25168
25169 PR tree-optimization/39120
25170 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25171 as a representative.
25172 (solve_graph): Do propagate CALLUSED.
25173 (handle_pure_call): Use a scalar constraint from CALLUSED for
25174 the return value.
25175 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25176 solutions.
25177
25178 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25179
25180 PR c/39323
25181 * c-common.c (handle_aligned_attribute): Properly check alignment
25182 overflow. Use (1U << i) instead of (1 << i).
25183
25184 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25185
25186 * expr.h (get_mem_align_offset): Updated.
25187
25188 * tree.h (tree_decl_common): Change align to "unsigned int" and
25189 move it before pointer_alias_set.
25190
25191 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25192 Jakub Jelinek <jakub@redhat.com>
25193
25194 PR target/38034
25195 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25196 gr_register_operand with gr_reg_or_0_operand.
25197 (cmpxchg_rel_di): Likewise.
25198 (sync_lock_test_and_set<mode>): Likewise.
25199
25200 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25201
25202 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25203 (true_regnum): Likewise.
25204
25205 * rtlanal.c (subreg_info): Moved to ...
25206 * rtl.h (subreg_info): Here. New.
25207 (subreg_get_info): New.
25208
25209 * rtlanal.c (subreg_get_info): Make it extern.
25210
25211 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25212
25213 PR target/39472
25214 * config/i386/i386.c (ix86_abi): New.
25215 (override_options): Handle -mabi=.
25216 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25217 (ix86_call_abi_override): Likewise.
25218 (init_cumulative_args): Likewise.
25219 (function_arg_advance): Likewise.
25220 (function_arg_64): Likewise.
25221 (function_arg): Likewise.
25222 (ix86_pass_by_reference): Likewise.
25223 (ix86_function_value_regno_p): Likewise.
25224 (ix86_build_builtin_va_list_abi): Likewise.
25225 (setup_incoming_varargs_64): Likewise.
25226 (is_va_list_char_pointer): Likewise.
25227 (ix86_init_machine_status): Likewise.
25228 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25229 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25230 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25231 (ix86_function_abi): Make it static and return enum calling_abi.
25232 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25233 with ix86_abi.
25234 (ix86_fn_abi_va_list): Updated.
25235
25236 * config/i386/i386.h (ix86_abi): New.
25237 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25238 (CONDITIONAL_REGISTER_USAGE): Likewise.
25239 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25240 (machine_function): Likewise.
25241
25242 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25243 with ix86_abi.
25244 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25245 (STACK_BOUNDARY): Likewise.
25246 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25247
25248 * config/i386/i386.opt (mabi=): New.
25249
25250 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25251 return enum calling_abi.
25252 (ix86_function_type_abi): Likewise.
25253 (ix86_function_abi): Removed.
25254
25255 * doc/invoke.texi: Document -mabi= option for x86.
25256
25257 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25258
25259 * builtins.c (real_dconstp): Delete.
25260 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25261
25262 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25263 Jakub Jelinek <jakub@redhat.com>
25264
25265 PR debug/37959
25266 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25267 (gen_subprogram_die): When a function is explicit, generate the
25268 DW_AT_explicit attribute.
25269 * langhooks.h (struct lang_hooks_for_decls): Add
25270 function_decl_explicit_p langhook.
25271 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25272 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25273
25274 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25275
25276 * builtins.c (fold_builtin_memory_op): Optimize memmove
25277 into memcpy if we can prove source and destination don't overlap.
25278
25279 * tree-inline.c: Include gt-tree-inline.h.
25280 (clone_fn_id_num): New variable.
25281 (clone_function_name): New function.
25282 (tree_function_versioning): Use it.
25283 * Makefile.in (GTFILES): Add tree-inline.c.
25284
25285 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25286
25287 * BASE-VER: Change to 4.5.0.
25288
25289 2009-03-27 Xinliang David Li <davidxl@google.com>
25290
25291 PR tree-optimization/39557
25292 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25293
25294 2009-03-27 Xinliang David Li <davidxl@google.com>
25295
25296 PR tree-optimization/39548
25297 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25298 candidate check.
25299
25300 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25301
25302 * c-common.c (pointer_int_sum): Use %wd on return from
25303 tree_low_cst.
25304
25305 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25306
25307 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25308 on return from tree_low_cst.
25309
25310 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25311
25312 PR c++/36799
25313 * ginclude/stdarg.h (va_copy): Define also for
25314 __GXX_EXPERIMENTAL_CXX0X__.
25315
25316 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25317
25318 PR c++/35652
25319 * builtins.h (c_strlen): Do not warn here.
25320 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25321 * c-common.c (pointer_int_sum): Take an explicit location.
25322 Warn about offsets out of bounds.
25323 * c-common.h (pointer_int_sum): Adjust declaration.
25324
25325 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25326
25327 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25328 markup glitch.
25329
25330 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25331
25332 PR c++/39554
25333 * opts.c (warn_if_disallowed_function_p): Don't assume
25334 get_callee_fndecl must return non-NULL.
25335
25336 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25337
25338 PR rtl-optimization/39522
25339 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25340 when reg_reloaded_valid is set.
25341
25342 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25343
25344 * config/spu/divv2df3.c: New file.
25345 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25346 (DPBIT_FUNCS): Filter out _div_df.
25347
25348 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25349
25350 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25351 a jump insn, count that jump in the distance to the loop start.
25352
25353 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25354
25355 PR target/39523
25356 * config/sh/sh.c (calc_live_regs): Fix condition for global
25357 registers except PIC_OFFSET_TABLE_REGNUM.
25358
25359 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25360
25361 PR/39518
25362 * doc/invoke.texi (-mconsole): New.
25363 (-mcygwin): New.
25364 (-mno-cygwin): New.
25365 (-mdll): New.
25366 (-mnop-fun-dllimport): New.
25367 (-mthread): New.
25368 (-mwin32): New.
25369 (-mwindows): New.
25370 (sub section "i386 and x86-64 Windows Options"): New.
25371
25372 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25373
25374 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25375 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25376
25377 2009-03-25 Richard Guenther <rguenther@suse.de>
25378
25379 PR middle-end/39497
25380 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25381 of -Wno-error.
25382
25383 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
25384
25385 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25386 neither of haifa/selective schedulers are working.
25387
25388 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25389
25390 * doc/invoke.texi (Debugging Options): Fix description of
25391 -fno-merge-debug-strings.
25392
25393 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
25394
25395 * config/cris/libgcc.ver: New version-script.
25396 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25397
25398 * configure.ac <GAS features, nop mnemonic>: Add pattern
25399 crisv32-*-* for "nop".
25400 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25401 * configure: Regenerate.
25402
25403 2009-03-24 Ira Rosen <irar@il.ibm.com>
25404
25405 PR tree-optimization/39529
25406 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25407 mark_sym_for_renaming for the tag copied to the new vector
25408 pointer.
25409
25410 2009-03-24 Arthur Loiret <aloiret@debian.org>
25411
25412 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25413 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25414 EXTRA_SPEC_FUNCTIONS.
25415 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25416 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25417 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25418 -march and -mtune options.
25419
25420 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
25421
25422 * config/m68k/t-rtems: Add m5329 multilib.
25423
25424 2009-03-24 Dodji Seketeli <dodji@redhat.com>
25425 Jakub Jelinek <jakub@redhat.com>
25426
25427 PR debug/39524
25428 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25429 nodes.
25430
25431 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25432
25433 PR c/39495
25434 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25435 instead of c_parser_expression_conv, if original_code isn't one of the
25436 4 allowed comparison codes, fail.
25437
25438 2009-03-23 Richard Guenther <rguenther@suse.de>
25439
25440 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25441 * tree.h (struct tree_type): Likewise.
25442 * reload.h (struct insn_chain): Likewise.
25443 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25444 * function.h (struct function): Likewise.
25445 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25446
25447 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25448
25449 PR tree-optimization/39516
25450 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25451
25452 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
25453
25454 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25455 should be set true if BITS_PER_WORD of target is bigger than 32
25456
25457 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
25458
25459 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25460 Translate -B-options to -rpath-link. Correct existing
25461 rpath-link and conditionalize on !nostdlib.
25462
25463 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25464
25465 * doc/extend.texi (Function Attributes, Variable Attributes):
25466 Fix typos.
25467 * doc/invoke.texi (Debugging Options, Optimize Options)
25468 (i386 and x86-64 Options, MCore Options): Likewise.
25469
25470 2009-03-20 Jakub Jelinek <jakub@redhat.com>
25471
25472 PR debug/37890
25473 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25474 it for block local namespace aliases.
25475 (gen_decl_die): Pass context_die to gen_namespace_die.
25476
25477 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25478
25479 PR c/39495
25480 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25481 minimum or maximum value.
25482
25483 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
25484
25485 * reginfo.c (globalize_reg): Recompute derived reg sets.
25486
25487 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
25488
25489 PR target/39063
25490 * libgcc2.c (mprotect): Do not use signed arguments for
25491 VirtualProtect, use DWORD arguments. Also fix the 'may
25492 be used uninitialized' warning for the np variable.
25493
25494 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25495
25496 PR target/39496
25497 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25498 functions using regparm calling conventions when not optimizing.
25499 (ix86_function_sseregparm): Similarly for sseregparm calling
25500 conventions.
25501
25502 2009-03-19 Li Feng <nemokingdom@gmail.com>
25503
25504 PR middle-end/39500
25505 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25506 dependence if the first conflict is after niter iterations.
25507
25508 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
25509
25510 PR middle-end/38609
25511 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25512 functions with dynamic stack-pointer adjustments.
25513
25514 2009-03-19 Ben Elliston <bje@au.ibm.com>
25515
25516 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25517 option; change to -msdata=data.
25518
25519 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25520
25521 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25522 and -fopenmp.
25523
25524 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
25525
25526 PR target/35180
25527 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25528
25529 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
25530
25531 * doc/invoke.texi (Code Gen Options): Expand discussion of
25532 -fno-common.
25533
25534 2009-03-18 Jakub Jelinek <jakub@redhat.com>
25535
25536 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25537 * matrix-reorg.c (struct matrix_info): Likewise.
25538 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25539 * rtl.h (struct mem_attrs): Likewise.
25540 * df.h (struct df): Likewise.
25541 * tree-data-ref.h (struct data_dependence_relation): Likewise.
25542 * ira-int.h (struct ira_allocno): Likewise.
25543 * df-scan.c (struct df_collection_rec): Likewise.
25544 * ira.c (struct equivalence): Likewise.
25545 * function.c (struct temp_slot): Likewise.
25546 * cfgloop.h (struct loop): Likewise.
25547
25548 PR debug/39485
25549 * function.c (use_register_for_decl): When not optimizing, disregard
25550 register keyword for variables with types containing methods.
25551
25552 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
25553
25554 PR middle-end/39447
25555 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25556 (is_simple_operand): Call contains_component_ref_p before calling data
25557 reference analysis that would fail on COMPONENT_REFs.
25558
25559 * tree-vrp.c (search_for_addr_array): Fix formatting.
25560
25561 2009-03-18 Richard Guenther <rguenther@suse.de>
25562
25563 * tree-vect-transform.c (vect_loop_versioning): Fold the
25564 generated comparisons.
25565 * tree-vectorizer.c (set_prologue_iterations): Likewise.
25566 (slpeel_tree_peel_loop_to_edge): Likewise.
25567
25568 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25569
25570 PR middle-end/37805
25571 * opts.c (print_specific_help): In addition to `undocumented',
25572 accept `separate' and `joined' flags if passed alone. Describe
25573 output by the first matched one of those.
25574 (common_handle_option): Skip over empty strings.
25575 * gcc.c (display_help): Fix help string for `--help='.
25576 * doc/invoke.texi (Option Summary, Overall Options): With
25577 `--help=', classes and qualifiers can both be repeated, but
25578 only the latter can be negated. One should not pass only
25579 negated qualifiers. Fix markup and examples.
25580
25581 Revert
25582 2008-10-14 Jakub Jelinek <jakub@redhat.com>
25583 PR middle-end/37805
25584 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25585 and -fhelp=separate.
25586
25587 2009-03-17 Jing Yu <jingyu@google.com>
25588
25589 PR middle-end/39378
25590 * function.h (struct rtl_data): Move is_thunk from here...
25591 (struct function): ...to here.
25592 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25593 * varasm.c (assemble_start_function): Change is_thunk from crtl to
25594 cfun.
25595 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25596 cfun.
25597 (alpha_does_function_need_gp, alpha_start_function): Likewise.
25598 (alpha_output_function_end_prologue): Likewise.
25599 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25600 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25601 (rs6000_output_function_epilogue): Likewise.
25602 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25603
25604 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
25605
25606 PR target/39482
25607 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25608 from different units in a single alternative.
25609 (*truncdfsf_i387): Ditto.
25610 (*truncxfsf2_mixed): Ditto.
25611 (*truncxfdf2_mixed): Ditto.
25612
25613 2009-03-17 Jakub Jelinek <jakub@redhat.com>
25614
25615 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25616 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25617
25618 PR debug/39474
25619 * tree-ssa-live.c (remove_unused_locals): Don't remove local
25620 unused non-artificial variables when not optimizing.
25621
25622 PR debug/39471
25623 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25624 DW_TAG_imported_module even if decl is IMPORTED_DECL with
25625 NAMESPACE_DECL in its DECL_INITIAL.
25626
25627 PR middle-end/39443
25628 * optabs.c (set_user_assembler_libfunc): New function.
25629 * expr.h (set_user_assembler_libfunc): New prototype.
25630 * c-common.c: Include libfuncs.h.
25631 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25632 for memcmp, memset, memcpy, memmove and abort.
25633 * Makefile.in (c-common.o): Depend on libfuncs.h.
25634
25635 PR debug/39412
25636 * dwarf2out.c (gen_inlined_enumeration_type_die,
25637 gen_inlined_structure_type_die, gen_inlined_union_type_die,
25638 gen_tagged_type_instantiation_die): Removed.
25639 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25640 do nothing.
25641
25642 2009-03-17 Janis Johnson <janis187@us.ibm.com>
25643
25644 PR testsuite/38526
25645 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25646 its use.
25647 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25648 (check-parallel-%): Ditto.
25649 (check-consistency): Ditto.
25650
25651 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
25652
25653 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25654 local variable rhs by NULL_TREE.
25655
25656 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 PR target/39477
25659 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25660
25661 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
25662
25663 PR target/39476
25664 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25665
25666 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
25667
25668 PR target/39473
25669 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
25670 for ms->sysv ABI calls only in 64bit mode.
25671
25672 * config/i386/i386.md (untyped_call): Support 32bit.
25673
25674 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
25675
25676 * doc/extend.texi: Replace x86_65 with x86_64.
25677
25678 2009-03-16 Jakub Jelinek <jakub@redhat.com>
25679
25680 PR tree-optimization/39455
25681 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
25682 mismatches for POINTER_TYPE_P (type).
25683 (number_of_iterations_le): Likewise.
25684
25685 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
25686
25687 * config/picochip/picochip.c: Removed profiling support.
25688 * config/picochip/picochip.md: Removed profiling instruction.
25689 * config/picochip/picochip.h: Removed profiling builtin.
25690
25691 2009-03-16 Joseph Myers <joseph@codesourcery.com>
25692
25693 * doc/install.texi (--with-host-libstdcxx): Document.
25694
25695 2009-03-14 Anatoly Sokolov <aesok@post.ru>
25696
25697 PR target/34299
25698 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
25699 generate a warning if the function name does not begin with
25700 "__vector" and the function has either the 'signal' or 'interrupt'
25701 attribute, from here to ...
25702 (avr_declare_function_name): ...here. New function.
25703 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
25704 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
25705
25706 2009-03-14 Jakub Jelinek <jakub@redhat.com>
25707
25708 PR bootstrap/39454
25709 * cse.c (fold_rtx): Don't modify original const_arg1 when
25710 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
25711 separate variable instead.
25712 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
25713 from out of range shift counts.
25714 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
25715
25716 2009-03-13 Catherine Moore <clm@codesourcery.com>
25717
25718 * config/i386/x-mingw32 (host-mingw32.o): Replace
25719 diagnostic.h with $(DIAGNOSTIC_H).
25720
25721 2009-03-12 Jakub Jelinek <jakub@redhat.com>
25722
25723 PR target/39431
25724 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
25725 predicate.
25726 * config/i386/sync.md (sync_compare_and_swap<mode>,
25727 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
25728 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
25729 into a register.
25730 (sync_double_compare_and_swapdi_pic,
25731 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
25732 cmpxchg8b_pic_memory_operand instead of just memory_operand.
25733
25734 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
25735
25736 PR target/39445
25737 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
25738
25739 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
25740
25741 PR target/39327
25742 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25743 (avx_addsubv4df3): Likewise.
25744 (*avx_addsubv4sf3): Likewise.
25745 (sse3_addsubv4sf3): Likewise.
25746
25747 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
25748
25749 PR target/38824
25750 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
25751
25752 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
25753
25754 PR debug/39432
25755 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
25756 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25757 registers for allocnos created from user-defined variables.
25758
25759 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25760
25761 PR target/39181
25762 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
25763 of non-integer mode as well.
25764
25765 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
25766
25767 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
25768 for functions for which the parameter types are unknown.
25769
25770 2009-03-11 Jakub Jelinek <jakub@redhat.com>
25771
25772 PR target/39137
25773 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
25774 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
25775 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
25776 * config/i386/i386.c (ix86_local_alignment): For
25777 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
25778 long long variables on the stack to avoid dynamic realignment.
25779 Allow the first argument to be a decl rather than type.
25780 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
25781
25782 2009-03-11 Nick Clifton <nickc@redhat.com>
25783
25784 PR target/5362
25785 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
25786 options.
25787 Add description to mno-lsim option.
25788 * config/mcore/mcore.h: Remove comment about deprecated m4align
25789 option.
25790 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
25791 * doc/invoke.texi: Add description of mno-lsim and
25792 mstack-increment options.
25793
25794 * config/fr30/fr30.opt: Document the -mno-lsim option.
25795 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
25796 and -mno-lsim options.
25797
25798 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25799
25800 * fold-const.c (fold_comparison): Only call fold_inf_compare
25801 if the mode supports infinities.
25802
25803 2009-03-11 Jason Merrill <jason@redhat.com>
25804
25805 PR debug/39086
25806 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
25807 end already did. Notice GIMPLE_CALL modifications of the result.
25808 Don't copy debug information from an ignored decl or a decl from
25809 another function.
25810
25811 2009-03-10 Richard Guenther <rguenther@suse.de>
25812 Nathan Froyd <froydnj@codesourcery.com>
25813
25814 PR middle-end/37850
25815 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
25816 (__divMODE3): Likewise.
25817
25818 2009-03-09 Jakub Jelinek <jakub@redhat.com>
25819
25820 PR tree-optimization/39394
25821 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
25822 DECL_SIZE_UNIT of variable length FIELD_DECLs.
25823
25824 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25825
25826 * recog.c (verfiy_changes): Disallow renaming of hard regs in
25827 inline asms for register asm ("") declarations.
25828
25829 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
25830
25831 * fold-const.c (fold_unary): Fix comment.
25832
25833 2009-03-07 Jan Hubicka <jh@suse.cz>
25834
25835 PR target/39361
25836 * tree-inline.c (setup_one_parameter): Do replacement of const
25837 argument by constant in SSA form.
25838
25839 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25840
25841 PR middle-end/38028
25842 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
25843 determine alignment passed to assign_stack_local.
25844 (assign_parms_unsplit_complex): Likewise.
25845 * except.c (sjlj_build_landing_pads): Likewise.
25846
25847 2009-03-06 Jakub Jelinek <jakub@redhat.com>
25848
25849 PR middle-end/39360
25850 * tree-flow.h (add_referenced_var): Return bool instead of void.
25851 * tree-dfa.c (add_referenced_var): Return result of
25852 referenced_var_check_and_insert call.
25853 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
25854 of referenced_var_check_and_insert.
25855
25856 PR debug/39372
25857 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
25858 (gen_variable_die): Emit DW_AT_location on abstract static variable's
25859 DIE, don't emit it if abstract origin already has it.
25860 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
25861 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
25862
25863 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25864
25865 * genpreds.c (needs_variable): Fix parentheses at variable name
25866 detection.
25867 (write_tm_constrs_h): Indent generated code.
25868
25869 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25870
25871 * doc/extend.texi (Function Attributes): Add documentation
25872 for isr attributes.
25873
25874 2009-03-06 Jakub Jelinek <jakub@redhat.com>
25875
25876 PR debug/39387
25877 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
25878 take locus from its DECL_SOURCE_LOCATION instead of input_location.
25879
25880 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
25881
25882 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
25883 the loop as bad.
25884
25885 2009-03-05 Jakub Jelinek <jakub@redhat.com>
25886
25887 PR debug/39379
25888 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
25889 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
25890
25891 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
25892
25893 * config/i386/i386.md (R8_REG, R9_REG): New constants.
25894 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
25895 constants instead of magic numbers.
25896 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
25897 (QI_REG_P): Ditto.
25898 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
25899 (x86_64_ms_abi_int_parameter_registers): Ditto.
25900 (x86_64_int_return_registers): Ditto.
25901 (ix86_maybe_switch_abi): Ditto.
25902 (ix86_expand_call): Ditto for clobbered_registers array.
25903 (ix86_hard_regno_mode_ok): Ditto.
25904 (x86_extended_QIreg_mentioned_p): Ditto.
25905
25906 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
25907
25908 PR tree-optimization/39349
25909 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
25910
25911 * combine.c (gen_lowpart_for_combine): Use omode when generating
25912 clobber.
25913
25914 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
25915
25916 PR rtl-optimization/39235
25917 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
25918
25919 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
25920
25921 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
25922
25923 2009-03-04 Richard Guenther <rguenther@suse.de>
25924
25925 PR tree-optimization/39362
25926 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
25927 that occur in abnormal PHIs should be varying.
25928
25929 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
25930
25931 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
25932 Extend comments.
25933 (simple_iv): Take loop as an argument instead of statement.
25934 * tree-scalar-evolution.h (simple_iv): Declaration changed.
25935 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
25936 to simple_iv.
25937 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25938 Ditto.
25939 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
25940 * matrix-reorg.c (analyze_transpose): Ditto.
25941 * tree-data-ref.c (dr_analyze_innermost): Ditto.
25942 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
25943 * tree-predcom.c (ref_at_iteration): Ditto.
25944 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
25945
25946 2009-03-04 Richard Guenther <rguenther@suse.de>
25947
25948 PR tree-optimization/39358
25949 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
25950 escaped_id and callused_id.
25951 (solve_graph): Likewise.
25952
25953 2009-03-04 Richard Guenther <rguenther@suse.de>
25954
25955 PR tree-optimization/39339
25956 * tree-sra.c (try_instantiate_multiple_fields): Make it
25957 no longer ICE on the above.
25958
25959 2009-03-03 Joseph Myers <joseph@codesourcery.com>
25960
25961 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
25962 that fits within Pmode.
25963
25964 2009-03-03 Steve Ellcey <sje@cup.hp.com>
25965
25966 PR middle-end/10109
25967 * tm.texi (LIBCALL_VALUE): Update description.
25968
25969 2009-03-03 Steve Ellcey <sje@cup.hp.com>
25970
25971 PR middle-end/34443
25972 * doc/extend.texi (section): Update description.
25973
25974 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
25975
25976 PR middle-end/39345
25977 * tree-inline.c (remapped_type): New.
25978 (can_be_nonlocal): Call remapped_type instead of remap_type.
25979
25980 2009-03-03 Jakub Jelinek <jakub@redhat.com>
25981
25982 PR fortran/39354
25983 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
25984 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
25985
25986 2009-03-03 Richard Guenther <rguenther@suse.de>
25987
25988 PR middle-end/39272
25989 * tree.c (tree_nonartificial_location): New function.
25990 * tree.h (tree_nonartificial_location): Declare.
25991 * builtins.c (expand_builtin_memory_chk): Provide location
25992 of the call location for artificial function pieces.
25993 (maybe_emit_chk_warning): Likewise.
25994 (maybe_emit_sprintf_chk_warning): Likewise.
25995 (maybe_emit_free_warning): Likewise.
25996 * expr.c (expand_expr_real_1): Likewise.
25997
25998 2009-03-03 Jakub Jelinek <jakub@redhat.com>
25999
26000 PR tree-optimization/39343
26001 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26002 COMPONENT_REF t has ARRAY_TYPE.
26003
26004 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26005
26006 PR middle-end/39335
26007 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26008 when the type precision of the induction variable should be
26009 larger than the type precision of nit.
26010 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26011 * graphite.c (graphite_loop_normal_form): Same.
26012 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26013
26014 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26015
26016 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26017 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26018 numbers to describe clobbered registers.
26019 (*call_value_0_rex64_ms_sysv): Ditto.
26020 * config/i386/mmx.md (mmx_emms): Ditto.
26021 (mmx_femms): Ditto.
26022
26023 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26024
26025 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26026 of ABI_64.
26027
26028 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26029
26030 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26031 (spu_section_type_flags): New function.
26032
26033 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26034
26035 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26036 reg_class_contents of FLOAT_REGS into a temporary.
26037
26038 2009-03-02 Richard Guenther <rguenther@suse.de>
26039 Ira Rosen <irar@il.ibm.com>
26040
26041 PR tree-optimization/39318
26042 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26043 information to the vectorized statement.
26044
26045 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26046
26047 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26048 variable. Use defined names instead of magic constants for REX SSE
26049 registers.
26050
26051 2009-03-01 Richard Guenther <rguenther@suse.de>
26052
26053 PR tree-optimization/39331
26054 * omp-low.c (lower_send_shared_vars): Do not receive new
26055 values for the reference of DECL_BY_REFERENCE parms or results.
26056
26057 2009-03-01 Jan Hubicka <jh@suse.cz>
26058
26059 PR debug/39267
26060 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26061 BLOCK_NONLOCALIZED_VAR): New macros.
26062 (tree_block): Add nonlocalized_vars.
26063 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26064 gen_decl_die): Add origin argument. Allow generation of die with
26065 origin at hand only.
26066 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26067 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26068 of gen_*.
26069 (gen_block_die): Fix checking for unused blocks.
26070 (process_scope_var): Break out from .... ; work with origins only.
26071 (decls_for_scope) ... here; process nonlocalized list.
26072 (dwarf2out_ignore_block): Look for nonlocalized vars.
26073 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26074 vars.
26075 (dump_scope_block): Dump them.
26076 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26077 (remap_block): Likewise.
26078 (can_be_nonlocal): New predicate.
26079 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26080
26081 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26082
26083 * configure: Regenerate.
26084
26085 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26086
26087 * optc-gen.awk: No need to duplicate option flags twice.
26088 Reuse help texts for duplicate options which do not have any.
26089
26090 * gcc.c (display_help): Document --version.
26091
26092 * gcc.c (main): If print_help_list and verbose_flag, ensure
26093 driver output comes before subprocess output.
26094
26095 * optc-gen.awk: Assign all remaining fields to help string,
26096 space-separated, for multi-line help in *.opt.
26097
26098 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26099 -Wno-pedantic-ms-format is for MinGW targets only.
26100
26101 * doc/options.texi (Option file format): Fix bad indentation,
26102 restoring dropped sentence.
26103
26104 2009-02-28 Jan Hubicka <jh@suse.cz>
26105
26106 * tree-inline.c (tree_function_versioning): Output debug info.
26107
26108 2009-02-28 Jan Hubicka <jh@suse.cz>
26109
26110 PR debug/39267
26111 * tree-inline.c (setup_one_parameter): Do not copy propagate
26112 arguments when not optimizing.
26113
26114 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26115
26116 PR target/39327
26117 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26118 (avx_addsubv4df3): Likewise.
26119 (*avx_addsubv4sf3): Likewise.
26120 (sse3_addsubv4sf3): Likewise.
26121 (*avx_addsubv2df3): Likewise.
26122 (sse3_addsubv2df3): Likewise.
26123 (avx_unpckhps256): Correct item selectors.
26124 (avx_unpcklps256): Likewise.
26125 (avx_unpckhpd256): Likewise.
26126 (avx_unpcklpd256): Likewise.
26127
26128 2009-02-28 Jan Hubicka <jh@suse.cz>
26129
26130 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26131 static vars.
26132 (copy_arguments_for_versioning): If var is declared don't declare it.
26133 (tree_function_versioning): First setup substitutions and then copy
26134 args.
26135
26136 2009-02-27 Jan Hubicka <jh@suse.cz>
26137
26138 PR debug/39267
26139 * cgraph.h (varpool_output_debug_info): Remove.
26140 * cgraphunit.c (varpool_output_debug_info): Remove.
26141 * dwarf2out.c (deferred_locations_struct): New struct
26142 (deferred_locations): New type.
26143 (deferred_locations_list): New static var.
26144 (deffer_location): New function.
26145 (gen_variable_die): Use it.
26146 (decls_for_scope): Output info on local static vars.
26147 (dwarf2out_finish): Process deferred locations.
26148 * varpool.c (varpool_output_debug_info): Remove.
26149
26150 2009-02-27 Jan Hubicka <jh@suse.cz>
26151
26152 PR debug/39267
26153 * tree.h (TREE_PROTECTED): Fix comment.
26154 (BLOCK_HANDLER_BLOCK): Remove.
26155 (struct tree_block): Remove handler_block add body_block.
26156 (inlined_function_outer_scope_p): New.
26157 (is_body_block): Remove.
26158 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26159 * dwarf2out.c (is_inlined_entry_point): Remove.
26160 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26161 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26162 code.
26163 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26164 * gimplify.c (gimplify_expr): Gimplify body blocks.
26165 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26166 block with multiple subblocks.
26167 (dump_scope_block): Prettier output; dump more flags and info.
26168 (dump_scope_blocks): New.
26169 (remove_unused_locals): Use dump_scope_blocks.
26170 * tree-flow.h (dump_scope_blocks): Declare.
26171 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26172 * stmt.c (is_body_block): Remove.
26173 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26174 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26175
26176 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26177
26178 PR middle-end/39308
26179 * graphite.c (graphite_loop_normal_form): Do not call
26180 number_of_iterations_exit from a gcc_assert.
26181
26182 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26183
26184 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26185 jumps if COND is NULL.
26186 (find_cond_jump): New function.
26187 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26188 * config/s390/s390.md: Remove z10_cobra attribute value.
26189
26190 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26191
26192 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26193 force_const_mem returns NULL_RTX.
26194
26195 2009-02-26 Jan Hubicka <jh@suse.cz>
26196
26197 PR debug/39267
26198 * cgraph.h (varpool_output_debug_info): Remove.
26199 * cgraphunit.c (varpool_output_debug_info): Remove.
26200 * dwarf2out.c (deferred_locations_struct): New struct
26201 (deferred_locations): New type.
26202 (deferred_locations_list): New static var.
26203 (deffer_location): New function.
26204 (gen_variable_die): Use it.
26205 (decls_for_scope): Output info on local static vars.
26206 (dwarf2out_finish): Process deferred locations.
26207 * varpool.c (varpool_output_debug_info): Remove.
26208
26209 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26210
26211 PR rtl-optimization/39241
26212 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26213 to subreg_offset_representable_p.
26214
26215 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26216
26217 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26218 execute function prototype. Get f and nregs from max_reg_num
26219 and get_insns. Remove the first backward pass as it's dead,
26220 guard the forward pass by flag_expensive_optimizations.
26221 (rest_of_handle_regmove): Delete.
26222 (pass_regmove): Replace it with regmove_optimize.
26223
26224 2009-02-25 Martin Jambor <mjambor@suse.cz>
26225
26226 PR tree-optimization/39259
26227 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26228 calls_alloca function flags.
26229 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26230 calls are detected.
26231
26232 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26233
26234 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26235 flags_set_1_rtx, flags_set_1_set): Delete.
26236 (regmove_optimize): Do not call mark_flags_life_zones.
26237
26238 2009-02-24 Julian Brown <julian@codesourcery.com>
26239
26240 PR target/35965
26241 * config/arm/arm.c (require_pic_register): Only set
26242 cfun->machine->pic_reg once per function.
26243
26244 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26245
26246 * doc/invoke.texi (Link Options): Document an easier way to pass
26247 options that take arguments to the GNU linker using -Xlinker and -Wl.
26248
26249 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26250
26251 PR target/33785
26252 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26253
26254 2009-02-24 Richard Guenther <rguenther@suse.de>
26255
26256 PR debug/39285
26257 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26258
26259 2009-02-24 Richard Guenther <rguenther@suse.de>
26260 Zdenek Dvorak <ook@ucw.cz>
26261
26262 PR tree-optimization/39233
26263 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26264 from converting them to a generic type.
26265
26266 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26267
26268 PR tree-optimization/39260
26269 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26270 contains a condition with a real type.
26271 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26272
26273 2009-02-23 Jason Merrill <jason@redhat.com>
26274
26275 PR c++/38880
26276 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26277 narrowing_initializer_constant_valid_p.
26278 (narrowing_initializer_constant_valid_p): Don't return
26279 null_pointer_node for adding a pointer to itself.
26280
26281 2009-02-23 Jan Hubicka <jh@suse.cz>
26282
26283 PR c/12245
26284 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26285 resizing.
26286
26287 2009-02-23 Jan Hubicka <jh@suse.cz>
26288
26289 PR tree-optimization/37709
26290 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26291 * tree.h (block_ultimate_origin): Declare.
26292 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26293 * tree-ssa-live.c (remove_unused_scope_block_p):
26294 Eliminate blocks containig no instructions nor live variables nor
26295 nested blocks.
26296 (dump_scope_block): New function.
26297 (remove_unused_locals): Enable removal of dead blocks by default;
26298 enable dumping at TDF_DETAILS.
26299
26300 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26301
26302 * config/i386/i386.c (classify_argument): Don't allow COImode
26303 and OImode.
26304 (function_arg_advance_32): Don't allow OImode.
26305 (function_arg_32): Likewise.
26306 (function_value_32): Likewise.
26307 (return_in_memory_32): Likewise.
26308 (function_arg_64): Remove OImode comment.
26309
26310 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26311
26312 PR target/39261
26313 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26314 ix86_expand_vector_set for V4DImode in 64bit mode only.
26315 (ix86_expand_vector_init_one_var): Likewise.
26316
26317 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26318
26319 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26320
26321 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26322
26323 PR bootstrap/39257
26324 * loop-iv.c: Revert last change.
26325 * emit-rtl.c: Likewise.
26326
26327 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26328
26329 PR target/39256
26330 * config/i386/i386.c (type_natural_mode): Remove an extra
26331 space in the warning message.
26332 (function_value_32): Handle 32-byte vector modes.
26333 (return_in_memory_32): Likewise.
26334
26335 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26336
26337 * loop-iv.c (truncate_value): New function.
26338 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26339 of lowpart_subreg.
26340 (lowpart_subreg): Move to...
26341 * emit-rtl.c: ...here.
26342
26343 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26344
26345 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26346 accidental and undocumented change at revision 140860.
26347
26348 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26349
26350 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26351 take gimple_seq * arguments.
26352 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26353 types_compatible_p langhook.
26354
26355 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26356 Joseph Myers <joseph@codesourcery.com>
26357
26358 * config/arm/arm.c (arm_builtin_va_list): New function.
26359 (arm_expand_builtin_va_start): Likewise.
26360 (arm_gimplify_va_arg_expr): Likewise.
26361 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26362 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26363 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26364 (va_list_type): New variable.
26365 (arm_mangle_type): Mangle va_list_type appropriately.
26366
26367 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26368
26369 PR middle-end/39157
26370 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26371 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26372 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26373 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26374 parameter to 1000 for -O1 by default.
26375 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26376 parameter.
26377 * loop-invariant.c: Include params.h.
26378 (move_loop_invariants): Don't call move_single_loop_invariants on
26379 very large loops.
26380
26381 2009-02-20 Jaka Mocnik <jaka@xlab.si>
26382
26383 * calls.c (emit_library_call_value_1): Use slot_offset instead of
26384 offset when calculating bounds for indexing stack_usage_map. Fixes
26385 a buffer overflow with certain target setups.
26386
26387 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26388
26389 PR target/39240
26390 * calls.c (expand_call): Clear try_tail_call if caller and callee
26391 disagree in promotion of function return value.
26392
26393 2009-02-19 Jakub Jelinek <jakub@redhat.com>
26394
26395 PR target/39175
26396 * c-common.c (c_determine_visibility): If visibility changed and
26397 DECL_RTL has been already set, call make_decl_rtl to update symbol
26398 flags.
26399
26400 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
26401
26402 PR c++/39188
26403 * varasm.c (assemble_variable): Don't check DECL_NAME when
26404 globalizing a variable.
26405
26406 2009-02-19 Joseph Myers <joseph@codesourcery.com>
26407
26408 PR c/38483
26409 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26410 expression before any __builtin_trap call.
26411 * c-typeck.c (build_function_call): Convert and check function
26412 arguments before generating a call to a trap. Evaluate the
26413 function arguments before the trap.
26414
26415 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
26416
26417 PR target/39228
26418 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26419 (UNSPEC_FXAM_MEM): New unspec.
26420 (fxam<mode>2_i387_with_temp): New insn and split pattern.
26421 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
26422 memory using fxam<mode>2_i387_with_temp to remove excess precision.
26423
26424 2009-02-19 Richard Guenther <rguenther@suse.de>
26425
26426 PR tree-optimization/39207
26427 PR tree-optimization/39074
26428 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26429 storedanything_tree): New.
26430 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
26431 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26432 (build_succ_graph): Add edges from STOREDANYTHING to all
26433 non-direct nodes.
26434 (init_base_vars): Initialize STOREDANYTHING.
26435 (compute_points_to_sets): Free substitution info after
26436 building the succ graph.
26437 (ipa_pta_execute): Likewise.
26438
26439 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26440 field.
26441 (do_ds_constraint): Do not add to special var or non-pointer
26442 field solutions.
26443 (type_could_have_pointers): Split out from ...
26444 (could_have_pointers): ... here. For arrays use the element type.
26445 (create_variable_info_for): Initialize may_have_pointers.
26446 (new_var_info): Likewise.
26447 (handle_lhs_call): Make the HEAP variable unknown-sized.
26448 (intra_create_variable_infos): Use a type with pointers for
26449 PARM_NOALIAS, make it unknown-sized.
26450
26451 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
26452
26453 PR target/39224
26454 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26455
26456 2009-02-18 Jason Merrill <jason@redhat.com>
26457
26458 PR target/39179
26459 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26460 value if DECL_EXTERNAL.
26461 * tree-sra.c (sra_walk_gimple_assign): Likewise.
26462 * target.h (gcc_target::binds_local_p): Clarify "module".
26463 * tree.h (TREE_PUBLIC): Clarify "module".
26464
26465 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
26466
26467 PR target/38891
26468 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26469 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26470
26471 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
26472
26473 PR target/39082
26474 * c.opt (Wabi): Support C and ObjC.
26475 (Wpsabi): New.
26476
26477 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26478
26479 * config/i386/i386.c (classify_argument): Warn once about the ABI
26480 change when passing union with long double.
26481
26482 * doc/invoke.texi: Update -Wabi for warning psABI changes.
26483
26484 2009-02-18 Joseph Myers <joseph@codesourcery.com>
26485
26486 PR c/35447
26487 * c-parser.c (c_parser_compound_statement): Always enter and leave
26488 a scope.
26489
26490 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26491
26492 PR target/34587
26493 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26494
26495 2009-02-18 Jakub Jelinek <jakub@redhat.com>
26496
26497 PR tree-optimization/36922
26498 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26499 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26500 Likewise.
26501
26502 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26503
26504 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26505 to 0 for EABI64.
26506
26507 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26508
26509 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26510
26511 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26512
26513 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26514 tree sharing.
26515
26516 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
26517 Richard Sandiford <rdsandiford@googlemail.com>
26518
26519 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26520 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26521 (loongson_biadd): ...this.
26522
26523 2009-02-17 Richard Guenther <rguenther@suse.de>
26524
26525 PR tree-optimization/39202
26526 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26527 a var make sure to follow existing collapses.
26528
26529 2009-02-17 Richard Guenther <rguenther@suse.de>
26530
26531 PR middle-end/39214
26532 * langhooks.c (lhd_print_error_function): Check for NULL block.
26533
26534 2009-02-17 Richard Guenther <rguenther@suse.de>
26535
26536 PR tree-optimization/39204
26537 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26538 of the PHI arg.
26539
26540 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
26541
26542 * config/soft-fp/double.h: Update from glibc CVS.
26543
26544 2009-02-17 Richard Guenther <rguenther@suse.de>
26545
26546 PR tree-optimization/39207
26547 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26548 strict-aliasing warnings for pointers pointing to NULL.
26549
26550 2009-02-16 Joseph Myers <joseph@codesourcery.com>
26551
26552 PR c/35446
26553 * c-parser.c (c_parser_braced_init): Call pop_init_level when
26554 skipping until next close brace.
26555
26556 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 PR target/37049
26559 * config/i386/i386.c (ix86_expand_push): Set memory alignment
26560 to function argument boundary.
26561
26562 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26563
26564 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26565 in the lea_add. Reload eventually constraints it properly.
26566 * config/picochip/constraints.md: Remove the target constraint
26567 "b", since it is not needed anymore.
26568
26569 2009-02-16 Jakub Jelinek <jakub@redhat.com>
26570
26571 * gthr-dce.h: Uglify function parameter and local variable names.
26572 * gthr-gnat.h: Likewise.
26573 * gthr-mipssde.h: Likewise.
26574 * gthr-nks.h: Likewise.
26575 * gthr-posix95.h: Likewise.
26576 * gthr-posix.h: Likewise.
26577 * gthr-rtems.h: Likewise.
26578 * gthr-single.h: Likewise.
26579 * gthr-solaris.h: Likewise.
26580 * gthr-tpf.h: Likewise.
26581 * gthr-vxworks.h: Likewise.
26582 * gthr-win32.h: Likewise.
26583
26584 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
26585
26586 PR target/39196
26587 * config/i386/i386.md: Restrict the new peephole2 to move
26588 between MMX/SSE registers.
26589
26590 2009-02-15 Richard Guenther <rguenther@suse.de>
26591
26592 Revert
26593 2009-02-13 Richard Guenther <rguenther@suse.de>
26594
26595 * configure.ac: Enable LFS.
26596 * configure: Re-generate.
26597 * config.in: Likewise.
26598
26599 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26600
26601 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26602 spu_srqwbyte, spu_srqwbytebc): Define.
26603 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26604 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26605 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26606 "shrqby_<mode>"): New insn-and-split patterns.
26607 * config/spu/spu.c (expand_builtin_args): Determine and return
26608 number of operands using spu_builtin_description data.
26609 (spu_expand_builtin_1): Use it.
26610
26611 2009-02-13 Steve Ellcey <sje@cup.hp.com>
26612
26613 PR target/38056
26614 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26615 TARGET_CONST_GP.
26616
26617 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26618
26619 PR target/39149
26620 * config/i386/i386.c (override_options): Correct warning
26621 messages for -malign-loops, -malign-jumps and -malign-functions.
26622
26623 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26624
26625 PR target/39152
26626 * config/i386/i386.md: Restrict the new peephole2 to move
26627 between the general purpose registers.
26628
26629 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26630
26631 PR target/39162
26632 * config/i386/i386.c (type_natural_mode): Add a new argument.
26633 Return the original mode and warn ABI change if vector size is 32byte.
26634 (function_arg_advance): Updated.
26635 (function_arg): Likewise.
26636 (ix86_function_value): Likewise.
26637 (ix86_return_in_memory): Likewise.
26638 (ix86_sol10_return_in_memory): Likewise.
26639 (ix86_gimplify_va_arg): Likewise.
26640 (function_arg_32): Don't warn ABX ABI change here.
26641 (function_arg_64): Likewise.
26642
26643 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
26644
26645 * loop-iv.c (implies_p): In the final case, test that operands 0
26646 of the two comparisons match.
26647
26648 * config/bfin/bfin.c (find_prev_insn_start): New function.
26649 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26650 (find_next_insn_start): Move.
26651
26652 2009-02-13 Richard Guenther <rguenther@suse.de>
26653
26654 * configure.ac: Enable LFS.
26655 * configure: Re-generate.
26656 * config.in: Likewise.
26657
26658 2009-02-13 Joseph Myers <joseph@codesourcery.com>
26659
26660 PR c/35444
26661 * c-parser.c (c_parser_parms_list_declarator): Discard pending
26662 sizes on syntax error after some arguments have been parsed.
26663
26664 2009-02-12 Jakub Jelinek <jakub@redhat.com>
26665
26666 * doc/invoke.texi (-fira): Remove.
26667
26668 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
26669
26670 * caller-save.c: Replace regclass.c with reginfo.c in comments.
26671 * recog.c: Likewise.
26672 * rtl.h: Likewise.
26673
26674 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
26675
26676 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
26677 (umul_ppmm): Likewise.
26678 (count_leading_zeros): Likewise.
26679 (count_trailing_zeros): Likewise.
26680 (UMUL_TIME): Likewise.
26681
26682 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
26685 soft-fp/t-softfp to tmake_file.
26686
26687 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
26688 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
26689 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
26690 IA64_BUILTIN_INFQ]: New.
26691 (ia64_init_builtins): Initialize __builtin_infq,
26692 __builtin_fabsq and __builtin_copysignq if not HPUX.
26693 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
26694 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
26695
26696 * config/ia64/lib1funcs.asm (__divtf3): Define only if
26697 SHARED is defined.
26698 (__fixtfti): Likewise.
26699 (__fixunstfti): Likewise.
26700 (__floattitf): Likewise.
26701
26702 * config/ia64/libgcc-glibc.ver: New.
26703 * config/ia64/t-fprules-softfp: Likewise.
26704 * config/ia64/sfp-machine.h: Likewise.
26705
26706 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
26707 (LIBGCC2_TF_CEXT): Likewise.
26708 (TF_SIZE): Likewise.
26709 (TARGET_INIT_LIBFUNCS): Likewise.
26710
26711 * config/ia64/t-glibc (SHLINB_MAPFILES):
26712 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
26713
26714 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
26715
26716 * config/i386/i386.c (construct_container): Rewrite processing
26717 BLKmode with X86_64_SSE_CLASS.
26718
26719 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
26720
26721 PR target/39152
26722 * config/i386/i386.md: Replace simplify_replace_rtx with
26723 replace_rtx in the new peephole2.
26724
26725 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
26726
26727 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
26728 loop unrolling do not happen at -O2.
26729
26730 2009-02-12 Michael Matz <matz@suse.de>
26731
26732 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
26733
26734 2009-02-12 Jakub Jelinek <jakub@redhat.com>
26735
26736 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
26737 for -g3.
26738
26739 2009-02-12 Ben Elliston <bje@au.ibm.com>
26740
26741 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
26742 patterns when updating the back chain. Missed in the 2009-02-10
26743 change.
26744
26745 2009-02-11 Janis Johnson <janis187@us.ibm.com>
26746
26747 * doc/extend.texi (Decimal Floating Types): Update identifier of
26748 draft TR and list of missing support.
26749
26750 2009-02-11 Jakub Jelinek <jakub@redhat.com>
26751
26752 PR middle-end/39154
26753 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
26754 bit to variable length decl's flags, add it also to its
26755 pointer replacement variable.
26756
26757 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
26758 Jakub Jelinek <jakub@redhat.com>
26759
26760 PR target/39118
26761 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
26762 (memory_blockage): New expander.
26763 (*memory_blockage): New insn pattern.
26764 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
26765 instead of general blockage at the end of function prologue when
26766 frame pointer is used to access red zone area. Do not emit blockage
26767 when profiling, it is emitted in generic code.
26768 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
26769 function epilogue when frame pointer is used to access red zone area.
26770
26771 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
26772
26773 PR target/38824
26774 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
26775 by arithmetic with memory operands.
26776 * config/i386/predicates.md (commutative_operator): New.
26777
26778 2009-02-10 Janis Johnson <janis187@us.ibm.com>
26779
26780 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
26781 bulleted lists.
26782
26783 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
26784
26785 * alias.h (record_alias_subset): Declare.
26786 * alias.c (record_alias_subset): Make global.
26787
26788 2009-02-10 Nick Clifton <nickc@redhat.com>
26789
26790 * tree-parloops.c: Change license to GPLv3.
26791 * ipa-struct-reorg.c: Change license to GPLv3.
26792 * ipa-struct-reorg.h: Change license to GPLv3.
26793
26794 2009-02-10 Steve Ellcey <sje@cup.hp.com>
26795
26796 PR c/39084
26797 * c-decl.c (start_struct): Return NULL on error.
26798
26799 2009-02-10 Jakub Jelinek <jakub@redhat.com>
26800
26801 PR middle-end/39124
26802 * cfgloopmanip.c (remove_path): Call remove_bbs after
26803 cancel_loop_tree, not before it.
26804
26805 PR target/39139
26806 * function.h (struct function): Add has_local_explicit_reg_vars bit.
26807 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
26808 VAR_DECLs were seen.
26809 * tree-ssa-live.c (remove_unused_locals): Recompute
26810 cfun->has_local_explicit_reg_vars.
26811 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
26812 copies or clearings if cfun->has_local_explicit_reg_vars.
26813
26814 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
26815
26816 PR target/39118
26817 * config/i386/i386.c (expand_prologue): Emit blockage at the end
26818 of function prologue when frame pointer is used to access
26819 red zone area.
26820
26821 2009-02-10 Richard Guenther <rguenther@suse.de>
26822
26823 PR middle-end/39127
26824 * gimplify.c (gimple_regimplify_operands): Always look if
26825 we need to create a temporary.
26826
26827 2009-02-10 Richard Guenther <rguenther@suse.de>
26828
26829 PR tree-optimization/39132
26830 * tree-loop-distribution.c (todo): New global var.
26831 (generate_memset_zero): Trigger TODO_rebuild_alias.
26832 (tree_loop_distribution): Return todo.
26833
26834 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
26835
26836 PR target/39119
26837 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
26838 (x86_64_reg_class_name): Removed.
26839 (classify_argument): Return 0 if bytes > 32. Return 0 if the
26840 first one isn't X86_64_SSE_CLASS or any other ones aren't
26841 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
26842 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
26843 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
26844 and 3 X86_64_SSEUP_CLASS.
26845 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
26846 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
26847
26848 2009-02-10 Ben Elliston <bje@au.ibm.com>
26849
26850 * config/rs6000/rs6000.md (allocate_stack): Always use an update
26851 form instruction to update the stack back chain word, even if the
26852 user has disabled the generation of update instructions.
26853 (movdi_<mode>_update_stack): New.
26854 (movsi_update_stack): Likewise.
26855 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
26856 always use an update form instruction to update the stack back
26857 chain word.
26858
26859 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
26860
26861 PR middle-end/38953
26862 * graphite.c (if_region_set_false_region): After moving a region in
26863 the false branch of a condition, remove the empty dummy basic block.
26864 (gloog): Remove wrong fix for PR38953.
26865
26866 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26867
26868 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
26869 generation due to implicit sign extension.
26870
26871 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
26872
26873 PR middle-end/38981
26874 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
26875 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
26876
26877 2009-02-09 Richard Guenther <rguenther@suse.de>
26878
26879 PR middle-end/35202
26880 * convert.c (convert_to_real): Disable (float)fn((double)x)
26881 to fnf(x) conversion if errno differences may occur and
26882 -fmath-errno is set.
26883
26884 2009-02-07 Anatoly Sokolov <aesok@post.ru>
26885
26886 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
26887 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26888 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
26889
26890 2009-02-06 Joseph Myers <joseph@codesourcery.com>
26891
26892 PR c/35434
26893 * c-common.c (handle_alias_attribute): Disallow attribute for
26894 anything not a FUNCTION_DECL or VAR_DECL.
26895
26896 2009-02-06 Janis Johnson <janis187@us.ibm.com>
26897
26898 PR c/39035
26899 * real.c (do_compare): Special-case compare of zero against
26900 decimal float value.
26901
26902 2009-02-06 Joseph Myers <joseph@codesourcery.com>
26903
26904 PR c/36432
26905 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
26906 as indicating flexible array members unless the field itself is
26907 being declarared as the incomplete array.
26908
26909 2009-02-06 Jan Hubicka <jh@suse.cz>
26910
26911 PR tree-optimization/38844
26912 * ipa-inline.c (try_inline): Stop inlining recursion when edge
26913 is already inlined.
26914
26915 2009-02-06 Richard Guenther <rguenther@suse.de>
26916
26917 PR middle-end/38977
26918 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
26919 fork because we may expand it as __gcov_fork.
26920
26921 2009-02-06 Nick Clifton <nickc@redhat.com>
26922
26923 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
26924
26925 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
26926
26927 PR tree-optimization/35659
26928 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
26929 vn_phi_eq): Shortcut if hashcode does not match.
26930 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
26931 NULL operands.
26932 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
26933 and avoid iterative_hash_expr.
26934 (FOR_EACH_VALUE_ID_IN_SET): New.
26935 (value_id_compare): Remove.
26936 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
26937 sort expressions by value id.
26938
26939 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
26940
26941 PR target/38991
26942 * config/sh/predicates.md (general_movsrc_operand): Don't check
26943 the subreg of system registers here.
26944
26945 2009-02-05 Jakub Jelinek <jakub@redhat.com>
26946
26947 PR c++/39106
26948 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
26949 on the copied decl.
26950
26951 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
26952
26953 PR rtl-optimization/39110
26954 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
26955 addresses, not aligned ones.
26956
26957 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
26958 Richard Guenther <rguenther@suse.de>
26959
26960 PR tree-optimization/39100
26961 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
26962 comment says and add edges.
26963
26964 2009-02-05 Joseph Myers <joseph@codesourcery.com>
26965
26966 PR c/35435
26967 * c-common.c (handle_tls_model_attribute): Ignore attribute for
26968 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
26969
26970 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
26971
26972 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
26973 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
26974 register_bb_in_sese, new_sese, free_sese): Moved.
26975 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
26976 outermost_loop_in_scop, build_scop_iteration_domain,
26977 expand_scalar_variables_ssa_name, get_vdef_before_scop,
26978 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
26979 Use loop_in_sese_p instead of loop_in_scop_p.
26980 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
26981 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
26982 (scopdet_basic_block_info): Fix bug in scop detection.
26983 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
26984 eq_loop_to_cloog_loop): Remove.
26985 (nb_loops_around_loop_in_scop, nb_loop
26986 ref_nb_loops): Moved here...
26987 * graphite.h (ref_nb_loops): ... from here.
26988 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
26989 (loop_domain_dim, loop_iteration_vector_dim): Remove.
26990 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
26991
26992 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
26993 Hans-Peter Nilsson <hp@axis.com>
26994
26995 PR rtl-optimization/37889
26996 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
26997 Move offset handling from PLUS to before the switch. Use new
26998 arguments when considering SYMBOL_REFs too.
26999 (rtx_addr_can_trap_p): Pass dummy offset and size.
27000 (enum may_trap_p_flags): Remove.
27001 (may_trap_p_1): Pass size from MEM_SIZE.
27002
27003 PR rtl-optimization/38921
27004 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27005 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27006 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27007 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27008
27009 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27010
27011 AVX Programming Reference (January, 2009)
27012 * config/i386/sse.md (*vpclmulqdq): New.
27013
27014 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27015
27016 PR tree-optimization/38977
27017 PR gcov-profile/38292
27018 * calls.c (special_function_p): Disregard __builtin_ prefix.
27019
27020 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27021
27022 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27023 non-indexable addresses even before reload.
27024
27025 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27026
27027 PR c/29129
27028 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27029 as having variable size. Do not give an error for unnamed
27030 parameters with [*] declarators. Give a warning for type names
27031 with [*] declarators and mark them as variable size.
27032 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27033 for sizeof applied to [*] type names.
27034
27035 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27036
27037 PR C++/36607
27038 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27039
27040 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27041
27042 * gcc.c (process_command): Update copyright notice dates.
27043 * gcov.c (print_version): Likewise.
27044 * gcov-dump.c (print_version): Likewise.
27045 * mips-tfile.c (main): Likewise.
27046 * mips-tdump.c (main): Likewise.
27047
27048 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27049
27050 PR c/35433
27051 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27052 for composite type involving a zero-length array type.
27053
27054 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27055
27056 PR target/35318
27057 * function.c (match_asm_constraints_1): Skip over
27058 initial optional % in the constraint.
27059
27060 PR inline-asm/39059
27061 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27062 supported, don't accept FIXED_CSTs.
27063 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27064 and _Sat is used without _Fract/_Accum. Set specs->type to
27065 integer_type_node for cts_fract/cts_accum if fixed point is not
27066 supported.
27067
27068 2009-02-02 Catherine Moore <clm@codesourcery.com>
27069
27070 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27071
27072 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27073
27074 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27075 (ABI_HAS_64BIT_SYMBOLS): Use it.
27076 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27077
27078 2009-02-02 Paul Brook <paul@codesourcery.com>
27079
27080 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27081
27082 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27083
27084 PR inline-asm/39058
27085 * recog.h (asm_operand_ok): Add constraints argument.
27086 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27087 recurse on matching constraint.
27088 (check_asm_operands): Pass constraints as 3rd argument to
27089 asm_operand_ok. Don't look up matching constraint here.
27090 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27091 to asm_operand_ok.
27092
27093 2009-02-02 Ben Elliston <bje@au.ibm.com>
27094
27095 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27096 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27097
27098 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27099
27100 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27101 information. Remove some obsolete information. Reorganize.
27102
27103 * config/pa/fptr.c: Revert license to GPL 2.
27104 * config/pa/milli64.S: Likewise.
27105
27106 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27107
27108 PR target/38904
27109 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27110 LIBRARY name in, instead of hard-coding it.
27111 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27112 extra target make frag to tmake_files according to EH model.
27113 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27114 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27115 frags that define makefile variable EH_MODEL appropriately.
27116 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27117 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27118 to "-sjlj" according to type of EH configured.
27119 (LIBGCC_SONAME): Concatenate it to shared library base name.
27120 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27121 to "_sjlj" according to type of EH configured.
27122 (LIBGCC_SONAME): Concatenate it to shared library base name.
27123 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27124 (SHLIB_LINK): Add missing semicolon to if-else construct.
27125 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27126 string value of "pe_dll" command-line option.
27127 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27128 (SHLIB_SONAME): Use it when overriding t-cygming default.
27129 (SHLIB_IMPLIB): Override t-cygming default.
27130 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27131 string value of "pe_dll" command-line option.
27132
27133 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27134
27135 PR target/38952
27136 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27137 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27138
27139 2009-01-31 Richard Guenther <rguenther@suse.de>
27140
27141 PR tree-optimization/38937
27142 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27143 computing the transitive closure.
27144
27145 2009-01-30 Richard Guenther <rguenther@suse.de>
27146
27147 PR tree-optimization/39041
27148 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27149 Propagate variable indices only if the types match for this stmt.
27150
27151 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27152
27153 PR target/39013
27154 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27155 inline but never defined.
27156
27157 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27158
27159 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27160 (*insv_h_di_reg_extimm): New insn.
27161 (*insv_l<mode>_reg_extimm): New insn.
27162
27163 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27164
27165 * config/picochip/picochip.c (flag_conserve_stack): set
27166 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27167 fconserve-stack. Reduce call-overhead used by inliner.
27168
27169 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27170
27171 PR/38157
27172 * common.opt (flag_conserve_stack): Initialised to zero.
27173
27174 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27175
27176 PR/39002
27177 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27178 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27179 method.
27180
27181 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27182
27183 * ira-color.c (allocno_reload_assign): Update comments.
27184 * regmove.c (regmove_optimize): Likewise.
27185
27186 * ra.h: Removed.
27187
27188 2009-01-29 Robert Millan <rmh@aybabtu.com>
27189
27190 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27191 * config/i386/kopensolaris-gnu.h: New file. Undefine
27192 `MD_UNWIND_SUPPORT'.
27193 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27194
27195 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27196
27197 PR tree-optimization/39007
27198 * tree-loop-distribution.c (generate_builtin): Use
27199 recompute_dominator to compute the immediate dominator of the
27200 basic block just after the loop.
27201
27202 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27203
27204 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27205 (ASM_OUTPUT_DWARF_PCREL): Define.
27206
27207 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27208
27209 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27210 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27211 global. Modify entries about regmove and IRA.
27212
27213 * ra-conflict.c: Remove the file.
27214
27215 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27216
27217 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27218 (pass_regclass_init): Rename to pass_reginfo_init.
27219
27220 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27221
27222 * toplev.h (flag_ira): Remove.
27223
27224 * caller-save.c (setup_save_areas): Remove flag_ira.
27225
27226 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27227
27228 * global.c: Remove the file.
27229
27230 * opts.c (decode_options): Remove flag_ira.
27231
27232 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27233
27234 * regmove.c: Modify file description.
27235 (find_use_as_address, try_auto_increment): Define them only if
27236 AUTO_INC_DEC is defined.
27237 (replacement_quality, replace_in_call_usage, fixup_match_1,
27238 stable_and_no_regs_but_for_p): Remove.
27239 (reg_set_in_bb): Make it static.
27240 (regmove_optimize): Remove flag_ira and code which worked for
27241 !flag_ira.
27242
27243 * local-alloc.c: Remove the file.
27244
27245 * common.opt (fira): Remove.
27246
27247 * ira.c: Include except.h.
27248 (eliminable_regset): Move from global.c.
27249 (mark_elimination): Ditto. Remove flag_ira.
27250 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27251 equiv_mem_modified, validate_equiv_mem_from_store,
27252 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27253 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27254 no_equiv, recorded_label_ref): Move from local-alloc.c.
27255 (update_equiv_regs): Ditto. Make it static.
27256 (print_insn_chain, print_insn_chains): Move it from global.c.
27257 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27258 (build_insn_chain): Ditto. Make it static.
27259 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27260 Rename to init_live_subregs.
27261 (gate_ira): Remove flag_ira.
27262
27263 * regclass.c: Rename reginfo.c. Change file description.
27264 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27265 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27266 (init_reg_sets_1): Remove code for evaluation of
27267 reg_class_superclasses and losing_caller_save_reg_set.
27268 (init_regs): Remove init_reg_autoinc.
27269 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27270 ok_for_base_p_nonstrict): Remove.
27271 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27272 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27273 corresponding entries.
27274 (dump_regclass, record_operand_costs, scan_one_insn,
27275 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27276 record_address_regs, auto_inc_dec_reg_p): Remove.
27277 (gt-regclass.h): Rename to gt-reginfo.h.
27278
27279 * rtl.h (dump_global_regs, retry_global_alloc,
27280 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27281
27282 * Makefile.in (RA_H): Remove.
27283 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27284 Rename regclass.o to reginfo.o.
27285 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27286 gt-reginfo.h.
27287 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27288 (GTFILES): Rename regclass.c to reginfo.c.
27289
27290 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27291 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27292
27293 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27294 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27295 Remove flag_ira.
27296 (finish_spills): Ditto. Remove code for !flag_ira.
27297
27298 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27299
27300 PR middle-end/35854
27301 * doc/invoke.texi (rtl debug options): Complete rewrite.
27302 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27303 to auto_inc_dec".
27304 * mode-switching.c (pass_mode_switching): Rename pass from
27305 "mode-sw" to "mode_sw".
27306 * except.c (pass_convert_to_eh_ranges): Rename pass from
27307 "eh-ranges" to "eh_ranges".
27308 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27309 to "subreg1".
27310
27311
27312 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27313 Alexander Monakov <amonakov@ispras.ru>
27314
27315 PR middle-end/38857
27316 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27317 register.
27318 (move_exprs_to_boundary): Change return type and pass through
27319 should_move from move_op. Relax assert. Update usage ...
27320 (schedule_expr_on_boundary): ... here. Use should_move instead of
27321 cant_move.
27322 (move_op_orig_expr_found): Indicate that insn was disconnected from
27323 stream.
27324 (code_motion_process_successors): Do not call after_merge_succs
27325 callback if original expression was not found when traversing any of
27326 the branches.
27327 (code_motion_path_driver): Change return type. Update prototype.
27328 (move_op): Update comment. Add a new parameter (should_move). Update
27329 prototype. Set *should_move based on indication provided by
27330 move_op_orig_expr_found.
27331
27332 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27333
27334 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27335 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27336 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27337 * config/rs6000/rs6000.c (rs6000_override_options): Default
27338 avoid-indexed-addresses on for Power6, off for everything else.
27339 (avoiding_indexed_address_p): New function.
27340 (rs6000_legitimize_address): Use it.
27341 (rs6000_legitimate_address): Likewise.
27342 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27343
27344 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27345
27346 PR tree-optimization/38997
27347 * tree-loop-distribution.c (generate_memset_zero): Use
27348 POINTER_PLUS_EXPR for a pointer addition.
27349
27350 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27351
27352 * config/s390/s390.md (bswap<mode>2): New pattern added.
27353
27354 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27355
27356 * config/s390/s390.md (*tls_load_31): Added type attribute.
27357
27358 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27359
27360 * config/s390/s390.md: Fix a few comments.
27361
27362 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27363
27364 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27365 (*tm<mode>_full): Fixed z10prop attribute.
27366 (*tst<mode>_extimm): Fixed z10prop attribute.
27367 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27368 (*tstqiCCT_cconly): Fixed z10prop attribute.
27369 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27370 (*movsi_larl): Fixed z10prop attribute.
27371 (*movsi_zarch): Fixed z10prop attribute.
27372 (*movsi_eas): Fixed z10prop attribute.
27373 (*movhi): Fixed z10prop attribute.
27374 (*movqi): Fixed z10prop attribute.
27375 (*movstrictqi): Fixed z10prop attribute.
27376 (*mov<mode>): Fixed z10prop attribute.
27377 (*movcc): Fixed z10prop attribute.
27378 (*sethighpartdi_64): Fixed z10prop attribute.
27379 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27380 (*negdi2_sign_cc): Fixed z10prop attribute.
27381 (*negdi2_sign): Fixed z10prop attribute.
27382 (*absdi2_sign_cc): Fixed z10prop attribute.
27383 (*absdi2_sign): Fixed z10prop attribute.
27384 (*negabsdi2_sign_cc): Fixed z10prop attribute.
27385 (*negabsdi2_sign): Fixed z10prop attribute.
27386 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27387 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27388 (doloop_si64): Fixed z10prop attribute.
27389 (doloop_si31): Fixed z10prop attribute.
27390 (doloop_long): Fixed z10prop attribute.
27391 (indirect_jump): Fixed z10prop attribute.
27392 (nop): Fixed z10prop attribute.
27393 (main_base_64): Fixed z10prop attribute.
27394 (reload_base_64): Fixed z10prop attribute.
27395
27396 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27397
27398 PR rtl-optimization/38740
27399 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27400 if !optimize.
27401 * config/mips/mips.c (mips_reorg): Likewise.
27402
27403 2009-01-28 Richard Guenther <rguenther@suse.de>
27404
27405 PR tree-optimization/38926
27406 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27407 with the correct value id to a value.
27408 (do_regular_insertion): Use the value number of edoubleprime
27409 for the value number of the expr.
27410
27411 Revert
27412 2008-08-21 Richard Guenther <rguenther@suse.de>
27413
27414 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27415 a PHI ask VN if it is already available.
27416 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27417 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27418
27419 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27420
27421 PR middle-end/38934
27422 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27423 set to varying whenever max has TREE_OVERFLOW set, similarly
27424 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27425
27426 2009-01-28 Richard Guenther <rguenther@suse.de>
27427
27428 PR middle-end/38908
27429 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27430 uninitialized aggregate uses in call arguments.
27431
27432 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
27433
27434 PR tree-optimization/38984
27435 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27436 the nothing_id variable if -fno-delete-null-pointer-checks.
27437
27438 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
27439
27440 PR target/38988
27441 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27442 (set_got_offset_rex64): Ditto.
27443
27444 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 PR target/38941
27447 * doc/extend.texi: Improve local variable with asm reg.
27448
27449 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
27450
27451 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27452 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27453 was not supplied then set warn_packed_bitfield_compat to the
27454 default value of 1.
27455 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27456 against 1.
27457
27458 2009-01-27 Richard Guenther <rguenther@suse.de>
27459
27460 PR tree-optimization/38503
27461 * cfgexpand.c (expand_gimple_basic_block): Ignore
27462 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27463 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27464 variables that cannot have TBAA applied.
27465 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27466 statements.
27467
27468 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
27469
27470 PR middle-end/38969
27471 * calls.c (initialize_argument_information): Do not wrap complex
27472 arguments in SAVE_EXPR.
27473
27474 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
27475
27476 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27477 (INSTALL_LIBGCC): Revert typo commit.
27478
27479 2009-01-26 Richard Guenther <rguenther@suse.de>
27480
27481 PR tree-optimization/38745
27482 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27483 from special handling.
27484
27485 2009-01-26 Richard Guenther <rguenther@suse.de>
27486
27487 PR tree-optimization/38745
27488 * tree-ssa.c (execute_update_addresses_taken): Do not include
27489 variables that cannot possibly be a register in not_reg_needs.
27490 Do not clear TREE_ADDRESSABLE on vars that may not become
27491 registers.
27492 * tree-ssa.c (update_alias_info_1): Include those in the set
27493 of addressable vars.
27494
27495 2009-01-26 Richard Guenther <rguenther@suse.de>
27496
27497 PR middle-end/38851
27498 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27499 * tree-ssa-dse.c: Include langhooks.h
27500 (execute_simple_dse): Remove stores with zero size.
27501
27502 2009-01-24 Jakub Jelinek <jakub@redhat.com>
27503
27504 PR c/38957
27505 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27506 as PLUS_EXPR.
27507
27508 2009-01-24 Julian Brown <julian@codesourcery.com>
27509
27510 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27511 config/arm/linux-atomic.c.
27512 * config/arm/linux-atomic.c: New.
27513
27514 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
27515
27516 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27517 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27518 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27519
27520 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
27521
27522 PR c/38938
27523 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27524 properly.
27525
27526 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
27527
27528 PR tree-optimization/38953
27529 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27530 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27531 (gloog): Split the exit of the scop when the scop exit is a loop exit.
27532 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27533 changed the CFG.
27534
27535 2009-01-24 Paul Brook <paul@codesourcery.com>
27536
27537 * config/arm/neon.md (neon_type): Move to arm.md.
27538 (neon_mov<VSTRUCT>): Add neon_type attribute.
27539 * config/arm/arm.md (neon_type): Move to here.
27540 (conds): Add "unconditioal" and use as default for NEON insns.
27541
27542 2009-01-24 Ben Elliston <bje@au.ibm.com>
27543
27544 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27545 void *' warning from -Wc++-compat.
27546 * Makefile.in (dominance.o-warn): Remove.
27547
27548 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
27549
27550 PR tree-optimization/38932
27551 * fold-const.c (fold_unary_ignore_overflow): New.
27552 * tree.h (fold_unary_ignore_overflow): Declare.
27553 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27554 * tree-ssa-sccvn.c (visit_reference_op_load,
27555 simplify_unary_expression): Likewise.
27556
27557 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
27558
27559 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27560 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
27561 regardless of their type.
27562 * c-common.c (handle_packed_attribute): Don't ignore packed on
27563 bitfields.
27564 * c.opt (Wpacked-bitfield-compat): New warning option.
27565 * stor-layout.c (place_field): Warn if offset of a field changed.
27566 * doc/extend.texi (packed): Mention the ABI change.
27567 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27568 (Warning Options): Add it to the list.
27569
27570 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
27571
27572 * c-opts.c (c_common_post_options): Fix a typo in comments.
27573
27574 2009-01-22 Steve Ellcey <sje@cup.hp.com>
27575
27576 PR middle-end/38615
27577 * gimplify.c (gimplify_init_constructor): Fix promotion of const
27578 variables to static.
27579 * doc/invoke.texi (-fmerge-all-constants): Update description.
27580
27581 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
27582
27583 PR target/38931
27584 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27585 (*movdi_1_rex64): Use type "mmx" for alternative 5.
27586
27587 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
27588
27589 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27590 a word boundary.
27591 (LOCAL_ALIGNMENT): Similarly.
27592
27593 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
27594 Joseph Myers <joseph@codesourcery.com>
27595
27596 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27597 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27598 * config/arm/arm-tune.md: Regenerate.
27599 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27600 -march=iwmmxt2.
27601
27602 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
27603
27604 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27605 version number to five.
27606
27607 2009-01-22 Dodji Seketeli <dodji@redhat.com>
27608
27609 PR c++/38930
27610 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27611 * c-common.c (set_underlying_type): Likewise.
27612 (is_typedef_decl ): Likewise
27613 * tree.h: Likewise
27614 (set_underlying_type): Likewise.
27615 (is_typedef_type): Likewise.
27616
27617 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
27618
27619 PR middle-end/38587
27620 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27621 crossing setjmps.
27622
27623 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
27624
27625 PR bootstrap/37660
27626 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
27627 (LIBGCC_SPEC): Don't define.
27628 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
27629
27630 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
27631
27632 PR rtl-optimization/38879
27633 * alias.c (base_alias_check): Unaligned access via AND address can
27634 alias all surrounding object types except those with sizes equal
27635 or wider than the size of unaligned access.
27636
27637 2009-01-21 Dodji Seketeli <dodji@redhat.com>
27638
27639 PR c++/26693
27640 * c-decl.c (clone_underlying_type): Move this ...
27641 * c-common.c (set_underlying_type): ... here.
27642 Also, make sure the function properly sets TYPE_STUB_DECL() on
27643 the newly created typedef variant type.
27644 (is_typedef_decl ): New entry point.
27645 * tree.h: Added a new member member_types_needing_access_check to
27646 struct tree_decl_non_common.
27647 (set_underlying_type): New entry point.
27648 (is_typedef_type): Likewise.
27649
27650 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
27651
27652 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27653 Check whether two instructions have memory references that
27654 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
27655 are helper functions for traversing.
27656 * alias.h (insn_alias_sets_confilict_p): New prototypes.
27657 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27658 not to draw dependency edge for instructions with non-conflicting
27659 alias sets.
27660
27661 2009-01-20 Joseph Myers <joseph@codesourcery.com>
27662
27663 PR other/38758
27664 * longlong.h: Update copyright years. Use soft-fp license notice.
27665 Sync __clz_tab declaration with glibc.
27666
27667 2009-01-20 Steve Ellcey <sje@cup.hp.com>
27668
27669 PR target/30687
27670 * doc/extend.texi (syscall_linkage): New.
27671 (version_id): Modify.
27672
27673 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
27674 Richard Guenther <rguenther@suse.de>
27675
27676 PR tree-optimization/38747
27677 PR tree-optimization/38748
27678 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
27679 conversion if the base address is an indirect reference and the
27680 aliasing sets could cause issues.
27681
27682 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
27683
27684 * common.opt (fgraphite, fgraphite-identity): Add comment for
27685 explaining why these options are not documented.
27686
27687 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
27688
27689 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
27690 gimple_call_lhs is NULL.
27691
27692 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
27693
27694 PR target/38868
27695 * emit-rtl.c (adjust_address_1): Make sure memref is never
27696 overwritten.
27697
27698 2009-01-20 Ben Elliston <bje@au.ibm.com>
27699
27700 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27701 const qualifier from arg parameter. Remove unnecessary cast to char *.
27702 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27703 const qualifier from arg 2.
27704
27705 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
27706
27707 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
27708
27709 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
27710
27711 PR c/38869
27712 * rtl.h (reinit_regs): New prototype.
27713 * regclass.c: Include ira.h.
27714 (reinit_regs): New.
27715 * Makefile.in (regclass.o): Add ira.h.
27716 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
27717
27718 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
27719
27720 PR target/38736
27721 * c-common.c (handle_aligned_attribute): Use
27722 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
27723 default alignment value.
27724
27725 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
27726
27727 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
27728 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
27729
27730 * doc/extend.texi: Update __attribute__ ((aligned)). Document
27731 __BIGGEST_ALIGNMENT__.
27732
27733 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
27734
27735 2009-01-18 Richard Guenther <rguenther@suse.de>
27736
27737 PR tree-optimization/38819
27738 * tree-flow.h (operation_could_trap_helper_p): Declare.
27739 * tree-eh.c (operation_could_trap_helper_p): Export.
27740 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
27741 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
27742 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
27743 are about to insert a possibly trapping instruction and fail
27744 in this case.
27745
27746 2009-01-18 Andreas Schwab <schwab@suse.de>
27747
27748 * doc/install.texi (Configuration): Remove obsolete paragraph
27749 about use of --with-gnu-ld with --with-gnu-as.
27750
27751 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
27752
27753 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
27754 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
27755 Follow spelling conventions.
27756
27757 2009-01-18 Ben Elliston <bje@au.ibm.com>
27758
27759 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
27760 C++ warning about implicit conversion from void * to struct
27761 bitmap_head_def *.
27762 (bitmap_obstack_free): Likewise for bitmap_element *.
27763 * Makefile.in (bitmap.o-warn): Remove.
27764
27765 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
27766
27767 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
27768
27769 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
27770 Tobias Grosser <tobi.grosser@amd.com>
27771
27772 * graphite.c (graphite_trans_scop_block): Do not block single
27773 nested loops.
27774
27775 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
27776
27777 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
27778 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
27779 test with assertion.
27780
27781 2009-01-16 Richard Guenther <rguenther@suse.de>
27782
27783 PR tree-optimization/38835
27784 PR middle-end/36227
27785 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
27786 and INT + PTR -> (INT)(PTR p+ INT) folding.
27787 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
27788
27789 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
27790
27791 PR target/38554
27792 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
27793 the subreg from a lowpart subreg if it is also casting the value.
27794
27795 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
27796 Tobias Grosser <tobi.grosser@amd.com>
27797
27798 * graphite.c (compare_prefix_loops): New.
27799 (build_scop_canonical_schedules): Rewritten.
27800 (graphite_transform_loops): Move build_scop_canonical_schedules
27801 after build_scop_iteration_domain.
27802
27803 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
27804 Tobias Grosser <tobi.grosser@amd.com>
27805
27806 * graphite.c (add_conditions_to_domain): Add the loops to
27807 the dimension of the iteration domain. Do copy the domain
27808 only when it exists.
27809 (build_scop_conditions_1): Do not call add_conditions_to_domain.
27810 (add_conditions_to_constraints): New.
27811 (can_generate_code_stmt, can_generate_code): Removed.
27812 (gloog): Do not call can_generate_code.
27813 (graphite_transform_loops): Call add_conditions_to_constraints
27814 after building the iteration domain.
27815
27816 2009-01-16 Jakub Jelinek <jakub@redhat.com>
27817
27818 PR tree-optimization/38789
27819 * tree-ssa-threadedge.c
27820 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
27821 __builtin_constant_p.
27822
27823 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
27824
27825 * dce.c (delete_unmarked_insns): Reversed the order that insns are
27826 examined before deleting them.
27827
27828 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
27829
27830 * function.c (aggregate_value_p): Correctly extract the function
27831 type from CALL_EXPR_FN lookup.
27832
27833 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27834
27835 * config/picochip/picochip.c (picochip_override_options): Revert
27836 CFI asm flag disable commited previously.
27837
27838 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
27839 Tobias Grosser <tobi.grosser@amd.com>
27840 Jan Sjodin <jan.sjodin@amd.com>
27841
27842 * graphite.c (scan_tree_for_params): On substractions negate
27843 all the coefficients of the term.
27844 (clast_to_gcc_expression_red): New. Handle reduction expressions
27845 of more than two operands.
27846 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
27847 (get_vdef_before_scop): Handle also the case of default definitions.
27848
27849 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
27850
27851 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
27852 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
27853 Also use them when walking CALL_INSN_FUNCTION_USAGE.
27854
27855 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
27856 Joey Ye <joey.ye@intel.com>
27857
27858 PR middle-end/37843
27859 * cfgexpand.c (expand_stack_alignment): Don't update stack
27860 boundary nor check incoming stack boundary here.
27861 (gimple_expand_cfg): Update stack boundary and check incoming
27862 stack boundary here.
27863
27864 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
27865
27866 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
27867
27868 2009-01-14 Jakub Jelinek <jakub@redhat.com>
27869
27870 PR rtl-optimization/38245
27871 * calls.c (expand_call): Add stack arguments to
27872 CALL_INSN_FUNCTION_USAGE even for pure calls (when
27873 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
27874 in regs and partially in memory or BLKmode arguments.
27875 (emit_library_call_value_1): Add stack arguments to
27876 CALL_INSN_FUNCTION_USAGE even for pure calls (when
27877 ACCUMULATE_OUTGOING_ARGS).
27878 * dce.c: Include tm_p.h.
27879 (find_call_stack_args): New function.
27880 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
27881 argument.
27882 (mark_insn): Call find_call_stack_args for CALL_Ps.
27883 (prescan_insns_for_dce): Walk insns backwards in bb rather than
27884 forwards. Allocate and free arg_stores bitmap if needed, pass it
27885 down to deletable_insn_p, don't mark stores set in arg_stores
27886 bitmap, clear the bitmap at the beginning of each bb.
27887 * Makefile.in (dce.o): Depend on $(TM_P_H).
27888
27889 2009-01-14 Michael Meissner <gnu@the-meissners.org>
27890
27891 PR target/22599
27892 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
27893 to make sure the insn is a conditional test (bug 22599). Reformat a
27894 few long lines.
27895
27896 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
27897
27898 PR middle-end/38431
27899 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
27900 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
27901 (gloog): Do not call cleanup_tree_cfg.
27902 (graphite_transform_loops): Call cleanup_tree_cfg after all
27903 scops have been code generated.
27904
27905 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
27906 * doc/gty.texi (Invoking the garbage collector): Added new node
27907 and section documenting ggc_collect.
27908
27909 2009-01-14 Richard Guenther <rguenther@suse.de>
27910
27911 PR tree-optimization/38826
27912 PR middle-end/38477
27913 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
27914 initialization notes only if we actually emitted a warning.
27915 (intra_create_variable_infos): Add constraints for a result decl
27916 that is passed by hidden reference.
27917 (build_pred_graph): Mark all related variables non-direct on
27918 address-taking.
27919
27920 2009-01-14 Nick Clifton <nickc@redhat.com>
27921
27922 * ira-conflicts.c: Include addresses.h for the definition of
27923 base_reg_class.
27924 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
27925 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
27926
27927 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
27928
27929 PR target/38811
27930 * Makefile.in (ira-lives.o): Add except.h.
27931
27932 * ira-lives.c: Include except.h.
27933 (process_bb_node_lives): Process can_throw_internal.
27934
27935 2009-01-13 Jakub Jelinek <jakub@redhat.com>
27936
27937 PR rtl-optimization/38774
27938 * combine.c (simplify_set): When undoing cc_use change, don't do
27939 PUT_CODE on the newly created comparison, but instead put back the
27940 old comparison.
27941
27942 2009-01-13 Joseph Myers <joseph@codesourcery.com>
27943
27944 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
27945 values. Remove duplicate arm8 entry.
27946
27947 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
27948
27949 PR tree-optimization/38786
27950 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
27951 the SSA_NAME case of expand_scalar_variables_expr.
27952 Set the type of an expression to the type of its assign statement.
27953 (expand_scalar_variables_expr): Also gather the scalar computation
27954 used to index the memory access. Do not pass loop_p.
27955 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
27956 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
27957 the gimple_stmt_iterator where it inserts new code.
27958 Do not pass loop_p.
27959 (copy_bb_and_scalar_dependences): Do not pass loop_p.
27960 (translate_clast): Update call to copy_bb_and_scalar_dependences.
27961
27962 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
27963
27964 * graphite.h (debug_value): Removed.
27965 * graphite.c (debug_value): Removed.
27966
27967 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
27968
27969 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
27970 ldrd/strd with two 32-bit instructions.
27971
27972 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
27973
27974 * config/arm/arm.c (struct processors): Pass for speed down into
27975 cost helper functions.
27976 (const_ok_for_op): Handle COMPARE and inequality nodes.
27977 (arm_rtx_costs_1): Rewrite.
27978 (arm_size_rtx_costs): Update prototype.
27979 (arm_rtx_costs): Pass speed down to helper functions.
27980 (arm_slowmul_rtx_costs): Rework cost calculations.
27981 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
27982 (arm_9e_rtx_costs): Likewise.
27983
27984 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
27985
27986 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
27987 relocations of local symbols wider than UNITS_PER_WORD are not valid.
27988 (alpha_legitimize_address): Do not split local symbols wider than
27989 UNITS_PER_WORD into HIGH/LO_SUM parts.
27990
27991 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
27992
27993 PR bootstrap/38580
27994 * gcc.c (process_command): Replace call to execvp with calls
27995 to pex_one and exit.
27996
27997 2009-01-03 Anatoly Sokolov <aesok@post.ru>
27998
27999 PR target/29141
28000 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28001 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28002 variant for devices with 3-byte PC.
28003 (__tablejump_elpm__): New.
28004
28005 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28006
28007 PR c/32041
28008 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28009 offsetof member-designator, handle it as `[0].'.
28010
28011 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28012
28013 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28014 function when not using named sections on targets with named sections
28015 if branch distance is less than 262132.
28016
28017 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28018
28019 * combine.c (combine_instructions): Recompute
28020 optimize_this_for_speed_p for each BB in the main combine loop.
28021
28022 2009-01-12 Tomas Bily <tbily@suse.cz>
28023
28024 PR middlend/38385
28025 * tree-loop-distribution.c (prop_phis): New function.
28026 (generate_builtin): Call prop_phis.
28027
28028 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28029
28030 PR tree-optimization/38807
28031 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28032 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28033
28034 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28035
28036 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28037 subreg of op0 to the original op0.
28038
28039 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28040
28041 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28042
28043 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28044
28045 PR debug/7055
28046 * mips-tfile.c (parse_def): Fix parsing of def strings
28047 starting with digits.
28048
28049 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28050
28051 PR target/38695
28052 * config/arm/arm.c (arm_is_long_call_p): Don't call
28053 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28054
28055 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28056
28057 * regrename.c (regrename_optimize): Fix dumping.
28058 (find_oldest_value_reg): Preserve REG_POINTER.
28059 (copy_hardreg_forward_1): Likewise.
28060
28061 2009-01-09 Diego Novillo <dnovillo@google.com>
28062
28063 * gimple.h (struct gimple_statement_base) <uid>: Document
28064 the restrictions on its use.
28065 (gimple_uid): Tidy.
28066 (gimple_set_uid): Tidy.
28067
28068 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28069
28070 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28071 zero guard even if align_bytes != 0 and count is smaller than
28072 size_needed.
28073
28074 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28075
28076 PR rtl-optimization/38495
28077 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28078 (add_range_and_copies_from_move_list): Print all added ranges.
28079 Add ranges to memory optimized destination.
28080
28081 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28082
28083 PR target/38686
28084 PR target/38708
28085 * config/i386/i386.c (override_options): Reject
28086 -mstringop-strategy=rep_8byte with -m32.
28087 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28088 to 1. Do count comparison against epilogue_size_needed at compile
28089 time even when count_exp was constant forced into register. For
28090 size_needed don't jump to epilogue, instead just avoid aligning
28091 and invoke the body algorithm. If need_zero_guard, add zero guard
28092 even if count is non-zero, but smaller than size_needed + number of
28093 bytes that could be stored for alignment.
28094 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28095 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28096 but smaller than size_needed + number of bytes that could be stored
28097 for alignment. Compare size_needed with epilogue_size_needed instead
28098 of desired_align - align, don't adjust size_needed, pass
28099 epilogue_size_needed to the epilogue expanders.
28100
28101 PR c/35742
28102 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28103
28104 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28105
28106 * pa.c (last_address): Change to unsigned.
28107 (update_total_code_bytes): Change argument to unsigned. Don't
28108 check if insn addresses are set.
28109 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28110 addresses are not set.
28111 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28112
28113 2009-01-09 Nick Clifton <nickc@redhat.com>
28114
28115 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28116 DECL_DECLARED_INLINE_P.
28117
28118 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28119
28120 PR middle-end/38347
28121 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28122 GET_MODE (op0) in operand_subword_force calls.
28123
28124 PR middle-end/38771
28125 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28126 fold_convert arg0 operands to TREE_TYPE (op0) first.
28127
28128 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28129
28130 * params.def (ira-max-conflict-table-size): Decrease default value
28131 to 1000.
28132
28133 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28134
28135 PR tree-optimization/37031
28136 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28137 on parameter_set.
28138 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28139 allocate it using gc instead of heap, use VEC_quick_push instead of
28140 VEC_safe_push.
28141 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28142 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28143 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28144 allocated vector from heap allocated.
28145 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28146 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28147 vector only after perfect_loop_nest_depth call.
28148
28149 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28150 Jan Sjodin <jan.sjodin@amd.com>
28151
28152 PR tree-optimization/38559
28153 * graphite.c (debug_value, copy_constraint,
28154 swap_constraint_variables, scale_constraint_variable, ): New.
28155 (get_lower_bound, get_upper_bound): Removed.
28156 (graphite_trans_bb_strip_mine): Clean up this code that works
28157 only for constant number of iterations. Fully copy upper and
28158 lower bound constraints, not only the constant part of them.
28159 * graphite.h (debug_value): Declared.
28160
28161 2009-01-08 Ira Rosen <irar@il.ibm.com>
28162
28163 PR tree-optimization/37194
28164 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28165 Don't add the cost of cost model guard in prologue to scalar
28166 outside cost in case of known number of iterations.
28167
28168 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28169 Alan Modra <amodra@bigpond.net.au>
28170
28171 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28172 non-word-aligned REG+CONST addressing.
28173
28174 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28175
28176 PR target/38706
28177 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28178 free_after_compilation when outputting a thunk.
28179 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28180 Do not call free_after_compilation here.
28181
28182 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28183
28184 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28185 (ix86_valid_target_attribute_inner_p): Ditto.
28186
28187 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28188
28189 PR tree-optimization/38492
28190 PR tree-optimization/38498
28191 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28192 * tree-chrec.h (scev_is_linear_expression): Declared.
28193 * graphite.c (graphite_cannot_represent_loop_niter): New.
28194 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28195 (graphite_loop_normal_form): Use gcc_assert.
28196 (scan_tree_for_params): Use CASE_CONVERT.
28197 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28198 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28199 Use gcc_assert. Discard scops that contain unhandled cases.
28200 (build_scop_conditions): Return a boolean status for unhandled cases.
28201 (strip_mine_profitable_p): Print the loop number, not its depth.
28202 (is_interchange_valid): Pass the depth of the loop nest, don't
28203 recompute it wrongly.
28204 (graphite_trans_bb_block): Same.
28205 (graphite_trans_bb_block): Print tentative of loop blocking.
28206 (graphite_trans_scop_block): Do not print that the loop has been
28207 blocked.
28208 (graphite_transform_loops): Do not handle scops that contain condition
28209 scalar phi nodes.
28210
28211 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28212
28213 AVX Programming Reference (December, 2008)
28214 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28215 (_mm256_stream_pd): Likewise.
28216 (_mm256_stream_ps): Likewise.
28217
28218 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28219 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28220 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28221 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28222 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28223 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28224 (ix86_expand_special_args_builtin): Likewise.
28225
28226 * config/i386/sse.md (AVXMODEDI): New.
28227 (avx_movnt<mode>): Likewise.
28228 (avx_movnt<mode>): Likewise.
28229 (<sse>_movnt<mode>): Remove AVX support.
28230 (sse2_movntv2di): Likewise.
28231
28232 2009-01-07 Richard Guenther <rguenther@suse.de>
28233
28234 PR middle-end/38751
28235 * fold-const.c (extract_muldiv): Remove obsolete comment.
28236 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28237 to PLUS_EXPR canonicalization for the canonicalization.
28238
28239 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28240
28241 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28242 hosted cross-compilers generating less efficient code.
28243
28244 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28245
28246 * function.h (rtl_data): Add a dbr_scheduled_p field.
28247 * reorg.c (dbr_schedule): Set it.
28248 (gate_handle_delay_slots): Check it.
28249 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28250 (mips_reorg): Check flag_delayed_branch instead of
28251 mips_base_delayed_branch.
28252 (mips_override_options): Don't set mips_base_delayed_branch
28253 or flag_delayed_branch.
28254
28255 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28256
28257 PR rtl-optimization/38426.
28258 * ira.c (ira): Set current_function_is_leaf earlier.
28259
28260 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28261
28262 PR rtl-optimization/38722
28263 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28264 too early, only set a flag and modify after last possible
28265 undo_all point.
28266
28267 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28268
28269 PR c/34252
28270 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28271 * real.c (decimal_single_format): Correct values of emin and emax.
28272 (decimal_double_format): Ditto.
28273 (decimal_quad_format): Ditto.
28274 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28275 computation of DECnn_MIN and DECnn_MAX for corrected values of
28276 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28277 __DECnn_MIN__, and adjust its computation for the corrected value
28278 of emin.
28279
28280 2009-01-06 Jan Hubicka <jh@suse.cz>
28281
28282 PR target/38744
28283 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28284
28285 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28286
28287 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28288 Add Robert Clark to the list of testers.
28289
28290 2009-01-06 Jan Hubicka <jh@suse.cz>
28291 Kai Tietz <kai.tietz@onevision.com>
28292
28293 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28294 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28295
28296 2009-01-06 Jan Hubicka <jh@suse.cz>
28297 Kai Tietz <kai.tietz@onevision.com>
28298
28299 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28300 for w64 ABI.
28301 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28302 (ix86_nsaved_regs): Count only general purpose regs.
28303 (ix86_nsaved_sseregs): New.
28304 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28305 to 16 for w64; compute padding and size of sse reg save area.
28306 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28307 general purpose regs.
28308 (ix86_emit_save_sse_regs_using_mov): New.
28309 (ix86_expand_prologue): Save SSE regs if needed.
28310 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28311 (ix86_emit_restore_sse_regs_using_mov): New.
28312 (ix86_expand_epilogue): Save SSE regs if needed.
28313
28314 2009-01-06 Jan Hubicka <jh@suse.cz>
28315 Kai Tietz <kai.tietz@onevision.com>
28316
28317 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28318 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28319 functions when accumulate outgoing args is off.
28320
28321 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28322
28323 PR bootstrap/38742
28324 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28325 before using pseudos_have_intersected_live_ranges_p.
28326
28327 * ira-int.h (ira_assert): Always define.
28328
28329 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28330
28331 AVX Programming Reference (December, 2008)
28332 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28333 (_mm256_permute2_pd): Likewise.
28334 (_mm_permute2_ps): Likewise.
28335 (_mm256_permute2_ps): Likewise.
28336 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28337 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28338
28339 * config/i386/i386.c (ix86_builtins): Remove
28340 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28341 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28342 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28343 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28344 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28345 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28346 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28347 __builtin_ia32_vpermil2ps256.
28348 (ix86_init_mmx_sse_builtins): Updated.
28349 (ix86_expand_args_builtin): Likewise.
28350
28351 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28352
28353 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28354 long absolute calls when generating PA 2.0 code.
28355
28356 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28357
28358 PR rtl-optimization/38583
28359 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28360
28361 * params.def (ira-max-conflict-table-size): New.
28362
28363 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28364
28365 * ira.h (ira_conflicts_p): New external definition.
28366
28367 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28368 table. Report this. Return result of building.
28369 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28370 building conflict table.
28371
28372 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28373 (ira_color): Use ira_conflicts_p.
28374
28375 * global.c: Include ira.h.
28376 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28377 ira_conflicts_p.
28378
28379 * Makefile.in (global.o): Add ira.h.
28380
28381 * ira-build.c (mark_all_loops_for_removal,
28382 propagate_some_info_from_allocno): New.
28383 (remove_unnecessary_allocnos): Call
28384 propagate_some_info_from_allocno.
28385 (remove_low_level_allocnos): New.
28386 (remove_unnecessary_regions): Add parameter. Call
28387 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
28388 parameter to remove_unnecessary_regions.
28389 (ira_build): Remove all regions but root if the conflict table was
28390 not built. Update conflict hard regs for allocnos crossing calls.
28391
28392 * ira.c (ira_conflicts_p): New global.
28393 (ira): Define and use ira_conflicts_p.
28394
28395 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28396 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28397 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28398
28399 2009-01-06 Ben Elliston <bje@au.ibm.com>
28400
28401 * gengtype-lex.l (YY_NO_INPUT): Define.
28402
28403 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
28404
28405 PR c/34911
28406 * c-common.c (handle_vector_size_attribute): Also reject
28407 BOOLEAN_TYPE types.
28408
28409 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
28410
28411 PR tree-optimization/38492
28412 * graphite.c (rename_map_elt, debug_rename_elt,
28413 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28414 rename_map_elt_info, eq_rename_map_elts,
28415 get_new_name_from_old_name, bb_in_sese_p): Moved around.
28416 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28417 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28418 (sese_build_livein_liveouts): New.
28419 (new_sese, free_sese): New.
28420 (new_scop): Call new_sese.
28421 (free_scop): Call free_sese.
28422 (rename_variables_from_edge, rename_phis_end_scop): Removed.
28423 (register_old_new_names): Renamed register_old_and_new_names.
28424 (register_scop_liveout_renames, add_loop_exit_phis,
28425 insert_loop_close_phis, struct igp,
28426 default_liveout_before_guard, add_guard_exit_phis,
28427 insert_guard_phis, copy_renames): New.
28428 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28429 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28430 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28431 (scop_adjust_phis_for_liveouts): New.
28432 (gloog): Call scop_adjust_phis_for_liveouts.
28433
28434 * graphite.h (struct sese): Documented. Added fields liveout,
28435 num_ver and livein.
28436 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28437 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28438 (struct scop): Added field liveout_renames.
28439 (SCOP_LIVEOUT_RENAMES): New.
28440
28441 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28442
28443 PR tree-optimization/38510
28444 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28445 (translate_clast): Call recompute_all_dominators before
28446 graphite_verify.
28447 (gloog): Call recompute_all_dominators before graphite_verify.
28448
28449 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28450 Jan Sjodin <jan.sjodin@amd.com>
28451
28452 PR tree-optimization/38500
28453 * graphite.c (create_sese_edges): Call fix_loop_structure after
28454 splitting blocks.
28455
28456 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
28457
28458 * config.gcc: Add m32r*-*-rtems*.
28459 * config/m32r/rtems.h: New file.
28460
28461 2009-01-05 Ben Elliston <bje@au.ibm.com>
28462
28463 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28464 (.po.pox): Likewise.
28465 (po/gcc.pot): Likewise.
28466
28467 2009-01-04 David S. Miller <davem@davemloft.net>
28468
28469 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28470 (STARTING_FRAME_OFFSET): Always set to zero.
28471
28472 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28473
28474 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28475 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28476 fixed-point types, and vectors of the same.
28477
28478 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28479
28480 * config/mips/sync.md (*mb_barrier): Rename to...
28481 (*memory_barrier): ...this.
28482
28483 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
28484
28485 * doc/extend.texi (Function Attributes): Move @cindex after @item
28486 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28487 and put in alphabetical order. Fix 'target' name and put in order.
28488 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28489 typos.
28490
28491 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
28492
28493 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28494 (memory_barrier): Expand as unspec instead of unspec_volatile.
28495 Remove mem:BLK from insn operands. Use Pmode scratch register.
28496 (*memory_barrier): Define as unspec instead of unspec_volatile.
28497 Use (match_dup 0) as input operand.
28498
28499 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28500 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28501 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
28502 scratch register. Remove operand 1.
28503 (*stbar): Define as unspec instead of unspec_volatile.
28504 Use (match_dup 0) as input operand, remove (const_int 8).
28505 (*membar): Define as unspec instead of unspec_volatile.
28506 Use (match_dup 0) as input operand, remove input operand 2.
28507
28508 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28509 (memory_barrier): Expand as unspec instead of unspec_volatile.
28510 Remove mem:BLK from insn operands. Use Pmode scratch register.
28511 (*memory_barrier): Define as unspec instead of unspec_volatile.
28512 Use (match_dup 0) as input operand.
28513
28514 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28515 Remove mem:BLK from insn operands. Use Pmode scratch register.
28516 Set volatile flag on operand 0.
28517 (*memory_barrier): New insn pattern.
28518
28519 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28520 insn operands.
28521 (*memory_barrier): Use (match_dup 0) as input operand.
28522
28523 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28524 Remove mem:BLK from insn operands. Use Pmode scratch register.
28525 Set volatile flag on operand 0.
28526 (*mb_internal): New insn pattern.
28527
28528 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28529
28530 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
28531
28532 PR middle-end/38586
28533 * function.c (struct temp_slot): Move to the section of the file
28534 that deals with temp slots. Remove field 'address'.
28535 (temp_slot_address_table): New hash table of address -> temp slot.
28536 (struct temp_slot_address_entry): New struct, items for the table.
28537 (temp_slot_address_compute_hash, temp_slot_address_hash,
28538 temp_slot_address_eq, insert_temp_slot_address): Support functions
28539 for the new table.
28540 (find_temp_slot_from_address): Rewrite to use the new hash table.
28541 (remove_unused_temp_slot_addresses): Remove addresses of temp
28542 slots that have been made available.
28543 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28544 worker function for remove_unused_temp_slot_addresses.
28545 (assign_stack_temp_for_type): Don't clear the temp slot address list.
28546 Add the temp slot address to the address -> temp slot map.
28547 (update_temp_slot_address): Update via insert_temp_slot_address.
28548 (free_temp_slots): Call remove_unused_temp_slot_addresses.
28549 (pop_temp_slots): Likewise.
28550 (init_temp_slots): Allocate the address -> temp slot map, or empty
28551 the map if it is already allocated.
28552 (prepare_function_start): Initialize temp slot processing.
28553
28554 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
28555
28556 PR middle-end/38584
28557 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28558 Calculate the size of all stack vars assuming no packing of stack
28559 vars will happen, replacing a quadratic algorithm with a linear one.
28560
28561 2009-01-03 Jakub Jelinek <jakub@redhat.com>
28562
28563 PR target/38707
28564 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28565 can't be used.
28566
28567 2009-01-03 Diego Novillo <dnovillo@google.com>
28568
28569 * doc/contrib.texi: Update contributions.
28570
28571 2009-01-03 Jakub Jelinek <jakub@redhat.com>
28572
28573 PR c++/38705
28574 * builtins.c (fold_builtin_memory_op): Give up if either operand
28575 is volatile. Set srctype or desttype to non-qualified version
28576 of the other type.
28577
28578 PR c/38700
28579 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28580 and FUNCTION_DECLs.
28581
28582 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
28583
28584 PR rtl-optimization/35805
28585 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28586 problem if fast dce is able to remove any instructions.
28587 * dce.c (dce_process_block): Fix dump message.
28588
28589 2009-01-02 Mark Mitchell <mark@codesourcery.com>
28590
28591 PR 33649
28592 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28593
28594 2009-01-02 Jakub Jelinek <jakub@redhat.com>
28595
28596 PR middle-end/38690
28597 * tree-flow.h (op_code_prio, op_prio): New prototypes.
28598 * tree-pretty-print.c (op_code_prio): New function.
28599 (op_prio): No longer static. Use op_code_prio.
28600 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28601 Use op_prio and op_code_prio to determine if () should be
28602 printed around operand(s) or not.
28603
28604 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28605 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28606 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28607 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28608 pp_character instead of pp_string for single letter printing.
28609
28610 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28611
28612 * doc/extend.texi: Fix '#pragma GCC option' typo.
28613
28614 2009-01-02 Richard Guenther <rguenther@suse.de>
28615
28616 * doc/install.texi (--enable-checking): Mention different
28617 default for stage1.
28618 (--enable-stage1-checking): Document.
28619
28620 2009-01-01 Andrew Pinski <pinskia@gmail.com>
28621
28622 PR middle-end/30142
28623 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
28624 case to be an error.
28625
28626 2009-01-02 Ben Elliston <bje@au.ibm.com>
28627
28628 * config/fp-bit.h (pack_d): Constify argument.
28629 * config/fp-bit.c (makenan): Constify return type. Remove casts.
28630 (isnan): Constify argument.
28631 (isinf): Likewise.
28632 (iszero): Likewise.
28633 (pack_d): Likewise.
28634 (_fpadd_parts): Constify return type.
28635 (_fpmul_parts): Likewise.
28636 (_fpdiv_parts): Likewise.
28637
28638 2009-01-01 Jakub Jelinek <jakub@redhat.com>
28639
28640 PR c/36489
28641 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
28642 warn about overwriting initializer with side-effects or
28643 -Woverride-init if !IMPLICIT.
28644 (output_init_element): Likewise. Pass IMPLICIT down to
28645 add_pending_init.
28646 (process_init_element): Add IMPLICIT argument. Pass it down
28647 to output_init_element.
28648 (push_init_element, pop_init_level, set_designator): Adjust
28649 process_init_element callers.
28650 (set_nonincremental_init, set_nonincremental_init_from_string):
28651 Adjust add_pending_init callers.
28652 (output_pending_init_elements): Adjust output_init_element callers.
28653 * c-tree.h (process_init_element): Adjust prototype.
28654 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28655 process_init_element callers.
28656
28657 \f
28658 Copyright (C) 2009 Free Software Foundation, Inc.
28659
28660 Copying and distribution of this file, with or without modification,
28661 are permitted in any medium without royalty provided the copyright
28662 notice and this notice are preserved.