]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
739cdb574bedd1f1e7226e4e2202101cc2541b8d
[gcc.git] / gcc / ChangeLog
1 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
2
3 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
4 without size or with size that can't be represented as a host integer.
5
6 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
7
8 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
9 the removal of a debug stmt as a significant change.
10
11 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
12
13 * config/s390/s390.md: Added agen condition to operand
14 forwarding bypasses.
15 Added bypass for early address generation use of int results.
16 Updated comments.
17
18 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
19
20 * config/i386/i386.c: Remove signal.h #include.
21
22 2009-10-20 Jie Zhang <jie.zhang@analog.com>
23
24 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
25 * doc/rtl.texi: Document ss_abs.
26
27 2009-10-19 Jakub Jelinek <jakub@redhat.com>
28
29 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
30 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
31 instead of C_LEX_RAW_STRINGS.
32 (lex_string): Handle CPP_UTF8STRING.
33 * c-parser.c (c_parser_postfix_expression): Likewise.
34 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
35 (C_LEX_STRING_NO_JOIN): ... this.
36
37 2009-10-19 Anatoly Sokolov <aesok@post.ru>
38
39 * config/cris/cris.c (cris_function_value, cris_libcall_value,
40 cris_function_value_regno_p): New functions.
41 (cris_promote_function_mode): Update comment.
42 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
43 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
44 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
45 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
46
47 2009-10-19 Jakub Jelinek <jakub@redhat.com>
48
49 * unwind-dw2.c (execute_stack_op): Fix operand order for
50 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
51
52 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
53
54 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
55 (lower_stmt) <GIMPLE_BIND>: Add comment.
56 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
57 and return.
58 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
59 Otherwise lower it and set cannot_fallthru to true.
60 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
61 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
62 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
63 to true for a noreturn call. Do not remove statements.
64 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
65 Set cannot_fallthru to false on function exit.
66 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
67 <GIMPLE_ASSIGN>: Remove.
68
69 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
70
71 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
72
73 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
74
75 * config/s390/s390.c (s390_z10_optimize_cmp): Use
76 next/prev_active_insn to skip DEBUG_INSNs as well.
77
78 2009-10-19 Joseph Myers <joseph@codesourcery.com>
79
80 * config/arm/arm.c (output_move_neon): Use DImode in call to
81 adjust_address.
82
83 2009-10-19 Matthias Klose <doko@ubuntu.com>
84
85 PR target/40134
86 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
87
88 2009-10-19 Jakub Jelinek <jakub@redhat.com>
89
90 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
91
92 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
93
94 PR middle-end/41738
95 * optabs.c (expand_binop): Make mode of shift count expression mode
96 of shift count not target.
97 Remove indent nit.
98
99 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
100
101 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
102 case. Force using values to replace references within the statement.
103 (convert_local_reference_stmt): Likewise.
104
105 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
106
107 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
108 remove a subsequent GOTO or RETURN statement.
109
110 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
111
112 * config/avr.md (*movqi): Add zero as equally preferable constraint
113 as general register.
114 (*movhi): Ditto.
115
116 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
117
118 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
119
120 2009-10-17 Richard Guenther <rguenther@suse.de>
121
122 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
123
124 2009-10-17 Richard Guenther <rguenther@suse.de>
125
126 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
127 operands in COMPONENT_REFs.
128
129 2009-10-17 Anatoly Sokolov <aesok@post.ru>
130
131 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
132 if not defined. Change type of second argument to const_rtx.
133 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
134 macro not defined.
135 * targhooks.h (default_libcall_value): Update prototype.
136 * target.h (struct gcc_target): Change type of second argument of
137 libcall_value to const_rtx.
138 * config/arm/arm.c (arm_libcall_value): Change type of second argument
139 to const_rtx.
140 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
141 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
142
143 2009-10-17 Jakub Jelinek <jakub@redhat.com>
144
145 PR debug/40521
146 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
147 * cgraphunit.c (cgraph_optimize): Call it.
148 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
149 (dwarf2out_assembly_start): ... here. New hook.
150 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
151 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
152 hook.
153 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
154 * sdbout.c (sdb_debug_hooks): Likewise.
155 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
156 (vmsdbgout_assembly_start): New hook.
157
158 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
159
160 * rtl.h (RTL_LOCATION): Fix typo.
161
162 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
163
164 * print-rtl.c (print_rtx): Print locators in asm_operands
165 and asm_input.
166
167 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
168
169 PR debug/41535
170 * sched-deps.c (depl_on_debug_p): New.
171 (attach_dep_link): Reject debug deps before nondebug deps.
172 (add_to_deps_list): Insert debug deps after nondebug deps.
173 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
174 deps.
175 (sd_add_dep): Do not reject debug deps.
176 (add_insn_mem_dependence): Don't count debug deps.
177 (remove_from_deps): Likewise.
178 (sched_analyze_2): Set up mem deps on debug insns.
179 (sched_analyze_insn): Record reg uses for deps on debug insns.
180 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
181 try_ready nondebug insn after debug insn.
182 * ddg.c (create_ddg_dep_from_intra_loop_link,
183 create_ddg_dep_no_link): Don't reject debug deps.
184
185 2009-10-16 Richard Guenther <rguenther@suse.de>
186
187 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
188 (maybe_merge_incomplete_and_complete_type): Likewise.
189 (lto_symtab_merge): Do not call them. Do not warn for
190 complete vs. incomplete compatible types.
191 (lto_symtab_merge_decls_2): Simplify.
192 * gimple.c (gimple_force_type_merge): Remove.
193 (gimple_types_compatible_p): Make it static.
194 * gimple.h (gimple_force_type_merge): Remove.
195 (gimple_types_compatible_p): Likewise.
196
197 2009-10-16 Jakub Jelinek <jakub@redhat.com>
198
199 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
200 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
201
202 2009-10-16 Richard Guenther <rguenther@suse.de>
203
204 PR tree-optimization/41728
205 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
206 if fold_stmt did anything.
207
208 2009-10-16 Richard Guenther <rguenther@suse.de>
209
210 PR lto/41715
211 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
212 (maybe_fixup_handled_component): New function.
213 (input_gimple_stmt): Fixup mismatched decl replacements.
214
215 2009-10-16 Richard Guenther <rguenther@suse.de>
216
217 PR lto/41713
218 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
219 the same as VAR_DECL.
220
221 2009-10-16 Richard Guenther <rguenther@suse.de>
222
223 * gimple.c (iterative_hash_gimple_type): For integer types
224 also hash their minimum and maximum values and the string flag.
225 For array types hash their domain and the string flag.
226
227 2009-10-16 Richard Guenther <rguenther@suse.de>
228
229 * gimple.c (gimple_types_compatible_p): Restrict completing
230 types to record or unions. Simplify completion.
231 Do not merge records or unions with different
232 TYPE_STRUCTURAL_EQUALITY_P tag.
233 (iterative_hash_gimple_type): Restrict non-recursing into
234 pointer targets for records and unions.
235
236 2009-10-15 Jakub Jelinek <jakub@redhat.com>
237
238 PR debug/41717
239 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
240 * dwarf2out.c (mem_loc_descriptor): Don't handle
241 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
242 punt if it is not lowpart subreg or if inner mode isn't
243 MODE_INT.
244
245 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
246
247 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
248 investigating previous or next insns.
249
250 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
251
252 * tree-sra.c (build_ref_for_offset_1): Update comment.
253
254 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
255
256 * config/s390/s390.md (atype): Added missing values.
257
258 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
259
260 PR target/41702
261 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
262 (casesi64p): Update pattern to reflect above.
263
264 2009-10-15 Steve Ellcey <sje@cup.hp.com>
265
266 PR rtl-optimization/41697
267 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
268
269 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
270
271 PR target/23983
272 * config/rs6000/predicates.md: Update copyright year.
273 * config/rs6000/altivec.md: Ditto.
274
275 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
276 (MD_INCLUDES): Add a2.md.
277
278 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
279 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
280 (builtin_classify): New static vector to classify various builtins
281 to get the tree attributes correct.
282 (def_builtin): Set the attributes of builtins based on what the
283 builtin does (i.e. memory operation, floating point, saturation
284 need special attributes, others are pure functions).
285
286 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
287 the builtins.
288 (enum rs6000_builtins): Include rs6000-builtin.def to define the
289 builtins. Change the end marker to MAX_RS6000_BUILTINS from
290 RS6000_BUILTIN_COUNT.
291 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
292 MAX_RS6000_BUILTINS.
293
294 * config/rs6000/rs6000-builtin.def: New file that combines the
295 builtin enumeration name and attributes.
296
297 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
298
299 * config/i386/linux.h (ASM_SPEC): Add --32.
300
301 2009-10-15 Jakub Jelinek <jakub@redhat.com>
302
303 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
304 and DW_TAG_template_alias.
305 (dwarf_attr_name): Handle DW_AT_main_subprogram,
306 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
307 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
308 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
309 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
310 and DW_AT_GNU_odr_signature.
311 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
312 DW_FORM_flag_present and DW_FORM_ref_sig8.
313 (output_signature): Only print name on the first byte.
314 (output_die): Likewise for dw_val_class_data8.
315
316 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
317
318 * doc/invoke.texi: Clarify that most optimizations are not enabled
319 without -O.
320
321 2009-10-15 Richard Guenther <rguenther@suse.de>
322
323 PR lto/41668
324 * gimple.c (compare_type_names_p): Handle anonymous names
325 differently based on new mode argument.
326 (gimple_types_compatible_p): For structs also compare the tags.
327 (iterative_hash_type_name): Rename to ...
328 (iterative_hash_name): ... this. Hash all names.
329 (iterative_hash_gimple_type): Fix hashing the struct tag of
330 pointer targets. Hash field decl names.
331
332 2009-10-15 Richard Guenther <rguenther@suse.de>
333
334 PR lto/41669
335 * gimple.c (gimple_get_alias_set): Avoid recursing on
336 invalid type topology.
337
338 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
339
340 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
341
342 2009-10-15 Richard Guenther <rguenther@suse.de>
343
344 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
345
346 2009-10-15 Jakub Jelinek <jakub@redhat.com>
347
348 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
349 add --with-tune{,-32,-64} configured default for -mtune if explicit
350 -mcpu is used.
351
352 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
353
354 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
355
356 2009-10-14 DJ Delorie <dj@redhat.com>
357
358 * config/h8300/h8300.c (F): New.
359 (Fpa): New.
360 (h8300_emit_stack_adjustment): Call them.
361 (push): Likewise.
362 (h8300_push_pop): Likewise.
363 (h8300_expand_prologue): Likewise.
364 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
365 (MUST_USE_SJLJ_EXCEPTIONS): Define.
366 (INCOMING_RETURN_ADDR_RTX): Define.
367 (INCOMING_FRAME_SP_OFFSET): Define.
368 (DWARF_CIE_DATA_ALIGNMENT): Define.
369
370 2009-10-14 Jakub Jelinek <jakub@redhat.com>
371
372 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
373 fields in builtin structs.
374 (finalize_record_size): Likewise.
375
376 2009-10-14 Richard Guenther <rguenther@suse.de>
377
378 * gimple.c (gtc_ob): New global.
379 (struct type_pair_d): Replace pointers with type UIDs.
380 (type_pair_hash): Adjust.
381 (type_pair_eq): Likewise.
382 (lookup_type_pair): Likewise. Allocate from an obstack.
383 (gimple_force_type_merge): Adjust.
384 (gimple_types_compatible_p): Likewise.
385 (free_gimple_type_tables): Free the obstack.
386
387 2009-10-14 Jakub Jelinek <jakub@redhat.com>
388
389 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
390 stmts setting DEBUG_EXPR_DECLs.
391
392 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
393 Don't crash if mode1 is VOIDmode.
394
395 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
396
397 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
398 * params.h (IRA_LOOP_RESERVED_REGS): New.
399 * tree-pass.h (pass_subregs_of_mode_init,
400 pass_subregs_of_mode_finish): Remove.
401 * passes.c (pass_subregs_of_mode_init,
402 pass_subregs_of_mode_finish): Remove.
403 (pass_reginfo_init): Move before loop optimizations.
404 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
405 * common.opt (fira-loop-pressure): New.
406 * toplev.h (flag_ira_loop_pressure): New.
407 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
408 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
409 Make external and void type functions.
410 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
411 pass_subregs_of_mode_finish): Remove.
412 * ira-costs.c (init_costs): Call init_subregs_of_mode.
413 * regmove.c: Include ira.h.
414 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
415 register pressure calculation in loops.
416 * loop-invariant.c: Include REGS_H and ira.h.
417 (struct loop_data): New members max_reg_pressure, regs_ref, and
418 regs_live.
419 (struct invariant): New member orig_regno.
420 (curr_loop): New variable.
421 (find_exits): Initialize regs_ref and regs_live.
422 (create_new_invariant): Initialize orig_regno.
423 (get_cover_class_and_nregs): New.
424 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
425 array. Add code for flag_ira_loop_pressure.
426 (gain_for_invariant): Make new_regs an array. Add code for
427 flag_ira_loop_pressure.
428 (best_gain_for_invariant): Ditto.
429 (set_move_mark): New parameter gain. Use it for debugging output.
430 (find_invariants_to_move): Make regs_needed and new_regs an array.
431 Add code for flag_ira_loop_pressure.
432 (move_invariant_reg): Set up orig_regno.
433 (move_invariants): Set up reg classes for pseudos for
434 flag_ira_loop_pressure.
435 (free_loop_data): Clear regs_ref and regs_live.
436 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
437 get_regno_cover_class, change_pressure, mark_regno_live,
438 mark_regno_death, mark_reg_store, mark_reg_clobber,
439 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
440 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
441 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
442 register pressure calculation in loops if new regs were added.
443 Call finish_subregs_of_mode.
444 * opts.c (decode_options): Set up flag_ira_loop_pressure.
445 * Makefile.in (loop-invariant.o): Add ira.h.
446 (regmove.o): Ditto.
447 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
448 Describe.
449 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
450
451 2009-10-14 Richard Guenther <rguenther@suse.de>
452
453 * lto-symtab.c (lto_symtab_compatible): Fold in ...
454 (lto_symtab_merge): ... here. Rewrite both to take the
455 prevailing and a to-be-merged entry and to queue diagnostics properly.
456 (lto_symtab_resolve_replaceable_p): New predicate for
457 symbol resolution.
458 (lto_symtab_resolve_can_prevail_p): Likewise.
459 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
460 handles merging commons by choosing the largest decl. Fold
461 in code that gives ODR errors.
462 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
463 diagnostics here.
464 (lto_symtab_merge_decls_1): Re-structure. Deal with the
465 case of no prevailing decl here. Diagnose mismatches
466 in object types here. Drop all but the prevailing decls.
467 (lto_symtab_prevailing_decl): Return the single prevailing decl.
468 * lto-streamer-in.c (lto_input_tree_ref): Deal with
469 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
470
471 2009-10-14 Richard Guenther <rguenther@suse.de>
472
473 PR lto/41521
474 * lto-streamer-in.c (input_bb): Replace debug stmts with
475 nops instead of dropping them.
476
477 2009-10-14 Nick Clifton <nickc@redhat.com>
478
479 * gcc/doc/extended.texi: Replace the dash character with @minus{}
480 in situations where it is being used as a minus symbol.
481 * gcc/doc/tm.texi: Likewise.
482 * gcc/doc/md.texi: Likewise.
483
484 2009-10-14 Jakub Jelinek <jakub@redhat.com>
485
486 PR preprocessor/41543
487 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
488 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
489 * tree.c: Include intl.h.
490 (expand_location): Handle BUILTINS_LOCATION.
491 * Makefile.in (tree.o): Depend on intl.h.
492
493 PR debug/41695
494 * dwarf2out.c (dwarf2out_var_location): Always clear
495 last_postcall_label when changing last_label.
496
497 2009-10-14 Pascal Obry <obry@adacore.com>
498
499 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
500 (process_command): Handle -E as done with -c and -S. Do not add
501 the target executable suffix to the output file when -E is used.
502 (main): Adjust error message accordingly.
503
504 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
505
506 PR debug/41343
507 PR debug/41447
508 PR debug/41264
509 PR debug/41338
510 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
511 decl with rtl.
512 (tree_code_size): Likewise.
513
514 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
515
516 * builtins.c (fold_builtin_1): Support complex "arc" functions.
517 * real.h (HAVE_mpc_arc): Define.
518
519 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
520
521 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
522 (struct builtin_description): Add fndecl field.
523 (bdesc): Remove const qualifier. Update initializer.
524 (sh_media_init_builtins): Remove const qualifier for d. Record
525 the result of add_builtin_function to the fndecl field.
526 (sh_builtin_decl): New.
527 (sh_media_builtin_decl): New.
528
529 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
530
531 PR target/38948
532 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
533 requests between special registers.
534
535 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
536
537 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
538
539 2009-10-13 Richard Henderson <rth@redhat.com>
540
541 PR tree-optimization/41377
542 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
543 (cleanup_empty_eh_merge_phis): New change_region parameter;
544 pass it on to redirect_eh_edge_1. Update callers.
545 (cleanup_empty_eh_unsplit): Don't require an existing EH label
546 at the destination block.
547
548 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
549
550 * passes.c (register_pass): Replaced gcc_unreachable by
551 fatal_error on failure. Mentions plugins in comments & messages.
552
553 2009-10-13 Jakub Jelinek <jakub@redhat.com>
554
555 PR target/41693
556 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
557 * sched-vis.c (print_value): Use it.
558 * cselib.c (cselib_hash_rtx): Likewise.
559 * print-rtl.c (print_rtx): Likewise.
560 * cfgexpand.c (expand_debug_rtx): Likewise.
561 * var-tracking.c (vt_expand_loc_callback): Likewise.
562
563 2009-10-13 Richard Guenther <rguenther@suse.de>
564
565 PR lto/41565
566 * opts.c (handle_option): Split out code to handle setting
567 the options flag var ...
568 (set_option): ... here.
569 * opts.h (set_option): Declare.
570 * lto-opts.c (register_user_option_p): Include -fexceptions
571 and all position independent code variants.
572 (handle_common_option): Remove.
573 (lto_reissue_options): Use set_option.
574
575 2009-10-13 Martin Jambor <mjambor@suse.cz>
576
577 PR tree-optimization/41661
578 * ipa-prop.c (compute_complex_pass_through): Allow only operations
579 that are tcc_comparisons or do not change the type in any
580 un-usleless way.
581 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
582 folding tcc_comparison operations.
583
584 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
585
586 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
587 properly.
588
589 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
590
591 PR debug/41343
592 PR debug/41447
593 PR debug/41264
594 PR debug/41338
595 * tree.def (DEBUG_EXPR_DECL): New.
596 * rtl.def (DEBUG_EXPR): New.
597 * gengtype.c (adjust_field_rtx_def): Handle it.
598 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
599 (insert_debug_temp_for_var_def): ... this. Drop support for
600 moving. Take iterator for def stmt; insert debug stmt before it.
601 Scan early for use count and kind in debug stmts.
602 (propagate_defs_into_debug_stmts): Rename to...
603 (insert_debug_temps_for_defs): ... this. Likewise.
604 * tree.h (DEBUG_TEMP_UID): New.
605 * tree.c (next_debug_decl_uid): New.
606 (make_node_stat): Count debug decls separately.
607 (copy_node_stat): Likewise.
608 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
609 * var-tracking.c (dv_is_decl_p): Recognize it.
610 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
611 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
612 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
613 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
614 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
615 (cselib_hash_rtx): Likewise.
616 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
617 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
618 debug bind stmts.
619 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
620 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
621 * rtl.c (copy_rtx): Likewise.
622 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
623 * print-rtl.c (print_rtx): Likewise.
624 * sched-vis.c (print_value): Likewise.
625 (print_insn): Handle DEBUG_EXPR_DECL.
626 * tree-dump.c (dequeue_and_dump): Likewise.
627 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
628 * gimple-iterator (gsi_replace): Check for same lhs.
629 (gsi_remove): Insert debug temps.
630 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
631 (move_computations_stmt): Drop explicit propagation into debug stmts.
632 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
633 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
634 * tree-ssa-sink.c (statement_sink_location): Likewise.
635 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
636 * tree-ssanames.c (release_ssa_name): Adjust for rename.
637 * tree-flow.h: Likewise.
638 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
639 debug temps without values.
640 (eliminate_unnecessary_stmts): Don't discard just-inserted
641 debug stmts.
642
643 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
644
645 PR target/26515
646 * config/cris/cris.md (andu): Check that operand 1 is one of the
647 general registers. Fix typo in head comment.
648
649 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
650
651 * config/i386/i386.md (vswapmov): New.
652 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
653 (ix86_function_ms_hook_prologue): New.
654 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
655 * configure.ac: Test for swap suffix support in as.
656 * configure: Rebuild.
657
658 2009-10-12 Jakub Jelinek <jakub@redhat.com>
659
660 PR target/41680
661 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
662 paradoxical subregs to prevent partial register stalls if the inner
663 mode is integer mode.
664
665 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
666
667 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
668
669 2009-10-12 Dodji Seketeli <dodji@redhat.com>
670
671 PR c++/41570
672 * gcc/dwarf2out.c (template_parameter_pack_die,
673 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
674
675 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
676
677 PR debug/41616
678 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
679 on updates too.
680 (maybe_register_def): Likewise. Take stmt iterator.
681 (rewrite_update_stmt): Take stmt iterator and pass it on.
682 (rewrite_update_enter_block): Pass stmt iterator.
683
684 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
685
686 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
687 (spu_builtin_decl): New function.
688
689 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
690
691 * config/i386/i386.md (SWIM): New mode iterator.
692 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
693 using SWIM mode iterator.
694 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
695 patterns using SWI48 mode iterator.
696 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
697 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
698 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
699 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
700 patterns using SWI248 mode iterator.
701 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
702 gen_x86_movdicc_0_m1_rex64 for renamed function
703
704 2009-10-11 Jose Ruiz <ruiz@adacore.com>
705 Eric Botcazou <ebotcazou@adacore.com>
706
707 PR target/33743
708 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
709 * config/sparc/sol2-unwind.h: New file.
710
711 2009-10-11 Olivier Hainque <hainque@adacore.com>
712 Eric Botcazou <ebotcazou@adacore.com>
713
714 PR target/33743
715 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
716 * config/i386/sol2-unwind.h: New file.
717
718 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
719
720 PR target/41665
721 * config/i386/i386.md (addsi_1_zext): Get the proper second
722 operand for lea.
723
724 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
725
726 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
727 all OLD_RTXes, not just REGs. Use copy_rtx to create the
728 replacement value.
729
730 2009-10-11 Richard Guenther <rguenther@suse.de>
731
732 * gimple.c (iterative_hash_type_name): Do not handle special
733 anonymous names.
734
735 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
736
737 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
738 (*setcc_si_1_and): Ditto.
739 (*setcc_si_1_movzbl): Ditto.
740 (*setcc_<mode>_2): Ditto.
741 (*setcc_qi): Rename from *setcc_1.
742 (*setcc_qi_slp): Rename from *setcc_2.
743
744 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
745 (*zero_extendqisi2_movzbw_and splitter): Ditto.
746
747 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
748 "if" condition, there is already assert with reload_completed present.
749
750 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
751
752 * plugin.c (try_init_one_plugin): Improve constness of variable err.
753
754 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
755
756 * doc/install.texi (Final install): Refer to
757 http://gcc.gnu.org/bugs/ for bug reporting.
758
759 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
760
761 * configure.ac: Add test for dci instruction.
762 * configure: Regenerate.
763 * config.in: Likewise.
764 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
765 * doc/invoke.texi: Add cpu_type 476 and 476fp.
766 (-mmulhw): Add 476 to description.
767 (-mdlmzb): Likewise.
768 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
769 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
770 (processor_target_table): Add 476 and 476fp entries.
771 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
772 (rs6000_issue_rate): Add CPU_PPC476.
773 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
774 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
775 (processor_type): Add PROCESSOR_PPC476.
776 (EXTRA_SPECS): Add asm_cpu_476 string.
777 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
778 (define_attr "cpu"): Add ppc476.
779 Include 476.md.
780 Update comments for 476.
781 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
782 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
783 Update copyright year.
784 * config/rs6000/476.md: New file.
785 * config/rs6000/40x.md: Add description for "isel" attribute.
786 Update copyright year.
787 * config/rs6000/440.md: Likewise.
788 * config/rs6000/603.md: Likewise.
789 * config/rs6000/6xx.md: Likewise.
790 * config/rs6000/7450.md: Likewise.
791 * config/rs6000/7xx.md: Likewise.
792 * config/rs6000/8540.md: Likewise.
793 * config/rs6000/cell.md: Likewise.
794 * config/rs6000/e300c2c3.md: Likewise.
795 * config/rs6000/e500mc.md: Likewise.
796 * config/rs6000/mpc.md: Likewise.
797 * config/rs6000/power4.md: Likewise.
798 * config/rs6000/power5.md: Likewise.
799 * config/rs6000/power6.md: Likewise.
800 * config/rs6000/power7.md: Likewise.
801 * config/rs6000/rios1.md: Likewise.
802 * config/rs6000/rios2.md: Likewise.
803 * config/rs6000/rs64.md: Likewise.
804
805 2009-10-10 Richard Guenther <rguenther@suse.de>
806
807 PR tree-optimization/41654
808 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
809 a cond expr before calling gimple_cond_set_condition_from_tree.
810 (ifcombine_iforif): Likewise.
811
812 2009-10-09 Ian Lance Taylor <iant@google.com>
813
814 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
815 * configure: Rebuild.
816
817 2009-10-09 Neil Vachharajani <nvachhar@google.com>
818
819 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
820 deprecated.
821
822 2009-10-09 Richard Guenther <rguenther@suse.de>
823
824 PR lto/41638
825 * target-def.h (TARGET_BUILTIN_DECL): Define.
826 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
827 * target.h (struct gcc_target): Add builtin_decl target hook.
828 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
829 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
830 target builtins.
831 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
832 not gcc_unreachable.
833 (lto_output_builtin_tree): Sorry if the target does not support
834 streaming target builtins.
835 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
836 (rs6000_builtin_decl): New function.
837 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
838 (ix86_builtin_decl): New function.
839
840 2009-10-09 Jakub Jelinek <jakub@redhat.com>
841
842 PR preprocessor/41445
843 * c-ppoutput.c (do_line_change): New function.
844 (cb_line_change): Use it.
845 (scan_translation_unit): Call do_line_change if
846 avoid_paste or PREV_WHITE and token location is on a different line
847 than print.src_line.
848
849 PR debug/40521
850 * dwarf2out.c (dwarf2out_init): Test whether
851 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
852 it is defined.
853
854 PR rtl-optimization/41646
855 * calls.c (expand_call): For BLKmode types returned in registers
856 avoid likely spilled hard regs in copy_blkmode_from_reg generated
857 insns.
858
859 2009-10-09 Richard Guenther <rguenther@suse.de>
860
861 PR tree-optimization/41634
862 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
863 we remove the correct elements.
864 (optimize_stmt): Make sure to update stmt operands before
865 optimizing redundancies.
866
867 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
868
869 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
870
871 2009-10-09 Richard Guenther <rguenther@suse.de>
872
873 PR driver/41637
874 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
875 globals.
876 (lto_wrapper_exit): New function.
877 (fatal): Use it.
878 (fatal_perror): Likewise.
879 (fork_execute): Use global args_name, do not free it.
880 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
881 * lto-streamer.h: Remove duplicate prototypes.
882
883 2009-10-09 Richard Guenther <rguenther@suse.de>
884
885 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
886 before calling stmt_can_throw_external.
887
888 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
889
890 PR tree-optimization/40071
891 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
892 pointer if the original data reference doesn't conflict with the
893 created vector data reference. Fix long line.
894
895 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
896
897 * config/i386/i386.md (any_div): New code iterator.
898 (u): Handle div and udiv.
899 (sgnprefix): Ditto.
900 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
901 code iterator.
902 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
903 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
904 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
905 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
906
907 2009-10-08 Joseph Myers <joseph@codesourcery.com>
908
909 * gcc.c (main): Remove trailing "." from diagnostics.
910
911 2009-10-08 Cary Coutant <ccoutant@google.com>
912
913 Add support for debugging with ICF (Identical Code Folding).
914 * calls.c (debug.h): New #include.
915 (emit_call_1): Call virtual_call_token debug hook.
916 * common.opt (-fenable-icf-debug): New option.
917 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
918 locations in the source).
919 (poc_label_num): New variable.
920 (dcall_entry, vcall_entry): New typedefs.
921 (dcall_table, vcall_table): New variables.
922 (struct vcall_insn): New type.
923 (vcall_insn_table): New variable.
924 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
925 (size_of_dcall_table): New function.
926 (output_dcall_table): New function.
927 (size_of_vcall_table): New function.
928 (output_vcall_table): New function.
929 (dwarf2out_direct_call): New function.
930 (vcall_insn_table_hash): New function.
931 (vcall_insn_table_eq): New function.
932 (dwarf2out_virtual_call_token): New function.
933 (dwarf2out_virtual_call): New function.
934 (dwarf2out_init): Allocate new tables and sections.
935 (prune_unused_types): Mark DIEs referenced from direct call table.
936 (dwarf2out_finish): Output direct and virtual call tables.
937 * final.c (final_scan_insn): Call direct_call and virtual_call
938 debug hooks.
939 * debug.h (struct gcc_debug_hooks): Add direct_call,
940 virtual_call_token, virtual_call hooks.
941 (debug_nothing_uid): New function.
942 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
943 (debug_nothing_uid): New function.
944 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
945 (xcoff_debug_hooks): Likewise.
946 * sdbout.c (sdb_debug_hooks): Likewise.
947 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
948 * doc/invoke.texi (-fenable-icf-debug): New option.
949
950 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
951
952 PR debug/41353
953 * regmove.c (regmove_backward_pass): Replace src with dst in the
954 debug insn, and check for dst before rather than after.
955
956 2009-10-08 Janis Johnson <janis187@us.ibm.com>
957
958 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
959 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
960
961 2009-10-08 Jan Hubicka <jh@suse.cz>
962
963 PR middle-end/41626
964 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
965 do not mark cgraph nodes as needed.
966 (record_references_in_initializer): Add new only_vars parameter.
967 * cgraph.h (record_references_in_initializer): New parameter.
968 * varasm.c (assemble_variable): Update call.
969 * varpool.c (varpool_analyze_pending_decls): Always look for
970 referenced vars.
971
972 2009-10-08 Anatoly Sokolov <aesok@post.ru>
973
974 * config/avr/avr.c (last_insn_address) Remove variable.
975 (expand_prologue): Don't initialise last_insn_address variable.
976 (final_prescan_insn): Don't output insn size.
977 * config/avr/avr.opt (msize): Remove switch.
978 * doc/invoke.texi (AVR Options): Remove documentation of -msize
979 switch.
980
981 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
982
983 * combine.c (label_tick_ebb_start): Fix comment.
984 (combine_instructions): Set label_tick and label_tick_ebb_start before
985 calling setup_incoming_promotions. Start them from 1. Increment
986 label_tick instead of deriving it from the BB index. Rather than
987 comparing ticks use the block from the previous iteration to decide
988 whether to start a new EBB. Remove empty lines before function.
989
990 2009-10-08 Michael Matz <matz@suse.de>
991
992 PR middle-end/41573
993 * builtins.c (fold_builtin_isascii): Use fold_build2.
994 (fold_builtin_isdigit): Ditto.
995 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
996 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
997 remove_useless_stmts_cond, remove_useless_stmts_tf,
998 remove_useless_stmts_tc, remove_useless_stmts_bind,
999 remove_useless_stmts_goto, remove_useless_stmts_label,
1000 remove_useless_stmts_1, remove_useless_stmts,
1001 pass_remove_useless_stmts): Remove.
1002 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
1003 * passes.c (init_optimization_passes): Don't add
1004 pass_remove_useless_stmts.
1005 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
1006 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
1007 static constants.
1008 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
1009 for static constants.
1010 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
1011 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
1012
1013 2009-10-08 Richard Guenther <rguenther@suse.de>
1014
1015 * gimple.c (free_gimple_type_tables): New function.
1016 * gimple.h (free_gimple_type_tables): Declare.
1017
1018 2009-10-07 Mark Heffernan <meheff@google.com>
1019
1020 * ipa-prop.c (ipa_print_node_params) Only print
1021 names of named arguments.
1022
1023 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
1024
1025 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
1026 being statically linked.
1027
1028 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1029
1030 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
1031
1032 2009-10-08 Jan Hubicka <jh@suse.cz>
1033
1034 PR bootstrap/41620
1035 * ipa.c (cgraph_externally_visible_p,
1036 function_and_variable_visibility,
1037 whole_program_function_and_variable_visibility): Skip non-finalized
1038 nodes.
1039
1040 2009-10-08 Nick Clifton <nickc@redhat.com>
1041
1042 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
1043 CONST_DOUBLEs.
1044
1045 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
1046
1047 PR bootstrap/37739
1048 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
1049
1050 2009-10-07 Joseph Myers <joseph@codesourcery.com>
1051
1052 PR c/41182
1053 * c-common.c (c_fully_fold_internal): Strip nops from the result
1054 of recursive calls to c_fully_fold_internal.
1055 (c_wrap_maybe_const): New.
1056 (c_save_expr): Use c_wrap_maybe_const.
1057 * c-common.h (c_wrap_maybe_const): Declare.
1058 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
1059 build_binary_op): Use c_wrap_maybe_const.
1060
1061 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1062
1063 * real.c: Fix comment to reflect actual exponent size.
1064
1065 2009-10-08 Ben Elliston <bje@au.ibm.com>
1066
1067 * config/rs6000/a2.md: Add FSF comment header.
1068
1069 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
1070
1071 * config/i386/i386.md (any_extend): New code iterator.
1072 (u, s): New code attributes.
1073 (sgnprefix): Ditto.
1074 (DWIH): Rewrite as code iterator for SI and DI modes.
1075 (DWI): Rewrite as mode attribute.
1076 (dwi): New mode attribute.
1077 (di): Depend on SI mode and DI mode.
1078 (doubleint_general_operand): Remove mode attribute.
1079
1080 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1081 DWIH mode iterator.
1082
1083 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1084 (*sub<mode>3_doubleword): Ditto.
1085
1086 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1087 using SWIM248 mode iterator.
1088 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1089 using SWI48 mode iterator.
1090 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1091 patterns using DWIH mode iterator and any_extend code iterator.
1092 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1093 using any_extend code iterator.
1094 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1095 patterns using DWIH mode iterator and any_extend code iterator.
1096 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1097 using any_extend code iterator.
1098 (<s>mul<mode>3_highpart): Macroize expander from
1099 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1100 and any_extend code iterator.
1101 (*<s>muldi3_highpart_1): Macroize insn from
1102 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1103 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1104 patterns using any_extend code iterator.
1105 (*<s>mulsi3_highpart_zext): Macroize insn from
1106 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1107
1108 2009-10-07 Jakub Jelinek <jakub@redhat.com>
1109
1110 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1111 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1112 refering to a DIE with DW_AT_const_value.
1113
1114 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
1115
1116 PR middle-end/22072
1117 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1118
1119 2009-10-06 Jan Hubicka <jh@suse.cz>
1120
1121 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1122 correctly.
1123
1124 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1125
1126 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1127 *lea_2_rex64): Move before *add<mode>_1 pattern.
1128
1129 2009-10-07 Jan Hubicka <jh@suse.cz>
1130
1131 * collect2.c (main): Add -fno-whole-program.
1132 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1133
1134 2009-10-07 Jan Hubicka <jh@suse.cz>
1135
1136 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1137 has no address taken.
1138 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1139 never needed.
1140 (cgraph_clone_node): Clear externally_visible flag for clones.
1141 * cgraph.h (cgraph_only_called_directly_p,
1142 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1143 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1144 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1145 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1146 ipcp_insert_stage): Likwise.
1147 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1148 externally_visible flag.
1149 (verify_cgraph_node): Verify that inline clones look right.
1150 (process_function_and_variable_attributes): Do not set
1151 externally_visible flags.
1152 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1153 been already run.
1154 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1155 boundaries.
1156 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1157 clear externally_visible when turning into inline clones
1158 (cgraph_mark_inline_edge): Use new predicates.
1159 (cgraph_estimate_growth): Likewise.
1160 (cgraph_decide_inlining): Likewise.
1161 * ipa.c (cgraph_postorder): Likewise.
1162 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1163 that inline clones are not needed.
1164 (cgraph_externally_visible_p): New predicate.
1165 (function_and_variable_visibility): Add whole_program parameter;
1166 always set externally_visible flag; handle COMDAT function
1167 privatization.
1168 (local_function_and_variable_visibility): New function.
1169 (gate_whole_program_function_and_variable_visibility): New function.
1170 (whole_program_function_and_variable_visibility): New function.
1171 (pass_ipa_whole_program_visibility): New function.
1172 * passes.c (init_optimization_passes): Add whole program visibility
1173 pass.
1174 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1175 not care about needed/reachable flags.
1176 * varpool.c: Include flags.h
1177 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1178 (varpool_finalize_decl): When we are in LTO read-back, all variables
1179 are analyzed.
1180 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1181
1182 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1183
1184 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1185 add MASK_HARD_DFP.
1186
1187 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1188
1189 * config.gcc: Don't include the makefile fragments intended for
1190 libgcc.
1191 * config/s390/fixdfdi.h: File removed.
1192 * config/s390/libgcc-glibc.ver: File removed.
1193 * config/s390/s390.h: Remove the fixdfdi.h hack.
1194 * config/s390/t-crtstuff: File moved to libgcc dir.
1195 * config/s390/t-linux: Likewise.
1196 * config/s390/t-tpf: libgcc specific parts removed.
1197 * config/s390/t-linux64: Likewise.
1198
1199 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1200
1201 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1202 (lto-compress.o): Likewise.
1203
1204 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1205
1206 PR target/41512
1207 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1208 dllexport to class members here.
1209 (i386_pe_determine_dllimport_p): Only check static class data for
1210 definition.
1211 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1212 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1213 functions for vague linkage.
1214 (i386_pe_type_dllexport_p): Fix formatting.
1215 (maybe_add_dllexport) New function.
1216 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1217 to class members.
1218
1219 2009-10-07 Ben Elliston <bje@au.ibm.com>
1220
1221 * config/rs6000/a2.md: Remove duplicated lines.
1222
1223 2009-10-07 Ben Elliston <bje@au.ibm.com>
1224
1225 * config.gcc (powerpc*-*-*): Handle a2.
1226 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1227 * config/rs6000/a2.md: New file.
1228 * config/rs6000/rs6000.opt (mno-update): New.
1229 (mupdate): Return to using a mask, not a var.
1230 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1231 (enum processor_type): Add PROCESSOR_PPCA2.
1232 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1233 (rs6000_override_options): Add "a2" to processor_target_table.
1234 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1235 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1236
1237 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1238
1239 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1240 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1241 reference to nonexistent gen_truncxfxf2 function.
1242
1243 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1244
1245 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1246 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1247 (general_operand): Handle TI mode.
1248 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1249 using SDWIM mode iterator.
1250 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1251 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1252 using DWI mode iterator.
1253 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1254 patterns using SWI mode iterator.
1255 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1256 using SWI48 mode iterator.
1257 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1258 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1259 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1260 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1261 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1262 using SDWIM mode iterator.
1263 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1264 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1265 using DWI mode iterator.
1266 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1267 patterns using SWI mode iterator.
1268 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1269 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1270 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1271 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1272 patterns using plusminus code iterator.
1273 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1274 sub<mode>3 patterns using plusminus code iterator.
1275 * config/i386/i386.c (override_options): Update the call to
1276 gen_subdi_carry_rex64 for renamed function.
1277 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1278 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1279 calls to instruction expanders.
1280
1281 2009-10-06 Martin Jambor <mjambor@suse.cz>
1282
1283 PR bootstrap/41395
1284 * opts.c (decode_options): Run IPA-SRA at -O2.
1285
1286 2009-10-06 Richard Guenther <rguenther@suse.de>
1287
1288 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1289
1290 2009-10-06 Tobias Burnus <burnus@net-b.de>
1291
1292 PR lto/41591
1293 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1294 -flto and -fwhole-program flags can be combined.
1295
1296 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1297
1298 PR driver/41217
1299 * gcc.c (process_command): Check that -o argument was specified.
1300
1301 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1302
1303 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1304
1305 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1306
1307 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1308 * doc/invoke.texi (Warning Options): Annotate allowed languages
1309 for -Wunsuffixed-float-constants.
1310
1311 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1312
1313 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1314 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1315 same name and isn't the main variant.
1316
1317 PR debug/41558
1318 * dwarf2out.c (loc_by_reference): Removed.
1319 (dw_loc_list_1): New function.
1320 (dw_loc_list): Remove toplev argument, add want_address argument.
1321 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1322 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1323 want_address == 2 to dw_loc_list. For successful dw_loc_list
1324 set have_address to 1 only if want_address is not 0.
1325
1326 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1327
1328 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1329 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1330 a code block followed by two pointers.
1331 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1332 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1333 (MIPS_MOVE): Likewise.
1334 (MIPS_LUI): Likewise.
1335 (MIPS_JR): Likewise.
1336 (MIPS_BAL): Likewise.
1337 (MIPS_NOP): Likewise.
1338 (mips_asm_trampoline_template): Delete.
1339 (mips_trampoline_code_size): New function.
1340 (mips_trampoline_init): Add shorter sequences for all cases
1341 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1342 Calculate the opcodes directly, rather than copying from a template.
1343 Only flush the code part of the trampoline.
1344 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1345
1346 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1347
1348 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1349 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1350 (INCOMING_RETURN_ADDR_RTX): Likewise.
1351 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1352 with AT_REGNUM.
1353 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1354 with RETURN_ADDR_REGNUM.
1355 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1356 * config/mips/mips.c (mips16_build_call_stub): Replace
1357 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1358 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1359 (mips_print_operand_punctuation): Likewise.
1360 (mips_frame_set): Likewise.
1361 (mips16e_output_save_restore): Likewise.
1362 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1363 (mips_save_reg_p): Likewise.
1364 (mips_return_addr): Likewise.
1365 (mips_set_return_address): Likewise.
1366 (mips_direct_save_slot_move_p): Likewise.
1367 (mips_output_function_prologue): Likewise.
1368 (mips_restore_reg): Likewise.
1369 (mips_expand_epilogue): Likewise.
1370 (mips_epilogue_uses): Likewise.
1371 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1372 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1373 (clear_hazard_<mode>): Likewise.
1374 (call_internal): Likewise.
1375 (call_internal_direct): Likewise.
1376 (call_direct_split): Likewise.
1377 (call_value_internal): Likewise.
1378 (call_value_split): Likewise.
1379 (call_value_internal_direct): Likewise.
1380 (call_value_direct_split): Likewise.
1381 (call_value_multiple_internal): Likewise.
1382 (call_value_multiple_split): Likewise.
1383
1384 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1385 Jakub Jelinek <jakub@redhat.com>
1386
1387 PR rtl-optimization/41511
1388 * combine.c (record_value_for_reg): Pass explicit values as argument
1389 to get_last_value_validate.
1390 (get_last_value_validate): Document INSN parameter.
1391 For non-readonly MEMs, assume they might have been modified if INSN
1392 was in another basic block.
1393 (get_last_value): Minor reformatting.
1394
1395 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1396
1397 PR tree-opt/40992
1398 * final.c (asm_str_count): Split out from asm_insn_count.
1399 * rtl.h (asm_str_count): New prototype.
1400 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1401 asm_str_count.
1402
1403 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1404
1405 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1406
1407 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1408 Rafael Espindola <espindola@google.com>
1409
1410 * gengtype.c (write_types): Moved call to write_func_for_structure
1411 into seperate loops.
1412
1413 2009-10-05 Richard Guenther <rguenther@suse.de>
1414
1415 PR lto/41281
1416 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1417 (input_cgraph_1): Input toplevel asms.
1418
1419 2009-10-05 Richard Guenther <rguenther@suse.de>
1420
1421 PR lto/40902
1422 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1423 (external_aggregate_decl_p): Likewise.
1424 (lto_symtab_compatible): Re-structure. Remove dead code.
1425 For variables ignore toplevel qualifiers when comparing types.
1426 Issue warnings, not errors for mismatched user-alignment.
1427
1428 2009-10-05 Richard Guenther <rguenther@suse.de>
1429
1430 PR lto/41552
1431 PR lto/41487
1432 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1433 (struct lto_symtab_identifier_def): Likewise.
1434 (struct lto_symtab_decl_def): Likewise.
1435 (struct lto_symtab_entry_def): New.
1436 (lto_symtab_identifier_t): Rename to ...
1437 (lto_symtab_entry_t): ... this.
1438 (lto_symtab_decls): Remove.
1439 (lto_symtab_base_hash): Rename to ...
1440 (lto_symtab_entry_hash): ... this.
1441 (lto_symtab_base_eq): Rename to ...
1442 (lto_symtab_entry_eq): ... this.
1443 (lto_symtab_base_marked_p): Rename to ...
1444 (lto_symtab_entry_marked_p): ... this.
1445 (lto_symtab_identifier_marked_p): Remove.
1446 (lto_symtab_decl_marked_p): Likewise.
1447 (lto_symtab_maybe_init_hash_tables): Rename to ...
1448 (lto_symtab_maybe_init_hash_table): ... this.
1449 (lto_symtab_set_resolution_and_file_data): Remove.
1450 (lto_symtab_register_decl): New function.
1451 (lto_symtab_get_identifier): Remove.
1452 (lto_symtab_get): New function.
1453 (lto_symtab_get_resolution): Adjust.
1454 (lto_symtab_get_identifier_decl): Remove.
1455 (lto_symtab_set_identifier_decl): Likewise.
1456 (lto_symtab_merge_decl): Rename to ...
1457 (lto_symtab_merge): ... this. Rewrite.
1458 (lto_symtab_merge_var): Remove.
1459 (lto_symtab_merge_fn): Likewise.
1460 (lto_symtab_prevailing_decl): Adjust.
1461 (lto_cgraph_replace_node): New function.
1462 (lto_symtab_merge_decls_2): Likewise.
1463 (lto_symtab_merge_decls_1): Likewise.
1464 (lto_symtab_fixup_var_decls): Likewise.
1465 (lto_symtab_resolve_symbols): Likewise.
1466 (lto_symtab_merge_decls): Likewise.
1467 (lto_symtab_prevailing_decl): Adjust.
1468 (lto_symtab_get_symtab_def): Remove.
1469 (lto_symtab_get_file_data): Likewise.
1470 (lto_symtab_clear_resolution): Adjust.
1471 (lto_symtab_clear_resolution): Likewise.
1472 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1473 (input_cgraph_1): Likewise.
1474 * lto-streamer-in.c (get_resolution): Do not provide fake
1475 symbol resolutions here.
1476 (deferred_global_decls): Remove.
1477 (lto_register_deferred_decls_in_symtab): Likewise.
1478 (lto_register_var_decl_in_symtab): Change signature, register
1479 variable via lto_symtab_register_decl.
1480 (lto_register_function_decl_in_symtab): Likewise.
1481 (lto_read_tree): Adjust.
1482 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1483 (lto_symtab_merge_var): Likewise.
1484 (lto_symtab_merge_fn): Likewise.
1485 (lto_symtab_register_decl): Declare.
1486 (lto_symtab_merge_decls): Likewise.
1487
1488 2009-10-05 Richard Guenther <rguenther@suse.de>
1489
1490 PR tree-optimization/23821
1491 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1492 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1493 simple IV increments.
1494
1495 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1496
1497 * config/arm/arm.c (arm_override_options): Really initialize
1498 flag_dwarf2_cfi_asm to 0.
1499
1500 2009-10-05 Doug Kwan <dougkwan@google.com>
1501
1502 PR rtl-optimization/41574
1503 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1504 floating point and we are not doing unsafe math optimizations.
1505
1506 2009-10-03 Simon Baldwin <simonb@google.com>
1507 Cary Coutant <ccoutant@google.com>
1508 Rafael Espindola <espindola@google.com>
1509 Richard Guenther <rguenther@suse.de>
1510 Jan Hubicka <jh@suse.cz>
1511 Doug Kwan <dougkwan@google.com>
1512 H.J. Lu <hongjiu.lu@intel.com>
1513 Bill Maddox <maddox@google.com>
1514 Ryan Mansfield <rmansfield@qnx.com>
1515 Diego Novillo <dnovillo@google.com>
1516 Ollie Wild <aaw@google.com>
1517 Kenneth Zadeck <zadeck@naturalbridge.com>
1518
1519 * lto-cgraph.c: New file.
1520 * lto-compress.c: New file.
1521 * lto-compress.h: New file.
1522 * lto-opts.c: New file.
1523 * lto-section-in.c: New file.
1524 * lto-section-out.c: New file.
1525 * lto-streamer-in.c: New file.
1526 * lto-streamer-out.c: New file.
1527 * lto-streamer.c: New file.
1528 * lto-streamer.h: New file.
1529 * lto-symtab.c: New file.
1530 * lto-wpa-fixup.c: New file.
1531 * lto-wrapper.c: New file.
1532
1533 2009-10-03 Simon Baldwin <baldwin@google.com>
1534 Ben Elliston <bje@au.ibm.com>
1535 Rafael Espindola <espindola@google.com>
1536 Nathan Froyd <froydnj@codesourcery.com>
1537 Jan Hubicka <jh@suse.cz>
1538 Doug Kwan <dougkwan@google.com>
1539 Diego Novillo <dnovillo@google.com>
1540 Kenneth Zadeck <zadeck@naturalbridge.com>
1541
1542 * Makefile.in (enable_lto): New.
1543 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1544 (LINKER_PLUGIN_API_H): Define.
1545 (LTO_SYMTAB_H): Define.
1546 (LTO_STREAMER_H): Define.
1547 (TREE_VECTORIZER_H): Define.
1548 (INCLUDES): Add LIBELFINC.
1549 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1550 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1551 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1552 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1553 (native): Add lto-wrapper$(exeext)
1554 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1555 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1556 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1557 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1558 (varasm.o): Add dependency on tree-iterator.h.
1559 (cgraph.o): Add dependency on cif-code.def.
1560 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1561 (ipa-pure-const.o): Likewise.
1562 (GTFILES): Add lto-symtab.c.
1563 (install-lto-wrapper): New.
1564 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1565 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1566 * config.in: Regenerate.
1567
1568 2009-10-03 Rafael Espindola <espindola@google.com>
1569 Diego Novillo <dnovillo@google.com>
1570
1571 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1572 ipa_write_summaries.
1573 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1574 all_lto_gen_passes.
1575 (cgraph_optimize): Make extern.
1576
1577 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1578 Kenneth Zadeck <zadeck@naturalbridge.com>
1579
1580 * toplev.c (in_lto_p): Declare.
1581 * collect2.c (scan_prog_file): Read all the output when reading
1582 information for LTO.
1583 (enum lto_mode_d): Declare.
1584
1585 2009-10-03 Richard Guenther <rguenther@suse.de>
1586 Diego Novillo <dnovillo@google.com>
1587
1588 * gimple.c: Include target.h and alias.h.
1589 (gimple_types): Declare.
1590 (type_hash_cache): Declare.
1591 (gimple_alloc_stat): Make extern.
1592 (gimple_build_eh_must_not_throw): Call
1593 gimple_eh_must_not_throw_set_fndecl.
1594 (struct type_pair_d): Declare.
1595 (type_pair_t): Declare.
1596 (type_pair_hash): New.
1597 (type_pair_eq): New.
1598 (lookup_type_pair): New.
1599 (gimple_force_type_merge): New.
1600 (compare_type_names_p): New.
1601 (compare_field_offset): New.
1602 (gimple_types_compatible_p): New.
1603 (struct sccs): Declare.
1604 (next_dfs_num): Declare.
1605 (iterative_hash_gimple_type): New.
1606 (visit): New.
1607 (iterative_hash_type_name): New.
1608 (iterative_hash_gimple_type): New.
1609 (gimple_type_hash): New.
1610 (gimple_type_eq): New.
1611 (gimple_register_type): New.
1612 (print_gimple_types_stats): New.
1613 (gimple_signed_or_unsigned_type): New.
1614 (gimple_unsigned_type): New.
1615 (gimple_signed_type): New.
1616 (gimple_get_alias_set): New.
1617 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1618 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1619 (gimple_force_type_merge): Declare.
1620 (gimple_types_compatible_p): Declare.
1621 (gimple_register_type): Declare.
1622 (print_gimple_types_stats): Declare.
1623 (gimple_unsigned_type): Declare.
1624 (gimple_signed_type): Declare.
1625 (gimple_get_alias_set): Declare.
1626 (gimple_eh_must_not_throw_set_fndecl): New.
1627
1628 2009-10-03 Jan Hubicka <jh@suse.cz>
1629 Kenneth Zadeck <zadeck@naturalbridge.com>
1630
1631 * ipa-pure-const.c: Include lto-streamer.h.
1632 (register_hooks): Factor out of ...
1633 (generate_summary): ... here.
1634 (pure_const_write_summary): New.
1635 (pure_const_read_summary): New.
1636 (pass_ipa_pure_const): Add pure_const_write_summary and
1637 pure_const_read_summary.
1638 * ipa-reference.c: Include lto-streamer.h.
1639 (add_new_function): New.
1640 (remove_node_data): New.
1641 (duplicate_node_data): New.
1642 (ipa_init): Guard against multiple calls.
1643 Move hook setup from analyze_function.
1644 (write_node_summary_p): New.
1645 (ipa_reference_write_summary): New.
1646 (ipa_reference_read_summary): New.
1647 (pass_ipa_reference): Add ipa_reference_write_summary and
1648 ipa_reference_read_summary.
1649 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1650 (struct cgraph_edge): Add fields lto_stmt_uid and
1651 call_stmt_cannot_inline_p.
1652 (cgraph_optimize): Declare.
1653 (cgraph_decide_is_function_needed): Declare.
1654 (reset_inline_failed): Declare.
1655 (enum LTO_cgraph_tags): Declare.
1656 (LTO_cgraph_tag_names): Declare.
1657 (LCC_NOT_FOUND): Define.
1658
1659 2009-10-03 Doug Kwan <dougkwan@google.com>
1660 Rafael Espindola <espindola@google.com>
1661 Jan Hubicka <jh@suse.cz>
1662 Diego Novillo <dnovillo@google.com>
1663 Kenneth Zadeck <zadeck@naturalbridge.com>
1664
1665 * passes.c (all_regular_ipa_passes): New.
1666 (all_ipa_passes): Rename to all_small_ipa_passes.
1667 (init_optimization_passes): Init all_regular_ipa_passes.
1668 * tree-pass.h (all_regular_ipa_passes): New.
1669 (all_ipa_passes): Rename to all_small_ipa_passes.
1670 * passes.c (all_lto_gen_passes): New.
1671 (init_optimization_passes): Initialize all_lto_gen_passes.
1672 (execute_ipa_summary_passes): Make non-static.
1673 (ipa_write_summaries_1): New.
1674 (ipa_write_summaries_2): New.
1675 (ipa_write_summaries): New.
1676 (ipa_write_summaries_of_cgraph_node_set): New.
1677 (ipa_read_summaries_1): New.
1678 (ipa_read_summaries): New.
1679 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1680 (execute_regular_ipa_pass_list): Remove.
1681 (init_optimization_passes): Schedule
1682 pass_rebuild_cgraph_edges and pass_early_inline outside
1683 of pass_all_early_optimizations. Document reason.
1684 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1685 pass_ipa_lto_finish_out): New pass.
1686 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1687 (execute_all_ipa_transforms): New.
1688 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1689 (dump_properties, debug_properties): New.
1690 * tree-optimize.c (gate_all_early_local_passes): Return
1691 false if we are in lto1.
1692 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1693 * tree-pass.h (execute_all_ipa_transforms): Declare.
1694 (pass_ipa_function_and_variable_visibility): Declare.
1695 (pass_ipa_early_inline): Declare.
1696 (pass_ipa_lto_gimple_out): Declare.
1697 (pass_ipa_lto_wpa_fixup): Declare.
1698 (pass_ipa_lto_finish_out): Declare.
1699 (all_small_ipa_passes, all_regular_ipa_passes,
1700 all_lto_gen_passes): Declare.
1701 (execute_ipa_summary_passes): Declare.
1702 (execute_all_ipa_transforms): Declare.
1703 (ipa_write_summaries): Declare
1704 (ipa_write_summaries_of_cgraph_node_set): Declare.
1705 (ipa_read_summaries): Declare.
1706
1707 2009-10-03 Doug Kwan <dougkwan@google.com>
1708 Ollie Wild <aaw@google.com>
1709
1710 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1711
1712 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1713 (lto_mode): New variable.
1714 (maybe_run_lto_and_relink): Handle the -fwpa option.
1715 (main): Handle the -fwpa option.
1716 (maybe_unlink_list): New function.
1717 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1718 * common.opt (flto): New flag.
1719 * toplev.c (flag_generate_lto): Declare.
1720
1721 2009-10-03 Simon Baldwin <simonb@google.com>
1722
1723 * common.opt (flto-compression-level): New flag.
1724
1725 * opts.c: Include lto-opts.h.
1726 (handle_option): Call lto_register_user_option for each
1727 valid option handled.
1728 (decode_options): Clear registered options before the options
1729 handling loop.
1730
1731 2009-10-03 Cary Coutant <ccoutant@google.com>
1732
1733 * collect2.c (is_elf): New function.
1734 (scan_prog_file): Require LTO object to be in ELF format.
1735
1736 2009-10-03 Rafael Espindola <espindola@google.com>
1737
1738 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1739 libgcc to the linker.
1740
1741 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1742
1743 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1744 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1745 all callers.
1746 * collect2.h (collect_execute): Add flags argument.
1747 * tlink.c (tlink_execute): Update call to collect_execute.
1748 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1749 (use_linker_plugin): New.
1750 (use_linker_plugin_spec_function): New.
1751 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1752 (linker_plugin_file_spec): New.
1753 (lto_wrapper_spec): New.
1754 (lto_gcc_spec): New.
1755 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1756 (static_spec_functions): Add use-linker-plugin.
1757 (process_command): Handle -use-linker-plugin.
1758 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1759 linker_plugin_file_spec and lto_gcc_spec.
1760 (use_linker_plugin_spec_function): New.
1761
1762 2009-10-03 Richard Guenther <rguenther@suse.de>
1763
1764 PR lto/41547
1765 PR lto/41548
1766 * tree.h (is_lang_specific): Include LANG_TYPE.
1767 * tree.c (find_decls_types_r): Manually add interesting parts
1768 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1769
1770 * gimple.c (type_pair_hash): Make symmetric.
1771 (type_pair_eq): Likewise.
1772 (lookup_type_pair): Increase initial hashtable size.
1773 (gimple_force_type_merge): Rely on type-pair symmetry.
1774 (visit): Remove excessive checking code.
1775 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1776 (gimple_register_type): Remove getenv calls, shrink initial
1777 hashtable size.
1778
1779 PR middle-end/41502
1780 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1781 inline functions if not generating lto output.
1782
1783 PR lto/41379
1784 * toplev.c (finalize): In WPA mode remove the asm file.
1785
1786 2009-10-03 Doug Kwan <dougkwan@google.com>
1787
1788 * ipa-inline.c (cgraph_mark_inline): Check
1789 edge->call_stmt_cannot_inline_p instead of calling
1790 gimple_call_cannot_inline_p.
1791 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1792 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1793 (inline_generate_summary): Do nothing in LTRANS.
1794 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1795 exists before calling gimple_call_cannot_inline_p.
1796 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1797 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1798 Update new_edge->lto_stmt_uid.
1799 * cgraphbuild.c (reset_inline_failed): New.
1800
1801 * common.opt (fwpa): New flag.
1802 (fltrans): New option.
1803 * gcc.c (gcc_lto_option_t): New type.
1804 (current_lto_option): New variable.
1805 (lto_single_spec_function): Remove and is replaced by ..
1806 (lto_option_spec_function): New function.
1807 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1808 passing the -flto flag.
1809 (cc1_options): Separate non-LTO related parts into ..
1810 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1811 (lto1_options): New spec for lto FE.
1812 (link_lto_options): New spec for handling LTO flags in linker.
1813 (invoke_lto_single): Re-format to fit in 80 column. Replace
1814 lto-single with lto-option.
1815 (static_specs): Add cc1_non_lto_options, lto1_options and
1816 link_lto_options.
1817 (static_spec_function): Replace lto-single with lto-option.
1818 (process_command): Handle -flto, -fwpa and -fltran by setting
1819 current_lto_option and not passing it to subprocess unconditionally.
1820
1821 2009-10-03 Bill Maddox <maddox@google.com>
1822
1823 Add `gcc' driver support for link-time code generation (LTO).
1824
1825 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1826 (lto_flag, lto_objects, lto_o_file): New variables.
1827 (struct lto_object, struct lto_object_list): New structures.
1828 (collect_exit, handler): Remove LTO temporary output file on exit.
1829 (add_lto_object): New function.
1830 (maybe_run_lto_and_relink): New function. Perform link time code
1831 generation and relinking for object files containing LTO information.
1832 (main): Invoke maybe_run_lto_and_relink().
1833 (dump_argv): New function. For debugging, currently disabled.
1834 (scan_prog_file): Add LTO information pass.
1835 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1836 collect2.
1837 * toplev.c (compile_file): Emit assembler directive to create
1838 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1839
1840 2009-10-03 Diego Novillo <dnovillo@google.com>
1841
1842 * c.opt: Add LTO to warn_abi and warn_psabi.
1843
1844 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1845 inline function. Ignore language-specific nodes. Update all users.
1846 (find_decls_types_r): Do not traverse the subtrees of
1847 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1848 * tree.h (is_lang_specific): New.
1849 * langhooks.h (struct lang_hooks_for_decls): Remove
1850 may_need_assembler_name_p. Update all users.
1851
1852 * c-common.c (set_builtin_user_assembler_name): Move ...
1853 * builtins.c (set_builtin_user_assembler_name): ... here.
1854 (is_builtin_name): Add comment
1855 (is_builtin_fn): New.
1856 * except.c (output_ttype): Only call
1857 lookup_type_for_runtime if TYPE is not a runtime type.
1858
1859 * passes.c (register_pass): Call position_pass on
1860 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1861 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1862 (TV_IPA_LTO_DECL_IO): Define.
1863 (TV_IPA_LTO_CGRAPH_IO): Define.
1864 (TV_LTO): Define.
1865 (TV_WHOPR_WPA): Define.
1866 (TV_WHOPR_WPA_IO): Define.
1867 (TV_WHOPR_LTRANS): Define.
1868 (TV_WHOPR_WPA_FIXUP): Define.
1869 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1870 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1871 * tree-flow.h (tree_node_can_be_shared): Declare.
1872 * tree-inline.c (tree_can_inline_p): Check that E has a
1873 statement associated with it.
1874 * tree.c (free_lang_data_in_binf): Factor out of ...
1875 (free_lang_data_in_type): ... here.
1876 Call RECORD_OR_UNION_TYPE_P.
1877 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1878 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1879 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1880 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1881 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1882 (gate_free_lang_data): Return true if flag_generate_lto is set.
1883 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1884 * c-common.h (set_builtin_user_assembler_name): Move ...
1885 * tree.h (set_builtin_user_assembler_name): ... here.
1886
1887 * common.opt (flto-report): New flag.
1888 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1889 * collect2.c (scan_prog_file): Send the error output of
1890 'nm' to HOST_BIT_BUCKET.
1891
1892 2009-10-03 Ollie Wild <aaw@google.com>
1893
1894 * langhooks-def.h (lhd_begin_section): New function declaration.
1895 (lhd_write_section): New function declaration.
1896 (lhd_end_section): New function declaration.
1897 (LANG_HOOKS_BEGIN_SECTION): New macro.
1898 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1899 (LANG_HOOKS_END_SECTION): New macro.
1900 (LANG_HOOKS_LTO): New macro.
1901 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1902 * langhooks.c (output.h): Add include.
1903 (saved_section): New static variable.
1904 (lhd_begin_section): New function.
1905 (lhd_write_section_data): New function.
1906 (lhd_end_section): New function.
1907 * langhooks.h (struct lang_hooks_for_lto): New structure.
1908 (struct lang_hooks): Add member lto.
1909 * Makefile.in (langhooks.o): Add dependency on output.h.
1910
1911 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1912
1913 2009-10-03 Richard Guenther <rguenther@suse.de>
1914
1915 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1916 Handle LTO.
1917
1918 2009-10-03 Simon Baldwin <simonb@google.com>
1919 Richard Guenther <rguenther@suse.de>
1920 Janis Johnson <janis187@us.ibm.com>
1921 Doug Kwan <dougkwan@google.com>
1922 Diego Novillo <dnovillo@google.com>
1923 Ramana Radhakrishnan <ramana.r@gmail.com>
1924 Ollie Wild <aaw@google.com>
1925
1926 * doc/install.texi: Add documentation for libelf and --enable-lto.
1927 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1928 -flto-report, -flto-compression-level and -use-linker-plugin.
1929 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1930 Add section for LTO Testing.
1931
1932 2009-10-02 Cary Coutant <ccoutant@google.com>
1933
1934 Add support for comdat type sections for DWARF v4.
1935 Merge from dwarf4 branch.
1936
1937 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1938 (dw_die_ref): Define vector type.
1939 (enum dw_val_class): Add dw_val_class_data8.
1940 (struct dw_val_struct): Add v.val_data8.
1941 (comdat_type_node_ref): New type.
1942 (struct die_struct): Move die_symbol into a union; add new field
1943 die_type_node. Change all uses.
1944 (comdat_type_node): New type.
1945 (skeleton_chain_node): New type.
1946 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1947 (comdat_type_list): New variable.
1948 (dwarf_tag_name): Add DW_TAG_type_unit.
1949 (dwarf_attr_name): Add DW_AT_signature.
1950 (add_AT_data8): New function.
1951 (replace_child): New function.
1952 (move_all_children): New function.
1953 (print_signature): New function.
1954 (print_die): Print signature information; add dw_val_class_data8.
1955 (attr_checksum): Support dw_val_class_data8.
1956 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1957 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1958 (checksum_sleb128, checksum_uleb128): New functions.
1959 (checksum_die_context): New function.
1960 (loc_checksum_ordered): New function.
1961 (attr_checksum_ordered): New function.
1962 (struct checksum_attributes): New structure.
1963 (collect_checksum_attributes): New function.
1964 (die_checksum_ordered): New function.
1965 (generate_type_signature): New function.
1966 (same_dw_val_p): Add dw_val_class_data8.
1967 (is_symbol_die): Use new is_declaration_die function.
1968 (is_declaration_die): New function.
1969 (should_move_die_to_comdat): New function.
1970 (clone_die): New function.
1971 (clone_tree): New function.
1972 (clone_as_declaration): New function.
1973 (copy_declaration_context): New function.
1974 (generate_skeleton_ancestor_tree): New function.
1975 (generate_skeleton_bottom_up): New function.
1976 (generate_skeleton): New function.
1977 (remove_child_or_replace_with_skeleton): New function.
1978 (break_out_comdat_types): New function.
1979 (struct decl_table_entry): New type.
1980 (htab_decl_hash): New function.
1981 (htab_decl_eq): New function.
1982 (htab_decl_del): New function.
1983 (copy_ancestor_tree): New function.
1984 (copy_decls_walk): New function.
1985 (copy_decls_for_unworthy_types): New function.
1986 (build_abbrev_table): Don't assert on missing die_symbol when doing
1987 comdat type sections.
1988 (size_of_die): Use DW_FORM_sig8 for external references. Add
1989 dw_val_class_data8.
1990 (unmark_dies): Don't assert for unmarked dies when doing comdat
1991 type sections.
1992 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1993 (output_signature): New function.
1994 (output_die): Likewise.
1995 (output_compilation_unit_header): Mark output as DWARF version 3
1996 even if generating DWARF 4.
1997 (output_comdat_type_unit): New function.
1998 (output_line_info): Mark output as DWARF version 3 even if generating
1999 DWARF 4.
2000 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
2001 DWARF-4.
2002 (dwarf2out_end_source_file): Likewise.
2003 (prune_unused_types_walk_attribs): Don't follow references into
2004 comdat type sections.
2005 (prune_unused_types_mark): When generating type units, do not mark
2006 children of non-defining declarations of types; do mark children of
2007 type entries.
2008 (prune_unused_types): Process comdat type sections.
2009 (htab_ct_hash): New function.
2010 (htab_ct_eq): New function.
2011 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
2012 Add a pointer to the line table from type unit entries so
2013 DW_AT_decl_file has meaning.
2014 * varasm.c (default_elf_asm_named_section): Use identifier name as
2015 comdat key instead of lang hook.
2016
2017 2009-10-02 Neil Vachharajani <nvachhar@google.com>
2018
2019 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
2020
2021 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
2022
2023 * config/i386/i386.md (SWIM248): New mode iterator.
2024 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
2025 divmodhi4 patterns using SWIM248 macro.
2026 (*divmod<mode>4): Macroize insn_and_split pattern from
2027 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
2028 and their corresponding splitters usign SWIM248 macro. Split SImode
2029 insn to generate cltd and DImode insn to generate cqto instead of
2030 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
2031 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
2032 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
2033 *divmodsi_noext patterns using SWIM248 macro.
2034 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
2035 udivmodhi4 patterns using SWIM248 macro.
2036 (*udivmod<mode>4): Macroize insn_and_split pattern from
2037 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
2038 corresponding splitters using SWIM248 macro.
2039 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
2040 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
2041
2042 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
2043
2044 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
2045 of zero-sized element is zero-sized regardless of its extent.
2046
2047 2009-10-02 Jakub Jelinek <jakub@redhat.com>
2048
2049 PR debug/40521
2050 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
2051 * configure: Regenerated.
2052 * config.in: Regenerated.
2053 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
2054 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
2055 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
2056 not emitting .eh_frame, emit .cfi_sections .debug_frame
2057 directive.
2058
2059 PR debug/41404
2060 PR debug/41353
2061 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2062 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2063 with '\0'.
2064 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2065 vars use DECL_RTL with resetting it back to NULL afterwards.
2066 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2067 rtx_equal_p instead of asserting it is a SYMBOL_REF.
2068 (value_format): For dw_val_class_addr only use DW_FORM_addr if
2069 the attribute type allows it, otherwise use DW_FORM_dataN.
2070 (mem_loc_descriptor): Handle CONST_STRING.
2071 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2072 Handle MEM with CONST_STRING address using add_AT_string.
2073 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2074 CONST_STRING for const arrays initialized with a string literal.
2075 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2076 (dwarf2out_finish): Call resolve_addr.
2077
2078 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
2079 Maxim Kuvyrkov <maxim@codesourcery.com>
2080
2081 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2082
2083 2009-10-02 Nick Clifton <nickc@redhat.com>
2084
2085 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2086 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2087
2088 2009-10-01 Jan Hubicka <jh@suse.cz>
2089
2090 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2091 (cgraph_create_virtual_clone): Just pass redirect_callers
2092 around.
2093 * cgraph.h (cgraph_clone_node): Update prototype.
2094 * ipa-pure-const.c (self_recursive_p): New function.
2095 (propagate): Use it.
2096 * ipa-inline.c (cgraph_clone_inlined_nodes,
2097 cgraph_decide_recursive_inlining): Update.
2098
2099 2009-10-01 David Daney <ddaney@caviumnetworks.com>
2100
2101 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2102 instructions for TARGET_OCTEON.
2103
2104 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2105
2106 * config/arm/arm.c (arm_override_options): Turn off
2107 flag_dwarf2_cfi_asm for AAPCS variants.
2108
2109 2009-10-01 Martin Jambor <mjambor@suse.cz>
2110
2111 PR middle-end/12392
2112 * tree-sra.c (convert_callers): Do not call
2113 compute_inline_parameters on one caller more than once.
2114
2115 2009-10-01 Nick Clifton <nickc@redhat.com>
2116
2117 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2118 an empty string if not already defined.
2119
2120 2009-10-01 Martin Jambor <mjambor@suse.cz>
2121
2122 PR bootstrap/41395
2123 * tree-sra.c (is_va_list_type): New function.
2124 (find_var_candidates): Call is_va_list_type.
2125 (find_param_candidates): Check that the type or the type pointed
2126 to are not va_list types.
2127
2128 2009-10-01 Martin Jambor <mjambor@suse.cz>
2129
2130 PR c++/41503
2131 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2132 DECL_ARTIFICIAL (param_decl) is true.
2133
2134 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2135
2136 * tree.h (tree_decl_common::lang_flag_8): New.
2137 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2138 keyword.
2139 * c-common.h (RID_CONSTEXPR): New.
2140
2141 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2142
2143 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2144 Use ref-all pointers.
2145 (alpha_gimplify_va_arg): Ditto.
2146
2147 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2148
2149 PR target/41279
2150 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2151 before insn counting loop now that BB_END (bb) is counted. Ensure
2152 the return value isn't zero.
2153
2154 2009-09-30 Nick Clifton <nickc@redhat.com>
2155
2156 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2157 with separate definitions of c_target_objs and cxx_target_objs.
2158 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2159 and symbian-base.o.
2160 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2161 sh_symbian_import_export_class.
2162 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2163 * config/sh/symbian.c: Delete, moving code into...
2164 * config/sh/symbian-base.c: ... here
2165 * config/sh/symbian-c.c: ... and here
2166 * config/sh/symbian-cxx.c: ... and here.
2167
2168 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2169
2170 PR target/22093
2171 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2172 of plus RTX into register.
2173
2174 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2175
2176 * doc/install.texi: Linguistic and markup fixes.
2177 (Configuration) <--disable-cpp>: Remove description.
2178 <--enable-maintainer-mode>: Autotools files are affected, too.
2179 <--with-sysroot>: Improve description.
2180 (Building): Bump required GNU make version.
2181
2182 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2183
2184 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2185 (x86_64-*-*): Ditto.
2186
2187 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2188 intrinisics for FMA4.
2189 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2190 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2191 Add FMA4 check and fma4intrin.h.
2192 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2193 ISA_FLAG for FMA4.
2194 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2195 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2196 constant for FMA4 support.
2197 (UNSPEC_FMA4_FMADDSUB): Ditto.
2198 (UNSPEC_FMA4_FMSUBADD): Ditto.
2199 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2200 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2201 (ix86_expand_fma4_multiple_memory): Ditto.
2202 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2203 (OPTION_MASK_ISA_FMA4_UNSET): New.
2204 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2205 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2206 (ix86_handle_option): Handle -mfma4.
2207 (isa_opts): Handle -mfma4.
2208 (enum pta_flags): Add PTA_FMA4.
2209 (override_options): Add FMA4 support.
2210 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2211 (IX86_BUILTIN_VFMADDSD): Ditto.
2212 (IX86_BUILTIN_VFMADDPS): Ditto.
2213 (IX86_BUILTIN_VFMADDPD): Ditto.
2214 (IX86_BUILTIN_VFMSUBSS): Ditto.
2215 (IX86_BUILTIN_VFMSUBSD): Ditto.
2216 (IX86_BUILTIN_VFMSUBPS): Ditto.
2217 (IX86_BUILTIN_VFMSUBPD): Ditto.
2218 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2219 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2220 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2221 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2222 (IX86_BUILTIN_VFNMADDSS): Ditto.
2223 (IX86_BUILTIN_VFNMADDSD): Ditto.
2224 (IX86_BUILTIN_VFNMADDPS): Ditto.
2225 (IX86_BUILTIN_VFNMADDPD): Ditto.
2226 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2227 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2228 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2229 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2230 (IX86_BUILTIN_VFMADDPS256): Ditto.
2231 (IX86_BUILTIN_VFMADDPD256): Ditto.
2232 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2233 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2234 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2235 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2236 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2237 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2238 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2239 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2240 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2241 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2242 (enum multi_arg_type): New enum for describing the various FMA4
2243 intrinsic argument types.
2244 (bdesc_multi_arg): New table for FMA4 intrinsics.
2245 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2246 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2247 intrinsics.
2248 (ix86_expand_builtin): Add FMA4 intrinsic support.
2249 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2250 operand instructions.
2251 (ix86_expand_fma4_multiple_memory): New function to split the
2252 second memory reference from FMA4 instructions.
2253 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2254 (ssemodesuffixf2s): Ditto.
2255 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2256 instructions.
2257 (fma4_fmsub<mode>4): Ditto.
2258 (fma4_fnmadd<mode>4): Ditto.
2259 (fma4_fnmsub<mode>4): Ditto.
2260 (fma4_vmfmadd<mode>4): Ditto.
2261 (fma4_vmfmsub<mode>4): Ditto.
2262 (fma4_vmfnmadd<mode>4): Ditto.
2263 (fma4_vmfnmsub<mode>4): Ditto.
2264 (fma4_fmadd<mode>4256): Ditto.
2265 (fma4_fmsub<mode>4256): Ditto.
2266 (fma4_fnmadd<mode>4256): Ditto.
2267 (fma4_fnmsub<mode>4256): Ditto.
2268 (fma4_fmaddsubv8sf4): Ditto.
2269 (fma4_fmaddsubv4sf4): Ditto.
2270 (fma4_fmaddsubv4df4): Ditto.
2271 (fma4_fmaddsubv2df4): Ditto.
2272 (fma4_fmsubaddv8sf4): Ditto.
2273 (fma4_fmsubaddv4sf4): Ditto.
2274 (fma4_fmsubaddv4df4): Ditto.
2275 (fma4_fmsubaddv2df4): Ditto.
2276 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2277 instructions for intrinsics.
2278 (fma4i_fmsub<mode>4): Ditto.
2279 (fma4i_fnmadd<mode>4): Ditto.
2280 (fma4i_fnmsub<mode>4): Ditto.
2281 (fma4i_vmfmadd<mode>4): Ditto.
2282 (fma4i_vmfmsub<mode>4): Ditto.
2283 (fma4i_vmfnmadd<mode>4): Ditto.
2284 (fma4i_vmfnmsub<mode>4): Ditto.
2285 (fma4i_fmadd<mode>4256): Ditto.
2286 (fma4i_fmsub<mode>4256): Ditto.
2287 (fma4i_fnmadd<mode>4256): Ditto.
2288 (fma4i_fnmsub<mode>4256): Ditto.
2289 (fma4i_fmaddsubv8sf4): Ditto.
2290 (fma4i_fmaddsubv4sf4): Ditto.
2291 (fma4i_fmaddsubv4df4): Ditto.
2292 (fma4i_fmaddsubv2df4): Ditto.
2293 (fma4i_fmsubaddv8sf4): Ditto.
2294 (fma4i_fmsubaddv4sf4): Ditto.
2295 (fma4i_fmsubaddv4df4): Ditto.
2296 (fma4i_fmsubaddv2df4): Ditto.
2297
2298 * doc/invoke.texi (-mfma4): Add documentation.
2299 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2300
2301 2009-09-29 Richard Henderson <rth@redhat.com>
2302
2303 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2304 an edge to the new destination block.
2305
2306 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2307
2308 PR target/41393
2309 * pa.c (hppa_profile_hook): Use
2310 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2311
2312 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2313 Alexander Monakov <amonakov@ispras.ru>
2314
2315 PR target/41365
2316 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2317 (not_postinc_memory_operand): New.
2318 (not_postinc_move_operand): New.
2319 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2320 (*cmovsi_internal): Ditto.
2321
2322 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2323
2324 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2325 restrict issue_rate in first pass when scheduling for register
2326 pressure.
2327
2328 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2329 Rafael Avila de Espindola <espindola@google.com>
2330
2331 * gengtype.c (plugin_output): New.
2332 (get_output_file_with_visibility): Return plugin_output for plugins.
2333 (main): Parse and use the -P option.
2334 * gty.texi: Update the command line format.
2335
2336 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR debug/41438
2339 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2340 functions.
2341 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2342 out if !const_ok_for_output.
2343
2344 PR debug/41474
2345 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2346 case VAR_LOCATION>: Remove gcc_unreachable ().
2347
2348 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2349
2350 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2351 (x86_64-*-*): Ditto.
2352 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2353 back to smmintrin.h.
2354 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
2355 * config/i386/x86intrin.h: Remove SSE5.
2356 * config/i386/mmintrin-common.h: Delete file.
2357 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2358
2359 2009-09-29 Richard Guenther <rguenther@suse.de>
2360
2361 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2362 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2363
2364 2009-09-29 Nick Clifton <nickc@redhat.com>
2365
2366 * function.c (current_function_name): If there is no current
2367 function just return "<none>".
2368
2369 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2370
2371 * tree-pass.h (register_pass_info): New structure.
2372 (pass_positioning_ops): Move enum from gcc-plugin.h.
2373 (register_pass): New function.
2374 * gcc-plugin.h (plugin_pass): Delete structure.
2375 (pass_positioning_ops): Delete enum.
2376 * plugin.c (regsiter_pass): Delete function.
2377 (position_pass): Delete function.
2378 (added_pass_nodes): Delete variable.
2379 (prev_added_pass_nodes): Delete variable.
2380 (pass_list_node): Delete structure.
2381 * passes.c (make_pass_instance): New function.
2382 (next_pass_1): Change to call make_pass_instance.
2383 (pass_list_node): Move structure from gcc-plugin.h.
2384 (added_pass_nodes): Move variable from plugin.c.
2385 (prev_added_pass_nodes): Move variable from plugin.c.
2386 (position_pass): New function.
2387 (register_pass): New function.
2388
2389 2009-09-28 Easwaran Raman <eraman@google.com>
2390
2391 * ifcvt.c (noce_try_abs): Recognize pattern and call
2392 expand_one_cmpl_abs_nojump.
2393 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2394 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2395
2396 2009-09-28 Ian Lance Taylor <iant@google.com>
2397
2398 PR middle-end/40500
2399 * c-opts.c (c_common_handle_option): Don't set
2400 warn_jump_misses_init for -Wall.
2401 * doc/invoke.texi (Warning Options): Update documentation.
2402
2403 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2404
2405 * Makefile.in ($(out_object_file)): Depend on
2406 gt-$(basename $(notdir $(out_file))).h.
2407
2408 2009-09-28 Richard Henderson <rth@redhat.com>
2409
2410 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2411 * except.c (gen_eh_region): Set it.
2412 (duplicate_eh_regions_1): Copy it.
2413 * tree-eh.c (lower_resx): Use it to determine which function
2414 to call to resume.
2415
2416 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2417 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2418 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2419 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2420 BUILT_IN_CXA_END_CLEANUP if necessary.
2421
2422 * c-common.c (c_define_builtins): Update call to
2423 build_common_builtin_nodes.
2424
2425 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2426
2427 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2428
2429 2009-09-28 Michael Matz <matz@suse.de>
2430
2431 * builtins.c (interclass_mathfn_icode): New helper.
2432 (expand_builtin_interclass_mathfn): Use it here, and split folding
2433 into ...
2434 (fold_builtin_interclass_mathfn): ... this new folder.
2435 (build_call_nofold_loc): New static helper.
2436 (build_call_nofold): New wrapper macro for above.
2437 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2438 (expand_builtin_pow): Ditto.
2439 (expand_builtin_memset_args): Ditto.
2440 (expand_builtin_printf): Ditto.
2441 (expand_builtin_fprintf): Ditto.
2442 (expand_builtin_sprintf): Ditto.
2443 (expand_builtin_memory_chk): Ditto.
2444 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2445 (expand_builtin_stpcpy): Ditto.
2446 (expand_builtin_strcmp): Ditto.
2447 (expand_builtin_strncmp): Ditto.
2448 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2449 (expand_builtin_strcpy_args): Don't call folders.
2450 (expand_builtin_memcmp): Ditto.
2451 (expand_builtin_strncpy): Ditto, and use target.
2452 (expand_builtin_memcpy): Ditto.
2453 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2454 expand_builtin_strpbrk, expand_builtin_memmove,
2455 expand_builtin_memmove_args, expand_builtin_bcopy,
2456 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2457 expand_builtin_strspn, expand_builtin_strcspn,
2458 expand_builtin_fputs): Remove these.
2459 (expand_builtin): Don't call the above, change calls to other
2460 expanders that changed prototype.
2461 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2462 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2463 fold_builtin_interclass_mathfn.
2464 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2465 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2466
2467 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2468 * passes.c (init_optimization_passes): Move pass_fold_builtins
2469 after last phiopt pass.
2470 * tree-inline.c (fold_marked_statements): When folding builtins
2471 iterate over all instruction potentially generated.
2472 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2473 earlier.
2474 (fold_gimple_call): Use it to always fold calls (into potentially
2475 multiple instructions).
2476 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2477 calls into zero at this time.
2478 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2479 statements generated by builtin folding.
2480
2481 2009-09-28 Nick Clifton <nickc@redhat.com>
2482
2483 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2484
2485 2009-09-28 Duncan Sands <baldrick@free.fr>
2486
2487 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2488 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2489 (register_callback): Dispatch it.
2490 (invoke_plugin_callbacks): Incorporate in sanity check.
2491 * ggc.h (ggc_register_cache_tab): Add declaration.
2492 * ggc-common.c (ggc_register_root_tab): Simplify.
2493 (const_ggc_cache_tab_t): New typedef.
2494 (extra_cache_vec): New vector of dynamically added cache tables.
2495 (ggc_register_cache_tab): New function.
2496 (ggc_scan_cache_tab): New function.
2497 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2498 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2499
2500 2009-09-27 Richard Henderson <rth@redhat.com>
2501
2502 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2503 which we remove __builtin_stack_restore.
2504
2505 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2506
2507 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2508 to test for GRD_INVARIANT.
2509 (simple_rhs_p): Anything that's function_invariant_p is fine.
2510
2511 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2512
2513 * gengtype.c (main): Use plunge_files instead of plugin_output.
2514
2515 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2516 Rafael Avila de Espindola <espindola@google.com>
2517
2518 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2519 Don't print pch related info if it is false.
2520 (main): Don't print pch info in plugin mode.
2521
2522 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2523
2524 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2525 with dw_val_class_const_double.
2526 (struct dw_val_struct): Replace val_long_long with val_double and
2527 adjust for above change.
2528 (output_loc_operands): Likewise.
2529 (add_AT_long_long): Rename into...
2530 (add_AT_double): ...this.
2531 (print_die): Replace dw_val_class_long_long with
2532 dw_val_class_const_double and adjust.
2533 (attr_checksum): Likewise.
2534 (same_dw_val_p): Likewise.
2535 (size_of_die): Likewise.
2536 (value_format): Likewise.
2537 (output_die): Likewise.
2538 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2539 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2540 instead of add_AT_long_long.
2541 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2542 value with the precision of its type.
2543
2544 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2545
2546 PR c/41476
2547 * c-typeck.c (build_conditional_expr): Use the readonly and
2548 volatile flags of the operand types, not of the operands itself.
2549
2550 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2551
2552 * collect2.c (main): Look for -brtl before adding libraries.
2553
2554 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2555
2556 * config.gcc: Update OpenBSD targets.
2557 * config/openbsd-stdint.h: New file.
2558 * config/openbsd-libpthread.h: New file.
2559 * config/openbsd.h: Update and break out LIB_SPEC definition.
2560 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2561 * config/i386/openbsdelf.h: Correct types.
2562 * config/m68k/openbsd.h: Likewise.
2563 * config/mips/openbsd.h: Likewise.
2564 * config/vax/openbsd.h: Likewise.
2565
2566 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2567
2568 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2569 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2570 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2571 of the length and zero.
2572
2573 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2574
2575 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2576 (FLAGS_H): Add options.h $(REAL_H).
2577 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2578 (TREE_VECTORIZER_H): New.
2579 (EBITMAP_H): Renamed from EBIMAP_H.
2580 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2581 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2582 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2583 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2584 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2585 (graphite-clast-to-gimple.o, graphite-dependences.o)
2586 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2587 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2588 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2589 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2590 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2591 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2592 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2593 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2594 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2595 updated and fixed as per above changes and per
2596 check_makefile_deps.sh output.
2597
2598 PR bootstrap/40928
2599 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2600 * configure: Regenerate.
2601
2602 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2603
2604 * doc/install.texi: Update minimum MPC version to 0.7.
2605
2606 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2607
2608 * doc/install.texi (Binaries): Remove reference to the binary
2609 distribution CD-ROM from the FSF.
2610
2611 2009-09-26 Michael Matz <matz@suse.de>
2612
2613 PR lto/40758
2614 PR middle-end/41470
2615 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2616 that are mentioned in the body.
2617
2618 2009-09-26 Michael Matz <matz@suse.de>
2619
2620 PR tree-optimization/41454
2621 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2622 (tree_ssa_dominator_optimize): Don't allocate and free it.
2623 (dom_opt_leave_block): Don't iterate over it.
2624 (eliminate_redundant_computations): Don't return a value.
2625 (cprop_operand, cprop_into_stmt): Ditto.
2626 (optimize_stmt): Don't defer updating stmts.
2627
2628 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2629
2630 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2631 generic_parameter_die, template_parameter_pack_die,
2632 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2633 renaming DW_TAG_formal_parameter_pack and
2634 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2635 and DW_TAG_GNU_template_parameter_pack.
2636
2637 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2638
2639 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2640 * config/v850/v850.c (v850_function_value): New function.
2641 (TARGET_FUNCTION_VALUE): Define.
2642
2643 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2644
2645 * tree-vect-stmts.c (vectorizable_call): Call
2646 mark_symbols_for_renaming after vect_finish_stmt_generation.
2647
2648 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2649 to loc_descriptor_from_tree.
2650 (add_location_or_const_value_attribute): Pass 0 instead of 2
2651 for decl_by_reference_p decls.
2652
2653 2009-09-25 Richard Guenther <rguenther@suse.de>
2654
2655 PR middle-end/41463
2656 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2657 arrays again.
2658
2659 2009-09-25 Ben Elliston <bje@au.ibm.com>
2660
2661 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2662 after `power7'.
2663
2664 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2665
2666 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2667 form of instruction.
2668
2669 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2670
2671 PR middle-end/41435
2672 * fold-const.c (const_binop): Handle complex int division.
2673 * tree-complex.c (expand_complex_div_straight,
2674 expand_complex_div_wide): Update comments.
2675
2676 2009-09-24 DJ Delorie <dj@redhat.com>
2677
2678 PR target/41456
2679 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2680 (reg_class): Likewise.
2681 (REG_CLASS_NAMES): Likewise.
2682 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2683 (m32c_override_options): Disable -fivopts for M32C.
2684
2685 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2686
2687 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2688 Delete VSX load/store with update support.
2689 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2690 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2691 (vsx_movti): Ditto.
2692 (VSX_U): Delete.
2693 (VSbit): Ditto.
2694 (VStype_load_update): Ditto.
2695 (VStype_store_update): Ditto.
2696 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2697 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2698
2699 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2700 load/store with update builtins.
2701
2702 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2703
2704 * libgcc2.c (L_trampoline): Prototype for getpagesize
2705 and mprotect in WINNT case.
2706
2707 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2708
2709 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2710 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2711 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2712 'outgoing' argument.
2713 (TARGET_FUNCTION_VALUE): Define.
2714
2715 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2716
2717 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2718
2719 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2720
2721 PR bootstrap/41405
2722 * common.opt: Initialize dwarf_strict to -1.
2723 * toplev.c (process_options): Catch unset dwarf_strict
2724 and set to 0 for all targets not overriding.
2725 * config/darwin.c (darwin_override_options): Catch unset
2726 dwarf_strict and override to 1.
2727
2728 2009-09-24 Jeff Law <law@redhat.com>
2729
2730 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2731
2732 2009-09-24 Richard Guenther <rguenther@suse.de>
2733
2734 PR tree-optimization/36143
2735 PR tree-optimization/38747
2736 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2737 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2738
2739 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2740
2741 PR bootstrap/41457
2742 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2743 return false instead of gcc_unreachable (). For CONST return the
2744 value returned by recursive call instead of always returning true.
2745 (tree_add_const_value_attribute): Return the value returned by
2746 add_const_value_attribute instead of always returning true if rtl
2747 is non-NULL.
2748
2749 2009-09-23 Justin Seyster <jrseys@gmail.com>
2750
2751 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2752
2753 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2754
2755 * cgraphunit.c (cgraph_lower_function): Revert last change.
2756 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2757 instead of DECL_NO_STATIC_CHAIN.
2758 * tree-cfg.c (verify_gimple_call): Likewise.
2759 * tree-nested.c (get_chain_decl, get_chain_field,
2760 convert_tramp_reference_op, convert_gimple_call): Likewise.
2761 (convert_all_function_calls): Likewise. Always set or clear
2762 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2763 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2764 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2765 if nested.
2766 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2767 DECL_NO_STATIC_CHAIN.
2768 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2769 instead of DECL_NO_STATIC_CHAIN.
2770 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2771 decl_function_context.
2772 * varasm.c (initializer_constant_valid_p): Likewise.
2773 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2774 (DECL_STATIC_CHAIN): ... this.
2775 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2776 instead of DECL_NO_STATIC_CHAIN.
2777
2778 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2779 Rafael Avila de Espindola <espindola@google.com>
2780
2781 * gengtype.c (nb_plugin_files): Make it unsigned to match
2782 num_gt_files. Adjust other variables to avoid warnings.
2783 (main): Allocate an all zero lang_bitmap before each plugin file name
2784 to match regular file names.
2785
2786 2009-09-23 Richard Henderson <rth@redhat.com>
2787
2788 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2789 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2790 static chain passed in memory.
2791 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2792 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2793 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2794 STATIC_CHAIN_REGNUM defined.
2795
2796 * config/picochip/picochip-protos.h: s/class/klass/.
2797 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2798 (picochip_static_chain): New.
2799 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2800 (STATIC_CHAIN_INCOMING): Remove.
2801
2802 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2803 (xtensa_static_chain): New.
2804 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2805 (STATIC_CHAIN_INCOMING): Remove.
2806
2807 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2808
2809 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2810 * config/pa/pa-protos.h (function_value): Remove.
2811 * config/pa/pa.c (pa_function_value): Rename from function_value.
2812 Make static, add 'outgoing' argument.
2813 (TARGET_FUNCTION_VALUE): Define.
2814
2815 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2816
2817 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2818 instead of cfun->machine->is_leaf.
2819 * config/avr/avr.h (machine_function): Remove is_leaf field.
2820
2821 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR debug/41439
2824 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2825 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2826 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2827 the same size, prefer DW_OP_stack_value.
2828 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2829 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2830
2831 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2832
2833 PR debug/41353
2834 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2835
2836 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2837
2838 PR debug/41248
2839 * cfgexpand.c (convert_debug_memory_address): New.
2840 (expand_debug_expr): Convert base address and offset to the same
2841 mode. Use it to convert addresses to other modes. Accept
2842 ptr_mode addresses.
2843
2844 2009-09-23 Richard Guenther <rguenther@suse.de>
2845
2846 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2847 produced for bigendian targets with promoted subregs.
2848
2849 2009-09-23 Richard Guenther <rguenther@suse.de>
2850
2851 * value-prof.c (gimple_ic): Purge old EH edges only after building
2852 the new ones.
2853
2854 2009-09-23 Nick Clifton <nickc@redhat.com>
2855
2856 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2857
2858 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2859
2860 PR bootstrap/41405
2861 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2862
2863 PR bootstrap/41436
2864 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2865 on non-nested functions.
2866
2867 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2868 Jan Hubicka <jh@suse.cz>
2869
2870 * dwarf2out.c (loc_list_plus_const): Only define if
2871 DWARF2_DEBUGGING_INFO.
2872 (address_of_int_loc_descriptor): Likewise.
2873
2874 PR debug/41411
2875 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2876
2877 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2878
2879 PR c/39779
2880 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2881 constant is more than zero.
2882
2883 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2884
2885 PR target/40473
2886 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2887 call final to emit non-scheduled prologue, instead insert at entry.
2888
2889 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2890 Joseph S. Myers <joseph@codesourcery.com>
2891
2892 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2893
2894 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2895 Rafael Avila de Espindola <espindola@google.com>
2896
2897 * gengtype.c (is_file_equal): New function.
2898 (close_output_files): Use is_file_equal. Free of->buf.
2899
2900 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2901 Rafael Avila de Espindola <espindola@google.com>
2902
2903 * gengtype.c (write_types, write_local): Add the output_header
2904 argument. Update all callers.
2905
2906 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2907
2908 * dwarf2out.c (template_parameter_pack_die,
2909 gen_formal_parameter_pack_die ): New functions.
2910 (make_ith_pack_parameter_name): Remove this function.
2911 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2912 DW_TAG_formal_parameter_pack.
2913 (gen_generic_params_dies): Represent each template parameter pack
2914 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2915 represented by usual DW_TAG_template_*_parameter DIEs that are
2916 children of the DW_TAG_template_parameter_pack element DIE.
2917 (generic_parameter_die): This doesn't deal with parameter pack
2918 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2919 of parameter pack DIEs.
2920 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2921 in certain cases, e.g. for pack elements.
2922 (gen_formal_types_die, gen_decl_die): Adjust usage of
2923 gen_formal_parameter_die.
2924 (gen_subprogram_die): Represent each function parameter pack by a
2925 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2926 represented by usual DW_TAG_formal_parameter DIEs that are children
2927 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2928 ____builtin_va_alist decls as no part of the compiler uses those
2929 anymore.
2930 * langhooks.h (struct lang_hooks_for_decls): Add
2931 function_parm_expanded_from_pack_p, get_generic_function_decl
2932 and function_parameter_pack_p hooks. Fix comment for
2933 get_innermost_generic_parms hook.
2934 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2935 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2936 macros and use them to initialize lang_hook.
2937
2938 2009-09-22 Richard Henderson <rth@redhat.com>
2939
2940 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2941 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2942 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2943 on TRAMPOLINE_TEMPLATE.
2944 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2945 TRAMPOLINE_ADJUST_ADDRESS.
2946 * targhooks.c (default_asm_trampoline_template): Remove.
2947 (default_trampoline_adjust_address): Remove.
2948 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2949 * targhooks.h: Update decls.
2950
2951 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2952
2953 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2954 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2955 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2956
2957 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2958
2959 PR debug/41295
2960 * reload1.c (reload): Reset debug insns with pseudos without
2961 equivalences.
2962
2963 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2964
2965 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2966 unconditional true for decimal float modes.
2967 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2968 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2969
2970 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2971
2972 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2973 Enable a new case for __FreeBSD__ >= 7.
2974 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2975 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2976 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2977 and USE_LD_AS_NEEDED.
2978
2979 * doc/install.texi (*-*-freebsd*): Update target information.
2980
2981 2009-09-22 Richard Guenther <rguenther@suse.de>
2982
2983 PR middle-end/41395
2984 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2985 arrays really properly.
2986
2987 2009-09-22 Richard Henderson <rth@redhat.com>
2988
2989 PR target/41246
2990 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2991 calls.static_chain, calls.trampoline_init,
2992 calls.trampoline_adjust_address.
2993 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2994 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2995 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2996 * builtins.c (expand_builtin_setjmp_receiver): Use
2997 targetm.calls.static_chain; only clobber registers.
2998 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2999 set up memory attributes properly for the trampoline block.
3000 (expand_builtin_adjust_trampoline): Use
3001 targetm.calls.trampoline_adjust_address.
3002 * calls.c (prepare_call_address): Add fndecl argument. Use
3003 targetm.calls.static_chain.
3004 * df-scan.c (df_need_static_chain_reg): Remove.
3005 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
3006 consolodate static chain handling.
3007 * doc/tm.texi: Document new hooks.
3008 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
3009 (init_emit_regs): Don't initialize them.
3010 * expr.h (prepare_call_address): Update decl.
3011 * final.c (profile_function): Use targetm.calls.static_chain.
3012 * function.c (expand_function_start): Likewise.
3013 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
3014 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
3015 only clobber registers.
3016 * targhooks.c (default_static_chain): New.
3017 (default_asm_trampoline_template, default_trampoline_init): New.
3018 (default_trampoline_adjust_address): New.
3019 * targhooks.h: Declare them.
3020 * varasm.c (assemble_trampoline_template): Use
3021 targetm.asm_out.trampoline_template. Make the memory block const
3022 and set its size.
3023
3024 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
3025 alpha_initialize_trampoline. Make static. Merge VMS parameter
3026 differences into the TARGET_ABI_OPEN_VMS code block.
3027 (TARGET_TRAMPOLINE_INIT): New.
3028 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
3029 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
3030 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
3031 (INITIALIZE_TRAMPOLINE): Remove.
3032
3033 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
3034 (TRAMPOLINE_TEMPLATE): Merge with ...
3035 (INITIALIZE_TRAMPOLINE): ... this and move ...
3036 * config/arc/arc.c (arc_trampoline_init): ... here.
3037 (TARGET_TRAMPOLINE_INIT): New.
3038
3039 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3040 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3041 (arm_asm_trampoline_template): New.
3042 (arm_trampoline_init, arm_trampoline_adjust_address): New.
3043 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
3044 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
3045 code to arm_asm_trampoline_template.
3046 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
3047 arm_trampoline_adjust_address.
3048 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
3049 adjust for target hook parameters.
3050
3051 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
3052 Remove.
3053
3054 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
3055 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
3056 (bfin_trampoline_init): Rename from initialize_trampoline;
3057 make static; update for target hook parameters.
3058 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3059 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
3060 bfin_asm_trampoline_template.
3061 (INITIALIZE_TRAMPOLINE): Remove.
3062
3063 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3064 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3065 cris_trampoline_init): New.
3066 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3067 cris_asm_trampoline_template.
3068 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3069 adjust for target hook parameters.
3070
3071 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3072
3073 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3074 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3075 fr30_trampoline_init): New.
3076 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3077 fr30_asm_trampoline_template.
3078 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3079 adjust for target hook parameters.
3080
3081 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3082 (frv_trampoline_init): Rename from frv_initialize_trampoline;
3083 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3084 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3085 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3086
3087 * config/h8300/h8300.c (h8300_trampoline_init): New.
3088 (TARGET_TRAMPOLINE_INIT): New.
3089 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3090 to h8300_trampoline_init and adjust for hook parameters.
3091
3092 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3093 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3094 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3095 make static; adjust for hook parameters.
3096 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3097
3098 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3099 (TARGET_TRAMPOLINE_INIT): New.
3100 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3101 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3102 iq2000_asm_trampoline_template.
3103 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3104 (TRAMPOLINE_CODE_SIZE): New.
3105 (TRAMPOLINE_SIZE): Use it.
3106 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3107
3108 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3109 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3110 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3111 adjust for hook parameters.
3112 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3113
3114 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3115 (m32r_trampoline_init): New.
3116 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3117 m32r_trampoline_init.
3118
3119 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3120 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3121 make static; update for hook parameters.
3122 * config/m68hc11/m68hc11-protos.h: Update.
3123 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3124
3125 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3126 (TARGET_TRAMPOLINE_INIT): New.
3127 (mcore_function_value): Fix typo.
3128 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3129 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3130 to mcore_asm_trampoline_template.
3131 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3132
3133 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3134 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3135 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3136 update for hook parameters.
3137 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3138
3139 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3140 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3141 mips_trampoline_init): New.
3142 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3143 mips_asm_trampoline_template.
3144 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3145 update for hook parameters.
3146
3147 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3148 (TARGET_TRAMPOLINE_INIT): New.
3149 (mmix_trampoline_size): Remove.
3150 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3151 make static. Remove out-of-date tetra vs octa comment.
3152 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3153 make static; update for hook parameters.
3154 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3155 (INITIALIZE_TRAMPOLINE): Remove.
3156 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3157 (TRAMPOLINE_ALIGNMENT): New.
3158 * gcc/config/mmix/mmix-protos.h: Update.
3159
3160 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3161 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3162 mn10300_trampoline_init): New.
3163 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3164 mn10300_asm_trampoline_template.
3165 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3166
3167 * config/moxie/moxie.c (moxie_static_chain,
3168 moxie_asm_trampoline_template, moxie_trampoline_init,
3169 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3170 TARGET_TRAMPOLINE_INIT): New.
3171 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3172 moxie_trampoline_init.
3173 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3174 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3175
3176 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3177 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3178 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3179 pa_trampoline_adjust_address): New.
3180 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3181 pa_asm_trampoline_template.
3182 (TRAMPOLINE_ALIGNMENT): New.
3183 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3184 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3185 adjust for hook parameters.
3186 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3187
3188 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3189 (TARGET_TRAMPOLINE_INIT): New.
3190 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3191 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3192
3193 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3194
3195 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3196 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3197 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3198 make static; adjust parameters for the hook.
3199 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3200
3201 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3202 s390_trampoline_template; make static.
3203 (s390_trampoline_init): Rename from s390_initialize_trampoline;
3204 make static; adjust for target hook.
3205 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3206 * config/s390/s390-protos.h: Remove trampoline decls.
3207 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3208 (TRAMPOLINE_TEMPLATE): Remove.
3209 (TRAMPOLINE_ALIGNMENT): New.
3210
3211 * config/score/score-protos.h (score_initialize_trampoline): Remove.
3212 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3213 (TARGET_TRAMPOLINE_INIT): New.
3214 (score_asm_trampoline_template): New.
3215 (score_trampoline_init): Rename from score_initialize_trampoline;
3216 make static; adjust for hook parameters.
3217 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3218 score[37]_asm_trampoline_template.
3219 (INITIALIZE_TRAMPOLINE): Remove.
3220 * config/score/score3.c (score3_asm_trampoline_template): New.
3221 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3222 adjust for target hook.
3223 * config/score/score7.c (score7_asm_trampoline_template): New.
3224 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3225 adjust for target hook.
3226 * config/score/score3.h, config/score/score7.h: Update.
3227
3228 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3229 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3230 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3231 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3232 make static; adjust for target hook parameters.
3233 (sh_trampoline_adjust_address): New.
3234 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3235 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3236
3237 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3238 (sparc32_initialize_trampoline): Rename from
3239 sparc_initialize_trampoline; make static; replace tramp parameter
3240 with m_tramp and update memory accesses.
3241 (sparc64_initialize_trampoline): Similarly.
3242 (sparc_trampoline_init): New.
3243 * config/sparc/sparc-protos.h: Remove trampoline decls.
3244 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3245 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3246
3247 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3248 (array_to_constant): Make ARR parameter const.
3249 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3250 make static; update for hook parameters.
3251 * config/spu/spu-protos.h: Update decls.
3252 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3253
3254 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3255 from xstormy16_initialize_trampoline; make static; update for
3256 hook parameters.
3257 (TARGET_TRAMPOLINE_INIT): New.
3258 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3259
3260 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3261 (TARGET_TRAMPOLINE_INIT): New.
3262 (v850_can_eliminate): Make static.
3263 (v850_asm_trampoline_template, v850_trampoline_init): New.
3264 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3265 v850_asm_trampoline_template.
3266 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3267 and adjust for target hook parameters.
3268
3269 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3270 (TARGET_TRAMPOLINE_INIT): New.
3271 (vax_asm_trampoline_template, vax_trampoline_init): New.
3272 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3273 vax_asm_trampoline_template.
3274 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3275
3276 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3277 (TARGET_TRAMPOLINE_INIT): New.
3278 (xtensa_asm_trampoline_template): Rename from
3279 xtensa_trampoline_template; make static.
3280 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3281 make static; update for hook parameters.
3282 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3283 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3284 (INITIALIZE_TRAMPOLINE): Remove.
3285
3286 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3287 error for nested functions with regparm=3.
3288 (ix86_compute_frame_layout): Adjust frame pointer offset for
3289 ix86_static_chain_on_stack.
3290 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3291 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3292 don't reset to UNITS_PER_WORD.
3293 (ix86_emit_leave): Adjust ix86_cfa_state.
3294 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3295 (ix86_static_chain): New.
3296 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3297 make static; update for target hook parameters; use ix86_static_chain.
3298 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3299 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3300 (INITIALIZE_TRAMPOLINE): Remove.
3301 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3302 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3303 to the end. Add static_chain_on_stack.
3304 (ix86_static_chain_on_stack): New.
3305
3306 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3307 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3308 (m68k_trampoline_init): New.
3309 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3310 m68k_trampoline_init and adjust for hook parameters.
3311 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3312 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3313
3314 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3315
3316 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3317 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3318
3319 * reload1.c (reload): Call wrap_constant when substituting
3320 reg for equiv inside of DEBUG_INSNs.
3321
3322 PR bootstrap/41405
3323 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3324 add_call_src_coords_attributes, add_high_low_attributes,
3325 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3326 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3327 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3328 when -gdwarf-2 -gstrict-dwarf.
3329 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3330 -gdwarf-[23] -gstrict-dwarf.
3331 (address_of_int_loc_descriptor, loc_descriptor,
3332 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3333 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3334 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3335
3336 2009-09-22 Richard Guenther <rguenther@suse.de>
3337
3338 PR tree-optimization/41428
3339 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3340 (ccp_finalize): Pass it to substitute_and_fold.
3341
3342 2009-09-22 Richard Guenther <rguenther@suse.de>
3343
3344 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3345 (substitute_and_fold): Adjust prototype.
3346 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3347 (simplify_stmt_using_ranges): Likewise.
3348 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3349 (vrp_fold_stmt): New function.
3350 (vrp_finalize): Pass it to substitute_and_fold.
3351 * tree-flow.h (vrp_evaluate_conditional): Remove.
3352 (simplify_stmt_using_ranges): Likewise.
3353 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3354 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3355 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3356 member.
3357 (fold_predicate_in): Move to tree-vrp.c.
3358 (substitute_and_fold): Use the callback instead of calling into
3359 tree-vrp.c functions directly.
3360
3361 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3362
3363 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3364 comparison warning on rs6000.
3365
3366 PR middle-end/41429
3367 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3368 GIMPLE_EH_MUST_NOT_THROW cleanup.
3369 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3370
3371 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3372
3373 PR middle-end/41260
3374 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3375 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3376 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3377 libSystem which is derived from the gcc 4.2.1 unwinder.
3378
3379 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3380
3381 PR middle-end/41357
3382 * varasm.c (default_encode_section_info): Copy TLS model into
3383 sym_ref flags regardless of backend support for TLS, for all
3384 model types except TLS_MODEL_EMULATED.
3385
3386 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3387
3388 PR bootstrap/41404
3389 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3390 we can handle it correctly.
3391
3392 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3393
3394 * doc/install.texi (os2): Remove section.
3395
3396 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3397
3398 * doc/standards.texi (Objective-C): Adjust two URLs.
3399
3400 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3401
3402 * tree-tailcall.c (process_assignment): Don't check if a
3403 multiplication or an addition are already present.
3404 (find_tail_calls): Combine multiple additions and multiplications.
3405 (adjust_accumulator_values): Emit accumulators.
3406
3407 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3408
3409 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3410 xmm register restore.
3411
3412 2009-09-21 Jan Hubicka <jh@suse.cz>
3413
3414 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3415 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3416 restore at the end.
3417
3418 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3419
3420 * stor-layout.c (layout_type): Remove obsolete code.
3421
3422 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3423
3424 PR middle-end/41395
3425 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3426
3427 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3428
3429 PR middle-end/30789
3430 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3431 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3432 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3433 * fold-const.c (const_binop): Likewise.
3434 * real.h (do_mpc_arg2): Update prototype.
3435
3436 2009-09-20 Jan Hubicka <jh@suse.cz>
3437
3438 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3439 (add_location_or_const_value_attribute): Rewrite using
3440 loc_list_from_tree.
3441 (tree_add_const_value_attribute): Return true if successful.
3442 (tree_add_const_value_attribute_for_decl): Likewise.
3443
3444 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3445 (loc_descriptor): ... here;
3446 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3447 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3448 pool items that was not marked for output.
3449 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3450 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3451 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3452 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3453 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3454 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3455 DW_OP_stack_value to get address of items that are not available
3456 as addresses.
3457 (dw_loc_list): Handle single element lists correctly.
3458
3459 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3460 Pascal Obry <obry@adacore.com>
3461
3462 * unwind-dw2-fde.c (classify_object_over_fdes):
3463 Cast the constant 1 to _Unwind_Ptr.
3464 (add_fdes): Likewise.
3465 (linear_search_fdes): Likewise.
3466
3467 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3468
3469 * stor-layout.c (set_sizetype): Avoid useless type copy.
3470
3471 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3472
3473 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3474 feature check.
3475 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3476 * configure, config.in: Regenerate.
3477 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3478 DW_EH_PE_absptr.
3479 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3480 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3481 for global data if the output could be used in a shared library.
3482 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3483 to 0 if TARGET_WRITABLE_EH_FRAME.
3484
3485 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3486
3487 PR rtl-optimization/39886
3488 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3489 just when insn is equal to BB_END (bb).
3490
3491 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3492
3493 * config/mips/mips.opt (mrelax-pic-calls): New option.
3494 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3495 the file.
3496 (mips_unspec_call): Change "unspec_call" expander into this.
3497 (mips_strip_unspec_call): New function.
3498 (mips_got_load): Call mips_unspec_call instead of
3499 gen_unspec_call<mode>.
3500 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3501 MIPS_CALL.
3502 (mips_cfg_in_reorg): New function.
3503 (mips16_lay_out_constants): Use it to decide whether to call
3504 CFG-aware insn splitting.
3505 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3506 mips_reorg. Move DF set-up code from here ...
3507 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3508 from here.
3509 (mips_reorg): Call mips_df_reorg instead of
3510 r10k_insert_cache_barriers. Move CFG set-up code here from
3511 r10k_insert_cache_barriers.
3512 (mips_call_expr_from_insn): New function.
3513 (mips_pic_call_symbol_from_set): Likewise.
3514 (mips_find_pic_call_symbol): Likewise.
3515 (mips_annotate_pic_call_expr): Likewise.
3516 (mips_get_pic_call_symbol): Likewise.
3517 (mips_annotate_pic_calls): Likewise.
3518 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3519 calls are used.
3520 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3521 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3522 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3523 directive.
3524 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3525 (unspec_call<mode>): Remove it.
3526 (sibcall_internal, sibcall_value_internal,
3527 sibcall_value_multiple_internal, call_internal, call_split,
3528 call_value_internal, call_value_split,
3529 call_value_multiple_internal, call_value_multiple_split): Pass
3530 SIZE_OPNO to MIPS_CALL.
3531 (call_internal_direct, call_direct_split,
3532 call_value_internal_direct, call_value_direct_split): Pass -1 as
3533 SIZE_OPNO to MIPS_CALL.
3534 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3535 * configure: Regenerate.
3536 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3537 and -mno-relax-pic-calls.
3538 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3539
3540 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3541
3542 PR bootstrap/35619
3543 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3544 in the directory this rule is called from, rather than the
3545 toplevel 'gcc' directory, to fix in-tree build.
3546
3547 2009-09-19 Chris Demetriou <cgd@google.com>
3548
3549 PR preprocessor/28435:
3550 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3551 to cpplib that the preprocessor output is needed.
3552
3553 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3554
3555 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3556 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3557 *return_and_restore_fpregs_<mode>,
3558 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3559
3560 PR bootstrap/41397
3561 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3562 instead of assuming it has always a REG inside of it.
3563
3564 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3565
3566 * config/freebsd.h: Update comment on types.
3567 (WINT_TYPE): Define.
3568
3569 2009-09-18 Jason Merrill <jason@redhat.com>
3570
3571 * c.opt: Add -fno-deduce-init-list.
3572
3573 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3574
3575 * value-prof.c (interesting_stringop_to_profile_p): Added output
3576 argument to indicate which parameter is the size parameter.
3577 * value-prof.c (gimple_stringop_fixed_value): Use
3578 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3579 * value-prof.c (gimple_stringops_transform): Update call sites to
3580 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3581
3582 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3583
3584 PR target/38288
3585 From David Binderman <dcb314@hotmail.com>:
3586 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3587 local variable f. Remove stale comments.
3588 (ix86_compute_frame_layout): Remove useless local variable total_size.
3589 Remove #if 0'd code.
3590 (legitimate_address_p): Remove useless local variables
3591 reason_rtx and reason.
3592 (ix86_split_copysign_const): Remove useless local variable op1.
3593 (scale_counter): Remove useless local variable piece_size_mask.
3594
3595 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3596
3597 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3598 output decl.
3599
3600 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3601
3602 PR target/40913
3603 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3604
3605 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3606
3607 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3608 TYPE_STUB_DECL.
3609
3610 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3611
3612 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3613 DW_OP_implicit_value even without dwarf_version 4.
3614
3615 2009-09-17 Jan Hubicka <jh@suse.cz>
3616
3617 * dwarf2out.c: Include tree-pass.h and gimple.h.
3618 (loc_list_plus_const): New function.
3619 (loc_descriptor_from_tree_1): Rename to ...
3620 (loc_descriptor_from_tree): ... remove original.
3621 (loc_list_from_tree): New function.
3622 (add_AT_location_description): Accept location list.
3623 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3624 (concatn_mem_loc_descriptor): Remove.
3625 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3626 returning NULL.
3627 (secname_for_decl): Move up.
3628 (hidden_reference_p): New function; break out from ...
3629 (loc_by_refernece): ... here; move up.
3630 (dw_loc_list): New function.
3631 (single_element_loc_list): New function.
3632 (single_element_loc_list_p): New function.
3633 (add_loc_descr_to_each): New function.
3634 (add_loc_list): New function.
3635 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3636 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3637 add diagnostics why expansion failed.
3638 (add_location_or_const_value_attribute): Support location lists.
3639 (add_bound_info): Likewise.
3640 (descr_info_loc): Update call of loc_descriptor_from_tree.
3641 (gen_variable_die): Work on location lists.
3642 * final.c (pass_final): Add dump file.
3643 * Makefile.in (dwarf2out.o): Add new dependencies.
3644
3645 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3646
3647 PR c/41049
3648 * real.c decimal_from_integer, decimal_integer_string): New.
3649 (real_from_integer): Use them as special case for decimal float.
3650 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3651 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3652 Do not append zero after the decimal point in string to convert.
3653
3654 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3655
3656 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3657 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3658
3659 2009-09-17 Martin Jambor <mjambor@suse.cz>
3660
3661 * common.opt (fipa-sra): New switch.
3662 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3663 * timevar.def (TV_IPA_SRA): New timevar.
3664 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3665 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3666 * tree-sra.c: Include cgraph.c.
3667 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3668 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3669 and grp_not_necessarilly_dereferenced.
3670 (func_param_count): New variable.
3671 (encountered_apply_args): New variable.
3672 (bb_dereferences): New variable.
3673 (final_bbs): New variable.
3674 (no_accesses_representant): New variable.
3675 (no_accesses_p): New function.
3676 (dump_access): Dump the new fields.
3677 (sra_initialize): Set encountered_apply_args to false.
3678 (get_ssa_base_param): New function.
3679 (mark_parm_dereference): New function.
3680 (create_access): Caring for INIDRECT_REFs and different handling of
3681 varialble length accesses in early IPA SRA. Store the stmt - a new
3682 parameter - to the new access.
3683 (build_access_from_expr_1): New parameter stmt, passed to
3684 create_access. Handle INDIRECT_REFs.
3685 (build_access_from_expr): Pass the current statement to
3686 build_access_from_expr_1.
3687 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3688 passes.
3689 (build_accesses_from_assign): Pass the current statement to
3690 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3691 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3692 final_bbs when necessary. Check for calls to __builtin_apply_args.
3693 Fixup EH info if anythng was changed.
3694 (is_unused_scalar_param): New function.
3695 (ptr_parm_has_direct_uses): New function.
3696 (find_param_candidates): New function.
3697 (mark_maybe_modified): New function.
3698 (analyze_modified_params): New function.
3699 (propagate_dereference_distances): New function.
3700 (dump_dereferences_table): New function.
3701 (analyze_caller_dereference_legality): New function.
3702 (unmodified_by_ref_scalar_representative): New function.
3703 (splice_param_accesses): New function.
3704 (decide_one_param_reduction): New function.
3705 (enum ipa_splicing_result): New type.
3706 (splice_all_param_accesses): New function.
3707 (get_param_index): New function.
3708 (turn_representatives_into_adjustments): New function.
3709 (analyze_all_param_acesses): New function.
3710 (get_replaced_param_substitute): New function.
3711 (get_adjustment_for_base): New function.
3712 (replace_removed_params_ssa_names): New function.
3713 (sra_ipa_reset_debug_stmts): New function.
3714 (sra_ipa_modify_expr): New function.
3715 (sra_ipa_modify_assign): New function.
3716 (convert_callers): New function.
3717 (modify_function): New function.
3718 (ipa_sra_preliminary_function_checks): New function.
3719 (ipa_early_sra): New function.
3720 (ipa_early_sra_gate): New function.
3721 (pass_early_ipa_sra): New variable.
3722 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3723
3724 2009-09-17 Michael Matz <matz@suse.de>
3725
3726 PR middle-end/41347
3727 * tree.c (build_type_attribute_qual_variant): Export.
3728 * tree.h (build_type_attribute_qual_variant): Declare.
3729 * tree-inline.c (remap_type_1): Use it to build variants with
3730 the original qualifiers and attributes.
3731
3732 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3733
3734 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3735 without a fallthrough edge.
3736
3737 2009-09-16 DJ Delorie <dj@redhat.com>
3738
3739 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3740 chip and ignore the "fast_interrupt" attribute if so.
3741
3742 2009-09-16 Richard Henderson <rth@redhat.com>
3743
3744 PR middle-end/41360
3745 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3746 barrier fix.
3747
3748 2009-09-16 Richard Henderson <rth@redhat.com>
3749
3750 PR target/41246
3751 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3752 is set only if DECL_NO_STATIC_CHAIN is unset.
3753 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3754 (FOR_EACH_NEST_INFO): New.
3755 (walk_all_functions): Use it.
3756 (finalize_nesting_tree): Likewise.
3757 (unnest_nesting_tree): Likewise.
3758 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3759 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3760 (convert_gimple_call): Early out if gimple_call_chain already set.
3761 (convert_all_function_calls): Iterate until no new functions
3762 require a static chain.
3763 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3764 when building a trampoline. Use dump_function_to_file instead
3765 of dump_function.
3766 (lower_nested_functions): Open dump_file. Validate that decls
3767 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3768 bit reset by this pass.
3769
3770 2009-09-16 Michael Matz <matz@suse.de>
3771
3772 PR fortran/41212
3773 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3774 shorten decl_common_unused.
3775 (DECL_RESTRICTED_P): New accessor.
3776 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3777 to disambiguate marked decls and restrict pointers.
3778
3779 2009-09-16 Richard Henderson <rth@redhat.com>
3780
3781 PR middle-end/41360
3782 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3783
3784 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3785
3786 * integrate.c (set_block_abstract_flags): Call
3787 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3788
3789 2009-09-16 Richard Guenther <rguenther@suse.de>
3790
3791 PR middle-end/34011
3792 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3793 as non-aliased.
3794
3795 2009-09-16 DJ Delorie <dj@redhat.com>
3796 Kaz Kojima <kkojima@gcc.gnu.org>
3797
3798 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3799 (sh_expand_prologue): Update calls to output_stack_adjust.
3800 (sh_expand_epilogue): Likewise.
3801
3802 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3803
3804 PR bootstrap/41349
3805 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3806 trying to limit the extent of searches in the insn stream.
3807
3808 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3809 Jakub Jelinek <jakub@redhat.com>
3810
3811 PR target/41175
3812 PR target/40677
3813 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3814 problem.
3815 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3816 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3817 (rs6000_savres_strategy): Always save FP registers inline if the
3818 target doesn't support hardware double-precision. Set the above
3819 bits in return value when needed.
3820 (rs6000_savres_routine_sym): Fix computation for cache selector.
3821 Mark the generated symbol as a function. Rename exitp argument to
3822 lr. Move code for determining the name of the symbol...
3823 (rs6000_savres_routine_name): ...here. New function. Add cases for
3824 getting the names right on AIX and 64-bit Linux.
3825 (savres_routine_name): New variable.
3826 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3827 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3828 on what the target routine uses as a base register. If savep && lr
3829 describe saving of r0 into memory slot.
3830 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3831 line calls for AIX ABI.
3832 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3833 determine FP save/restore functions.
3834 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3835 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3836 gen_addsi3.
3837 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3838 Duplicate restoration of LR and execute the appropriate one
3839 depending on whether GPRs are being restored inline. Set r11 from
3840 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3841 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3842 Fix out of line calls for AIX ABI.
3843 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3844 New insn.
3845 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3846 register 11.
3847 (*restore_gpregs_spe): Likewise.
3848 (*return_and_restore_gpregs_spe): Likewise.
3849 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3850 Define to empty string unconditionally.
3851 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3852 Define to empty string unconditionally.
3853 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3854 !TARGET_64BIT.
3855
3856 2009-09-15 Jan Hubicka <jh@suse.cz>
3857
3858 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3859 * params.def (inline-insns-auto): Likewise.
3860
3861 2009-09-15 Martin Jambor <mjambor@suse.cz>
3862
3863 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3864 individual statements only at TDF_DETAILS dump level. Format
3865 source for 80 characters per line.
3866
3867 2009-09-15 Christian Bruel <christian.bruel@st.com>
3868
3869 * regrename.c (do_replace): Update REG_DEAD notes.
3870
3871 2009-09-15 Revital Eres <eres@il.ibm.com>
3872
3873 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3874 * targhooks.c (default_builtin_support_vector_misalignment):
3875 New builtin function.
3876 * targhooks.h (default_builtin_support_vector_misalignment):
3877 Declare.
3878 * target.h (builtin_support_vector_misalignment):
3879 New field in struct gcc_target.
3880 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3881 new builtin function.
3882 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3883 Define.
3884 * config/rs6000/rs6000.c
3885 (rs6000_builtin_support_vector_misalignment): New function.
3886 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3887
3888 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3889
3890 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3891 instead of INSN_P.
3892 (bfin_optimize_loop): Likewise.
3893 (bfin_gen_bundles): Likewise.
3894 (workaround_speculation): Likewise.
3895 (find_load): Return NULL_RTX for debug_insn.
3896
3897 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3898
3899 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3900 (sminsf3): Ditto.
3901
3902 2009-09-14 DJ Delorie <dj@redhat.com>
3903
3904 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3905 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3906 VLIW mode.
3907
3908 2009-09-14 Richard Henderson <rth@redhat.com>
3909 Jakub Jelinek <jakub@redhat.com>
3910
3911 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3912 * cfgbuild.c (make_edges): Handle asm goto.
3913 * cfglayout.c (fixup_reorder_chain): Likewise.
3914 * cfgrtl.c (patch_jump_insn): Likewise.
3915 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3916 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3917 (gimple_build_asm_vec): Add and use labels parameter.
3918 (gimple_build_asm): Remove.
3919 (walk_gimple_asm): Walk labels too.
3920 * gimple.def (GIMPLE_ASM): Update docs.
3921 * gimple.h: Update decls.
3922 (struct gimple_statement_asm): Change nc to use unsigned char;
3923 add nl member.
3924 (gimple_asm_nlabels): New.
3925 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3926 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3927 into gimple_build_asm_vec.
3928 * jump.c (mark_jump_label_asm): New.
3929 (mark_jump_label): Use it.
3930 (redirect_jump_1): Handle asm goto.
3931 (invert_jump_1): Soft fail if X is null.
3932 * recog.c (extract_asm_operands): New.
3933 (asm_noperands): Use it; handle asm labels.
3934 (decode_asm_operands): Use extract_asm_operands.
3935 (asm_operand_ok): Properly handle empty string.
3936 * reg-stack.c (get_asm_operands_in_out): Rename from
3937 get_asm_operand_n_inputs; use extract_asm_operands; return both
3938 inputs and outputs by reference; update all callers.
3939 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3940 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3941 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3942 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3943 (extract_asm_operands): Declare.
3944 * stmt.c (expand_asm_operands): Add and use labels parameter.
3945 (check_unique_operand_names): Likewise.
3946 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3947 (expand_asm_stmt): Handle asm labels.
3948 * tree-cfg.c (make_gimple_asm_edges): New.
3949 (make_edges): Use it.
3950 (cleanup_dead_labels): Handle asm labels.
3951 (is_ctrl_altering_stmt): Likewise.
3952 (gimple_redirect_edge_and_branch): Likewise.
3953 * tree.def (ASM_EXPR): Add 5th operand.
3954 * tree.h (ASM_LABELS): New.
3955 (resolve_asm_operand_names): Update decl.
3956
3957 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3958 (c_parser_asm_goto_operands): New.
3959 * c-tree.h (build_asm_expr): Update decl.
3960 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3961 * doc/extend.texi: Document asm goto.
3962
3963 2009-09-14 Richard Henderson <rth@redhat.com>
3964
3965 * except.h: Update declarations.
3966 (struct pointer_map_t): Forward declare.
3967 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3968 (struct eh_landing_pad_d, eh_landing_pad): New.
3969 (struct eh_catch_d, eh_catch): New.
3970 (struct eh_region_d): Remove next_region_sharing_label, aka,
3971 label, tree_label, landing_pad, post_landing_pad, resume,
3972 may_contain_throw. Rename region_number to index. Remove
3973 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3974 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3975 (VEC(eh_landing_pad,gc)): New.
3976 (struct eh_status): Remove last_region_number. Add lp_array,
3977 throw_stmt_table, ttype_data, ehspec_data.
3978 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3979 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3980 * except.c (lang_protect_cleanup_actions): Return tree.
3981 (struct ehl_map_entry): Remove.
3982 (init_eh_for_function): Push zero entries for region and lp_array.
3983 (gen_eh_region): Add to region_array immediately.
3984 (gen_eh_region_catch): Operate on eh_catch objects.
3985 (gen_eh_landing_pad): New.
3986 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3987 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3988 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3989 (get_eh_landing_pad_from_number_fn): New.
3990 (get_eh_landing_pad_from_number): New.
3991 (get_eh_region_from_lp_number_fn): New.
3992 (get_eh_region_from_lp_number): New.
3993 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3994 (get_exception_pointer, get_exception_filter): Remove.
3995 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3996 (current_function_has_exception_handlers): Simplify.
3997 (bring_to_root, eh_region_replaceable_by_p): Remove.
3998 (replace_region, hash_type_list, hash_eh_region): Remove.
3999 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
4000 (label_to_region_map, num_eh_regions): Remove.
4001 (get_next_region_sharing_label, must_not_throw_labels): Remove.
4002 (find_exception_handler_labels): Remove.
4003 (duplicate_eh_regions_0, find_prev_try): Remove.
4004 (struct duplicate_eh_regions_data): New.
4005 (duplicate_eh_regions_1): Rewrite.
4006 (duplicate_eh_regions): Return a pointer map instead of an
4007 integer offset.
4008 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
4009 (redirect_eh_edge_to_label): Remove.
4010 (eh_region_outermost): Rewrite using eh_region pointers
4011 instead of integers.
4012 (add_ttypes_entry): Update for ttype_data move to eh_status.
4013 (add_ehspec_entry): Rewrite with VEC instead of varray.
4014 (assign_filter_values): Likewise. Export.
4015 (build_post_landing_pads, connect_post_landing_pads): Remove.
4016 (dw2_build_landing_pads): Rewrite to use lp_array.
4017 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
4018 (sjlj_assign_call_site_values): Rewrite to use lp_array.
4019 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
4020 (sjlj_mark_call_sites): Update for landing pad numbers.
4021 (finish_eh_generation): Rewrite.
4022 (gate_handle_eh): Do nothing for no eh tree.
4023 (pass_rtl_eh): Move up near finish_eh_generation.
4024 (remove_eh_landing_pad): New.
4025 (remove_eh_handler): Export.
4026 (remove_eh_region, remove_eh_handler_and_replace): Remove.
4027 (for_each_eh_label): Rewrite to use lp_array.
4028 (make_reg_eh_region_note): New.
4029 (make_reg_eh_region_note_nothrow_nononlocal): New.
4030 (insn_could_throw_p): New.
4031 (copy_reg_eh_region_note_forward): New.
4032 (copy_reg_eh_region_note_backward): New.
4033 (check_handled, add_reachable_handler): Remove.
4034 (reachable_next_level, foreach_reachable_handler): Remove.
4035 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
4036 (get_eh_region_and_lp_from_rtx): New.
4037 (get_eh_region_from_rtx): New.
4038 (can_throw_internal_1, can_throw_external_1): Remove.
4039 (can_throw_internal): Use get_eh_region_from_rtx.
4040 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
4041 (insn_nothrow_p, can_nonlocal_goto): New.
4042 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
4043 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
4044 (add_action_record): Use VEC not varray.
4045 (collect_one_action_chain): Update for eh_region changes.
4046 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
4047 Use get_eh_region_and_lp_from_rtx.
4048 (gate_convert_to_eh_region_ranges): New.
4049 (pass_convert_to_eh_region_ranges): Use it.
4050 (push_uleb128, push_sleb128): Use VEC not varray.
4051 (output_one_function_exception_table): Likewise.
4052 (dump_eh_tree): Update for eh_region changes.
4053 (verify_eh_tree): Likewise.
4054 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
4055 * tree-eh.c: Include target.h.
4056 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
4057 Don't disallow GIMPLE_RESX; adjust argument check.
4058 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
4059 (record_stmt_eh_region): Update for landing pad numbers;
4060 generate a landing pad if necessary.
4061 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
4062 (remove_stmt_from_eh_lp_fn): Similarly.
4063 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
4064 Update for lp numbers; don't special case missing throw_stmt_table.
4065 (lookup_expr_eh_lp): Similarly.
4066 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
4067 (eh_seq, eh_region_may_contain_throw): New.
4068 (struct leh_state): Add ehp_region.
4069 (struct leh_tf_state): Remove eh_label.
4070 (emit_post_landing_pad): New.
4071 (emit_resx, emit_eh_dispatch): New.
4072 (note_eh_region_may_contain_throw): New.
4073 (frob_into_branch_around): Take eh_region not eh label;
4074 emit eh code into eh_seq.
4075 (honor_protect_cleanup_actions): Early exit for no actions. Don't
4076 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
4077 lower_eh_must_not_throw. Emit code to eh_seq.
4078 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
4079 (lower_try_finally_onedest): Likewise.
4080 (lower_try_finally_copy): Likewise.
4081 (lower_try_finally_switch): Likewise.
4082 (lower_try_finally): Initialize ehp_region.
4083 (lower_catch): Update for eh_catch objects.
4084 (lower_eh_filter): Don't handle must_not_throw.
4085 (lower_eh_must_not_throw): New.
4086 (lower_cleanup): Don't set eh_label.
4087 (lower_eh_constructs_2): Resolve eh builtins.
4088 Handle GIMPLE_EH_MUST_NOT_THROW.
4089 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
4090 Add eh_seq to the end of the function body.
4091 (make_eh_dispatch_edges): New.
4092 (make_eh_edge): Remove.
4093 (make_eh_edges): Simplify for landing pads.
4094 (redirect_eh_edge_1): New.
4095 (redirect_eh_edge): Use it.
4096 (redirect_eh_dispatch_edge): New.
4097 (stmt_could_throw_p): Use a switch. Allow RESX.
4098 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
4099 (stmt_can_throw_internal): Likewise.
4100 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
4101 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
4102 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
4103 (gate_refactor_eh): New.
4104 (pass_refactor_eh): Use it.
4105 (lower_resx, execute_lower_resx, pass_lower_resx): New.
4106 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
4107 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
4108 (remove_unreachable_handlers): Rename from
4109 tree_remove_unreachable_handlers; rewrite for landing pads;
4110 call remove_eh_handler directly.
4111 (remove_unreachable_handlers_no_lp): New.
4112 (unsplit_eh, unsplit_all_eh): New.
4113 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
4114 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
4115 (cleanup_empty_eh_unsplit): New.
4116 (cleanup_empty_eh): Rewrite.
4117 (cleanup_all_empty_eh): New.
4118 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
4119 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
4120 (gate_cleanup_eh): New.
4121 (pass_cleanup_eh): Use it.
4122 (verify_eh_edges): Move later in file. Expect one EH edge.
4123 (verify_eh_dispatch_edge): New.
4124
4125 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4126 (gtype-desc.o): Add TARGET_H.
4127 (tree.o): Use EXCEPT_H, not except.h.
4128 (cfgbuild.o): Add EXPR_H.
4129 (GTFILES): Add vecprim.h.
4130 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4131 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4132 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4133 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4134 * calls.c (emit_call_1): Use make_reg_eh_region_note.
4135 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4136 calls to can_throw_internal.
4137 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4138 (make_edges): Don't handle RESX; use can_nonlocal_goto.
4139 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4140 (expand_gimple_stmt): Use make_reg_eh_region_note.
4141 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4142 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4143 or find_exception_handler_labels.
4144 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
4145 there is exacly one EH edge. Use can_nonlocal_goto and
4146 can_throw_internal.
4147 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4148 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4149 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4150 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4151 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4152 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4153 * dse.c (scan_insn): Use insn_could_throw_p.
4154 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4155 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4156 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4157 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4158 EXC_PTR_EXPR or FILTER_EXPR.
4159 (tree_expr_nonzero_warnv_p): Likewise.
4160 * function.h: Include vecprim.h, not varray.h
4161 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4162 move ttype_data and ehspec_data members to struct eh_status; change
4163 action_record_data member to a VEC.
4164 * gcse.c (hash_scan_set): Use can_throw_internal.
4165 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4166 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4167 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4168 (block_may_fallthru): Don't handle RESX_EXPR.
4169 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4170 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4171 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4172 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4173 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4174 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4175 (gimple_size): Likewise.
4176 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4177 (gimple_build_resx): Use gimple_build_with_ops.
4178 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4179 (is_gimple_val): Likewise.
4180 (is_gimple_stmt): Remove RESX_EXPR.
4181 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4182 (GIMPLE_RESX): Reorder with other EH constructs.
4183 * gimple.h (struct gimple_statement_eh_mnt): New.
4184 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4185 (gimple_eh_filter_must_not_throw): Remove.
4186 (gimple_eh_filter_set_must_not_throw): Remove.
4187 (gimple_eh_must_not_throw_fndecl): New.
4188 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4189 (is_gimple_resx): New.
4190 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4191 Don't copy EH_FILTER_MUST_NOT_THROW.
4192 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4193 * ipa-inline.c (estimate_function_body_sizes): Don't try to
4194 handle must_not_throw_labels specially.
4195 * ipa-pure-const.c (check_call): Update debug statement for LP.
4196 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4197 * ipa-utils.c (get_base_var): Likewise.
4198 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4199 * lower-subreg.c (move_eh_region_note): Remove.
4200 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4201 * omp-low.c (new_omp_context): Update for eh_lp_nr.
4202 (create_task_copyfn): Likewise.
4203 (maybe_catch_exception): Use gimple_build_eh_filter.
4204 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4205 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
4206 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4207 and pass_lower_resx.
4208 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4209 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4210 can_throw_internal, can_nonlocal_goto.
4211 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4212 copy_reg_eh_region_note_forward.
4213 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4214 (emit_output_reload_insns): Likewise.
4215 (copy_eh_notes): Remove.
4216 * rtl.def (RESX): Remove.
4217 * rtl.h: Update declarations.
4218 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4219 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4220 (update_eh_label): Remove.
4221 (cleanup_dead_labels_eh): New.
4222 (cleanup_deal_labels): Use it instead of update_eh_label.
4223 (gimple_merge_blocks): Update landing pad data structure when
4224 removing a landing pad label.
4225 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4226 test; handle GIMPLE_EH_MUST_NOT_THROW.
4227 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4228 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4229 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4230 (verify_stmt): Likewise. Verify landing pads.
4231 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4232 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4233 (struct move_stmt_d): Add eh_map.
4234 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4235 (move_stmt_r): Remap eh region numbers in builtin calls,
4236 resx and eh_dispatch.
4237 (move_block_to_fn): Remove eh_offset parameter. Use
4238 maybe_duplicate_eh_stmt_fn.
4239 (find_outermost_region_in_block): Operate on eh_region pointers
4240 instead of region numbers.
4241 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4242 duplicate_eh_regions.
4243 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4244 test earlier. Disallow EH landing pads.
4245 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4246 * tree-flow.h: Update declarations.
4247 (struct tree_ann_common_d): Replace rn with lp_nr.
4248 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4249 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4250 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4251 resx and eh_dispatch.
4252 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4253 (copy_edges_for_bb): Use make_eh_dispatch_edges.
4254 (copy_cfg_body): Expect eh_map instead of eh_region_offset
4255 from duplicate_eh_regions.
4256 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4257 update RESX; handle EH_DISPATCH.
4258 (expand_call_inline): Set eh_lp_nr, not eh_region.
4259 (maybe_inline_call_in_expr): Likewise.
4260 * tree-inline.h (struct copy_body_data): Replace eh_region with
4261 eh_lp_nr, eh_region_offset with eh_map.
4262 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4263 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4264 * tree-pretty-print.c (dump_generic_node): Don't handle
4265 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4266 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4267 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4268 EXC_PTR_EXPR, FILTER_EXPR.
4269 * tree-ssa-operands.c (get_expr_operands): Likewise.
4270 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4271 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4272 (ao_ref_init_from_vn_reference): Likewise.
4273 * tree-ssa-sink.c (statement_sink_location): Likewise.
4274 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4275 (mark_virtual_phi_result_for_renaming): Export. Tidy.
4276 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4277 EXC_PTR_EXPR, FILTER_EXPR.
4278 (is_exception_related): Remove.
4279 (compute_avail): Don't call it.
4280 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4281 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4282 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4283 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4284 Build EH builtins.
4285 (build_resx): Remove.
4286 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4287 * tree.h: Update declarations.
4288 (EH_FILTER_MUST_NOT_THROW): Remove.
4289 (struct tree_label_decl): Add eh_landing_pad_nr.
4290 (EH_LANDING_PAD_NR): New.
4291 * value-prof.c (gimple_ic): Tidy variable names. Update for
4292 landing pad numbers.
4293 (gimple_stringop_fixed_value): Tidy variable names. Assert
4294 that neither call stmt can throw.
4295 * vecprim.h (uchar): New.
4296 (VEC(uchar,heap), VEC(uchar,gc)): New.
4297
4298 * c-common.c (c_define_builtins): Update call to
4299 build_common_builtin_nodes.
4300 * c-parser.c (c_parse_file): Don't call
4301 default_init_unwind_resume_libfunc.
4302
4303 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4304
4305 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4306 (mips_cprestore_address_p): Likewise.
4307 (mips_save_gp_to_cprestore_slot): Likewise.
4308 (mips_restore_gp): Rename to...
4309 (mips_restore_gp_from_cprestore_slot): ...this.
4310 (mips_must_initialize_gp_p): Declare.
4311 (mips_emit_save_slot_move): Likewise.
4312 (mips_output_load_label): Return nothing.
4313 (mips_eh_uses): Declare.
4314 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4315 (TARGET_CPRESTORE_DIRECTIVE): New macro.
4316 (TARGET_ABSOLUTE_JUMPS): Likewise.
4317 (EH_USES): Likewise.
4318 (FIRST_PSEUDO_REGISTER): Update comment.
4319 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4320 (MIPS_CALL): ...here.
4321 (REGISTER_NAMES): Add $cprestore.
4322 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4323 Add load_label_length, has_inflexible_gp_insn_p,
4324 has_flexible_gp_insn_p, must_initialize_gp_p and
4325 must_restore_gp_when_clobbered_p.
4326 (mips_expand_call): Don't generate split instructions here.
4327 (mips_split_call): Update the call to mips_restore_gp after
4328 the above name change.
4329 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4330 (mips_find_gp_ref): New function.
4331 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4332 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4333 (mips_insn_has_flexible_gp_ref_p): Likewise.
4334 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4335 (mips_function_has_gp_insn): Delete.
4336 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4337 Use the new functions above. Only return INVALID_REGNUM
4338 for TARGET_ABSOLUTE_JUMPS.
4339 (mips_must_initialize_gp_p): New function.
4340 (mips_get_cprestore_base_and_offset): New function, extracted from...
4341 (mips_cprestore_slot): ...here. Take a bool parameter.
4342 (mips_cfun_has_cprestore_slot_p): New function.
4343 (mips_cprestore_address_p): Likewise.
4344 (mips_save_gp_to_cprestore_slot): Likewise.
4345 (mips_restore_gp): Rename to...
4346 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4347 epilogue_completed. Update the call to mips_cprestore_slot.
4348 Test cfun->machine->must_restore_gp_when_clobbered_p.
4349 (mips_direct_save_slot_move_p): New function.
4350 (mips_emit_save_slot_move): Likewise.
4351 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4352 of cfun->machine->global_pointer.
4353 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4354 (mips_save_reg): Use mips_emit_save_slot_move.
4355 (mips_expand_prologue): Set must_initialize_gp_p.
4356 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4357 for all cprestore saves. Emit a use_cprestore instruction after
4358 setting up the cprestore slot.
4359 (mips_restore_reg): Use mips_emit_save_slot_move.
4360 (mips_process_load_label): New function.
4361 (mips_load_label_length): Likewise.
4362 (mips_output_load_label): Don't return asm: output it here instead.
4363 Use mips_process_load_label.
4364 (mips_adjust_insn_length): Adjust the length of branch instructions
4365 that have length MAX_PIC_BRANCH_LENGTH.
4366 (mips_output_conditional_branch): Update the call to
4367 mips_output_load_label. Assume the branch target is OPERANDS[0]
4368 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4369 (mips_output_order_conditional_branch): Swap the meaning of
4370 OPERANDS[0] and OPERANDS[1].
4371 (mips_variable_issue): Don't count ghost instructions.
4372 (mips_expand_ghost_gp_insns): New function.
4373 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4374 (mips_output_mi_thunk): Set must_initialize_gp_p.
4375 (mips_eh_uses): New function.
4376 * config/mips/predicates.md (cprestore_save_slot_operand)
4377 (cprestore_load_slot_operand): New predicates.
4378 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4379 (UNSPEC_MOVE_GP): Likewise.
4380 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4381 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4382 (CPRESTORE_SLOT_REGNUM): New register.
4383 (MAX_PIC_BRANCH_LENGTH): New constant.
4384 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4385 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4386 branches. Fix commentary.
4387 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4388 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4389 Change type to "ghost".
4390 (loadgp_absolute_<mode>): Likewise.
4391 (loadgp_rtp_<mode>): Likewise.
4392 (copygp_mips16): Likewise.
4393 (loadgp_blockage): Remove redundant mode attribute.
4394 (potential_cprestore): New instruction.
4395 (cprestore): Turn into an unspec set.
4396 (use_cprestore): New instruction.
4397 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4398 (*branch_fp_inverted): Likewise.
4399 (*branch_order<mode>): Likewise.
4400 (*branch_order<mode>_inverted): Likewise.
4401 (*branch_equality<mode>): Likewise.
4402 (*branch_equality<mode>_inverted): Likewise.
4403 (*branch_bit<bbv><mode>): Likewise.
4404 (*branch_bit<bbv><mode>_inverted): Likewise.
4405 (*branch_equality<mode>_mips16): Remove redundant mode.
4406 (jump): Turn into a define_expand.
4407 (*jump_absolute): New instruction.
4408 (*jump_pic): Likewise.
4409 (*jump_mips16): Rename previously-unnamed pattern. Remove
4410 redundant mode attribute.
4411 (restore_gp): Split on epilogue_completed rather than
4412 reload_completed. Change type to "ghost".
4413 (move_gp<mode>): New instruction.
4414 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4415 Remove redundant mode attribute.
4416 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4417 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4418 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4419
4420 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4421
4422 PR target/41210
4423 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4424 are returned in the same register (vs34 or v2) that Altivec vector
4425 types are returned in.
4426 (rs6000_libcall_value): Ditto.
4427
4428 PR target/41331
4429 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4430 instead of explicit addsi3/adddi3 calls.
4431 (rs6000_split_multireg_move): Ditto.
4432 (rs6000_emit_allocate_stack): Ditto.
4433 (rs6000_emit_prologue): Ditto.
4434 (rs6000_output_mi_thunk): Ditto.
4435
4436 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4437 size is 64 bits if we can use 64-bit registers.
4438
4439 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4440
4441 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4442 symbols.
4443
4444 From Jie Zhang <jie.zhang@analog.com>:
4445 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4446 save FP and RETS with saveall attribute.
4447 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4448 with saveall attribute.
4449
4450 * config/bfin/bfin.c (bfin_expand_builtin,
4451 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4452 operands.
4453
4454 From Jie Zhang <jie.zhang@analog.com>:
4455 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4456 before use in two places.
4457 * config/bfin/bfin.md (AREG): Define mode iterator.
4458 (reload_in, reload_out): Use mode iterator AREG.
4459
4460 2009-09-14 Richard Guenther <rguenther@suse.de>
4461
4462 PR middle-end/41350
4463 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4464 EH personality path.
4465
4466 2009-09-13 Richard Guenther <rguenther@suse.de>
4467 Rafael Avila de Espindola <espindola@google.com>
4468
4469 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4470 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4471 (LANG_HOOKS_INITIALIZER): Adjust.
4472 (lhd_pass_through_t): Declare.
4473 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4474 eh_personality.
4475 * langhooks.c (lhd_pass_through_t): New function.
4476 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4477 dwarf2out_begin_prologue): Use personality from current_function_decl.
4478 * expr.h (get_personality_function): Declare.
4479 * expr.c (get_personality_function): New function.
4480 (build_personality_function): Likewise.
4481 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4482 (eh_personality_libfunc): Remove.
4483 * optabs.c (build_libfunc_function): New function split out from ...
4484 (init_one_libfunc): ... here.
4485 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4486 (tree_function_decl): Add personality.
4487 (lhd_gcc_personality): Declare.
4488 (build_personality_function): Likewise.
4489 * tree.c (gcc_eh_personality_decl): New.
4490 (lhd_gcc_personality): New function.
4491 * except.h (lang_eh_runtime_type): Remove.
4492 (enum eh_personality_kind): New.
4493 (build_personality_function): Declare.
4494 (function_needs_eh_personality): Declare.
4495 * except.c (lang_eh_runtime_type): Remove.
4496 (function_needs_eh_personality): New function.
4497 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4498 (sjlj_emit_function_enter, output_function_exception_table):
4499 Use personality from current_function_decl.
4500 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4501 * tree-inline.c (tree_can_inline_p): Do not inline across different
4502 EH personalities.
4503 (expand_call_inline): Likewise. Adjust the callers EH personality.
4504 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4505 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4506 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4507 (c-parser.o): Likewise
4508 * c-tree.h (c_eh_initialized_p): Remove.
4509 (c_maybe_initialize_eh): Likewise.
4510 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4511 (finish_decl): Don't call c_maybe_initialize_eh.
4512 (c_eh_initialized_p): Remove.
4513 (c_maybe_initialize_eh): Likewise.
4514 * c-parser.c (c_parser_omp_construct): Likewise.
4515 (c_parse_file): Initialize exception handling.
4516
4517 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4518
4519 * config.gcc (tm_file): Remove i386/biarch32.h
4520 for i?86-w64-mingw* case.
4521 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4522 support.
4523 * config.host: Set for x64 mingw the option
4524 use_long_long_for_widest_fast_int to yes.
4525
4526 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4527
4528 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4529 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4530 (dbxout_begin_function): Likewise.
4531 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4532 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4533 set on the function.
4534 (final_end_function): Likewise.
4535 (final_scan_insn): Likewise.
4536 (rest_of_handle_final): Likewise.
4537 * varasm.c (assemble_start_function): Likewise.
4538 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4539
4540 2009-09-12 Jason Merrill <jason@redhat.com>
4541
4542 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4543 * opts.c (common_handle_option): constify.
4544
4545 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4546
4547 * doc/install.texi (avr): Remove obsolete reference site.
4548
4549 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4550
4551 * doc/install.texi (Binaries): Adjust AIX link.
4552
4553 2009-09-12 Akim Demaille <demaille@gostai.com>
4554
4555 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4556 Use an imperative sentence.
4557
4558 2009-09-11 Richard Henderson <rth@redhat.com>
4559
4560 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4561 structure-name and has-tree-operands arguments; update all entries.
4562 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4563 update all entries.
4564 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4565 (gsstruct_code_size): New.
4566 (gss_for_code_): New.
4567 (gss_for_code): Remove.
4568 (gimple_size): Rewrite using gsstruct_code_size.
4569 (gimple_statement_structure): Move to gimple.h.
4570 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4571 (gss_for_code, gimple_statement_structure): New.
4572 (gimple_ops): Use new arrays; tidy.
4573
4574 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4575
4576 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4577 operand to be a PLUS expression.
4578 * config/pa/pa.c (pa_secondary_reload): Likewise.
4579
4580 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4581
4582 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4583
4584 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4585 XEXP (in_rtx, 8).
4586
4587 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4588
4589 From Jie Zhang <jie.zhang@analog.com>:
4590 * doc/extend.texi (node Function Attributes): Document l2
4591 function attribute.
4592 (node Blackfin Variable Attributes): Document l2 variable attributes.
4593
4594 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4595
4596 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4597 to match the system compiler's configuration at inflection point.
4598 Add comment to remark a remaining difference with system compiler.
4599
4600 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4601 * configure: Regenerate.
4602
4603 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4604
4605 From Jie Zhang <jie.zhang@analog.com>:
4606 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4607 (bfin_handle_l2_attribute): New.
4608 (bfin_attribute_table): Add l2 attribute.
4609
4610 2009-09-11 Michael Matz <matz@suse.de>
4611
4612 PR middle-end/41275
4613 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4614 on the local_decls list.
4615
4616 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4617
4618 PR debug/41276
4619 PR debug/41307
4620 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4621 interface.
4622 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4623 for VALUEs, to implement the documented interface.
4624 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4625 Adjust for VALUEs and anything else, to implement the
4626 documented interface.
4627
4628 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4629
4630 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4631 with actual SPE/paired vector modes before using 64-bit alignment.
4632 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4633
4634 2009-09-10 DJ Delorie <dj@redhat.com>
4635
4636 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4637 emitted.
4638
4639 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4640 * config/mep/mep.c (mep_legitimate_constant_p): New.
4641 * config/mep/mep-protos.h: Prototype it.
4642
4643 2009-09-10 Richard Henderson <rth@redhat.com>
4644
4645 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4646
4647 2009-09-10 Jason Merrill <jason@redhat.com>
4648
4649 * tree.c (chain_index): New fn.
4650 * tree.h: Declare it.
4651
4652 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4653
4654 * config/sol2-c.c (cmn_err_length_specs): Initialize
4655 scalar_identity_flag.
4656
4657 2009-09-10 Richard Henderson <rth@redhat.com>
4658
4659 * tree.h (struct tree_decl_common): Move align member earlier;
4660 move label_decl_uid member ...
4661 (struct tree_label_decl): ... here.
4662 (LABEL_DECL_UID): Update to match.
4663
4664 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4665 not TDF_DETAILS.
4666
4667 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4668 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4669
4670 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4671 dest_prev if the edge is complex.
4672
4673 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4674
4675 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4676 loop latch tests earlier.
4677
4678 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4679 before GIMPLE_RETURN, not after its predecessor; insert
4680 before GIMPLE_RESX.
4681
4682 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4683 gimple_seq_empty_p to test for no PHI nodes.
4684 * tree-cfg.c (split_critical_edges): Likewise.
4685
4686 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4687
4688 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4689
4690 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4691 introduced by the VTA branch merge.
4692
4693 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4694
4695 * ira-conflicts.c: Use fputs or putc instead of fprintf
4696 where appropriate.
4697 * cfg.c: Ditto.
4698 * toplev.c: Ditto.
4699 * tree-switch-conversion.c: Ditto.
4700
4701 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4702
4703 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4704 introduced by the VTA branch merge.
4705
4706 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4707
4708 Revert:
4709 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4710
4711 PR rtl-optimization/39779
4712 * expr.c (convert_modes): Return when mode == oldmode after
4713 CONST_INTs are processed.
4714
4715 2009-09-10 Nick Clifton <nickc@redhat.com>
4716
4717 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4718 attribute and referring decl when creating renamed symbol.
4719
4720 2009-09-10 Richard Guenther <rguenther@suse.de>
4721
4722 PR middle-end/41257
4723 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4724 reachable nodes.
4725 (cgraph_finalize_compilation_unit): Compute reachability
4726 before emitting thunks. Properly process aliases before
4727 possibly removing unreachable nodes.
4728
4729 2009-09-10 Richard Guenther <rguenther@suse.de>
4730
4731 PR middle-end/41254
4732 * tree.c (struct free_lang_data_d): Add worklist member.
4733 (find_decls_types_r): Push onto the worklist instead of recursing.
4734 Handle TREE_BINFOs properly.
4735 (find_decls_types): New function wrapped around find_decls_types_r
4736 to process the worklist.
4737 (find_decls_types_in_eh_region): Use it.
4738 (find_decls_types_in_node): Likewise.
4739 (find_decls_types_in_var): Likewise.
4740 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4741 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4742 (AGGREGATE_TYPE_P): Adjust.
4743
4744 2009-09-09 Jason Merrill <jason@redhat.com>
4745
4746 * configure.ac: Check glibc version even if we have an in-tree
4747 assembler.
4748
4749 2009-09-09 Anthony Green <green@moxielogic.com>
4750
4751 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4752 the constant 0 when appropriate.
4753 * config/moxie/constraints.md: Add constraint O.
4754
4755 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4756 to pass up to 6 32-bit argument values in registers.
4757 (moxie_function_arg): Ditto.
4758 (moxie_arg_partial_bytes): Ditto.
4759 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4760 (REG_PARM_STACK_SPACE): Ditto.
4761 (FUNCTION_ARG_REGNO_P): Ditto.
4762
4763 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4764 instruction to allocate stack space.
4765
4766 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4767
4768 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4769 unnecessarily stringent constraints. Fix address
4770 calculation in the splitters.
4771
4772 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4773
4774 PR rtl-optimization/39779
4775 * expr.c (convert_modes): Return when mode == oldmode after
4776 CONST_INTs are processed.
4777
4778 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4779
4780 PR/41315
4781 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4782 (ix86_expand_prologue): Take frame.padding0 into logic of
4783 to_allocate checks.
4784 (ix86_expand_epilogue): Likewise.
4785
4786 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4787
4788 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4789 New variables.
4790 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4791 * config/t-slibgcc-libgcc: New file.
4792 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4793
4794 2009-09-09 Martin Jambor <mjambor@suse.cz>
4795
4796 PR tree-optimization/41089
4797 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4798 early SRA.
4799
4800 2009-09-09 Richard Henderson <rth@redhat.com>
4801
4802 * gimple.h (CASE_GIMPLE_OMP): New.
4803 (is_gimple_omp): Use it.
4804 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4805 (verify_gimple_debug): Likewise.
4806
4807 2009-09-09 Richard Guenther <rguenther@suse.de>
4808
4809 PR tree-optimization/41101
4810 * tree-ssa-pre.c (maximal_set): Remove.
4811 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4812 Defer all blocks we didn't visit at least one successor.
4813 (add_to_exp_gen): Do not add to the maximal set.
4814 (make_values_for_phi): Likewise.
4815 (compute_avail): Likewise.
4816 (init_pre): Do not allocate the maximal set.
4817 (execute_pre): Do not dump it.
4818
4819 2009-09-09 Martin Jambor <mjambor@suse.cz>
4820
4821 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4822 an SSA_NAME rather than a is_gimple_variable.
4823
4824 2009-09-09 Richard Guenther <rguenther@suse.de>
4825
4826 PR middle-end/41317
4827 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4828 code dealing with plain pointer bases.
4829 (maybe_fold_offset_to_reference): Likewise.
4830 (maybe_fold_stmt_addition): Adjust.
4831
4832 2009-09-09 Richard Guenther <rguenther@suse.de>
4833
4834 * tree.c (free_lang_data_in_type): Do not free the type variant
4835 chains.
4836 (free_lang_data): Merge char_type_node with its properly signed
4837 variant.
4838 (pass_ipa_free): Collect after freeing language specific data.
4839
4840 2009-09-09 Michael Matz <matz@suse.de>
4841
4842 PR middle-end/41268
4843 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4844 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4845 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4846 to reflect reality.
4847
4848 2009-09-08 DJ Delorie <dj@redhat.com>
4849
4850 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4851
4852 2009-09-04 Jason Merrill <jason@redhat.com>
4853
4854 * tree.c (tree_find_value): Remove.
4855 * tree.h: Remove prototype.
4856 * varasm.c (assemble_external): Use value_member instead.
4857
4858 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4859
4860 * toplev.c (process_options): Choose default debugging type when
4861 gtoggle enables debug info and type is unset.
4862
4863 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4864
4865 PR debug/41276
4866 PR debug/41307
4867 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4868 invalid subreg.
4869
4870 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4871
4872 * configure: Rebuilt with modified libtool.m4.
4873
4874 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4875
4876 PR debug/41229
4877 PR debug/41291
4878 PR debug/41300
4879 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4880
4881 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4882
4883 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4884 (remove_statement): Likewise.
4885 (rewrite_use_nonlinear_expr): Adjust.
4886 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4887 * tree-ssa.c (release_defs_bitset): ... this. New.
4888 * tree-flow.h (release_defs_bitset): Declare.
4889
4890 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4891
4892 PR debug/41232
4893 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4894 in the middle block.
4895
4896 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4897
4898 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4899 via intptr_t to long type.
4900 (insert_operand_rank): Cast long type via intptr_t to
4901 pointer type.
4902 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4903 pointer to scalar.
4904 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4905 from pointer to unsigned via uintptr_t.
4906
4907 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4908 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4909 and HAVE_INTPTR_T.
4910 * configure: Regenerated.
4911 * config.in: Regenerated
4912 * system.h (stdint.h): Add include.
4913 (inttypes.h): Likewise.
4914 * Makefile.in (aclocal): Add config/stdint.m4.
4915 * aclocal.m4: Regenerated.
4916
4917 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4918
4919 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4920 variables.
4921 (note_np_check_stores): New function.
4922 (harmless_null_pointer_p): New function.
4923 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4924 changed. Take into account whether we're in the shadow of a condjump
4925 that tested NP_REG for NULL.
4926 Lose all code that tested for SEQUENCEs.
4927 (workaround_speculation): Avoid inserting NOPs for loads that are
4928 either always executed or a NULL pointer.
4929
4930 2009-09-08 Jan Hubicka <jh@suse.cz>
4931
4932 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4933 * params.def (early-inlining-insns): Likewise.
4934
4935 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4936
4937 PR rtl-optimization/41239
4938 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4939 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4940 lists.
4941 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4942 across calls, as the calls might not always return normally.
4943 (call_may_noreturn_p): New function.
4944 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4945 (init_deps): Initialize it.
4946 (remove_from_deps): Also remove calls from
4947 last_function_call_may_noreturn list.
4948
4949 2009-09-07 Richard Henderson <rth@redhat.com>
4950
4951 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4952 more VR->OPERANDS than LHS operands. Free LHS before returning.
4953
4954 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4955
4956 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4957 (attr "addrtype"): New member "spreg".
4958 Use it if mem_spfp_address_operand is true for the address.
4959 (attr "type"): New entry "stall".
4960 (cpu_unit "load"): New.
4961 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4962 "load".
4963 (insn_reservation "loadsp"): New.
4964 (insn_reservation "load_stall1"): New.
4965 (insn_reservation "load_stall3"): New.
4966 (stall): New insn.
4967 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4968 (mem_p_address_operand): Exclude stack and frame pointer based
4969 addresses.
4970 (mem_spfp_address_operand): New; match them here.
4971 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4972 (bfin_reorg): Call it if scheduling insns.
4973 (bfin_gen_bundles): Remove dummy insns created by
4974 add_sched_insns_for_speculation.
4975
4976 From Jie Zhang <jie.zhang@analog.com>:
4977 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4978 bfin_si_revision, bfin_workarounds): Move these ...
4979 * config/bfin/bfin.h: ... here.
4980
4981 From Mike Frysinger <michael.frysinger@analog.com>
4982 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4983 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4984 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4985 bf547m, bf548m, and bf549m.
4986 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4987 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4988 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4989 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4990 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4991 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4992 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4993 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4994 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4995 bf542m, bf544m, bf547m, bf548m, and bf549m.
4996
4997 From Jie Zhang <jie.zhang@analog.com>:
4998 * config/bfin/predicates.md (p_register_operand): New predicate.
4999 (dp_register_operand): New predicate.
5000 * config/bfin/bfin-protos.h (WA_05000074): Define.
5001 (ENABLE_WA_05000074): Define.
5002 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
5003 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
5004 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
5005 (define_attr addrtype): Allow load/store register to be P register.
5006 (define_attr storereg): New.
5007 (define_cpu_unit anomaly_05000074): New.
5008 (define_insn_reservation dsp32shiftimm): New.
5009 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
5010 (define_insn_reservation loadp): Cannot use slot2.
5011 (define_insn_reservation loadsp): Cannot use slot2.
5012 (define_insn_reservation storep): Cannot use slot2. Does not
5013 apply when working around 05000074.
5014 (define_insn_reservation storep_anomaly_05000074): New.
5015 (define_insn_reservation storei): Does not apply when working
5016 around 05000074.
5017 (define_insn_reservation storei_anomaly_05000074): New.
5018 (define_attr length): Add dsp32shiftimm case.
5019 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
5020 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
5021 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
5022 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
5023 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
5024
5025 2009-09-07 Martin Jambor <mjambor@suse.cz>
5026
5027 PR middle-end/41282
5028 * tree-sra.c (create_artificial_child_access): Return NULL if
5029 build_ref_for_offset fails.
5030 (propagate_subacesses_accross_link): Allow build_ref_for_offset
5031 and create_artificial_child_access to fail.
5032
5033 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
5034
5035 PR c++/41214
5036 * unwind-dw2.c (uw_init_context_1): Mark noinline.
5037 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
5038 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
5039
5040 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
5041
5042 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
5043 block, ensure it has an exit edge. Emit a barrier after a jump.
5044
5045 2009-09-07 Nick Clifton <nickc@redhat.com>
5046
5047 * gcc.c (this_is_linker_script): New variable. Like
5048 this_is_library_file but for the %T constructor.
5049 (end_going_arg): If this_is_linker_script is set then locate the
5050 script and insert a --script switch before it
5051 (do_spec_2): Initialise this_is_linker_script.
5052 (do_spec_1): Likewise. Handle %T construct.
5053 (eval_spec_function): Preserve this_is_linker_script.
5054 * doc/invoke.texi: Document %T construct in spec files.
5055 * config/m32c/m32c.h (LIB_SPEC): Use it.
5056
5057 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5058
5059 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
5060 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
5061 when volatile flag is set.
5062 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
5063
5064 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
5065
5066 PR bootstrap/41241
5067 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
5068 (combine_stack_adjustments_for_block): Allow insns between stack
5069 adjustments and stores with corresponding pre-(dec|inc)rement or
5070 pre-modify operation.
5071
5072 2009-09-06 Jakub Jelinek <jakub@redhat.com>
5073
5074 PR bootstrap/41241
5075 * combine-stack-adj.c (struct csa_memlist): Rename to...
5076 (struct csa_reflist): ... this. Rename mem field to ref.
5077 (free_csa_memlist): Rename to...
5078 (free_csa_reflist): ... this.
5079 (record_one_stack_memref): Rename to...
5080 (record_one_stack_ref): ... this. Handle also REG_P.
5081 (try_apply_stack_adjustment): Handle also REG_P.
5082 (struct record_stack_memrefs_data): Rename to...
5083 (struct record_stack_refs_data): ... this. Rename memlist field to
5084 reflist.
5085 (record_stack_memrefs): Rename to...
5086 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
5087 subexpressions instead of failing when a MEM contains SP references.
5088 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
5089 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
5090
5091 2009-09-06 Richard Guenther <rguenther@suse.de>
5092
5093 PR middle-end/41144
5094 * tree.c (build_array_type): Do not record types marked
5095 with structural equality in the canonical type hashtable.
5096
5097 2009-09-06 Richard Guenther <rguenther@suse.de>
5098
5099 PR middle-end/41261
5100 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
5101
5102 2009-09-05 Richard Guenther <rguenther@suse.de>
5103
5104 PR middle-end/41181
5105 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
5106
5107 2009-09-05 Richard Guenther <rguenther@suse.de>
5108
5109 PR debug/41273
5110 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
5111
5112 2009-09-05 Richard Guenther <rguenther@suse.de>
5113
5114 PR middle-end/41271
5115 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5116 before comparing function argument types.
5117
5118 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5119
5120 PR target/41024
5121 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5122 the assembler.
5123
5124 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5125
5126 Revert:
5127 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
5128
5129 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5130 locators before emit_insn is called.
5131
5132 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
5133
5134 PR bootstrap/41241
5135 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5136 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5137 (reginfo_init): Don't call allocate_reg_info.
5138
5139 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5140
5141 PR target/41262
5142 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5143 NONDEBUG_INSN_P instead of INSN_P.
5144
5145 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5146
5147 PR debug/41225
5148 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5149
5150 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5151
5152 PR target/41252
5153 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5154 pattern of the split.
5155
5156 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5157
5158 * toplev.c (process_options): Move setter of flag_var_tracking
5159 before other tests that depend on it. Move down setter of
5160 flag_rename_registers. Don't enable var-tracking-assignments
5161 by default if selective scheduling is enabled. Warn if both
5162 are enabled.
5163
5164 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5165
5166 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5167 comment. Use switch statement to catch overlaps between rtx
5168 and tree codes. Accept FUNCTION_DECLs in addition to those in...
5169 (IS_DECL_CODE): ... here. Remove.
5170 (check_value_is_not_decl): Remove.
5171 (dv_from_decl, dv_from_value): Check after conversion.
5172
5173 2009-09-04 Richard Guenther <rguenther@suse.de>
5174
5175 PR middle-end/41257
5176 * (cgraph_finalize_compilation_unit): Move finalizing aliases
5177 after emitting tunks. Move emitting thunks and ctors from ...
5178 (cgraph_optimize): ... here. Remove redundant
5179 cgraph_analyze_functions.
5180 * varasm.c (find_decl_and_mark_needed): Remove no longer
5181 necessary check.
5182 (finish_aliases_1): Adjust check for thunk aliases.
5183
5184 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
5185
5186 * config/arm/arm.md (ctzsi2): Added braces
5187 to avoid warning that broke booststrap.
5188
5189 2009-09-04 Martin Jambor <mjambor@suse.cz>
5190
5191 PR tree-optimization/41112
5192 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5193 handle variable-bounded arrays.
5194 (expr_with_var_bounded_array_refs_p): New function.
5195 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5196
5197 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
5198
5199 * config/s390/2097.md: Removed two incorrect bypasses.
5200 (z10_fsimpdf): Fixed latency.
5201 (z10_fhex): New insn_reservation.
5202 (z10_floaddf): Fixed latency.
5203 (z10_floadsf): Fixed latency.
5204 (z10_ftrunctf): Fixed latency.
5205 (z10_ftruncdf): Fixed latency.
5206 * config/s390/s390.c (z10_cost): Fixed values.
5207 (s390_adjust_priority): Added z10 path.
5208 * config/s390/s390.md (type): Added fhex.
5209 (*mov<mode>_64dfp): Updated type attribute.
5210 (*mov<mode>_64): Updated type attribute.
5211 (*mov<mode>_31): Updated type attribute.
5212 (*mov<mode>"): Likewise.
5213 * config/s390/2084.md (x_fsimpdf): Updated condition.
5214
5215 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
5216
5217 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5218 RTXs in the predicate for operand 1.
5219
5220 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
5221
5222 * config/arm/arm.md (UNSPEC_RBIT): New constant.
5223 (rbitsi2): New insn.
5224 (ctzsi2): New expand.
5225 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5226
5227 2009-09-03 Martin Jambor <mjambor@suse.cz>
5228
5229 * tree-sra.c (duplicate_expr_for_different_base): Removed.
5230 (create_artificial_child_access): Use build_ref_for_offset instead
5231 of duplicate_expr_for_different_base.
5232 (propagate_subacesses_accross_link): Likewise.
5233
5234 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
5235
5236 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5237 of INSN_P.
5238 (mips16e_collect_argument_saves): Skip debug instructions.
5239 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5240 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5241 (r10k_insert_cache_barriers): Likewise.
5242 (mips_reorg_process_insns): Likewise.
5243
5244 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
5245
5246 PR bootstrap/41241
5247 * ira.c (update_equiv_reg): Remove check on class likely spill.
5248
5249 2009-09-03 Jakub Jelinek <jakub@redhat.com>
5250
5251 PR debug/41236
5252 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5253 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
5254 it or SUBREG.
5255
5256 PR debug/41238
5257 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5258 the stack slot if it is passed by invisible reference.
5259 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5260 by invisible reference.
5261
5262 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5263
5264 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5265 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5266 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5267 0.
5268 * config/bfin/sync.md: New file.
5269 * config/bfin/bfin.md: Include it.
5270 (UNSPEC_ATOMIC): New.
5271 (UNSPEC_ONES): Provide a unique number.
5272
5273 From Jie Zhang <jie.zhang@analog.com>:
5274 * config/bfin/bfin.c (ret_regs): New.
5275 (must_save_fp_p): Don't return true because of frame_pointer_needed.
5276 (must_save_rets_p): New.
5277 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5278 current_function_is_leaf.
5279 (do_link): Likewise.
5280 (do_unlink): Likewise.
5281 (expand_interrupt_handler_prologue): Use ret_regs array.
5282 (expand_interrupt_handler_epilogue): Use ret_regs array and
5283 pass return register to gen_return_internal.
5284 (bfin_expand_epilogue): Pass return register to
5285 gen_return_internal.
5286 (bfin_expand_call): Explicitly clobber RETS.
5287 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5288 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5289 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5290 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5291 RETS.
5292 (return_internal): Take a reg rtx rather than the register number.
5293
5294 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
5295
5296 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5297 when comparing against estimated_loop_iterations_int return.
5298
5299 2009-09-03 Richard Guenther <rguenther@suse.de>
5300
5301 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5302 eh_personality_libfunc.
5303
5304 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5305
5306 * tree-parloops.c (separate_decls_in_region): Add space.
5307
5308 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5309
5310 * tree-parloops.c (separate_decls_in_region): Change the condition
5311 checking if there are reductions in the loop.
5312
5313 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5314
5315 PR tree-optimization/38275
5316 * tree-parloops.c (parallelize_loops): Replace profitability condition
5317 for expected number of iterations.
5318
5319 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5320
5321 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5322 (bootstrap-debug): Explain conditions in which it becomes default.
5323 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5324 make it add to it.
5325
5326 2009-09-03 Namhyung Kim <namhyung@gmail.com>
5327
5328 * doc/invoke.texi (Optimize Options): Move
5329 -finline-small-functions to the -O2 list.
5330
5331 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5332
5333 * toplev.c (process_options): Enable var-tracking-assignments
5334 by default if var-tracking is enabled.
5335
5336 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5337
5338 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5339 barrier.
5340 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5341 * rtl.h (prev_nonnote_insn_bb): Declare it.
5342
5343 2009-09-03 Diego Novillo <dnovillo@google.com>
5344
5345 * cgraph.c (cgraph_node_for_decl): New.
5346 * cgraph.h (cgraph_node_for_decl): Declare.
5347 * tree.c (host_integerp): Return 0 if T is NULL.
5348
5349 2009-09-03 Diego Novillo <dnovillo@google.com>
5350
5351 * tree.h (struct alias_pair): Move from varasm.c.
5352 (alias_pairs): Likewise.
5353 (TYPE_MAXVAL): Define.
5354 (TYPE_MINVAL): Define.
5355 (iterative_hash_host_wide_int): Declare.
5356 (remove_unreachable_alias_pairs): Declare.
5357 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5358 * diagnostic.c (default_diagnostic_starter): Make extern.
5359 (default_diagnostic_finalizer): Make extern.
5360 * diagnostic.h (default_diagnostic_starter): Declare.
5361 (default_diagnostic_finalizer): Declare.
5362 (default_tree_printer): Declare.
5363 * toplev.c (default_tree_printer): Make extern.
5364
5365 2009-09-03 Richard Guenther <rguenther@suse.de>
5366 Diego Novillo <dnovillo@google.com>
5367
5368 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5369 * cgraphunit.c (cgraph_expand_function): Do not emit
5370 associated thunks from here.
5371 (cgraph_emit_thunks): New.
5372 (cgraph_optimize): Call it.
5373 Return if any IPA pass finds an error.
5374 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5375 by thunks.
5376
5377 2009-09-03 Simon Baldwin <simonb@google.com>
5378 Rafael Espindola <espindola@google.com>
5379 Richard Guenther <rguenther@suse.de>
5380 Doug Kwan <dougkwan@google.com>
5381 Diego Novillo <dnovillo@google.com>
5382
5383 * tree.c: Include tree-pass.h, langhooks-def.h,
5384 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5385 (free_lang_data_in_type): New.
5386 (need_assembler_name_p): New.
5387 (free_lang_data_in_block): New.
5388 (free_lang_data_in_decl): New.
5389 (struct free_lang_data_d): New.
5390 (add_tree_to_fld_list): New.
5391 (find_decls_types_r): New.
5392 (get_eh_types_for_runtime): New.
5393 (find_decls_types_in_eh_region): New.
5394 (find_decls_types_in_node): New.
5395 (find_decls_types_in_var): New.
5396 (free_lang_data_in_cgraph): New.
5397 (free_lang_data): New.
5398 (gate_free_lang_data): New.
5399 (pass_ipa_free_lang_data): New.
5400
5401 2009-09-03 Diego Novillo <dnovillo@google.com>
5402
5403 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5404 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5405 (lang_hooks): Remove const qualifier.
5406 * ipa.c (cgraph_remove_unreachable_nodes): Call
5407 remove_unreachable_alias_pairs.
5408 * except.c (add_type_for_runtime): Check if TYPE has
5409 already been converted.
5410 (lookup_type_for_runtime): Likewise.
5411 (check_handled): Handle converted types.
5412 * varasm.c (remove_unreachable_alias_pairs): New.
5413 * gimple.c: Include demangle.h.
5414 (gimple_decl_printable_name): New.
5415 (gimple_fold_obj_type_ref): New.
5416 * gimple.h (gimple_decl_printable_name): Declare.
5417 (gimple_fold_obj_type_ref): Declare.
5418 * passes.c (init_optimization_passes): Add pass
5419 pass_ipa_free_lang_data.
5420 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5421 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5422
5423 2009-09-03 Diego Novillo <dnovillo@google.com>
5424
5425 * c-lang.c (lang_hooks): Remove const qualifier.
5426
5427 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5428
5429 * doc/install.texi (*-*-freebsd*): Update target information.
5430
5431 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5432
5433 * hard-reg-set.h (call_fixed_regs): Remove.
5434 * reginfo.c (call_fixed_regs): Remove.
5435 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5436 (globalize_reg): Don't use call_fixed_regs.
5437 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5438 call_fixed_regs.
5439
5440 2009-09-01 Michael Matz <matz@suse.de>
5441
5442 * expr.h (emit_storent_insn, expand_expr_real_1,
5443 expand_expr_real_2): Declare.
5444 * expr.c (emit_storent_insn, expand_expr_real_1,
5445 expand_expr_real_2): Export.
5446 (store_expr): Setting and evaluating dont_return_target is useless.
5447 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5448 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5449 * except.c (expand_resx_expr): Rename to ...
5450 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5451 * except.h (expand_resx_stmt): Declare.
5452 * stmt.c: Add include gimple.h
5453 (expand_asm_expr): Rename to ...
5454 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5455 (expand_case): Rewrite to take gimple statement.
5456 * tree.h (expand_asm_stmt): Declare.
5457 (expand_case): Change prototype.
5458 * Makefile.in (stmt.o): Depend on gimple.h.
5459 * builtins.c (expand_builtin_synchronize): Build gimple asm
5460 statement, not an ASM_EXPR.
5461 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5462 gimple_to_tree, release_stmt_tree): Remove.
5463 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5464 ggc_free, but hold comparison code and operands separately.
5465 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5466 (expand_call_stmt, expand_gimple_stmt_1,
5467 expand_gimple_stmt): New helpers.
5468 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5469 release_stmt_tree. Call expand_gimple_stmt instead.
5470 (expand_gimple_basic_block): Ditto.
5471
5472 * calls.c (emit_call_1): Don't look at EH regions here, make
5473 fntree parameter useless.
5474 (expand_call): New local rettype for TREE_TYPE(exp), use it
5475 throughout. Remove local p, use addr instead.
5476 Don't look at EH regions here.
5477
5478 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5479
5480 * doc/invoke.texi (-fsched-pressure): Document it.
5481 (-fsched-reg-pressure-heuristic): Remove it.
5482
5483 * reload.c (ira.h): Include.
5484 (find_reloads): Add choosing reload on number of small spilled
5485 classes.
5486
5487 * haifa-sched.c (ira.h): Include.
5488 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5489 saved_reg_pressure, curr_reg_live, saved_reg_live,
5490 region_ref_regs): New variables.
5491 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5492 initiate_reg_pressure_info, setup_ref_regs,
5493 initiate_bb_reg_pressure_info, save_reg_pressure,
5494 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5495 functions.
5496 (setup_insn_reg_pressure_info): New function.
5497 (rank_for_schedule): Add pressure checking and insn issue time.
5498 Remove comparison of insn reg weights.
5499 (ready_sort): Set insn reg pressure info.
5500 (update_register_pressure, setup_insn_max_reg_pressure,
5501 update_reg_and_insn_max_reg_pressure,
5502 sched_setup_bb_reg_pressure_info): New functions.
5503 (schedule_insn): Add code for printing and updating reg pressure info.
5504 (find_set_reg_weight, find_insn_reg_weight): Remove.
5505 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5506 (debug_ready_list): Print reg pressure info.
5507 (schedule_block): Ditto. Check insn issue time.
5508 (sched_init): Set up sched_pressure_p. Allocate and set up some
5509 reg pressure related info.
5510 (sched_finish): Free some reg pressure related info.
5511 (fix_tick_ready): Make insn always ready if pressure_p.
5512 (init_h_i_d): Don't call find_insn_reg_weight.
5513 (haifa_finish_h_i_d): Free insn reg pressure info.
5514
5515 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5516 ira_memory_move_cost, ira_class_hard_regs,
5517 ira_class_hard_regs_num, ira_no_alloc_regs,
5518 ira_available_class_regs, ira_reg_class_cover_size,
5519 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5520
5521 * ira-lives.c (single_reg_class): Check mode to find how many
5522 registers are necessary for operand.
5523 (ira_implicitly_set_insn_hard_regs): New.
5524
5525 * common.opt (fsched-pressure): New options.
5526 (fsched-reg-pressure-heuristic): Remove.
5527
5528 * ira.c (setup_eliminable_regset): Rename to
5529 ira_setup_eliminable_regset. Make it external.
5530 (expand_reg_info): Pass cover class to setup_reg_classes.
5531 (ira): Call resize_reg_info instead of allocate_reg_info.
5532
5533 * sched-deps.c: Include ira.h.
5534 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5535 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5536 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5537 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5538 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5539 mark_insn_reg_store, mark_insn_reg_clobber,
5540 setup_insn_reg_pressure_info): New.
5541 (sched_analyze_1): Update implicit_reg_pending_uses.
5542 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5543 Use them to create dependencies. Set insn reg uses and pressure
5544 info. Process reg_pending_uses in one place.
5545 (free_deps): Free implicit sets.
5546 (remove_from_deps): Remove implicit sets if necessary. Check
5547 implicit sets when clearing reg_last_in_use.
5548 (init_deps_global): Clear implicit_reg_pending_clobbers and
5549 implicit_reg_pending_uses.
5550
5551 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5552 ira_memory_move_cost, ira_class_hard_regs,
5553 ira_class_hard_regs_num, ira_no_alloc_regs,
5554 ira_available_class_regs, ira_reg_class_cover_size,
5555 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5556 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5557 ira_implicitly_set_insn_hard_regs): New prototypes.
5558
5559 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5560 cost_elements_num): New variables.
5561 (allocno_costs, total_costs): Rename to costs and
5562 total_allocno_costs.
5563 (COSTS_OF_ALLOCNO): Rename to COSTS.
5564 (allocno_pref): Rename to pref.
5565 (allocno_pref_buffer): Rename to pref_buffer.
5566 (common_classes): Rename to regno_cover_class.
5567 (COST_INDEX): New.
5568 (record_reg_classes): Set allocno attributes only if allocno_p.
5569 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5570 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5571 and COSTS_OF_ALLOCNO.
5572 (print_costs): Rename to print_allocno_costs.
5573 (print_pseudo_costs): New.
5574 (process_bb_node_for_costs): Split into 2 functions with new
5575 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5576 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5577 new parameter dump_file. Use cost_elements_num instead of
5578 ira_allocnos_num. Make one iteration if preferred classes were
5579 already calculated for scheduler. Make 2 versions of code
5580 depending on allocno_p.
5581 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5582 regno_cover_class and COSTS instead of common_classes and
5583 COSTS_OF_ALLOCNO.
5584 (init_costs, finish_costs): New.
5585 (ira_costs): Set up allocno_p and cost_elements_num. Call
5586 init_costs and finish_costs.
5587 (ira_set_pseudo_classes): New.
5588
5589 * rtl.h (allocate_reg_info): Remove.
5590 (resize_reg_info): Change return type.
5591 (reg_cover_class): New.
5592 (setup_reg_classes): Add new parameter.
5593
5594 * sched-int.h (struct deps_reg): New member implicit_sets.
5595 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5596 (INCREASE_BITS): New macro.
5597 (struct reg_pressure_data, struct reg_use_data): New.
5598 (struct _haifa_insn_data): Remove reg_weight. Add members
5599 reg_pressure, reg_use_list, reg_set_list, and
5600 reg_pressure_excess_cost_change.
5601 (struct deps): New member implicit_sets.
5602 (pressure_p): New variable.
5603 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5604 (struct reg_pressure_data, struct reg_use_data): New.
5605 (INSN_REG_WEIGHT): Remove.
5606 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5607 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5608 (sched_init_region_reg_pressure_info,
5609 sched_setup_bb_reg_pressure_info): New prototypes.
5610
5611 * reginfo.c (struct reg_pref): New member coverclass.
5612 (reg_cover_class): New function.
5613 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5614 (reg_info_size): New variable.
5615 (allocate_reg_info): Make static. Setup reg_info_size.
5616 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5617 (setup_reg_classes): Add a new parameter. Setup cover class too.
5618
5619 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5620 the dependencies.
5621
5622 * sched-rgn.c (deps_join): Set up implicit_sets.
5623 (schedule_region): Set up region and basic blocks pressure
5624 relative info.
5625
5626 * passes.c (init_optimization_passes): Move
5627 pass_subregs_of_mode_init before pass_sched.
5628
5629 2009-09-02 Martin Jambor <mjambor@suse.cz>
5630
5631 * tree-sra.c (struct access): New field grp_hint.
5632 (dump_access): Dump grp_hint.
5633 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5634 multiple times.
5635 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5636 those which have been specifically read and somehow written to.
5637 (propagate_subacesses_accross_link): Set grp_hint of right child and
5638 also possibly of the left child.
5639
5640 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5641
5642 * tree-object-size.c (addr_object_size): Always use object_size_type
5643 0 or 2 when determining the pointer pointed object size.
5644
5645 2009-09-02 Richard Guenther <rguenther@suse.de>
5646
5647 Revert
5648 2009-08-31 Richard Guenther <rguenther@suse.de>
5649
5650 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5651 to query if the memory regions for memmove overlap.
5652 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5653 asserts on pointers, instead deal with odd trees.
5654 (ptr_derefs_may_alias_p): Likewise.
5655 (refs_may_alias_p_1): Constructor bases also never alias.
5656
5657 2009-08-01 Christian Bruel <christian.bruel@st.com>
5658
5659 Revert:
5660 2009-07-31 Christian Bruel <christian.bruel@st.com>
5661 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5662
5663 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5664
5665 * doc/invoke.texi (-fvar-tracking-assignments): New.
5666 (-fvar-tracking-assignments-toggle): New.
5667 (-fdump-final-insns=file): Mark filename as optional.
5668 (--param min-nondebug-insn-uid): New.
5669 (-gdwarf-@{version}): Mention version 4.
5670 * opts.c (common_handle_option): Accept it.
5671 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5672 * regrename.c (regrename_optimize): Drop last. Don't count debug
5673 insns as uses. Don't reject change because of debug insn.
5674 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5675 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5676 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5677 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5678 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5679 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5680 * doc/gimple.texi (is_gimple_debug): New.
5681 (gimple_debug_bind_p): New.
5682 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5683 * doc/install.texi (bootstrap-debug): More details.
5684 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5685 (bootstrap-debug-lib): More details.
5686 (bootstrap-debug-ckovw): Update.
5687 (bootstrap-time): New.
5688 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5689 (insert_phi_nodes_for): Insert debug stmts.
5690 (rewrite_stmt): Take iterator. Insert debug stmts.
5691 (rewrite_enter_block): Adjust.
5692 (maybe_replace_use_in_debug_stmt): New.
5693 (rewrite_update_stmt): Use it.
5694 (mark_use_interesting): Return early for debug stmts.
5695 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5696 stmts before replacing stmt.
5697 (move_computations_stmt): Likewise.
5698 * ira-conflicts.c (add_copies): Skip debug insns.
5699 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5700 (regstat_bb_compute_ri): Skip debug insns.
5701 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5702 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5703 check_loop_closed_ssa_stmt): Skip debug stmts.
5704 * tree-tailcall.c (find_tail_calls): Likewise.
5705 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5706 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5707 (build_var_debug_value_stat): Declare.
5708 (build_var_debug_value): Define.
5709 (target_for_debug_bind): Declare.
5710 * reload.c (find_equiv_reg): Skip debug insns.
5711 * rtlanal.c (reg_used_between_p): Skip debug insns.
5712 (side_effects_p): Likewise.
5713 (canonicalize_condition): Likewise.
5714 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5715 insns never depend on debug insns.
5716 (create_ddg_dep_no_link): Likewise.
5717 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5718 Don't add inter-loop dependencies for debug insns.
5719 (build_intra_loop_deps): Likewise.
5720 (create_ddg): Count debug insns.
5721 * ddg.h (struct ddg::num_debug): New.
5722 (num_backargs): Pair up with previous int field.
5723 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5724 -fcompare-debug-second.
5725 * final.c (get_attr_length_1): Skip debug insns.
5726 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5727 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5728 (driver_self_specs): Map -fdump-final-insns to
5729 -fdump-final-insns=..
5730 (get_local_tick): New.
5731 (compare_debug_dump_opt_spec_function): Test for . argument and
5732 compute output name. Compute temp output spec without flag name.
5733 Compute -frandom-seed.
5734 (OPT): Undef after use.
5735 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5736 (average_num_loop_insns): Likewise.
5737 * params.h (MIN_NONDEBUG_INSN_UID): New.
5738 * gimple.def (GIMPLE_DEBUG): New.
5739 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5740 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5741 (merge_in_block): Fix whitespace.
5742 * toplev.c (flag_var_tracking): Update comment.
5743 (flag_var_tracking_assignments): New.
5744 (flag_var_tracking_assignments_toggle): New.
5745 (process_options): Don't open final insns dump file if we're not
5746 going to write to it. Compute defaults for var_tracking.
5747 * df-scan.c (df_insn_rescan_debug_internal): New.
5748 (df_uses_record): Handle debug insns.
5749 * haifa-sched.c (ready): Initialize n_debug.
5750 (contributes_to_priority): Skip debug insns.
5751 (dep_list_size): New.
5752 (priority): Use it.
5753 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5754 they're ready. Disregard previous debug insns to make decisions.
5755 (queue_insn): Never queue debug insns.
5756 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5757 (schedule_insn): Don't reject debug insns because of issue rate.
5758 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5759 (queue_to_ready): Skip and discount debug insns.
5760 (choose_ready): Let debug insns through.
5761 (schedule_block): Check boundary debug insns. Discount debug
5762 insns, schedule them early. Adjust whitespace.
5763 (set_priorities): Check for boundary debug insns.
5764 (add_jump_dependencies): Use dep_list_size.
5765 (prev_non_location_insn): New.
5766 (check_cfg): Use it.
5767 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5768 stmts.
5769 (remove_unused_ivs): Reset debug stmts.
5770 * modulo-sched.c (const_iteration_count): Skip debug insns.
5771 (res_MII): Discount debug insns.
5772 (loop_single_full_bb_p): Skip debug insns.
5773 (sms_schedule): Likewise.
5774 (sms_schedule_by_order): Likewise.
5775 (ps_has_conflicts): Likewise.
5776 * caller-save.c (refmarker_fn): New.
5777 (save_call_clobbered_regs): Replace regs with saved mem in
5778 debug insns.
5779 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5780 Call refmarker_fn mark for hardregnos.
5781 (mark_reg_as_referenced): New.
5782 (replace_reg_with_saved_mem): New.
5783 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5784 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5785 searching back.
5786 (cse_extended_basic_block): Skip debug insns.
5787 (count_reg_usage): Likewise.
5788 (is_dead_reg): New, split out of...
5789 (set_live_p): ... here.
5790 (insn_live_p): Use it for debug insns.
5791 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5792 (execute_optimize_stdarg): Likewise.
5793 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5794 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5795 changes in debug stmts as changes.
5796 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5797 (moveup_expr): Don't move across debug insns. Don't move
5798 debug insn if it would create a bookkeeping block.
5799 (moveup_expr_cached): Don't use cache for debug insns that
5800 are heads of blocks.
5801 (compute_av_set_inside_bb): Skip debug insns.
5802 (sel_rank_for_schedule): Schedule debug insns first. Remove
5803 dead code.
5804 (block_valid_for_bookkeeping_p); Support lax searches.
5805 (create_block_for_bookkeeping): Adjust block numbers when
5806 encountering debug-only blocks.
5807 (find_place_for_bookkeeping): Deal with debug-only blocks.
5808 (generate_bookkeeping_insn): Accept no place to insert.
5809 (remove_temp_moveop_nops): New argument full_tidying.
5810 (prepare_place_to_insert): Deal with debug insns.
5811 (advance_state_on_fence): Debug insns don't start cycles.
5812 (update_boundaries): Take fence as argument. Deal with
5813 debug insns.
5814 (schedule_expr_on_boundary): No full_tidying on debug insns.
5815 (fill_insns): Deal with debug insns.
5816 (track_scheduled_insns_and_blocks): Don't count debug insns.
5817 (need_nop_to_preserve_insn_bb): New, split out of...
5818 (remove_insn_from_stream): ... this.
5819 (fur_orig_expr_not_found): Skip debug insns.
5820 * rtl.def (VALUE): Move up.
5821 (DEBUG_INSN): New.
5822 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5823 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5824 Set it if debug stmts are found.
5825 (statement_sink_location): Skip debug stmts. Propagate
5826 moving defs into debug stmts.
5827 * ifcvt.c (first_active_insn): Skip debug insns.
5828 (last_active_insns): Likewise.
5829 (cond_exec_process_insns): Likewise.
5830 (noce_process_if_block): Likewise.
5831 (check_cond_move_block): Likewise.
5832 (cond_move_convert_if_block): Likewise.
5833 (block_jumps_and_fallthru_p): Likewise.
5834 (dead_or_predicable): Likewise.
5835 * dwarf2out.c (debug_str_hash_forced): New.
5836 (find_AT_string): Add comment.
5837 (gen_label_for_indirect_string): New.
5838 (get_debug_string_label): New.
5839 (AT_string_form): Use it.
5840 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5841 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5842 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5843 several operations that cannot be represented with DWARF opcodes.
5844 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5845 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5846 (dwarf2out_var_location): Take during-call mark into account.
5847 (output_indirect_string): Update comment. Output if there are
5848 label and references.
5849 (prune_indirect_string): New.
5850 (prune_unused_types): Call it if debug_str_hash_forced.
5851 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5852 (dw_long_long_const): Remove.
5853 (struct dw_val_struct): Change val_long_long type to rtx.
5854 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5855 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5856 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5857 component instead of HOST_BITS_PER_LONG.
5858 (output_loc_operands): Likewise. For const8* assert
5859 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5860 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5861 rather than HOST_BITS_PER_LONG is >= 64.
5862 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5863 val_const_double.
5864 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5865 HOST_BITS_PER_LONG for dw_val_class_long_long.
5866 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5867 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5868 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5869 DW_OP_stack_value.
5870 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5871 Handle DW_OP_implicit_value.
5872 (extract_int): Move prototype earlier.
5873 (mem_loc_descriptor): For SUBREG punt if inner
5874 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5875 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5876 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5877 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5878 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5879 instead of Pmode size.
5880 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5881 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5882 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5883 (concat_loc_descriptor, concatn_loc_descriptor,
5884 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5885 (add_location_or_const_value_attribute): Likewise. For single
5886 location loc_lists attempt to use add_const_value_attribute
5887 for constant decls. Add DW_AT_const_value even if
5888 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5889 in its expression.
5890 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5891 (control_flow_insn_p): Likewise.
5892 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5893 (separate_decls_in_region_debug_bind): New.
5894 (separate_decls_in_region): Process debug bind stmts afterwards.
5895 * recog.c (verify_changes): Handle debug insns.
5896 (extract_insn): Likewise.
5897 (peephole2_optimize): Skip debug insns.
5898 * dse.c (scan_insn): Skip debug insns.
5899 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5900 Pass it on.
5901 (setup_id_for_insn): Handle debug insns.
5902 (maybe_tidy_empty_bb): Adjust whitespace.
5903 (tidy_control_flow): Skip debug insns.
5904 (sel_remove_insn): Adjust for debug insns.
5905 (sel_estimate_number_of_insns): Skip debug insns.
5906 (create_insn_rtx_from_pattern): Handle debug insns.
5907 (create_copy_of_insn_rtx): Likewise.
5908 * sel-sched-.h (sel_bb_end): Declare.
5909 (sel_bb_empty_or_nop_p): New.
5910 (get_all_loop_exits): Use it.
5911 (_eligible_successor_edge_p): Likewise.
5912 (return_nop_to_pool): Adjust.
5913 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5914 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5915 * gimple-pretty-print.c (dump_gimple_debug): New.
5916 (dump_gimple_stmt): Use it.
5917 (dump_bb_header): Skip gimple debug stmts.
5918 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5919 (fixup_match_2): Likewise.
5920 (regmove_backward_pass): Likewise. Simplify combined
5921 replacement. Handle debug insns.
5922 * function.c (instantiate_virtual_regs): Handle debug insns.
5923 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5924 * print-rtl.h: Include cselib.h.
5925 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5926 * df.h (df_inns_rescan_debug_internal): Declare.
5927 * gcse.c (alloc_hash_table): Estimate n_insns.
5928 (cprop_insn): Don't regard debug insns as changes.
5929 (bypass_conditional_jumps): Skip debug insns.
5930 (one_pre_gcse_pass): Adjust.
5931 (one_code_hoisting_pass): Likewise.
5932 (compute_ld_motion_mems): Skip debug insns.
5933 (one_cprop_pass): Adjust.
5934 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5935 (if_convertible_stmt_p): Handle debug stmts.
5936 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5937 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5938 * ira-build.c (create_bb_allocnos): Skip debug insns.
5939 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5940 (has_single_use): Likewise.
5941 (single_imm_use): Likewise.
5942 (num_imm_uses): Likewise.
5943 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5944 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5945 (create_outofssa_var_map): Likewise.
5946 * lower-subreg.c (adjust_decomposed_uses): New.
5947 (resolve_debug): New.
5948 (decompose_multiword_subregs): Use it.
5949 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5950 * emit-rtl.c: Include params.h.
5951 (cur_debug_insn_uid): Define.
5952 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5953 (copy_rtx_if_shared_1): Handle debug insns.
5954 (reset_used_flags): Likewise.
5955 (set_used_flags): LIkewise.
5956 (get_max_insn_count): New.
5957 (next_nondebug_insn): New.
5958 (prev_nondebug_insn): New.
5959 (make_debug_insn_raw): New.
5960 (emit_insn_before_noloc): Handle debug insns.
5961 (emit_jump_insn_before_noloc): Likewise.
5962 (emit_call_insn_before_noloc): Likewise.
5963 (emit_debug_insn_before_noloc): New.
5964 (emit_insn_after_noloc): Handle debug insns.
5965 (emit_jump_insn_after_noloc): Likewise.
5966 (emit_call_insn_after_noloc): Likewise.
5967 (emit_debug_insn_after_noloc): Likewise.
5968 (emit_insn_after): Take loc from earlier non-debug insn.
5969 (emit_jump_insn_after): Likewise.
5970 (emit_call_insn_after): Likewise.
5971 (emit_debug_insn_after_setloc): New.
5972 (emit_debug_insn_after): New.
5973 (emit_insn_before): Take loc from later non-debug insn.
5974 (emit_jump_insn_before): Likewise.
5975 (emit_call_insn_before): Likewise.
5976 (emit_debug_insn_before_setloc): New.
5977 (emit_debug_insn_before): New.
5978 (emit_insn): Handle debug insns.
5979 (emit_debug_insn): New.
5980 (emit_jump_insn): Handle debug insns.
5981 (emit_call_insn): Likewise.
5982 (emit): Likewise.
5983 (init_emit): Take min-nondebug-insn-uid into account.
5984 Initialize cur_debug_insn_uid.
5985 (emit_copy_of_insn_after): Handle debug insns.
5986 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5987 location of single rhs in place.
5988 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5989 (floor_sdiv_adjust): New.
5990 (cell_sdiv_adjust): New.
5991 (cell_udiv_adjust): New.
5992 (round_sdiv_adjust): New.
5993 (round_udiv_adjust): New.
5994 (wrap_constant): Moved from cselib.
5995 (unwrap_constant): New.
5996 (expand_debug_expr): New.
5997 (expand_debug_locations): New.
5998 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5999 debug bind stmts.
6000 (gimple_expand_cfg): Expand debug locations.
6001 * cselib.c: Include tree-pass.h.
6002 (struct expand_value_data): New.
6003 (cselib_record_sets_hook): New.
6004 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
6005 (cselib_clear_table): Move, and implemnet in terms of...
6006 (cselib_reset_table_with_next_value): ... this.
6007 (cselib_get_next_unknown_value): New.
6008 (discard_useless_locs): Don't discard preserved values.
6009 (cselib_preserve_value): New.
6010 (cselib_preserved_value_p): New.
6011 (cselib_preserve_definitely): New.
6012 (cselib_clear_preserve): New.
6013 (cselib_preserve_only_values): New.
6014 (new_cselib_val): Take rtx argument. Dump it in details.
6015 (cselib_lookup_mem): Adjust.
6016 (expand_loc): Take regs_active in struct. Adjust. Silence
6017 dumps unless details are requested.
6018 (cselib_expand_value_rtx_cb): New.
6019 (cselib_expand_value_rtx): Rename and reimplment in terms of...
6020 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
6021 without details. Copy more subregs. Try to resolve values
6022 using a callback. Wrap constants.
6023 (cselib_subst_to_values): Adjust.
6024 (cselib_log_lookup): New.
6025 (cselib_lookup): Call it.
6026 (cselib_invalidate_regno): Don't count preserved values as useless.
6027 (cselib_invalidate_mem): Likewise.
6028 (cselib_record_set): Likewise.
6029 (struct set): Renamed to cselib_set, moved to cselib.h.
6030 (cselib_record_sets): Adjust. Call hook.
6031 (cselib_process_insn): Reset table when it would be cleared.
6032 (dump_cselib_val): New.
6033 (dump_cselib_table): New.
6034 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
6035 (remove_forwarder_block): Support moving debug stmts.
6036 * cselib.h (cselib_record_sets_hook): Declare.
6037 (cselib_expand_callback): New type.
6038 (cselib_expand_value_rtx_cb): Declare.
6039 (cselib_reset_table_with_next_value): Declare.
6040 (cselib_get_next_unknown_value): Declare.
6041 (cselib_preserve_value): Declare.
6042 (cselib_preserved_value_p): Declare.
6043 (cselib_preserve_only_values): Declare.
6044 (dump_cselib_table): Declare.
6045 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
6046 (try_crossjump_to_edge): Likewise.
6047 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
6048 dominated blocks when debug stmts are present.
6049 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
6050 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
6051 (set_var_live_on_entry): Likewise.
6052 * loop-invariant.c (find_invariants_bb): Skip debug insns.
6053 * cfglayout.c (curr_location, last_location): Make static.
6054 (set_curr_insn_source_location): Don't avoid bouncing.
6055 (get_curr_insn_source_location): New.
6056 (get_curr_insn_block): New.
6057 (duplicate_insn_chain): Handle debug insns.
6058 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
6059 into debug stmts.
6060 * common.opt (fcompare-debug): Move to sort order.
6061 (fdump-unnumbered-links): Likewise.
6062 (fvar-tracking-assignments): New.
6063 (fvar-tracking-assignments-toggle): New.
6064 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
6065 because of debug stmts.
6066 (mark_stmt_if_obviously_necessary): Mark debug stmts.
6067 (eliminate_unnecessary_stmts): Walk dominated blocks before
6068 dominators.
6069 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
6070 * ira.c (memref_used_between_p): Skip debug insns.
6071 (update_equiv_regs): Likewise.
6072 * sched-deps.c (sd_lists_size): Accept empty list.
6073 (sd_init_insn): Mark debug insns.
6074 (sd_finish_insn): Unmark them.
6075 (sd_add_dep): Reject non-debug deps on debug insns.
6076 (fixup_sched_groups): Give debug insns group treatment.
6077 Skip debug insns.
6078 (sched_analyze_reg): Don't mark debug insns for sched before call.
6079 (sched_analyze_2): Handle debug insns.
6080 (sched_analyze_insn): Compute next non-debug insn. Handle debug
6081 insns.
6082 (deps_analyze_insn): Handle debug insns.
6083 (deps_start_bb): Skip debug insns.
6084 (init_deps): Initialize last_debug_insn.
6085 * tree-ssa.c (target_for_debug_bind): New.
6086 (find_released_ssa_name): New.
6087 (propagate_var_def_into_debug_stmts): New.
6088 (propagate_defs_into_debug_stmts): New.
6089 (verify_ssa): Skip debug bind stmts without values.
6090 (warn_uninialized_vars): Skip debug stmts.
6091 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
6092 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
6093 (rtx_equal_p): Likewise.
6094 * ira-costs.c (scan_one_insn): Skip debug insns.
6095 (process_bb_node_for_hard_reg_moves): Likewise.
6096 * rtl.h (DEBUG_INSN_P): New.
6097 (NONDEBUG_INSN_P): New.
6098 (MAY_HAVE_DEBUG_INSNS): New.
6099 (INSN_P): Accept debug insns.
6100 (RTX_FRAME_RELATED_P): Likewise.
6101 (INSN_DELETED_P): Likewise
6102 (PAT_VAR_LOCATION_DECL): New.
6103 (PAT_VAR_LOCATION_LOC): New.
6104 (PAT_VAR_OCATION_STATUS): New.
6105 (NOTE_VAR_LOCATION_DECL): Reimplement.
6106 (NOTE_VAR_LOCATION_LOC): Likewise.
6107 (NOTE_VAR_LOCATION_STATUS): Likewise.
6108 (INSN_VAR_LOCATION): New.
6109 (INSN_VAR_LOCATION_DECL): New.
6110 (INSN_VAR_LOCATION_LOC): New.
6111 (INSN_VAR_LOCATION_STATUS): New.
6112 (gen_rtx_UNKNOWN_VAR_LOC): New.
6113 (VAR_LOC_UNKNOWN_P): New.
6114 (NOTE_DURING_CALL_P): New.
6115 (SCHED_GROUP_P): Accept debug insns.
6116 (emit_debug_insn_before): Declare.
6117 (emit_debug_insn_before_noloc): Declare.
6118 (emit_debug_insn_beore_setloc): Declare.
6119 (emit_debug_insn_after): Declare.
6120 (emit_debug_insn_after_noloc): Declare.
6121 (emit_debug_insn_after_setloc): Declare.
6122 (emit_debug_insn): Declare.
6123 (make_debug_insn_raw): Declare.
6124 (prev_nondebug_insn): Declare.
6125 (next_nondebug_insn): Declare.
6126 (delegitimize_mem_from_attrs): Declare.
6127 (get_max_insn_count): Declare.
6128 (wrap_constant): Declare.
6129 (unwrap_constant): Declare.
6130 (get_curr_insn_source_location): Declare.
6131 (get_curr_insn_block): Declare.
6132 * tree-inline.c (insert_debug_decl_map): New.
6133 (processing_debug_stmt): New.
6134 (remap_decl): Don't create new mappings in debug stmts.
6135 (remap_gimple_op_r): Don't add references in debug stmts.
6136 (copy_tree_body_r): Likewise.
6137 (remap_gimple_stmt): Handle debug bind stmts.
6138 (copy_bb): Skip debug stmts.
6139 (copy_edges_for_bb): Likewise.
6140 (copy_debug_stmt): New.
6141 (copy_debug_stmts): New.
6142 (copy_body): Copy debug stmts at the end.
6143 (insert_init_debug_bind): New.
6144 (insert_init_stmt): Take id. Skip and emit debug stmts.
6145 (setup_one_parameter): Remap variable earlier, register debug mapping.
6146 (estimate_num_insns): Skip debug stmts.
6147 (expand_call_inline): Preserve debug_map.
6148 (optimize_inline_calls): Check for no debug_stmts left-overs.
6149 (unsave_expr_now): Preserve debug_map.
6150 (copy_gimple_seq_and_replace_locals): Likewise.
6151 (tree_function_versioning): Check for no debug_stmts left-overs.
6152 Init and destroy debug_map as needed. Split edges unconditionally.
6153 (build_duplicate_type): Init and destroy debug_map as needed.
6154 * tree-inline.h: Include gimple.h instead of pointer-set.h.
6155 (struct copy_body_data): Add debug_stmts and debug_map.
6156 * sched-int.h (struct ready_list): Add n_debug.
6157 (struct deps): Add last_debug_insn.
6158 (DEBUG_INSN_SCHED_P): New.
6159 (BOUNDARY_DEBUG_INSN_P): New.
6160 (SCHEDULE_DEBUG_INSN_P): New.
6161 (sd_iterator_cond): Accept empty list.
6162 * combine.c (create_log_links): Skip debug insns.
6163 (combine_instructions): Likewise.
6164 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
6165 return value is always unshared.
6166 (struct rtx_subst_pair): New.
6167 (auto_adjust_pair): New.
6168 (propagate_for_debug_subst): New.
6169 (propagate_for_debug): New.
6170 (try_combine): Skip debug insns. Propagate removed defs into
6171 debug insns.
6172 (next_nonnote_nondebug_insn): New.
6173 (distribute_notes): Use it. Skip debug insns.
6174 (distribute_links): Skip debug insns.
6175 * tree-outof-ssa.c (set_location_for_edge): Likewise.
6176 * resource.c (mark_target_live_regs): Likewise.
6177 * var-tracking.c: Include cselib.h and target.h.
6178 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6179 MO_VAL_SET.
6180 (micro_operation_type_name): New.
6181 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6182 (struct micro_operation_def): Update comments.
6183 (decl_or_value): New type. Use instead of decls.
6184 (struct emit_note_data_def): Add vars.
6185 (struct attrs_def): Use decl_or_value.
6186 (struct variable_tracking_info_def): Add permp, flooded.
6187 (struct location_chain_def): Update comment.
6188 (struct variable_part_def): Use decl_or_value.
6189 (struct variable_def): Make var_part a variable length array.
6190 (valvar_pool): New.
6191 (scratch_regs): New.
6192 (cselib_hook_called): New.
6193 (dv_is_decl_p): New.
6194 (dv_is_value_p): New.
6195 (dv_as_decl): New.
6196 (dv_as_value): New.
6197 (dv_as_opaque): New.
6198 (dv_onepart_p): New.
6199 (dv_pool): New.
6200 (IS_DECL_CODE): New.
6201 (check_value_is_not_decl): New.
6202 (dv_from_decl): New.
6203 (dv_from_value): New.
6204 (dv_htab_hash): New.
6205 (variable_htab_hash): Use it.
6206 (variable_htab_eq): Support values.
6207 (variable_htab_free): Free from the right pool.
6208 (attrs_list_member, attrs_list_insert): Use decl_or_value.
6209 (attrs_list_union): Adjust.
6210 (attrs_list_mpdv_union): New.
6211 (tie_break_pointers): New.
6212 (canon_value_cmp): New.
6213 (unshare_variable): Return possibly-modified slot.
6214 (vars_copy_1): Adjust.
6215 (var_reg_decl_set): Adjust. Split out of...
6216 (var_reg_set): ... this.
6217 (get_init_value): Adjust.
6218 (var_reg_delete_and_set): Adjust.
6219 (var_reg_delete): Adjust.
6220 (var_regno_delete): Adjust.
6221 (var_mem_decl_set): Split out of...
6222 (var_mem_set): ... this.
6223 (var_mem_delete_and_set): Adjust.
6224 (var_mem_delete): Adjust.
6225 (val_store): New.
6226 (val_reset): New.
6227 (val_resolve): New.
6228 (variable_union): Adjust. Speed up merge of 1-part vars.
6229 (variable_canonicalize): Use unshared slot.
6230 (VALUED_RECURSED_INTO): New.
6231 (find_loc_in_1pdv): New.
6232 (struct dfset_merge): New.
6233 (insert_into_intersection): New.
6234 (intersect_loc_chains): New.
6235 (loc_cmp): New.
6236 (canonicalize_loc_order_check): New.
6237 (canonicalize_values_mark): New.
6238 (canonicalize_values_star): New.
6239 (variable_merge_over_cur): New.
6240 (variable_merge_over_src): New.
6241 (dataflow_set_merge): New.
6242 (dataflow_set_equiv_regs): New.
6243 (remove_duplicate_values): New.
6244 (struct dfset_post_merge): New.
6245 (variable_post_merge_new_vals): New.
6246 (variable_post_merge_perm_vals): New.
6247 (dataflow_post_merge_adjust): New.
6248 (find_mem_expr_in_1pdv): New.
6249 (dataflow_set_preserve_mem_locs): New.
6250 (dataflow_set_remove_mem_locs): New.
6251 (dataflow_set_clear_at_call): New.
6252 (onepart_variable_different_p): New.
6253 (variable_different_p): Use it.
6254 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
6255 (track_expr_p): Add need_rtl parameter. Don't generate rtl
6256 if not needed.
6257 (track_loc_p): Pass it true.
6258 (struct count_use_info): New.
6259 (find_use_val): New.
6260 (replace_expr_with_values): New.
6261 (log_op_type): New.
6262 (use_type): New, partially split out of...
6263 (count_uses): ... this. Count new micro-ops.
6264 (count_uses_1): Adjust.
6265 (count_stores): Adjust.
6266 (count_with_sets): New.
6267 (VAL_NEEDS_RESOLUTION): New.
6268 (VAL_HOLDS_TRACK_EXPR): New.
6269 (VAL_EXPR_IS_COPIED): New.
6270 (VAL_EXPR_IS_CLOBBERED): New.
6271 (add_uses): Adjust. Generate new micro-ops.
6272 (add_uses_1): Adjust.
6273 (add_stores): Generate new micro-ops.
6274 (add_with_sets): New.
6275 (find_src_status): Adjust.
6276 (find_src_set_src): Adjust.
6277 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6278 Handle new micro-ops. Canonicalize value equivalances.
6279 (vt_find_locations): Compute total size of hash tables for
6280 dumping. Perform merge for var-tracking-assignments. Don't
6281 disregard single-block loops.
6282 (dump_attrs_list): Handle decl_or_value.
6283 (dump_variable): Take variable. Deal with decl_or_value.
6284 (dump_variable_slot): New.
6285 (dump_vars): Use it.
6286 (dump_dataflow_sets): Adjust.
6287 (set_slot_part): New, extended to support one-part variables
6288 after splitting out of...
6289 (set_variable_part): ... this.
6290 (clobber_slot_part): New, split out of...
6291 (clobber_variable_part): ... this.
6292 (delete_slot_part): New, split out of...
6293 (delete_variable_part): .... this.
6294 (check_wrap_constant): New.
6295 (vt_expand_loc_callback): New.
6296 (vt_expand_loc): New.
6297 (emit_note_insn_var_location): Adjust. Handle values. Handle
6298 EMIT_NOTE_AFTER_CALL_INSN.
6299 (emit_notes_for_differences_1): Adjust. Handle values.
6300 (emit_notes_for_differences_2): Likewise.
6301 (emit_notes_for_differences): Adjust.
6302 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
6303 Adjust. Handle new micro-ops.
6304 (vt_add_function_parameters): Adjust. Create and bind values.
6305 (vt_initialize): Adjust. Initialize scratch_regs and
6306 valvar_pool, flooded and perm.. Initialize and use cselib. Log
6307 operations. Move some code to count_with_sets and add_with_sets.
6308 (delete_debug_insns): New.
6309 (vt_debug_insns_local): New.
6310 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
6311 cselib.
6312 (var_tracking_main): If var-tracking-assignments is enabled
6313 but var-tracking isn't, delete debug insns and leave. Likewise
6314 if we exceed limits or fail the stack adjustments tests, and
6315 after all var-tracking processing.
6316 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6317 (dataflow_set): Add traversed_vars.
6318 (value_chain, const_value_chain): New typedefs.
6319 (value_chain_pool, value_chains): New variables.
6320 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6321 add_value_chains, add_cselib_value_chains, remove_value_chain,
6322 remove_value_chains, remove_cselib_value_chains): New functions.
6323 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6324 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6325 static inlines.
6326 (shared_hash_find_slot_unshare, shared_hash_find_slot,
6327 shared_hash_find_slot_noinsert, shared_hash_find): Update.
6328 (dst_can_be_shared): New variable.
6329 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6330 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
6331 different from set->vars, look up slot again instead of using the
6332 passed in slot.
6333 (dataflow_set_init): Initialize traversed_vars.
6334 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6335 lookup if set->vars is shared. Don't keep slot cleared before
6336 calling unshare_variable. Unshare set->vars if needed. Adjust
6337 unshare_variable callers. Clear dst_can_be_shared if needed.
6338 Even ->refcount == 1 vars must be unshared if set->vars is shared
6339 and var needs to be modified.
6340 (dataflow_set_union): Set traversed_vars during canonicalization.
6341 (VALUE_CHANGED, DECL_CHANGED): Define.
6342 (set_dv_changed, dv_changed_p): New static inlines.
6343 (track_expr_p): Clear DECL_CHANGED.
6344 (dump_dataflow_sets): Set it.
6345 (variable_was_changed): Call set_dv_changed.
6346 (emit_note_insn_var_location): Likewise.
6347 (changed_variables_stack): New variable.
6348 (check_changed_vars_1, check_changed_vars_2): New functions.
6349 (emit_notes_for_changes): Do nothing if changed_variables is
6350 empty. Traverse changed_variables with check_changed_vars_1,
6351 call check_changed_vars_2 on each changed_variables_stack entry.
6352 (emit_notes_in_bb): Add SET argument. Just clear it at the
6353 beginning, use it instead of local &set, don't destroy it at the end.
6354 (vt_emit_notes): Call dataflow_set_clear early on all
6355 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6356 computed set, dataflow_set_clear also VTI(bb)->in when we are
6357 done with the basic block. Initialize changed_variables_stack,
6358 free it afterwards. If ENABLE_CHECKING verify that after noting
6359 differences to an empty set value_chains hash table is empty.
6360 (vt_initialize): Initialize value_chains and value_chain_pool.
6361 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6362 (variable_tracking_main): Call dump_dataflow_sets before calling
6363 vt_emit_notes, not after it.
6364 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6365 (propagate_var_def_into_debug_stmts): Declare.
6366 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6367 (df_set_note): Reject debug insns.
6368 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6369 add notes to debug insns.
6370 (df_note_bb_compute): Adjust. Likewise.
6371 (df_simulate_uses): Skip debug insns.
6372 (df_simulate_initialize_backwards): Likewise.
6373 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6374 (subst_stack_regs_pat): Reject debug insns.
6375 (convert_regs_1): Handle debug insns.
6376 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6377 (print-rtl.o): Depend on cselib.h.
6378 (cselib.o): Depend on TREE_PASS_H.
6379 (var-tracking.o): Depend on cselib.h and TARGET_H.
6380 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6381 (init_ready_list): Skip boundary debug insns.
6382 (add_branch_dependences): Skip debug insns.
6383 (free_block_dependencies): Check for blocks with only debug insns.
6384 (compute_priorities): Likewise.
6385 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6386 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6387 all callers.
6388 (gimple_build_debug_bind_stat): New.
6389 (empty_body_p): Skip debug stmts.
6390 (gimple_has_side_effects): Likewise.
6391 (gimple_rhs_has_side_effects): Likewise.
6392 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6393 (gimple_build_debug_bind_stat): Declare.
6394 (gimple_build_debug_bind): Define.
6395 (is_gimple_debug): New.
6396 (gimple_debug_bind_p): New.
6397 (gimple_debug_bind_get_var): New.
6398 (gimple_debug_bind_get_value): New.
6399 (gimple_debug_bind_get_value_ptr): New.
6400 (gimple_debug_bind_set_var): New.
6401 (gimple_debug_bind_set_value): New.
6402 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6403 (gimple_debug_bind_reset_value): New.
6404 (gimple_debug_bind_has_value_p): New.
6405 (gsi_next_nondebug): New.
6406 (gsi_prev_nondebug): New.
6407 (gsi_start_nondebug_bb): New.
6408 (gsi_last_nondebug_bb): New.
6409 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6410 (print_insn): Handle DEBUG_INSN.
6411 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6412 of first insn prevail.
6413 (first_stmt): Skip debug stmts.
6414 (first_non_label_stmt): Likewise.
6415 (last_stmt): Likewise.
6416 (has_zero_uses_1): New.
6417 (single_imm_use_1): New.
6418 (verify_gimple_debug): New.
6419 (verify_types_in_gimple_stmt): Handle debug stmts.
6420 (verify_stmt): Likewise.
6421 (debug_loop_num): Skip debug stmts.
6422 (remove_edge_and_dominated_blocks): Remove dominators last.
6423 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6424 (linearize_expr): Likewise.
6425 * config/i386/i386.c (ix86_delegitimize_address): Call
6426 default implementation.
6427 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6428 (group_barrier_needed): Skip debug insns.
6429 (emit_insn_group_barriers): Likewise.
6430 (emit_all_insn_group_barriers): Likewise.
6431 (ia64_variable_issue): Handle debug insns.
6432 (ia64_dfa_new_cycle): Likewise.
6433 (final_emit_insn_group_barriers): Skip debug insns.
6434 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6435 def cfa without frame.
6436 (process_set): Likewise.
6437 (process_for_unwind_directive): Pass frame on.
6438 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6439 (rs6000_delegitimize_address): New.
6440 (rs6000_debug_adjust_cost): Handle debug insns.
6441 (is_microcoded_insn): Likewise.
6442 (is_cracked_insn): Likewise.
6443 (is_nonpipeline_insn): Likewise.
6444 (insn_must_be_first_in_group): Likewise.
6445 (insn_must_be_last_in_group): Likewise.
6446 (force_new_group): Likewise.
6447 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6448 contains only debug insns.
6449 (rtl_merge_blocks): Skip debug insns.
6450 (purge_dead_edges): Likewise.
6451 (rtl_block_ends_with_call_p): Skip debug insns.
6452 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6453 (mark_reg_dependencies): Skip debug insns.
6454 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6455 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6456 * tree-ssa-threadedge.c
6457 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6458 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6459 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6460 (copyprop_hardreg_forward_1): Handle debug insns.
6461 * reload1.c (reload): Skip debug insns. Replace unassigned
6462 pseudos in debug insns with their equivalences.
6463 (eliminate_regs_in_insn): Skip debug insns.
6464 (emit_input_reload_insns): Skip debug insns at first, adjust
6465 them later.
6466 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6467 (get_indirect_ref_operands): Pass opf_no_vops on.
6468 (get_expr_operands): Likewise. Skip debug stmts.
6469 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6470
6471 2009-09-01 Richard Henderson <rth@redhat.com>
6472
6473 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6474 stmt_ends_pp_p statements at least once.
6475 * tree-vrp.c (vrp_initialize): Likewise.
6476 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6477
6478 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6479
6480 PR bootstrap/41205
6481 Fix AIX bootstrap after PR debug/30161
6482 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6483 that is a GNU extension.
6484 (tmpl_value_parm_die_table): Move the definition of this global
6485 outside #ifdef DWARF2_DEBUGGING_INFO region.
6486
6487 2009-09-01 Richard Guenther <rguenther@suse.de>
6488
6489 * tree.c (tree_expr_size): New function.
6490 * tree.h (tree_expr_size): Declare.
6491 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6492 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6493 * langhooks.c (lhd_expr_size): Remove.
6494 * langhooks.h (struct lang_hooks): Remove expr_size.
6495 * explow.c (expr_size): Use tree_expr_size.
6496 (int_expr_size): Likewise.
6497 * langhooks-def.h (lhd_expr_size): Remove.
6498 (LANG_HOOKS_EXPR_SIZE): Likewise.
6499 (LANG_HOOKS_INITIALIZER): Adjust.
6500
6501 2009-09-01 Richard Guenther <rguenther@suse.de>
6502
6503 * tree-flow.h (mark_addressable): Move declaration ...
6504 * tree.h (mark_addressable): ... here.
6505 * stmt.c (expand_asm_operands): Use mark_addressable, not
6506 lang_hooks.mark_addressable.
6507 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6508 LANG_HOOKS_MARK_ADDRESSABLE.
6509 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6510 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6511
6512 2009-08-31 Chris Demetriou <cgd@google.com>
6513
6514 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6515 vectorize if not TARGET_SSE2.
6516
6517 2009-08-31 DJ Delorie <dj@redhat.com>
6518
6519 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6520 registers if no coprocessor is enabled.
6521
6522 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6523
6524 PR debug/30161
6525 * cgraph.h (cgraph_get_node): Declare ...
6526 * cgraph.c (cgraph_get_node): ... new function.
6527 * dwarf2out.c (gen_generic_params_dies,
6528 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6529 make_ith_pack_parameter_name,
6530 append_entry_to_tmpl_value_parm_die_table,
6531 gen_remaining_tmpl_value_param_die_attribute): New functions.
6532 (gen_subprogram_die): Generate debug info for template parameters
6533 if debug info level is higher than DINFO_LEVEL_TERSE.
6534 Use tree_add_const_value_attribute_for_decl instead of
6535 tree_add_const_value_attribute.
6536 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6537 instead of tree_add_const_value_attribute.
6538 (gen_struct_or_union_type_die): Generate debug
6539 info for template parameters if debug info level is higher than
6540 DINFO_LEVEL_TERSE.
6541 (tree_add_const_value_attribute): Handle integral and pointer
6542 constants. Update comment.
6543 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6544 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6545 (reference_to_unused): Fix thinko. Remove redundant predicates from
6546 tests.
6547 (tree_add_const_value_attribute): Make this work for constant
6548 expressions only.
6549 tree_add_const_value_attribute_for_decl is to be used for variable
6550 DECLs now.
6551 (add_location_or_const_value_attribute): Use
6552 tree_add_const_value_attribute_for_decl now.
6553 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6554 DW_TAG_template_value_param DIEs after function DIEs have been
6555 emitted.
6556 * langhooks.h (lang_hooks_for_types): Add
6557 get_argument_pack_elems.
6558 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6559 (lang_hooks): Added get_innermost_generic_parms,
6560 get_innermost_generic_args.
6561 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6562 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6563 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6564 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6565
6566 2009-08-31 DJ Delorie <dj@redhat.com>
6567
6568 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6569 it once we start generating the prologue or epilogue.
6570 (mep_call_saves_register): If the frame is locked, re-use
6571 cached values.
6572 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6573 (mep_expand_prologue): Call it.
6574 (mep_expand_epilogue): Likewise.
6575 (mep_start_function): Use the same logic as mep_expand_prologue.
6576 (mep_pass_by_reference): Make logic more readable.
6577 (mep_return_in_memory): Zero-sized objects are passed in memory.
6578 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6579
6580 2009-08-31 Richard Guenther <rguenther@suse.de>
6581
6582 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6583 to query if the memory regions for memmove overlap.
6584 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6585 asserts on pointers, instead deal with odd trees.
6586 (ptr_derefs_may_alias_p): Likewise.
6587 (refs_may_alias_p_1): Constructor bases also never alias.
6588
6589 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6590
6591 * doc/install.texi (Final install): Adjust reference on where to
6592 order printed manuals.
6593
6594 2009-08-30 Olivier Hainque <hainque@adacore.com>
6595
6596 * dwarf2out.c (switch_to_frame_table_section): Move
6597 definition prior to first use.
6598
6599 2009-08-30 Richard Guenther <rguenther@suse.de>
6600
6601 PR tree-optimization/41186
6602 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6603 (ao_ref_init_from_ptr_and_size): New function.
6604 (ref_maybe_used_by_call_p_1): Be more precise tracking
6605 used ranges for builtin functions.
6606 (ref_maybe_used_by_call_p): Adjust.
6607 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6608 ranges for builtin functions.
6609 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6610
6611 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6612
6613 PR target/41081
6614 * fwprop.c (get_reg_use_in): Delete.
6615 (free_load_extend): New function.
6616 (forward_propagate_subreg): Use it.
6617
6618 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6619
6620 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6621
6622 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6623
6624 PR/41184
6625 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6626 padding.
6627
6628 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6629
6630 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6631 fini or fini_array section.
6632
6633 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6634
6635 * graphite-dependences.c (graphite_legal_transform_bb): Call
6636 pbb_remove_duplicate_pdrs.
6637 * graphite-poly.c (can_collapse_pdr): Removed.
6638 (pdr_find_duplicate): Removed.
6639 (can_collapse_pdrs): New.
6640 (pbb_remove_duplicate_pdrs): New.
6641 (new_poly_dr): Do not look for duplicates.
6642 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6643 (PBB_PDR_DUPLICATES_REMOVED): New.
6644 (pbb_remove_duplicate_pdrs): Declared.
6645
6646 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6647
6648 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6649 the strides by multiplying by PDR_NB_REFS.
6650 * graphite-poly.c (can_collapse_pdr): New.
6651 (pdr_find_duplicate): New.
6652 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6653 Initialize PDR_NB_REFS.
6654 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6655 (PDR_NB_REFS): New.
6656 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6657
6658 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6659
6660 PR middle-end/40965
6661 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6662 any transform.
6663
6664 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6665
6666 * graphite-dependences.c (pddr_original_scattering): Return NULL
6667 for read-read dependence relations.
6668 * graphite-poly.h (enum poly_dr_type): Fix comment.
6669 (pdr_read_p): New.
6670 (pdr_write_p): New.
6671 (pdr_may_write_p): New.
6672
6673 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6674
6675 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6676 (struct poly_dr): Same.
6677 (new_poly_dr): Same.
6678 * graphite-poly.c (new_poly_dr): Same.
6679 * graphite-dependences.c (dot_deps): Disable call to system.
6680
6681 2009-08-28 Cary Coutant <ccoutant@google.com>
6682
6683 PR debug/41063
6684 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6685 struct/union/enum types local to a function.
6686
6687 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6688 Sebastian Pop <sebastian.pop@amd.com>
6689
6690 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6691 pbb_strip_mine_time_depth. Changed the implementation so that
6692 transformation is expressed as a transformation on
6693 time (scatttering) dimensions. Also, ensures that the 2d+1
6694 scheduling format is preserved.
6695 (pbb_strip_mine_profitable_p): Profitability is based on the
6696 iteration number of a given time (scattering) dimension,
6697 and not on a original loop depth dimension.
6698 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6699 (pbb_do_strip_mine): Call psct_dynamic_dim.
6700 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6701 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6702 (pbb_nb_dynamic_scattering_transform): New.
6703 (psct_dynamic_dim): New.
6704
6705 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6706
6707 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6708 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6709 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6710 * graphite-interchange.c (build_linearized_memory_access): Same.
6711 (memory_stride_in_loop): Same.
6712
6713 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6714
6715 * graphite-dependences.c (pddr_original_scattering): New.
6716 (graphite_legal_transform_dr): Call pddr_original_scattering.
6717 (dot_deps_1): New.
6718 (dot_deps): New.
6719 * graphite-dependences.h (dot_deps): Declared.
6720 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6721 (print_pdr): Print PDR_ID.
6722 * graphite-poly.h (struct poly_dr): Add field id.
6723 (PDR_ID): New.
6724 (pbb_index): New.
6725 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6726
6727 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6728
6729 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6730 not delete the original dependence relation.
6731
6732 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6733
6734 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6735 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6736 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6737 (free_poly_ddr): New.
6738 (pddr_is_empty): New.
6739 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6740 (dependence_polyhedron): Same. Remove useless gcc_assert.
6741 Remove fprintfs.
6742 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6743 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6744 * graphite-dependences.h (enum poly_dependence_kind): New.
6745 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6746 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6747 (PDRP_SINK): Renamed PDDR_SINK.
6748 (PDRP_DDP): Renamed PDDR_DDP.
6749 (PDDR_KIND): New.
6750 (free_poly_ddr): Declared.
6751 * graphite-poly.c (new_scop): Use the new hash function names.
6752 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6753 into original_pddrs.
6754 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6755
6756 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6757
6758 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6759 bounds with LT_EXPR to make niter analysis more precise on code
6760 generated by Graphite.
6761
6762 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6763
6764 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6765 (graphite_legal_transform_bb): Same.
6766 (poly_drs_may_alias_p): Same.
6767
6768 2009-08-28 Richard Guenther <rguenther@suse.de>
6769
6770 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6771
6772 2009-08-28 Jan Beulich <jbeulich@novell.com>
6773
6774 * config/i386/netware.c: Include langhooks.h.
6775 (i386_nlm_encode_section_info): Simplify.
6776 (netware_override_options): Delete.
6777 * config/i386/netware.h (netware_override_options): Delete
6778 declaration.
6779 (OVERRIDE_OPTIONS): Delete definition.
6780 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6781 (ASM_COMMENT_START): Define.
6782 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6783
6784 2009-08-28 Jan Beulich <jbeulich@novell.com>
6785
6786 * configure.ac: For in-tree ld, do a plain version check to
6787 determine whether comdat groups are supported.
6788 * configure: Regenerate.
6789
6790 2009-08-28 Olivier Hainque <hainque@adacore.com>
6791
6792 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6793 always defined. Reflect definition or absence of such for
6794 COLLECT_EXPORT_LIST. Readability helper.
6795 (scanfilter): New enum, to help control what symbols
6796 are to be considered or ignored by scan_prog_file.
6797 (enum pass): Rename as "scanpass", moved together with scanfilter
6798 prior to scan_prog_file's prototype.
6799 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6800 Group prototype with the scanpass/scanfilter definitions, factorize
6801 head comments for the several implementations at the prototype.
6802 (main): Reorganize the first pass link control to let AIX
6803 drag only the needed frame tables in executables. Prevent
6804 frame tables collection during the scan aimed at static ctors.
6805 Pre-link and scan for frame tables later to compensate.
6806 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6807 A C statement to issue assembly directives that create a reference
6808 to the given DWARF table identifier label from the current function
6809 section.
6810 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6811 to differentiate first time section entry. Only emit a .data
6812 tables start identifier label the first time around.
6813 (switch_to_frame_table_section): New function. Helper for
6814 output_call_frame_info to switch possibly BACK into the eh_frame
6815 or the debug_frame section depending on FOR_EH.
6816 (output_call_frame_info): Use helper to first enter the proper
6817 frame section.
6818 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6819 emit a link to the frame table start label from each function
6820 section.
6821 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6822 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6823 * config/rs6000/rs6000-protos.h: Declare it.
6824 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6825
6826 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6827
6828 * config/sh/sh.c (split_branches): Check the result of
6829 next_active_insn.
6830
6831 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6832
6833 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6834 using -pthread -fopenmp
6835
6836 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6837
6838 * doc/service.texi (service directory): Update URL.
6839
6840 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6841
6842 PR rtl-optimization/40861
6843 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6844 extract word from a multi-word subreg for negative byte positions.
6845
6846 2009-08-27 Tristan Gingold <gingold@adacore.com>
6847 Douglas B Rupp <rupp@gnat.com>
6848
6849 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6850 (SECTION_VMS_OVERLAY): Define.
6851 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6852 attribute.
6853 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6854 for common_object.
6855 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6856 common_object declarations.
6857 (ia64_section_type_flags): Set section flag for common_object.
6858 * config/ia64/ia64-protos.h
6859 (ia64_vms_output_aligned_decl_common): Declare.
6860 (ia64_vms_elf_asm_named_section): Declare.
6861
6862 2009-08-27 Michael Matz <matz@suse.de>
6863
6864 * expr.c (expand_expr_real_2): New function taking exploded
6865 unary or binary expression, split out from ...
6866 (expand_expr_real_1): ... here. Move over all unary/binary
6867 switch parts to above function, in particular these codes:
6868 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6869 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6870 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6871 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6872 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6873 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6874 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6875 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6876 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6877 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6878 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6879 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6880 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6881 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6882 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6883 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6884 VEC_PACK_FIX_TRUNC_EXPR.
6885 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6886 full expression.
6887
6888 2009-08-27 Richard Guenther <rguenther@suse.de>
6889
6890 * gengtype.c (main): Handle uint64_t.
6891 * ipa-utils.c (get_base_var): Indent properly.
6892 * tree-ssa-live.c (debug_scope_block): New function.
6893 * tree-flow.h (debug_scope_block): Declare.
6894 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6895 * basic-block.h (enum profile_status): Rename to
6896 enum profile_status_d.
6897 (x_profile_status): Adjust type.
6898
6899 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6900
6901 PR debug/41170
6902 * dwarf2out.c (get_context_die): Declare this static function.
6903 (gen_type_die_with_usage): Make sure a DIE is a generated for
6904 the context of a typedef.
6905
6906 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6907
6908 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6909 switch.
6910
6911 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6912
6913 * config/mips/mips-protos.h (mips_output_sync): Declare.
6914 (mips_sync_loop_insns): Likewise.
6915 (mips_output_sync_loop): Replace first two parameters with an rtx.
6916 * config/mips/mips.c (mips_multi_member): New structure.
6917 (mips_multi_members): New variable.
6918 (mips_multi_start): New function.
6919 (mips_multi_add): Likewise.
6920 (mips_multi_add_insn): Likewise.
6921 (mips_multi_add_label): Likewise.
6922 (mips_multi_last_index): Likewise.
6923 (mips_multi_copy_insn): Likewise.
6924 (mips_multi_set_operand): Likewise.
6925 (mips_multi_write): Likewise.
6926 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6927 (mips_init_print_operand_punct): Update accordingly.
6928 (mips_start_ll_sc_sync_block): New function.
6929 (mips_end_ll_sc_sync_block): Likewise.
6930 (mips_output_sync): Likewise.
6931 (mips_sync_insn1_template): Likewise.
6932 (mips_sync_insn2_template): Likewise.
6933 (mips_get_sync_operand): Likewise.
6934 (mips_process_sync_loop): Likewise.
6935 (mips_output_sync_loop): Use mips_process_sync_loop.
6936 (mips_sync_loop_insns): New function.
6937 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6938 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6939 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6940 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6941 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6942 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6943 (MIPS_SYNC_OLD_OP_12): Likewise.
6944 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6945 (MIPS_SYNC_NEW_OP_12): Likewise.
6946 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6947 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6948 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6949 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6950 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6951 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6952 * config/mips/mips.md (sync_mem): New attribute.
6953 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6954 (sync_exclusive_mask, sync_required_oldval): Likewise.
6955 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6956 (sync_release_barrier): Likewise.
6957 (length): Handle sync loops.
6958 (sync): Use mips_output_sync.
6959 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6960 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6961 and use mips_output_sync_loop.
6962 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6963 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6964 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6965 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6966 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6967 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6968 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6969 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6970 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6971
6972 2009-08-26 Richard Guenther <rguenther@suse.de>
6973
6974 PR middle-end/41163
6975 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6976 the types to not match.
6977 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6978 verification.
6979 * tree-ssa.c (useless_type_conversion_p): Conversions to
6980 pointers to unprototyped functions are useless.
6981
6982 2009-08-26 Richard Guenther <rguenther@suse.de>
6983
6984 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6985 whole-program condition, prepare to be called for non-globals.
6986 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6987 params build a representative with known type and track its fields.
6988
6989 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6990
6991 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6992 clearing by a taken branch.
6993 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6994 effectively after bbro pass.
6995 (sync_nand<mode>): Ditto.
6996 (sync_old_<fetchop_name><mode>): Ditto.
6997 (sync_old_nand<mode>): Ditto.
6998 (sync_new_<fetchop_name><mode>): Dito.
6999 (sync_new_nand<mode>): Ditto.
7000 (sync_compare_and_swap<mode>_1): Ditto.
7001 (*sync_compare_and_swap<mode>): Ditto.
7002 (sync_lock_test_and_set<mode>_1): Ditto.
7003 ("sync_lock_test_and_set<mode>): Ditto.
7004
7005 2009-08-25 Douglas B Rupp <rupp@gnat.com>
7006
7007 * hwint.h (HOST_LONG_FORMAT): New macro
7008 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
7009 Use HOST_PTR_PRINTF.
7010 * system.h (HOST_PTR_PRINTF): Resurrect old macro
7011 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
7012 (HOST_PTR_PRINTF): Document.
7013
7014 2009-08-25 Jan Hubicka <jh@suse.cz>
7015
7016 * config/i386/bmmintrin.h: Replace by #error.
7017
7018 Revert:
7019 Michael Meissner <michael.meissner@amd.com>
7020 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7021 Tony Linthicum <tony.linthicum@amd.com>
7022
7023 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
7024 (TARGET_ROUND): New macro for the round/ptest instructions which
7025 are shared between SSE4.1 and SSE5.
7026 (OPTION_MASK_ISA_ROUND): Ditto.
7027 (OPTION_ISA_ROUND): Ditto.
7028 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
7029 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
7030
7031 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
7032 (-mfused-madd): New switch to give users control over whether the
7033 compiler optimizes to use the multiply/add SSE5 instructions.
7034
7035 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
7036 (ix86_handle_option): Turn off 3dnow if -msse5.
7037 (override_options): Add SSE5 support.
7038 (print_operand): %Y prints comparison codes for SSE5 com/pcom
7039 instructions.
7040 (ix86_expand_sse_movcc): Add SSE5 support.
7041 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
7042 vector type to the next largest size.
7043 (ix86_expand_sse5_pack): New function to use pperm to pack a
7044 vector type to the next smallest size.
7045 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
7046 (IX86_BUILTIN_FMADDSD): Ditto.
7047 (IX86_BUILTIN_FMADDPS): Ditto.
7048 (IX86_BUILTIN_FMADDPD): Ditto.
7049 (IX86_BUILTIN_FMSUBSS): Ditto.
7050 (IX86_BUILTIN_FMSUBSD): Ditto.
7051 (IX86_BUILTIN_FMSUBPS): Ditto.
7052 (IX86_BUILTIN_FMSUBPD): Ditto.
7053 (IX86_BUILTIN_FNMADDSS): Ditto.
7054 (IX86_BUILTIN_FNMADDSD): Ditto.
7055 (IX86_BUILTIN_FNMADDPS): Ditto.
7056 (IX86_BUILTIN_FNMADDPD): Ditto.
7057 (IX86_BUILTIN_FNMSUBSS): Ditto.
7058 (IX86_BUILTIN_FNMSUBSD): Ditto.
7059 (IX86_BUILTIN_FNMSUBPS): Ditto.
7060 (IX86_BUILTIN_FNMSUBPD): Ditto.
7061 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
7062 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
7063 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
7064 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
7065 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
7066 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
7067 (IX86_BUILTIN_PPERM): Ditto.
7068 (IX86_BUILTIN_PERMPS): Ditto.
7069 (IX86_BUILTIN_PERMPD): Ditto.
7070 (IX86_BUILTIN_PMACSSWW): Ditto.
7071 (IX86_BUILTIN_PMACSWW): Ditto.
7072 (IX86_BUILTIN_PMACSSWD): Ditto.
7073 (IX86_BUILTIN_PMACSWD): Ditto.
7074 (IX86_BUILTIN_PMACSSDD): Ditto.
7075 (IX86_BUILTIN_PMACSDD): Ditto.
7076 (IX86_BUILTIN_PMACSSDQL): Ditto.
7077 (IX86_BUILTIN_PMACSSDQH): Ditto.
7078 (IX86_BUILTIN_PMACSDQL): Ditto.
7079 (IX86_BUILTIN_PMACSDQH): Ditto.
7080 (IX86_BUILTIN_PMADCSSWD): Ditto.
7081 (IX86_BUILTIN_PMADCSWD): Ditto.
7082 (IX86_BUILTIN_PHADDBW): Ditto.
7083 (IX86_BUILTIN_PHADDBD): Ditto.
7084 (IX86_BUILTIN_PHADDBQ): Ditto.
7085 (IX86_BUILTIN_PHADDWD): Ditto.
7086 (IX86_BUILTIN_PHADDWQ): Ditto.
7087 (IX86_BUILTIN_PHADDDQ): Ditto.
7088 (IX86_BUILTIN_PHADDUBW): Ditto.
7089 (IX86_BUILTIN_PHADDUBD): Ditto.
7090 (IX86_BUILTIN_PHADDUBQ): Ditto.
7091 (IX86_BUILTIN_PHADDUWD): Ditto.
7092 (IX86_BUILTIN_PHADDUWQ): Ditto.
7093 (IX86_BUILTIN_PHADDUDQ): Ditto.
7094 (IX86_BUILTIN_PHSUBBW): Ditto.
7095 (IX86_BUILTIN_PHSUBWD): Ditto.
7096 (IX86_BUILTIN_PHSUBDQ): Ditto.
7097 (IX86_BUILTIN_PROTB): Ditto.
7098 (IX86_BUILTIN_PROTW): Ditto.
7099 (IX86_BUILTIN_PROTD): Ditto.
7100 (IX86_BUILTIN_PROTQ): Ditto.
7101 (IX86_BUILTIN_PROTB_IMM): Ditto.
7102 (IX86_BUILTIN_PROTW_IMM): Ditto.
7103 (IX86_BUILTIN_PROTD_IMM): Ditto.
7104 (IX86_BUILTIN_PROTQ_IMM): Ditto.
7105 (IX86_BUILTIN_PSHLB): Ditto.
7106 (IX86_BUILTIN_PSHLW): Ditto.
7107 (IX86_BUILTIN_PSHLD): Ditto.
7108 (IX86_BUILTIN_PSHLQ): Ditto.
7109 (IX86_BUILTIN_PSHAB): Ditto.
7110 (IX86_BUILTIN_PSHAW): Ditto.
7111 (IX86_BUILTIN_PSHAD): Ditto.
7112 (IX86_BUILTIN_PSHAQ): Ditto.
7113 (IX86_BUILTIN_FRCZSS): Ditto.
7114 (IX86_BUILTIN_FRCZSD): Ditto.
7115 (IX86_BUILTIN_FRCZPS): Ditto.
7116 (IX86_BUILTIN_FRCZPD): Ditto.
7117 (IX86_BUILTIN_CVTPH2PS): Ditto.
7118 (IX86_BUILTIN_CVTPS2PH): Ditto.
7119 (IX86_BUILTIN_COMEQSS): Ditto.
7120 (IX86_BUILTIN_COMNESS): Ditto.
7121 (IX86_BUILTIN_COMLTSS): Ditto.
7122 (IX86_BUILTIN_COMLESS): Ditto.
7123 (IX86_BUILTIN_COMGTSS): Ditto.
7124 (IX86_BUILTIN_COMGESS): Ditto.
7125 (IX86_BUILTIN_COMUEQSS): Ditto.
7126 (IX86_BUILTIN_COMUNESS): Ditto.
7127 (IX86_BUILTIN_COMULTSS): Ditto.
7128 (IX86_BUILTIN_COMULESS): Ditto.
7129 (IX86_BUILTIN_COMUGTSS): Ditto.
7130 (IX86_BUILTIN_COMUGESS): Ditto.
7131 (IX86_BUILTIN_COMORDSS): Ditto.
7132 (IX86_BUILTIN_COMUNORDSS): Ditto.
7133 (IX86_BUILTIN_COMFALSESS): Ditto.
7134 (IX86_BUILTIN_COMTRUESS): Ditto.
7135 (IX86_BUILTIN_COMEQSD): Ditto.
7136 (IX86_BUILTIN_COMNESD): Ditto.
7137 (IX86_BUILTIN_COMLTSD): Ditto.
7138 (IX86_BUILTIN_COMLESD): Ditto.
7139 (IX86_BUILTIN_COMGTSD): Ditto.
7140 (IX86_BUILTIN_COMGESD): Ditto.
7141 (IX86_BUILTIN_COMUEQSD): Ditto.
7142 (IX86_BUILTIN_COMUNESD): Ditto.
7143 (IX86_BUILTIN_COMULTSD): Ditto.
7144 (IX86_BUILTIN_COMULESD): Ditto.
7145 (IX86_BUILTIN_COMUGTSD): Ditto.
7146 (IX86_BUILTIN_COMUGESD): Ditto.
7147 (IX86_BUILTIN_COMORDSD): Ditto.
7148 (IX86_BUILTIN_COMUNORDSD): Ditto.
7149 (IX86_BUILTIN_COMFALSESD): Ditto.
7150 (IX86_BUILTIN_COMTRUESD): Ditto.
7151 (IX86_BUILTIN_COMEQPS): Ditto.
7152 (IX86_BUILTIN_COMNEPS): Ditto.
7153 (IX86_BUILTIN_COMLTPS): Ditto.
7154 (IX86_BUILTIN_COMLEPS): Ditto.
7155 (IX86_BUILTIN_COMGTPS): Ditto.
7156 (IX86_BUILTIN_COMGEPS): Ditto.
7157 (IX86_BUILTIN_COMUEQPS): Ditto.
7158 (IX86_BUILTIN_COMUNEPS): Ditto.
7159 (IX86_BUILTIN_COMULTPS): Ditto.
7160 (IX86_BUILTIN_COMULEPS): Ditto.
7161 (IX86_BUILTIN_COMUGTPS): Ditto.
7162 (IX86_BUILTIN_COMUGEPS): Ditto.
7163 (IX86_BUILTIN_COMORDPS): Ditto.
7164 (IX86_BUILTIN_COMUNORDPS): Ditto.
7165 (IX86_BUILTIN_COMFALSEPS): Ditto.
7166 (IX86_BUILTIN_COMTRUEPS): Ditto.
7167 (IX86_BUILTIN_COMEQPD): Ditto.
7168 (IX86_BUILTIN_COMNEPD): Ditto.
7169 (IX86_BUILTIN_COMLTPD): Ditto.
7170 (IX86_BUILTIN_COMLEPD): Ditto.
7171 (IX86_BUILTIN_COMGTPD): Ditto.
7172 (IX86_BUILTIN_COMGEPD): Ditto.
7173 (IX86_BUILTIN_COMUEQPD): Ditto.
7174 (IX86_BUILTIN_COMUNEPD): Ditto.
7175 (IX86_BUILTIN_COMULTPD): Ditto.
7176 (IX86_BUILTIN_COMULEPD): Ditto.
7177 (IX86_BUILTIN_COMUGTPD): Ditto.
7178 (IX86_BUILTIN_COMUGEPD): Ditto.
7179 (IX86_BUILTIN_COMORDPD): Ditto.
7180 (IX86_BUILTIN_COMUNORDPD): Ditto.
7181 (IX86_BUILTIN_COMFALSEPD): Ditto.
7182 (IX86_BUILTIN_COMTRUEPD): Ditto.
7183 (IX86_BUILTIN_PCOMEQUB): Ditto.
7184 (IX86_BUILTIN_PCOMNEUB): Ditto.
7185 (IX86_BUILTIN_PCOMLTUB): Ditto.
7186 (IX86_BUILTIN_PCOMLEUB): Ditto.
7187 (IX86_BUILTIN_PCOMGTUB): Ditto.
7188 (IX86_BUILTIN_PCOMGEUB): Ditto.
7189 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7190 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7191 (IX86_BUILTIN_PCOMEQUW): Ditto.
7192 (IX86_BUILTIN_PCOMNEUW): Ditto.
7193 (IX86_BUILTIN_PCOMLTUW): Ditto.
7194 (IX86_BUILTIN_PCOMLEUW): Ditto.
7195 (IX86_BUILTIN_PCOMGTUW): Ditto.
7196 (IX86_BUILTIN_PCOMGEUW): Ditto.
7197 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7198 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7199 (IX86_BUILTIN_PCOMEQUD): Ditto.
7200 (IX86_BUILTIN_PCOMNEUD): Ditto.
7201 (IX86_BUILTIN_PCOMLTUD): Ditto.
7202 (IX86_BUILTIN_PCOMLEUD): Ditto.
7203 (IX86_BUILTIN_PCOMGTUD): Ditto.
7204 (IX86_BUILTIN_PCOMGEUD): Ditto.
7205 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7206 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7207 (IX86_BUILTIN_PCOMEQUQ): Ditto.
7208 (IX86_BUILTIN_PCOMNEUQ): Ditto.
7209 (IX86_BUILTIN_PCOMLTUQ): Ditto.
7210 (IX86_BUILTIN_PCOMLEUQ): Ditto.
7211 (IX86_BUILTIN_PCOMGTUQ): Ditto.
7212 (IX86_BUILTIN_PCOMGEUQ): Ditto.
7213 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7214 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7215 (IX86_BUILTIN_PCOMEQB): Ditto.
7216 (IX86_BUILTIN_PCOMNEB): Ditto.
7217 (IX86_BUILTIN_PCOMLTB): Ditto.
7218 (IX86_BUILTIN_PCOMLEB): Ditto.
7219 (IX86_BUILTIN_PCOMGTB): Ditto.
7220 (IX86_BUILTIN_PCOMGEB): Ditto.
7221 (IX86_BUILTIN_PCOMFALSEB): Ditto.
7222 (IX86_BUILTIN_PCOMTRUEB): Ditto.
7223 (IX86_BUILTIN_PCOMEQW): Ditto.
7224 (IX86_BUILTIN_PCOMNEW): Ditto.
7225 (IX86_BUILTIN_PCOMLTW): Ditto.
7226 (IX86_BUILTIN_PCOMLEW): Ditto.
7227 (IX86_BUILTIN_PCOMGTW): Ditto.
7228 (IX86_BUILTIN_PCOMGEW): Ditto.
7229 (IX86_BUILTIN_PCOMFALSEW): Ditto.
7230 (IX86_BUILTIN_PCOMTRUEW): Ditto.
7231 (IX86_BUILTIN_PCOMEQD): Ditto.
7232 (IX86_BUILTIN_PCOMNED): Ditto.
7233 (IX86_BUILTIN_PCOMLTD): Ditto.
7234 (IX86_BUILTIN_PCOMLED): Ditto.
7235 (IX86_BUILTIN_PCOMGTD): Ditto.
7236 (IX86_BUILTIN_PCOMGED): Ditto.
7237 (IX86_BUILTIN_PCOMFALSED): Ditto.
7238 (IX86_BUILTIN_PCOMTRUED): Ditto.
7239 (IX86_BUILTIN_PCOMEQQ): Ditto.
7240 (IX86_BUILTIN_PCOMNEQ): Ditto.
7241 (IX86_BUILTIN_PCOMLTQ): Ditto.
7242 (IX86_BUILTIN_PCOMLEQ): Ditto.
7243 (IX86_BUILTIN_PCOMGTQ): Ditto.
7244 (IX86_BUILTIN_PCOMGEQ): Ditto.
7245 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7246 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7247 (enum multi_arg_type): New enum for describing the various SSE5
7248 intrinsic argument types.
7249 (bdesc_multi_arg): New table for SSE5 intrinsics.
7250 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7251 (ix86_expand_multi_arg_builtin): New function for creating SSE5
7252 intrinsics.
7253 (ix86_expand_builtin): Add SSE5 intrinsic support.
7254 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7255 operand instructions.
7256 (ix86_expand_sse5_multiple_memory): New function to split the
7257 second memory reference from SSE5 instructions.
7258 (type_has_variadic_args_p): Delete in favor of stdarg_p.
7259 (ix86_return_pops_args): Use stdarg_p to determine if the function
7260 has variable arguments.
7261 (ix86_setup_incoming_varargs): Ditto.
7262 (x86_this_parameter): Ditto.
7263
7264 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7265 declaration.
7266 (ix86_expand_sse5_pack): Ditto.
7267 (ix86_sse5_valid_op_p): Ditto.
7268 (ix86_expand_sse5_multiple_memory): Ditto.
7269
7270 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7271 constant for SSE5 support.
7272 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7273 (UNSPEC_SSE5_TRUEFALSE): Ditto.
7274 (UNSPEC_SSE5_PERMUTE): Ditto.
7275 (UNSPEC_SSE5_ASHIFT): Ditto.
7276 (UNSPEC_SSE5_LSHIFT): Ditto.
7277 (UNSPEC_FRCZ): Ditto.
7278 (UNSPEC_CVTPH2PS): Ditto.
7279 (UNSPEC_CVTPS2PH): Ditto.
7280 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7281 (PCOM_TRUE): Ditto.
7282 (COM_FALSE_S): Ditto.
7283 (COM_FALSE_P): Ditto.
7284 (COM_TRUE_S): Ditto.
7285 (COM_TRUE_P): Ditto.
7286 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7287 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7288 types.
7289 (memory attribute): Ditto.
7290 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7291 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7292 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7293 (floor<mode>2): Ditto.
7294 (ceil<mode>2): Ditto.
7295 (btrunc<mode>2): Ditto.
7296 (nearbyintdf2): Ditto.
7297 (nearbyintsf2): Ditto.
7298 (sse_setccsf): Disable if SSE5.
7299 (sse_setccdf): Ditto.
7300 (sse5_setcc<mode>): New support for SSE5 conditional move.
7301 (sse5_pcmov_<mode>): Ditto.
7302
7303 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7304 (SSEMODEF4): Ditto.
7305 (SSEMODEF2P): Ditto.
7306 (ssemodesuffixf4): New mode attribute for SSE5.
7307 (ssemodesuffixf2s): Ditto.
7308 (ssemodesuffixf2c): Ditto.
7309 (sserotatemax): Ditto.
7310 (ssescalarmode): Ditto.
7311 (sse_maskcmpv4sf3): Disable if SSE5.
7312 (sse_maskcmpv2df3): Ditto.
7313 (sse_vmmaskcmpv4sf3): Ditto.
7314 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7315 (sse5_vmfmadd<mode>4): Ditto.
7316 (sse5_fmsub<mode>4): Ditto.
7317 (sse5_vmfmsub<mode>4): Ditto.
7318 (sse5_fnmadd<mode>4): Ditto.
7319 (sse5_vmfnmadd<mode>4): Ditto.
7320 (sse5_fnmsub<mode>4): Ditto.
7321 (sse5_vmfnmsub<mode>4): Ditto.
7322 (sse5i_fmadd<mode>4): Ditto.
7323 (sse5i_fmsub<mode>4): Ditto.
7324 (sse5i_fnmadd<mode>4): Ditto.
7325 (sse5i_fnmsub<mode>4): Ditto.
7326 (sse5i_vmfmadd<mode>4): Ditto.
7327 (sse5i_vmfmsub<mode>4): Ditto.
7328 (sse5i_vmfnmadd<mode>4): Ditto.
7329 (sse5i_vmfnmsub<mode>4): Ditto.
7330 (mulv16qi3): Add SSE5 support.
7331 (mulv4si3): Ditto.
7332 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7333 (sse2_mulv4si3): Disable if SSE5.
7334 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7335 (sse4_1_roundps): Ditto.
7336 (sse4_1_roundsd): Ditto.
7337 (sse4_1_roundss): Ditto.
7338 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7339 be generated.
7340 (sse_maskcmpsf3): Ditto.
7341 (sse_vmmaskcmpv4sf3): Ditto.
7342 (sse2_maskcmpv2df3): Ditto.
7343 (sse2_maskcmpdf3): Ditto.
7344 (sse2_vmmaskcmpv2df3): Ditto.
7345 (sse2_eq<mode>3): Ditto.
7346 (sse2_gt<mode>3): Ditto.
7347 (sse5_pcmov_<mode>): Add SSE5 support.
7348 (vec_unpacku_hi_v16qi): Ditto.
7349 (vec_unpacks_hi_v16qi): Ditto.
7350 (vec_unpacku_lo_v16qi): Ditto.
7351 (vec_unpacks_lo_v16qi): Ditto.
7352 (vec_unpacku_hi_v8hi): Ditto.
7353 (vec_unpacks_hi_v8hi): Ditto.
7354 (vec_unpacku_lo_v8hi): Ditto.
7355 (vec_unpacks_lo_v8hi): Ditto.
7356 (vec_unpacku_hi_v4si): Ditto.
7357 (vec_unpacks_hi_v4si): Ditto.
7358 (vec_unpacku_lo_v4si): Ditto.
7359 (vec_unpacks_lo_v4si): Ditto.
7360 (sse5_pmacsww): New SSE5 intrinsic insn.
7361 (sse5_pmacssww): Ditto.
7362 (sse5_pmacsdd): Ditto.
7363 (sse5_pmacssdd): Ditto.
7364 (sse5_pmacssdql): Ditto.
7365 (sse5_pmacssdqh): Ditto.
7366 (sse5_pmacsdqh): Ditto.
7367 (sse5_pmacsswd): Ditto.
7368 (sse5_pmacswd): Ditto.
7369 (sse5_pmadcsswd): Ditto.
7370 (sse5_pmadcswd): Ditto.
7371 (sse5_pcmov_<move>): Conditional move support on SSE5.
7372 (sse5_phaddbw): New SSE5 intrinsic insn.
7373 (sse5_phaddbd): Ditto.
7374 (sse5_phaddbq): Ditto.
7375 (sse5_phaddwd): Ditto.
7376 (sse5_phaddwq): Ditto.
7377 (sse5_phadddq): Ditto.
7378 (sse5_phaddubw): Ditto.
7379 (sse5_phaddubd): Ditto.
7380 (sse5_phaddubq): Ditto.
7381 (sse5_phadduwd): Ditto.
7382 (sse5_phadduwq): Ditto.
7383 (sse5_phaddudq): Ditto.
7384 (sse5_phsubbw): Ditto.
7385 (sse5_phsubwd): Ditto.
7386 (sse5_phsubdq): Ditto.
7387 (sse5_pperm): Ditto.
7388 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7389 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7390 (sse5_pperm_sign_v8hi_v4si): Ditto.
7391 (sse5_pperm_zero_v8hi_v4si): Ditto.
7392 (sse5_pperm_sign_v4si_v2di): Ditto.
7393 (sse5_pperm_sign_v4si_v2di): Ditto.
7394 (sse5_pperm_pack_v2di_v4si): Ditto.
7395 (sse5_pperm_pack_v4si_v8hi): Ditto.
7396 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7397 (sse5_perm<mode>): New SSE5 intrinsic insn.
7398 (rotl<mode>3): Ditto.
7399 (sse5_rotl<mode>3): Ditto.
7400 (sse5_ashl<mode>3): Ditto.
7401 (sse5_lshl<mode>3): Ditto.
7402 (sse5_frcz<mode>2): Ditto.
7403 (sse5s_frcz<mode>2): Ditto.
7404 (sse5_cvtph2ps): Ditto.
7405 (sse5_cvtps2ph): Ditto.
7406 (sse5_vmmaskcmp<mode>3): Ditto.
7407 (sse5_com_tf<mode>3): Ditto.
7408 (sse5_maskcmp<mode>3): Ditto.
7409 (sse5_maskcmp_uns<mode>3): Ditto.
7410 (sse5_maskcmp_uns2<mode>3): Ditto.
7411 (sse5_pcom_tf<mode>3): Ditto.
7412
7413 * config/i386/predicates.md (sse5_comparison_float_operator):
7414 New predicate to match the comparison operators supported by
7415 the SSE5 com instruction.
7416 (ix86_comparison_int_operator): New predicate to match just the
7417 signed int comparisons.
7418 (ix86_comparison_uns_operator): New predicate to match just the
7419 unsigned int comparisons.
7420
7421 * doc/invoke.texi (-msse5): Add documentation.
7422 (-mfused-madd): Ditto.
7423
7424 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7425
7426 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7427 mmintrin-common.h.
7428 (x86_64-*-*): Ditto.
7429
7430 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7431
7432 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7433 intrinisics for SSE5.
7434
7435 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7436 mmintrin-common.h.
7437
7438 * config/i386/mmintrin-common.h: New file, to contain common
7439 instructions between SSE4.1 and SSE5.
7440
7441 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7442 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7443 (gen_regparm_prefix): Ditto.
7444
7445 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7446 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7447 prototype_p to determine if a function is prototyped.
7448
7449 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7450
7451 * c-common.c (c_common_reswords) add the alignof keyword,
7452 with same RID as __alignof and __alignof__
7453
7454 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7455
7456 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7457 * hooks.c (hook_bool_const_int_const_int_true): New function.
7458 * target.h (struct gcc_target): Add can_eliminate field.
7459 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7460 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7461 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7462 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7463 (elim_table): Revise comment.
7464 * system.h (CAN_ELIMINATE): Poison.
7465 * defaults.h (CAN_ELIMINATE): Remove.
7466 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7467
7468 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7469 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7470 Define macro.
7471 (alpha_vms_can_eliminate): Declare as static, change return type to
7472 bool.
7473 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7474
7475 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7476 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7477 (arm_can_eliminate): New function.
7478
7479 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7480 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7481 (avr_can_eliminate): Declare as static.
7482 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7483
7484 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7485 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7486 (bfin_can_eliminate): New function.
7487
7488 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7489 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7490 (crx_can_eliminate): New function.
7491
7492 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7493 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7494 (fr30_can_eliminate): New function.
7495
7496 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7497 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7498 (frv_can_eliminate): New function.
7499
7500 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7501 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7502 (h8300_can_eliminate): New function.
7503
7504 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7505 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7506 (i386_can_eliminate): Declare as static, change return type to bool.
7507 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7508
7509 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7510 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7511 (ia64_can_eliminate): New function.
7512
7513 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7514 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7515 (iq2000_can_eliminate): New function.
7516
7517 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7518 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7519 (m32r_can_eliminate): New function.
7520
7521 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7522 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7523 (m68hc11_can_eliminate): New function.
7524
7525 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7526 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7527 (m68k_can_eliminate): New function.
7528
7529 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7530 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7531 (mep_can_eliminate): New function.
7532
7533 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7534 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7535 (mips_can_eliminate): New function.
7536
7537 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7538 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7539 (rs6000_can_eliminate): New function.
7540
7541 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7542 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7543 (s390_can_eliminate): Declare as static.
7544 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7545
7546 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7547 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7548 (score_can_eliminate): New function.
7549
7550 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7551 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7552 (sparc_can_eliminate): Declare as static.
7553 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7554
7555 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7556 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7557 (xstormy16_can_eliminate): New function.
7558
7559 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7560 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7561 (v850_can_eliminate): New function.
7562
7563 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7564
7565 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7566 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7567 (*movdfcc_ext[1234]): Disable for IEEE mode.
7568
7569 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7570
7571 * gimplify.c (prepare_gimple_addressable): New static function.
7572 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7573 it addressable.
7574 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7575 manually fiddling with it.
7576
7577 2009-08-25 Michael Matz <matz@suse.de>
7578
7579 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7580 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7581 full expression.
7582 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7583 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7584 (do_jump): Split out code for simple binary comparisons into ...
7585 (do_jump_1): ... this, taking the individual operands and code.
7586 Change callers to helper function above accordingly.
7587 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7588 comparisons.
7589
7590 2009-08-25 Michael Matz <matz@suse.de>
7591
7592 * expr.h (struct separate_ops, sepops): New type for passing
7593 around an exploded simple expression.
7594 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7595 Use this structure instead of expression tree.
7596 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7597 expression, only its type.
7598 (expand_vec_cond_expr): Take type and individual operands instead
7599 of full expression.
7600 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7601 expand_vec_shift_expr): Change prototype accordingly.
7602 * tree-vect-stmts.c (vectorizable_condition): Change call of
7603 expand_vec_cond_expr_p to pass only type.
7604 * expr.c (do_store_flags): Change prototype and implementation
7605 to take an exploded expression.
7606 (expand_expr_real_1): New local ops initialized with details
7607 of the full expression. Use it instead of full
7608 expression in calls to do_store_flags, expand_vec_cond_expr,
7609 expand_widen_pattern_expr and expand_vec_shift_expr.
7610
7611 2009-08-25 Michael Matz <matz@suse.de>
7612
7613 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7614 treeop2 initialized with first three operands of the full expression.
7615 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7616
7617 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7618
7619 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7620 (__gthread_objc_condition_allocate): Mark arguments as unused.
7621 (__gthread_objc_condition_deallocate): Likewise.
7622 (__gthread_objc_condition_wait): Likewise.
7623 (__gthread_objc_condition_broadcast): Likewise.
7624 (__gthread_objc_condition_signal): Likewise.
7625 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7626 (__gthread_objc_thread_id): Likewise.
7627
7628 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7629
7630 PR middle-end/41149
7631 * tree-pretty-print.c (print_call_name): Print the correct call name
7632 for procedure pointer components.
7633
7634 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7635
7636 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7637 default_promote_function_mode when not VMS.
7638
7639 2009-08-24 Olivier Hainque <hainque@adacore.com>
7640
7641 * convert.c (convert_to_integer): Don't assume an input pointer is
7642 POINTER_SIZE wide. Fetch from the type instead.
7643
7644 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7645
7646 * configure.ac (AC_PREREQ): Bump to 2.64.
7647
7648 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7649
7650 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7651 (process_command): Don't search standard_exec_prefix_1 and
7652 standard_exec_prefix_2.
7653
7654 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7655
7656 * config/arm/arm.c (output_return_instruction): Handle for
7657 unified syntax.
7658
7659 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7660
7661 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7662
7663 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7664
7665 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7666 (*arm_movdf_vfp): Likewise.
7667
7668 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7669
7670 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7671 (vashr<mode>3): Rename from ashr<mode>3.
7672 (vlshr<mode>3): Rename from lshr<mode>3.
7673
7674 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7675
7676 PR/40786
7677 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7678 (check_format_info_main): Use scalar_identify_flag.
7679 (check_format_types): Check for scalar size identity if
7680 scalar_identify_flag is set.
7681 (printf_length_specs): Extend by new field.
7682 (asm_fprintf_length_specs): Likewise.
7683 (gcc_diag_length_specs): Likewise.
7684 (scanf_length_specs): Likewise.
7685 (strfmon_length_specs): Likewise.
7686 (gcc_gfc_length_specs): Likewise.
7687 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7688 (ms_printf_flag_specs): Likewise.
7689 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7690
7691 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7692
7693 PR target/40718
7694 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7695 (*call_value_pop_1): Ditto.
7696 (*sibcall_pop_1): New insn pattern.
7697 (*sibcall_value_pop_1): Ditto.
7698
7699 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7700
7701 PR target/41081
7702 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7703 ashrsi3_64): New.
7704
7705 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7706
7707 PR target/41081
7708 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7709 (get_reg_use_in): New function.
7710 (forward_propagate_subreg): Propagate through subreg of zero_extend
7711 or sign_extend.
7712
7713 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7714
7715 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7716 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7717
7718 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7719
7720 * configure.ac: Remove --with-datarootdir, --with-docdir,
7721 --with-htmldir switches. No need to call AC_SUBST for
7722 datarootdir, docdir, htmldir any more.
7723 * configure: Regenerate.
7724 * doc/install.texi (Configuration): Document --datarootdir,
7725 --docdir, --htmldir, --pdfdir; update documentation for
7726 --infodir, --mandir.
7727 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7728 M4 to 1.4.6.
7729
7730 * aclocal.m4: Regenerate.
7731 * config.in: Regenerate.
7732 * configure: Regenerate.
7733
7734 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7735 Olivier Hainque <hainque@adacore.com>
7736
7737 * config/ia64/ia64.c: Include libfuncs.h.
7738 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7739 (ia64_expand_call): Use reg 25 on VMS.
7740 (ia64_initialize_trampoline): Fix for VMS ABI.
7741 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7742 (ia64_function_arg): Initialize reg 25 on VMS.
7743 Fix OpenVMS ABI issues for varargs.
7744 For OpenVMS, emit the Argument Information register set in the
7745 incoming/sibcall case as well.
7746 (ia64_arg_type): New function.
7747 (ia64_function_arg_advance): Keep track of cum->words.
7748 Fix OpenVMS ABI issues for varargs.
7749 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7750 (ia64_override_options): Set flag_no_common on VMS.
7751 (ia64_init_builtins): Disable FWRITE builtin.
7752 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7753 (ia64_vms_init_libfuncs): Add decc$ routines.
7754 (ia64_vms_valid_pointer_mode): New function.
7755 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7756 (ia64_promote_function_mode): New function
7757 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7758 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7759 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7760 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7761 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7762 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7763 Suppress trailing '#' if VALUE is numeric.
7764 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7765 ia64_promote_function_mode.
7766 (TARGET_VALID_POINTER_MODE): Define.
7767
7768 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7769
7770 PR target/40671
7771 * config/rs6000/rs6000.c (rs6000_override_options): Use
7772 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7773
7774 PR target/41145
7775 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7776 reporting of vector + decimal/boolean/complex error.
7777
7778 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7779
7780 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7781 __vector double TYPE_DECL.
7782
7783 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7784
7785 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7786 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7787 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7788 to pointer to enum machine_mode. Update all callers as needed.
7789
7790 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7791
7792 * config/alpha/alpha.md (exception_receiver): Emit alternative
7793 GP load sequence if flag_reorder_blocks_and_partition is set.
7794 (*exception_receiver_2): Also enable when
7795 flag_reorder_blocks_and_partition is set.
7796
7797 2009-08-20 Matt Rice <ratmice@gmail.com>
7798 Diego Novillo <dnovillo@google.com>
7799
7800 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7801 tree-ssa-sccvn.h.
7802
7803 2009-08-20 Richard Guenther <rguenther@suse.de>
7804
7805 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7806 * c-tree.h (c_dup_lang_specific_decl): Remove.
7807 (struct lang_decl, struct lang_type): Move definitions ...
7808 * c-lang.h: ... here. New file.
7809 * c-decl.c: Include c-lang.h.
7810 (c_dup_lang_specific_decl): Remove.
7811 * c-typeck.c: Include c-lang.h.
7812 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7813 (c-typeck.o): Likewise.
7814 * c-config-lang.in (gtfiles): Add c-lang.h.
7815 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7816 like c-tree.h.
7817
7818 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7819
7820 * config/alpha/alpha.c (alpha_end_function): Do not clear
7821 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7822 this is now handled in generic code.
7823
7824 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7825
7826 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7827 (s390_z10_fix_long_loop_prediction): New function.
7828 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7829 (s390_reorg): Walk over the INSNs and invoke
7830 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7831
7832 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7833
7834 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7835 "*brx_64bit", "*brx_31bit"): New patterns.
7836 * config/s390/s390.c ('E'): New output modifier.
7837
7838 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7839 Richard Earnshaw <richard.earnshaw@arm.com>
7840
7841 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7842 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7843
7844 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7845
7846 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7847 patterns.
7848 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7849 for mode mode of operand0 when doing secondary reload for SAR.
7850
7851 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7852
7853 PR middle-end/41123
7854 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7855 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7856
7857 2009-08-19 Jason Merrill <jason@redhat.com>
7858
7859 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7860 supported template depth in C++0x.
7861
7862 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7863
7864 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7865 free_after_compilation.
7866 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7867 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7868 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7869 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7870 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7871 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7872 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7873
7874 2009-08-19 Ian Lance Taylor <iant@google.com>
7875
7876 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7877 of (plus (mult (neg B) C) A).
7878
7879 2009-08-18 Michael Matz <matz@suse.de>
7880
7881 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7882 instead of comparing TYPE_MAIN_VARIANT for equality.
7883 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7884 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7885 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7886 * gimplify.c (goa_lhs_expr_p): Ditto and use
7887 STRIP_USELESS_TYPE_CONVERSION.
7888
7889 2009-08-18 Michael Matz <matz@suse.de>
7890
7891 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7892 first field in a struct.
7893 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7894
7895 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7896
7897 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7898 locators before emit_insn is called. Remove assert that
7899 cfun->is_thunk.
7900 (alpha_end_function): Clear crtl->emit structure and free insn
7901 locators if cfun->is_thunk is true.
7902
7903 2009-08-18 Jason Merrill <jason@redhat.com>
7904
7905 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7906 type if available.
7907 * configure.ac: Test for it.
7908 * configure, config.in: Regenerate.
7909 * doc/install.texi: Document --enable-gnu-unique-object.
7910
7911 2009-08-18 Richard Guenther <rguenther@suse.de>
7912
7913 PR middle-end/41094
7914 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7915 pow(x,y*z) only if x is nonnegative.
7916
7917 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7918
7919 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7920 on jumps.
7921
7922 PR target/40971
7923 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7924 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7925
7926 2009-08-17 DJ Delorie <dj@redhat.com>
7927
7928 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7929 * config/m32c/prologue.md (epilogue_freit): New.
7930 (fset_b): New.
7931 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7932 (bank_switch_p): Likewise.
7933 (fast_interrupt_p): Likewise.
7934 (interrupt_p): Likewise.
7935 (m32c_conditional_register_usage): Round memregs size up.
7936 (need_to_save): We only need to save $a0 when we use ENTER.
7937 (interrupt_p): Check for fast_interrupt too.
7938 (bank_switch_p): New.
7939 (fast_interrupt_p): New.
7940 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7941 (m32c_emit_prolog): Support bank switching and fast interrupts.
7942 * doc/extend.texi (Function Attributes): Add bank_switch and
7943 fast_interrupt.
7944
7945 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7946
7947 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7948 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7949
7950 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7951
7952 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7953 (menu): Add IA-64/VMS Options.
7954 (IA-64/VMS Options): Likewise.
7955
7956 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7957
7958 PR target/38599
7959 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7960
7961 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7962
7963 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7964 (mips_pop_asm_switch): Likewise.
7965 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7966 with...
7967 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7968 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7969 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7970 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7971 instead of set_noreorder.
7972 (mips_output_function_prologue): Use the new functions.
7973 (mips_output_function_epilogue): Likewise.
7974 (mips_need_noat_wrapper_p): New function, split out from...
7975 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7976 Use mips_push_asm_switch and mips_pop_asm_switch.
7977 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7978 and mips_pop_asm_switch.
7979 (ASM_OUTPUT_REG_POP): Likewise.
7980 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7981 Use mips_pop_asm_switch.
7982 (mips_asm_switch): New structure.
7983 (set_noreorder, set_nomacro): Replace with...
7984 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7985 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7986 instead of set_nomacro.
7987 (fix_truncsfsi2_macro): Likewise.
7988 (cprestore): Likewise.
7989 (hazard): Use mips_noreorder instead of set_noreorder.
7990 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7991
7992 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7993
7994 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7995 from prev_active_insn.
7996
7997 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7998
7999 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
8000 * config/avr/avr.c (avr_override_options): Initialize
8001 avr_current_arch variable.
8002 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
8003 __AVR_HAVE_16BIT_SP__ according to the device type.
8004 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
8005 TARGET_TINY_STACK.
8006 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
8007 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
8008
8009 2009-08-16 Dodji Seketeli <dodji@redhat.com>
8010
8011 PR debug/37801
8012 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
8013 generating inlined subroutine die only. We shouldn't be
8014 called for anything else.
8015 (gen_block_die): Don't generate inline subroutine debug info for
8016 abstract blocks.
8017
8018 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
8019
8020 * graphite-poly.c (print_pbb): Print PBB index.
8021
8022 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
8023
8024 PR middle-end/40981
8025 * graphite-interchange.c (ppl_max_for_le): Moved...
8026 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
8027 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
8028 ppl_Pointset_Powerset_C_Polyhedron_maximize.
8029 * graphite-ppl.h (ppl_max_for_le): Declared.
8030
8031 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
8032
8033 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
8034 supported on all platforms.
8035 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
8036 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
8037 * c-pragma.c: Likewise.
8038 * target-def.h (TARGET_INITIALIZER): Remove
8039 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8040 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8041
8042 2009-08-14 Douglas B Rupp <rupp@gnat.com>
8043
8044 * config/ia64/fde-vms.c: New file.
8045 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
8046 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
8047 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
8048 (uw_frame_state_for): Only register a personality routine if it is
8049 known to be compatible with our expectations.
8050 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
8051 Declare unw_table_entry stack variable and
8052 mod all calls to _Unwind_FindTableEntry to add arg.
8053 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
8054 (_Unwind_FindTableEntry): Add arg to prototype.
8055
8056 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
8057
8058 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
8059 field 'signal_pfs_loc'.
8060 (uw_frame_state_for): Remove duplicate code dealing with leaf
8061 procedures without unwind info.
8062 If in the frame after unwinding through a signal handler, restore
8063 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
8064 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
8065 'pfs_loc' to the AR.PFS location in the signal context; instead
8066 set 'signal_pfs_loc'.
8067 Manually generate the unwind info for the AR.PFS register.
8068 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
8069 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
8070 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
8071 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
8072 instead set 'signal_pfs_loc'.
8073 Remove code preventing the AR.PFS register from being restored
8074 from the signal context.
8075
8076 2009-08-14 Douglas B Rupp <rupp@gnat.com>
8077 Tristan Gingold <gingold@adacore.com>
8078
8079 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
8080 * config/ia64/t-vms: New file.
8081 * config/ia64/vms64.h: New file.
8082 * config/ia64/vms.h: New file.
8083 * config/ia64/vms-crtinit.asm: New file.
8084 * config/ia64/vms_symvec_libgcc_s.opt: New file.
8085 * config/ia64/vms-unwind.h: New file.
8086
8087 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8088
8089 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
8090 TFmode compares.
8091
8092 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8093
8094 PR middle-end/30789
8095 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
8096 Move declaration...
8097 * real.h (do_mpc_arg2): ... here.
8098 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
8099 and RDIV_EXPR.
8100
8101 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
8102
8103 * final.c (add_debug_prefix_map): Don't use GC memory for
8104 old_prefix and new_prefix.
8105
8106 2009-08-14 Richard Guenther <rguenther@suse.de>
8107
8108 * ipa-prop.c (compute_complex_pass_through): If we cannot
8109 compute a non-varying offset for IPA_JF_ANCESTOR punt.
8110
8111 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8112
8113 * c-lex.c (c_lex_with_flags): Increase size of local variable
8114 to avoid memory clobber.
8115
8116 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
8117
8118 PR target/40934
8119 * config/i386/i386.c (ix86_fp_comparison_strategy):
8120 Only enable/disable sahf at function granularity.
8121
8122 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
8123
8124 PR rtl-optimization/41064
8125 * reload1.c (reload_as_needed): Don't call extract_insn
8126 for known invalid replacements after calling
8127 validate_replace_rtx_group and verify_changes.
8128
8129 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8130
8131 PR target/41019
8132 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8133 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8134 ix86_expand_fp_vcond.
8135 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8136 Assert that operation is supported by ix86_expand_int_vcond.
8137 (vcondu<SSEMODE124C8:mode>): Ditto.
8138
8139 2009-08-13 DJ Delorie <dj@redhat.com>
8140
8141 * config/i386/djgpp-stdint.h: New.
8142 * config.gcc (djgpp): Use it.
8143
8144 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
8145
8146 * config/sh/sh.c (sh_override_options): When flag_exceptions or
8147 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8148
8149 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
8150
8151 * tree-ssa-loop-prefetch.c
8152 (prune_ref_by_group_reuse): Enhance probabilistic analysis
8153 for long-stride pruning.
8154 (compute_miss_rate): New function to compute the probability
8155 that two memory references access different cache lines.
8156
8157 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
8158
8159 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8160
8161 2009-08-13 Richard Guenther <rguenther@suse.de>
8162
8163 PR middle-end/41047
8164 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8165 use the constant pointer type.
8166 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8167 of CV qualifiers on the target pointer type.
8168 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8169 conversion check before restrict check.
8170
8171 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8172
8173 PR target/41029
8174 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8175
8176 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8177
8178 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8179
8180 2009-08-12 Richard Guenther <rguenther@suse.de>
8181
8182 PR tree-optimization/41011
8183 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8184 and reference constructing.
8185
8186 2009-08-12 Xinliang David Li <davidxl@google.com>
8187
8188 PR tree-optimization/41012
8189 * tree-flow.h : New external interface.
8190 * gimple-low.c (check_call_arg): Change to public function.
8191 Remove argument mismatch check in lowering.
8192 * tree-inline.h (tree_can_inline_p): Interface change.
8193 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8194 into this function.
8195 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8196 Call change to tree_can_inline_p function.
8197 (cgraph_decide_inlining_incrementally): Ditto.
8198
8199 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8200
8201 PR tree-optimization/41031
8202 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8203 on the partition variable rather than promote_mode on the source
8204 type. Assert that the partition variable's type has the same
8205 mode as the source value's.
8206
8207 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
8208
8209 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8210 for for_return == 2.
8211 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8212 comments.
8213 * calls.c (expand_call): Fix typo.
8214 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8215 and PARM_DECL.
8216 * stmt.c (expand_value_return): Use promote_function_mode to copy out
8217 of pseudo.
8218 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8219 * config/cris/cris.c (cris_promote_function_mode): Likewise.
8220 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8221 * config/pa/pa.c (pa_promote_function_mode): Likewise.
8222
8223 2009-08-12 Andrew Haley <aph@redhat.com>
8224
8225 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8226
8227 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8228
8229 PR bootstrap/40103
8230 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8231
8232 2009-08-12 Richard Guenther <rguenther@suse.de>
8233
8234 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8235 * gimplify.c (gimplify_modify_expr): Do not use
8236 lang_hooks.types_compatible_p.
8237 * tree-ssa.c (useless_type_conversion_p): For aggregates
8238 just return false if the canonical types differ.
8239
8240 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8241
8242 PR middle-end/40980
8243 * sese.c (convert_for_phi_arg): New.
8244 (add_guard_exit_phis): Use convert_for_phi_arg.
8245
8246 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8247
8248 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8249 unknown subscript upper bounds.
8250
8251 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8252 Pranav Garg <pranav.garg2107@gmail.com>
8253
8254 * graphite-interchange.c (gather_access_strides): Removed.
8255 (ppl_max_for_le): New.
8256 (build_linearized_memory_access): New.
8257 (memory_stride_in_loop): New.
8258 (pbb_interchange_profitable_p): Reimplemented.
8259 * graphite-ppl.h (ppl_new_id_map): New.
8260 (ppl_interchange): New.
8261
8262 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8263
8264 * graphite-interchange.c (compute_subscript): Removed.
8265 (compute_array_size_cstr): Removed.
8266 (compute_array_size_poly): Removed.
8267 (compute_array_size): Removed.
8268 (gather_access_strides_poly): Removed.
8269 (gather_access_strides): Empty.
8270
8271 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8272
8273 * graphite-dependences.c (dependence_polyhedron_1): Replace
8274 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8275 (graphite_legal_transform_dr): Same.
8276 (graphite_carried_dependence_level_k): Same.
8277 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8278 Initialize PDR_NB_SUBSCRIPTS.
8279 (print_pdr_access_layout): Replace pdr_nb_subscripts with
8280 PDR_NB_SUBSCRIPTS.
8281 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8282 (PDR_NB_SUBSCRIPTS): New.
8283 (pdr_nb_subscripts): Removed.
8284 (pdr_dim): Simplified.
8285 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8286 with PDR_NB_SUBSCRIPTS.
8287
8288 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8289
8290 * graphite-interchange.c (compute_array_size): Remove use of
8291 PDR_DATA_CONTAINER.
8292 * graphite-poly.c (new_poly_dr): Remove argument data_container.
8293 Do not initialize PDR_DATA_CONTAINER.
8294 (print_pdr): Do not print PDR_DATA_CONTAINER.
8295 * graphite-poly.h (struct poly_dr): Remove data_container field.
8296 (PDR_DATA_CONTAINER): Removed.
8297 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8298 PDR_DATA_CONTAINER.
8299 (build_poly_dr): Same.
8300
8301 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8302 Sebastian Pop <sebastian.pop@amd.com>
8303
8304 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8305 copy of the dependence polyhedron. Free the temporary objects.
8306 (graphite_carried_dependence_level_k): Free unused objects before
8307 returning.
8308
8309 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8310
8311 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8312 Early return without analyzing the data dependences if no
8313 transform has been done. Call restore_scattering if the transform
8314 is not legal.
8315 (graphite-interchange.c): Same.
8316 * graphite-poly.c (print_scattering_function): Test for
8317 PBB_TRANSFORMED.
8318 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8319 (apply_poly_transforms): Do not gcc_assert that
8320 the transform is legal.
8321 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8322 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8323 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8324 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8325 * graphite-poly.h (struct poly_scattering): New.
8326 (struct poly_bb): Add original, transformed, and saved fields.
8327 Remove transformed_scattering, original_scattering,
8328 nb_local_variables and nb_scattering_transform fields.
8329 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8330 (poly_scattering_new): New.
8331 (poly_scattering_free): New.
8332 (poly_scattering_copy): New.
8333 (store_scattering_pbb): New.
8334 (store_scattering): New.
8335 (restore_scattering_pbb): New.
8336 (restore_scattering): New.
8337 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8338 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8339
8340 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8341
8342 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8343 (print_scop): Same.
8344
8345 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8346
8347 * Makefile.in (graphite.o): Depends on PREDICT_H.
8348 * graphite.c: Include predict.h.
8349 (graphite_finalize): Call tree_estimate_probability.
8350 * predict.c (predict_loops): Do not call scev_initialize and
8351 scev_finalize.
8352 (tree_estimate_probability_bb): New.
8353 (tree_estimate_probability): Do not initialize loops: move that
8354 code to the driver. Call tree_estimate_probability_bb.
8355 (tree_estimate_probability_driver): New.
8356 (pass_profile): Use tree_estimate_probability_driver.
8357 * predict.h (tree_estimate_probability): Declared.
8358
8359 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8360
8361 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8362 * graphite-dependences.c (graphite_legal_transform): Add time to
8363 TV_GRAPHITE_DATA_DEPS.
8364 (dependency_between_pbbs_p): Same.
8365 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8366
8367 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8368
8369 PR rtl-optimization/41033
8370 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8371 aliasing is disabled.
8372
8373 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8374
8375 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8376 si_mask_operand, and_load_operand, low_bitmask_operand,
8377 and_reg_operand, and_operand): New predicates.
8378 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8379 * config/mips/mips.c (and_operands_ok): New function.
8380 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8381 * config/mips/mips.md (move_type): Add ext_ins and logical.
8382 (type): Handle them.
8383 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8384 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8385 shift_shift. Remove commutative constraint modifier.
8386 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8387 shift_shift.
8388 (*clear_upper32_dext): Remove define_insn_and_split.
8389 (*clear_upper32): Turn this define_insn_and_split ...
8390 (splitter for ANDing register with 0xffff_ffff): .. into this.
8391
8392 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8393
8394 * combine.c (try_widen_shift_mode): Factor out code to check if an
8395 integer constant is a low-order bitmask from here ...
8396 * rtlanal.c (low_bitmask_len): ... to here.
8397 * rtl.h (low_bitmask_len): Declare.
8398
8399 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8400
8401 PR target/8603
8402 * config/alpha/alpha.md (addsi3): Remove expander.
8403 (addsi3): Rename from *addsi3_internal insn pattern.
8404 (subsi3): Remove expander.
8405 (subsi3): Rename from *subsi3_internal insn pattern.
8406
8407 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8408
8409 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8410 FWRITE_UNLOCKED.
8411
8412 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8413 Eric Botcazou <botcazou@adacore.com>
8414 Douglas B Rupp <rupp@gnat.com>
8415
8416 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8417 that records that fit in 64 bits are returned by immediate value,
8418 as required by OpenVMS Calling Standard.
8419 (function_value): Adjust for above modification.
8420 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8421 virtual_incoming_args_rtx as base object, not next_arg.
8422 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8423
8424 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8425
8426 * reload.c (find_reloads_subreg_address): Check the original
8427 req_equiv_mem address to detect the case where an address is
8428 not valid in the outer mode.
8429
8430 2009-08-11 Richard Guenther <rguenther@suse.de>
8431
8432 PR bootstrap/40788
8433 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8434
8435 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8436
8437 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8438 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8439
8440 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8441 Douglas B Rupp <rupp@gnat.com>
8442
8443 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8444 PT_STACK when frame_pointer_needed on OpenVMS.
8445 (alpha_pv_save_size, alpha_using_fp): Remove.
8446 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8447 with proper processing for PT_NULL.
8448 (alpha_vms_initial_elimination_offset): New function. Support for
8449 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8450 (alpha_sa_size): Force procedure type to PT_STACK when
8451 frame_pointer_needed on OpenVMS.
8452 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8453 (alpha_using_fp): Likewise.
8454 (alpha_vms_can_eliminate): Add prototype.
8455 (alpha_vms_initial_elimination_offset): Likewise.
8456 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8457 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8458
8459 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8460 Douglas B Rupp <rupp@gnat.com>
8461
8462 * config/alpha/alpha.c (common_object_handler): New function.
8463 (vms_attribute_table): Declare a single attribute "common_object".
8464 (vms_output_aligned_decl_common): New global function.
8465 (SECTION_VMS_OVERLAY): Delete.
8466 (SECTION_VMS_GLOBAL): Likewise.
8467 (SECTION_VMS_INITIALIZE): Likewise.
8468 (vms_asm_named_section): Remove support for above flags.
8469 (vms_section_type_flags): Delete.
8470 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8471 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8472 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8473 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8474
8475 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8476
8477 PR target/41015
8478 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8479 (sub_ddmmss): Likewise.
8480
8481 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8482
8483 PR bootstrap/41018
8484 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8485 year.
8486
8487 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8488
8489 PR target/37053
8490 * reload1.c (reload_as_needed): Use cancel_changes to completely
8491 undo a failed replacement attempt.
8492
8493 2009-08-10 Richard Guenther <rguenther@suse.de>
8494
8495 PR middle-end/41006
8496 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8497 (useless_type_conversion_p): ... here. Require pointer targets
8498 to be compatible.
8499
8500 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8501
8502 PR c++/40866
8503 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8504 loose the original type of the statement list.
8505
8506 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8507
8508 * config/alpha/alpha.c: Include libfuncs.h
8509 (avms_asm_output_extern): New function.
8510 (alpha_init_libfuncs): Init some decc libfuncs.
8511 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8512 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8513 (DO_CRTL_NAMES): Define.
8514 (LIB_SPEC): Remove.
8515 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
8516 (LONG_TYPE_SIZE): Define.
8517 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8518 (SUBTARGET_SWITCHES): Define malloc64 switch.
8519 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8520 (MASK_RETURN_ADDR): Define.
8521 doc/invoke.texi (mmalloc64): Document switch.
8522
8523 2009-08-09 Olivier Hainque <hainque@adacore.com>
8524 Douglas B Rupp <rupp@gnat.com>
8525
8526 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8527 uses_condition_handler.
8528 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8529 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8530 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8531 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8532 (code_for_builtin): New insn codes for the new alpha_builtins.
8533 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8534 (alpha_sa_size): Account for uses_condition_handler.
8535 (alpha_expand_prologue): Likewise.
8536 (alpha_start_function): Likewise.
8537 (alpha_expand_epilogue): Likewise.
8538 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8539 establish/revert expanders.
8540 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8541 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8542 New expander, resorting to the alpha.c associated function.
8543 (builtin_revert_vms_condition_handler): Likewise.
8544 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8545 __gcc_shell_handler, the static VMS condition handler used as
8546 an indirection wrapper to the current dynamically established
8547 handler.
8548 * config/alpha/vms-unwind.h: Complete rewrite.
8549 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8550 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8551
8552 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8553 Douglas B Rupp <rupp@gnat.com>
8554
8555 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8556 (alpha_need_linkage): Handle aliases. Return function symbol.
8557 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8558 Use ultimate alias target for the linkage name.
8559 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8560 by alpha_need_linkage for the function symbol.
8561 (setmemdi): Likewise.
8562
8563 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8564
8565 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8566 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8567 (ASM_WEAKEN_LABEL): Define.
8568 (CRT_CALL_STATIC_FUNCTION): Define.
8569 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8570 (ENDFILE_SPEC): Define.
8571 (INIT_SECTION_ASM_OP): Define.
8572 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8573 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8574 crtend.o crtendS.o.
8575 (MULTILIB_OSDIRNAMES): Define.
8576 (shlib_version): Define.
8577 (SHLIB_EXT): Define.
8578 (SHLIB_OBJS): Define.
8579 (SHLIB_NAME): Define.
8580 (SHLIB_MULTILIB): Define.
8581 (SHLIB_INSTALL): Define.
8582 (SHLIB_SYMVEC): Define.
8583 (SHLIB_SYMVECX2): Define.
8584 (SHLIB_LINK): Define.
8585
8586 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8587
8588 * config/alpha/alpha.c (alpha_initialize_trampoline):
8589 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8590 (alpha_start_function): Emit transfer address on nested functions
8591 for VMS trampoline call.
8592 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8593 since no longer used.
8594 * config/alpha/vms-tramp.asm: Remove.
8595 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8596 since now only data initialized at runtime.
8597
8598 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8599
8600 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8601 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8602 (MD_EXEC_PREFIX): Remove, no longer used.
8603 (MD_STARTFILE_PREFIX): Likewise.
8604 (INCLUDE_DEFAULTS): Likewise.
8605 * config/alpha/t-vms:
8606 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8607
8608 2009-08-09 Richard Guenther <rguenther@suse.de>
8609
8610 PR tree-optimization/41016
8611 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8612 (operand_precision): Remove.
8613 (integral_operand_p): Likewise.
8614 (recognize_single_bit_test): Adjust.
8615
8616 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8617
8618 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8619 operation overflows. Likewise non-cast unary arithmetic.
8620 If one arm of a conditional expression is always taken,
8621 inhibit evaluation warnings for the other arm. Likewise inhibit
8622 evaluation warnings for the second && or || operand if the first
8623 operand is enough to determine the result.
8624 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8625 rules here.
8626 (build_binary_op): Prevent duplicate evaluation warnings.
8627
8628 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8629
8630 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8631 and destination have different modes, Use promote_mode to
8632 determine the signedness of the conversion. Assert that the
8633 promoted source mode matches the destination mode. Don't pass
8634 the destination and destination mode to expand_expr if the source
8635 mode is different. Simplify conversion logic.
8636
8637 2009-08-09 Ira Rosen <irar@il.ibm.com>
8638
8639 PR tree-optimization/41008
8640 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8641 from condition only in case it's a comparison. Adjust checks.
8642
8643 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8644
8645 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8646 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8647 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8648 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8649 (dump_cand): Handle them.
8650 (struct iv_cand): New members COST_STEP and AINC_USE.
8651 (stmt_after_increment): Likewise.
8652 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8653 callers changed. Use gimple_uid comparison instead of scanning.
8654 (add_candidate_1): When looking for identical candidates, take
8655 AINC_USE into account. Set it for new candidates.
8656 (force_expr_to_var_cost): Cast target_spill_cost to int.
8657 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8658 All callers changed. Check for availability of autoinc addressing
8659 modes, both in general for a given mode, and in the specific use case.
8660 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8661 changed.
8662 (get_computation_cost): Likewise.
8663 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8664 add_autoinc_candidates): New static functions.
8665 (add_candidate): Call add_autoinc_candidates for candidates based on
8666 a USE_ADDRESS use.
8667 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8668 (determine_use_iv_cost_address): If we have an autoinc candidate at
8669 the matching use, verify autoinc is possible and subtract the cost
8670 of the candidate's step from the cost.
8671 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8672 member of the candidate.
8673 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8674 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8675
8676 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8677
8678 * config.build (ia64-hp-*vms*): New target.
8679 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8680 with ia64-hp-*vms*.
8681 * config.gcc (ia64-hp-*vms*): New target.
8682 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8683 with ia64-hp-*vms*.
8684 * config.host (ia64-hp-*vms*): New target.
8685 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8686 with ia64-hp-*vms*.
8687
8688 2009-08-08 Richard Guenther <rguenther@suse.de>
8689
8690 PR tree-optimization/40991
8691 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8692
8693 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8694
8695 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8696 mode check. Do truncations in an integer mode.
8697 (force_to_mode): Handle subregs for all mode types. Only do
8698 arithmetic simplifications on integer modes.
8699
8700 2009-08-07 Richard Guenther <rguenther@suse.de>
8701
8702 PR tree-optimization/40999
8703 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8704 (maybe_fold_reference): Lookup constant initializers.
8705 (fold_gimple_assign): Likewise.
8706
8707 2009-08-07 Richard Guenther <rguenther@suse.de>
8708
8709 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8710 that require structural equality defer to the langhook.
8711
8712 2009-08-07 Martin Jambor <mjambor@suse.cz>
8713
8714 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8715 comments.
8716 (struct ipa_pass_through_data): New type.
8717 (struct ipa_ancestor_jf_data): New type.
8718 (union jump_func_value): Removed field formal_id, added fields
8719 pass_through and ancestor.
8720 (struct ipa_param_call_note): Changed type of formal_id to int from
8721 unsigned.
8722 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8723 operations jump functions and ancestor jump functions.
8724 (compute_complex_pass_through): New function.
8725 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8726 reflect changes in the jump function strucutre.
8727 (update_jump_functions_after_inlining): Ignore complex pass-through
8728 and ancestor jump functions.
8729 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8730 polynomial pass-through with operation jump functions.
8731
8732 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8733
8734 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8735 fde->dw_fde_begin as begin label instead of hot/cold label.
8736 Use LLSDAC label instead of LLSDA for second section lsda.
8737 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8738 label instead of LLSDA if it is true.
8739 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8740 callers.
8741 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8742 SECTION argument. Use it as index into crtl->eh.call_site_record
8743 array.
8744 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8745 use it to determine how to print table entries instead of using
8746 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8747 label instead of normal begin label as base.
8748 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8749 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8750 ensure no EH range spans between sections and that landing pads
8751 are always in the corresponding section.
8752 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8753 for crtl->eh.call_site_record being an array rather than scalar.
8754 (output_one_function_exception_table): New function, copied
8755 from output_function_exception_table. Adjust
8756 dw2_size_of_call_site_table, dw2_output_call_site_table
8757 callers. For SECOND section use *C suffixed labels.
8758 (output_function_exception_table): Call
8759 output_one_function_exception_table and, when doing hot/cold
8760 partitioning, also another time for the second section.
8761 * opts.c: Include except.h.
8762 (decode_options): Allow -freorder-blocks-and-partition with
8763 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8764 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8765 * function.h (struct rtl_eh): Change call_site_record from
8766 scalar into array of 2 elements.
8767
8768 2009-08-07 Martin Jambor <mjambor@suse.cz>
8769
8770 * ipa-prop.c (count_formal_params_1): New function.
8771 (ipa_get_vector_of_formal_parms): New function.
8772 (get_vector_of_formal_parm_types): New function.
8773 (ipa_modify_formal_parameters): New function.
8774 (ipa_modify_call_arguments): New function.
8775 (index_in_adjustments_multiple_times_p): New function.
8776 (ipa_combine_adjustments): New function.
8777 (ipa_dump_param_adjustments): New function.
8778 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8779 (ipa_get_vector_of_formal_parms): Declare.
8780 (ipa_modify_formal_parameters): Declare.
8781 (ipa_modify_call_arguments): Declare.
8782 (ipa_combine_adjustments): Declare.
8783 (ipa_dump_param_adjustments): Declare.
8784 (build_ref_for_offset): Declare.
8785 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8786 * tree-sra.c: Include ipa-prop.c.
8787 (build_ref_for_offset): Make public.
8788
8789 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8790
8791 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8792
8793 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8794
8795 * gcc/doc/extend.texi (__builtin_extract_return_address)
8796 (__builtin_frob_return_address): Document.
8797
8798 2009-08-06 Paul Brook <paul@codesourcery.com>
8799
8800 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8801 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8802 implementation on ARMv6-M.
8803
8804 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8805
8806 * doc/extend.texi (pcs): Document new attribute for ARM.
8807
8808 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8809
8810 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8811 variants.
8812
8813 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8814
8815 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8816 warning ().
8817
8818 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8819
8820 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8821
8822 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8823
8824 Merge ARM/hard_vfp_branch to trunk.
8825
8826 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8827
8828 * arm.c (libcall_eq): New function.
8829 (libcall_hash): New function.
8830 (add_libcall): New function.
8831 (arm_libcall_uses_aapcs_base): New function.
8832 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8833 libcalls using the base PCS.
8834 (arm_init_cumulative_args): Likewise.
8835
8836 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8837
8838 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8839 Use base ABI for conversion libfuncs between HFmode and SFmode.
8840
8841 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8842
8843 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8844 V4SImode as representatives of all 64-bit and 128-bit vector
8845 types. Allow vector types without vector modes.
8846 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8847 without vector modes like BLKmode.
8848 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8849 BLKmode. Avoid unsupported vector modes or TImode moves for
8850 non-TARGET_NEON.
8851 (aapcs_vfp_allocate_return_reg): Likewise.
8852 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8853 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8854
8855 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8856
8857 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8858 (arm_get_pcs_model): Pass attribute arguments to
8859 arm_pcs_from_attribute.
8860 (arm_init_cumulative_args): Use base AAPCS for conversions from
8861 floating-point types to DImode.
8862 (arm_attribute_table): Add pcs attribute.
8863 (arm_handle_pcs_attribute): New.
8864 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8865 conversions from floating-point types to DImode, also declare them
8866 to use base AAPCS and declare functions they call to use base
8867 AAPCS and their RTABI names.
8868
8869 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8870
8871 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8872 -mfloat-abi=hard not being supported for VFP.
8873
8874 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8875
8876 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8877 SYMBOL_REF to hard_libcall_value.
8878
8879 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8880 Richard Earnshaw <rearnsha@arm.com>
8881
8882 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8883 has been put on the stack, all remaining co-processory arguments for
8884 that co-processor also go on the stack.
8885
8886 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8887
8888 * config/arm/arm.c (arm_return_in_memory): Handle returning
8889 vectors of suitable size in registers also for AAPCS case.
8890
8891 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8892
8893 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8894
8895 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8896
8897 ARM Hard-VFP calling convention
8898 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8899 * target.h (gcc_target): Add libcall_value to table of call hooks.
8900 * targhooks.h (default_libcall_value): Default implementation.
8901 * targhooks.c (default_libcall_value): Likewise.
8902 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8903 * optabs.c (expand_unop): Use it.
8904 * expr.h (hard_libcall_value): Pass the function RTX through.
8905 * calls.c (emit_library_call_value_1): Update call to
8906 hard_libcall_value.
8907 * explow.c (hard_libcall_value): Use new target hook.
8908 * testsuite/lib/target-supports.exp
8909 (check_effective_target_arm_hard_vfp_ok): New hook.
8910 (check_effective_target_arm_neon_ok): Improve test for neon
8911 availability.
8912 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8913 * config/arm/arm.c: Include cgraph.h
8914 (TARGET_FUNCTION_VALUE): Override default hook.
8915 (arm_pcs_default): New variable.
8916 (arm_override_options): Don't fault hard calling convention with VFP.
8917 Add support for AAPCS variants.
8918 (arm_function_value): Make static. Handle AAPCS variants.
8919 (arm_libcall_value): New function.
8920 (arm_apply_result_size): Handle VFP registers in results.
8921 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8922 conventions.
8923 (pcs_attribute_args): New variable.
8924 (arm_pcs_from_attribute): New function.
8925 (arm_get_pcs_model): New function.
8926 (aapcs_vfp_cum_init): New function.
8927 (aapcs_vfp_sub_candidate): New function.
8928 (aapcs_vfp_is_return_candidate): New function.
8929 (aapcs_vfp_is_call_candidate): New function.
8930 (aapcs_vfp_allocate): New function.
8931 (aapcs_vfp_allocate_return_reg): New function.
8932 (aapcs_vfp_advance): New function.
8933 (aapcs_cp_arg_layout): New variable.
8934 (aapcs_select_call_coproc): New function.
8935 (aapcs_select_return_coproc): New function.
8936 (aapcs_allocate_return_reg): New function.
8937 (aapcs_libcall_value): New function.
8938 (aapcs_layout_arg): New function.
8939 (arm_init_cumulative_args): Initialize AAPCS args data.
8940 (arm_function_arg): Handle AAPCS variants using new interface.
8941 (arm_arg_parital_bytes): Likewise.
8942 (arm_function_arg_advance): New function.
8943 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8944 calling conventions.
8945 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8946 * arm.h (NUM_VFP_ARG_REGS): Define.
8947 (LIBCALL_VALUE): Update.
8948 (FUNCTION_VALUE): Delete.
8949 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8950 (arm_pcs): New enum.
8951 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8952 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8953 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8954 * arm-protos.h (arm_function_arg_advance): Add.
8955 (aapcs_libcall_value): Add.
8956 (arm_function_value): Delete.
8957
8958 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8959 H.J. Lu <hongjiu.lu@intel.com>
8960
8961 PR target/40957
8962 * config/i386/i386.c (standard_sse_mode_p): Remove.
8963 (standard_sse_constant_p): Return 2 for integer mode
8964 vector_all_ones_operand when SSE2 is enabled.
8965 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8966 (ix86_expand_vector_move): Do not check for negative values from
8967 standard_sse_constant_p.
8968
8969 2009-08-06 Richard Guenther <rguenther@suse.de>
8970
8971 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8972 array type comparisons frontend independent.
8973 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8974 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8975 out array reference lower bound and element size operands.
8976 (ao_ref_init_from_vn_reference): Properly compute the offset
8977 for ARRAY_RANGE_REF.
8978 (vn_reference_fold_indirect): Fill out array reference lower
8979 bound and element size operands.
8980 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8981 a non gimple valued reference operand which can happen for
8982 array reference lower bound or element size.
8983 (create_component_ref_by_pieces_1): Properly generate the
8984 element size operand for array references.
8985
8986 2009-08-06 Richard Guenther <rguenther@suse.de>
8987
8988 PR tree-optimization/40964
8989 * tree.c (iterative_hash_host_wide_int): Export.
8990 * tree.h (iterative_hash_host_wide_int): Declare.
8991 * tree-ssa-structalias.c (heapvar_map): New struct.
8992 (heapvar_map_eq): New function.
8993 (heapvar_map_hash): Likewise.
8994 (heapvar_lookup): Adjust.
8995 (heapvar_insert): Likewise.
8996 (make_constraint_from_heapvar): Allow multiple heap variables
8997 per decl at different offsets.
8998 (init_alias_heapvars): Adjust.
8999
9000 2009-08-04 David Daney <ddaney@caviumnetworks.com>
9001
9002 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
9003 * mips_output_sync_loop (mips_output_sync_loop): Only emit
9004 trailing sync if TARGET_SYNC_AFTER_SC.
9005
9006 2009-08-05 David Daney <ddaney@caviumnetworks.com>
9007
9008 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
9009 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
9010 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
9011 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
9012 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
9013 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
9014 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
9015 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
9016 test_and_set_12): Rewrite calls to mips_output_sync_loop.
9017 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
9018 the prototype declaration match the definition.
9019 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
9020 instructions explicitly. Add barrier_before and operands
9021 parameters.
9022 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
9023 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
9024 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
9025 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
9026 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
9027 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
9028
9029 2009-08-05 Andrew Pinski <pinskia@gmail.com>
9030
9031 * tree-ssa-alias.c: Fix intervals to use [) syntax.
9032
9033 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
9034 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
9035
9036 PR target/40906
9037 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
9038 source operand.
9039
9040 2009-08-05 Jakub Jelinek <jakub@redhat.com>
9041
9042 PR rtl-optimization/40924
9043 * dse.c (canon_address): Before calling cselib_expand_value_rtx
9044 make sure canon_rtx (mem_address) isn't simpler than
9045 canon_rtx (expanded_mem_address).
9046
9047 2009-08-05 Li Feng <nemokingdom@gmail.com>
9048
9049 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
9050 for each poly_bb_p.
9051 (build_scop_drs): Build alias set for each SCoP.
9052
9053 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
9054
9055 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
9056 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
9057 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
9058 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9059 (BASE_DRIVER_SELF_SPECS): Likewise.
9060
9061 2009-08-04 Andrew Pinski <pinskia@gmail.com>
9062
9063 * tree-ssa-alias.c: Fix some comment typos.
9064
9065 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
9066
9067 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
9068 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
9069
9070 2009-08-03 Janis Johnson <janis187@us.ibm.com>
9071
9072 PR c/39902
9073 * simplify-rtx.c (simplify_binary_operation_1): Disable
9074 simplifications for decimal float operations.
9075
9076 2009-08-03 Jakub Jelinek <jakub@redhat.com>
9077
9078 PR middle-end/40943
9079 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
9080 operand of INDIRECT_REF.
9081
9082 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
9083
9084 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
9085 constants referencing TLS symbols.
9086
9087 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9088
9089 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
9090 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
9091
9092 2009-08-03 Richard Guenther <rguenther@suse.de>
9093
9094 * tree.c (make_vector_type): Build a main variant first,
9095 get the canonical one and then build the variant.
9096 * tree-ssa.c (useless_type_conversion_p_1): Handle
9097 fixed-point types.
9098 (useless_type_conversion_p): Conversions to pointers to
9099 incomplete record types are useless.
9100
9101 2009-08-03 Richard Guenther <rguenther@suse.de>
9102
9103 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
9104 file will be created.
9105 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
9106 * toplev.c (compile_file): Adjust comment.
9107
9108 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
9109
9110 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
9111 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
9112 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9113 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9114 (sh_promote_function_mode): Fix typo.
9115
9116 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
9117
9118 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9119
9120 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9121
9122 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9123 declaration arguments.
9124
9125 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
9126
9127 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9128 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9129 (ix86_split_ashl): Ditto.
9130 (ix86_expand_vector_init_one_nonzero): Ditto.
9131 (ix86_expand_vector_set): Ditto.
9132 (ix86_expand_reduc_v4sf): Ditto.
9133
9134 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9135
9136 * explow.c (promote_function_mode): Remove assert.
9137 * config/sh/sh.c (sh_promote_function_mode): Declare.
9138
9139 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9140
9141 * config/pa/pa.c (pa_promote_function_mode): Declare.
9142 Change to static. Fix promote_mode call.
9143
9144 * gthr-dce.h (CONST_CAST2): Define if not defined.
9145 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9146
9147 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9148
9149 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
9150
9151 * expr.c (store_constructor): Use promote_decl_mode. Remove
9152 now write-only variable unsignedp.
9153 (expand_expr_real_1): Use promote_decl_mode.
9154 * expr.h (promote_function_mode, promote_decl_mode): New.
9155 (promote_mode): Remove last argument.
9156 * function.c (assign_temp): Drop last argument of promote_mode.
9157 (assign_parm_find_data_types): Use promote_function_mode.
9158 (assign_parm_setup_reg): Likewise.
9159 (expand_function_end): Use promote_function_mode.
9160 * calls.c (initialize_argument_information): Use promote_function_mode.
9161 (precompute_arguments): Use promote_mode instead of checking if
9162 only PROMOTE_FUNCTION_MODE is defined.
9163 (expand_call): When making sibcall decisions, use promote_function_mode.
9164 Below, remove an if for targetm.calls.promote_function_return and
9165 and use promote_function_mode.
9166 (emit_library_call_value_1): Use promote_function_mode, fix bug
9167 where promote_mode was passed FOR_CALL == 0 for a return value in an
9168 assertion.
9169 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9170 * explow.c (promote_function_mode, promote_decl_mode): New.
9171 (promote_mode): Keep only the FOR_CALL == 0 case.
9172 * combine.c (setup_incoming_promotion): Remove test of
9173 promote_function_args. Use promote_function_mode.
9174 * stmt.c (expand_value_return): Use promote_decl_mode.
9175 (expand_decl): Use promote_decl_mode.
9176
9177 * expr.c (store_constructor): Use promote_decl_mode. Remove
9178 now write-only variable unsignedp.
9179 (expand_expr_real_1): Use promote_decl_mode.
9180 * expr.h (promote_function_mode, promote_decl_mode): New.
9181 (promote_mode): Remove last argument.
9182 * function.c (assign_temp): Drop last argument of promote_mode.
9183 (assign_parm_find_data_types): Use promote_function_mode.
9184 (assign_parm_setup_reg): Likewise.
9185 (expand_function_end): Use promote_function_mode.
9186 * calls.c (initialize_argument_information): Use promote_function_mode.
9187 (precompute_arguments): Use promote_mode instead of checking if
9188 only PROMOTE_FUNCTION_MODE is defined.
9189 (expand_call): When making sibcall decisions, use promote_function_mode.
9190 Below, remove an if for targetm.calls.promote_function_return and
9191 and use promote_function_mode.
9192 (emit_library_call_value_1): Use promote_function_mode, fix bug
9193 where promote_mode was passed FOR_CALL == 0 for a return value in an
9194 assertion.
9195 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9196 * explow.c (promote_function_mode, promote_decl_mode): New.
9197 (promote_mode): Keep only the FOR_CALL == 0 case.
9198 * combine.c (setup_incoming_promotion): Remove test of
9199 promote_function_args. Use promote_function_mode.
9200 * stmt.c (expand_value_return): Use promote_decl_mode.
9201 (expand_decl): Use promote_decl_mode.
9202
9203 * explow.c (promote_function_mode): Just call the target hook.
9204 * targhooks.c (default_promote_function_mode,
9205 default_promote_function_mode_always_promote): New.
9206 * targhooks.h (default_promote_function_mode,
9207 default_promote_function_mode_always_promote): Declare.
9208 * target.h (promote_function_args, promote_function_return): Remove.
9209 (promote_function_mode): New.
9210 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9211 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9212 (TARGET_PROMOTE_FUNCTION_MODE): New.
9213 (TARGET_CALLS): Adjust.
9214 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9215 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9216
9217 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9218 * config/s390/s390.c (s390_promote_function_mode): ... here,
9219 with pointer handling.
9220 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9221 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9222
9223 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9224 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9225 with pointer handling.
9226 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9227 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9228
9229 * config/sh/sh-protos.h (sh_promote_function_mode): New.
9230 * config/sh/sh.c (sh_promote_function_mode): New.
9231 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9232 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9233
9234 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9235 * config/cris/cris.c (cris_promote_function_mode): ... here.
9236 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9237 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9238
9239 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9240 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9241 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9242 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9243
9244 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9245 * config/arm/arm.c (arm_promote_function_mode): ... here, without
9246 complex type handling.
9247 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9248 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9249
9250 * config/pa/pa.c (pa_promote_function_mode): New.
9251 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9252 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9253
9254 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9255 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9256 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9257 * config/xtensa/xtensa.c: Likewise.
9258 * config/stormy16/stormy16.c: Likewise.
9259 * config/iq2000/iq2000.c: Likewise.
9260 * config/rs6000/rs6000.c: Likewise.
9261 * config/picochip/picochip.c: Likewise.
9262 * config/arc/arc.c: Likewise.
9263 * config/mcore/mcore.c: Likewise.
9264 * config/score/score.c: Likewise.
9265 * config/mips/mips.c: Likewise.
9266 * config/bfin/bfin.c: Likewise.
9267 * config/ia64/ia64.c: Likewise (disabled though).
9268
9269 * config/frv/frv.h: Remove pointless remark.
9270
9271 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9272 TARGET_PROMOTE_FUNCTION_ARGS,
9273 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9274 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9275
9276 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
9277
9278 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9279 -floop-parallelize-all.
9280 * toplev.c (process_options): Rename flag_graphite_force_parallel to
9281 flag_loop_parallelize_all.
9282 * tree-ssa-loop.c (gate_graphite_transforms): Same.
9283 * graphite.c (graphite_transform_loops): Same.
9284 * common.opt: Same.
9285 * graphite-poly.c (apply_poly_transforms): Same.
9286
9287 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
9288
9289 PR tree-optimization/40914
9290 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9291 if set, then check the delta field of the PMF record.
9292 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9293 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9294 call is stored in the delta.
9295
9296 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
9297
9298 * config/mips/mips.md (*clear_upper32_dext): New pattern.
9299
9300 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
9301
9302 * config/i386/bsd.h (ASM_BYTE): New define.
9303 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9304 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9305 .byte. Use fputs or putc instead of fprintf where appropriate.
9306 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
9307 fputs or putc instead of fprintf where appropriate.
9308 * config/i386/i386elf.h: Ditto.
9309 * config/i386/sysv4.h: Ditto.
9310
9311 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9312 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9313 (*tls_global_dynamic_64): Ditto.
9314
9315 2009-07-31 Christian Bruel <christian.bruel@st.com>
9316
9317 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9318
9319 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9320
9321 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9322 Remove dead code for MINUS.
9323
9324 2009-07-31 Anthony Green <green@moxielogic.com>
9325
9326 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9327 $r12 in prologue.
9328 (moxie_expand_epilogue): Ditto for epilogue.
9329 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
9330 incoming arguments.
9331 (moxie_function_arg): Ditto.
9332 (moxie_pass_by_reference): Ditto.
9333 (moxie_arg_partial_bytes): Ditto.
9334 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9335 (FUNCTION_ARG_ADVANCE) Ditto.
9336 (REG_PARM_STACK_SPACE) Ditto.
9337 (FUNCTION_ARG_REGNO_P) Dito.
9338
9339 * config.gcc: Add moxie linux config support.
9340 * gcc/config/moxie/uclinux.h: New file.
9341
9342 2009-07-31 DJ Delorie <dj@redhat.com>
9343
9344 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9345 (UNSPECV_SP_SWITCH_E): New.
9346 (sp_switch_1): Change to an unspec.
9347 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9348 replace $r15.
9349 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9350 reference the new stack's address
9351
9352 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9353
9354 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9355 graphite-clast-to-gimple.o, graphite-dependences.o,
9356 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9357 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9358 (graphite-blocking.o,
9359 graphite-clast-to-gimple.o, graphite-dependences.o,
9360 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9361 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9362 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9363 * cfgloop.h (struct loop): Add can_be_parallel field.
9364 * common.opt (fgraphite-identity): Moved up.
9365 (fgraphite-force-parallel): New flag.
9366 * graphite.c: Rewrite.
9367 * graphite.h: Rewrite.
9368 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9369 after Graphite.
9370 * toplev.c (graphite_out_file): New file descriptor.
9371 (graphite_in_file): New.
9372 (process_options): flag_graphite_force_parallel cannot be used without
9373 Graphite.
9374 * tree-ssa-loop.c: Include toplev.h.
9375 (gate_graphite_transforms): Enable flag_graphite for
9376 flag_graphite_force_parallel.
9377
9378 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9379
9380 * ChangeLog.graphite: New.
9381 * graphite-blocking.c: New.
9382 * graphite-clast-to-gimple.c: New.
9383 * graphite-clast-to-gimple.h: New.
9384 * graphite-dependences.c: New.
9385 * graphite-dependences.h: New.
9386 * graphite-interchange.c: New.
9387 * graphite-poly.c: New.
9388 * graphite-poly.h: New.
9389 * graphite-ppl.c: New.
9390 * graphite-ppl.h: New.
9391 * graphite-scop-detection.c: New.
9392 * graphite-scop-detection.h: New.
9393 * graphite-sese-to-poly.c: New.
9394 * graphite-sese-to-poly.h: New.
9395 * sese.c: New.
9396 * sese.h: New.
9397
9398 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9399
9400 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9401 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9402
9403 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9404
9405 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9406 (scev_is_linear_expression): Return false if the evolution is not
9407 affine multivariate.
9408
9409 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9410
9411 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9412 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9413
9414 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9415
9416 * tree-data-ref.c (debug_data_references): New.
9417 (debug_data_reference): New.
9418 * tree-data-ref.h (debug_data_references): Declared.
9419 (debug_data_reference): Declared.
9420
9421 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9422
9423 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9424 * tree-data-ref.h (scop_p): Removed.
9425 (struct data_reference): Remove field scop.
9426 (DR_SCOP): Removed.
9427 (stmt_simple_memref_p): Removed.
9428
9429 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9430
9431 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9432 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9433 basic block empty.
9434
9435 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9436
9437 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9438
9439 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9440
9441 * doc/invoke.texi (-fgraphite-identity): Documented.
9442
9443 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9444
9445 * tree-scalar-evolution.c: Fix comment.
9446 (instantiate_scev_1): Return unknow from scev instantiation if the
9447 result is not above instantiate_below.
9448
9449 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9450
9451 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9452 static anymore. Instantiate the symbols that may have been introduced
9453 by chrec_apply.
9454 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9455 Declared.
9456
9457 2009-07-30 DJ Delorie <dj@redhat.com>
9458
9459 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9460 .vliw directive to VLIW sections.
9461
9462 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9463
9464 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9465 New variables.
9466 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9467 (AUTOHEADER): New variable.
9468 ($(srcdir)/cstamp-h.in): Use it.
9469
9470 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9471 Pat Haugen <pthaugen@us.ibm.com>
9472 Revital Eres <ERES@il.ibm.com>
9473
9474 * config/rs6000/vector.md (VEC_F): Add VSX support.
9475 (VEC_A): Ditto.
9476 (VEC_N): Ditto.
9477 (mov<mode>): Ditto.
9478 (vector_load_<mode>): Ditto.
9479 (vector_store_<mode>): Ditto.
9480 (vector GPR move split): Ditto.
9481 (vec_reload_and_plus_<mptrsize>): Ditto.
9482 (vec_reload_and_reg_<mptrsize>): Ditto.
9483 (add<mode>3): Ditto.
9484 (sub<mode>3): Ditto.
9485 (mul<mode>3): Ditto.
9486 (neg<mode>2): Ditto.
9487 (abs<mode>2): Ditto.
9488 (smin<mode>3): Ditto.
9489 (smax<mode>3): Ditto.
9490 (vector_eq<mode>): Ditto.
9491 (vector_gt<mode>): Ditto.
9492 (vector_ge<mode>): Ditto.
9493 (vector_gtu<mode>): Ditto.
9494 (vector_select_<mode>_uns): Ditto.
9495 (vector_eq_<mode>_p): Ditto.
9496 (vector_gt_<mode>_p): Ditto.
9497 (vector_ge_<mode>_p): Ditto.
9498 (vector_gtu_<mode>_p): Ditto.
9499 (cr6_test_for_zero): Ditto.
9500 (cr6_test_for_zero_reverse): Ditto.
9501 (cr6_test_for_lt): Ditto.
9502 (cr6_test_for_lt_reverse): Ditto.
9503 (xor<mode>3): Ditto.
9504 (ior<mode>3): Ditto.
9505 (and<mode>3): Ditto.
9506 (one_cmpl<mode>2): Ditto.
9507 (nor<mode>2): Ditto.
9508 (andc<mode>2): Ditto.
9509 (float<VEC_int<mode>2): Ditto.
9510 (unsigned_float<VEC_int><mode>2): Ditto.
9511 (fix_trunc<mode><VEC_int>2): Ditto.
9512 (fixuns_trunc<mode><VEC_int>2): Ditto.
9513 (vec_init<mode>):
9514 (vec_set<mode>): Ditto.
9515 (vec_extract<mode>): Ditto.
9516 (vec_interleave_highv4sf): Ditto.
9517 (vec_interleave_lowv4sf): Ditto.
9518 (vec_realign_load_<mode>): Ditto.
9519 (vec_shl_<mode>): Ditto.
9520 (vec_shr_<mode>): Ditto.
9521 (div<mode>3): New patterns for VSX.
9522 (vec_interleave_highv2df): Ditto.
9523 (vec_interleave_lowv2df): Ditto.
9524 (vec_pack_trunc_v2df): Ditto.
9525 (vec_pack_sfix_trunc_v2df): Ditto.
9526 (vec_pack_ufix_trunc_v2df): Ditto.
9527 (vec_unpacks_hi_v4sf): Ditto.
9528 (vec_unpacks_lo_v4sf): Ditto.
9529 (vec_unpacks_float_hi_v4si): Ditto.
9530 (vec_unpacks_float_lo_v4si): Ditto.
9531 (vec_unpacku_float_hi_v4si): Ditto.
9532 (vec_unpacku_float_lo_v4si): Ditto.
9533 (movmisalign<mode>): Ditto.
9534 (vector_ceil<mode>2): New patterns for vectorizing math library.
9535 (vector_floor<mode>2): Ditto.
9536 (vector_btrunc<mode>2): Ditto.
9537 (vector_copysign<mode>3): Ditto.
9538
9539 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9540 predicate for setting the high bit in each word, used for copysign.
9541
9542 * config/rs6000/ppc-asm.h (f19): Whitespace.
9543 (f32-f63): Define if VSX.
9544 (v0-v31): Define if Altivec.
9545 (vs0-vs63): Define if VSX.
9546
9547 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9548
9549 * config/rs6000/power7.md: New file, provide tuning parameters for
9550 -mcpu=power7.
9551
9552 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9553 (rs6000_cpu_cpp_builtins): Ditto.
9554 (altivec_overloaded_builtins): Ditto.
9555 (altivec_resolve_overloaded_builtin): Ditto.
9556
9557 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9558 debug switch to disable vectorizing simple math builtin
9559 functions.
9560
9561 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9562 Vectorize simple math builtin functions.
9563 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9564 hook to vectorize math builtins.
9565 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9566 (rs6000_builtin_conversion): Add VSX/power7 support.
9567 (rs6000_builtin_vec_perm): Ditto.
9568 (vsplits_constant): Add support for loading up a vector constant
9569 with just the high bit set in each part.
9570 (rs6000_expand_vector_init): Add VSX/power7 support.
9571 (rs6000_expand_vector_set): Ditto.
9572 (rs6000_expand_vector_extract): Ditto.
9573 (rs6000_emit_move): Ditto.
9574 (bdesc_3arg): Ditto.
9575 (bdesc_2arg): Ditto.
9576 (bdesc_1arg): Ditto.
9577 (rs6000_expand_ternop_builtin): Ditto.
9578 (altivec_expand_builtin): Ditto.
9579 (rs6000_expand_unop_builtin): Ditto.
9580 (rs6000_init_builtins): Ditto.
9581 (altivec_init_builtins): Ditto.
9582 (builtin_function_type): Ditto.
9583 (rs6000_common_init_builtins): Ditto.
9584 (rs6000_handle_altivec_attribute); Ditto.
9585 (rs6000_mangle_type): Ditto.
9586 (rs6000_vector_mode_supported_p): Ditto.
9587 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9588 are mode dependent.
9589
9590 * config/rs6000/vsx.md: New file for VSX support.
9591
9592 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9593 identifing values with just the most significant bit set.
9594 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9595 vectorized builtins.
9596
9597 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9598 (UNSPEC_VRFIM): Delete.
9599 (splitter for loading up vector with most significant bit): New
9600 splitter for vectorizing copysign.
9601 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9602 vectorizing simple math functions.
9603 (altivec_vrfip): Add support for vectorizing simple math functions.
9604 (altivec_vrfim): Ditto.
9605 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9606
9607 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9608 (power7.md, vsx.md): Include for power7 support.
9609 (copysigndf3): Use VSX instructions if -mvsx.
9610 (negdf2_fpr): Ditto.
9611 (absdf2_fpr): Ditto.
9612 (nabsdf2_fpr): Ditto.
9613 (adddf3_fpr): Ditto.
9614 (subdf3_fpr): Ditto.
9615 (muldf3_fpr): Ditto.
9616 (divdf3_fpr): Ditto.
9617 (fix_truncdfdi2_fpr): Ditto.
9618 (cmpdf_internal1): Ditto.
9619 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9620 (btruncdf2, btruncdf2_fpr): Ditto.
9621 (ceildf2, ceildf2_fpr): Ditto.
9622 (floordf2, floordf2_fpr): Ditto.
9623 (floatdidf2, floatdidf2_fpr): Ditto.
9624 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9625 (fmsubdf4_fpr): Ditto.
9626 (fnmadddf4_fpr_1): Ditto.
9627 (fnmadddf4_fpr_2): Ditto.
9628 (fnmsubdf4_fpr_1): Ditto.
9629 (fnmsubdf4_fpr_2): Ditto.
9630 (fixuns_truncdfdi2): Add expander for VSX support.
9631 (fix_truncdfdi2): Ditto.
9632 (fix_truncdfsi2): Ditto.
9633 (ftruncdf2): Ditto.
9634 (btruncsf2): Whitespace.
9635 (movdf_hardfloat32): Add support for VSX registers.
9636 (movdf_softfloat32): Ditto.
9637 (movdf_hardfloat64): Ditto.
9638 (movdf_hardfloat64_mfpgpr): Ditto.
9639 (movdf_softfloat64): Ditto.
9640 (movti splitters): Add check for vector registers supporting
9641 TImode in the future.
9642 (bpermd): Add power7 bpermd instruction.
9643
9644 * config/rs6000/altivec.h (vec_div): Define if VSX.
9645 (vec_mul): Ditto.
9646 (vec_msub): Ditto.
9647 (vec_nmadd): Ditto.
9648 (vec_nearbyint): Ditto.
9649 (vec_rint): Ditto.
9650 (vec_sqrt): Ditto.
9651 (all predicates): Use the generic builtin function, and not the V4SF
9652 specific function so that the predicates will work with VSX's V2DF.
9653 (vec_all_*): Ditto.
9654 (vec_any_*): Ditto.
9655
9656 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9657 Document new VSX functions and types.
9658
9659 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9660 switches.
9661
9662 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9663 "wa", and "j" constraints. Modify "v" to talk about Altivec
9664 instead of just vector.
9665
9666 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9667
9668 PR debug/26475
9669 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9670 location for phi arguments.
9671 (rewrite_update_phi_arguments): Find locations for reaching defs.
9672 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9673 Add location to add_phi_arg calls.
9674 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9675 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9676 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9677 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9678 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9679 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9680 * tree-phinodes.c (make_phi_node): Initialize location.
9681 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9682 (add_phi_arg): Add location parameter.
9683 (remove_phi_arg_num): Move location when moving phi argument.
9684 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9685 location.
9686 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9687 slpeel_update_phi_nodes_for_guard1,
9688 slpeel_update_phi_nodes_for_guard2,
9689 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9690 vect_loop_versioning): Set locations.
9691 * tree-parloops.c (create_phi_for_local_result,
9692 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9693 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9694 * tree-vect-loop.c (get_initial_def_for_induction,
9695 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9696 locations.
9697 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9698 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9699 (gimple_phi_arg_set_location): New. Set locus.
9700 (gimple_phi_arg_has_location): New. Check for locus.
9701 (redirect_edge_var_map_location): New. Return locus from var_map.
9702 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9703 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9704 combining PHI arguments.
9705 (cond_store_replacement): Set location.
9706 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9707 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9708 scop_add_exit_phis_edge): Add locations.
9709 * tree-cfgcleanup.c (remove_forwarder_block,
9710 remove_forwarder_block_with_phi): Add locations.
9711 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9712 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9713 locations.
9714 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9715 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9716 flush_pending_stmts): Add source location.
9717 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9718 stack to preserve locations.
9719 * tree-vect-stmts.c (vectorizable_load): Add location.
9720 * tree-inline.c (copy_phis_for_bb): Copy locus.
9721 (setup_one_parameter): Add call locus to inlined parameter stmts.
9722 (initialize_inlined_parameters): Pass in call location as parameter
9723 assignment locus.
9724 (tree_function_versioning): Pass location to setup_one_parameter.
9725 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9726 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9727 copy and edge lists.
9728 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9729 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9730 locus parameter and override the stmt default if provided.
9731 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9732 elim_graph_add_edge, elim_graph_remove_succ_edge,
9733 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9734 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9735 eliminate_phi): Add locus info in elimination graph for each edge and
9736 value copy.
9737 (insert_backedge_copies): Copy locus if present.
9738 * tree-flow.h (struct _edge_var_map): Add locus field.
9739 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9740 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9741 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9742 locations.
9743 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9744
9745 2009-07-30 Martin Jambor <mjambor@suse.cz>
9746
9747 PR tree-optimization/40570
9748 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9749 use inlining loops.
9750
9751 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9752
9753 * ssa-loop-manip.c: Include langhooks.h.
9754 (rewrite_phi_with_iv): New.
9755 (rewrite_all_phi_nodes_with_iv): New.
9756 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9757 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9758 * tree-parloops.c (loop_parallel_p): Move out all conditions
9759 except dependency check.
9760 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9761 (gen_parallel_loop): Call canonicalize_loop_ivs without
9762 reduction_list argument.
9763 (build_new_reduction): New.
9764 (gather_scalar_reductions): New.
9765 (try_get_loop_niter): New.
9766 (try_create_reduction_list): New.
9767 (parallleize_loops): Change the parallel conditions check.
9768 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9769 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9770
9771 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9772
9773 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9774 curly braces.
9775 * doc/options.texi (Option properties): Mention new quoting syntax.
9776
9777 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9778
9779 * config/alpha/alpha.c (alpha_start_function):
9780 Handle VMS_DEBUG_MAIN_POINTER
9781 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9782 * doc/invoke.texi: Document -mdebug-main switch.
9783
9784 2009-07-29 Richard Henderson <rth@redhat.com>
9785
9786 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9787 (cgraph_create_edge_including_clones): Likewise.
9788 * tree-inline.c (copy_bb): Operate on the correct edges
9789 when updating the callgraph.
9790
9791 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9792
9793 * config/alpha/vms-cc.c: Deleted.
9794 * config/alpha/vms-ld.c: Deleted.
9795 * config/alpha/t-vms64: Moved to config/vms
9796 * config/alpha/vms-crt0-64.c: Moved to config/vms
9797 * config/alpha/vms-crt0.c: Moved to config/vms
9798 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9799 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9800 * config/alpha/xm-vms.h: Moved to config/vms
9801 * config/alpha/x-vms: Moved to config/vms
9802 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9803 config/vms/t-vms.
9804 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9805 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9806 (version): Set.
9807 * config/vms/t-vms64: Moved here from config/alpha
9808 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9809 (argc,argv,envp): Enforce 32bit malloc'ing.
9810 * config/vms/vms-psxcrt0-64.c: Likewise.
9811 * config/vms/vms-crt0.c: Moved here from config/alpha.
9812 * config/vms/vms-psxcrt0.c: Likewise.
9813 * config/vms/vms-crtl-64.h: New file.
9814 * config/vms/vms-crtl.h: New file.
9815 * config/vms/vms.opt: New file.
9816 * config/vms/xm-vms64.h: New file.
9817 * config/vms/xm-vms.h: Moved here from config/alpha.
9818 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9819 Set.
9820 * config/vms/x-vms: Moved here from config/alpha.
9821 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9822 (vms-ld.o, vms-cc.o): Removed.
9823 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9824
9825 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9826
9827 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9828 correct stack (obvious VMS fix).
9829
9830 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9831
9832 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9833 date, version info if VMS_DEBUGGING_INFO defined.
9834 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9835 size, date calculating code moved here.
9836
9837 2009-07-29 Paul Brook <paul@codesourcery.com>
9838
9839 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9840 do_push/do_pop.
9841
9842 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9843
9844 PR target/40577
9845 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9846 to DImode when generating insq_le insn.
9847
9848 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9849
9850 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9851 New macro set for VMS_DEBUGGGING_INFO.
9852 (AT_string_form): Use it.
9853
9854 2009-07-28 DJ Delorie <dj@redhat.com>
9855
9856 * config/mep/mep.c (vtext_section): New.
9857 (vftext_section): New.
9858 (ftext_section): New.
9859 (mep_select_section): Add support for functions.
9860 (mep_unique_section): Likewise.
9861 (mep_asm_init_sections): Likewise.
9862 (mep_encode_section_info): Remove it from here.
9863
9864 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9865
9866 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9867
9868 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9869 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9870
9871 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9872
9873 * dwarf2out.c (output_file_names): Test new macro
9874 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9875 (add_comp_dir_attribute): Likewise.
9876
9877 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9878
9879 * config/i386/mingw-w64.h (LINK_SPEC): Add
9880 separating space between commands.
9881
9882 2009-07-28 Jan Hubicka <jh@suse.cz>
9883
9884 PR tree-optimization/40759
9885 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9886 for renaming.
9887
9888 2009-07-27 DJ Delorie <dj@redhat.com>
9889
9890 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9891 types are dword-aligned.
9892 (mep_expand_va_start): Likewise.
9893
9894 2009-07-27 Olivier Hainque <hainque@adacore.com>
9895 Douglas B Rupp <rupp@gnat.com>
9896
9897 * convert.c (convert_to_pointer): Don't assume the target
9898 pointer type is POINTER_SIZE long. Fetch its precision instead.
9899
9900 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9901
9902 * system.h (fopen): Undefine if macro.
9903
9904 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9905
9906 * dwarf2out.c (output_cfi_p): Removed.
9907 (output_cfis): New function.
9908 (output_fde): New function, split from output_call_frame_info.
9909 (output_call_frame_info): Use it.
9910 (dwarf2out_switch_text_section): Use output_cfis.
9911
9912 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9913
9914 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9915 TARGET_BI_ARCH is specified without enabling SJLJ.
9916 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9917 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9918
9919 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9920
9921 * arm.md (negdi2): Use DImode if forcing a value into a register.
9922
9923 2009-07-26 Ira Rosen <irar@il.ibm.com>
9924
9925 PR tree-optimization/40801
9926 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9927 of vector operand from the previous copy of vector statement.
9928 Pass the correct definition type value to
9929 vect_get_vec_def_for_stmt_copy().
9930
9931 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9932
9933 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9934 const char ** conversion.
9935
9936 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9937
9938 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9939 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9940 (gcc_unreachable): Invoke __builtin_unreachable() if
9941 !ENABLE_ASSERT_CHECKING.
9942
9943 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9944
9945 PR rtl-optimization/40445
9946 * emit-rtl.c (next_nonnote_insn_bb): New function.
9947 * rtl.h (next_nonnote_insn_bb): Declare new function.
9948 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9949 with no successors that is the successor of the ENTRY_BLOCK.
9950 Continue from the top after removing an empty fallthrough block.
9951 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9952 of next_nonnote_insn.
9953
9954 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9955
9956 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9957
9958 2009-07-25 Martin Jambor <mjambor@suse.cz>
9959
9960 * c-common.c (c_common_attribute_table): New element for noclone.
9961 (handle_noclone_attribute): New function. Forward-declare.
9962 * tree-inline.c (tree_versionable_function_p): Check for noclone
9963 attribute.
9964 * doc/extend.texi (Labels as Values): Document need for noclone.
9965 (Function Attributes): Document noclone attribute.
9966
9967 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9968
9969 PR rtl-optimization/34999
9970 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9971 and dw_fde_switched_cold_to_hot fields.
9972 (output_cfi_p): New function.
9973 (output_call_frame_info): If fde->dw_fde_switched_sections,
9974 output 2 FDEs instead of one with corrupted header.
9975 (dwarf2out_do_cfi_startproc): New function.
9976 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9977 and fde->dw_fde_switched_cold_to_hot.
9978 (dwarf2out_switch_text_section): Compute
9979 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9980 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9981 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9982 Otherwise, compute fde->dw_fde_switch_cfi.
9983
9984 2009-07-24 Cary Coutant <ccoutant@google.com>
9985
9986 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9987
9988 2009-07-24 Cary Coutant <ccoutant@google.com>
9989
9990 * cfghooks.c (split_block): Copy discriminator to new block.
9991 * tree-cfg.c (assign_discriminator): Check location of last
9992 instruction in block as well as first.
9993
9994 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9995
9996 * config/i386/linux.c: Use fputs or putc instead of fprintf
9997 where appropriate.
9998 * config/i386/gas.h: Ditto.
9999 * config/i386/x86-64.h: Ditto.
10000 * config/i386/att.h: Ditto.
10001
10002 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10003
10004 * expmed.c (emit_store_flag): Use a recursive call to optimize the
10005 xor case.
10006
10007 2009-07-24 Martin Jambor <mjambor@suse.cz>
10008
10009 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
10010 (ipa_push_func_to_list_1): Declare.
10011 (ipa_push_func_to_list): New function.
10012
10013 * ipa-prop.c (ipa_push_func_to_list_1): New function.
10014 (ipa_init_func_list): Call ipa_push_func_to_list_1.
10015 (ipa_push_func_to_list): Removed.
10016 (ipa_pop_func_from_list): Clear node_enqueued flag.
10017
10018 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
10019
10020 * config/s390/s390.c (override_options): Default
10021 max-unrolled-insns to 100 for z10 tuning.
10022
10023 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
10024
10025 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
10026 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
10027 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
10028 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
10029 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
10030 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
10031 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
10032
10033 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
10034
10035 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
10036 use default set in mingw32.h header.
10037 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
10038 64-bit /mingw/include path.
10039 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
10040 path.
10041
10042 2009-07-23 Neil Vachharajani <nvachhar@google.com>
10043
10044 PR rtl-optimization/40209
10045 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
10046
10047 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10048
10049 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
10050 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
10051 with the rest of string where appropriate. Use fputs or putc
10052 instead of fprintf where appropriate.
10053
10054 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
10055 Pat Haugen <pthaugen@us.ibm.com>
10056 Revital Eres <ERES@il.ibm.com>
10057
10058 * config/rs6000/vector.md: New file. Move most of the vector
10059 expander support here from altivec.md to allow for the VSX vector
10060 unit in the future. Add support for secondary_reload patterns.
10061 Rewrite the patterns for vector comparison, and vector comparison
10062 predicate instructions so that the RTL expresses the desired
10063 behavior, instead of using unspec.
10064
10065 * config/rs6000/constraints.md ("f" constraint): Use
10066 rs6000_constraints to hold the precalculated register class.
10067 ("d" constraint): Ditto.
10068 ("wd" constraint): New constraint for VSX.
10069 ("wf" constraint): Ditto.
10070 ("ws" constraint): Ditto.
10071 ("wa" constraint): Ditto.
10072 ("wZ" constraint): Ditto.
10073 ("j" constraint): Ditto.
10074
10075 * config/rs6000/predicates.md (vsx_register_operand): New
10076 predicate for VSX.
10077 (vfloat_operand): New predicate for vector.md.
10078 (vint_operand): Ditto.
10079 (vlogical_operand): Ditto.
10080 (easy_fp_constant): If VSX, 0.0 is an easy constant.
10081 (easy_vector_constant): Add VSX support.
10082 (altivec_indexed_or_indirect_operand): New predicate for
10083 recognizing Altivec style memory references with AND -16.
10084
10085 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
10086 for vector secondary reload support.
10087 (rs6000_vector_reg_class): Delete, replacing it with
10088 rs6000_constraints.
10089 (rs6000_vsx_reg_class): Ditto.
10090 (rs6000_constraints): New array to hold the register classes of
10091 each of the register constraints that can vary at runtime.
10092 (builtin_mode_to_type): New static array for builtin function type
10093 creation.
10094 (builtin_hash_table): New static hash table for builtin function
10095 type creation.
10096 (TARGET_SECONDARY_RELOAD): Define target hook.
10097 (TARGET_IRA_COVER_CLASSES): Ditto.
10098 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
10099 registers are 128 bits if VSX memory reference instructions are used.
10100 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
10101 unit is being used.
10102 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
10103 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
10104 Print several of the scheduling related parameters.
10105 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
10106 rs6000_constraints instead of rs6000_vector_reg_class. Move
10107 -mdebug=reg code to rs6000_debug_reg_global. Add support for
10108 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
10109 Altivec. Add VSX support. Setup for secondary reload support on
10110 Altivec/VSX registers.
10111 (rs6000_override_options): Make power7 set the scheduling groups
10112 like the power5. Add support for new debug switches to override
10113 the scheduling defaults. Temporarily disable -mcpu=power7 from
10114 setting -mvsx. Add support for debug switches -malways-hint,
10115 -msched-groups, and -malign-branch-targets.
10116 (rs6000_buitlin_conversion): Add support for returning unsigned
10117 vector conversion functions to fix regressions due to stricter
10118 type checking.
10119 (rs6000_builtin_mul_widen_even): Ditto.
10120 (rs6000_builtin_mul_widen_odd): Ditto.
10121 (rs6000_builtin_vec_perm): Ditto.
10122 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10123 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10124 to zero a register.
10125 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10126 generated upstream.
10127 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
10128 VSX types for bit operations. Changes to accomidate vector.md.
10129 (bdesc_2arg): Ditto.
10130 (bdesc_1arg): Ditto.
10131 (struct builtin_description_predicates): Rewrite predicate
10132 handling so that RTL describes the operation, instead of passing
10133 the instruction to be used as a string argument.
10134 (bdesc_altivec_preds): Ditto.
10135 (altivec_expand_predicate_builtin): Ditto.
10136 (altivec_expand_builtin): Ditto.
10137 (rs6000_expand_ternop_builtin): Use a switch instead of an if
10138 statement for vsldoi support.
10139 (altivec_expand_ld_builtin): Change to use new names from vector.md.
10140 (altivec_expand_st_builtin): Ditto.
10141 (paired_expand_builtin): Whitespace changes.
10142 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
10143 builtin_mode_to_type table for secondary reload. Call
10144 builtin_function_type to build random builtin functions.
10145 (altivec_init_builtins): Change to use builtin_function_type to
10146 create builtin function types dynamically as we need them.
10147 (builtin_hash_function): New support for hashing the tree types
10148 for builtin function as we need it, rather than trying to build
10149 all of the trees that we need. Add initial preliminary VSX support.
10150 (builtin_function_type): Ditto.
10151 (builtin_function_eq): Ditto.
10152 (builtin_hash_struct): Ditto.
10153 (rs6000_init_builtins): Ditto.
10154 (rs6000_common_init_builtins): Ditto.
10155 (altivec_init_builtins): Ditto.
10156 (rs6000_common_init_builtins): Ditto.
10157 (enum reload_reg_type): New enum for simplifing reg classes.
10158 (rs6000_reload_register_type): Simplify register classes into GPR,
10159 Vector, and other registers. Altivec and VSX addresses in reload.
10160 (rs6000_secondary_reload_inner): Ditto.
10161 (rs6000_ira_cover_classes): New target hook, that returns the
10162 appropriate cover classes, based on -mvsx being used or not.
10163 (rs6000_secondary_reload_class): Add VSX support.
10164 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10165 (get_vsel_insn): Ditto.
10166 (rs6000_emit_vector_compare): Rewrite vector conditional support
10167 so that where we can, we use RTL operators, instead of blindly use
10168 UNSPEC.
10169 (rs6000_emit_vector_select): Ditto.
10170 (rs6000_emit_vector_cond_expr): Ditto.
10171 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10172 (create_TOC_reference): Add -mdebug=addr support.
10173 (emit_frame_save): VSX loads/stores need register indexed addressing.
10174
10175 * config/rs6000/rs6000.md: Include vector.md.
10176
10177 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10178
10179 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10180 support for V2DI, V2DF in logical, permute, select operations.
10181
10182 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10183 switch for vsx/power7.
10184 (-mvsx-scalar-memory): Ditto.
10185 (-mvsx-align-128): Ditto.
10186 (-mallow-movmisalign): Ditto.
10187 (-mallow-df-permute): Ditto.
10188 (-msched-groups): Ditto.
10189 (-malways-hint): Ditto.
10190 (-malign-branch-targets): Ditto.
10191
10192 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10193 hook instead.
10194 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10195 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10196 (rs6000_vector_reg_class): Delete.
10197 (rs6000_vsx_reg_class): Ditto.
10198 (enum rs6000_reg_class_enum): New enum for the constraints that
10199 vary based on target switches.
10200 (rs6000_constraints): New array to hold the register class for all
10201 of the register constraints that vary based on the switches used.
10202 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10203 (enum rs6000_builtins): Add unsigned varients for the builtin
10204 declarations returned by target hooks for expanding multiplies,
10205 select, and permute operations. Add VSX builtins.
10206 (enum rs6000_builtin_type_index): Add entries for VSX.
10207 (V2DI_type_node): Ditto.
10208 (V2DF_type_node): Ditto.
10209 (unsigned_V2DI_type_node): Ditto.
10210 (bool_long_type_node): Ditto.
10211 (intDI_type_internal_node): Ditto.
10212 (uintDI_type_internal_node): Ditto.
10213 (double_type_internal_node): Ditto.
10214
10215 * config/rs6000/altivec.md (whole file): Move all expanders to
10216 vector.md from altivec.md. Rename insn matching functions to be
10217 altivec_foo.
10218 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10219 (altivec_vcmp*): Ditto.
10220 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10221 (VM): New iterator for moves that includes the VSX types.
10222 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
10223 (altivec_vperm_<mode>_uns): New, for unsigned types.
10224 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10225 (altivec_eq<mode>): Ditto.
10226 (altivec_gt<mode>): Ditto.
10227 (altivec_gtu<mode>): Ditto.
10228 (altivec_eqv4sf): Ditto.
10229 (altivec_gev4sf): Ditto.
10230 (altivec_gtv4sf): Ditto.
10231 (altivec_vcmpbfp_p): Ditto.
10232
10233 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
10234
10235 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10236 unsigned HWI.
10237
10238 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10239
10240 PR target/40832
10241 * config/i386/i386.c (output_387_ffreep): Rewrite to use
10242 ASM_SHORT instead of .word.
10243 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10244 instead of .word in asm template.
10245
10246 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
10247
10248 PR target/37488
10249 * ira-lives.c (bb_has_abnormal_call_pred): New function.
10250 (process_bb_node_lives): Use it.
10251
10252 * ira.c (setup_cover_and_important_classes): Don't setup
10253 ira_important_class_nums. Add cover classes to the end of
10254 important classes.
10255 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10256 New.
10257 (find_reg_class_closure): Use reorder_important_classes.
10258
10259 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10260
10261 * config/i386/i386.c (i386_ira_cover_classes): New function.
10262 (TARGET_IRA_COVER_CLASSES): Redefine.
10263
10264 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10265 importance of order of cover classes in the array.
10266
10267 2009-07-22 Diego Novillo <dnovillo@google.com>
10268
10269 * tree-pass.h (TDF_EH): Define.
10270 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10271 contains TDF_EH, print the EH region number holding GS.
10272 * tree-dump.c (dump_options): Add "eh".
10273 * doc/invoke.texi: Document it.
10274
10275 2009-07-22 Doug Kwan <dougkwan@google.com>
10276
10277 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10278
10279 2009-07-22 Michael Matz <matz@suse.de>
10280
10281 PR tree-optimization/35229
10282 PR tree-optimization/39300
10283
10284 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10285 (inhibit_phi_insertion): New function.
10286 (insert_into_preds_of_block): Call it for REFERENCEs.
10287 (init_pre): Initialize and finalize scalar evolutions.
10288 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10289
10290 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
10291
10292 * config/i386/predicates.md (zero_extended_scalar_load_operand):
10293 Use CONST_VECTOR_NUNITS to determine number of elements.
10294
10295 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
10296
10297 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10298 (U, W): Constraints are now deprecated and will be removed if we
10299 run out of letters.
10300 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10301 the file.
10302 ("prefetch"): Add the stcmh instruction for prefetching.
10303 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10304 changes.
10305 (s390_short_displacement): Return always true if compiling for
10306 machines not providing the long displacement facility.
10307 (s390_mem_constraint): Support the new constraint letter Z.
10308 (s390_check_qrst_address): New function.
10309
10310 2009-07-21 DJ Delorie <dj@redhat.com>
10311
10312 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10313 alone too.
10314
10315 2009-07-21 Jason Merrill <jason@redhat.com>
10316
10317 * c-common.c (max_tinst_depth): Increase default to 1024.
10318
10319 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10320
10321 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10322 (vec_unpacku_float_lo_v4si): Ditto.
10323
10324 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10325
10326 PR target/40811
10327 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10328 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10329 (builtin_description): Add __builtin_ia32_cvtudq2ps.
10330 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10331
10332 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10333
10334 PR tree-optimization/40813
10335 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10336 it.
10337
10338 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10339
10340 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10341 with a NOP_EXPR if needed.
10342
10343 2009-07-21 Paul Brook <paul@codesourcery.com>
10344
10345 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10346 Terminate debug dump with newline.
10347
10348 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10349
10350 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10351 Cast "1" to unsigned HOST_WIDE_INT.
10352 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10353 deposit length to the maximum length - lsb. Extend length if
10354 HOST_BITS_PER_WIDE_INT is 32.
10355
10356 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10357
10358 * cgraph.h (constant_pool_htab): New function.
10359 (constant_descriptor_tree): Move from varasm.c.
10360 * varasm.c (constant_pool_htab): New function.
10361 (constant_descriptor_tree): Move to cgraph.h.
10362
10363 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10364
10365 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10366
10367 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10368
10369 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10370 $(VARRAY_H).
10371
10372 2009-07-20 Xinliang David Li <davidxl@google.com>
10373
10374 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10375
10376 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10377
10378 * config/mips/mips.md (move_type): Add arith.
10379 (type): Handle arith.
10380 (zero_extendsidi2): Rename this into ...
10381 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10382 (zero_extendsidi2): New expander.
10383 (*zero_extendsidi2_dext): New pattern.
10384
10385 2009-07-20 Nick Clifton <nickc@redhat.com>
10386
10387 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10388 to set MIPS_ABI_DEFAULT.
10389 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10390
10391 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10392
10393 * tree-object-size.c (addr_object_size): Handle unions with
10394 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10395
10396 PR tree-optimization/40792
10397 * tree.c (build_function_type_skip_args): Remove bogus assert.
10398
10399 2009-07-20 Jan Hubicka <jh@suse.cz>
10400 Martin Jambor <mjambor@suse.cz>
10401
10402 * cgraph.h (combined_args_to_skip): New field.
10403 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10404 combined_args_to_skip and args_to_skip.
10405 * tree-inline.c (update_clone_info): New function.
10406 (tree_function_versioning): Call update_clone_info.
10407 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
10408 functions.
10409 (cgraph_materialize_all_clones): More extensive dumping, working
10410 with combined_args_to_skip rather than args_to_skip.
10411
10412 2009-07-20 Ira Rosen <irar@il.ibm.com>
10413
10414 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10415 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10416 (get_initial_def_for_reduction): Likewise.
10417 (vectorizable_reduction): Skip the check of first operand in case
10418 of COND_EXPR. Add check that it is outer loop vectorization if
10419 nested cycle was detected. Call vectorizable_condition() for
10420 COND_EXPR. If reduction epilogue cannot be created do not fail for
10421 nested cycles (if it is not double reduction). Assert that there
10422 is only one type in the loop in case of COND_EXPR. Call
10423 vectorizable_condition() to vectorize COND_EXPR.
10424 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10425 Add parameters. Allow nested cycles if called from
10426 vectorizable_reduction(). Use reduction vector variable if provided.
10427 (vect_analyze_stmt): Call vectorizable_reduction() before
10428 vectorizable_condition().
10429 (vect_transform_stmt): Update call to vectorizable_condition().
10430
10431 2009-07-20 Christian Bruel <christian.bruel@st.com>
10432
10433 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10434 * doc/invoke.texi (-mfmovd): Likewise.
10435 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10436
10437 2009-07-20 Jan Hubicka <jh@suse.cz>
10438
10439 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10440 when handling SSA name.
10441
10442 2009-07-19 Jan Hubicka <jh@suse.cz>
10443
10444 PR tree-optimization/40676
10445 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10446 virtual PHIs in empty BBs.
10447
10448 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10449
10450 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10451 re-expanded the compound use gen_lowpart instead to convert to the
10452 desired mode.
10453
10454 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10455
10456 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10457 OUTER_CONST arguments.
10458 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10459 the new wider mode will be masked off.
10460 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10461
10462 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10463
10464 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10465 high-order bits are zero.
10466
10467 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10468
10469 * combine.c (simplify_shift_const_1): Split code to determine
10470 shift_mode into ...
10471 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10472 new bits shifted in are identical to the old sign bit.
10473
10474 2009-07-18 Richard Guenther <rguenther@suse.de>
10475
10476 PR c/40787
10477 * gimplify.c (gimplify_call_expr): Reject code using results from
10478 functions returning void.
10479
10480 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10481
10482 * doc/md.texi: Document the new PowerPC "es" constraint.
10483 Document that "m" can include automodified addresses on this target,
10484 and explain how %U must be used. Extend the "Q" and "Z" documentation
10485 to suggest "es" as well as "m".
10486 * config/rs6000/constraints.md (es): New memory constraint.
10487 (Q, Z): Update strings to match new documentation.
10488
10489 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10490
10491 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10492 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10493 * config/rs6000/predicates.md (volatile_mem_operand): Use
10494 offsettable_nonstrict_memref_p.
10495 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10496 (*floatunssidf2_internal): Likewise.
10497 (*fix_truncdfsi2_internal): Likewise.
10498 (*fix_trunctfsi2_internal): Likewise.
10499
10500 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10501
10502 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10503 atmega32u2 devices.
10504 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10505
10506 2009-07-17 Richard Guenther <rguenther@suse.de>
10507
10508 PR c/40401
10509 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10510 (pass_warn_unused_result): Likewise.
10511 (TODO_set_props): Remove.
10512 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10513 run as a pass.
10514 (pass_diagnose_omp_blocks): Define.
10515 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10516 (c_gimple_diagnostics_recursively): Remove.
10517 (finish_function): Do not call it.
10518 (c_write_global_declarations): Continue after errors.
10519 Finalize the CU here.
10520 * c-gimplify.c (c_genericize): Do not gimplify here.
10521 * c-common.c (c_warn_unused_result): Move ...
10522 * tree-cfg.c (do_warn_unused_result): ... here.
10523 (run_warn_unused_result): New function.
10524 (gate_warn_unused_result): New function.
10525 (pass_warn_unused_result): New pass.
10526 * c-common.h (c_warn_unused_result): Remove.
10527 * flags.h (flag_warn_unused_result): Declare.
10528 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10529 * opts.c (flag_warn_unused_result): Initialize to false.
10530 * toplev.c (compile_file): Add comment.
10531 * omp-low.c (create_omp_child_function): Do not register
10532 the function with the frontend.
10533 (diagnose_omp_structured_block_errors): Prepare to be
10534 called as optimization pass.
10535 (gate_diagnose_omp_blocks): New function.
10536 (pass_diagnose_omp_blocks): New pass.
10537 * cgraph.h (cgraph_optimize): Remove.
10538 (cgraph_analyze_function): Likewise.
10539 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10540 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10541 before their parents here.
10542 (cgraph_finalize_function): Not here.
10543 (cgraph_analyze_function): Gimplify functions here.
10544 (cgraph_finalize_compilation_unit): Continue after errors.
10545 Optimize the callgraph from here.
10546 (cgraph_optimize): Make static.
10547 * langhooks.c (write_global_declarations): Finalize the CU.
10548 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10549 (gimplify_function_tree): Assert we gimplify only once.
10550 Set PROP_gimple_any property.
10551 * tree-nested.c (gimplify_all_functions): New function.
10552 (lower_nested_functions): Gimplify all nested functions.
10553 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10554 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10555 and pass_diagnose_omp_blocks after gimplification. Do not
10556 set TODO_set_props on all_lowering_passes.
10557 (execute_one_pass): Do not handle TODO_set_props.
10558 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10559 (gimplify.o): Add tree-pass.h dependency.
10560 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10561 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10562 (unsave_r): Likewise.
10563 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10564 temporary variable.
10565
10566 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10567
10568 * doc/service.texi (Service): Restore previously removed link,
10569 which isn't broken after all.
10570
10571 2009-07-17 Richard Guenther <rguenther@suse.de>
10572
10573 PR tree-optimization/40321
10574 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10575 PHI nodes to the maximal set.
10576 (make_values_for_phi): Add PHI arguments to the maximal set.
10577 (execute_pre): Dump PHI_GEN and the maximal set.
10578
10579 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10580
10581 PR c++/40780
10582 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10583 VIEW_CONVERT_EXPR.
10584
10585 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10586
10587 * doc/extend.texi (Nested Functions): Replace broken link with
10588 textual reference.
10589 * doc/service.texi (Service): Remove broken link.
10590
10591 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10592
10593 PR bootstrap/40781
10594 * builtins.c (expand_builtin_memcmp): Use loc instead of
10595 EXPR_LOCATION (exp).
10596 (expand_builtin_strncmp): Likewise.
10597
10598 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10599 Manuel López-Ibáñez <manu@gcc.gnu.org>
10600
10601 PR 40435
10602 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10603 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10604 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10605 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10606 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10607 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10608 tree-inline.c, c-common.c, c-common.h, gimple.c,
10609 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10610 convert.c: Add location argument to fold_{unary,binary,ternary},
10611 fold_build[123], build_call_expr, build_size_arg,
10612 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10613 fold_build1_initializer, fold_build2_initializer,
10614 fold_build3_initializer, fold_build_call_array,
10615 fold_build_call_array_initializer, fold_single_bit_test,
10616 omit_one_operand, omit_two_operands, invert_truthvalue,
10617 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10618 combine_comparisons, fold_builtin_*, fold_call_expr,
10619 build_range_check, maybe_fold_offset_to_address, round_up,
10620 round_down.
10621
10622 2009-07-16 Jason Merrill <jason@redhat.com>
10623
10624 PR libstdc++/37907
10625 * c-common.c (c_common_reswords): Add __is_standard_layout
10626 and __is_trivial.
10627 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10628 * doc/implement-cxx.texi: New.
10629 * doc/gcc.texi: Include it.
10630
10631 2009-07-16 DJ Delorie <dj@redhat.com>
10632
10633 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10634 compares that may be indirectly affected by previous instructions.
10635
10636 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10637
10638 * builtins.c (do_mpc_arg2): New.
10639 (fold_builtin_2): Fold builtin cpow.
10640 * real.h (HAVE_mpc_pow): New.
10641
10642 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10643
10644 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10645 comparison to skip unprofitable schedule
10646
10647 2009-07-16 Simon Baldwin <simonb@google.com>
10648
10649 * gcc.c (option_map): New flag -no-canonical-prefixes.
10650 * (display_help): Print help text for new flag.
10651 * (process_command): Move options translation and language specifics
10652 and handle new flag early. Use it to set a function pointer to a
10653 prefix builder. Replace make_relative_prefix calls with calls to
10654 the function pointed to. Ignore new flag in regular options handling.
10655 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10656
10657 2009-07-15 DJ Delorie <dj@redhat.com>
10658
10659 * config/mep/mep.md (sibcall_internal): Change register to avoid
10660 argument registers.
10661 (sibcall_value_internal): Likewise.
10662
10663 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10664
10665 PR rtl-optimization/40710
10666 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10667
10668 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10669
10670 * config/mips/mips.md (*extenddi_truncate<mode>,
10671 *extendsi_truncate<mode>): Change type attribute to move_type
10672 with shift_shift. Split out code handling exts from here ...
10673 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10674 pattern.
10675 (*extendhi_truncateqi): Change type attribute to move_type with
10676 shift_shift. Split out code handling exts from here ...
10677 (*extendhi_truncateqi_exts): ... to this new pattern.
10678
10679 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10680
10681 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10682 instead of "and" with inverted sign bit mask value. Use
10683 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10684 Allocate registers only for operand 4 and operand 5.
10685
10686 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10687
10688 PR middle-end/40747
10689 * fold-const.c (fold_cond_expr_with_comparison): When folding
10690 < and <= to MIN, make sure the MIN uses the same type as the
10691 comparison's operands.
10692
10693 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10694
10695 * arm.md (ior_xor): New code iterator.
10696 (split for ior/xor with shift and zero-extend): New split pattern.
10697 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10698
10699 2009-07-15 Richard Guenther <rguenther@suse.de>
10700
10701 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10702 offset member.
10703
10704 2009-07-15 Richard Guenther <rguenther@suse.de>
10705
10706 PR middle-end/40753
10707 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10708
10709 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10710
10711 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10712 handle 2.6.30 kernel.
10713
10714 2009-07-15 DJ Delorie <dj@redhat.com>
10715
10716 * config/mep/mep.md (sibcall_internal): Change register to allow
10717 for 24-bit addresses.
10718 (sibcall_value_internal): Likewise.
10719
10720 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10721
10722 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10723 that are enabled/disabled by the flags introduced by a previous patch.
10724
10725 2009-07-14 DJ Delorie <dj@redhat.com>
10726
10727 * config/mep/mep.md (sibcall_internal): Include non-toggling
10728 non-jmp case.
10729 (sibcall_value_internal): Likewise.
10730
10731 2009-07-14 Taras Glek <tglek@mozilla.com>
10732 Rafael Espindola <espindola@google.com>
10733
10734 * doc/sourcebuild.texi: Document install-plugin target.
10735 * configure.ac: Added install-plugin target to language makefiles.
10736 * configure: Regenerate.
10737 * Makefile.in (install-plugin): Install more headers,
10738 depend on lang.install-plugin.
10739
10740 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10741
10742 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10743 translation.
10744
10745 2009-07-14 DJ Delorie <dj@redhat.com>
10746
10747 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10748 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10749 * config/mep/mep.md (sibcall_internal): Change test from
10750 mep_vliw_mode_match to mep_vliw_jmp_match.
10751 (sibcall_value_internal): Likewise.
10752
10753 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10754
10755 * config/i386/sse.md (copysign<mode>3): New expander.
10756 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10757 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10758 Use ix86_build_const_vector.
10759 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10760 IX86_BUILTIN_CPYSGNPD.
10761 (builtin_description): Add __builtin_ia32_copysignps and
10762 __builtin_ia32_copysignpd.
10763 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10764 and BUILT_IN_COPYSIGNF.
10765
10766 2009-07-13 Jason Merrill <jason@redhat.com>
10767
10768 * builtins.c (can_trust_pointer_alignment): New fn.
10769 (get_pointer_alignment): Factor it out from here.
10770 * tree.h: Declare it.
10771
10772 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10773
10774 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10775 RTX_AUTOINC class.
10776
10777 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10778
10779 PR debug/40705
10780 PR c++/403057
10781 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10782
10783 2009-07-14 Richard Guenther <rguenther@suse.de>
10784 Andrey Belevantsev <abel@ispras.ru>
10785
10786 PR middle-end/40745
10787 * cfgexpand.c (partition_stack_vars): Do not bother to update
10788 alias information when not optimizing.
10789
10790 2009-07-14 Richard Guenther <rguenther@suse.de>
10791 Andrey Belevantsev <abel@ispras.ru>
10792
10793 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10794 (pt_solution_set): Likewise.
10795 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10796 * tree-ssa-structalias.c (pt_solution_set): New function.
10797 * final.c (rest_of_clean_state): Free SSA data structures.
10798 * print-rtl.c (print_decl_name): Remove.
10799 (print_mem_expr): Implement in terms of print_generic_expr.
10800 * alias.c (ao_ref_from_mem): New function.
10801 (rtx_refs_may_alias_p): Likewise.
10802 (true_dependence): Query alias-export info.
10803 (canon_true_dependence): Likewise.
10804 (write_dependence_p): Likewise.
10805 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10806 size unknown.
10807 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10808 (mem_expr_equal_p): Use operand_equal_p.
10809 (set_mem_attributes_minus_bitpos): Do not use
10810 component_ref_for_mem_expr.
10811 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10812 (update_alias_info_with_stack_vars): Likewise.
10813 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10814 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10815 explicitly nor clear stmt operands.
10816 Free the decl-to-pointer map.
10817 * tree-optimize.c (execute_free_datastructures): Do not free
10818 SSA data structures here.
10819 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10820 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10821 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10822 dependencies.
10823 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10824
10825 2009-07-13 DJ Delorie <dj@redhat.com>
10826
10827 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10828 unrolling at the right iteration count.
10829
10830 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10831 calculations.
10832
10833 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10834
10835 * haifa-sched.c (rank_for_schedule): Introduced flags to
10836 enable/disable individual scheduling heuristics.
10837 * common.opt: Introduced flags to enable/disable individual
10838 heuristics in the scheduler.
10839 * doc/invoke.texi: Introduced flags to enable/disable individual
10840 heuristics in the scheduler.
10841
10842 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10843
10844 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10845 config/i386/mingw-tls.c.
10846 * config/i386/mingw-tls.c: Removed.
10847
10848 2009-07-13 Ira Rosen <irar@il.ibm.com>
10849
10850 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10851 checks access only relevant statements.
10852 (vectorizable_reduction): Likewise.
10853
10854 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10855
10856 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10857 just for 32-bit case.
10858
10859 2009-07-12 Jan Hubicka <jh@suse.cz>
10860
10861 PR tree-optimization/40585
10862 * except.c (expand_resx_expr): When there already is resume
10863 instruction, produce linked list.
10864 (build_post_landing_pads): Assert that resume is empty.
10865 (connect_post_landing_pads): Handle resume lists.
10866 (dump_eh_tree): Dump resume list.
10867
10868 2009-07-12 Ira Rosen <irar@il.ibm.com>
10869
10870 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10871 with additional argument.
10872 * tree-vectorizer.h (enum vect_def_type): Add
10873 vect_double_reduction_def.
10874 (vect_is_simple_reduction): Add argument.
10875 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10876 indentation.
10877 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10878 vect_is_simple_reduction with additional argument.
10879 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10880 double reduction.
10881 (reduction_code_for_scalar_code): Handle additional codes by
10882 returning ERROR_MARK for them. Fix comment and indentation.
10883 (vect_is_simple_reduction): Fix comment, add argument to specify
10884 double reduction. Detect double reduction.
10885 (get_initial_def_for_induction): Fix indentation.
10886 (get_initial_def_for_reduction): Fix comment and indentation.
10887 Handle double reduction. Create initial definitions that do not
10888 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10889 (vect_create_epilog_for_reduction): Fix comment, add argument to
10890 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10891 epilogue result extraction. Create double reduction phi node and
10892 replace relevant uses.
10893 (vectorizable_reduction): Call vect_is_simple_reduction with
10894 additional argument. Fix indentation. Update epilogue code treatment
10895 according to the changes in reduction_code_for_scalar_code. Check
10896 for double reduction. Call vect_create_epilog_for_reduction with
10897 additional argument.
10898 * tree-vect-stmts.c (process_use): Handle double reduction, update
10899 documentation.
10900 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10901 (vect_get_vec_def_for_operand): Likewise.
10902
10903 2009-07-12 Danny Smith <dansmister@gmail.com>
10904
10905 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10906 dllexport if !TREE_PUBLIC.
10907 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10908
10909 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10910
10911 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10912 (avr_extra_arch_macro) Remove declatation.
10913 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10914 (avr_extra_arch_macro) Declare as static.
10915 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10916
10917 2009-07-11 Jan Hubicka <jh@suse.cz>
10918
10919 PR middle-end/48388
10920 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10921
10922 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10923
10924 PR debug/40713
10925 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10926 cold_in_std_section bits.
10927 (dwarf2out_begin_prologue): Initialize them.
10928 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10929 if already covered by text_section or cold_text_section range.
10930
10931 PR rtl-optimization/40667
10932 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10933 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10934 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10935 * config/i386/i386.c (ix86_minimum_alignment): New function.
10936 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10937 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10938 * emit-rtl.c (gen_reg_rtx): Likewise.
10939 * function.c (assign_parms): Likewise. If nominal_type needs
10940 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10941 rather than passed_type's alignment.
10942
10943 PR target/40668
10944 * function.c (assign_parm_setup_stack): Adjust
10945 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10946 from nominal_mode on big endian.
10947
10948 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10949
10950 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10951
10952 2009-07-10 DJ Delorie <dj@redhat.com>
10953
10954 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10955
10956 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10957
10958 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10959 attribute.
10960 (thumb2_cbnz): Likewise.
10961
10962 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10963
10964 PR target/39079
10965 * config.gcc (supported_defaults): Add synci.
10966 (with_synci): Add validation.
10967 (all_defaults): Add synci.
10968 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10969 ISA_HAS_SYNCI.
10970 (synci): Same.
10971 * config/mips/mips.opt (msynci): New option.
10972 * config/mips/mips.c (mips_override_options): Warn on use of
10973 -msynci for targets that do now support it.
10974 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10975 msynci.
10976 * gcc/doc/invoke.texi (-msynci): Document the new option.
10977 * doc/install.texi (--with-synci): Document the new option.
10978
10979 2009-07-10 Richard Guenther <rguenther@suse.de>
10980
10981 PR tree-optimization/40496
10982 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10983 the PHI result with a compatible type.
10984
10985 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10986
10987 PR 25509
10988 PR 40614
10989 * c.opt (Wunused-result): New.
10990 * doc/invoke.texi: Document it.
10991 * c-common.c (c_warn_unused_result): Use it.
10992
10993 2009-07-09 DJ Delorie <dj@redhat.com>
10994
10995 * targhooks.c (default_target_can_inline_p): Rename from
10996 default_target_option_can_inline_p.
10997 * targhooks.h (default_target_can_inline_p): Likewise.
10998 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10999 TARGET_OPTION_CAN_INLINE_P.
11000 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
11001 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
11002 (mep_target_can_inline_p): Rename from
11003 mep_target_option_can_inline_p.
11004
11005 PR target/40626
11006 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
11007 registers used to pass vectors.
11008
11009 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
11010
11011 2009-07-09 Tom Tromey <tromey@redhat.com>
11012
11013 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
11014 * config/mmix/mmix.c: Include dwarf2.h.
11015 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
11016 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
11017 * config/sh/sh.c: Include dwarf2.h.
11018 * config/i386/i386.c: Include dwarf2.h.
11019 * Makefile.in (DWARF2_H): Remove 'elf'.
11020 * except.c: Include dwarf2.h.
11021 * unwind-dw2.c: Include dwarf2.h.
11022 * dwarf2out.c: Include dwarf2.h.
11023 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
11024 * unwind-dw2-fde.c: Include dwarf2.h.
11025 * dwarf2asm.c: Include dwarf2.h.
11026
11027 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
11028
11029 * haifa-sched.c (insn_finishes_cycle_p): New static function.
11030 (max_issue): Use it.
11031 * sched-int.h (struct sched_info: insn_finishes_block_p): New
11032 scheduler hook.
11033 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
11034 (region_sched_info): Update.
11035 * sched-ebb.c (ebb_sched_info): Update.
11036 * modulo-sched.c (sms_sched_info): Update.
11037 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
11038
11039 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
11040
11041 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
11042
11043 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
11044
11045 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
11046
11047 2009-07-09 Jakub Jelinek <jakub@redhat.com>
11048
11049 PR middle-end/40692
11050 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
11051 arg1 with arg01 if arg1 is already INTEGER_CST.
11052
11053 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
11054
11055 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
11056 Transform (and (truncate)) into (truncate (and)).
11057
11058 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
11059
11060 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
11061 creating LHS paradoxical subregs. Fix surrounding returns to
11062 use NULL_RTX rather than 0.
11063
11064 2009-07-08 DJ Delorie <dj@redhat.com>
11065
11066 * config/mep/mep.c (mep_option_can_inline_p): New.
11067 (TARGET_OPTION_CAN_INLINE_P): Define.
11068
11069 2009-07-08 Mark Wielaard <mjw@redhat.com>
11070
11071 PR debug/40659
11072 * dwarf2out.c (add_data_member_location_attribute): When we have
11073 only a constant offset don't emit a new location description using
11074 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
11075 dwarf_version > 2.
11076
11077 2009-07-08 Richard Henderson <rth@redhat.com>
11078
11079 PR target/38900
11080 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
11081 (enum reg_class): Add CLOBBERED_REGS.
11082 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
11083 * config/i386/i386.c (ix86_conditional_register_usage): Moved
11084 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
11085 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
11086 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
11087 force 64-bit sibcalls into R11.
11088 * config/i386/constraints.md (U): New constraint.
11089 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11090 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
11091 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
11092
11093 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
11094
11095 * basic-block.h (dump_regset, debug_regset): Remove duplicate
11096 prototypes.
11097 * c-objc-common.h (c_initialize_diagnostics): Ditto.
11098 * ebitmap.h (dump_ebitmap): Ditto.
11099 * optabs.h (optab_libfunc): Ditto.
11100 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
11101 * tree-flow.h (vect_can_force_dr_alignment_p,
11102 get_vectype_for_scalar_type): Ditto.
11103 (vectorize_loops): Move prototype to ...
11104 * tree-vectorizer.h: ... here. Also, adjust comment.
11105 (vect_set_verbosity_level): Remove duplicate prototype.
11106 * tree-ssa-loop.c: Include tree-vectorizer.h.
11107 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
11108
11109 2009-07-08 Nick Clifton <nickc@redhat.com>
11110
11111 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
11112 forward slash.
11113
11114 2009-07-08 DJ Delorie <dj@redhat.com>
11115
11116 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
11117 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11118 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
11119 written to.
11120 * config/mep/intrinsics.md: Regenerated.
11121 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11122 registers when asm() or calls are detected.
11123
11124 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11125
11126 PR c++/31246
11127 * gimplify.c (gimplify_expr): Propagate no_warning flag when
11128 gimplifying.
11129 * gimple (gimple_build_call_from_tree): Likewise.
11130 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11131 no_warning flag before warning.
11132
11133 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11134
11135 * tree.c (set_expr_locus): Remove.
11136 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11137 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
11138 EXPR_LOCATION.
11139 * gimplify.c (internal_get_tmp_var): Likewise.
11140 (gimplify_call_expr): Likewise.
11141 (gimplify_one_sizepos): Likewise.
11142
11143 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
11144
11145 PR debug/40666
11146 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11147 to variables for debugging purposes.
11148
11149 2009-06-23 Mark Loeser <mark@halcy0n.com>
11150
11151 PR build/40010
11152 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11153
11154 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11155
11156 * pretty-print.c (pp_base_format): Remove %J.
11157 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11158 gcc_cxxdiag_char_table): Likewise.
11159 (init_dynamic_diag_info): Likewise.
11160
11161 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11162
11163 * pretty-print.c (pp_base_format): Remove %H.
11164 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11165 gcc_cxxdiag_char_table): Likewise.
11166 (init_dynamic_diag_info): Likewise.
11167 * config/mep/mep.c (mep_select_section): Likewise.
11168
11169 2009-07-07 Duncan Sands <baldrick@free.fr>
11170
11171 * final.c (pass_clean_state): Give the pass a name.
11172 * passes.c (pass_rest_of_compilation): Likewise.
11173 * tree-optimize.c (pass_all_optimizations): Likewise.
11174
11175 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
11176
11177 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11178 an extra 'decl' for error_at.
11179
11180 2009-07-07 Jakub Jelinek <jakub@redhat.com>
11181
11182 PR middle-end/40669
11183 * tree-tailcall.c (adjust_return_value_with_ops,
11184 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11185 if it has complex or vector type.
11186
11187 2009-07-07 Olivier Hainque <hainque@adacore.com>
11188
11189 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11190 pthread symbols.
11191
11192 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
11193
11194 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11195
11196 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11197
11198 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
11199 * c-decl.c: Likewise.
11200 * function.c: Likewise.
11201 * varasm.c: Likewise.
11202 * tree-ssa.c: Likewise.
11203 * c-common.c: Likewise.
11204 * tree-cfg.c: Likewise.
11205 * config/spu/spu.c: Likewise.
11206 * config/ia64/ia64.c: Likewise.
11207 * config/v850/v850.c: Likewise.
11208
11209 2009-07-06 DJ Delorie <dj@redhat.com>
11210
11211 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11212 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11213 unspecified accesses to control registers.
11214 * config/mep/intrinsics.md: Regenerate.
11215 * config/mep/intrinsics.h: Regenerate.
11216 * config/mep/mep-intrin.h: Regenerate.
11217
11218 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11219
11220 * c-lex.c: Replace %H by an explicit location. Update all calls.
11221 * c-common.c: Likewise.
11222 * c-decl.c: Likewise.
11223 * c-typeck.c: Likewise.
11224 * fold-const.c: Likewise.
11225 * gimplify.c: Likewise.
11226 * stmt.c: Likewise.
11227 * tree-cfg.c: Likewise.
11228 * tree-ssa-loop-niter.c: Likewise.
11229 * tree-vrp.c: Likewise.
11230 * value-prof.c: Likewise.
11231
11232 2009-07-06 Diego Novillo <dnovillo@google.com>
11233
11234 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11235 if it has one. Handle cases where VAR does not have an
11236 annotation or cfun is NULL.
11237
11238 2009-07-06 Diego Novillo <dnovillo@google.com>
11239
11240 * tree.c: Include debug.h.
11241 (initialize_tree_contains_struct): New.
11242 (init_ttree): Call it.
11243 (tree_node_structure_for_code): Factor out of ...
11244 (tree_node_structure): ... here.
11245 * treestruct.def (TS_PHI_NODE): Remove.
11246 (TS_GIMPLE_STATEMENT): Remove.
11247
11248 2009-07-06 Diego Novillo <dnovillo@google.com>
11249
11250 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11251 (debug_tree_chain): Handle cycles.
11252
11253 2009-07-06 Nick Clifton <nickc@redhat.com>
11254 DJ Delorie <dj@redhat.com>
11255
11256 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11257 __FMOVD_ENABLED__ is defined.
11258 * config/sh/sh.h
11259 (TARGET_FMOVD): Provide a default definition.
11260 (MASK_FMOVD): Likewise.
11261 (TARGET_CPU_CPP_BUILTINS): Define
11262 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11263 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11264 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11265 (split for DF load from memory into register): Also handle
11266 MEMs which consist of REG+DISP addressing.
11267 (split for DF store from register to memory): Likewise.
11268 (movsf_ie): Always use single fp_mode.
11269 * config/sh/sh.c (sh_override_options): Do not automatically
11270 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11271 that to the -mfmovd command line switch.
11272 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11273 (fldi_ok): Always allow.
11274 * config/sh/sh.opt (mfmovd): Remove this switch.
11275 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11276
11277 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
11278 Kaz Kojima <kkojima@gcc.gnu.org>
11279
11280 PR rtl-optimization/30807
11281 * postreload.c (reload_combine): For every new use of REG_SUM,
11282 record the use of BASE.
11283
11284 2009-07-06 Jan Hubicka <jh@suse.cz>
11285
11286 * params.def: Revert my accidental commit at 2009-06-30.
11287
11288 2009-07-04 Ian Lance Taylor <iant@google.com>
11289
11290 PR target/40636
11291 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11292 EXPORTED_CONST.
11293 (mingw_format_attribute_overrides): Likewise.
11294
11295 2009-07-04 Jakub Jelinek <jakub@redhat.com>
11296
11297 PR debug/40596
11298 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11299 don't check cfa.reg. Instead of cfa.indirect use
11300 fde && fde->drap_reg != INVALID_REGNUM test.
11301
11302 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
11303
11304 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11305
11306 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
11307
11308 PR target/40587
11309 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11310
11311 2009-07-03 Richard Guenther <rguenther@suse.de>
11312
11313 PR tree-optimization/40640
11314 * tree-switch-conversion.c (build_arrays): Perform arithmetic
11315 in original type.
11316
11317 2009-07-03 Jan Hubicka <jh@suse.cz>
11318
11319 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11320 for size, reduce amount of inlining.
11321
11322 2009-07-03 Richard Guenther <rguenther@suse.de>
11323
11324 PR middle-end/34163
11325 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11326 if t +- x is known to not overflow and the conversion widens the
11327 operation.
11328 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11329
11330 2009-07-03 Jan Hubicka <jh@suse.cz>
11331
11332 * ipa-pure-const.c (analyze): Update loop optimizer init.
11333 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11334 try_remove_empty_loop, remove_empty_loops): Remove.
11335 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11336 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11337 to mark regular loops as neccesary.
11338 (degenerate_phi_p): New function.
11339 (propagate_necessity, remove_dead_phis): Use it.
11340 (forward_edge_to_pdom): Likewise.
11341 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11342 virtual PHI nodes that became unreachable.
11343 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11344 * tree-flow.h (remove_empty_loops): Remove.
11345 * passes.c (init_optimization_passes): Remove.
11346
11347 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11348
11349 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11350 can_create_pseudo_p.
11351 (*fix_trunc<mode>_i387_1): Ditto.
11352 (*floathi<mode>2_1): Ditto.
11353 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11354 (*fistdi2_1): Ditto.
11355 (*fist<mode>2_1): Ditto.
11356 (frndintxf2_floor): Ditto.
11357 (*fist<mode>2_floor_1): Ditto.
11358 (frndintxf2_ceil): Ditto.
11359 (*fist<mode>2_ceil_1): Ditto.
11360 (frndintxf2_trunc): Ditto.
11361 (frndintxf2_mask_pm): Ditto.
11362 (fxam<mode>2_i387_with_temp): Ditto.
11363 * config/i386/sse.md (mulv16qi3): Ditto.
11364 (*sse2_mulv4si3): Ditto.
11365 (mulv2di3): Ditto.
11366 (sse4_2_pcmpestr): Ditto.
11367 (sse4_2_pcmpistr): Ditto.
11368
11369 2009-07-03 Jan Hubicka <jh@suse.cz>
11370
11371 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11372 (mark_stmt_necessary): Set it.
11373 (mark_operand_necessary): Set it.
11374 (mark_control_dependent_edges_necessary): Set it.
11375 (mark_virtual_phi_result_for_renaming): New function.
11376 (get_live_post_dom): New function.
11377 (forward_edge_to_pdom): New function.
11378 (remove_dead_stmt): Fix handling of control dependences.
11379 (tree_dce_init): Init new bitmap.
11380 (tree_dce_done): Free it.
11381
11382 2009-07-02 Richard Guenther <rguenther@suse.de>
11383
11384 PR bootstrap/40617
11385 * tree-ssa-structalias.c (new_var_info): Initialize
11386 is_restrict_var.
11387
11388 2009-07-02 Jan Hubicka <jh@suse.cz>
11389
11390 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11391 local.
11392
11393 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11394
11395 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11396 instead of recomputing it. Adjust calls.
11397 (emit_store_flag): Adjust recursive calls.
11398
11399 2009-07-02 Richard Guenther <rguenther@suse.de>
11400
11401 * tree-ssa-live.c (remove_unused_locals): Do not remove
11402 heap variables.
11403 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11404 of DECL_EXTERNAL for HEAP variables.
11405 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11406 HEAP variables. Do not adjust RESTRICT vars.
11407 (find_what_var_points_to): Nobody cares if something
11408 points to READONLY.
11409
11410 2009-07-02 Ben Elliston <bje@au.ibm.com>
11411
11412 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11413 pc_low and pc_high declarations to the top of the function.
11414
11415 2009-07-01 DJ Delorie <dj@redhat.com>
11416
11417 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11418 registers as fixed.
11419 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11420 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11421 unspecified accesses to control registers.
11422 * config/mep/intrinsics.md: Regenerate.
11423 * config/mep/intrinsics.h: Regenerate.
11424 * config/mep/mep-intrin.h: Regenerate.
11425
11426 2009-07-01 Anthony Green <green@moxielogic.com>
11427
11428 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11429 instruction when possible.
11430 (moxie_expand_prologue): Ditto. Also, save an instruction and
11431 some complexity by popping off of $r12 instead of $sp.
11432 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11433 operands.
11434
11435 2009-07-01 Richard Henderson <rth@redhat.com>
11436
11437 PR bootstrap/40347
11438 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11439 contained no insns, reposition note before last insn.
11440
11441 2009-07-01 Richard Henderson <rth@redhat.com>
11442
11443 PR debug/40431
11444 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11445 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11446
11447 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11448
11449 PR bootstrap/40558
11450 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11451 darwin9 for printing reg addresses with %y.
11452
11453 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11454
11455 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11456 truncation from operands in binary operations.
11457
11458 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11459
11460 Revert:
11461 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11462 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11463 subreg of op0 to the original op0.
11464
11465 * expmed.c (store_bit_field_1): Use a temporary as the destination
11466 instead of a paradoxical subreg when we need to truncate the result.
11467
11468 2009-07-01 DJ Delorie <dj@redhat.com>
11469
11470 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11471 names to VLIW variants.
11472 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11473 * config/mep/intrinsics.md: Regenerate.
11474 * config/mep/intrinsics.h: Regenerate.
11475 * config/mep/mep-intrin.h: Regenerate.
11476
11477 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11478
11479 PR debug/40462
11480 * jump.c (returnjump_p): Revert last patch.
11481 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11482
11483 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11484
11485 PR target/40575
11486 * pa.md (casesi32p): Use jump table label to determine the offset
11487 of the jump table.
11488 (casesi64p): Likewise.
11489
11490 * pa.c (forward_branch_p): Return bool type. Use instruction
11491 addresses when available. Assert that INSN has a jump label.
11492 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11493 have a jump label.
11494
11495 2009-07-01 Richard Guenther <rguenther@suse.de>
11496
11497 PR tree-optimization/19831
11498 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11499 that only act as barriers do not make any previous stores necessary.
11500 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11501 HEAP variables global, do not add a constraint from nonlocal.
11502 (find_func_aliases): Handle escapes through return statements.
11503 (compute_points_to_sets): Make escaped HEAP variables global.
11504
11505 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11506
11507 PR bootstrap/40597
11508 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11509 after reducing a DImode cstore to SImode.
11510
11511 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11512
11513 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11514 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11515
11516 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11517
11518 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11519 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11520 to 0.
11521 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11522 and umod_optab if TARGET_BSD_DIVMOD.
11523 * config/vax/lib1funcs.asm: New file.
11524 * config/vax/t-linux: New file.
11525 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11526
11527 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11528
11529 PR c++/40566
11530 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11531 to type arguments that have void type.
11532
11533 PR debug/40573
11534 * dwarf2out.c (gen_formal_parameter_die): Call
11535 equate_decl_number_to_die if node is different from origin.
11536
11537 2009-06-30 Anthony Green <green@moxielogic.com>
11538
11539 Clean up moxie port for --enable-build-with-cxx.
11540 * config/moxie/moxie.c (moxie_function_value): First two
11541 parameters are const_tree, not tree.
11542 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11543 (REG_CLASS_NAMES): Ditto.
11544 (REGNO_REG_CLASS): Ditto.
11545 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11546 (moxie_function_value): Fix constyness of arguments.
11547
11548 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11549
11550 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11551 finalize_size_functions before further processing.
11552 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11553 (variable_size): Call self_referential_size on size expressions
11554 that contain a PLACEHOLDER_EXPR.
11555 (size_functions): New static variable.
11556 (copy_self_referential_tree_r): New static function.
11557 (self_referential_size): Likewise.
11558 (finalize_size_functions): New global function.
11559 * tree.c: Include tree-inline.h.
11560 (push_without_duplicates): New static function.
11561 (find_placeholder_in_expr): New global function.
11562 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11563 on equality.
11564 <tcc_expression>: Likewise.
11565 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11566 the call in the expression.
11567 * tree.h (finalize_size_functions): Declare.
11568 (find_placeholder_in_expr): Likewise.
11569 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11570 (substitute_placeholder_in_expr): Update comment.
11571 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11572 is true.
11573 (copy_tree_body_r): Likewise.
11574 (copy_tree_body): New static function.
11575 (maybe_inline_call_in_expr): New global function.
11576 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11577 (maybe_inline_call_in_expr): Declare.
11578 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11579 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11580 GIMPLE_H.
11581
11582 2009-06-30 Richard Guenther <rguenther@suse.de>
11583
11584 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11585 continue walking.
11586 (propagate_necessity): Do not mark reaching defs of stores
11587 as necessary.
11588
11589 2009-06-30 Jan Hubicka <jh@suse.cz>
11590
11591 * cfgloopanal.c (check_irred): Move into ...
11592 (mark_irreducible_loops): ... here; return true if ireducible
11593 loops was found.
11594 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11595 (analyze_function): Try to prove loop finiteness.
11596 * cfgloop.h (mark_irreducible_loops): Update prototype.
11597 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11598
11599 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11600
11601 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11602
11603 2009-06-30 Ira Rosen <irar@il.ibm.com>
11604
11605 PR tree-optimization/40542
11606 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11607 types.
11608
11609 2009-06-30 Martin Jambor <mjambor@suse.cz>
11610
11611 PR tree-optimization/40582
11612 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11613 than useless_type_conversion_p.
11614 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11615 proper place.
11616
11617 2009-06-30 Martin Jambor <mjambor@suse.cz>
11618
11619 PR middle-end/40554
11620 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11621
11622 2009-06-30 Richard Guenther <rguenther@suse.de>
11623
11624 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11625 use ao_ref references.
11626 (walk_aliased_vdefs): Likewise.
11627 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11628 * tree-ssa-dce.c (struct ref_data): Remove.
11629 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11630 (mark_aliased_reaching_defs_necessary): Adjust.
11631 (mark_all_reaching_defs_necessary_1): Likewise.
11632
11633 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11634
11635 PR boostrap/40597
11636 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11637 (emit_store_flag_1): Extract from emit_store_flag, adjust
11638 calls to (what now is) emit_cstore.
11639 (emit_store_flag): Call emit_store_flag_1 and also use it
11640 for what used to be recursive calls.
11641
11642 2009-06-30 Wei Guozhi <carrot@google.com>
11643
11644 PR/40416
11645 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11646 if the target bb post dominates from bb.
11647 * config/i386/i386.c (memory_address_length): Check existence of base
11648 register before using it.
11649
11650 2009-06-30 Nick Clifton <nickc@redhat.com>
11651 DJ Delorie <dj@redhat.com>
11652
11653 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11654 __FMOVD_ENABLED__ is defined.
11655 * config/sh/sh.h
11656 (TARGET_FMOVD): Provide a default definition.
11657 (MASK_FMOVD): Likewise.
11658 (TARGET_CPU_CPP_BUILTINS): Define
11659 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11660 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11661 two fmov instructions depending upon whether TARGET_FMOVD is
11662 enabled.
11663 (split for DF load from memory into register): Also handle
11664 MEMs which consist of REG+DISP addressing.
11665 (split for DF store from register to memory): Likewise.
11666 * config/sh/sh.opt (mfmovd): Remove this switch.
11667 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11668 * config/sh/sh.c (sh_override_options): Do not automatically
11669 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11670 that to the -mfmovd command line switch.
11671
11672 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11673 the SH4 and SH4A.
11674 (fldi_ok): Always allow.
11675 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11676
11677 2009-06-29 DJ Delorie <dj@redhat.com>
11678
11679 * doc/install.texi (mep-x-elf): Correct chip's full name.
11680
11681 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11682
11683 * doc/extend.texi: Fix typo.
11684
11685 2009-06-29 Tom Tromey <tromey@redhat.com>
11686
11687 * dwarf2.h: Remove.
11688 * Makefile.in (DWARF2_H): New variable.
11689 (except.o): Use it.
11690 (dwarf2out.o): Likewise.
11691 (dwarf2asm.o): Likewise.
11692 * config/i386/t-i386: Use DWARF2_H.
11693 * except.c: Include elf/dwarf2.h.
11694 * unwind-dw2.c: Include elf/dwarf2.h.
11695 * dwarf2out.c: Include elf/dwarf2.h.
11696 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11697 <dtprel>: New field.
11698 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11699 (size_of_loc_descr): Likewise.
11700 (output_loc_operands_raw): Likewise.
11701 (output_loc_operands): Handle new dtprel field.
11702 (loc_checksum): Update.
11703 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11704 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11705 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11706 * dwarf2asm.c: Include elf/dwarf2.h.
11707 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11708 * config/mmix/mmix.c: Include elf/dwarf2.h.
11709 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11710 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11711 * config/sh/sh.c: Include elf/dwarf2.h.
11712 * config/i386/i386.c: Include elf/dwarf2.h.
11713
11714 2009-06-29 DJ Delorie <dj@redhat.com>
11715
11716 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11717
11718 * doc/extend.texi: Add MeP attributes and pragmas.
11719 * doc/invoke.text: Add MeP Options.
11720 * doc/contrib.texi: Add MeP contribution.
11721 * doc/md.texi: Add MeP constraints.
11722 * doc/install.texi: Add MeP target.
11723
11724 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11725
11726 * target.h (struct gcc_target): Add frame_pointer_required field.
11727 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11728 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11729 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11730 hook.
11731 * reload1.c (update_eliminables): (Ditto.).
11732 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11733 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11734 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11735
11736 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11737
11738 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11739 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11740 (arm_frame_pointer_required): New function.
11741
11742 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11743 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11744 (avr_frame_pointer_required_p): Declare as static.
11745 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11746
11747 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11748 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11749 (bfin_frame_pointer_required): Make as static, change return type
11750 to bool.
11751 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11752
11753 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11754 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11755 (cris_frame_pointer_required): New function.
11756
11757 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11758
11759 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11760 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11761 (fr30_frame_pointer_required): New function.
11762
11763 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11764 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11765 (frv_frame_pointer_required): Make as static, change return type
11766 to bool.
11767 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11768
11769 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11770 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11771 (ix86_frame_pointer_required): Make as static, change return type to
11772 bool.
11773 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11774
11775 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11776 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11777
11778 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11779
11780 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11781
11782 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11783
11784 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11785 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11786 (mips_frame_pointer_required): Make as static.
11787 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11788
11789 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11790 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11791 (mmix_frame_pointer_required): Mew function.
11792
11793 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11794 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11795
11796 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11797
11798 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11799
11800 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11801
11802 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11803 (CAN_ELIMINATE): Redefine.
11804 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11805 (sparc_frame_pointer_required): New function.
11806 (sparc_can_eliminate): New function.
11807 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11808
11809 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11810 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11811
11812 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11813 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11814 (xtensa_frame_pointer_required): Make as static, change return type
11815 to bool.
11816 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11817 Remove.
11818
11819 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11820
11821 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11822 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11823 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11824 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11825 (register_callback): Handle PLUGIN_START_UNIT.
11826 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11827
11828 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11829
11830 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11831 operands.
11832 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11833 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11834
11835 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11836
11837 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11838 move cost.
11839
11840 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11841
11842 * doc/extend.texi (Additional Floating Types): __float128 is also
11843 supported on i386 targets.
11844
11845 2009-06-29 Richard Guenther <rguenther@suse.de>
11846
11847 PR middle-end/14187
11848 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11849 flag.
11850 (pt_solutions_same_restrict_base): Declare.
11851 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11852 flag.
11853 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11854 (make_constraint_from, make_copy_constraint): Move earlier.
11855 (make_constraint_from_heapvar): New function.
11856 (make_constraint_from_restrict): Likewise.
11857 (handle_lhs_call): Use it.
11858 (find_func_aliases): Use it to track conversions to restrict
11859 qualified pointers.
11860 (struct fieldoff): Add only_restrict_pointers flag.
11861 (push_fields_onto_fieldstack): Initialize it.
11862 (create_variable_info_for): Track global restrict qualified pointers.
11863 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11864 Track restrict qualified pointer arguments.
11865 (set_uids_in_ptset): Use varinfo is_global_var flag.
11866 (find_what_var_points_to): Set the vars_contains_restrict flag.
11867 Always create the points-to solution for sets including restrict tags.
11868 (pt_solutions_same_restrict_base): New function.
11869 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11870 qualified pointers use pt_solutions_same_restrict_base as
11871 additional source for disambiguation.
11872
11873 2009-06-29 Richard Guenther <rguenther@suse.de>
11874
11875 PR middle-end/38212
11876 * alias.c (find_base_decl): Remove.
11877 (get_deref_alias_set_1): Remove restrict handling.
11878 * c-common.c (c_apply_type_quals_to_decl): Do not set
11879 DECL_POINTER_ALIAS_SET.
11880 * gimplify.c (find_single_pointer_decl_1): Remove.
11881 (find_single_pointer_decl): Likewise.
11882 (internal_get_tmp_var): Remove restrict handling.
11883 (gimple_regimplify_operands): Likewise.
11884 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11885 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11886 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11887 * tree.c (restrict_base_for_decl): Remove.
11888 (init_ttree): Do not allocate it.
11889 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11890 LABEL_DECL_UID for label decls.
11891 (copy_node_stat): Do not copy restrict information.
11892 (decl_restrict_base_lookup): Remove.
11893 (decl_restrict_base_insert): Likewise.
11894 (print_restrict_base_statistics): Likewise.
11895 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11896 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11897 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11898 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11899 (LABEL_DECL_UID): Adjust.
11900 (DECL_BASED_ON_RESTRICT_P): Remove.
11901 (DECL_GET_RESTRICT_BASE): Likewise.
11902 (SET_DECL_RESTRICT_BASE): Likewise.
11903 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11904
11905 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11906 instead of DECL_POINTER_ALIAS_SET.
11907 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11908 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11909 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11910
11911 2009-06-29 Richard Guenther <rguenther@suse.de>
11912
11913 PR tree-optimization/40579
11914 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11915 the IL to simplify has constants that overflowed.
11916
11917 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11918
11919 PR tree-optimization/40550
11920 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11921 vector_compute_type only when the size of vector_compute_type is
11922 less than the size of type.
11923
11924 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11925
11926 * fold-const.c (contains_label_1): Fix comments.
11927 (contains_label_p): Do not walk trees multiple time.
11928
11929 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11930
11931 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11932 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11933 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11934 ix86_fp_comparison_operator.
11935 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11936 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11937 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11938 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11939 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11940 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11941 (related splits): Change predicate to ix86_fp_comparison_operator.
11942 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11943 instead of ix86_fp_comparison_codes.
11944 (ix86_trivial_fp_comparison_operator,
11945 ix86_fp_comparison_operator): New.
11946 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11947 (ix86_expand_compare): Eliminate last two parameters.
11948 (ix86_fp_jump_nontrivial_p): Kill.
11949 * config/i386/i386.c (put_condition_code): Eliminate call to
11950 ix86_fp_comparison_codes and subsequent assertion.
11951 (ix86_fp_comparison_codes): Eliminate.
11952 (ix86_fp_swap_condition): New.
11953 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11954 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11955 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11956 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11957 and ix86_fp_swap_condition.
11958 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11959 Use ix86_fp_comparison_strategy.
11960 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11961 (ix86_fp_jump_nontrivial_p): Eliminate.
11962 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11963 call to ix86_expand_compare.
11964 (ix86_split_fp_branch, ix86_expand_setcc,
11965 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11966 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11967
11968 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11969
11970 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11971 related to jump_clobbers.
11972 * config/arm/arm.md (conds): Remove jump_clob case.
11973 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11974 splits): Change comparison_operator to arm_comparison_operator.
11975 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11976 Eliminate.
11977
11978 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11979
11980 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11981 condition for floating point modes.
11982 * expmed.c (emit_store_flag_1): Move here a bigger part
11983 of emit_store_flag.
11984 (emit_store_flag): Try swapping the condition for floating point
11985 modes.
11986 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11987
11988 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11989
11990 * expr.c (expand_expr_real_1): Just use do_store_flag.
11991 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11992 emit_store_flag_force.
11993 * expmed.c (emit_store_flag_force): Copy here trick
11994 previously in expand_expr_real_1. Try reversing the comparison.
11995 (emit_store_flag_1): Work if target is NULL.
11996 (emit_store_flag): Work if target is NULL, using the result mode
11997 from the comparison. Use split_comparison, restructure final part
11998 to simplify conditionals.
11999
12000 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
12001
12002 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
12003 * dojump.c (do_jump): Change handling of floating-point
12004 ops to use just do_compare_and_jump.
12005 (split_comparison): New.
12006 (do_compare_rtx_and_jump): Add here logic coming previously
12007 in do_jump, using split_comparison.
12008
12009 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
12010
12011 PR target/40489
12012 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
12013
12014 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12015
12016 * tree-ssa-alias.c: Fix unintentional commit.
12017
12018 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12019
12020 * passes.c (execute_one_pass): Fix unintentional commit.
12021
12022 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12023
12024 * df-problems.c (df_set_seen, df_unset_seen): Delete.
12025 (df_rd_local_compute, df_md_local_compute): Inline them.
12026
12027 (df_md_scratch): New.
12028 (df_md_alloc, df_md_free): Allocate/free it.
12029 (df_md_local_compute): Only include live registers in init.
12030 (df_md_transfer_function): Prune the in-set computed by
12031 the confluence function, and the gen-set too.
12032
12033 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12034
12035 PR rtl-optimization/26854
12036 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
12037 * df-problems.c (df_rd_add_problem): Fix comment.
12038 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
12039 df_md_simulate_artificial_defs_at_top,
12040 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
12041 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
12042 df_md_transfer_function, df_md_init, df_md_confluence_0,
12043 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
12044 problem_MD, df_md_add_problem): New.
12045 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
12046 df_md_get_bb_info): New.
12047 (DF_LAST_PROBLEM_PLUS1): Adjust.
12048
12049 * Makefile.in (fwprop.o): Include domwalk.h.
12050 * fwprop.c: Include domwalk.h.
12051 (reg_defs, reg_defs_stack): New.
12052 (bitmap_only_bit_between): Remove.
12053 (process_defs): New.
12054 (process_uses): Use reg_defs and local_md instead of
12055 bitmap_only_bit_between and local_rd.
12056 (single_def_use_enter_block): New, from build_single_def_use_links.
12057 (single_def_use_leave_block): New.
12058 (build_single_def_use_links): Remove code moved to
12059 single_def_use_enter_block, invoke domwalk.
12060 (use_killed_between): Adjust comment.
12061
12062 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12063
12064 * bitmap.h (bitmap_ior_and_into): New.
12065 * bitmap.c (bitmap_ior_and_into): New.
12066
12067 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12068
12069 * domwalk.h (struct dom_walk_data): Remove all callbacks except
12070 before_dom_children_before_stmts and after_dom_children_after_stmts.
12071 Rename the two remaining callbacks to just before_dom_children and
12072 after_dom_children. Remove other GIMPLE statement walking bits.
12073 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
12074 * graphite.c: Do not include domwalk.h.
12075 * tree-into-ssa.c (interesting_blocks): New global.
12076 (struct mark_def_sites_global_data): Remove it and names_to_rename.
12077 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
12078 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
12079 now that they're not domwalk callbacks.
12080 (rewrite_initialize_block): Rename to...
12081 (rewrite_enter_block): ... this, place after called functions. Test
12082 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
12083 (rewrite_finalize_block): Rename to...
12084 (rewrite_leave_block): ... this, place after called functions.
12085 (rewrite_update_init_block): Rename to...
12086 (rewrite_update_enter_block): ... this, place after called functions.
12087 Test interesting_blocks, call rewrite_update_stmt and
12088 rewrite_update_phi_arguments.
12089 (rewrite_update_fini_block): Rename to...
12090 (rewrite_leave_block): ... this, place after called functions.
12091 (rewrite_blocks): Remove last argument, simplify initialization of
12092 walk_data.
12093 (mark_def_sites_initialize_block): Rename to...
12094 (mark_def_sites_block): ... this, call mark_def_sites.
12095 (mark_def_sites_blocks): Remove argument, simplify initialization of
12096 walk_data.
12097 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
12098 (update_ssa): Likewise.
12099 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
12100 callback.
12101 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
12102 (dom_opt_initialize_block): Rename to...
12103 (dom_opt_enter_block): ... this, place after called functions. Walk
12104 statements here, inline propagate_to_outgoing_edges.
12105 (dom_opt_finalize_block): Rename to...
12106 (dom_opt_leave_block): ... this, place after called functions.
12107 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
12108 domwalk callback.
12109 (dse_enter_block, dse_record_phi): New.
12110 (dse_record_phis): Delete.
12111 (dse_finalize_block): Rename to...
12112 (dse_leave_block): ... this.
12113 (tree_ssa_dse): Simplify initialization of walk_data.
12114 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
12115 Adjust initialization of walk_data.
12116 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
12117 * tree-ssa-loop-phiopt.c (get_non_trapping):
12118 Adjust initialization of walk_data.
12119 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12120 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12121 it's not a domwalk callback.
12122 (uncprop_initialize_block): Rename to...
12123 (dse_enter_block): ... this, call uncprop_into_successor_phis.
12124 (dse_finalize_block): Rename to...
12125 (dse_leave_block): ... this.
12126 (tree_ssa_uncprop): Simplify initialization of walk_data.
12127 * Makefile.in: Adjust dependencies.
12128
12129 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
12130
12131 * arm.md (casesi): Fix test for Thumb1.
12132 (thumb1_casesi_internal_pic): Likewise.
12133 (thumb1_casesi_dispatch): Likewise.
12134
12135 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
12136
12137 * config/arm/arm-cores.def: Added core cortex-m0.
12138 * config/arm/arm-tune.md: Regenerated.
12139 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12140
12141 2009-06-26 DJ Delorie <dj@redhat.com>
12142
12143 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12144
12145 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12146 the scheduler doesn't tag jump insns.
12147
12148 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
12149
12150 * c-decl.c (merge_decls): Re-indent.
12151
12152 2009-06-26 Janis Johnson <janis187@us.ibm.com>
12153
12154 PR c/39902
12155 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12156 Special-case decimal float constants.
12157
12158 2009-06-26 Richard Henderson <rth@redhat.com>
12159
12160 * function.h (struct function): Add cannot_be_copied_reason,
12161 and cannot_be_copied_set.
12162 * tree-inline.c (has_label_address_in_static_1): Rename from
12163 inline_forbidden_p_2; don't set inline_forbidden_reason here.
12164 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12165 don't set inline_forbidden_reason.
12166 (copy_forbidden): New function, split out of inline_forbidden_p.
12167 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12168 (inline_forbidden_p): Use copy_forbidden.
12169 (tree_versionable_function_p): Likewise.
12170 (inlinable_function_p): Merge into tree_inlinable_function_p.
12171 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12172 * ipa-cp.c (ipcp_versionable_function_p): New function.
12173 (ipcp_cloning_candidate_p): Use it.
12174 (ipcp_node_modifiable_p): Likewise.
12175
12176 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
12177
12178 * builtins.c (expand_builtin_alloca): Handle builtin alloca
12179 that is marked not to be inlined. Remove flag_mudflap use.
12180 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12181 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12182
12183 2009-06-26 Steve Ellcey <sje@cup.hp.com>
12184
12185 PR bootstrap/40338
12186 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12187 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12188
12189 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
12190
12191 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12192 shared libgcc.
12193 (__mingwthr_remove_key_dtor): Likewise.
12194
12195 2009-06-26 Richard Guenther <rguenther@suse.de>
12196
12197 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12198
12199 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
12200
12201 PR middle-end/40525
12202 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12203 try the non-cond_exec path also.
12204
12205 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12206
12207 PR target/40468
12208 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12209 (output_cbranch): Use new functions.
12210 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12211 Likewise.
12212
12213 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12214 Pat Haugen <pthaugen@us.ibm.com>
12215 Revital Eres <ERES@il.ibm.com>
12216
12217 * config/rs6000/rs6000.c (print_operand): Correct lossage message
12218 for %c error. Add %x support to print VSX registers as a unified
12219 register set, instead of separate float and altivec registers.
12220 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12221 %y case, and add support for VSX pre-modify addresses.
12222 (output_toc): Add assert for CONST containing an integer constant
12223 in the PLUS case.
12224 (rs6000_adjust_cost): Add POWER7 support.
12225 (insn_must_be_first_in_group): Ditto.
12226 (insn_must_be_last_in_group): Ditto.
12227 (rs6000_emit_popcount): Ditto.
12228 (rs6000_vector_mode_supported_p): Ditto.
12229
12230 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12231 Change some of the functions called by macros to being called
12232 through a pointer, so debug functions can be inserted if
12233 -mdebug=addr or -mdebug=cost.
12234 (rs6000_preferred_reload_class_ptr): Ditto.
12235 (rs6000_secondary_reload_class_ptr): Ditto.
12236 (rs6000_secondary_memory_needed_ptr): Ditto.
12237 (rs6000_cannot_change_mode_class_ptr): Ditto.
12238 (rs6000_secondary_reload_inner): Ditto.
12239 (rs6000_legitimize_reload_address): Ditto.
12240 (rs6000_legitimize_reload_address_ptr): Ditto.
12241 (rs6000_mode_dependent_address): Ditto.
12242 (rs6000_mode_dependent_address_ptr): Ditto.
12243
12244 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12245 function to return true if the mode allows reg + integer
12246 addresses.
12247 (virtual_stack_registers_memory_p): New function to return true if
12248 the address refers to a virtual stack register.
12249 (rs6000_legitimate_offset_address_p): Move code to say whether a
12250 mode supports reg+int addressing to reg_offset_addressing_ok_p and
12251 call it.
12252 (rs6000_legitimate_address_p): Add checks for modes that only can
12253 do reg+reg addressing. Start adding VSX support.
12254 (rs6000_legitimize_reload_address): Ditto.
12255 (rs6000_legitimize_address): Ditto.
12256 (rs6000_debug_legitimate_address_p): New debug functions for
12257 -mdebug=addr and -mdebug=cost.
12258 (rs6000_debug_rtx_costs): Ditto.
12259 (rs6000_debug_address_costs): Ditto.
12260 (rs6000_debug_adjust_cost): Ditto.
12261 (rs6000_debug_legitimize_address): Ditto.
12262 (rs6000_legitimize_reload_address_ptr): Point to call normal
12263 function or debug function. Make functions called via pointer
12264 static.
12265 (rs6000_mode_dependent_address_ptr): Ditto.
12266 (rs6000_secondary_reload_class_ptr): Ditto.
12267 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12268 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
12269 into a friendlier error.
12270 (rs6000_init_builtins): Add initial VSX support.
12271 (rs6000_adjust_cost): Fix some spacing issues.
12272
12273 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12274 (REG_CLASS_NAMES): Ditto.
12275 (REG_CLASS_CONTENTS): Ditto.
12276 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12277 pointer, to add -mdebug=addr support.
12278 (CANNOT_CHANGE_MODE_CLASS): Ditto.
12279 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12280 -mdebug=addr support.
12281 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12282 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12283 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12284
12285 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12286 16-bit values.
12287 (bswapsi*): Set attribute types for load/store. Add combiner
12288 patterns to eliminate zero extend on 64-bit.
12289 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
12290 stdbrx if the hardware supports those instructions.
12291
12292 2009-06-25 Ian Lance Taylor <iant@google.com>
12293
12294 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12295 (Link Options): Document -static-libstdc++.
12296
12297 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12298
12299 PR target/38731
12300 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12301 DATA_ALIGNMENT instead.
12302
12303 2009-06-25 Richard Guenther <rguenther@suse.de>
12304
12305 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12306 indirect references against the callused/escaped solutions.
12307 (call_may_clobber_ref_p_1): Likewise.
12308
12309 2009-06-25 Martin Jambor <mjambor@suse.cz>
12310
12311 PR tree-optimization/40493
12312 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12313 (enum unscalarized_data_handling): New type.
12314 (handle_unscalarized_data_in_subtree): Return what has been done.
12315 (load_assign_lhs_subreplacements): Handle left flushes differently.
12316 (sra_modify_assign): Use unscalarized_data_handling, simplified
12317 condition determining whether to remove the statement.
12318
12319 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12320
12321 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12322 excerpt - @ should be doubled for texinfo.
12323
12324 2009-06-24 Ian Lance Taylor <iant@google.com>
12325
12326 * config/arc/arc.c: Include "df.h".
12327 (arc_attribute_table): Make static. Move higher in file.
12328 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12329 (output_shift): Initialize n later to avoid warning.
12330 * config/arm/arm.c (arm_attribute_table): Make static. Move
12331 higher in file.
12332 * config/avr/avr.c (avr_attribute_table): Make static. Move
12333 higher in file.
12334 (reg_class_tab): Change array type from int to enum reg_class.
12335 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12336 LABEL_REF.
12337 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12338 (lshrhi3_out): Likewise.
12339 (class_likely_spilled_p): Change return type to bool.
12340 (avr_rtx_costs): Use local code variable with enum type.
12341 * config/avr/avr.md (movmemhi): Use add_reg_note.
12342 (andhi3, andsi3): Don't use AS2 with "and".
12343 (iorhi3, iorsi3): Don't use AS2 with "or".
12344 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12345 * config/crx/crx.c: Include "df.h".
12346 (crx_attribute_table): Make static.
12347 * config/m32r/m32r.c: Include "df.h".
12348 (m32r_attribute_table): Make static. Move higher in file.
12349 (pop): Use add_reg_note.
12350 (block_move_call): Change 0 to LCT_NORMAL in function call.
12351 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12352 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12353 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12354 declare, not just when TREE_CODE is defined.
12355 * config/m68hc11/m68hc11.c: Include "expr.h".
12356 (m68hc11_attribute_table): Make static. Move higher in file.
12357 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12358 function call.
12359 (m68hc11_register_indirect_p): Likewise.
12360 (m68hc11_function_arg_padding): Change return type to enum
12361 direction.
12362 (emit_move_after_reload): Use add_reg_note.
12363 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12364 (m68hc11_split_logical): Likewise.
12365 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12366 enum type.
12367 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12368 to VOIDmode in function call.
12369 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12370 tree is defined.
12371 (m68hc11_split_logical): Update declaration.
12372 (m68hc11_function_arg_padding): Update declaration.
12373 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12374 to array of enum reg_class.
12375 (mcore_attribute_table): Make static. Move higher in file.
12376 (mcore_rtx_costs): Add cast to enum type.
12377 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12378 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12379 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12380 in file.
12381 * config/sh/predicates.md (trapping_target_operand): Rename and to
12382 and_expr.
12383 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12384 higher in file.
12385 * config/spu/spu.c (spu_attribute_table): Make static. Move
12386 higher in file.
12387 * config/v850/v850.c (v850_attribute_table): Make static. Move
12388 higher in file.
12389 (v850_rtx_costs): Use local code with enum type.
12390 (expand_epilogue): Add cast.
12391 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12392
12393 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12394
12395 PR target/40515
12396 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12397 -m2a-single-only and -m2a-nofpu.
12398 * config/sh/sh.opt: Document m2a generates FPU code.
12399
12400 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12401
12402 * defaults.h (CAN_ELIMINATE): Provide default.
12403 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12404 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12405 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12406 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12407 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12408 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12409 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12410 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12411 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12412 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12413
12414 2009-06-24 DJ Delorie <dj@redhat.com>
12415
12416 * mep-ext-cop.cpu: Fix copyright notice.
12417 * mep-default: Fix copyright notice.
12418 * mep-core: Fix copyright notice.
12419 * mep: Fix copyright notice.
12420 * mep-ivc2: Fix copyright notice.
12421 * mep-c5: Fix copyright notice.
12422
12423 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12424
12425 * doc/contrib.texi (Contributors):
12426
12427 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12428
12429 PR middle-end/40501
12430 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12431 src and dst operands if necessary.
12432
12433 2009-06-23 DJ Delorie <dj@redhat.com>
12434
12435 Add MeP port.
12436 * config.gcc: Add mep support.
12437 * recog.c: Resurrect validate_replace_rtx_subexp().
12438 * recog.h: Likewise.
12439 * config/mep/: Add new port:
12440 * config/mep/constraints.md: New file.
12441 * config/mep/default.h: New file.
12442 * config/mep/intrinsics.h: New file.
12443 * config/mep/intrinsics.md: New file.
12444 * config/mep/ivc2-template.h: New file.
12445 * config/mep/mep-c5.cpu: New file.
12446 * config/mep/mep-core.cpu: New file.
12447 * config/mep/mep-default.cpu: New file.
12448 * config/mep/mep-ext-cop.cpu: New file.
12449 * config/mep/mep-intrin.h: New file.
12450 * config/mep/mep-ivc2.cpu: New file.
12451 * config/mep/mep-lib1.asm: New file.
12452 * config/mep/mep-lib2.c: New file.
12453 * config/mep/mep-pragma.c: New file.
12454 * config/mep/mep-protos.h: New file.
12455 * config/mep/mep-tramp.c: New file.
12456 * config/mep/mep.c: New file.
12457 * config/mep/mep.cpu: New file.
12458 * config/mep/mep.h: New file.
12459 * config/mep/mep.md: New file.
12460 * config/mep/mep.opt: New file.
12461 * config/mep/predicates.md: New file.
12462 * config/mep/t-mep: New file.
12463
12464 2009-06-23 Ian Lance Taylor <iant@google.com>
12465
12466 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12467 from loose_warn into c_loose_warn and from strict_warn into
12468 c_strict_warn. Set and substitute warn_cxxflags. Check for
12469 --enable-build-with-cxx. Set and substitute
12470 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12471 * Makefile.in (CXXFLAGS): New variable.
12472 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12473 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12474 the default is the same as $(STRICT_WARN).
12475 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12476 (CXX): New variable.
12477 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12478 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12479 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12480 (HOST_LIBS): New variable.
12481 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12482 (ALL_CXXFLAGS): New variable.
12483 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12484 * doc/install.texi (Configuration): Document
12485 --enable-build-with-cxx, --with-stage1-ldflags,
12486 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12487 * configure: Rebuild.
12488
12489 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12490
12491 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12492 from previous commit.
12493
12494 2009-06-23 Ian Lance Taylor <iant@google.com>
12495
12496 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12497
12498 2009-06-23 Ian Lance Taylor <iant@google.com>
12499
12500 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12501 with ATTRIBUTE_UNUSED.
12502
12503 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12504 Pat Haugen <pthaugen@us.ibm.com>
12505 Revital Eres <eres@il.ibm.com>
12506
12507 * config.in (HAVE_AS_POPCNTD): Add default definition.
12508 (HAVE_AS_LWSYNC): Ditto.
12509
12510 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12511 release number.
12512 (gcc_cv_as_powerpc_cmpb): Ditto.
12513 (gcc_cv_as_powerpc_dfp): Ditto.
12514 (gcc_cv_as_powerpc_vsx): Ditto.
12515 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12516 supporting the popcntd/lwsync instructions.
12517 (gcc_cv_as_powerpc_lwsync): Ditto.
12518 * configure: Regenerate.
12519
12520 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12521 -mcpu=native and -mcpu=power7.
12522 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12523
12524 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12525 a variable instead of a mask to reduce the number of mask bits.
12526 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12527 (-mbit-word): Ditto.
12528 (-mregnames): Ditto.
12529 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12530 (-mfused-madd): Ditto.
12531
12532 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12533 2.06 instructions.
12534 (-mvsx): New switch for VSX instructions.
12535 (-misel): Move from a variable to a mask to allow it to be set by
12536 -mcpu=.
12537
12538 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12539 function declaration to an array declaration.
12540 (rs6000_hard_regno_nregs): New external array declaration.
12541
12542 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12543 files included by rs6000.md.
12544
12545 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12546 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12547
12548 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12549 a target mask.
12550 (rs6000_debug_reg): New -mdebug= variables.
12551 (rs6000_debug_addr): Ditto.
12552 (rs6000_debug_cost): Ditto.
12553 (rs6000_pmode): New variable to hold Pmode.
12554 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12555 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12556 calculated at compiler start.
12557 (rs6000_hard_regno_nregs): Change function to an array which holds
12558 HARD_REGNO_NREGS calculated at compiler start.
12559 (rs6000_explicit_options): Delete isel field.
12560 (rs6000_vector_unit): New array to hold which vector unit
12561 supports arithmetic options for a given type.
12562 (rs6000_vector_mem): New array to hold which vector unit supports
12563 memory reference operations for a given type.
12564 (rs6000_vector_align): New array to given the alignment of each
12565 vector type.
12566 (power7_cost): New basic costs for power7.
12567 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12568 (rs6000_hard_regno_nregs_internal): New function, moved from
12569 HARD_REGNO_NREGS, to calculate the number of registers each hard
12570 register takes for each type.
12571 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12572 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12573 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12574 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12575 unit information here so it is calculated once at compiler startup
12576 time.
12577 (rs6000_override_options): Make -misel a target mask. Add more
12578 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12579 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12580 -mdebug=cost.
12581 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12582 (rs6000_handle_option): Move -misel from variable to target mask.
12583 (rs6000_builtin_mask_for_load): Add VSX support.
12584 (rs6000_conditional_register_usage): Ditto.
12585 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12586 (function_arg_boundary): Ditto.
12587 (rs6000_expand_builtin): Ditto.
12588 (def_builtin): Make abort message a little friendlier.
12589 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12590
12591 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12592 assembler support the popcntd instruction instead of a vsx
12593 instruction to enable power7 support.
12594 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12595 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12596 option to the assembler if -mcpu=native.
12597 (ASM_CPU_NATIVE_SPEC): Ditto.
12598 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12599 ISA 2.06 features.
12600 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12601 the lwsync instruction.
12602 (enum processor_type): Add PROCESSOR_POWER7.
12603 (rs6000_debug_reg): New -mdebug= options.
12604 (rs6000_debug_addr): Ditto.
12605 (rs6000_debug_cost): Ditto.
12606 (rs6000_isel): Delete.
12607 (enum rs6000_vector): New enum to say what vector unit we have.
12608 (VECTOR_UNIT_*): New macros to say which vector unit has
12609 arithmetic operations for a given type.
12610 (VECTOR_MEM_*): New macros to say which vector unit has memory
12611 operations for a given type.
12612 (TARGET_LDBRX): Whether the machine supports the ldbrx
12613 instruction.
12614 (TARGET_ISEL): Delete, -misel moved to be a mask.
12615 (TARGET_ISEL64): New macro for 64-bit isel support.
12616 (UNITS_PER_VSX_WORD): New macro.
12617 (POINTER_SIZE): Move to be an external variable, rather than
12618 calculating whether we are generating 32 ot 64-bit code.
12619 (Pmode): Ditto.
12620 (STACK_BOUNDARY): Add VSX support.
12621 (LOCAL_ALIGNMENT): Ditto.
12622 (SLOW_UNALIGNED_ACCESS): Ditto.
12623 (VSX_REGNO_P): New macro for VSX support.
12624 (VFLOAT_REGNO_P): Ditto.
12625 (VINT_REGNO_P): Ditto.
12626 (VLOGICAL_REGNO_P): Ditto.
12627 (VSX_VECTOR_MODE): Ditto.
12628 (VSX_SCALAR_MODE): Ditto.
12629 (VSX_MODE): Ditto.
12630 (VSX_MOVE_MODE): Ditto.
12631 (VSX_REG_CLASS_P): Ditto.
12632 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12633 lookup.
12634 (UNITS_PER_SIMD_WORD): Add VSX support.
12635 (MODES_TIEABLE_P): Ditto.
12636 (STARTING_FRAME_OFFSET): Ditto.
12637 (STACK_DYNAMIC_OFFSET): Ditto.
12638 (EPILOGUE_USES): Ditto.
12639 (REGNO_REG_CLASS): Move to array lookup.
12640 (CLASS_MAX_NREGS): Ditto.
12641 (rs6000_vector_reg_class): Add declaration.
12642 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12643 overlap with the floating point and Altivec registers.
12644
12645 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12646
12647 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12648 give the appropriate asm switches if -mcpu=native.
12649 (host_detect_local_cpu): Add support for "asm".
12650 (host_detect_local_cpu): Follow GNU code guidelines for name.
12651
12652 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12653 -mbit-word to a variable instead of being a target mask.
12654
12655 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12656 emit the lwsync instruction instead of emitting the instruction as
12657 an integer constant.
12658
12659 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12660 fixuns_trundfsi2, move expander into rs6000.md.
12661
12662 * config/rs6000/rs6000.md (cpu): Add power7.
12663 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12664 (logical predicate patterns): Change the single instruction
12665 primitives that set CR0 to be fast_compare instead of compare.
12666 (norsi*): Ditto.
12667 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12668 (popcntddi2): Ditto.
12669 (popcount<mode>): Ditto.
12670 (floating multiply/add insns): Name the floating point
12671 multiply/add insns.
12672 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12673 (isel_unsigned_<mode>): Ditto.
12674 (fixuns_trundfsi2): Move expander here from spe.md.
12675 (smindi3): Define if we have -misel on 64-bit systems.
12676 (smaxdi3): Ditto.
12677 (umindi3): Ditto.
12678 (umaxdi3): Ditto.
12679
12680 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12681
12682 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12683 extra_objs.
12684 * config/avr/avr.c (avr_current_device): New variable.
12685 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12686 (avr_arch, mcu_type_s): Move to avr.h.
12687 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12688 default_data_section_start fields.
12689 (avr_arch): Moved from avr.c.
12690 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12691 library_name fields.
12692 (avr_current_device, avr_mcu_types, avr_arch_types,
12693 avr_device_to_arch, avr_device_to_data_start,
12694 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12695 (EXTRA_SPEC_FUNCTIONS): Define.
12696 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12697 options mapping. Use device_to_arch and device_to_data_start insted.
12698 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12699 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12700 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12701 * config/avr/driver-avr.c: New file.
12702 * config/avr/avr-devices.c: New file.
12703
12704 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12705
12706 * var-tracking.c (unshare_variable): Force initialized to
12707 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12708 (set_variable_part): Likewise.
12709 (struct variable_union_info): Remove pos_src field.
12710 (vui_vec, vui_allocated): New variables.
12711 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12712 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12713 == 1 use a simpler sorting algorithm. Compute pos field right
12714 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12715 Avoid quadratic comparison if !flag_var_tracking_uninit.
12716 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12717 unshare_variable unconditionally.
12718 (dataflow_set_different_2): Removed.
12719 (dataflow_set_different): Don't traverse second hash table.
12720 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12721 unconditionally to var_reg_set or var_mem_set.
12722 (emit_notes_in_bb): Likewise.
12723 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12724 unshare_variable.
12725 (emit_note_insn_var_location): Don't set initialized to
12726 VAR_INIT_STATUS_INITIALIZED early.
12727 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12728 vui_allocated.
12729 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12730
12731 * tree-object-size.c (addr_object_size): Instead of checking
12732 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12733 are no FIELD_DECLs following it.
12734
12735 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12736
12737 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12738 order to match bswaps with signed source operands.
12739
12740 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12741
12742 * sdbout.c (sdbout_one_type): Fix braces in switch.
12743
12744 2009-06-23 Richard Guenther <rguenther@suse.de>
12745
12746 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12747 member.
12748 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12749 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12750 var_callused, callused_tree, var_storedanything, storedanything_tree,
12751 var_integer, integer_tree): Remove global variables.
12752 (new_var_info): Do not pass new id, append the new var to the
12753 global variable vector.
12754 (do_ds_constraint): Use is_global_var member of the variable-info.
12755 (new_scalar_tmp_constraint_exp): Adjust.
12756 (create_function_info_for): Likewise.
12757 (create_variable_info_for): Likewise.
12758 (find_what_var_points_to): Remove dead code.
12759 (init_base_vars): Simplify.
12760 (compute_points_to_sets): Adjust.
12761
12762 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12763
12764 * combine.c (try_combine): Dump information about the insns we're
12765 combining.
12766
12767 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12768
12769 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12770 check when calling force_to_mode on TRUNCATE's operand.
12771
12772 2009-06-22 Ian Lance Taylor <iant@google.com>
12773
12774 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12775
12776 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12777
12778 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12779
12780 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12781
12782 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12783 override library linkage flags such as -static-libgcc or
12784 -shared-libgcc.
12785
12786 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12787
12788 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12789
12790 2009-06-22 Ian Lance Taylor <iant@google.com>
12791
12792 * config/linux.opt: Put mglibc ahead of muclibc.
12793
12794 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12795 for duplicate decls.
12796
12797 2009-06-22 Matthias Klose <doko@ubuntu.com>
12798
12799 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12800
12801 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12802
12803 PR objc/28050
12804 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12805 instead of NULL if a parser error occurs.
12806
12807 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12808
12809 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12810 non-DWARF2_DEBUGGING_INFO version.
12811
12812 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12813
12814 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12815 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12816
12817 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12818 (LIBGCC2_TF_CEXT): Define.
12819 (TF_SIZE): Define.
12820
12821 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12822
12823 PR target/40463
12824 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12825
12826 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12827
12828 * config/arm/arm.c (arm_override_options): Disable
12829 -mcaller-super-interworking and -mcallee-super-interworking.
12830 * doc/invoke.texi (ARM Options): Document this.
12831
12832 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12833
12834 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12835 * config/arm/constraints.md (j): New constraint for movw operands.
12836 (N): Remove thumb2 meaning.
12837 * config/arm/arm.md (*arm_movw): Delete.
12838 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12839 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12840 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12841
12842 2009-06-22 Martin Jambor <mjambor@suse.cz>
12843
12844 PR tree-optimization/40492
12845 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12846 build_ref_for_offset.
12847
12848 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12849
12850 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12851 JUMP_TABLE_DATA_P predicates where applicable.
12852 * auto-inc-dec.c: Ditto.
12853 * builtins.c: Ditto.
12854 * caller-save.c: Ditto.
12855 * calls.c: Ditto.
12856 * cfgcleanup.c: Ditto.
12857 * cfglayout.c: Ditto.
12858 * cfgrtl.c: Ditto.
12859 * combine.c: Ditto.
12860 * combine-stack-adj.c: Ditto.
12861 * cse.c: Ditto.
12862 * cselib.c: Ditto.
12863 * dbxout.c: Ditto.
12864 * df-scan.c: Ditto.
12865 * dse.c: Ditto.
12866 * dwarf2asm.c: Ditto.
12867 * dwarf2out.c: Ditto.
12868 * emit-rtl.c: Ditto.
12869 * except.c: Ditto.
12870 * explow.c: Ditto.
12871 * expmed.c: Ditto.
12872 * expr.c: Ditto.
12873 * final.c: Ditto.
12874 * function.c: Ditto.
12875 * fwprop.c: Ditto.
12876 * gcse.c: Ditto.
12877 * genpreds.c: Ditto.
12878 * genrecog.c: Ditto.
12879 * ifcvt.c: Ditto.
12880 * ira-costs.c: Ditto.
12881 * ira-lives.c: Ditto.
12882 * jump.c: Ditto.
12883 * loop-iv.c: Ditto.
12884 * lower-subreg.c: Ditto.
12885 * modulo-sched.c: Ditto.
12886 * optabs.c: Ditto.
12887 * postreload.c: Ditto.
12888 * print-rtl.c: Ditto.
12889 * recog.c: Ditto.
12890 * reginfo.c: Ditto.
12891 * regmove.c: Ditto.
12892 * reload1.c: Ditto.
12893 * reload.c: Ditto.
12894 * reorg.c: Ditto.
12895 * rtlanal.c: Ditto.
12896 * rtl.c: Ditto.
12897 * sched-vis.c: Ditto.
12898 * sdbout.c: Ditto.
12899 * sel-sched-ir.c: Ditto.
12900 * simplify-rtx.c: Ditto.
12901 * targhooks.c: Ditto.
12902 * var-tracking.c: Ditto.
12903 * vmsdbgout.c: Ditto.
12904
12905 2009-06-22 Matthias Klose <doko@ubuntu.com>
12906
12907 * Makefile.in (install-plugin): Always use DESTDIR.
12908
12909 2009-06-22 Olivier Hainque <hainque@adacore.com>
12910
12911 * config/pa/pa.c (output_call): Don't optimize post call jumps
12912 into return address adjustments if the call may throw.
12913
12914 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12915
12916 * arm.c (thumb1_output_casesi): New function.
12917 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12918 optimizing for size or PIC.
12919 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12920 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12921 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12922 (thumb1_casesi_internal_pic): New expand rule.
12923 (thumb1_casesi_dispatch): New pattern.
12924 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12925 thumb-1 mode.
12926 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12927 in the text seciton when PIC or optimizing for size.
12928 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12929 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12930 preservation properties of code.
12931 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12932 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12933 (__gnu_thumb1_case_si): New function.
12934 * t-arm (LIB1ASMSRC): Define here.
12935 (LIB1ASMFUNCS): Add some common functions.
12936 * t-arm-elf (LIB1ASMSRC): Delete.
12937 (LIB1ASMFUNCS): Append to existing set.
12938 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12939 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12940 * t-symbian (LIB1ASMFUNCS): Likewise.
12941 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12942 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12943
12944 2009-06-21 Richard Guenther <rguenther@suse.de>
12945
12946 PR tree-optimization/38729
12947 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12948 to loops with a single exit if -fno-expensive-optimizations.
12949
12950 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12951
12952 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12953 (dataflow_set): Change vars type from htab_t to shared_hash.
12954 (shared_hash_pool, empty_shared_hash): New variables.
12955 (vars_clear): Removed.
12956 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12957 shared_hash_find_slot_unshare, shared_hash_find_slot,
12958 shared_hash_find_slot_noinsert, shared_hash_find): New
12959 static inlines.
12960 (shared_hash_unshare, shared_hash_destroy): New functions.
12961 (unshare_variable): Unshare set->vars if shared, use
12962 shared_hash_htab.
12963 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12964 (get_init_value, find_src_set_src, dump_dataflow_set,
12965 clobber_variable_part, emit_notes_for_differences): Use
12966 shared_hash_htab.
12967 (dataflow_set_init): Remove second argument, set vars to
12968 empty_shared_hash instead of creating a new htab.
12969 (dataflow_set_clear): Call shared_hash_destroy and set vars
12970 to empty_shared_hash instead of calling vars_clear.
12971 (dataflow_set_copy): Don't call vars_copy, instead just share
12972 the src htab with dst.
12973 (variable_union): Use shared_hash_*, use initially NO_INSERT
12974 lookup if set->vars is shared. Don't keep slot cleared before
12975 calling unshare_variable. Unshare set->vars if needed.
12976 Even ->refcount == 1 vars must be unshared if set->vars is shared
12977 and var needs to be modified.
12978 (variable_canonicalize): New function.
12979 (dataflow_set_union): If dst->vars is empty, just share src->vars
12980 with dst->vars and traverse with variable_canonicalize to canonicalize
12981 and unshare what is needed.
12982 (dataflow_set_different): If old_set and new_set use the same shared
12983 htab, they aren't different. If number of htab elements is different,
12984 htabs are different. Use shared_hash_*.
12985 (dataflow_set_destroy): Call shared_hash_destroy instead of
12986 htab_delete.
12987 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12988 second argument to dataflow_set_init.
12989 (vt_initialize): Likewise. Initialize shared_hash_pool and
12990 empty_shared_hash, move bb in/out initialization afterwards.
12991 Use variable_htab_free instead of NULL as changed_variables del hook.
12992 (variable_was_changed): Change type of second argument to pointer to
12993 dataflow_set. When inserting var into changed_variables, bump
12994 refcount. Unshare set->vars if set is shared htab and slot needs to
12995 be cleared.
12996 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12997 lookup if set->vars is shared. Unshare set->vars if needed.
12998 Even ->refcount == 1 vars must be unshared if set->vars is shared
12999 and var needs to be modified. Adjust variable_was_changed caller.
13000 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
13001 vars must be unshared if set->vars is shared and var needs to be
13002 modified. Adjust variable_was_changed caller.
13003 (emit_note_insn_var_location): Don't pool_free var.
13004 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
13005 instead of 1.
13006 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
13007 free_alloc_pool on shared_hash_pool.
13008
13009 2009-06-20 Anthony Green <green@moxielogic.com>
13010
13011 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
13012 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
13013
13014 2009-06-20 Richard Guenther <rguenther@suse.de>
13015
13016 * tree-ssa-structalias.c (find_func_aliases): For memset use
13017 a constraint from NULL if we memset to zero.
13018 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
13019 we explicitly handle that do not read from memory.
13020 (call_may_clobber_ref_p_1): Properly handle builtins that may
13021 set errno.
13022
13023 2009-06-20 Richard Guenther <rguenther@suse.de>
13024
13025 PR tree-optimization/40495
13026 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
13027 (new_scalar_tmp_constraint_exp): New function.
13028 (process_constraint): Do not create temporary decls.
13029 (process_all_all_constraints): Likewise.
13030 (handle_const_call): Likewise.
13031 (create_function_info_for): Do not set decl.
13032
13033 2009-06-19 Ian Lance Taylor <iant@google.com>
13034
13035 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
13036 (rs6000_attribute_table): Make static; move before use.
13037
13038 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
13039
13040 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
13041 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
13042 Propagate the TREE_READONLY flag without overwriting it.
13043 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
13044 Propagate the TREE_READONLY flag onto the result.
13045 (process_call_operands): Move around. Use correct constant value.
13046
13047 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13048
13049 PR target/40482
13050 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
13051 * config/arm/arm.md: Likewise.
13052
13053 2009-06-19 Ian Lance Taylor <iant@google.com>
13054
13055 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
13056 to GIMPLE_ERROR_MARK.
13057
13058 * c-typeck.c (build_conditional_expr): Add op1_original_type and
13059 op2_original_type parameters. Warn about using different enum types.
13060 * c-parser.c (c_parser_conditional_expression): Pass original
13061 types to build_conditional_expr.
13062 * c-tree.h (build_conditional_expr): Update declaration.
13063
13064 2009-06-19 Ian Lance Taylor <iant@google.com>
13065
13066 * config/i386/i386.c (ix86_function_specific_save): Test that
13067 fields match values, rather than testing the values are in a
13068 certain range.
13069
13070 2009-06-19 Richard Guenther <rguenther@suse.de>
13071
13072 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13073 ADDR_EXPR pointers.
13074 (ptr_derefs_may_alias_p): Likewise.
13075 (ptr_deref_may_alias_ref_p_1): New function.
13076 (ptr_deref_may_alias_ref_p): Likewise.
13077 (ref_maybe_used_by_call_p_1): Handle builtins that are not
13078 covered by looking at the ESCAPED solution.
13079 (call_may_clobber_ref_p_1): Likewise.
13080 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13081 Handle NULL_TREE offset. Do not produce redundant constraints.
13082 (process_all_all_constraints): New helper function.
13083 (do_structure_copy): Use it.
13084 (handle_lhs_call): Likewise.
13085 (find_func_aliases): Handle some builtins with pointer arguments
13086 and/or return values explicitly.
13087
13088 2009-06-19 Ian Lance Taylor <iant@google.com>
13089
13090 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
13091
13092 2009-06-19 Ian Lance Taylor <iant@google.com>
13093
13094 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
13095
13096 2009-06-19 Ian Lance Taylor <iant@google.com>
13097
13098 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
13099 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
13100 version.
13101
13102 * c-decl.c (finish_decl): If -Wc++-compat, warn about
13103 uninitialized const.
13104
13105 2009-06-19 Ian Lance Taylor <iant@google.com>
13106
13107 * dse.c (struct store_info): Rename bitmap field to bmap. Change
13108 all uses.
13109
13110 * c-decl.c (in_struct, struct_types): Remove.
13111 (struct c_binding): Add in_struct field.
13112 (c_binding_ptr): Define type, along with VEC.
13113 (struct c_struct_parse_info): Define.
13114 (struct_parse_info): New static variable.
13115 (bind): Initialize in_struct field.
13116 (start_struct): Remove enclosing_in_struct and
13117 enclosing_struct_types parameters. Add
13118 enclosing_struct_parse_info parameter. Change all callers. Set
13119 struct_parse_info rather than in_struct and struct_types.
13120 (grokfield): If -Wc++-compat and there is a symbol binding for the
13121 field name, set the in_struct flag and push it on the
13122 struct_parse_info->fields vector.
13123 (warn_cxx_compat_finish_struct): New static function.
13124 (finish_struct): Remove enclosing_in_struct and
13125 enclosing_struct_types parameters. Add
13126 enclosing_struct_parse_info parameter. Change all callers. Don't
13127 set C_TYPE_DEFINED_IN_STRUCT here. Call
13128 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
13129 parameter. Only push on struct_types if warn_cxx_compat.
13130 (finish_enum): Only push on struct_types if warn_cxx_compat.
13131 (declspecs_add_type): Add loc parameter. Change all callers.
13132 Change all error calls to error_at. Pass loc, not input_location,
13133 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
13134 defined in a struct. If -Wc++-compat and parsing a struct, record
13135 that a typedef name was used.
13136 * c-parser.c (c_parser_declspecs): Get location to pass to
13137 declspecs_add_type.
13138 (c_parser_struct_or_union_specifier): Update calls to start_struct
13139 and finish_struct.
13140 * c-tree.h (struct c_struct_parse_info): Declare.
13141 (finish_struct, start_struct): Update declarations.
13142 (declspecs_add_type): Update declaration.
13143
13144 2009-06-19 Ian Lance Taylor <iant@google.com>
13145
13146 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13147 variable with an anonymous type.
13148
13149 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13150
13151 * see.c: Remove for real.
13152
13153 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13154
13155 * optabs.h (enum optab_index): Add new OTI_significand.
13156 (significand_optab): Define corresponding macro.
13157 * optabs.c (init_optabs): Initialize significand_optab.
13158 * genopinit.c (optabs): Implement significand_optab using
13159 significand?f2 patterns.
13160 * builtins.c (expand_builtin_mathfn): Handle
13161 BUILT_IN_SIGNIFICAND{,F,L}.
13162 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13163 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13164
13165 * config/i386/i386.md (significandxf2, significand<mode>2): New
13166 expanders to implement significandf, significand and significandl
13167 built-ins as inline x87 intrinsics.
13168
13169 2009-06-18 Anatoly Sokolov <aesok@post.ru>
13170
13171 * config/avr/avr.c (avr_override_options): Remove setting value of
13172 PARAM_INLINE_CALL_COST.
13173
13174 2009-06-18 Richard Henderson <rth@redhat.com>
13175
13176 PR 40488
13177 * tree-pass.h (TDF_ASMNAME): New.
13178 * tree-dump.c (dump_options): Add asmname.
13179 * doc/invoke.texi: Document it.
13180
13181 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13182 (dump_decl_name): ...here.
13183 (dump_function_name): New flags arg; mind TDF_ASMNAME.
13184 (dump_generic_node): Update dump_function_name calls.
13185 (print_call_name): New flags arg; update all dump calls.
13186 * diagnostic.h (print_call_name): Update.
13187 * gimple-pretty-print.c (dump_gimple_call): Update.
13188
13189 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
13190
13191 PR target/40470
13192 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13193
13194 2009-06-18 Diego Novillo <dnovillo@google.com>
13195
13196 * doc/plugins.texi: Document plugin_is_GPL_compatible.
13197 * plugin.c (str_license): Declare.
13198 (try_init_one_plugin): Assert that the symbol
13199 'plugin_is_GPL_compatible' exists.
13200
13201 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
13202
13203 * see.c: Remove.
13204 * Makefile.in (OBJS-common): Remove see.o.
13205 (see.o): Remove.
13206 * common.opt (fsee): Mark as preserved for backward compatibility.
13207 * opts.c (common_handle_option): Add OPT_fsee to the backward
13208 compatibility section.
13209 * passes.c (init_optimization_passes, pass_see): Remove pass.
13210 * timevar.def (TV_SEE): Remove.
13211 * tree-pass.h (pass_see): Remove declaration.
13212 * doc/invoke.texi (-fsee): Remove documentation.
13213
13214 2009-06-18 Martin Jambor <mjambor@suse.cz>
13215
13216 * tree-sra.c: Include statistics.h
13217 (sra_stats): New variable.
13218 (sra_initialize): Clear sra_stats.
13219 (create_access_replacement): Increment sra_stats.replacements.
13220 (get_access_replacement): Do not return twice.
13221 (analyze_all_variable_accesses): Increment statistics counter by the
13222 number of scalarized aggregates.
13223 (generate_subtree_copies): Increment sra_stats.subtree_copies.
13224 (sra_modify_expr): Increment sra_stats.exprs.
13225 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13226 (sra_modify_assign): Increment sra_stats.exprs,
13227 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13228 (perform_intra_sra): Update statistics counters.
13229 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13230
13231 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13232
13233 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13234 (arm_scalar_mode_supported_p): New function.
13235
13236 2009-06-18 Paul Brook <paul@codesourcery.com>
13237 Sandra Loosemore <sandra@codesourcery.com>
13238
13239 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13240 (__extendhfsf2, __truncsfhf2): Define.
13241 * config/arm/fp16.c: New file.
13242 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13243 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13244
13245 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13246
13247 * doc/extend.texi (Half-Precision): New section.
13248 * doc/invoke.texi (Option Summary): List -mfp16-format.
13249 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
13250 * config/arm/arm.opt (mfp16-format=): New.
13251 * config/arm/arm.c: Include intl.h.
13252 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13253 (TARGET_INVALID_RETURN_TYPE): Redefine.
13254 (TARGET_PROMOTED_TYPE): Redefine.
13255 (TARGET_CONVERT_TO_TYPE): Redefine.
13256 (arm_fp16_format): Define.
13257 (all_fpus): Add entry for neon-fp16.
13258 (fp_model_for_fpu): Likewise.
13259 (struct fp16_format): Declare.
13260 (all_fp16_formats): Define.
13261 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13262 functions.
13263 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13264 and no ldrh.
13265 (arm_legitimate_index_p): Treat HFmode like HImode.
13266 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13267 (coproc_secondary_reload_class): Special-case HFmode.
13268 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13269 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13270 (arm_init_fp16_builtins): New.
13271 (arm_init_builtins): Call it.
13272 (arm_invalid_parameter_type): New.
13273 (arm_invalid_return_type): New.
13274 (arm_promoted_type): New.
13275 (arm_convert_to_type).
13276 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
13277 format.
13278 (arm_emit_fp16_const): New function.
13279 (arm_mangle_type): Mangle __fp16 as "Dh".
13280 * config/arm/arm.h (TARGET_VFPD32): Make it know about
13281 FPUTYPE_NEON_FP16.
13282 (TARGET_NEON_FP16): New.
13283 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13284 (enum fputype): Add FPUTYPE_NEON_FP16.
13285 (enum arm_fp16_format_type): Declare.
13286 (arm_fp16_format): Declare.
13287 (LARGEST_EXPONENT_IS_NORMAL): Define.
13288 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13289 * config/arm/arm-modes.def (HFmode): Define.
13290 * config/arm/vfp.md (*movhf_vfp): New.
13291 (extendhfsf2): New.
13292 (truncsfhf2): New.
13293 * config/arm/arm.md (fpu): Add neon_fp16.
13294 (floatsihf2, floatdihf2): New.
13295 (fix_trunchfsi2, fix_trunchfdi2): New.
13296 (truncdfhf2): New.
13297 (extendhfdf2): New.
13298 (movhf): New.
13299 (*arm32_movhf): New.
13300 (*thumb1_movhf): New.
13301 (consttable_2): Add check for HFmode constants.
13302 (consttable_4): Handle HFmode constants.
13303
13304 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
13305
13306 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13307
13308 2009-06-17 Olivier Hainque <hainque@adacore.com>
13309
13310 * collect2.c (main): Use CONST_CAST2 to perform char ** to
13311 const char ** conversion in AIX specific section.
13312
13313 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
13314
13315 * config/i386/i386.c (ix86_special_builtin_type): Remove
13316 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
13317 (bdesc_special_args): Updated.
13318 (ix86_init_mmx_sse_builtins): Likewise.
13319 (ix86_expand_special_args_builtin): Likewise.
13320
13321 2009-06-17 Richard Henderson <rth@redhat.com>
13322
13323 * tree-pretty-print.c (maybe_dump_asm_name): New.
13324 (dump_decl_name): Use it.
13325 (PRINT_FUNCTION_NAME): Merge into...
13326 (dump_function_name): ... here. Use maybe_dump_asm_name.
13327
13328 2009-06-17 Cary Coutant <ccoutant@google.com>
13329
13330 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13331 Change caller.
13332 * debug.c (struct gcc_debug_hooks): Change placeholder for
13333 source_line hook.
13334 (debug_nothing_int_charstar_int): Replaced by...
13335 (debug_nothing_int_charstar_int_bool): ...this.
13336 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13337 source_line prototype.
13338 (debug_nothing_int_charstar_int): Replaced by...
13339 (debug_nothing_int_charstar_int_bool): ...this.
13340 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13341 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13342 Output is_stmt operand when necessary.
13343 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13344 (notice_source_line): Add is_stmt parameter.
13345 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13346 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13347 Change callers.
13348 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13349 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13350
13351 2009-06-17 Ian Lance Taylor <iant@google.com>
13352
13353 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13354 Change all uses.
13355 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13356 call uses.
13357
13358 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13359
13360 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13361 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13362 tree_strip_sign_nop_conversions and
13363 tree_ssa_strip_useless_type_conversions rather than stripping
13364 the operations here.
13365 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13366 Declare them.
13367 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13368 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13369 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13370 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13371 functions.
13372
13373 2009-06-17 Michael Eager <eager@eagercon.com>
13374
13375 * config/rs6000/constraints.md (register_constraint "d"): New.
13376 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13377 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13378 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13379 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13380 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13381 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13382 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13383 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13384 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13385 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13386 __fctiwz): Same.
13387 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13388 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13389 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13390 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13391 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13392 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13393 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13394 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13395 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13396 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13397 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13398 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13399 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13400 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13401
13402 2009-06-16 Ian Lance Taylor <iant@google.com>
13403
13404 * profile.c (total_num_never_executed): Don't define.
13405 (compute_branch_probabilities): Don't count or print
13406 num_never_executed.
13407 (init_branch_prob): Don't set total_num_never_executed.
13408 (end_branch_prob): Don't print total_num_never_executed.
13409
13410 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13411
13412 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13413
13414 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13415
13416 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13417 (nabstd2_fpr): Same.
13418
13419 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13420
13421 * expr.c (expand_assignment): Change complex type check.
13422
13423 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13424
13425 * doc/plugins.texi (Building GCC plugins): Added new section.
13426
13427 2009-06-17 Ian Lance Taylor <iant@google.com>
13428
13429 * c-pch.c (get_ident): Don't set size of templ array.
13430 (pch_init): Don't set size of partial_pch array.
13431
13432 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13433 string constant to intialize an array whose size is the length of
13434 the string.
13435
13436 2009-06-17 Richard Guenther <rguenther@suse.de>
13437
13438 PR tree-optimization/40389
13439 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13440 to addressable types.
13441 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13442
13443 2009-06-17 Richard Guenther <rguenther@suse.de>
13444
13445 PR middle-end/40460
13446 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13447 if there is no evolution of left in the loop bail out.
13448 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13449 chrec_fold_multiply.
13450
13451 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13452 Janis Johnson <janis187@us.ibm.com>
13453
13454 PR target/39254
13455 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13456 for the symbol ref of a constant that is the source of a move
13457 - nor for any other not-obvious-label-ref constants.
13458
13459 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13460
13461 * plugin.c (position_pass): Skip newly inserted pass during list
13462 traversal to avoid repeated insertion.
13463
13464 2009-06-16 Ian Lance Taylor <iant@google.com>
13465
13466 * vec.h (VEC_stack_alloc): Define different version if
13467 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13468 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13469 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13470 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13471
13472 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13473
13474 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13475
13476 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13477 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13478 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13479 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13480 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13481 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13482 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13483 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13484 __builtin_ia32_rdtscp.
13485 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13486 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13487 and __builtin_ia32_rorhi.
13488 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13489 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13490 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13491 (ix86_expand_args_builtin): Likewise.
13492 (ix86_expand_special_args_builtin): Likewise.
13493
13494 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13495 (UNSPECV_RDTSC): Likewise.
13496 (UNSPECV_RDPMC): Likewise.
13497 (*bsr): Renamed to ...
13498 (bsr): This
13499 (*bsr_rex64): Renamed to ...
13500 (bsr_rex64): This.
13501 (rdpmc): New.
13502 (*rdpmc): Likewise.
13503 (*rdpmc_rex64): Likewise.
13504 (rdtsc): Likewise.
13505 (*rdtsc): Likewise.
13506 (*rdtsc_rex64): Likewise.
13507 (rdtscp): Likewise.
13508 (*rdtscp): Likewise.
13509 (*rdtscp_rex64): Likewise.
13510
13511 * config/i386/ia32intrin.h: New.
13512
13513 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13514
13515 2009-06-16 Ian Lance Taylor <iant@google.com>
13516
13517 * ira-build.c (copy_info_to_removed_store_destinations):
13518 Initialize parent_a.
13519
13520 2009-06-16 Ian Lance Taylor <iant@google.com>
13521
13522 * c-decl.c (grokdeclarator): Change size_varies to bool.
13523
13524 2009-06-16 Ian Lance Taylor <iant@google.com>
13525
13526 * sel-sched.c: Make forward declarations of move_op_hooks and
13527 fur_hooks explicitly extern.
13528
13529 2009-06-16 Ian Lance Taylor <iant@google.com>
13530
13531 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13532 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13533
13534 2009-06-16 Ian Lance Taylor <iant@google.com>
13535
13536 * resource.c (mark_referenced_resources): Change
13537 include_delayed_effects parameter to bool. Change all callers.
13538 (mark_end_of_function_resources): Likewise.
13539 * reorg.c (insn_references_resource_p): Likewise.
13540 (insn_sets_resource_p): Likewise.
13541 * resource.h (mark_referenced_resources): Update declaration.
13542 (mark_end_of_function_resources): Update declaration.
13543
13544 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13545
13546 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13547
13548 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13549
13550 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13551 GCC can bootstrap on AIX with GNU Binutils 2.20.
13552
13553 2009-06-16 Ian Lance Taylor <iant@google.com>
13554
13555 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13556
13557 2009-06-16 Ian Lance Taylor <iant@google.com>
13558
13559 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13560 inline, not extern inline.
13561 (exact_log2): Likewise.
13562 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13563 test CLZ_HWI.
13564 (exact_log2): Likewise, but don't test CTZ_HWI.
13565
13566 2009-06-16 Ian Lance Taylor <iant@google.com>
13567
13568 * bitmap.c (bitmap_clear): Don't declare as inline.
13569 * gimple.c (gimplify_assign): Likewise.
13570 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13571 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13572 (sched_scan_info): Remove duplicate definition.
13573
13574 2009-06-16 Ian Lance Taylor <iant@google.com>
13575
13576 * c-common.c (skip_evaluation): Don't define.
13577 (c_inhibit_evaluation_warnings): Define global variable.
13578 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13579 than skip_evaluation.
13580 (convert_and_check, warn_for_div_by_zero): Likewise.
13581 * c-common.h (skip_evaluation): Don't declare.
13582 (c_inhibit_evaluation_warnings): Declare.
13583 * c-parser.c (c_parser_typeof_specifier): Set
13584 c_inhibit_evaluation_warnings rather than skip_evaluation.
13585 (c_parser_conditional_expression): Likewise.
13586 (c_parser_binary_expression): Likewise.
13587 (c_parser_sizeof_expression): Likewise.
13588 (c_parser_alignof_expression): Likewise.
13589 * c-typeck.c (build_indirect_ref): Check
13590 c_inhibit_evaluation_warnings rather than skip_evaluation.
13591 (build_conditional_expr, build_binary_op): Likewise.
13592
13593 2009-06-16 Richard Guenther <rguenther@suse.de>
13594
13595 * tree-ssa-alias.c (is_escape_site): Remove.
13596 * tree-ssa-alias.h (enum escape_type): Remove.
13597 (is_escape_site): Likewise.
13598 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13599 via casts and asms without deferring to is_escape_site.
13600
13601 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13602
13603 PR middle-end/40446
13604 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13605 use gen_lowpart if op0 has complex mode.
13606
13607 2009-06-16 Richard Guenther <rguenther@suse.de>
13608
13609 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13610 variables add them to ESCAPED.
13611 (find_func_aliases): Do not make all indirectly stored values escaped.
13612
13613 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13614
13615 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13616 make_decl_one_only.
13617
13618 2009-06-16 Martin Jambor <mjambor@suse.cz>
13619
13620 PR tree-optimization/40432
13621 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13622 check whether we need to force gimple register operand.
13623
13624 2009-06-16 Martin Jambor <mjambor@suse.cz>
13625
13626 PR tree-optimization/40413
13627 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13628 build_ref_for_offset.
13629 (propagate_subacesses_accross_link): Fix a typo in a comment.
13630
13631 2009-06-16 Ira Rosen <irar@il.ibm.com>
13632
13633 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13634 with additional parameter.
13635 * tree-vectorizer.h (enum vect_def_type): Add new value
13636 vect_nested_cycle.
13637 (enum vect_relevant): Add comments.
13638 (vect_is_simple_reduction): Add new argument.
13639 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13640 Detect nested cycles.
13641 (vect_is_simple_reduction): Update documentation, add an argument to
13642 distinguish inner-loop reduction from nested cycle, detect nested
13643 cycles, fix printings and indentation, don't swap operands in case
13644 of nested cycle.
13645 (get_initial_def_for_reduction): Handle subtraction.
13646 (vect_create_epilog_for_reduction): Add new argument to specify
13647 reduction variable.
13648 (vect_finalize_reduction): Handle subtraction, fix comments.
13649 (vectorizable_reduction): Handle nested cycles. In case of nested
13650 cycle keep track of the reduction variable position. Call
13651 vect_is_simple_reduction with additional parameter. Use original
13652 statement code in reduction epilogue for nested cycle. Call
13653 vect_create_epilog_for_reduction with additional parameter.
13654 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13655 inner-loop vectorization.
13656 (vect_recog_widen_sum_pattern): Likewise.
13657 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13658 and reductions.
13659 (vect_mark_stmts_to_be_vectorized): Likewise.
13660 (vect_get_vec_def_for_operand): Handle nested cycles.
13661
13662 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13663
13664 * doc/invoke.texi (Debugging Options): Fix option index entries
13665 for -fdump-statistics, -frandom-seed add entries for
13666 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13667 (FRV Options): Fix entries for -mTLS, -mtls.
13668 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13669 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13670 (M68hc1x Options): Fix @itemx for -mnominmax.
13671 (MCore Options): Fix entry for -mno-lsim.
13672 (MMIX Options): Fix entry for -mabi=mmixware.
13673 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13674
13675 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13676
13677 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13678 Mention the plugin mode of gengtype.
13679 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13680 * gengtype.c: Updated copyright.
13681 (plugin_files, nb_plugin_files) Added new static variables.
13682 (measure_input_list) Care about plugin_files.
13683 (write_rtx_next): Added early return in plugin mode.
13684 (create_file): Updated copyright year in generated file. Added
13685 asserts.
13686 (oprintf): Added early return if NULL outf.
13687 (get_output_file_with_visibility): Care of plugin_files.
13688 (get_output_file_name): May return null.
13689 (write_local): Added early return.
13690 (put_mangled_filename): Ditto.
13691 (finish_root_table): Added check for base_files.
13692 (write_roots): Care about null when plugins.
13693 (main): Added plugin mode.
13694
13695 2009-06-15 Ian Lance Taylor <iant@google.com>
13696
13697 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13698 * gcov.c (read_count_file): Add braces around variables declared
13699 before label.
13700
13701 * c.opt (Wjump-misses-init): New warning.
13702 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13703 -Wall and -Wc++-compat if not already set.
13704 (c_common_post_options): Clear warn_jump_misses_init if it was not
13705 set.
13706 * c-decl.c (struct c_binding): Change type field to a union with
13707 new label field. Make it the first field in the struct. Update
13708 references to type to use u.type instead.
13709 (struct c_spot_bindings): Define.
13710 (struct c_goto_bindings): Define.
13711 (c_goto_bindings_p): Define, along with VECs.
13712 (struct c_label_vars): Define.
13713 (struct c_scope): Add has_label_bindings field.
13714 (bind_label, set_spot_bindings): New static functions.
13715 (decl_jump_unsafe, update_spot_bindings): New static functions.
13716 (update_label_decls): New static function.
13717 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13718 Update binding u.label field to shadowed field.
13719 (c_binding_start_stmt_expr): New function.
13720 (c_binding_end_stmt_expr): New function.
13721 (pushdecl): Don't call c_begin_vm_scope.
13722 (make_label): Add defining and p_label_vars parameters. Change
13723 all callers.
13724 (lookup_label): Correct test for whether a label has not yet been
13725 defined. Call bind_label rather than bind.
13726 (warn_about_goto): New static function.
13727 (lookup_label_for_goto): New function.
13728 (declare_label): Call bind_label rather than bind.
13729 (check_earlier_gotos): New static function.
13730 (define_label): Don't give errors about jumping into statement
13731 expressions or scopes of variably modified types. Call
13732 set_spot_bindings and check_earlier_gotos. Call bind_label
13733 instead of bind. Don't set label_context_stack_se or
13734 label_context_stack_vm.
13735 (c_get_switch_bindings): New function.
13736 (c_release_switch_bindings): New function.
13737 (c_check_switch_jump_warnings): New function.
13738 (start_function): Don't set label_context_stack_se or
13739 label_context_stack_vm.
13740 (finish_function): Likewise.
13741 * c-typeck.c (label_context_stack_se): Don't define.
13742 (label_context_stack_vm): Don't define.
13743 (c_finish_goto_label): Call lookup_label_for_goto rather than
13744 lookup_label. Don't give errors about jumping into a statement
13745 expression or the scope of a variably modified type. Don't set
13746 label_context_stack_se or label_context_stack_vm.
13747 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13748 fields. Add bindings field.
13749 (c_start_case): Don't set deleted fields. Set bindings field.
13750 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13751 or blocked_vm. Call c_check_switch_jump_warnings.
13752 (c_finish_case): Don't test blocked_stmt_expr field. Call
13753 c_release_switch_bindings.
13754 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13755 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13756 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13757 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13758 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13759 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13760 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13761 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13762 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13763 (C_DECL_UNJUMPABLE_VM): Don't define.
13764 (C_DECL_UNDEFINABLE_VM): Don't define.
13765 (struct c_label_list): Don't define.
13766 (struct c_label_context_se): Don't define.
13767 (struct c_label_context_vm): Don't define.
13768 (struct c_spot_bindings): Declare.
13769 (c_bindings_start_stmt_expr): Declare.
13770 (c_bindings_end_stmt_expr): Declare.
13771 (lookup_label_for_goto): Declare.
13772 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13773 (c_check_switch_jump_warnings): Declare.
13774 (label_context_stack_se, label_context_stack_vm): Don't declare.
13775 (c_finish_goto_label): Update declaration.
13776 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13777 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13778 (Warning Options): Document -Wjump-misses-init.
13779
13780 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13781
13782 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13783 change.
13784
13785 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13786
13787 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13788
13789 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13790
13791 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13792
13793 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13794
13795 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13796
13797 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13798
13799 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13800 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13801 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13802 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13803 * dwarf2asm.c (dw2_force_const_mem): Update call to
13804 make_decl_one_only.
13805 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13806 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13807 * langhooks.c (lhd_comdat_group): Remove.
13808 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13809 * tree.h (DECL_COMDAT_GROUP): New.
13810 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13811 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13812 (make_decl_one_only): Change signature.
13813 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13814 make_decl_one_only.
13815 (make_decl_one_only): Change signature.
13816 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13817
13818 2009-06-15 Richard Guenther <rguenther@suse.de>
13819
13820 PR middle-end/40439
13821 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13822
13823 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13824
13825 * tree-ssa-math-opts.c: Remove extra divide.
13826
13827 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13828
13829 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13830
13831 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13832
13833 * passes.c: Add bswap pass.
13834 * tree-pass.h: Add pass_optimize_bswap declaration.
13835 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13836 Include rtl.h, expr.h and optabs.h for optab_handler check.
13837 (struct symbolic_number, pass_optimize_bswap): New definition.
13838 (do_shift_rotate, verify_symbolic_number_p): New functions.
13839 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13840 (gate_optimize_bswap): New function.
13841 * tree.c (widest_int_cst_value): New function.
13842 * tree.h (widest_int_cst_value): Prototype added.
13843
13844 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13845
13846 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13847 REG_EQUAL/REG_EQUIV notes.
13848
13849 2009-06-14 Richard Guenther <rguenther@suse.de>
13850
13851 PR middle-end/40389
13852 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13853 has its address taken if NRV was applied and it is addressable.
13854 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13855 function split out from ...
13856 (get_constraint_for_1): ... here.
13857 (handle_rhs_call): Use it to mark the return slot escaped if
13858 it is addressable and NRV was applied.
13859
13860 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13861
13862 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13863 Change first argument type to location_t.
13864 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13865 Do not set input_location.
13866 Use loc instead of input_location throughout.
13867
13868 2009-06-13 Richard Guenther <rguenther@suse.de>
13869
13870 PR tree-optimization/40421
13871 * tree-predcom.c (should_unroll_loop_p): Remove.
13872 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13873
13874 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13875
13876 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13877 Add location argument.
13878
13879 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13880
13881 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13882 build_decl.
13883 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13884 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13885 * config/spu/spu-protos.h: Add location to
13886 spu_resolve_overloaded_builtin.
13887 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13888 spu_build_builtin_va_list.
13889 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13890 argument. Pass location to build_function_call_vec.
13891 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13892 build_decl.
13893 (emit_fpu_switch): Same.
13894 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13895 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13896 to build_decl and create_artificial_label.
13897 (xtensa_gimplify_va_arg_expr): Same.
13898 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13899 (xstormy16_gimplify_va_arg_expr): Same.
13900 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13901 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13902 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13903 (mips16_build_function_stub): Same.
13904 (mips16_build_call_stub): Same.
13905
13906 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13907
13908 PR target/40327
13909 * arm/constraints.md (Pa, Pb): New constraints.
13910 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13911 split pattern to deal with them.
13912
13913 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13914
13915 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13916 fix index entry for -Xpreprocessor.
13917
13918 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13919
13920 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13921 Add location argument to build_decl call.
13922 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13923 (rs6000_init_builtins): Same.
13924 (spe_init_builtins): Same.
13925 (rs6000_gimplify_va_arg): Add location argument to
13926 create_artificial_label call.
13927
13928 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13929
13930 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13931 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13932 * Makefile.in: Fix GGC dependency for gcse.o.
13933
13934 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13935
13936 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13937 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13938 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13939 created.
13940 * c-parser.c (c_parser_binary_expression): Use current column while
13941 building binary operations.
13942 * common.opt (fshow-column): Enable by default.
13943 * tree-vrp.c (check_array_ref): Use warning_at.
13944 (check_array_bounds): Use location from call back if expr has no
13945 location.
13946 * tree.h: Add location argument to maybe_fold_*.
13947 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13948 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13949 (maybe_fold_offset_to_component_ref): Same.
13950 (maybe_fold_offset_to_reference): Same.
13951 (maybe_fold_offset_to_address): Same.
13952 (maybe_fold_stmt_indirect): Same.
13953 (maybe_fold_stmt_addition): Same.
13954 (fold_stmt_r): Pass location to maybe_fold_*.
13955 (fold_gimple_assign): Same.
13956 * c-tree.h: Add location argument to finish_decl,
13957 default_function_array_conversion, store_init_value.
13958 * c-decl.c (define_label): Use error_at.
13959 (c_make_fname_decl): Pass location to finish_decl.
13960 (finish_decl): New location argument.
13961 (build_compound_literal): Pass location to store_init_value.
13962 (grokdeclarator): Pass location to finish_decl.
13963 (grokfield): Same.
13964 * c-typeck.c (array_to_pointer_conversion): New location argument.
13965 (function_to_pointer_conversion): Same.
13966 (default_function_array_conversion): Same.
13967 (parser_build_unary_op): Pass location to overflow_warning.
13968 (parser_build_binary_op): Same. Use warning_at.
13969 (build_unary_op): Pass location to array_to_pointer_conversion.
13970 (build_c_cast): Pass location to digest_init.
13971 (build_modify_expr): New location argument.
13972 (convert_for_assignment): Same.
13973 (store_init_value): Same.
13974 (digest_init): Same.
13975 (output_init_element): Pass location to digest_init and
13976 array_to_pointer_conversion.
13977 (c_finish_return): Pass location to convert_for_assignment.
13978 * gimplify.c (gimplify_conversion): Pass location to
13979 maybe_fold_offset_to_address.
13980 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13981 to maybe_fold_stmt_addition.
13982 * c-omp.c (c_finish_omp_atomic): Pass new location to
13983 build_modify_expr.
13984 (c_finish_omp_for): Same.
13985 * c-common.c (overflow_warning): New argument.
13986 * c-common.h: New argument to build_modify_expr, overflow_warning.
13987 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13988 finish_decl.
13989 (c_parser_initializer): Pass location to
13990 default_function_array_conversion.
13991 (c_parser_initelt): Same.
13992 (c_parser_initval): Same.
13993 (c_parser_asm_operands): Same.
13994 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13995 (c_parser_conditional_expression): Same.
13996 (c_parser_binary_expression): Add location info to stack. Use it.
13997 (c_parser_unary_expression): Pass location to
13998 default_function_array_conversion, parser_build_unary_op,
13999 build_indirect_ref, c_parser_postfix_expression_after_primary.
14000 (c_parser_postfix_expression_after_primary): New location argument.
14001 Use it.
14002 (c_parser_expression_conv): Pass location to
14003 default_function_array_conversion.
14004 (c_parser_expr_list): Same.
14005 (c_parser_omp_atomic): Same.
14006 (c_parser_omp_for_loop): Same.
14007 * c-tree.h (struct c_declarator): Add comment to id_loc.
14008 (build_array_declarator): New argument.
14009 * c-decl.c (build_array_declarator): Add location argument.
14010 (grokdeclarator): Set id_loc for cdk_array.
14011 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
14012 build_array_declarator.
14013 * tree.c (build_omp_clause): Add location argument.
14014 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
14015 (OMP_CLAUSE_LOCATION): New macro.
14016 (struct tree_omp_clause): Add location field.
14017 (build_omp_clause): Add argument.
14018 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
14019 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
14020 build_omp_clause.
14021 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
14022 (cp_parser_omp_clause_collapse): Same.
14023 (cp_parser_omp_clause_default): Same.
14024 (cp_parser_omp_clause_if): Same.
14025 (cp_parser_omp_clause_nowait): Same.
14026 (cp_parser_omp_clause_num_threads): Same.
14027 (cp_parser_omp_clause_ordered): Same.
14028 (cp_parser_omp_clause_schedule): Same.
14029 (cp_parser_omp_clause_untied): Same.
14030 (cp_parser_omp_for_loop): Same.
14031 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14032 * c-tree.h (c_start_case): Add location argument.
14033 (c_process_expr_stmt): Same.
14034 (c_finish_goto_*): Same.
14035 * tree-parloops.c (initialize_reductions): Pass location to
14036 build_omp_clause.
14037 (create_parallel_loop): Same.
14038 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
14039 (gfc_trans_omp_reduction_list): Same.
14040 (gfc_trans_omp_clauses): Same.
14041 (gfc_trans_omp_do): Same.
14042 * c-typeck.c (c_finish_goto_label): Same.
14043 (c_finish_goto_ptr): New location argument.
14044 (c_start_case): Same.
14045 (emit_side_effect_warnings): Same.
14046 (c_process_expr_stmt): Same.
14047 (c_finish_stmt_expr): Same.
14048 (c_finish_omp_clauses): Use error_at instead of error.
14049 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
14050 build_omp_clause.
14051 * c-omp.c (c_split_parallel_clauses): New location argument.
14052 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
14053 to build_omp_clause.
14054 (convert_local_reference_stmt): Same.
14055 (convert_gimple_call): Same.
14056 * c-common.h (c_split_parallel_clauses): New argument.
14057 * c-parser.c (c_parser_statement_after_labels): Pass location to
14058 c_finish_goto_label.
14059 (c_parser_switch_statement): Pass location to c_start_case.
14060 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
14061 and c_process_expr_stmt.
14062 (c_parser_omp_variable_list): Add location argument.
14063 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
14064 (c_parser_omp_clause_default): Same.
14065 (c_parser_omp_clause_if): Same.
14066 (c_parser_omp_clause_num_threads): Same.
14067 (-c_parser_omp_clause_ordered): Same.
14068 (c_parser_omp_clause_reduction): Pass location to
14069 c_parser_omp_variable_list.
14070 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
14071 (c_parser_omp_clause_untied): Same.
14072 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
14073 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14074
14075 * c-tree.h (check_for_loop_decls, undeclared_variable,
14076 build_component_ref, build_array_ref, build_external_ref,
14077 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
14078 build_conditional_expr, build_compound_expr, c_cast_expr,
14079 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
14080 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
14081 argument.
14082 * c-semantics.c (build_stmt): Same.
14083 (build_case_label): Same.
14084 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
14085 (undeclared_variable): New argument.
14086 (make_label): Same.
14087 (lookup_label): Pass location on down.
14088 (define_label): Same.
14089 (finish_decl): Same.
14090 (build_compound_literal): Same.
14091 (finish_struct): Same.
14092 (finish_function): Do not set location here.
14093 (check_for_loop_decls): New argument.
14094 * tree.c (save_expr): Set location.
14095 (build_empty_stmt): New argument.
14096 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
14097 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
14098 * builtins.c (gimplify_va_arg_expr): Use locations.
14099 (expand_builtin_sync_operation): Same.
14100 * c-typeck.c (build_component_ref): New argument.
14101 (build_array_ref): Same.
14102 (build_external_ref): Same.
14103 (c_expr_sizeof_expr): Same.
14104 (c_expr_sizeof_type): Same.
14105 (parser_build_unary_op): Same.
14106 (build_conditional_expr): Same.
14107 (build_compound_expr): Pass location on down.
14108 (build_compound_expr): New argument.
14109 (build_c_cast): Same.
14110 (c_cast_expr): Same.
14111 (build_asm_expr): Same.
14112 (c_finish_return): Same.
14113 (c_process_expr_stmt): Pass location on down.
14114 (c_finish_stmt_expr): New argument.
14115 (push_clenaup): Same.
14116 (c_finish_omp_parallel): Same.
14117 (c_finish_omp_task): Same.
14118 * gimplify.c (gimplify_call_expr): Pass location on down.
14119 * c-omp.c (c_finish_omp_master): New argument.
14120 (c_finish_omp_critical): Same.
14121 (c_finish_omp_ordered): Same.
14122 (c_finish_omp_barrier): Same.
14123 (-c_finish_omp_taskwait): Same.
14124 (c_finish_omp_atomic): Same.
14125 (c_finish_omp_flush): Same.
14126 * tree-inline.c (copy_tree_body_r): Pass location on down.
14127 (inline_forbidden_p): Remove use of input_location.
14128 * c-gimplify.c (c_build_bind_expr): New argument.
14129 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14130 (c_sizeof_or_alignof_type): New argument.
14131 (c_alignof_expr): Same.
14132 (build_va_arg): Same.
14133 (c_add_case_label): Same.
14134 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14135 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14136 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14137 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14138 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14139 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14140 New argument.
14141 * stub-objc.c (objc_build_selector_expr): Same.
14142 (objc_build_throw_stmt): Same.
14143 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14144 (c_parser_initelt): Same.
14145 (c_parser_compound_statement): Same.
14146 (c_parser_compound_statement_nostart): Same.
14147 (c_parser_label): Same.
14148 (c_parser_statement_after_labels): Same.
14149 (c_parser_if_body): Same.
14150 (c_parser_else_body): Same.
14151 (c_parser_if_statement): Same.
14152 (c_parser_switch_statement): Same.
14153 (c_parser_while_statement): Same.
14154 (c_parser_do_statement): Same.
14155 (c_parser_for_statement): Same.
14156 (c_parser_asm_statement): Same.
14157 (c_parser_conditional_expression): Same.
14158 (c_parser_binary_expression): Same.
14159 (c_parser_cast_expression): Same.
14160 (c_parser_unary_expression): Same.
14161 (c_parser_sizeof_expression): Same.
14162 (c_parser_alignof_expression): Same.
14163 (c_parser_postfix_expression): Same.
14164 (c_parser_expression): Same.
14165 (c_parser_objc_receiver): Same.
14166 (c_parser_omp_variable_list): Same.
14167 (c_parser_omp_structured_block): Same.
14168 (c_parser_omp_atomic): New argument.
14169 (c_parser_omp_barrier): Same.
14170 (c_parser_omp_critical): Same.
14171 (c_parser_omp_flush): Pass location on down.
14172 (c_parser_omp_for_loop): New argument.
14173 (c_parser_omp_for): Same.
14174 (c_parser_omp_master): Same.
14175 (c_parser_omp_ordered): Same.
14176 (c_parser_omp_sections_scope): Same.
14177 (c_parser_omp_sections): Same.
14178 (c_parser_omp_parallel): Same.
14179 (c_parser_omp_single): Same.
14180 (c_parser_omp_task): Same.
14181 (c_parser_omp_taskwait): Pass location on down.
14182 (c_parser_omp_construct): Same.
14183 (c_parser_omp_threadprivate): Same.
14184 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14185 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14186 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14187 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14188 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14189 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14190 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14191 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14192 config/i386/i386.c, stmt.c:
14193 Add location argument to the following function definitions and/or
14194 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14195 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14196 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14197 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14198 do_case, c_finish_bc_stmt, build_compound_literal,
14199 build_function_call.
14200 * c-decl.c (build_compound_literal): Add location argument.
14201 Make all diagnostic calls use location.
14202 (start_struct): Same.
14203 (finish_struct): Same.
14204 (start_enum): Same.
14205 (build_enumerator): Same.
14206 (start_function): Same.
14207 (grokdeclarator): Make all diagnostic calls use location.
14208 (store_parm_decls_oldstyle): Same.
14209 * c-typeck.c (build_function_call): Add location argument.
14210 Make all diagnostic calls use location.
14211 (do_case): Same.
14212 (c_finish_bc_stmt): Same.
14213 * tree-nested.c (get_trampoline_type): Add argument.
14214 Pass location to build_decl.
14215 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14216 * rtl.h (RTL_LOCATION): New.
14217 * c-common.c (c_add_case_label): Add location argument.
14218 Make all diagnostic calls use location.
14219 * c-common.h: Add location argument to make_fname_decl, do_case,
14220 c_add_case_label, build_function_call, resolve_overloaded_builtin.
14221 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14222 Set it appropriately for every case. Pass enum_loc to start_enum
14223 call. Pass value_loc first to build_enumerator. Pass enum_loc to
14224 parser_xref_tag.
14225 (c_parser_struct_or_union_specifier): Save location. Use it for
14226 start_struct, finish_struct, and parser_xref_tag.
14227
14228 2009-06-12 Ian Lance Taylor <iant@google.com>
14229
14230 * fold-const.c (fold_unary): Rename local variable and to and_expr.
14231
14232 * c-opts.c (c_common_handle_option): For -Wc++-compat set
14233 cpp_opts->warn_cxx_operator_names.
14234
14235 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14236
14237 PR tree-opt/38865
14238 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14239 is returns NULL and OP is a VCE, look through the VCE.
14240
14241 2009-06-12 Ian Lance Taylor <iant@google.com>
14242
14243 PR bootstrap/40430
14244 * collect2.c (main): Use CONST_CAST2 in code inside #if
14245 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14246
14247 2009-06-12 Joey Ye <joey.ye@intel.com>
14248
14249 PR middle-end/39146
14250 * cfgexpand.c (get_decl_align_unit): Update
14251 max_used_stack_slot_alignment with align instead of
14252 stack_alignment_needed.
14253
14254 * function.c (assign_stack_local_1): Update
14255 max_used_stack_slot_alignment with alignment_in_bits instead
14256 of stack_alignment_needed.
14257 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14258 here.
14259
14260 2009-06-12 Jakub Jelinek <jakub@redhat.com>
14261
14262 * dwarf2out.c (last_var_location_insn): New variable.
14263 (dwarf2out_end_epilogue): Clear last_var_location_insn.
14264 (dwarf2out_var_location): Don't record anything after last real
14265 insn. Only change labels if there were any real instructions
14266 in between last note and this one, or if changed sections.
14267
14268 2009-06-11 Richard Henderson <rth@redhat.com>
14269
14270 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14271 note when storing the frame pointer in a register.
14272 (FRP): Don't redefine to nothing for epilogue.
14273 (alpha_expand_epilogue): Mark register and sp restores.
14274 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14275
14276 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14277 when gen_lowpart is needed.
14278
14279 2009-06-11 Richard Henderson <rth@redhat.com>
14280
14281 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14282
14283 * dwarf2out.c (need_data_align_sf_opcode): New.
14284 (div_data_align): Move earlier.
14285 (def_cfa_1, reg_save): Use it.
14286
14287 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
14288
14289 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14290 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14291 (ix86_handle_option): Handle OPT_mcrc32.
14292 (ix86_target_string): Add -mcrc32.
14293 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14294
14295 * config/i386/i386.h (TARGET_CRC32): New.
14296
14297 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14298 (sse4_2_crc32di): Likewise.
14299
14300 * config/i386/i386.opt (mcrc32): New.
14301
14302 * doc/invoke.texi: Document -mcrc32.
14303
14304 2009-06-11 Richard Henderson <rth@redhat.com>
14305
14306 * common.opt (gdwarf-): Accept a version number.
14307 * doc/invoke.texi (gdwarf-): Update docs.
14308 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14309 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14310 version level, and record it.
14311
14312 * dwarf2.h (DW_CIE_VERSION): Remove.
14313 * dwarf2out.c (DWARF_VERSION): Remove.
14314 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14315 (output_call_frame_info): Use CIE version 3 for dwarf3,
14316 or if the return register column is out of range for version 1.
14317 (dwarf_stack_op_name): Add all dwarf3 values.
14318 (DEBUG_PUBTYPES_SECTION): New.
14319 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14320 encoding change for dwarf3.
14321 (output_die) [dw_val_class_die_ref]: Likewise.
14322 (output_compilation_unit_header): Emit correct version for dwarf3.
14323 (output_line_info): Likewise.
14324 (output_pubnames): Update for DWARF_VERSION removal.
14325 (output_aranges): Likewise.
14326 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14327 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14328 (dwarf2out_finish): Likewise.
14329
14330 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14331
14332 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14333 in r148403.
14334
14335 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14336
14337 PR c/39252
14338 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14339 * builtins.c (expand_builtin_unreachable): New function.
14340 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14341 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14342 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14343 successors.
14344 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14345 searching for missing barriers.
14346
14347 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14348
14349 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14350 when -fprofile-generate* was passed.
14351 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14352
14353 2009-06-11 Anthony Green <green@moxielogic.com>
14354
14355 * config/moxie/moxie.md: Define length attribute for all instructions.
14356 (rCC): Define.
14357 (*b<cond:code>): Support limited branch ranges for new PC-relative
14358 branch instructions.
14359 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14360
14361 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14362
14363 * config/i386/i386.c (min_insn_size): Use get_attr_length
14364 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14365 For __asm return 0.
14366
14367 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14368 instead of emit_insn_before.
14369
14370 2009-06-10 Ian Lance Taylor <iant@google.com>
14371
14372 PR bootstrap/40408
14373 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14374 GIMPLE_SWITCH.
14375
14376 2009-06-10 Revital Eres <eres@il.ibm.com>
14377
14378 * passes.c (init_optimization_passes): Reschedule
14379 predictive-commoning pass before complete unroll pass.
14380
14381 2009-06-10 Martin Jambor <mjambor@suse.cz>
14382
14383 * cgraph.c (cgraph_node_can_be_local_p): New function.
14384 (cgraph_make_node_local): New function.
14385 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14386 (cgraph_make_node_local): Declare.
14387
14388 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14389
14390 * tree.h (tree_base): Add packed_flag and user_align fields.
14391 Decrease size of spare field.
14392 (TYPE_USER_ALIGN): Use user_align from tree_base.
14393 (DECL_USER_ALIGN): Likewise.
14394 (TYPE_PACKED): Use packed_flag from tree_base.
14395 (DECL_PACKED): Likewise.
14396 (tree_type): Delete packed_flag and user_align fields. Widen
14397 precision field. Widen mode field and shuffle fields to align
14398 mode on an 8-bit boundary.
14399 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14400 Renumber decl_flag_* fields. Fix comments. Widen
14401 decl_common_unused field.
14402 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14403 (DECL_EXTERNAL): Likewise.
14404 (DECL_BIT_FIELD): Likewise.
14405 (DECL_NONADDRESSABLE_P): Likewise.
14406 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14407 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14408
14409 2009-06-10 Ian Lance Taylor <iant@google.com>
14410
14411 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14412 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14413 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14414 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14415 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14416 DEF_VEC_ALLOC_FUNC_P.
14417 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14418 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14419 DEF_VEC_ALLOC_FUNC_O.
14420 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14421 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14422 DEF_VEC_ALLOC_FUNC_I.
14423 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14424 (vec_stack_p_reserve_exact_1): Declare.
14425 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14426 (vec_stack_free): Declare.
14427 (VEC_stack_alloc): Define.
14428 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14429 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14430 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14431 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14432 for void_p.
14433 (stack_vecs): New static variable.
14434 (vec_stack_p_reserve_exact_1): New function.
14435 (vec_stack_o_reserve_1): New static function.
14436 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14437 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14438 (vec_stack_free): New function.
14439 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14440 (VEC_df_ref_stack_alloc): Define.
14441 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14442 DEF_VEC_ALLOC_P_STACK.
14443 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14444 (struct df_collection_rec): Change _vec fields to VEC. Remove
14445 _use fields.
14446 (df_free_collection_rec): Adjust for new fields.
14447 (df_insn_rescan): Use new df_collection_rec fields.
14448 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14449 (df_ref_create_structure, df_ref_record): Likewise.
14450 (df_get_conditional_uses, df_get_call_refs): Likewise.
14451 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14452 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14453 (df_record_exit_block_uses, df_bb_verify): Likewise.
14454 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14455 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14456 Remove count parameter. Change return type to void. Change all
14457 callers.
14458 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14459 Remove count parameter. Change return type to void. Change all
14460 callers.
14461 (df_install_refs): Change old_vec parameter to VEC. Remove count
14462 parameter. Change all callers.
14463 (df_install_mws): Change old_vec parameter to VEC. Remove count
14464 parameter. Change all callers.
14465 (df_refs_verify): Change new_rec parameter to VEC. Change call
14466 callers.
14467 (df_mws_verify): Likewise.
14468
14469 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14470
14471 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14472
14473 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14474
14475 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14476
14477 2009-06-10 Anthony Green <green@moxielogic.com>
14478
14479 * config/moxie/crti.asm: New file.
14480 * config/moxie/crtn.asm: New file.
14481 * config/moxie/moxie.c: New file.
14482 * config/moxie/moxie.h: New file.
14483 * config/moxie/sfp-machine.h: New file.
14484 * config/moxie/moxie-protos.h: New file.
14485 * config/moxie/t-moxie: Created.
14486 * config/moxie/t-moxie-softfp: Created.
14487 * config/moxie/moxie.md: Created.
14488 * config/moxie/constraints.md: Created.
14489 * config.gcc: Add moxie support.
14490 * doc/md.texi (Machine Constraints): Add moxie constraints.
14491 * doc/contrib.texi (Contributors): Mention moxie port.
14492 * doc/install.texi (Specific): Mention the moxie port.
14493
14494 2009-06-09 Ian Lance Taylor <iant@google.com>
14495
14496 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14497 compiling with C++.
14498 * optabs.c (optab_table): Only use designated initializers if
14499 HAVE_DESIGNATED_INITIALIZERS is defined.
14500 (convert_optab_table): Likewise.
14501 (init_optabs): Always call init_insn_codes if
14502 HAVE_DESIGNATED_INITIALIZERS is not defined.
14503
14504 2009-06-09 Ian Lance Taylor <iant@google.com>
14505
14506 * targhooks.c (default_builtin_vectorized_function): Change fn
14507 parameter to unsigned int.
14508 (default_builtin_vectorized_conversion): Change code parameter to
14509 unsigned int.
14510 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14511 * targhooks.h: Update declarations.
14512 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14513 parameter to unsigned int.
14514
14515 * c-typeck.c (comptypes_check_enum_int): New static function.
14516 (comptypes_internal): Add enum_and_int_p parameter. Change all
14517 callers.
14518 (comp_target_types): Add location parameter. Change all callers.
14519 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14520 Change all callers.
14521 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14522 (build_conditional_expr): Add colon_loc parameter. Change all
14523 callers.
14524 (convert_for_assignment): Add location parameter. Change all callers.
14525 * c-parser.c (c_parser_conditional_expression): Pass location of
14526 colon to build_conditional_expr.
14527 * c-tree.h (build_conditional_expr): Update declaration.
14528
14529 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14530
14531 * graphite.c: Revert previous patch.
14532
14533 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14534
14535 PR bootstrap/40103
14536 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14537
14538 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14539
14540 * tree-ssa-loop-prefetch.c
14541 (loop_prefetch_arrays): Fixed a portability problem in printf format
14542 string.
14543
14544 2009-06-09 Martin Jambor <mjambor@suse.cz>
14545
14546 PR tree-optimization/40351
14547 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14548 refrence to a potential artifical subaccess can be constructed.
14549
14550 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14551
14552 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14553 (sh_override_options): Likewise.
14554 * config/sh/sh.c: Include params.h.
14555 (sh_optimization_options): New.
14556 (sh_override_options): Likewise.
14557 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14558 (OVERRIDE_OPTIONS): Use sh_override_options.
14559
14560 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14561
14562 * dwarf2out.c (emit_cfa_remember): New variable.
14563 (add_fde_cfi): If emit_cfa_remember, recurse to add
14564 DW_CFA_remember_state first.
14565 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14566 instead just set emit_cfa_remember.
14567
14568 2009-06-08 Jan Hubicka <jh@suse.cz>
14569
14570 PR debug/40126
14571 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14572
14573 2009-06-08 Jan Hubicka <jh@suse.cz>
14574
14575 PR middle-end/39834
14576 * cgraphunit.c (save_inline_function_body): Do not copy transform
14577 hooks for saved inline bodies.
14578 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14579 for given function.
14580
14581 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14582
14583 * jump.c (returnjump_p): Handle delayed branches. Add missing
14584 function comment.
14585
14586 2009-06-08 Jan Hubicka <jh@suse.cz>
14587
14588 PR middle-end/40102
14589 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14590 original node might've been modified.
14591 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14592
14593 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14594
14595 * tree-object-size.c (addr_object_size): Add OSI argument.
14596 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14597 (compute_builtin_object_size, expr_object_size): Adjust callers.
14598 (plus_stmt_object_size): Call addr_object_size instead of
14599 compute_builtin_object_size.
14600
14601 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14602 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14603
14604 * tree-ssa-loop-prefetch.c
14605 (gather_memory_references): Introduced a counter for the number of
14606 memory references.
14607 (anything_to_prefetch_p): Introduced a counter for the number of
14608 prefetches.
14609 (is_loop_prefetching_profitable): New function with a cost model
14610 for prefetching.
14611 (loop_prefetch_arrays): Use the new cost model to determine if
14612 prefetching is profitable.
14613 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14614 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14615 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14616 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14617 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14618 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14619
14620 2009-06-08 Michael Matz <matz@suse.de>
14621
14622 PR debug/40012
14623 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14624 partitions use the same.
14625 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14626 for basevars of SSA_NAMEs.
14627 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14628 to not expand them twice.
14629 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14630 multiple places.
14631
14632 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14633
14634 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14635 (fdump-final-insns=, gtoggle): New.
14636 * doc/invoke.texi: Document them.
14637 * final.c (rest_of_clean_state): Dump final insn stream.
14638 * gcc.c (invoke_as): Hook in -fcompare-debug.
14639 (static_spec_functions): Add compare-debug-dump-opt,
14640 compare-debug-self-opt and compare-debug-auxbase-opt.
14641 (compare_debug, compare_debug_second, compare_debug_opt): New.
14642 (switches_debug_check, n_switches_debug_check): New.
14643 (debug_auxbase_opt, debug_check_temp_file): New.
14644 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14645 -fcompare-debug=*.
14646 (do_self_spec): Handle arguments after switches.
14647 (do_spec_1): Add .gk extension to temp file basenames for compare.
14648 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14649 (cc1_options): Use it instead of normal auxbase computation for
14650 the second compare-debug compilation.
14651 (compare_files): New.
14652 (main): Set up and implement compare debug mode.
14653 (compare_debug_dump_opt_spec_function): New.
14654 (compare_debug_self_opt_spec_function): New.
14655 (compare_debug_auxbase_opt_spec_function): New.
14656 * toplev.c (process_options): Handle flag_gtoggle,
14657 flag_dump_final_insns.
14658 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14659 during -fcompare-debug-second compilation.
14660
14661 2009-06-07 Ian Lance Taylor <iant@google.com>
14662
14663 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14664 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14665
14666 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14667 with no default node. Change warning with %H to warning_at.
14668 Don't clear warn_switch around case checking.
14669 * doc/invoke.texi (Warning Options): Clarify distinction between
14670 -Wswitch and -Wswitch-enum.
14671
14672 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14673
14674 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14675
14676 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14677
14678 * gbl-ctors.h: Add header guard.
14679
14680 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14681
14682 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14683 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14684 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14685 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14686 prototypes for removed functions.
14687 (expressions_equal_p): Move to ...
14688 * tree-ssa-sccvn.h: ... here and ...
14689 * matrix-reorg.c: ... adjust includes.
14690
14691 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14692
14693 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14694
14695 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14696
14697 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14698 (finish_function): Remove erroneous whitespace.
14699
14700 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14701
14702 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14703 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14704
14705 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14706
14707 * errors.c (internal_error): Commentary typo fix.
14708 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14709 * tree-ssa-pre.c: Ditto.
14710
14711 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14712
14713 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14714 them is supposed to hold actual statements.
14715
14716 2009-06-06 Ian Lance Taylor <iant@google.com>
14717
14718 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14719 empty statements can now have attributes.
14720
14721 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14722
14723 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14724 * config/mips/mips.md: Ditto.
14725
14726 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14727
14728 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14729 _RELOCATABLE.
14730 (__eabi_uconvert): Likewise.
14731
14732 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14733
14734 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14735 CFI_* definitions with IN_GCC.
14736
14737 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14738
14739 * xcoffout.h (xcoffout_source_line): Update prototype.
14740
14741 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14742
14743 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14744 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14745
14746 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14747
14748 PR middle-end/40340
14749 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14750 inlined_function_outer_scope_p blocks for artificial inlines
14751 even at -g0/-g1.
14752 * tree.c (tree_nonartificial_location): Rewrite using
14753 block_nonartificial_location.
14754
14755 2009-06-05 Revital Eres <eres@il.ibm.com>
14756 Leehod Baruch <leehod@il.ibm.com>
14757
14758 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14759 (expand_expr_real_1): Remove comment.
14760 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14761 Vectorize misaligned access when the target supports it.
14762 (vect_supportable_dr_alignment): Check for unaligned access support.
14763 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14764 and remove asset.
14765
14766 2009-06-05 Julian Brown <julian@codesourcery.com>
14767
14768 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14769 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14770
14771 2009-06-05 Richard Guenther <rguenther@suse.de>
14772
14773 PR bootstrap/40350
14774 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14775 as possibly unused.
14776
14777 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14778
14779 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14780 (save_gprs): Don't tell unwinder when a global register is saved.
14781 (s390_emit_epilogue): Emit needed epilogue unwind info.
14782
14783 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14784
14785 * dwarf2out.c (deferred_asm_name): New.
14786 (add_name_and_src_coords_attributes): Defer creation of
14787 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14788 computed yet.
14789 (move_linkage_attr): New.
14790 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14791 right place.
14792
14793 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14794
14795 * tree-nested.c (finalize_nesting_tree_1): Declare the
14796 frame_decl in the binding tree.
14797
14798 2009-06-04 Cary Coutant <ccoutant@google.com>
14799
14800 * basic-block.h (struct basic_block_def): Add discriminator field.
14801 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14802 callers.
14803 * debug.c (do_nothing_debug_hooks): Add additional entry.
14804 (debug_nothing_int_charstar_int): New function.
14805 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14806 (debug_nothing_int_charstar_int): New declaration.
14807 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14808 discriminator value in .loc directive.
14809 * final.c (last_discriminator): New variable.
14810 (discriminator): New variable.
14811 (final_start_function): Initialize above variables, pass current
14812 discriminator to debug hook.
14813 (notice_source_line): Check for discriminator change.
14814 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14815 * sdbout.c (sdbout_source_line): New parameter.
14816 * tree-cfg.c (struct locus_discrim_map): New structure type.
14817 (discriminator_per_locus): New hash table.
14818 (build_gimple_cfg): Allocate and free discriminator hash table.
14819 (make_edges): Call assign_discriminator.
14820 (locus_map_hash): New function.
14821 (locus_map_eq): New function.
14822 (next_discriminator_for_locus): New function.
14823 (same_line_p): New function.
14824 (assign_discriminator): New function.
14825 (make_cond_expr_edges): Call assign_discriminator.
14826 (make_gimple_switch_edges): Likewise.
14827 (first_non_label_stmt): New function.
14828 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14829 all callers.
14830 * xcoffout.c (xcoffout_source_line): Add new parameter.
14831
14832 * configure.ac (gcc_cv_as_discriminator): New configury check for
14833 gas support for discriminator.
14834 * configure: Regenerate.
14835 * config.in: Regenerate.
14836
14837 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14838
14839 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14840 val after checking for integers.
14841
14842 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14843
14844 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14845 X64_REGPARM_MAX.
14846 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14847 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14848 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14849 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14850 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14851 X64_SSE_REGPARM_MAX.
14852 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14853 X64_SSE_REGPARM_MAX.
14854
14855 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14856
14857 * gcc.c (report_times_to_file): New.
14858 (execute): Implement it.
14859 (process_command): Support -time=.
14860 * doc/invoke.texi: Document it.
14861
14862 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14863
14864 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14865 that have value exprs.
14866
14867 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14868
14869 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14870 declarations for constants until...
14871 (dw2_output_indirect_constant_1): ... this point.
14872
14873 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14874
14875 PR target/10242
14876 * arm.md (arm_addsi3): Don't try to split an add with an
14877 eliminable register until after reload has completed.
14878
14879 2009-06-03 Ian Lance Taylor <iant@google.com>
14880
14881 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14882 * genattrtab.c (write_length_unit_log): Likewise.
14883 * genchecksum.c (dosum): Likewise.
14884 * gengtype.c (write_rtx_next): Likewise.
14885 (finish_root_table, write_roots): Likewise.
14886 * gimple.c (gimple_ops_offset_): Likewise.
14887 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14888 * config/arc/arc.c (arc_attribute_table): Likewise.
14889 * config/arm/arm.c (arm_attribute_table): Likewise.
14890 * config/avr/avr.c (avr_attribute_table): Likewise.
14891 * config/crx/crx.c (crx_attribute_table): Likewise.
14892 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14893 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14894 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14895 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14896 * config/sh/sh.c (sh_attribute_table): Likewise.
14897 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14898 * config/spu/spu.c (spu_attribute_table): Likewise.
14899 * config/v850/v850.c (v850_attribute_table): Likewise.
14900
14901 * config/alpha/alpha.c (vms_attribute_table): Make static.
14902 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14903 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14904 * config/mips/mips.c (mips_attribute_table): Likewise.
14905
14906 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14907 $(SYSTEM_H).
14908 (cc1-checksum.o): Likewise.
14909
14910 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14911
14912 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14913
14914 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14915
14916 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14917 insn if it is changing sp. Use gen_add3_insn instead of
14918 conditionally gen_addsi3 and gen_adddi3.
14919 (offset_below_red_zone_p): New static inline function.
14920 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14921 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14922 * config/rs6000/ppc-asm.h: Include auto-host.h.
14923 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14924 CFI_RESTORE): Define.
14925 * config/rs6000/crtresxgpr.asm: Add unwind info.
14926 * config/rs6000/crtresxfpr.asm: Likewise.
14927 * config/rs6000/crtresgpr.asm: Likewise.
14928 * config/rs6000/crtresfpr.asm: Likewise.
14929 * config/rs6000/crtsavgpr.asm: Likewise.
14930 * config/rs6000/crtsavfpr.asm: Likewise.
14931
14932 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14933 argument of DWARF2_FRAME_REG_OUT macros.
14934
14935 2009-06-03 Julian Brown <julian@codesourcery.com>
14936
14937 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14938 words or less (including TImode) in core registers.
14939
14940 2009-06-03 Richard Guenther <rguenther@suse.de>
14941
14942 PR middle-end/40328
14943 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14944
14945 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14946
14947 * statistics.c (statistics_counter_event): Do not record event
14948 in pass dump if its number == -1.
14949 (curr_statistics_hash): Add assert that we never get passes
14950 with static number == -1.
14951
14952 2009-06-03 Richard Guenther <rguenther@suse.de>
14953 Andrey Belevantsev <abel@ispras.ru>
14954
14955 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14956 non-BLKmode arrays addressable.
14957
14958 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14959
14960 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14961 * config/m68k/m68k.h: ... here.
14962
14963 2009-06-03 Martin Jambor <mjambor@suse.cz>
14964
14965 PR tree-optimization/40323
14966 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14967 assignment.
14968
14969 2009-06-03 Richard Guenther <rguenther@suse.de>
14970
14971 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14972 consistently.
14973
14974 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14975
14976 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14977 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14978 JUMP_TABLE_DATA_P where applicable.
14979 * config/sh/sh.c: Ditto.
14980 * config/sh/sh.h: Ditto.
14981 * config/sh/sh.md: Ditto.
14982 * config/sh/symbian.c: Ditto.
14983
14984 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14985
14986 * config/i386/driver-i386.c (describe_cache): Optimize
14987 concatenation of strings. Use snprintf instead of sprintf.
14988 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14989 target when not compiling with GCC.
14990
14991 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14992
14993 * config/sh/sh.c: Revert last change.
14994 (sh_expand_epilogue): Emit a blockage insn before the frame
14995 pointer adjustment unconditionally.
14996
14997 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14998
14999 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
15000 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
15001 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
15002 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
15003 to COLLECT_GCC_OPTIONS.
15004
15005 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15006
15007 * collect2.c (target_system_root): New variable.
15008 (main): Handle --sysroot=.
15009 (ignore_library): Strip the sysroot from the library path.
15010
15011 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15012
15013 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
15014 (collect2.o): Depend on collect2-aix.h.
15015 (collect2-aix.o): New rule.
15016 * collect2-aix.h: New file.
15017 * collect2-aix.c: Likewise.
15018 * collect2.c: Include collect2-aix.h. Don't undefine
15019 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
15020 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
15021 Use TARGET_AIX_VERSION instead of _AIX51.
15022 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
15023 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
15024 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
15025 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
15026 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
15027
15028 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15029
15030 * collect2.c (ignore_library): Avoid premature post-increment
15031 and null deference.
15032
15033 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
15034
15035 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
15036 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
15037 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
15038 CROSS_DIRECTORY_STRUCTURE too.
15039 (LINK_LIBG_SPEC): Likewise.
15040 (LIB_SPEC): Add %R to sysroot paths.
15041 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
15042 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
15043 * config/rs6000/aix51.h: As for aix43.h.
15044 * config/rs6000/aix52.h: Likewise.
15045 * config/rs6000/aix53.h: Likewise.
15046 * config/rs6000/aix61.h: Likewise.
15047 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
15048 to the beginning of sysroot paths.
15049
15050 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15051
15052 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
15053 INSN_LISTs that are out of the REG_NOTE range.
15054
15055 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15056
15057 * loop-unroll.c (struct iv_to_split): Add pointer to next.
15058 (struct var_to_expand): Likewise.
15059 (struct opt_info): Add head and tail for linked lists of the above.
15060 (analyze_insn_to_expand_var): Initialize next.
15061 (analyze_iv_to_split_insn): Likewise.
15062 (analyze_insns_in_loop): Create linked lists.
15063 (allocate_basic_variable): Simplify for use without hash table.
15064 (insert_var_expansion_initialization): Likewise, make it type-safer.
15065 (combine_var_copies_in_loop_exit): Likewise.
15066 (apply_opt_in_copies): Walk lists rather than hash tables.
15067 (release_var_copies): Simplified and inlined by hand into...
15068 (free_opt_info): ... this function.
15069
15070 2009-06-02 Richard Guenther <rguenther@suse.de>
15071
15072 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15073 for field decls.
15074
15075 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15076
15077 * cfgexpand.c (gimple_expand_cfg): Discard the source location
15078 only for builtins that are not overridden.
15079
15080 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15081
15082 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
15083 label string.
15084
15085 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15086
15087 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
15088
15089 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15090
15091 * combine.c (move_deaths): Compare LUIDs within the same BB only.
15092
15093 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15094
15095 * common.opt (fdump-unnumbered-links): New.
15096 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
15097 * print-rtl.c (flag_dump_unnumbered_links): New.
15098 (print_rtx): Test it.
15099
15100 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
15101
15102 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
15103 push/pop multiple to 8-byte alignment.
15104
15105 2009-06-01 Jakub Jelinek <jakub@redhat.com>
15106
15107 * config/i386/i386.c (queued_cfa_restores): New static variable.
15108 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
15109 functions.
15110 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
15111 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
15112 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
15113 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
15114 note unconditionally.
15115 (ix86_emit_restore_regs_using_mov): Likewise.
15116 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15117 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15118 it through to ix86_emit_restore_reg_using_pop.
15119 (ix86_emit_leave): Add RED_OFFSET argument. Call
15120 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
15121 instead of adding REG_CFA_OFFSET note unconditionally.
15122 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15123 the above functions. Call ix86_add_queued_cfa_restore_notes when
15124 needed.
15125
15126 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15127 force output of the label even for dwarf2out_do_cfi_asm.
15128 (add_fde_cfi): If -g2 and above and cfi might change CFA,
15129 force creation of CFI label and chain DW_CFA_set_loc jumping to it
15130 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
15131 caller.
15132 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15133 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15134 dwarf2out_cfi_label callers.
15135 * tree.h (dwarf2out_cfi_label): Adjust prototype.
15136 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15137 Adjust dwarf2out_cfi_label callers.
15138 * config/vax/vax.c (vax_output_function_prologue): Likewise.
15139
15140 * config/i386/i386.h (struct machine_cfa_state,
15141 struct machine_function): Guard with ifndef USED_FOR_TARGET
15142 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15143
15144 PR other/40024
15145 * emutls.c (__emutls_get_address): Change arr->size to mean number
15146 of allocated arr->data entries instead of # of slots + 1.
15147
15148 PR middle-end/40316
15149 * recog.c (peep2_reinit_state): New function.
15150 (peephole2_init_state): Use it at the end of a basic block and also
15151 when seeing a RTX_FRAME_RELATED_P insn.
15152
15153 2009-06-01 Steve Ellcey <sje@cup.hp.com>
15154
15155 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15156 fixuns_truncrfdi2): New.
15157 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15158 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15159 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15160 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15161 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15162 *recip_approx): Remove.
15163 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15164 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15165 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15166 move to div.md.
15167 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15168 setf_exp_rf): New.
15169
15170 2009-06-01 Ian Lance Taylor <iant@google.com>
15171
15172 * attribs.c (register_attribute): Use CONST_CAST.
15173 * collect2.c (main): Use CONST_CAST2.
15174 (scan_prog_file): Likewise.
15175 * gcc.c (process_command, main): Likewise.
15176 * toplev.c (toplev_main): Likewise.
15177
15178 * c-typeck.c (handle_warn_cast_qual): New static function,
15179 partially broken out of build_c_cast.
15180 (build_c_cast): Call handle_warn_cast_qual.
15181 * doc/invoke.texi (Warning Options): Document new effect of
15182 -Wcast-qual.
15183
15184 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
15185
15186 * diagnostic.c (diagnostic_build_prefix): Always print columns.
15187 (diagnostic_report_current_module): Print columns.
15188 * common.opt (flag_show_column): Enable by default.
15189
15190 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
15191
15192 * alias.c (find_base_term): Check for NULL term before returning.
15193
15194 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15195
15196 Revert due to PR40320:
15197 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15198 * calls.c (emit_library_call_value_1): Don't force_operand for move
15199 and push insns.
15200
15201 2009-06-01 Olivier Hainque <hainque@adacore.com>
15202 Eric Botcazou <ebotcazou@adacore.com>
15203
15204 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15205 to be processed as a bitfield for constructor output purposes.
15206 * output.h (initializer_constant_valid_for_bitfield_p): Declare
15207 new function.
15208 * varasm.c (oc_local_state): New type, output_constructor
15209 local state to support communication with helpers.
15210 (oc_outer_state): New type, output_constructor outer state of
15211 relevance in recursive calls.
15212 (output_constructor_array_range): New output_constructor helper,
15213 extracted code for an array range element.
15214 (output_constructor_regular_field): New output_constructor helper,
15215 extracted code for an element that is not a bitfield.
15216 (output_constructor_bitfield): New output_constructor helper,
15217 extracted code for a bitfield element. Accept an OUTER state
15218 argument for recursive processing. Recurse on record or array
15219 CONSTRUCTOR values, possibly past noop conversions.
15220 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
15221 VALUE is a valid constant-valued expression for use in a static
15222 bit-field initializer.
15223 (output_constructor): Rework to use helpers. Accept and honor an
15224 OUTER state argument for recursive calls. Return total size. Be
15225 prepared for nested constructors initializing bitfields.
15226 (output_constant): Feed OUTER in calls to output_constructor.
15227
15228 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15229
15230 * calls.c (emit_library_call_value_1): Don't force_operand for move
15231 and push insns.
15232
15233 2009-06-01 Nick Clifton <nickc@redhat.com>
15234
15235 * doc/invoke.texi (IA-64 Options): Fix typo.
15236
15237 2009-06-01 Ira Rosen <irar@il.ibm.com>
15238
15239 PR tree-optimization/39129
15240 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15241 printed message.
15242 (vect_do_peeling_for_loop_bound): Use
15243 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15244 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15245 (vect_loop_versioning): Likewise.
15246 (vect_create_cond_for_alias_checks): Fix indentation.
15247 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15248 macros.
15249 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15250 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15251 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15252 "control flow in loop".
15253 (vect_estimate_min_profitable_iters): Use
15254 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15255 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15256 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15257 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15258 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15259 statement belongs to a group of strided accesses with the exact code
15260 check.
15261 (vectorizable_load): Likewise.
15262 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15263 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15264
15265 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
15266
15267 * config/freebsd-stdint.h: New file.
15268 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15269 Add freebsd-stdint.h to tm_file.
15270
15271 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
15272
15273 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15274 (thumb2_extendhidi2): Likewise.
15275
15276 2009-05-31 Ian Lance Taylor <iant@google.com>
15277
15278 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15279
15280 2009-05-31 Ian Lance Taylor <iant@google.com>
15281
15282 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15283 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15284 (ipa-reference.o): Depend upon gt-ipa-reference.h.
15285
15286 2009-05-31 Jason Merrill <jason@redhat.com>
15287
15288 * tree-pretty-print.c (print_call_name): Take the callee, not the
15289 call itself. Make non-static. Use dump_function_name for functions.
15290 (dump_generic_node): Adjust.
15291 * diagnostic.h: Declare print_call_name.
15292 * gimple-pretty-print.c (dump_gimple_call): Use it.
15293
15294 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15295
15296 * config/sh/sh.md (ashldi3_std): New define_expand.
15297 (ashldi3): Use it.
15298
15299 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15300
15301 PR target/40313
15302 * config/sh/sh.c: Include debug.h.
15303 (sh_expand_epilogue): Emit a blockage insn before the frame
15304 pointer adjustment also when dwarf2out_do_frame returns true.
15305
15306 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
15307
15308 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15309 (thumb2_extendqidi2): New pattern.
15310
15311 2009-05-31 Ira Rosen <irar@il.ibm.com>
15312
15313 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15314 mark phis for renaming.
15315 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15316 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15317 Call mark_sym_for_renaming.
15318 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15319 * tree-vect-loop.c (vect_transform_loop): Remove
15320 vect_memsyms_to_rename initialization and a call to
15321 mark_set_for_renaming.
15322
15323 2009-05-31 Jakub Jelinek <jakub@redhat.com>
15324
15325 PR middle-end/40304
15326 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15327 frame related even if !set_cfa && style < 0.
15328
15329 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
15330
15331 * config/i386/mingw-tls.c: New file.
15332 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15333 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15334 defining _WIN32 but not __CYGWIN__.
15335
15336 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15337
15338 * configure.ac: Add MPC support.
15339
15340 * config.in, configure: Regenerate.
15341
15342 2009-05-29 Richard Henderson <rth@redhat.com>
15343
15344 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15345 NOTE_INSN_BASIC_BLOCK.
15346 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15347 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15348 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15349 to be deleted.
15350 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15351 add in_use field.
15352 (add_cfi): Disable check redefining cfa away from drap.
15353 (lookup_cfa_1): Add remember argument; handle remember/restore.
15354 (lookup_cfa): Pass remember argument.
15355 (cfa_remember): New.
15356 (compute_barrier_args_size_1): Remove sibcall check.
15357 (dwarf2out_frame_debug_def_cfa): New.
15358 (dwarf2out_frame_debug_adjust_cfa): New.
15359 (dwarf2out_frame_debug_cfa_offset): New.
15360 (dwarf2out_frame_debug_cfa_register): New.
15361 (dwarf2out_frame_debug_cfa_restore): New.
15362 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15363 (dwarf2out_begin_epilogue): New.
15364 (dwarf2out_frame_debug_restore_state): New.
15365 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15366 DW_CFA_restore_state.
15367 (output_cfi_directive): Likewise.
15368 (convert_cfa_to_fb_loc_list): Likewise.
15369 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15370 * dwarf2out.h: Update.
15371 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15372 (copy_insn_1): Early out for null.
15373 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15374 and dwarf2out_frame_debug_restore_state.
15375 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15376 (prologue_insn_hash, epilogue_insn_hash): New.
15377 (free_after_compilation): Adjust freeing accordingly.
15378 (record_insns): Create hash table if needed; push insns into
15379 hash instead of array.
15380 (maybe_copy_epilogue_insn): New.
15381 (contains): Search hash table instead of array.
15382 (sibcall_epilogue_contains): Remove.
15383 (thread_prologue_and_epilogue_insns): Split eh_return insns
15384 and mark them as epilogues.
15385 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15386 scanning in terms of basic blocks.
15387 * insn-notes.def (CFA_RESTORE_STATE): New.
15388 * jump.c (returnjump_p_1): Accept EH_RETURN.
15389 (eh_returnjump_p_1, eh_returnjump_p): New.
15390 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15391 CFA_REGISTER, CFA_RESTORE): New.
15392 * rtl.def (EH_RETURN): New.
15393 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15394
15395 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15396 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15397
15398 * config/i386/i386.c (gen_push): Update cfa state.
15399 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15400 add a CFA_ADJUST_CFA note.
15401 (ix86_dwarf_handle_frame_unspec): Remove.
15402 (ix86_expand_prologue): Update cfa state.
15403 (ix86_emit_restore_reg_using_pop): New.
15404 (ix86_emit_restore_regs_using_pop): New.
15405 (ix86_emit_leave): New.
15406 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15407 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15408 * config/i386/i386.h (struct machine_cfa_state): New.
15409 (ix86_cfa_state): New.
15410 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15411 (eh_return_internal): Merge from eh_return_<mode>,
15412 use eh_return rtx, split w/ epilogue.
15413
15414 2009-05-29 Ian Lance Taylor <iant@google.com>
15415
15416 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15417 enum type.
15418 * calls.c (emit_library_call_value_1): Likewise.
15419
15420 * c-typeck.c (c_build_va_arg): New function.
15421 * c-tree.h (c_build_va_arg): Declare.
15422 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15423 instead of build_va_arg.
15424
15425 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15426
15427 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15428 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15429 (ptr_difference_cost): Use affine combinations to compute it.
15430 (difference_cost): Likewise.
15431 (get_computation_cost_at): Compute more accurate cost for addresses
15432 if the ratio is a multiplier allowed in addresses.
15433 For non-addresses, consider that an additional offset or symbol is
15434 added only once.
15435
15436 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15437
15438 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15439 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15440
15441 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15442 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15443 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15444 if MODE_DI.
15445 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15446 to 1 for TYPE_SSE{IADD1,CVT1}.
15447 (prefix_vex_imm8): Removed.
15448 (length_vex): Only pass 1 as second argument to
15449 ix86_attr_length_vex_default if prefix_extra is 0.
15450 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15451 (length): For prefix vex computation use length_immediate
15452 attribute instead of prefix_vex_imm8.
15453 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15454 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15455 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15456 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15457 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15458 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15459 a space in between the operands.
15460 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15461 if one operand is 0xff and the other one si, di, bp or sp.
15462 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15463 other one si, di, bp or sp.
15464 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15465 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15466 type and mode attributes.
15467 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15468 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15469 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15470 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15471 prefix_data16 attribute iff MODE_DF.
15472 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15473 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15474 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15475 constm128_operand in length_immediate computation.
15476 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15477 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15478 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15479 length_immediate attribute to 1.
15480 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15481 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15482 for certain alternatives.
15483 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15484 prefix_data16 attribute if MODE_V1DF.
15485 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15486 length_immediate to 1.
15487 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15488 length_address to 4, set mode attribute to MODE_DI.
15489 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15490 (fxam<mode>2_i387): Set length attribute to 4.
15491 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15492 *prefetch_3dnow_rex): Override length_address attribute.
15493 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15494 attributes.
15495 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15496 (constm128_operand): Removed.
15497 * config/i386/i386.c (memory_address_length): For
15498 disp && !index && !base in 64-bit mode account for SIB byte if
15499 print_operand_address can't optimize disp32 into disp32(%rip)
15500 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15501 for fs: or gs: segment.
15502 (ix86_attr_length_immediate_default): When checking if shortform
15503 is possible, truncate immediate to the length of the non-shortened
15504 immediate.
15505 (ix86_attr_length_address_default): Ignore MEM_P operands
15506 with X constraint.
15507 (ix86_attr_length_vex_default): Only check for DImode on
15508 GENERAL_REG_P operands.
15509 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15510 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15511 (sse_cvttps2pi): Clear prefix_rep attribute.
15512 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15513 attribute.
15514 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15515 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15516 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15517 iff operand 2 is const_int_operand.
15518 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15519 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15520 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15521 instead of vex.
15522 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15523 prefix_data16.
15524 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15525 prefix_data16 attribute for movlpd and movhpd instructions.
15526 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15527 length_immediate for shufpd instruction.
15528 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15529 (avx_cmpp<avxmodesuffixf2c><mode>3,
15530 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15531 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15532 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15533 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15534 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15535 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15536 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15537 prefix_data16 attribute for the first alternative to 1.
15538 (*avx_loadlps): Override length_immediate for the first alternative.
15539 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15540 attributes for second alternative.
15541 (*vec_concatv2sf_sse4_1): Override length_immediate and
15542 prefix_data16 attributes for second alternative.
15543 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15544 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15545 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15546 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15547 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15548 prefix_data16 and length_immediate to 1.
15549 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15550 to 1.
15551 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15552 prefix_extra attribute for variants that don't have 0f prefix alone.
15553 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15554 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15555 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15556 *sse4_1_pextrd): Set length_immediate to 1.
15557 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15558 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15559 to 1.
15560 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15561 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15562 length_immediate to 1 for second alternative.
15563 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15564 prefix_extra and length_immediate attributes for the first
15565 alternative.
15566 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15567 first alternative.
15568 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15569 to 1 for the first and third alternative.
15570 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15571 alternative.
15572 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15573 attribute.
15574 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15575 attribute to 0.
15576 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15577 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15578 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15579 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15580 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15581 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15582 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15583 ssse3_psign<mode>3): Override prefix_rex attribute.
15584 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15585 (ssse3_palignrti): Override length_immediate to 1.
15586 (ssse3_palignrdi): Override length_immediate to 1, override
15587 prefix_rex attribute.
15588 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15589 (sse4a_extrqi): Override length_immediate to 2.
15590 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15591 (sse4a_insertq): Override prefix_data16 to 0.
15592 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15593 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15594 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15595 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15596 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15597 and length_immediate to 1.
15598 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15599 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15600 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15601 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15602 and length_immediate to 1.
15603 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15604 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15605 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15606 avx_ptest256): Override prefix_extra to 1.
15607 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15608 Override prefix_data16 and length_immediate to 1.
15609 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15610 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15611 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15612 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15613 prefix_data16 to 0 and prefix_extra to 2.
15614 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15615 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15616 attribute.
15617 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15618 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15619 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15620 and prefix_extra to 2.
15621 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15622 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15623 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15624 avx_vpermilvar<mode>3,
15625 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15626 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15627 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15628 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15629 Override prefix_extra to 1.
15630 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15631 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15632 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15633 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15634 prefix_extra and length_immediate to 1.
15635 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15636 modrm to 0.
15637 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15638 to 1 for the first alternative.
15639 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15640 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15641 cases.
15642 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15643 *movv2sf_internal_avx, *movv2sf_internal): Override
15644 prefix_rep attribute for certain alternatives.
15645 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15646 attributes for certain alternatives.
15647 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15648 attributes for certain alternatives.
15649 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15650 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15651 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15652 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15653 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15654 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15655 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15656 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15657 length_immediate to 1 if operand 2 is const_int_operand.
15658 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15659 *vec_extractv2si_1): Set length_immediate attribute to 1.
15660 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15661 using old 3DNOW insn rather than SSE/3DNOW_A.
15662 (mmx_emms, mmx_femms): Clear modrm attribute.
15663
15664 2009-05-29 Martin Jambor <mjambor@suse.cz>
15665
15666 * tree-sra.c: New implementation of SRA.
15667
15668 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15669 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15670 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15671 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15672 (SRA_MAX_STRUCTURE_COUNT): Removed.
15673 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15674 * doc/invoke.texi (sra-max-structure-size): Removed.
15675 (sra-field-structure-ratio): Removed.
15676
15677 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15678
15679 PR middle-end/40291
15680 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15681 before expansion.
15682
15683 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15684
15685 PR rtl-optimization/40101
15686 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15687 seqno. Adjust comment.
15688 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15689 inserting bookkeeping before a jump, the jump is not scheduled.
15690 When no positive seqno found, provide a value. Add comment.
15691
15692 2009-05-29 Richard Guenther <rguenther@suse.de>
15693
15694 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15695 short-cutting on the first component.
15696
15697 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15698
15699 PR middle-end/39958
15700 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15701 for trees other than decls/types.
15702
15703 2009-05-29 Richard Guenther <rguenther@suse.de>
15704
15705 * tree-ssa-operands.c (get_expr_operands): Do not handle
15706 INDIRECT_REFs in the handled-component case. Remove
15707 unused get_ref_base_and_extent case.
15708 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15709 tree_low_cst and host_integerp where possible.
15710 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15711 codes for equivalence.
15712 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15713
15714 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15715
15716 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15717 to tmake_file for i[34567]86-*-cygwin*.
15718
15719 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15720
15721 PR target/40017
15722 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15723 (altivec_categorize_keyword, init_vector_keywords,
15724 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15725 similar to bool.
15726
15727 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15728
15729 * tree.c (handle_dll_attribute): Check if node is
15730 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15731
15732 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15733
15734 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15735 component.
15736 (thumb2_zero_extendqidi2): Likewise.
15737
15738 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15739
15740 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15741 instead of gen_movrt.
15742 * config/sh/sh.md (movrt): Remove.
15743
15744 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15745
15746 * doc/invoke.texi (IA-64 Options):
15747 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15748 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15749 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15750 -msched-prefer-non-control-spec-insns,
15751 -msched-stop-bits-after-every-cycle,
15752 -msched-count-spec-in-critical-path,
15753 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15754 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15755 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15756 and -msched-spec-verbose.
15757
15758 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15759
15760 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15761 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15762 error if used.
15763 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15764
15765 2009-05-28 Richard Guenther <rguenther@suse.de>
15766
15767 * tree-ssa-alias.c (ao_ref_init): New function.
15768 (ao_ref_base): Likewise.
15769 (ao_ref_base_alias_set): Likewise.
15770 (ao_ref_alias_set): Likewise.
15771 (refs_may_alias_p_1): Change signature.
15772 (refs_may_alias_p): Adjust.
15773 (refs_anti_dependent_p): Likewise.
15774 (refs_output_dependent_p): Likewise.
15775 (call_may_clobber_ref_p_1): Change signature.
15776 (call_may_clobber_ref_p): Adjust.
15777 (stmt_may_clobber_ref_p_1): New function split out from ...
15778 (stmt_may_clobber_ref_p): ... here.
15779 (maybe_skip_until): Adjust signature.
15780 (get_continuation_for_phi): Likewise.
15781 (walk_non_aliased_vuses): Likewise.
15782 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15783 (ao_ref_init): Declare.
15784 (ao_ref_base): Likewise.
15785 (ao_ref_alias_set): Likewise.
15786 (stmt_may_clobber_ref_p_1): Likewise.
15787 (walk_non_aliased_vuses): Adjust.
15788 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15789 (get_ref_from_reference_ops): remove.
15790 (vn_reference_lookup_2): Adjust signature.
15791 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15792 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15793 (vn_reference_lookup): Adjust.
15794 (vn_reference_insert): Likewise.
15795 (vn_reference_insert_pieces): Adjust signature.
15796 (visit_reference_op_call): Adjust.
15797 * tree-ssa-pre.c (get_expr_type): Simplify.
15798 (phi_translate_1): Adjust.
15799 (compute_avail): Likewise.
15800 (translate_vuse_through_block): Do not re-build trees.
15801 (value_dies_in_block_x): Likewise.
15802 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15803 fields.
15804 (vn_reference_lookup_pieces): Adjust declaration.
15805 (vn_reference_insert_pieces): Likewise.
15806
15807 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15808
15809 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15810 with checking disabled.
15811
15812 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15813
15814 PR target/37216
15815
15816 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15817 macro definition for support of three-operand format aligned
15818 .comm directive in assembler on cygwin/pe/mingw target OS.
15819 * configure: Regenerate.
15820 * config.h: Regenerate.
15821
15822 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15823 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15824 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15825
15826 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15827 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15828
15829 2009-05-28 Ira Rosen <irar@il.ibm.com>
15830
15831 PR tree-optimization/40254
15832 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15833 in analysis of basic blocks.
15834
15835 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15836
15837 PR middle-end/33699
15838 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15839 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15840 (TARGET_INITIALIZER): Use it.
15841 * cse.c (CHEAPER): Move it up to the other macros.
15842 (insert): Rename this ...
15843 (insert_with_costs): ... to this. Add cost parameters. Update
15844 function comment.
15845 (insert): New function. Call insert_with_costs.
15846 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15847 find_reg_offset_for_const, try_const_anchors): New functions.
15848 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15849 when using a const-anchor. Call insert_const_anchors.
15850 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15851 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15852
15853 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15854
15855 * tree-inline.c (remap_decls): Enable nonlocalized variables
15856 when not optimizing.
15857
15858 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15859
15860 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15861 Simplify other tests involving optimize.
15862
15863 2009-05-27 Tom Tromey <tromey@redhat.com>
15864
15865 * unwind-dw2.c (_Unwind_DebugHook): New function.
15866 (uw_install_context): Call _Unwind_DebugHook.
15867
15868 2009-05-27 Tom Tromey <tromey@redhat.com>
15869
15870 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15871
15872 2009-05-27 Ian Lance Taylor <iant@google.com>
15873
15874 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15875 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15876 (ALL_LINKERFLAGS): Define.
15877 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15878 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15879 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15880 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15881 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15882 $(LINKER_FOR_BUILD).
15883 (build/gcov-iov$(build_exeext)): Likewise.
15884
15885 2009-05-27 Julian Brown <julian@codesourcery.com>
15886
15887 * gcse.c (target.h): Include.
15888 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15889 copy of argument to a pseudo register.
15890
15891 2009-05-27 Diego Novillo <dnovillo@google.com>
15892
15893 * tree-ssa-live.c (dump_scope_block): Document arguments.
15894 (dump_scope_blocks): Document.
15895 (debug_scope_blocks): New.
15896 * tree-flow.h (debug_scope_blocks): Declare.
15897
15898 2009-05-21 Denis Chertykov <denisc@overta.ru>
15899
15900 * doc/contrib.texi (Contributors): Add myself to the list.
15901
15902 2009-05-27 Olivier Hainque <hainque@adacore.com>
15903
15904 * expr.c (target_align): New function. Alignment the TARGET of an
15905 assignment may be assume to have.
15906 (highest_pow2_factor_for_target): Use it instead of relying on
15907 immediate tree attributes of TARGET, not necessarily honored when
15908 intermediate bitfields are involved.
15909
15910 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15911
15912 PR target/40266
15913 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15914 AVX, SSE4, AES, PCLMUL and POPCNT.
15915
15916 2009-05-27 Diego Novillo <dnovillo@google.com>
15917
15918 * tree-pretty-print.c (dump_location): New.
15919 (dump_generic_node): Call it.
15920 Factor code to handle BLOCK nodes ...
15921 (dump_block_node): ... here.
15922
15923 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15924
15925 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15926 with it.
15927 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15928 included.
15929 * gcc-plugin.h: Include config.h and system.h.
15930 (IN_GCC): Define if not defined.
15931
15932 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15933
15934 PR middle-end/40249
15935 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15936 with -fno-inline.
15937
15938 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15939
15940 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15941 applicable.
15942 * config/m32r/m32r.h: Ditto.
15943 * config/m32r/m32r.md: Ditto.
15944 * config/m32r/predicates.md: Ditto.
15945
15946 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15947
15948 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15949
15950 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15951
15952 * doc/plugins.texi
15953 (Loading plugins): typo.
15954 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15955 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15956 (Interacting with the GCC Garbage Collector): Added new section.
15957 (Giving information about a plugin): Added new section for
15958 PLUGIN_INFO.
15959 * ggc.h (ggc_register_root_tab): Added declaration.
15960 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15961 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15962 (register_callback): Improved comment in declaration.
15963 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15964 (extra_root_vec) Added static variable for dynamic roots registration.
15965 (ggc_register_root_tab) Added new routine.
15966 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15967 PLUGIN_GGC_MARKING event.
15968 * ggc-zone.c: Include plugin.h.
15969 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15970 * ggc-page.c: Include plugin.h.
15971 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15972 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15973 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15974 (register_callback): check lack of callbacks for
15975 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15976 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15977 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15978 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15979 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15980 dependency on plugin.h.
15981 (plugin.o): Added dependency on ggc.h...
15982
15983 2009-05-26 Richard Guenther <rguenther@suse.de>
15984
15985 PR middle-end/40248
15986 Revert
15987 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15988 with mismatched comparison modes.
15989
15990 * expr.c (expand_expr_real_1): Expand the operand of a
15991 VIEW_CONVERT_EXPR in its natural mode.
15992
15993 2009-05-26 Ian Lance Taylor <iant@google.com>
15994
15995 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15996 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15997 (ALL_COMPILERFLAGS): Define.
15998 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15999 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
16000 (collect2$(exeext), collect2.o): Likewise.
16001 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
16002 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
16003 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
16004 (libbackend.o, intl.o, cppdefault.o): Likewise.
16005 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
16006 (build/%.o): Use $(COMPILER_FOR_BUILD).
16007 (build/gen%$(build_exeext)): Likewise.
16008 (build/gcov-iov$(build_exeext)): LIkewise.
16009 * config/t-darwin (darwin.o): Use $(COMPILER).
16010 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
16011 * config/t-sol2 (sol2-c.o): Likewise.
16012 (sol2.o): Likewise.
16013 * config/t-vxworks (vxworks.o): Likewise.
16014 * config/x-darwin (host-darwin.o): Likewise.
16015 * config/x-hpux (host-hpux.o): Likewise.
16016 * config/x-linux (host-linux.o): Likewise.
16017 * config/x-solaris (host-solaris.o): Likewise.
16018 * config/alpha/x-alpha (driver-alpha.o): Likewise.
16019 * config/arm/t-arm (arm-c.o): Likewise.
16020 * config/arm/t-pe (pe.o): Likewise.
16021 * config/arm/t-wince-pe (pe.o): Likewise.
16022 * config/i386/t-cygming (winnt.o): Likewise.
16023 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
16024 * config/i386/t-cygwin (cygwin1.o): Likewise.
16025 (cygwin2.o): Likewise.
16026 * config/i386/t-i386 (i386-c.o): Likewise.
16027 * config/i386/t-interix (winnt.o): Likewise.
16028 * config/i386/t-netware (netware.o): Likewise.
16029 * config/i386/t-nwld (nwld.o): Likewise.
16030 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16031 * config/i386/x-i386 (driver-i386.o): Likewise.
16032 * config/i386/x-cygwin (host-cygwin.o): Likewise.
16033 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
16034 * config/ia64/t-ia64 (ia64-c.o): Likewise.
16035 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
16036 * config/mips/x-native (driver-native.o): Likewise.
16037 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
16038 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16039 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16040 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
16041 * config/score/t-score-elf (score7.o): Likewise.
16042 (score3.o): Likewise.
16043 * config/sh/t-sh (sh-c.o): Likewise.
16044 * config/sh/t-symbian (sh-c.o): Likewise.
16045 (symbian.o): Likewise.
16046 * config/spu/t-spu-elf (spu-c.o): Likewise.
16047 * config/v850/t-v850 (v850-c.o): Likewise.
16048 * config/v850/t-v850e (v850-c.o): Likewise.
16049
16050 2009-05-26 Richard Guenther <rguenther@suse.de>
16051
16052 PR tree-optimization/40122
16053 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
16054 VECTOR_CSTs if possible.
16055 (fold_gimple_assign): Likewise.
16056
16057 2009-05-26 Richard Guenther <rguenther@suse.de>
16058
16059 PR middle-end/40252
16060 * fold-const.c (fold_binary): Use the correct types for building
16061 rotates.
16062
16063 2009-05-26 Richard Guenther <rguenther@suse.de>
16064
16065 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
16066 redundant calls to merge_alias_info.
16067 (bump_vector_ptr): Likewise.
16068 * tree-ssa-copy.c (merge_alias_info): Remove.
16069 (replace_exp_1): Remove call to merge_alias_info.
16070 (propagate_tree_value): Likewise.
16071 (fini_copy_prop): Propagate points-to info.
16072 * tree-flow.h (merge_alias_info): Remove.
16073
16074 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
16075
16076 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
16077
16078 2009-05-25 Jan Hubicka <jh@suse.cz>
16079
16080 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16081 * cgraph.h (struct inline_summary): New filed self_wize,
16082 size_inlining_benefit, self_time and time_inlining_benefit.
16083 (struct cgraph_global_info): Replace insns by time ans size fields.
16084 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16085 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16086 (ipcp_update_callgraph): Do not touch function bodies.
16087 * ipa-inline.c: Include except.h
16088 (MAX_TIME): New constant.
16089 (overall_insns): Remove.
16090 (leaf_node_p): New.
16091 (overall_size, max_benefit): New static variables.
16092 (cgraph_estimate_time_after_inlining): New function.
16093 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16094 (cgraph_clone_inlined_nodes): Update size.
16095 (cgraph_mark_inline_edge): Update size.
16096 (cgraph_estimate_growth): Use size info.
16097 (cgraph_check_inline_limits): Check size.
16098 (cgraph_default_inline_p): Likewise.
16099 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16100 (cgraph_decide_recursive_inlining): Check size.
16101 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16102 and times.
16103 (cgraph_decide_inlining): Likewise.
16104 (cgraph_decide_inlining_incrementally): Likewise; honor
16105 PARAM_EARLY_INLINING_INSNS.
16106 (likely_eliminated_by_inlining_p): New predicate.
16107 (estimate_function_body_sizes): New function.
16108 (compute_inline_parameters): Use it.
16109 * except.c (must_not_throw_labels): New function.
16110 * except.h (must_not_throw_labels): Declare.
16111 * tree-inline.c (init_inline_once): Kill inlining_weigths
16112 * tree-ssa-structalias.c: Avoid uninitialized warning.
16113 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16114 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16115 (PARAM_INLINE_CALL_COST): Remove.
16116 (PARAM_EARLY_INLINING_INSNS): New.
16117
16118 2009-05-25 Richard Guenther <rguenther@suse.de>
16119
16120 PR tree-optimization/36327
16121 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16122 callback for reference translation or lookup at the point of may-defs.
16123 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16124 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16125 for union COMPONENT_REFs.
16126 (vn_reference_lookup_3): New callback. Lookup from memset
16127 and CONSTRUCTOR assignment, translate through struct copies.
16128 (vn_reference_lookup_pieces): Make sure to not free the
16129 passed operands array. Adjust walk_non_aliased_vuses call.
16130 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16131 make sure we do not leak memory.
16132
16133 2009-05-25 Richard Guenther <rguenther@suse.de>
16134
16135 * tree-ssa-alias.h (dump_points_to_solution): Declare.
16136 * tree-inline.c (expand_call_inline): Reset the escaped and
16137 callused solutions.
16138 * tree-ssa-structalias.c (pass_build_ealias): New.
16139 * tree-pass.h (pass_build_ealias): Declare.
16140 * passes.c (init_optimization_passes): Add PTA during
16141 early optimizations.
16142 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16143 and CALLUSED solutions.
16144 (dump_points_to_solution): New function, split out from ...
16145 (dump_points_to_info_for): ... here.
16146 * tree-parloops.c (parallelize_loops): Reset the escaped and
16147 callused solutions.
16148
16149 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16150
16151 PR bootstrap/40027
16152 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16153 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16154
16155 2009-05-25 Ira Rosen <irar@il.ibm.com>
16156
16157 PR tree-optimization/40238
16158 * tree-vect-stmts.c (vect_init_vector): Insert initialization
16159 statements after basic block's labels.
16160 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16161 to free the allocated memory.
16162
16163 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
16164
16165 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16166 return address with a USE.
16167
16168 2009-05-24 Richard Guenther <rguenther@suse.de>
16169
16170 PR middle-end/40233
16171 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16172 array type from the main variant of the inner type.
16173
16174 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16175
16176 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16177 definition to bool (from int) to un-break build.
16178 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16179
16180 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
16181
16182 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16183 discard_stmt_changes): Delete.
16184 * tree-ssa-operands.c (scb_stack): Delete.
16185 (init_ssa_operands): Do not initialize it.
16186 (fini_ssa_operands): Do not free it.
16187 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16188
16189 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16190 update_stmt, remove the others. Fix comments.
16191 * tree-dfa.c (optimize_stack_restore): Likewise.
16192 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16193 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16194 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16195 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16196 Likewise.
16197 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16198 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16199 (dom_opt_finalize_block): Likewise, adjusting access to
16200 stmts_to_rescan.
16201 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16202 (stmts_to_rescan): Change item type to gimple.
16203 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16204
16205 2009-05-24 Ira Rosen <irar@il.ibm.com>
16206
16207 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16208 * tree-pass.h (pass_slp_vectorize): New pass.
16209 * params.h (SLP_MAX_INSNS_IN_BB): Define.
16210 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16211 * tree-vectorizer.c (timevar.h): Include.
16212 (user_vect_verbosity_level): Declare.
16213 (vect_location): Fix comment.
16214 (vect_set_verbosity_level): Update user_vect_verbosity_level
16215 instead of vect_verbosity_level.
16216 (vect_set_dump_settings): Add an argument. Ignore user defined
16217 verbosity if dump flags require higher level of verbosity. Print to
16218 stderr only for loop vectorization.
16219 (vectorize_loops): Update call to vect_set_dump_settings.
16220 (execute_vect_slp): New function.
16221 (gate_vect_slp): Likewise.
16222 (struct gimple_opt_pass pass_slp_vectorize): New.
16223 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16224 access its members.
16225 (vec_info_for_bb): New function.
16226 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16227 (VECTORIZATION_ENABLED): New macro.
16228 (SLP_ENABLED, SLP_DISABLED): Likewise.
16229 (vect_is_simple_use): Add bb_vec_info argument.
16230 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16231 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16232 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16233 vect_schedule_slp, vect_analyze_slp): Likewise.
16234 (vect_analyze_stmt): Add slp_tree argument.
16235 (find_bb_location): Declare.
16236 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16237 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16238 (vect_analyze_loop_operations, vect_analyze_loop,
16239 get_initial_def_for_induction, vect_create_epilog_for_reduction,
16240 vect_finalize_reduction, vectorizable_reduction,
16241 vectorizable_live_operation, vect_transform_loop): Likewise.
16242 * tree-data-ref.c (dr_analyze_innermost): Update comment,
16243 skip evolution analysis if analyzing a basic block.
16244 (dr_analyze_indices): Likewise.
16245 (initialize_data_dependence_relation): Skip the test whether the
16246 object is invariant for basic blocks.
16247 (compute_all_dependences): Skip dependence analysis for data
16248 references in basic blocks.
16249 (find_data_references_in_stmt): Don't fail in case of invariant
16250 access in basic block.
16251 (find_data_references_in_bb): New function.
16252 (find_data_references_in_loop): Move code to
16253 find_data_references_in_bb and add a call to it.
16254 (compute_data_dependences_for_bb): New function.
16255 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16256 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16257 that STEP is 0.
16258 (vect_analyze_data_ref_dependence): Check for interleaving in case of
16259 unknown dependence in basic block and fail in case of dependence in
16260 basic block.
16261 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16262 dependence instances from either loop or basic block vectorization
16263 info.
16264 (vect_compute_data_ref_alignment): Check if it is loop vectorization
16265 before calling nested_in_vect_loop_p.
16266 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16267 dependence instances from either loop or basic block vectorization
16268 info.
16269 (vect_verify_datarefs_alignment): Likewise.
16270 (vect_enhance_data_refs_alignment): Adjust function calls.
16271 (vect_analyze_data_refs_alignment): Likewise.
16272 (vect_analyze_group_access): Fix printing. Skip different checks if
16273 DR_STEP is 0. Keep strided stores either in loop or basic block
16274 vectorization data structure. Fix indentation.
16275 (vect_analyze_data_ref_access): Fix comments, allow zero step in
16276 basic blocks.
16277 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16278 dependence instances from either loop or basic block vectorization
16279 info.
16280 (vect_analyze_data_refs): Update comment. Call
16281 compute_data_dependences_for_bb to analyze basic blocks.
16282 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16283 case of loop vectorization. In case of basic block vectorization use
16284 data-ref itself as a base.
16285 (vect_create_data_ref_ptr): In case of basic block vectorization:
16286 don't advance the pointer, add new statements before the current
16287 statement. Adjust function calls.
16288 (vect_supportable_dr_alignment): Support only aligned accesses in
16289 basic block vectorization.
16290 * common.opt (ftree-slp-vectorize): New flag.
16291 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16292 (vect_pattern_recog_1): Likewise.
16293 * tree-vect-stmts.c (process_use): Likewise.
16294 (vect_init_vector): Add new statements in the beginning of the basic
16295 block in case of basic block SLP.
16296 (vect_get_vec_def_for_operand): Adjust function calls.
16297 (vect_finish_stmt_generation): Likewise.
16298 (vectorizable_call): Add assert that it is loop vectorization, adjust
16299 function calls.
16300 (vectorizable_conversion, vectorizable_assignment): Likewise.
16301 (vectorizable_operation): In case of basic block SLP, take
16302 vectorization factor from statement's type and skip the relevance
16303 check. Adjust function calls.
16304 (vectorizable_type_demotion): Add assert that it is loop
16305 vectorization, adjust function calls.
16306 (vectorizable_type_promotion): Likewise.
16307 (vectorizable_store): Check for outer loop only in case of loop
16308 vectorization. Adjust function calls. For basic blocks, skip the
16309 relevance check and don't advance pointers.
16310 (vectorizable_load): Likewise.
16311 (vectorizable_condition): Add assert that it is loop vectorization,
16312 adjust function calls.
16313 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16314 that it is not reduction, get vector type, call only supported
16315 functions, skip loop specific parts.
16316 (vect_transform_stmt): Check for outer loop only in case of loop
16317 vectorization.
16318 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16319 (vect_is_simple_use): Fix comment, add new argument, fix conditions
16320 for external definition.
16321 * passes.c (pass_slp_vectorize): New pass.
16322 * tree-vect-slp.c (find_bb_location): New function.
16323 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16324 check for patterns only in loops.
16325 (vect_build_slp_tree): Add argument, adjust function calls, fail in
16326 case of multiple types in basic block SLP.
16327 (vect_mark_slp_stmts_relevant): New function.
16328 (vect_supported_load_permutation_p): Fix comment.
16329 (vect_analyze_slp_instance): Add argument. In case of basic block
16330 SLP, take vectorization factor from statement's type, check that
16331 unrolling factor is 1. Adjust function call. Save SLP instance in
16332 either loop or basic block vectorization structure. Return FALSE,
16333 if SLP failed.
16334 (vect_analyze_slp): Add argument. Get strided stores groups from
16335 either loop or basic block vectorization structure. Return FALSE
16336 if basic block SLP failed.
16337 (new_bb_vec_info): New function.
16338 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16339 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16340 (vect_schedule_slp): Add argument. Get SLP instances from either
16341 loop or basic block vectorization structure. Set vectorization factor
16342 to be 1 for basic block SLP.
16343 (vect_slp_transform_bb): New function.
16344 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16345
16346 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16347
16348 * final.c (shorten_branches): Do not align labels for jump tables.
16349 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16350
16351 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16352
16353 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16354 Remove outdated reference to flow.c and fix nits.
16355 * doc/gccint.texi: Tweak RTL description.
16356 * doc/rtl.texi: Likewise.
16357
16358 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16359
16360 * config/avr/avr.c: Change my email address.
16361 * config/avr/avr.h: Likewise.
16362 * config/avr/avr.md: Likewise.
16363 * config/avr/avr-protos.h: Likewise.
16364 * config/avr/libgcc.S: Likewise.
16365
16366 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16367
16368 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16369 (spu_split_load, spu_split_store): Change return type to int.
16370 (spu_split_convert): Declare.
16371 * config/spu/predicates.md (spu_mem_operand): Remove.
16372 (spu_mov_operand): Update.
16373 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16374 * config/spu/spu.c (regno_aligned_for_load): Remove.
16375 (reg_aligned_for_addr, spu_expand_load): Define.
16376 (spu_expand_extv): Reimplement and handle MEM.
16377 (spu_expand_insv): Handle MEM.
16378 (spu_sched_reorder): Handle insn's with length 0.
16379 (spu_legitimate_address_p): Reimplement.
16380 (store_with_one_insn_p): Return TRUE for any mode with size
16381 larger than 16 bytes.
16382 (address_needs_split): Define.
16383 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16384 operands.
16385 (spu_convert_move): Define.
16386 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16387 (spu_split_store): Change all MEM's to TImode.
16388 (spu_init_expanders): Preallocate registers that correspond to
16389 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16390 mark_reg_pointer.
16391 (spu_split_convert): Define.
16392 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16393 (_move<mode>, _movdi, _movti): Update predicate and condition.
16394 (load, store): Change to define_split.
16395 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16396 extend<mode>ti2.
16397 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16398 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16399 define_insn_and_split of lshr<mode>3.
16400 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16401 (<v>ashr<mode>3_imm): Define.
16402 (extv, extzv, insv): Allow MEM operands.
16403 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16404 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16405 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16406 (_spu_convert2): Change to define_insn_and_split and remove the
16407 corresponding define_peephole2.
16408 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16409 Change predicates to memory_operand.
16410
16411 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16412
16413 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16414
16415 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16416
16417 PR tree-optimization/40219
16418 * tree.c (iterative_hash_expr): Make sure the builtin function is
16419 a normal builtin function and not a front end or back end builtin
16420 before indexing into the built_in_decls array.
16421
16422 2009-05-22 Richard Guenther <rguenther@suse.de>
16423
16424 PR middle-end/38964
16425 * alias.c (write_dependence_p): Do not use TBAA for answering
16426 anti-dependence or output-dependence.
16427 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16428 (emit_pointer_definition): Remove.
16429 (emit_alias_warning): Likewise.
16430 (find_what_var_points_to): Remove TBAA pruning code.
16431 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16432 violations.
16433 (compute_points_to_sets): Remove code computing the set of
16434 dereferenced pointers.
16435 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16436 oracle for querying anti and output dependencies.
16437 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16438 if TBAA may be applied.
16439 (refs_anti_dependent_p): New function.
16440 (refs_output_dependent_p): Likewise.
16441 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16442 (refs_output_dependent_p): Likewise.
16443 * doc/tree-ssa.texi (Memory model): New section.
16444 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16445 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16446 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16447 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16448 * expr.c (expand_expr_real_1): Likewise.
16449 * gimple-low.c (lower_stmt): Likewise.
16450 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16451 (dump_gimple_cdt): Remove.
16452 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16453 (gimple_size): Likewise.
16454 (walk_gimple_op): Likewise.
16455 (is_gimple_stmt): Likewise.
16456 (walk_stmt_load_store_addr_ops): Likewise.
16457 (gimple_build_cdt): Remove.
16458 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16459 * gimple.h (gimple_cdt_new_type): Remove.
16460 (gimple_cdt_new_type_ptr): Likewise.
16461 (gimple_cdt_set_new_type): Likewise.
16462 (gimple_cdt_location): Likewise.
16463 (gimple_cdt_location_ptr): Likewise.
16464 (gimple_cdt_set_location): Likewise.
16465 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16466 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16467 GIMPLE_CHANGE_DYNAMIC_TYPE.
16468 (verify_types_in_gimple_stmt): Likewise.
16469 * tree-inline.c (estimate_num_insns): Likewise.
16470 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16471 (copy_decl_to_var): Likewise.
16472 (copy_result_decl_to_var): Likewise.
16473 * tree-pretty-print.c (dump_generic_node): Do not handle
16474 CHANGE_DYNAMIC_TYPE_EXPR.
16475 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16476 * tree-ssa-operands.c (get_expr_operands): Likewise.
16477 * tree-ssa-structalias.c (struct variable_info): Remove
16478 no_tbaa_pruning member.
16479 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16480 (unify_nodes): Do not copy it.
16481 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16482 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16483 (set_uids_in_ptset): Do not check it.
16484 (find_what_var_points_to): Likewise.
16485 (compute_tbaa_pruning): Remove.
16486 (compute_points_to_sets): Do not call it.
16487 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16488 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16489 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16490 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16491 (DECL_NO_TBAA_P): Likewise.
16492 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16493 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16494 (expand_omp_atomic_pipeline): Do not set it.
16495 * print-tree.c (print_node): Do not dump it.
16496 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16497 redundant check.
16498
16499 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16500
16501 PR target/39856
16502 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16503 for clobber.
16504
16505 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16506
16507 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16508 non-external.
16509
16510 2009-05-22 Ben Elliston <bje@au.ibm.com>
16511
16512 * Makefile.in (bversion.h, s-bversion): New targets.
16513 (TOPLEV_H): Add bversion.h.
16514 * toplev.h: Include "bversion.h".
16515 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16516 the __format__ attribute only if compiling with the same version
16517 of GCC as the sources (the "build version").
16518
16519 2009-05-22 Ben Elliston <bje@au.ibm.com>
16520
16521 * c-format.c (handle_format_attribute): Fix comment typo.
16522
16523 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16524
16525 PR target/37846
16526 * config/ia64/ia64.opt (mfused-madd): New.
16527 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16528 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16529 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16530 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16531 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16532 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16533 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16534 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16535 instruction if !TARGET_FUSED_MADD.
16536 (fpma, fpms): Remove colon from name.
16537
16538 2009-05-22 Richard Guenther <rguenther@suse.de>
16539
16540 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16541 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16542 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16543 TARGET_MEM_REF.
16544 (create_expression_by_pieces): Only convert if necessary.
16545 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16546 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16547
16548 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16549
16550 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16551 regular pattern from a template and rename it ...
16552 (*extzv_truncsi_exts): ... to this.
16553
16554 2009-05-21 Richard Guenther <rguenther@suse.de>
16555
16556 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16557 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16558 (cgraph_default_inline_p): Likewise.
16559 (cgraph_decide_inlining_incrementally): Likewise.
16560
16561 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16562 Uros Bizjak <ubizjak@gmail.com>
16563
16564 * config/i386/cpuid.h (bit_MOVBE): New.
16565
16566 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16567
16568 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16569 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16570 (ix86_handle_option): Handle OPT_mmovbe.
16571 (ix86_target_string): Add -mmovbe.
16572 (pta_flags): Add PTA_MOVBE.
16573 (processor_alias_table): Add PTA_MOVBE to "atom".
16574 (override_options): Handle PTA_MOVBE.
16575
16576 * config/i386/i386.h (TARGET_MOVBE): New.
16577
16578 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16579 (*bswapsi_movbe): New.
16580 (*bswapdi_movbe): Likewise.
16581 (bswapdi2): Renamed to ...
16582 (*bswapdi_1): This.
16583 (bswapdi2): New expander.
16584
16585 * config/i386/i386.opt (mmovbe): New.
16586
16587 * doc/invoke.texi: Document -mmovbe.
16588
16589 2009-05-21 Taras Glek <tglek@mozilla.com>
16590
16591 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16592 * gcc-plugin.h (plugin_init): Updated signature.
16593 * gcc-plugin.h (plugin_name_args): Moved to this header.
16594 * doc/plugins.texi (plugin_init): Updated documention to reflect
16595 API change.
16596 * doc/plugins.texi (plugin_name_args): Added to documention.
16597
16598 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16599
16600 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16601 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16602
16603 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16604
16605 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16606 JUMP_TABLE_DATA_P predicates where applicable.
16607 * config/i386/predicates.md: Ditto.
16608 * config/i386/sse.md: Ditto.
16609
16610 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16611
16612 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16613 operand2 -128 override length_immediate attribute to 1.
16614 * config/i386/predicates.md (constm128_operand): New predicate.
16615
16616 * config/i386/i386.c (memory_address_length): Handle %r12
16617 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16618 also check REGNO.
16619 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16620 mode look through optional ZERO_EXTEND and SUBREG.
16621 * config/i386/i386.md (R12_REG): New define_constant.
16622 (prefix_data16): For sse unit set also for MODE_TI insns.
16623 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16624 insns set if operand 1 is ext_QIreg_operand.
16625 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16626 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16627 immediate.
16628 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16629 mode from MODE_DI to MODE_SI.
16630 (movdi_1_rex64): Override modrm and length_immediate attributes
16631 only for movabs (TYPE_IMOV, alternative 2).
16632 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16633 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16634 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16635 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16636 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16637 prefix_rex attribute if DImode.
16638 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16639 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16640 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16641 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16642 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16643 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16644 Likewise. For TYPE_IMOV clear length_immediate attribute.
16645 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16646 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16647 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16648 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16649 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16650 or one operand TYPE_ISHIFT.
16651 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16652 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16653 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16654 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16655 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16656 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16657 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16658 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16659 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16660 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16661 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16662 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16663 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16664 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16665 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16666 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16667 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16668 set mode attribute, don't override length attribute.
16669 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16670 to 1.
16671 (return_internal_long): Set length attribute to 2 instead of 1.
16672 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16673 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16674 prefix_rex attribute.
16675 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16676 New predicates.
16677 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16678
16679 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16680
16681 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16682
16683 2009-05-20 Ian Lance Taylor <iant@google.com>
16684
16685 * tree.c (build_tree_list_vec_stat): New function.
16686 (ctor_to_vec): New function.
16687 (build_nt_call_vec): New function.
16688 (build_call_array): Change args to be a const pointer.
16689 (build_call_vec): New function.
16690 * tree.h (build_nt_call_vec): Declare.
16691 (build_tree_list_vec_stat): Declare.
16692 (build_tree_list_vec): Define.
16693 (build_call_array): Update declaration.
16694 (build_call_vec): Declare.
16695 (ctor_to_vec): Declare.
16696 * c-common.c (tree_vector_cache): New static variable.
16697 (make_tree_vector): New function.
16698 (release_tree_vector): New function.
16699 (make_tree_vector_single): New function.
16700 (make_tree_vector_copy): New function.
16701 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16702 (make_tree_vector_single, make_tree_vector_copy): Declare.
16703 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16704 (c_parser_expr_list): Don't manage cache here, instead call
16705 make_tree_vector.
16706 (c_parser_release_expr_list): Remove static function.
16707 (c_parser_vec_to_tree_list): Remove static function.
16708 (c_parser_attributes): Call build_tree_list_vec instead of
16709 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16710 c_parser_release_expr_list.
16711 (c_parser_postfix_expression_after_primary): Likewise.
16712 (c_parser_objc_keywordexpr): Likewise.
16713
16714 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16715
16716 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16717 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16718 TARGET_CONVERT_TO_TYPE.
16719 * hooks.c (hook_tree_const_tree_null): Define.
16720 * hooks.h (hook_tree_const_tree_null): Declare.
16721 * target.h (struct gcc_target): Add invalid_parameter_type,
16722 invalid_return_type, promoted_type, and convert_to_type fields.
16723 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
16724 (TARGET_INVALID_RETURN_TYPE): Define.
16725 (TARGET_PROMOTED_TYPE): Define.
16726 (TARGET_CONVERT_TO_TYPE): Define.
16727 (TARGET_INITIALIZER): Update for new fields.
16728 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16729 (grokparms): Check targetm.invalid_parameter_type.
16730 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16731 * c-convert.c (convert): Check targetm.convert_to_type.
16732
16733 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16734
16735 * config/mips/mips.md (*extenddi_truncate<mode>,
16736 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16737 defintions.
16738 (*extendhi_truncateqi): New define_insn_and_sptit.
16739
16740 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16741
16742 PR middle-end/40204
16743 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16744 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16745
16746 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16747
16748 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16749 the operand of VIEW_CONVERT_EXPR.
16750
16751 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16752
16753 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16754 extended family and model for Intel processors. Support Intel Atom.
16755
16756 2009-05-20 Olivier Hainque <hainque@adacore.com>
16757
16758 * gstab.h (stab_code_type): Define, to be used instead of the
16759 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16760 notice.
16761 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16762 occurrences by stab_code_type.
16763 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16764
16765 2009-05-20 Martin Jambor <mjambor@suse.cz>
16766
16767 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16768 (sra_insert_before): Likewise.
16769 (sra_insert_after): Likewise.
16770 (sra_init_cache): Likewise.
16771 (sra_type_can_be_decomposed_p): Likewise.
16772 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16773 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16774 (sra_insert_before): Likewise.
16775 (sra_insert_after): Likewise.
16776 (sra_init_cache): Likewise.
16777 (insert_edge_copies_seq): Made static and moved upwards.
16778
16779 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16780 case.
16781
16782 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16783
16784 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16785 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16786 simple copies.
16787
16788 2009-05-20 Richard Guenther <rguenther@suse.de>
16789
16790 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16791 with mismatched comparison modes.
16792
16793 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16794
16795 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16796 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16797 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16798 with shifts for Thumb2.
16799 (orsi_notsi): New for orn.
16800 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16801 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16802 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16803 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16804 Don't invert remainder for IOR.
16805
16806 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16807
16808 PR tree-optimization/40087
16809 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16810 number_of_iterations_ne): Rename never_infinite argument.
16811 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16812 number_of_iterations_le): Handle pointer-type ivs when
16813 exit_must_be_taken is false.
16814 (number_of_iterations_cond): Do not always assume that
16815 exit_must_be_taken if the control variable is a pointer.
16816
16817 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16818
16819 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16820 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16821
16822 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16823
16824 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16825 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16826
16827 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16828
16829 PR c/40172
16830 * c.opt (Wlogical-op): Disabled by default.
16831 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16832 Wextra.
16833 * doc/invoke.texi (Wlogical-op): Likewise.
16834
16835 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16836
16837 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16838 into CASE_CONVERT.
16839 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16840 Propagate the type of the first operand.
16841 <ASSERT_EXPR>: Simplify.
16842 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16843 Rewrite using the RHS code as discriminant.
16844 <NOP_EXPR>: Turn into CASE_CONVERT.
16845 <PLUS_EXPR>: Propagate the type of the first operand.
16846
16847 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16848
16849 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16850 (ia64_dconst_0_375): New.
16851 * config/ia64/ia64.c (ia64_override_options): Remove
16852 -minline-sqrt-min-latency warning.
16853 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16854 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16855 * config/ia64/ia64.md (*sqrt_approx): Remove.
16856 (sqrtsf2): Remove #if 0.
16857 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16858 (sqrtdf): Remove assert.
16859 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16860 (sqrtxf2): Remove #if 0.
16861 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16862 * div.md (sqrt_approx_rf): New.
16863 (sqrtsf2_internal_thr): New implementation.
16864 (sqrtsf2_internal_lat): New.
16865 (sqrtdf2_internal_thr: New implementation.
16866 (sqrtxf2_internal): New implementation.
16867
16868 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16869 Hans-Peter Nilsson <hp@axis.com>
16870
16871 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16872 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16873 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16874 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16875 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16876 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16877 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16878 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16879 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16880 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16881 * c-common.c: ...from here.
16882
16883 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16884
16885 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16886
16887 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16888
16889 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16890
16891 2009-05-19 Ben Elliston <bje@au.ibm.com>
16892
16893 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16894 assignments with memcpy calls.
16895 (add_fdes): Likewise.
16896 (binary_search_unencoded_fdes): Likewise.
16897 (linear_search_fdes): Eliminate type puns.
16898
16899 2009-05-19 Richard Guenther <rguenther@suse.de>
16900
16901 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16902 not falsely claim to have propagated into all uses.
16903
16904 2009-05-19 Ben Elliston <bje@au.ibm.com>
16905
16906 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16907 version to v3.0.
16908
16909 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16910
16911 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16912 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16913 (TARGET_LEGITIMATE_ADDRESS_P): New.
16914 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16915 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16916
16917 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16918
16919 PR debug/40109
16920 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16921 child of the containing namespace's DIE.
16922
16923 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16924
16925 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16926 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16927 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16928 extend patterns.
16929
16930 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16931
16932 PR target/39942
16933 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16934 gen_align with gen_pad.
16935 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16936 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16937
16938 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16939 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16940
16941 * config/i386/i386.md (align): Renamed to ...
16942 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16943 ASM_OUTPUT_MAX_SKIP_PAD.
16944
16945 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16946
16947 * config.gcc: Fix variable syntax.
16948
16949 PR target/39531
16950 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16951 before calling exact_log2.
16952 (output_iorsi3): Likewise.
16953 (output_xorsi3): Likewise.
16954
16955 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16956
16957 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16958 for the none zero constant operand except for EQ and NE
16959 comprisons even when the first operand is R0.
16960
16961 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16962
16963 * config/s390/2064.md: Remove trailing whitespaces.
16964 * config/s390/2084.md: Likewise.
16965 * config/s390/constraints.md: Likewise.
16966 * config/s390/fixdfdi.h: Likewise.
16967 * config/s390/libgcc-glibc.ver: Likewise.
16968 * config/s390/s390-modes.def: Likewise.
16969 * config/s390/s390-protos.h: Likewise.
16970 * config/s390/s390.c: Likewise.
16971 * config/s390/s390.h: Likewise.
16972 * config/s390/s390.md: Likewise.
16973 * config/s390/tpf-unwind.h: Likewise.
16974
16975 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16976
16977 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16978
16979 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16980
16981 M68K TLS support.
16982 * configure.ac (m68k-*-*): Check if binutils support TLS.
16983 * configure: Regenerate.
16984 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16985 * config/m68k/constraints.md (Cu): New constraint.
16986 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16987 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16988 (movsi): Handle TLS symbols.
16989 (addsi3_5200): Handle XTLS symbols, indent.
16990 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16991 (m68k_tls_reference_p): Declare.
16992 (m68k_legitimize_address): Declare.
16993 (m68k_unwrap_symbol): Declare.
16994 * config/m68k/m68k.opt (mxtls): New option.
16995 * config/m68k/m68k.c (ggc.h): Include.
16996 (m68k_output_dwarf_dtprel): Implement hook.
16997 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16998 (m68k_expand_prologue): Load GOT pointer when function needs it.
16999 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
17000 (m68k_legitimate_constant_address_p): Same.
17001 (m68k_decompose_address): Handle TLS references.
17002 (m68k_get_gp): New static function.
17003 (enum m68k_reloc): New contants.
17004 (TLS_RELOC_P): New macro.
17005 (m68k_wrap_symbol): New static function.
17006 (m68k_unwrap_symbol): New function.
17007 (m68k_final_prescan_insn_1): New static function.
17008 (m68k_final_prescan_insn): New function.
17009 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
17010 functions.
17011 (legitimize_pic_address): Handle TLS references..
17012 (m68k_tls_get_addr, m68k_get_tls_get_addr)
17013 (m68k_libcall_value_in_a0_p)
17014 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
17015 (m68k_call_m68k_read_tp): Helper variables and functions for ...
17016 (m68k_legitimize_tls_address): Handle TLS references.
17017 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
17018 New functions.
17019 (m68k_legitimize_address): Handle TLS symbols.
17020 (m68k_get_reloc_decoration): New static function.
17021 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
17022 UNSPEC_RELOC32.
17023 (m68k_output_dwarf_dtprel): Implement hook.
17024 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
17025 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
17026 m68k_call_* routines.
17027 (sched_attr_op_type): Handle TLS symbols.
17028 (gt-m68k.h): Include.
17029 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
17030 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
17031
17032 2009-05-18 Martin Jambor <mjambor@suse.cz>
17033
17034 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
17035 (visit_store_addr_for_mod_analysis): New function.
17036 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
17037 (determine_cst_member_ptr): Use gimple_assign_single_p.
17038 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
17039 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
17040 operands. Don't check number of operands of a NOP_EXPR.
17041
17042 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
17043
17044 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
17045
17046 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
17047
17048 PR c/40172
17049 * c-common.c (warn_logical_operator): Don't warn if one of
17050 expression isn't always true or false.
17051
17052 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
17053
17054 * config/i386/biarch32.h: New file.
17055 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
17056
17057 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
17058
17059 * config/mips/mips.md (*zero_extend<mode>_trunchi,
17060 *zero_extend<mode>_truncqi): Merge these into ...
17061 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
17062 Name the pattern following this as *zero_extendhi_truncqi.
17063
17064 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
17065
17066 PR middle-end/39301
17067 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
17068 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
17069 (output_info): Make field HOST_WIDEST_INT.
17070 (print_statistics): Use HOST_WIDEST_INT_PRINT.
17071 (dump_bitmat_statistics): Same.
17072
17073 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
17074
17075 * config.gcc (use_gcc_stdint): Set to wrap.
17076 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17077 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17078 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17079 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17080 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17081 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17082 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17083 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17084
17085 2009-05-16 Joseph Myers <joseph@codesourcery.com>
17086
17087 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
17088 tune_64.
17089 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
17090 Move definitions earlier.
17091 (OPT_ARCH64, OPT_ARCH32): Define.
17092 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
17093 and tune_64.
17094
17095 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17096
17097 PR target/40153
17098 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
17099 implies.
17100
17101 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17102
17103 * arm.md (movdi2): Copy non-reg values to DImode registers.
17104
17105 2009-05-16 Jakub Jelinek <jakub@redhat.com>
17106
17107 PR target/39942
17108 * final.c (label_to_max_skip): New function.
17109 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
17110 CODE_LABEL_NUMBER <= max_labelno.
17111 * output.h (label_to_max_skip): New prototype.
17112 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
17113 (ix86_avoid_jump_mispredicts): ... this. Don't define if
17114 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
17115 Handle CODE_LABELs with >= 16 byte alignment or with
17116 max_skip == (1 << align) - 1.
17117 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17118 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17119
17120 PR target/39942
17121 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17122 .p2align 3 if MAX_SKIP is smaller than 7.
17123 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17124
17125 2009-05-15 Ian Lance Taylor <iant@google.com>
17126
17127 * alias.c (struct alias_set_entry_d): Rename from struct
17128 alias_set_entry. Change all uses.
17129 * except.c (struct call_site_record_d): Rename from struct
17130 call_site_record. Change all uses.
17131 * except.h (struct eh_region_d): Rename from struct eh_region.
17132 Change all uses.
17133 * gcse.c (struct hash_table_d): Rename from struct hash_table.
17134 Change all uses.
17135 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17136 ivtype_map_elt. Change all uses.
17137 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17138 Change all uses.
17139 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
17140 * graphite.h (struct name_tree_d): Rename from struct name_tree.
17141 Change all uses.
17142 (struct sese_d): Rename from struct sese. Change all uses.
17143 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
17144 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
17145 * optabs.h (struct optab_d): Rename from struct optab. Change all
17146 uses.
17147 (struct convert_optab_d): Rename from struct convert_optab.
17148 Change all uses.
17149 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17150 ipa_opt_pass. Change all uses.
17151 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
17152 all uses.
17153
17154 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17155 defined as a typedef.
17156 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17157 defined as a tag.
17158
17159 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17160
17161 PR 16302
17162 * fold-const.c (make_range,build_range_check,merge_ranges): Move
17163 declaration to...
17164 (merge_ranges): Returns bool.
17165 * tree.h (make_range): .. to here.
17166 (build_range_check): Likewise.
17167 (merge_ranges): Likewise. Renamed from merge_ranges.
17168 * c-typeck.c (parser_build_binary_op): Update calls to
17169 warn_logical_operator.
17170 * c-common.c (warn_logical_operator): Add new warning.
17171 * c-common.h (warn_logical_operator): Update declaration.
17172
17173 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17174
17175 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17176
17177 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17178
17179 * doc/install.texi: Document MPC requirements, flags etc.
17180
17181 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17182 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17183 Evaluate constant arguments.
17184 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17185 (fold_builtin_1): Likewise, also evaluate constant arguments.
17186 Remove superfluous break.
17187 (do_mpc_ckconv): New.
17188 * real.h: Include mpc.h.
17189 * toplev.c (print_version): Output MPC version info if available.
17190
17191 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17192
17193 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17194
17195 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
17196
17197 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17198 only once.
17199
17200 2009-05-15 Jan Hubicka <jh@suse.cz>
17201
17202 * doc/invoke.texi (max-early-inliner-iterations): New flag.
17203 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17204 (try_inline): Fix return value.
17205 (cgraph_decide_inlining_incrementally): Honor new value.
17206 (cgraph_early_inlining): Handle indirect inlining.
17207 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17208
17209 2009-05-15 Jan Hubicka <jh@suse.cz>
17210
17211 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17212 * cgraphunit.c (cgraph_finalize_function): Set it.
17213 (cgraph_expand_function): Use it.
17214
17215 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17216
17217 * real.c (encode_ieee_half): Define.
17218 (decode_ieee_half): Define.
17219 (ieee_half_format): Define.
17220 (arm_half_format): Define.
17221 * real.h (ieee_half_format): Declare.
17222 (arm_half_format): Declare.
17223
17224 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17225
17226 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
17227 swapped, and reversed optabs exist before trying to use them.
17228
17229 2009-05-15 Paul Brook <paul@codesourcery.com>
17230 Sandra Loosemore <sandra@codesourcery.com>
17231
17232 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17233 loads. Allow PRE_DEC.
17234 (output_move_neon): Handle PRE_DEC.
17235 (arm_print_operand): Add 'A' for neon structure loads.
17236 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17237 * config/arm/neon.md (neon_mov): Update comment.
17238 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17239 calls.
17240 (Um): New constraint.
17241
17242 2009-05-15 Jan Hubicka <jh@suse.cz>
17243
17244 Revert the following patch until testsuite fallout is fixed:
17245 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17246 * cgraph.h (struct inline_summary): New filed self_wize,
17247 size_inlining_benefit, self_time and time_inlining_benefit.
17248 (struct cgraph_global_info): Replace insns by time ans size fields.
17249 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17250 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17251 (ipcp_update_callgraph): Do not touch function bodies.
17252 * ipa-inline.c: Include except.h
17253 (MAX_TIME): New constant.
17254 (overall_insns): Remove
17255 (overall_size, max_benefit): New static variables.
17256 (cgraph_estimate_time_after_inlining): New function.
17257 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17258 (cgraph_clone_inlined_nodes): Update size.
17259 (cgraph_mark_inline_edge): Update size.
17260 (cgraph_estimate_growth): Use size info.
17261 (cgraph_check_inline_limits): Check size.
17262 (cgraph_default_inline_p): Likewise.
17263 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17264 (cgraph_decide_recursive_inlining): Check size.
17265 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17266 and times.
17267 (cgraph_decide_inlining): Likewise.
17268 (cgraph_decide_inlining_incrementally): Likewise; honor
17269 PARAM_EARLY_INLINING_INSNS.
17270 (likely_eliminated_by_inlining_p): New predicate.
17271 (estimate_function_body_sizes): New function.
17272 (compute_inline_parameters): Use it.
17273 * except.c (must_not_throw_labels): New function.
17274 * except.h (must_not_throw_labels): Declare.
17275 * tree-inline.c (init_inline_once): Kill inlining_weigths
17276 * tree-ssa-structalias.c: Avoid uninitialized warning.
17277 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17278 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17279 (PARAM_INLINE_CALL_COST): Remove.
17280 (PARAM_EARLY_INLINING_INSNS): New.
17281
17282 2009-05-15 Richard Guenther <rguenther@suse.de>
17283
17284 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17285 not TODO_update_ssa.
17286
17287 2009-05-15 Richard Guenther <rguenther@suse.de>
17288
17289 PR tree-optimization/39999
17290 * gimple.h (gimple_expr_type): Use the expression type looking
17291 through useless conversions.
17292 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17293 (vn_nary_op_insert_stmt): Likewise.
17294 (simplify_binary_expression): Likewise.
17295
17296 2009-05-15 Richard Guenther <rguenther@suse.de>
17297
17298 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17299 New options, enabled by default.
17300 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17301 Document.
17302 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17303 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17304 * tree-ssa-structalias.c (gate_tree_pta): New function.
17305 (pass_build_alias): Use it.
17306
17307 2009-05-15 Joseph Myers <joseph@codesourcery.com>
17308
17309 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17310 recurse on an invariant address if a conversion from a pointer
17311 type to a wider integer type is involved.
17312
17313 2009-05-15 Jan Hubicka <jh@suse.cz>
17314
17315 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17316 * cgraph.h (struct inline_summary): New filed self_wize,
17317 size_inlining_benefit, self_time and time_inlining_benefit.
17318 (struct cgraph_global_info): Replace insns by time ans size fields.
17319 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17320 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17321 (ipcp_update_callgraph): Do not touch function bodies.
17322 * ipa-inline.c: Include except.h
17323 (MAX_TIME): New constant.
17324 (overall_insns): Remove
17325 (overall_size, max_benefit): New static variables.
17326 (cgraph_estimate_time_after_inlining): New function.
17327 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17328 (cgraph_clone_inlined_nodes): Update size.
17329 (cgraph_mark_inline_edge): Update size.
17330 (cgraph_estimate_growth): Use size info.
17331 (cgraph_check_inline_limits): Check size.
17332 (cgraph_default_inline_p): Likewise.
17333 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17334 (cgraph_decide_recursive_inlining): Check size.
17335 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17336 and times.
17337 (cgraph_decide_inlining): Likewise.
17338 (cgraph_decide_inlining_incrementally): Likewise; honor
17339 PARAM_EARLY_INLINING_INSNS.
17340 (likely_eliminated_by_inlining_p): New predicate.
17341 (estimate_function_body_sizes): New function.
17342 (compute_inline_parameters): Use it.
17343 * except.c (must_not_throw_labels): New function.
17344 * except.h (must_not_throw_labels): Declare.
17345 * tree-inline.c (init_inline_once): Kill inlining_weigths
17346 * tree-ssa-structalias.c: Avoid uninitialized warning.
17347 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17348 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17349 (PARAM_INLINE_CALL_COST): Remove.
17350 (PARAM_EARLY_INLINING_INSNS): New.
17351 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17352 (inline-call-cost): Remove.
17353 (early-inlining-insns): New.
17354
17355 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17356
17357 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17358 for bounds.
17359 (print_int_cst_bounds_in_octal_p): Likewise.
17360 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17361 with subtypes.
17362 * dwarf2out.c (base_type_die): Likewise.
17363 (is_subrange_type): Delete.
17364 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17365 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17366 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17367 if the destination type is boolean.
17368 (build_range_check): Do not special-case subtypes.
17369 (fold_sign_changed_comparison): Likewise.
17370 (fold_unary): Likewise.
17371 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17372 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17373 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17374 * tree.c (subrange_type_for_debug_p): New predicate based on the
17375 former is_subrange_type.
17376 * tree.h (subrange_type_for_debug_p): Declare.
17377 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17378 (convert_affine_scev): Remove call to above function.
17379 (chrec_convert_aggressive): Likewise.
17380 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17381 false for conversions involving subtypes.
17382 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17383 (vrp_val_min): Likewise.
17384 (needs_overflow_infinity): Likewise.
17385 (extract_range_from_unary_expr): Likewise.
17386
17387 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17388
17389 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17390 * config/frv/frv.c: Likewise.
17391 * config/s390/s390.c: Likewise.
17392 * config/sparc/sparc.h: Likewise.
17393 * config/i386/i386.h: Likewise.
17394 * config/i386/i386.c: Likewise.
17395 * config/crx/crx.c: Likewise.
17396 * config/m68hc11/m68hc11.h: Likewise.
17397 * config/iq2000/iq2000.c: Likewise.
17398 * config/mn10300/mn10300.h: Likewise.
17399 * config/mn10300/mn10300.c: Likewise.
17400 * config/m68k/m68k.c: Likewise.
17401 * config/rs6000/rs6000.c: Likewise.
17402 * config/rs6000/xcoff.h: Likewise.
17403 * config/rs6000/linux64.h: Likewise.
17404 * config/rs6000/sysv4.h: Likewise.
17405 * config/score/score3.c: Likewise.
17406 * config/score/score7.c: Likewise.
17407 * config/score/score.c: Likewise.
17408 * config/arm/arm.md: Likewise.
17409 * config/mips/mips.c: Likewise.
17410 * config/mips/mips.md: Likewise.
17411 * config/bfin/bfin.h: Likewise.
17412 * config/pa/pa.c: Likewise.
17413 * config/pa/constraints.md: Likewise.
17414
17415 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17416 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17417 * config/pdp11/pdp11.h: Use memory_address_p instead.
17418
17419 2009-05-14 Ian Lance Taylor <iant@google.com>
17420
17421 * passes.c (finish_optimization_passes): Change i to int.
17422 * plugin.c (plugins_active_p): Change event to int.
17423 (dump_active_plugins): Likewise.
17424 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17425 Add cast.
17426 * tree.c (tree_range_check_failed): Change c to unsigned int.
17427 (omp_clause_range_check_failed): Likewise.
17428 (build_common_builtin_nodes): Change mode to int. Add cast.
17429 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17430 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17431
17432 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17433 ++ or -- with a variable of enum type.
17434
17435 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17436
17437 PR driver/40144
17438 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17439
17440 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17441
17442 * store-motion.c: Do not include params.h
17443 * Makefile.in: Fix dependencies for various files.
17444
17445 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17446
17447 * auto-inc-dec.c: Fix pass description, remove apparent
17448 accidental duplication.
17449
17450 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17451
17452 PR middle-end/40147
17453 * ipa-utils.h (memory_identifier_string): Moved to ...
17454 * tree.h (memory_identifier_string): Here. Add GTY(()).
17455
17456 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17457
17458 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17459 in the former documentation of...
17460 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17461 * ira-conflicts.c (get_dup_num): Use address_operand.
17462 * targhooks.c (default_legitimate_address_p): New.
17463 * targhooks.h (default_legitimate_address_p): New.
17464 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17465 Call hook.
17466 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17467 * target.h (struct target): Add legitimate_address_p.
17468 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17469 (TARGET_INITIALIZER): Include it.
17470
17471 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17472 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17473 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17474 (TARGET_LEGITIMATE_ADDRESS_P): New.
17475
17476 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17477 (REG_OK_STRICT_P): Delete.
17478 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17479 (frv_legitimate_address_p_1): ... this.
17480 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17481 (frv_legitimate_address_p_1): ... the renamed old
17482 frv_legitimate_address_p.
17483 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17484 (TARGET_LEGITIMATE_ADDRESS_P): New.
17485
17486 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17487 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17488 * config/s390/s390.c (legitimate_address_p): Rename to...
17489 (s390_legitimate_address_p): ... this, make static.
17490 (legitimize_address): Adjust call.
17491 (TARGET_LEGITIMATE_ADDRESS_P): New.
17492 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17493
17494 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17495 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17496 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17497 (TARGET_LEGITIMATE_ADDRESS_P): New.
17498
17499 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17500 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17501 * config/spu/spu.c (spu_legitimate_address): Rename to...
17502 (spu_legitimate_address_p): ... this, make static.
17503 (TARGET_LEGITIMATE_ADDRESS_P): New.
17504
17505 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17506 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17507 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17508 (sparc_legitimate_address_p): ... this, make static and return bool.
17509 (legitimize_address): Adjust call.
17510 (TARGET_LEGITIMATE_ADDRESS_P): New.
17511
17512 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17513 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17514 * config/i386/i386.c (legitimate_address_p): Rename to...
17515 (ix86_legitimate_address_p): ... this, make static.
17516 (constant_address_p): Move after it, adjust call.
17517 (TARGET_LEGITIMATE_ADDRESS_P): New.
17518
17519 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17520 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17521 * config/avr/avr.c (legitimate_address_p): Rename to...
17522 (avr_legitimate_address_p): ... this, make static.
17523 (legitimize_address): Adjust call.
17524 (TARGET_LEGITIMATE_ADDRESS_P): New.
17525
17526 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17527 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17528 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17529 (TARGET_LEGITIMATE_ADDRESS_P): New.
17530
17531 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17532 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17533 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17534 (TARGET_LEGITIMATE_ADDRESS_P): New.
17535
17536 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17537 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17538 Remove.
17539 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17540 Make static.
17541 (TARGET_LEGITIMATE_ADDRESS_P): New.
17542
17543 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17544 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17545 Remove.
17546 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17547 Rename to...
17548 (m68hc11_legitimate_address_p): ... this, make static.
17549 (go_if_legitimate_address_internal): Rename to...
17550 (m68hc11_legitimate_address_p_1): ... this.
17551 (legitimize_address): Adjust call.
17552 (TARGET_LEGITIMATE_ADDRESS_P): New.
17553
17554 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17555 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17556 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17557 (TARGET_LEGITIMATE_ADDRESS_P): New.
17558
17559 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17560 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17561 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17562 (mn10300_legitimate_address_p): ... this, make static.
17563 (TARGET_LEGITIMATE_ADDRESS_P): New.
17564
17565 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17566 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17567 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17568 (TARGET_LEGITIMATE_ADDRESS_P): New.
17569
17570 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17571 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17572 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17573 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17574 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17575 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17576 (rs6000_legitimate_address_p): ... this, make static.
17577 (TARGET_LEGITIMATE_ADDRESS_P): New.
17578 (REG_MODE_OK_FOR_BASE_P): Delete.
17579 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17580
17581 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17582 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17583 Delete.
17584 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17585 static, adjust types.
17586 (TARGET_LEGITIMATE_ADDRESS_P): New.
17587
17588 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17589 * config/score/score.c (score_address_p): Rename to...
17590 (score_legitimate_address_p): ... this.
17591 (TARGET_LEGITIMATE_ADDRESS_P): New.
17592 * config/score/score3.c (score3_address_p): Rename to...
17593 (score3_legitimate_address_p): ... this.
17594 * config/score/score7.c (score7_address_p): Rename to...
17595 (score7_legitimate_address_p): ... this.
17596
17597 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17598 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17599 GO_IF_LEGITIMATE_ADDRESS): Delete.
17600 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17601 thumb2_legitimate_address_p): Delete.
17602 (arm_legitimate_address_p): Rename to...
17603 (arm_legitimate_address_outer_p): ... this.
17604 * config/arm/constraints.md ("Uq"): Adjust call.
17605 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17606 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17607 to...
17608 (arm_legitimate_address_outer_p): ... this.
17609 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17610 static.
17611 (TARGET_LEGITIMATE_ADDRESS_P): New.
17612
17613 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17614 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17615 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17616 (TARGET_LEGITIMATE_ADDRESS_P): New.
17617
17618 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17619 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17620 * config/vax/vax.c (legitimate_address_p): Rename to...
17621 (vax_legitimate_address_p): ... this, make static.
17622 (TARGET_LEGITIMATE_ADDRESS_P): New.
17623
17624 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17625 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17626 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17627 (TARGET_LEGITIMATE_ADDRESS_P): New.
17628
17629 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17630 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17631 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17632 (mmix_legitimate_address_p): ... this, make static.
17633 (TARGET_LEGITIMATE_ADDRESS_P): New.
17634
17635 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17636 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17637 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17638 (TARGET_LEGITIMATE_ADDRESS_P): New.
17639
17640 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17641
17642 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17643 of MODE_COMPLEX_INT.
17644
17645 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17646
17647 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17648 LCT_NORMAL in function call.
17649 * mips-tdump.c (print_file_desc): Add cast to enum type.
17650 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17651 (mark_stabs): Add casts to enum types.
17652 (parse_stabs_common): Add casts to enum types.
17653
17654 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17655
17656 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17657 Check for invalid values of LETTER.
17658
17659 2009-05-13 Taras Glek <tglek@mozilla.com>
17660
17661 * attribs.c (register_attribute): moved out attribute registration
17662 into register_attribute.
17663 * doc/plugins.texi: Documented register_attribute and
17664 PLUGIN_ATTRIBUTES.
17665 * gcc-plugin.h: Added forward decl for register_attribute.
17666 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17667 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17668 PLUGIN_ATTRIBUTES boilerplate.
17669
17670 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17671
17672 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17673 values even in sentinel and empty entries.
17674 (ms_printf_flag_specs): Likewise.
17675 (ms_scanf_flag_specs): Likewise.
17676 (ms_strftime_flag_specs): Likewise.
17677 (ms_print_char_table): Likewise.
17678 (ms_scan_char_table): Likewise.
17679 (ms_time_char_table): Likewise.
17680
17681 2009-05-13 Doug Kwan <dougkwan@google.com>
17682
17683 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17684
17685 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17686
17687 * config/mips/mips.md (store): Add attributes for QI and HI.
17688 Update comment.
17689 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17690 (truncdi<mode>2): ... this new pattern.
17691
17692 2009-05-13 Brad Hards <bradh@kde.org>
17693
17694 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17695
17696 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17697 Ben Elliston <bje@au.ibm.com>
17698
17699 PR middle-end/40035
17700 * dse.c (check_mem_read_rtx): Guard against width == -1.
17701
17702 2009-05-13 Michael Matz <matz@suse.de>
17703
17704 PR middle-end/39976
17705 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17706 (trivially_conflicts_p): New function.
17707 (insert_backedge_copies): Use it.
17708
17709 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17710
17711 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17712 (handle_stdc_pragma): Use new enum constant names.
17713 (handle_pragma_float_const_decimal64): Ditto.
17714
17715 2009-05-13 Ian Lance Taylor <iant@google.com>
17716
17717 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17718 tree.def.
17719
17720 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17721
17722 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17723 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17724 multilibs.
17725 * config/m68k/m68k.h (FL_UCLINUX): Define.
17726
17727 2009-05-13 Jan Hubicka <jh@suse.cz>
17728
17729 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17730
17731 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17732
17733 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17734 unless -fschedule-insns is specified.
17735
17736 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17737
17738 PR target/39561
17739 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17740 TARGET_EXPAND_CBRANCHDI4.
17741 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17742 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17743 (cmpeqdi): Fix comment.
17744
17745 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17746
17747 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17748 (sh_legitimate_address_p): Likewise.
17749 * config/sh/sh.c (sh_legitimate_index_p): New.
17750 (sh_legitimate_address_p): Likewise.
17751 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17752 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17753 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17754 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17755 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17756 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17757 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17758 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17759 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17760
17761 2009-05-12 Jan Hubicka <jh@suse.cz>
17762
17763 * tree-inline.c (estimate_operator_cost): Add operands;
17764 when division happens by constant, it is cheap.
17765 (estimate_num_insns): Loads and stores are not having cost of 0;
17766 EH magic stuff is cheap; when computing runtime cost of switch,
17767 use log2 base of amount of its cases; builtin_expect has cost of 0;
17768 compute cost for moving return value of call.
17769 (init_inline_once): Initialize time_based flags.
17770 * tree-inline.h (eni_weights_d): Add time_based flag.
17771
17772 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17773
17774 * df-core.c: Update head documentation.
17775
17776 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17777
17778 PR bootstrap/40118
17779 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17780 shadowing exisiting variable op1.
17781
17782 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17783
17784 PR target/37179
17785 * config/i386/driver-i386.c (processor_signatures): New enum.
17786 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17787 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17788 processor signature to detect geode processor.
17789
17790 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17791
17792 Revert:
17793
17794 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17795
17796 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17797 causes spurious differences between trunk and cond-optab branch.
17798
17799 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17800
17801 * dojump.c (compare_from_rtx): Delete.
17802 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17803 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17804 if the comparison does not satisfy the predicate; test predicates for
17805 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17806 further if one existing pattern fails.
17807 * expr.h (compare_from_rtx): Delete.
17808 (prepare_operand): Declare it.
17809 * optabs.c: Change "lib call" to "libcall" throughout.
17810 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17811 HAVE_conditional_trap, emit_cmp_insn): Delete.
17812 (can_compare_p): Delete cmp_optab case.
17813 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17814 Accept other parameters by value.
17815 (prepare_operand): Make non-static.
17816 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17817 other parameters by value. Try to widen operands here based on
17818 an optab_methods argument and looking at cbranch_optab.
17819 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17820 loop. Use cbranch_optab directly.
17821 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17822 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17823 assertion.
17824 (emit_conditional_move, emit_conditional_add): Inline what's needed
17825 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17826 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17827 with COMPARE. Move cmov_optab and cstore_optab above
17828 with cbranch_optab, move cmp_optab down with ucmp_optab,
17829 remove tst_otpab. Do not initialize trap_rtx.
17830 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17831 for trap code. Do not check HAVE_conditional_trap. Use
17832 prepare_cmp_insn. Accept no predicate for operand 3.
17833 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17834 (OTI_ctrap, ctrap_optab): New.
17835 (tst_optab): Delete.
17836 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17837 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17838 with lookup of ctrap_optab.
17839 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17840 Delete.
17841 (ctrap_optab): New.
17842
17843 * combine.c (combine_simplify_rtx, simplify_set): Do not
17844 special case comparing against zero for cc0 machines.
17845 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17846 COMPARE on cc0 machines.
17847 (simplify_relational_operation): Return a new expression when
17848 a COMPARE could be removed.
17849 * final.c (final_scan_insn): Compare cc_status values
17850 against LHS of a (compare FOO (const_int 0)) cc0 source.
17851 Also check if cc_status.value is the full compare.
17852
17853 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17854 (cstoreMM4): Document.
17855 (conditional_trap): Document ctrapMM4 instead.
17856 (sync_compare_and_swapMM): Refer to cbranchcc4.
17857 (Dependent Patterns): Eliminate obsolete information referring to
17858 the old jump optimization phase.
17859 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17860 of compares with 0 on cc0 machines.
17861 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17862 avoiding references to cc0. Remove text about storing operands
17863 in cmpMM.
17864 * doc/tm.texi (Condition Codes): Include blurb on different
17865 condition code representations, separate into subsections for
17866 CC0, MODE_CC and conditional execution.
17867
17868 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17869 alpha_emit_setcc): Accept operands and a machine mode.
17870 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17871 Get code/op0/op1 from operands, use machine mode argument
17872 instead of alpha_compare.fp_p. Emit the branch here.
17873 (alpha_emit_setcc): Likewise, and return boolean.
17874 (alpha_emit_conditional_move): Likewise. Assert that
17875 cmp_op_mode == cmp_mode, and simplify accordingly.
17876 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17877 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17878 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17879 Delete.
17880 (stack probe test): Use cbranchdi4.
17881 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17882
17883 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17884 * config/arc/arc.h (movsicc, movsfcc): Use it.
17885 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17886 (cbranchsi4, cstoresi4): New.
17887 (cmpsi, bCC and sCC expanders): Remove.
17888
17889 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17890 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17891 * config/arm/predicates.md (arm_comparison_operator): Only include
17892 floating-point operators if there is a hardware floating-point unit.
17893 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17894 deferring to cbranch_cc and cstore_cc respectively.
17895 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17896 cbranch_cc, cstore_cc): New.
17897 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17898 arm_compare_op1.
17899 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17900
17901 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17902 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17903 as an argument.
17904 (adjust_insn_length): Adjust calls.
17905 (avr_reorg): Handle (compare (foo) (const_int 0)).
17906 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17907 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17908 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17909 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17910 (bCC): Remove.
17911 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17912 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17913
17914 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17915 (cbranchsi4, cstorebi4, cstoresi4): New.
17916 (movbisi): This insn is duplicate, split it to zero_extend.
17917 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17918 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17919 (bfin_optimize_loop): Use cbranch expander.
17920 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17921 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17922 (bfin_bimode_comparison_operator): ... this.
17923 (bfin_direct_comparison_operator): New.
17924
17925 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17926 inside (compare FOO (const_int 0)).
17927 (cris_rtx_costs): Handle ZERO_EXTRACT.
17928 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17929 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17930 (*tstdi_v32): Delete.
17931 (*cmpdi_non_v32): Add M alternative for operand 1.
17932 (cmpsi, cmp<mode>): Make private.
17933 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17934 with COMPARE.
17935 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17936
17937 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17938 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17939 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17940 (cc_reg_operand): New.
17941 (any_cond): Delete.
17942 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17943 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17944 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17945 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17946 crx_expand_scond): Delete.
17947
17948 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17949 (cbranchsi4): New.
17950 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17951 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17952
17953 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17954 cstoresi4, cstoresf4, cstoredf4): New.
17955 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17956 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17957 Receive the entire operands array.
17958 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17959 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17960 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17961 Get test/op0/op1 from the operands array.
17962 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17963
17964 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17965 (h8300_expand_store): New.
17966 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17967 (const_int 0)).
17968 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17969 (h8300_expand_store): New.
17970 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17971 or do not try to produce (set (cc0) REG).
17972 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17973 change a compare into a move to a scratch register. Disable some
17974 peepholes when comparing with zero.
17975 (tstsi, tsthi, tstsi, cmpqi): Make private.
17976 (cmphi): Delete.
17977 (bCC, sCC): Delete.
17978 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17979 cstoresi4): New.
17980
17981 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17982 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17983 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17984 (ix86_emit_i387_log1p): Use cbranchxf2.
17985 (ix86_expand_setcc): Return void.
17986 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17987 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17988 cmp<MODEF>, cmpcc): Remove.
17989 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17990 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17991 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17992 (sCC and bCC expanders): Remove.
17993 (stack_protect_test): Use cbranchcc4.
17994
17995 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17996 Delete.
17997 (ia64_expand_compare): Accept three rtx by reference and return void.
17998 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17999 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
18000 from *expr. Update *expr with the BImode comparison to do.
18001 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
18002 cmptf, bCC, sCC, conditional_trap): Delete.
18003 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
18004 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
18005 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
18006 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
18007 * config/ia64/predicates.md (ia64_cbranch_operator): New.
18008
18009 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
18010 type of last argument.
18011 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
18012 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
18013 use machine mode argument instead of branch_type. Remove dead
18014 code for floating-point comparisons.
18015 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
18016 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
18017 Remove.
18018 (cbranchsi4, cstoresi4): New.
18019 * config/iq2000/predicates.md (reg_or_const_operand): New.
18020
18021 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
18022 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
18023 (b<code>_op): Rewrite to...
18024 (bcc_op): ... this, using match_operator.
18025 (s<code>_op): Rewrite to...
18026 (scc_op): ... this, using match_operator.
18027 (s<code>_24_op): Rewrite to...
18028 (scc_op_24): ... this, using match_operator.
18029 (s<code>_<mode>): Rewrite to...
18030 (cstore<mode>4): ... this, using match_operator.
18031 (s<code>_<mode>_24): Rewrite to...
18032 (cstore<mode>4_24): ... this, using match_operator.
18033 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
18034 m32c_unpend_compare, m32c_expand_scc): Delete.
18035 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
18036 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
18037 (m32c_expand_movcc): Change NE to EQ if necessary.
18038 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
18039
18040 * config/m32r/m32r-protos.h (gen_cond_store): New.
18041 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
18042 (gen_cond_store): New, from sCC patterns.
18043 (m32r_expand_block_move): Use cbranchsi4.
18044 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
18045 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
18046 (cbranchsi4, cstoresi4): New.
18047
18048 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
18049 Delete.
18050 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
18051 (m68hc11_notice_update_cc): Look into a compare with 0.
18052 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
18053 Delete.
18054 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
18055 cmphi, cmpqi, bCC): Delete.
18056 (cbranchsi4, cbranchhi4, cbranchqi4): New.
18057 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
18058 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
18059 sets with COMPARE.
18060
18061 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
18062 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
18063 * config/m68k/constraints.md (H): New.
18064 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
18065 the define_insn below.
18066 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
18067 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
18068 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
18069 patterns): Wrap RHS with COMPARE.
18070 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
18071 (*cmpdi_internal): Name this pattern.
18072 (cmpdi): Change to define_insn.
18073 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
18074 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
18075 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
18076 predicate.
18077 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
18078 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
18079 (conditional_trap): Change to...
18080 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
18081 (*conditional_trap): Use the ordered_comparison_operator and
18082 const1_operand predicates.
18083 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
18084 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
18085 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
18086 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
18087
18088 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
18089 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
18090 (mcore_gen_compare): New.
18091 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
18092 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
18093 (mcore_gen_compare): ... this.
18094 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
18095 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
18096 (stack probe pattern): Use cbranchsi4.
18097
18098 * config/mips/predicates.md (mips_cstore_operator): New.
18099 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
18100 * config/mips/mips.md (any_cond): Delete.
18101 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
18102 always succeed.
18103 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
18104 fixuns_truncsfdi2): Use cbranch patterns.
18105 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
18106 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
18107 Adjust call to mips_expand_conditional_branch.
18108 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
18109 cstore<GPR:mode>4.
18110 * config/mips/mips-protos.h (mips_expand_conditional_branch,
18111 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
18112 * config/mips/mips.c (cmp_operands): Delete.
18113 (mips_emit_compare): Get comparison operands from *op0/*op1.
18114 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
18115 that it succeeds. Use op0/op1 instead of cmp_operands.
18116 (mips_expand_conditional_branch, mips_expand_conditional_move,
18117 mips_expand_conditional_trap): Likewise.
18118 (mips_block_move_loop): Use cbranch patterns.
18119 * config/mips/mips.h (cmp_operands): Delete.
18120
18121 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18122 (mmix_gen_compare_reg): Just return a register in the right CC mode.
18123 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18124 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18125 (*cmpcc_folded): Rename to...
18126 (*cmpdi_folded): this.
18127 (*cmpcc): Rename to...
18128 (*cmps): ... this.
18129 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18130 (bCC): Remove.
18131 (cbranchdi4): New.
18132 (cbranchdf4): New. Handle invalid comparisons here.
18133 * config/mmix/predicates.md (float_comparison_operator): New.
18134
18135 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18136 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18137 * config/mn10300/mn10300.md (tst): Delete.
18138 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18139 Name these patterns and wrap RHS in a compare.
18140 (*cmpsi): Make this pattern private. Include tst.
18141 (*cmpsf): Make this pattern private.
18142 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18143 (compare with zero peepholes): Likewise.
18144 (bCC): Remove.
18145 (cbranchsi4, cbranchsf4): New.
18146 (casesi): Use cbranchsi4.
18147
18148 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18149 hppa_branch_type): Delete.
18150 (return_addr_rtx): Use cbranchsi4.
18151 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
18152 Emit CCFPmode comparison here.
18153 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18154 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18155 hppa_branch_type): Delete.
18156 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18157 (movsicc, movdicc): Remove references to hppa_compare_op0,
18158 hppa_compare_op1 and compare_from_rtx.
18159 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18160 (casesi): Use cbranchsi4.
18161
18162 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18163 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18164 * config/pdp11/pdp11.md (register_or_const0_operand): New.
18165 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
18166 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18167 (bCC): Delete.
18168 (cbranchdf4, cbranchhi4, cbranchqi4): New.
18169 (*branch, *branch_inverted): New.
18170
18171 * config/picochip/picochip.md (cbranchhi4): Use
18172 ordered_comparison_operator.
18173 (cmphi, bCC): Remove.
18174
18175 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18176 (trap_comparison_operator): Delete.
18177 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18178 rs6000_emit_cbranch): Accept mode and operands.
18179 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18180 rs6000_compare_fp_p): Delete.
18181 (rs6000_generate_compare): Accept mode and comparison. Extract code
18182 and op0/op1 from there. Replace references to rs6000_compare_op0
18183 and rs6000_compare_op1.
18184 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18185 extract result from passed operands.
18186 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18187 extract loc from passed operands.
18188 (rs6000_emit_cmove): Likewise.
18189 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18190 rs6000_compare_fp_p): Delete.
18191 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18192 (cbranch<GPR>4, cbranch<FP>4): New.
18193 (cstore<mode>4): New. Consolidate here all choices about when to use
18194 portable or specialized sCC sequences.
18195 (stack_protect_test): Use cbranchsi4.
18196 (conditional_trap): Replace with ctrap<GPR>4.
18197 (conditional trap insn): Replace trap_comparison_operator with
18198 ordered_comparison_operator.
18199
18200 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18201 (s390_emit_prologue): Use ctrap.
18202 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18203 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18204 New predicates replacing...
18205 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18206 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18207 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18208 (add<mode>cc): Do not use s390_compare_op0/op1.
18209 (s<code>): Change to...
18210 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18211 (seq): Change to...
18212 (cstorecc4): ... this. Handle EQ or NE equally.
18213 (*sne): Un-privatize for use in cstorecc4.
18214 (b<code>): Change to...
18215 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18216 (conditional_trap): Replace with...
18217 (ctrap<GPR>4, ctrap<FP>4): ... these.
18218 (stack_protect): Use cbranchcc4.
18219
18220 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18221 * config/score/score-protos.h (score_gen_cmp): Delete.
18222 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18223 (score_block_move-loop): Use cbranchsi4.
18224 * config/score/score.md (cbranchsi4): New.
18225 (cmpsi, bCC): Delete.
18226 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18227 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18228 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18229 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18230 * config/score/score3.h (score3_gen_cmp): Delete.
18231 * config/score/score7.h (score7_gen_cmp): Delete.
18232
18233 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18234 (sh_emit_scc_to_t): ... this. Return void.
18235 (from_compare): Rename to...
18236 (sh_emit_compare_and_branch): ... this.
18237 (sh_emit_compare_and_set): New.
18238 (sh_expand_t_scc): Accept operands.
18239 * config/sh/predicates.md (sh_float_comparison_operator): New.
18240 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18241 (prepare_scc_operands): Rename to...
18242 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
18243 arguments.
18244 (sh_emit_cheap_store_flag): New.
18245 (sh_emit_set_t_insn): New.
18246 (from_compare): Rename to...
18247 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
18248 handling of TARGET_SH2E floating point to avoid recursive call.
18249 Generate branch here.
18250 (sh_emit_compare_and_set): New.
18251 (sh_expand_t_scc): Get op0/op1 from arguments.
18252 (sh_emit_cheap_store_flag): New.
18253 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18254 cases.
18255 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18256 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18257 (movsicc, movdicc): Do nothing when it recreated operands from
18258 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
18259 prepare_scc_operands (now sh_emit_scc_to_t).
18260 (udivdi3): Use cstoresi4.
18261 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18262 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18263 (cbranchint4_media, cbranchfp4_media): New.
18264 (casesi): Use cbranchdi4.
18265 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18266 Delete.
18267 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18268 (movnegt): Remove second operand.
18269 (cbranchsf4, cbranchdf4): New.
18270 (stack_protect): Use cbranchdi4/cbranchsi4.
18271
18272 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18273 (gen_compare_reg): Accept comparison, extract part of it to...
18274 (gen_compare_reg_1): ... this.
18275 (gen_compare_operator): Delete.
18276 (gen_v9_scc): Accept separate destination, comparison code and arms.
18277 Do not use sparc_compare_op0/sparc_compare_op1.
18278 (emit_scc_insn, emit_conditional_branch_insn): New.
18279 (emit_v9_brxx): Make static. Remove useless assertion.
18280 (sparc_emit_float_lib_cmp): Return RTL instead of calling
18281 emit_cmp_insn.
18282 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18283 * config/sparc/sparc-protos.h (gen_compare_reg,
18284 sparc_emit_float_lib_cmp): Adjust prototype.
18285 (emit_scc_insn, emit_conditional_branch_insn): New.
18286 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18287 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18288 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18289 iterators to the top.
18290 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18291 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18292 snedi_special_trunc): Delete.
18293 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18294 and snedi_special_trunc.
18295 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18296 cbranchdi4, cbranch<F:mode>4): New.
18297 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18298 here. Use gen_compare_reg instead of gen_compare_operator.
18299 (conditional_trap): Replace with...
18300 (ctrapsi4, ctrapdi4): ... this.
18301 (stack_protect_test): Use cbranchcc4.
18302
18303 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18304 argument to rtx.
18305 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18306 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18307 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
18308 from operands[0] or operands[3] depending on is_set.
18309 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18310 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18311 cmpdf, bCC), sCC: Remove.
18312 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18313 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18314 cstoredf4): New.
18315 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18316 spu_emit_branch_or_set.
18317
18318 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18319 Add two arguments.
18320 * config/stormy16/stormy16.h (xstormy16_compare_op0,
18321 xstormy16_compare_op1): Delete.
18322 * config/stormy16/stormy16.c (xstormy16_compare_op0,
18323 xstormy16_compare_op1): Delete.
18324 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18325 Adjust calls.
18326 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18327 (cmphi, cmpsi, bCC): Remove.
18328
18329 * config/v850/v850.md (tstsi, cmpsi): Fold into...
18330 (*cmpsi): ... this one.
18331 (cbranchsi4, cstoresi4): New.
18332 (bCC expanders): Delete.
18333 (sCC insns): Fold into...
18334 (*setcc): ... this one.
18335 (casesi): Do not use gen_cmpsi and gen_bgtu.
18336 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18337 (movsicc): Simplify.
18338 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18339
18340 * config/vax/vax-protos.h (cond_name): New.
18341 (vax_output_conditional_branch): Remove.
18342 * config/vax/vax.c (cond_name): New.
18343 (vax_output_conditional_branch): Remove.
18344 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18345 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18346 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18347 (bit<VAXint>): Wrap source with (compare).
18348 (b<code> and following unnamed pattern): Rename to *branch and
18349 *branch_reversed. Change macroization to match_operator.
18350 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18351
18352 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18353 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18354 Change last argument to machine_mode.
18355 (xtensa_expand_scc): Add machine_mode argument.
18356 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18357 (gen_conditional_move, xtensa_expand_conditional_branch,
18358 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18359 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18360 Adjust operand numbers.
18361 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18362 Delete.
18363 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18364 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18365 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18366
18367 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18368
18369 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18370 causes spurious differences between trunk and cond-optab branch.
18371
18372 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18373
18374 PR target/37137
18375 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18376
18377 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18378
18379 * tree.c (iterative_hash_pointer): Delete.
18380 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18381 Hash UIDs and versions of SSA names. Don't special-case built-in
18382 function declarations.
18383
18384 2009-05-11 Ian Lance Taylor <iant@google.com>
18385
18386 PR bootstrap/40103
18387 * graphite.c: Force -Wc++-compat to only be a warning before
18388 #including "cloog/cloog.h".
18389
18390 2009-05-11 Martin Jambor <mjambor@suse.cz>
18391
18392 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18393
18394 2009-05-11 Jan Hubicka <jh@suse.cz>
18395
18396 * tree-ssa-loop-ivcanon.c: Include target.h
18397 (struct loop_size): new structure.
18398 (constant_after_peeling): New predicate.
18399 (tree_estimate_loop_size): New function.
18400 (estimated_unrolled_size): Rewrite for new estimates.
18401 (try_unroll_loop_completely): Use new estimates.
18402 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18403
18404 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18405
18406 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18407 libcpp interface change.
18408 (spu_macro_to_expand): Likewise.
18409
18410 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18411
18412 PR tree-optimization/40026
18413 * gimplify.c (gimplify_init_constructor): Change initial conditional
18414 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18415 optimize_compound_literals_in_ctor.
18416
18417 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18418
18419 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18420 New devices.
18421 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18422
18423 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18424
18425 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18426 HOST_WIDE_INT for gap.
18427
18428 2009-05-11 Ira Rosen <irar@il.ibm.com>
18429
18430 PR tree-optimization/40074
18431 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18432 account in group size and step comparison.
18433
18434 2009-05-11 Richard Guenther <rguenther@suse.de>
18435
18436 * passes.c (init_optimization_passes): Strip now incorrect comment.
18437 (execute_function_todo): Do not set PROP_alias.
18438 * tree-pass.h (PROP_alias): Remove.
18439 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18440 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18441 * tree-nrv.c (pass_return_slot): Likewise.
18442 * tree-object-size.c (pass_object_sizes): Likewise.
18443 * tree-ssa-dom.c (pass_dominator): Likewise.
18444 (pass_phi_only_cprop): Likewise.
18445 * tree-ssa-dse.c (pass_dse): Likewise.
18446 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18447 (pass_cselim): Likewise.
18448 * tree-ssa-pre.c (pass_pre): Likewise.
18449 (pass_fre): Likewise.
18450 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18451 * tree-ssa-sink.c (pass_sink_code): Likewise.
18452 * tree-stdarg.c (pass_stdarg): Likewise.
18453 * tree-tailcall.c (pass_tail_calls): Likewise.
18454 * tree-vrp.c (pass_vrp): Likewise.
18455
18456 2009-05-10 Ian Lance Taylor <iant@google.com>
18457
18458 * basic-block.h (enum profile_status): Break out of struct
18459 control_flow_graph.
18460 * cgraph.h (struct inline_summary): Break out of struct
18461 cgraph_local_info.
18462 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18463 of struct cgraph_order_sort.
18464 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18465 * cse.c (struct branch_path): Break out of struct
18466 cse_basic_block_data.
18467 * except.h (enum eh_region_type): Break out of struct eh_region.
18468 * gcc.c (enum add_del): Break out of struct modify_target.
18469 * genrecog.c (enum decision_type): Break out of struct decision_test.
18470 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18471 ggc_pch_data.
18472 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18473 * regmove.c (enum match_use): New enum, broken out of struct match.
18474 * sched-int.h (enum post_call_group): New enum, broken out of
18475 struct deps.
18476 (struct deps_reg): Break out of struct deps.
18477 * target.h (struct asm_int_op): Break out of struct gcc_target.
18478 * tree-eh.c (struct goto_queue_node): Break out of struct
18479 leh_tf_state.
18480 * tree-inline.h (enum copy_body_cge_which): Break out of
18481 copy_body_data.
18482 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18483
18484 * c-decl.c (in_struct, struct_types): New static variables.
18485 (pushtag): Add loc parameter. Change all callers.
18486 (lookup_tag): Add ploc parameter. Change all callers.
18487 (check_compound_literal_type): New function.
18488 (parser_xref_tag): Add loc parameter. Change all callers. If
18489 -Wc++-compat, warn about struct/union/enum types defined within a
18490 struct or union.
18491 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18492 and loc parameters. Change all callers. Change error calls to
18493 error_at, using loc. For a redefinition, if the location of the
18494 original definition is known, report it. Set in_struct and
18495 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18496 (finish_struct): Add new parameters enclosing_in_struct and
18497 enclosing_struct_types. Change all callers. Set
18498 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18499 in the struct. If in a struct, add this struct to struct_types.
18500 (start_enum): Add loc parameter. Change all callers. Use
18501 error_at for errors, using loc. For a redefinition, if the
18502 location of the original definition is known, report it. If in a
18503 struct, add this enum type to struct_types. If -Wc++-compat warn
18504 if in sizeof, typeof, or alignof.
18505 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18506 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18507 (c_parser_enum_specifier): Get enum location for start_enum.
18508 (c_parser_struct_or_union_specifier): Get struct location for
18509 start_struct. Save in_struct and struct_types status between
18510 start_struct and finish_struct.
18511 (c_parser_cast_expression): Get location of cast.
18512 (c_parser_alignof_expression): Get location of type.
18513 (c_parser_postfix_expression): Likewise.
18514 (c_parser_postfix_expression_after_paren_type): Add type_loc
18515 parameter. Change all callers. Call check_compound_literal_type.
18516 Use type_loc for error about variable size type.
18517 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18518 of an enum constant from an enum type defined in a struct or union.
18519 (c_cast_expr): Add loc parameter. Change all callers. If
18520 -Wc++-compat, warn about defining a type in a cast.
18521 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18522 (start_enum, start_struct, finish_struct): Update declarations.
18523 (parser_xref_tag, c_cast_expr): Update declarations.
18524 (check_compound_literal_type): Declare.
18525
18526 2009-05-11 Ben Elliston <bje@au.ibm.com>
18527
18528 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18529 for recent libcpp interface change.
18530 (rs6000_macro_to_expand): Likewise.
18531
18532 2009-05-10 Michael Matz <matz@suse.de>
18533
18534 PR target/40031
18535 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18536 not at entry of function.
18537
18538 2009-05-10 Richard Guenther <rguenther@suse.de>
18539
18540 PR tree-optimization/40081
18541 Revert
18542 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18543 using the main variant of the element type. Do not fiddle with
18544 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18545
18546 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18547 structs with volatile fields.
18548
18549 2009-05-10 Jan Hubicka <jh@suse.cz>
18550
18551 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18552 (estimate_move_cost): Assert that it does not get called for
18553 VOID_TYPE_P.
18554 (estimate_num_insns): Skip VOID types in argument handling.
18555 (optimize_inline_calls): Delete unreachable blocks and verify that
18556 callgraph is valid.
18557
18558 2009-05-10 Jan Hubicka <jh@suse.cz>
18559
18560 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18561 * cgraph.c (cgraph_mark_address_taken_node): New function.
18562 (dump_cgraph_node): Dump new flag.
18563 * cgraph.h (struct cgraph_node): Add address_taken.
18564 (cgraph_mark_address_taken_node): New function.
18565 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18566 since new direct calls can be born.
18567
18568 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18569
18570 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18571 tok->val.node.node.
18572
18573 2009-05-10 Jan Hubicka <jh@suse.cz>
18574
18575 PR middle-end/40084
18576 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18577 argument; rewrite.
18578 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18579 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18580 * tree-inline.c (copy_bb): Set frequency correctly.
18581 (fold_marked_statements): Update call to
18582 cgraph_update_edges_for_call_stmt.
18583
18584 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18585
18586 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18587 identifiers in diagnostics.
18588 * config/arm/arm.c (arm_handle_fndecl_attribute,
18589 arm_handle_isr_attribute): Likewise.
18590 * config/avr/avr.c (avr_handle_progmem_attribute,
18591 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18592 * config/bfin/bfin.c (handle_int_attribute,
18593 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18594 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18595 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18596 Likewise.
18597 * config/darwin.c (darwin_handle_kext_attribute,
18598 darwin_handle_weak_import_attribute): Likewise.
18599 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18600 h8300_handle_eightbit_data_attribute,
18601 h8300_handle_tiny_data_attribute): Likewise.
18602 * config/i386/i386.c (ix86_handle_cconv_attribute,
18603 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18604 * config/i386/winnt.c (ix86_handle_shared_attribute,
18605 ix86_handle_selectany_attribute): Likewise.
18606 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18607 * config/m32c/m32c.c (function_vector_handler): Likewise.
18608 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18609 m68hc11_handle_fntype_attribute): Likewise.
18610 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18611 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18612 * config/mips/mips.c (mips_insert_attributes,
18613 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18614 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18615 rs6000_handle_struct_attribute): Likewise.
18616 * config/sh/sh.c (sh_insert_attributes,
18617 sh_handle_resbank_handler_attribute,
18618 sh_handle_interrupt_handler_attribute,
18619 sh2a_handle_function_vector_handler_attribute,
18620 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18621 Likewise.
18622 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18623 * config/spu/spu.c (spu_handle_fndecl_attribute,
18624 spu_handle_vector_attribute): Likewise.
18625 * config/stormy16/stormy16.c
18626 (xstormy16_handle_interrupt_attribute): Likewise.
18627 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18628 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18629
18630 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18631
18632 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18633 (pp_translate_identifiers): New.
18634 (pp_identifier): Only conditionally translate identifier to locale
18635 character set.
18636 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18637 (pp_base_tree_identifier): Only conditionally translate identifier
18638 to locale character set.
18639 * c-pretty-print.c (M_): Define.
18640 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18641 fragments for conditional translation with M_.
18642 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18643 identifier translation.
18644
18645 2009-05-10 Richard Guenther <rguenther@suse.de>
18646
18647 PR tree-optimization/40081
18648 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18649 using the main variant of the element type. Do not fiddle with
18650 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18651
18652 2009-05-09 Jan Hubicka <jh@suse.cz>
18653
18654 PR middle-end/40080
18655 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18656 indirect calls; verify cgraph afterwards.
18657
18658 2009-05-09 Jan Hubicka <jh@suse.cz>
18659
18660 PR bootstrap/40082
18661 * ipa.c (update_inlined_to_pointer): New function.
18662 (cgraph_remove_unreachable_nodes): Use it.
18663
18664 2009-05-09 Jan Hubicka <jh@suse.cz>
18665
18666 * tree-eh.c (struct leh_state): Remove prev_try.
18667 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18668 not track prev_try.
18669 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18670 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18671 remove_eh_handler_and_replace, foreach_reachable_handler,
18672 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18673 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18674 (gen_eh_region_cleanup): Update prototype.
18675
18676 2009-05-09 Jan Hubicka <jh@suse.cz>
18677
18678 PR middle-end/40043
18679 * except.c (copy_eh_region): Always set prev_try.
18680 (redirect_eh_edge_to_label): Find outer try.
18681 (foreach_reachable_handler): When looking for prev try
18682 handle case where previous try is not going to be taken.
18683
18684 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18685
18686 PR tree-optimization/40049
18687 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18688 only vector/vector shifts, convert the type of the constant to the
18689 appropriate type to avoid building incorrect trees, which
18690 eventually have problems with garbage collection.
18691
18692 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18693
18694 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18695 -1 for complex floating-point types if honoring signed zeros.
18696
18697 2009-05-08 Jan Hubicka <jh@suse.cz>
18698
18699 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18700 argument; handle correctly when profile is absent.
18701 (build_cgraph_edges): Update.
18702 (rebuild_cgraph_edges): Update.
18703 * cgraph.c: Do not include varray.h.
18704 (cgraph_set_call_stmt_including_clones): New function.
18705 (cgraph_create_edge_including_clones): Likewise
18706 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18707 (cgraph_update_edges_for_call_stmt): Handle clones.
18708 (cgraph_remove_node): Handle clone tree.
18709 (cgraph_remove_node_and_inline_clones): New function.
18710 (dump_cgraph_node): Dump clone tree.
18711 (cgraph_clone_node): Handle clone tree.
18712 (clone_function_name): Bring here from tree-inline.c.
18713 (cgraph_create_virtual_clone): New function.
18714 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18715 (cgraph_clone_info): New function.
18716 (strut cgraph_node): Add clone_info and new clone tree pointers.
18717 (cgraph_remove_node_and_inline_clones,
18718 cgraph_set_call_stmt_including_clones,
18719 cgraph_create_edge_including_clones,
18720 cgraph_create_virtual_clone): Declare.
18721 (cgraph_function_versioning): Use VEC argument.
18722 (compute_call_stmt_bb_frequency): Update prototype.
18723 (cgraph_materialize_all_clones): New function.
18724 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18725 (ipcp_create_replace_map): Update to VECtors.
18726 (ipcp_update_callgraph): Use virtual clones.
18727 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18728 (ipcp_update_profiling): Do not update local profiling.
18729 (ipcp_insert_stage): Use VECtors and virtual clones.
18730 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18731 (clone_of_p): New function.
18732 (cgraph_preserve_function_body_p): Use clone tree.
18733 (cgraph_optimize): Materialize clones.
18734 (cgraph_function_versioning): Update for VECtors.
18735 (save_inline_function_body): Use clone tree.
18736 (cgraph_materialize_clone): New function.
18737 (cgraph_materialize_all_clones): Likewise.
18738 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18739 * ipa.c: Include gimple.h.
18740 (cgraph_remove_unreachable_nodes): Use clone tree.
18741 * ipa-prop.c (ipa_note_param_call): Update call to
18742 compute_call_stmt_bb_frequencycall.
18743 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18744 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18745 (copy_bb): Handle updating of clone tree; add new edge when new call
18746 appears.
18747 (expand_call_inline): Be strict about every call having edge.
18748 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18749 (delete_unreachable_blocks_update_callgraph): New function.
18750 (tree_function_versioning): Use VECtors; always remove unreachable
18751 blocks and fold conditionals.
18752 * tree-inline.h: Do not include varray.h.
18753 (tree_function_versioning): Remove.
18754 * Makefile.in (GTFILES): Remove tree-inline.c
18755 * passes.c (do_per_function): Do only functions having body.
18756 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18757 tree.
18758
18759 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18760 Andrew Morrow <acm@google.com>
18761
18762 PR c/36892
18763 * c-common.c (c_common_attribute_table): Permit deprecated
18764 attribute to take an optional argument.
18765 (handle_deprecated_attribute): If the optional argument to
18766 __attribute__((deprecated)) is not a string ignore the attribute
18767 and emit a warning.
18768
18769 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18770 * c-typeck.c (build_component_ref): Likewise.
18771 (build_external_ref): Likewise.
18772
18773 * toplev.c (warn_deprecated_use): Add an attribute argument.
18774 Emit the message associated with __attribute__((deprecated)).
18775
18776 * toplev.h (warn_deprecated_use): Updated.
18777
18778 * doc/extend.texi: Document new optional parameter to
18779 __attribute__((deprecated))
18780
18781 2009-05-08 Michael Eager <eager@eagercon.com>
18782
18783 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18784 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18785
18786 2009-05-08 Richard Guenther <rguenther@suse.de>
18787
18788 PR tree-optimization/40062
18789 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18790 Avoid exponential behavior.
18791
18792 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18793
18794 PR rtl-optimization/33928
18795 PR 26854
18796 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18797 process_uses, build_single_def_use_links): New.
18798 (update_df): Update use_def_ref.
18799 (forward_propagate_into): Use get_def_for_use instead of use-def
18800 chains.
18801 (fwprop_init): Call build_single_def_use_links and let it initialize
18802 dataflow.
18803 (fwprop_done): Free use_def_ref.
18804 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18805 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18806 df_rd_simulate_one_insn): New.
18807 (df_rd_bb_local_compute_process_def): Update head comment.
18808 (df_chain_create_bb): Use the new RD simulation functions.
18809 * df.h (df_rd_simulate_artificial_defs_at_top,
18810 df_rd_simulate_one_insn): New.
18811 * opts.c (decode_options): Enable fwprop at -O1.
18812 * doc/invoke.texi (-fforward-propagate): Document this.
18813
18814 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18815
18816 PR c/24581
18817 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18818 and one complex operand specially.
18819 * tree-complex.c (some_nonzerop): Do not identify a real value as
18820 zero if flag_signed_zeros.
18821
18822 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18823
18824 PR rtl-optimization/33928
18825 * loop-invariant.c (record_use): Fix && vs. || mishap.
18826
18827 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18828
18829 PR rtl-optimization/33928
18830 * loop-invariant.c (struct use): Add addr_use_p.
18831 (struct def): Add n_addr_uses.
18832 (struct invariant): Add cheap_address.
18833 (create_new_invariant): Set cheap_address.
18834 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18835 (record_uses): Pass df_ref to record_use.
18836 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18837 used only as such.
18838
18839 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18840
18841 * config/sh/sh.c: Do not include c-pragma.h.
18842
18843 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18844
18845 * config/spu/spu.c: Remove include of c-common.h.
18846
18847 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18848
18849 PR c/39037
18850 * c-common.h (mark_valid_location_for_stdc_pragma,
18851 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18852 clear_float_const_decimal64, float_const_decimal64_p): New.
18853 * c.opt (Wunsuffixed-float-constants): New.
18854 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18855 unsuffixed float constant, handle new warning.
18856 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18857 * c-decl.c (c_scope): New flag float_const_decimal64.
18858 (set_float_const_decimal64, clear_float_const_decimal64,
18859 float_const_decimal64_p): New.
18860 (push_scope): Set new flag.
18861 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18862 to use STDC pragmas.
18863 (c_parser_external_declaration): Ditto.
18864 (c_parser_compound_statement_nostart): Ditto.
18865 * c-pragma.c (valid_location_for_stdc_pragma,
18866 mark_valid_location_for_stdc_pragma,
18867 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18868 handle_pragma_float_const_decimal64): New.
18869 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18870 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18871 set_float_const_decimal64, clear_float_const_decimal64,
18872 float_const_decimal64_p): New dummy functions.
18873 * doc/extend.texi (Decimal Float): Remove statement that the
18874 pragma, and suffix for double constants, are not supported.
18875 * doc/invoke.texi (Warning Options): List new option.
18876 (-Wunsuffixed-float-constants): New.
18877
18878 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18879
18880 * config/i386/i386.c: Do not include c-common.h.
18881
18882 2009-05-07 Mark Heffernan <meheff@google.com>
18883
18884 * doc/invoke.texi (Debugging Options): Document change of debugging
18885 dump location.
18886 * opts.c (decode_options): Make dump_base_name relative to
18887 aux_base_name directory.
18888
18889 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18890
18891 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18892 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18893
18894 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18895
18896 * Makefile.in (install-plugin): Simplify a bit.
18897
18898 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18899
18900 * Makefile.in (OBJS-common): Add regcprop.o.
18901 (regcprop.o): New.
18902 * timevar.def (TV_CPROP_REGISTERS): New.
18903 * regrename.c (regrename_optimize): Return 0.
18904 (rest_of_handle_regrename): Delete.
18905 (pass_rename_registers): Point to regrename_optimize.
18906 (struct value_data_entry, struct value_data,
18907 kill_value_one_regno, kill_value_regno, kill_value,
18908 set_value_regno, init_value_data, kill_clobbered_value,
18909 kill_set_value, kill_autoinc_value, copy_value,
18910 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18911 replace_oldest_value_reg, replace_oldest_value_addr,
18912 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18913 debug_value_data, validate_value_data): Move...
18914 * regcprop.c: ... here.
18915 (rest_of_handle_cprop): Delete.
18916 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18917
18918 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18919
18920 PR middle-end/40057
18921 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18922 GEN_INT for 1 << bitnum.
18923 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18924 build_int_cst_type.
18925
18926 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18927
18928 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18929 Remove wrong description of "nand" operation.
18930
18931 2009-05-06 Richard Guenther <rguenther@suse.de>
18932 Adam Nemet <anemet@caviumnetworks.com>
18933
18934 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18935 comment. Add that if LHS is not a gimple register, then RHS1 has
18936 to be a single object (GIMPLE_SINGLE_RHS).
18937
18938 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18939
18940 * expr.c (get_def_for_expr): Move it up in the file.
18941 (store_field): When expanding a bit-field store, look at the
18942 defining gimple stmt for the masking conversion.
18943
18944 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18945
18946 PR middle-end/39986
18947 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18948 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18949 32-bit memcpy into long.
18950
18951 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18952
18953 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18954 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18955 new_reg_loc_descr.
18956 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18957 instead of appending DW_OP_deref*.
18958
18959 2009-05-06 Michael Matz <matz@suse.de>
18960
18961 PR middle-end/40021
18962 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18963 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18964
18965 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18966
18967 * Makefile.in (install-plugin): Fix srcdir handling.
18968
18969 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18970
18971 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18972 when processing for not_regs_needed bitmap.
18973 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18974 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18975 handling it for rhs.
18976
18977 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18978
18979 * config/i386/i386.md (unnamed inc/dec peephole): Use
18980 optimize_insn_for_size_p instead of optimize_size.
18981 * config/i386/predicates.md (incdec_operand): Likewise.
18982 (aligned_operand): Likewise.
18983 * config/i386/sse.md (divv8sf3): Likewise.
18984 (sqrtv8sf2): Likewise.
18985
18986 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18987
18988 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18989
18990 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18991
18992 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18993
18994 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18995 ssemodesuffixf2c with avxmodesuffixf2c.
18996
18997 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18998
18999 PR c/40032
19000 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
19001
19002 2009-05-05 Jakub Jelinek <jakub@redhat.com>
19003
19004 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
19005 (struct tree_base): Adjust spacing for 8 bit boundaries.
19006 (struct tree_decl_common): Add decl_by_reference_flag bit.
19007 (DECL_BY_REFERENCE): Adjust.
19008 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
19009 print DECL_BY_REFERENCE bit.
19010 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
19011 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
19012 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
19013 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
19014 unconditionally.
19015
19016 PR middle-end/39666
19017 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
19018 range of the type, but default label is missing, add it with one
19019 of the existing labels instead of adding a new label for it.
19020
19021 2009-05-05 Joseph Myers <joseph@codesourcery.com>
19022
19023 * dwarf.h: Remove.
19024
19025 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
19026
19027 * Makefile.in (enable_plugin, plugin_includedir): New.
19028 (install): Depend on install-plugin.
19029 (PLUGIN_HEADERS): New.
19030 (install-plugin): New.
19031 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
19032
19033 2009-05-05 Richard Guenther <rguenther@suse.de>
19034
19035 PR tree-optimization/40022
19036 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
19037 the only vuse.
19038 (phivn_valid_p): Fix tuplification error, simplify.
19039 (phiprop_insert_phi): Add dumps.
19040 (propagate_with_phi): Simplify.
19041
19042 2009-05-05 Richard Guenther <rguenther@suse.de>
19043
19044 PR middle-end/40023
19045 * builtins.c (gimplify_va_arg_expr): Properly build the address.
19046
19047 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
19048
19049 * tree.h (strip_float_extensions): Remove duplicate declaration.
19050 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
19051 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
19052 block_ultimate_origin): Rearrange the declarations line to match the
19053 comment that indicates the .c file which the functions are defined.
19054 (dwarf2out_*, set_decl_rtl): Add comment.
19055 (get_base_address): Adjust comment.
19056 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
19057 declarations line and add comment.
19058 (is_builtin_name): Add blank after function name, for clarity.
19059
19060 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19061
19062 * attribs.c (decl_attributes): Use %qE for identifiers in
19063 diagnostics.
19064 * cgraphunit.c (verify_cgraph_node): Translate function names to
19065 locale character set in diagnostics.
19066 * coverage.c (get_coverage_counts): Use %qE for identifiers in
19067 diagnostics.
19068 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
19069 Document that functions are named in UTF-8.
19070 * expr.c (expand_expr_real_1): Translate function names to locale
19071 character set in diagnostics.
19072 * gimplify.c (omp_notice_variable, omp_is_private,
19073 gimplify_scan_omp_clauses): Use %qE for identifiers in
19074 diagnostics.
19075 * langhooks.c (lhd_print_error_function): Translate function names
19076 to locale character set.
19077 * langhooks.h (decl_printable_name): Document that return value is
19078 in internal character set.
19079 * stmt.c: Include pretty-print.h
19080 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
19081 diagnostics.
19082 (resolve_operand_name_1): Translate named operand name to locale
19083 character set.
19084 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
19085 diagnostics.
19086 * toplev.c (announce_function): Translate function names to locale
19087 character set.
19088 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
19089 (default_tree_printer): Use pp_identifier or translate identifiers
19090 to locale character set. Mark "<anonymous>" for translation.
19091 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
19092 for identifiers in diagnostics.
19093 * tree.c (handle_dll_attribute): Use %qE for identifiers in
19094 diagnostics.
19095 * varasm.c (output_constructor): Use %qE for identifiers in
19096 diagnostics.
19097
19098 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
19099
19100 * configure.ac: use ` ` instead of $()
19101 * configure: Regenerate.
19102
19103 2009-05-05 Ben Elliston <bje@au.ibm.com>
19104
19105 * config/pa/linux-atomic.c: Eliminate conditional include of
19106 errno.h on non-LP64 systems to simplify build requirements.
19107
19108 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19109
19110 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
19111 diagnostics.
19112 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
19113 and pass value to identifier_to_locale.
19114 (warn_variable_length_array): Make name a tree.
19115 (grokdeclarator): Separate diagnostic texts for named and unnamed
19116 declarators. Use %qE for named declarators.
19117 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19118 diagnostics.
19119 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19120 identifiers in diagnostics.
19121 * c-typeck.c (push_member_name, start_init): Pass identifiers to
19122 identifier_to_locale. Mark "anonymous" strings for translation.
19123
19124 2009-05-04 Michael Eager <eager@eagercon.com>
19125
19126 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19127 address for DImode/DFmode only if double-precision FP regs.
19128
19129 2009-05-04 Michael Eager <eager@eagercon.com>
19130
19131 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19132 TARGET_SINGLE_FLOAT check.
19133
19134 2009-05-04 Michael Eager <eager@eagercon.com>
19135
19136 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19137
19138 2009-05-04 Michael Eager <eager@eagercon.com>
19139
19140 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
19141 * config/rs6000/t-xilinx: New
19142
19143 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
19144
19145 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19146 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19147 * gcc/explow.c (memory_address): Use target hook.
19148 * gcc/targhooks.c (default_legitimize_address): New.
19149 * gcc/targhooks.h (default_legitimize_address): New.
19150 * gcc/target.h (legitimize_address): New.
19151 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19152 (TARGET_INITIALIZER): Include it.
19153 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19154
19155 * config/bfin/bfin-protos.h (legitimize_address): Remove.
19156 * config/bfin/bfin.c (legitimize_address): Remove.
19157 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19158 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19159 Remove.
19160 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19161 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19162
19163 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19164 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19165 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19166 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19167 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19168 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19169 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19170 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19171 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19172 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19173 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19174 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19175 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19176 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19177 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19178 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19179 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19180 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19181 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19182 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19183 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19184 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19185 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19186
19187 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19188 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19189 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19190 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19191 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19192 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19193 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19194 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19195 (thumb_legitimize_address): Delete.
19196 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19197 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19198 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19199 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19200 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19201 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19202 Delete.
19203 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19204 Delete.
19205
19206 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19207 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19208 * config/m32r/m32r.c (m32r_legitimize_address): New.
19209 * config/m68k/m68k.c (m68k_legitimize_address): New.
19210 * config/score/score.c (score_legitimize_address): Standardize.
19211 * config/score/score3.c (score3_legitimize_address): Standardize.
19212 * config/score/score3.h (score3_legitimize_address): Adjust.
19213 * config/score/score7.c (score7_legitimize_address): Standardize.
19214 * config/score/score7.h (score7_legitimize_address): Adjust.
19215 * config/sh/sh.c (sh_legitimize_address): New.
19216 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19217
19218 * gcc/config/s390/s390.c (legitimize_address): Rename to...
19219 (s390_legitimize_address): ... this.
19220 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19221 (sparc_legitimize_address): ... this.
19222 * gcc/config/i386/i386.c (legitimize_address): Rename to...
19223 (ix86_legitimize_address): ... this.
19224 * gcc/config/avr/avr.c (legitimize_address): Rename to...
19225 (avr_legitimize_address): ... this.
19226 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19227 (mn10300_legitimize_address): ... this.
19228 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19229 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19230 (alpha_expand_mov): Adjust call.
19231
19232 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19233 * config/spu/spu.c (spu_legitimize_address): Likewise.
19234 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19235 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19236
19237 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19238
19239 * intl.c (locale_encoding, locale_utf8): New.
19240 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19241 * intl.h (locale_encoding, locale_utf8): Declare.
19242 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
19243 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19244 New.
19245 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19246 argument.
19247 (pp_tree_identifier): Define to call pp_base_tree_identifier.
19248 (pp_base_tree_identifier): Declare as function.
19249 (identifier_to_locale): Declare.
19250 * Makefile.in (pretty-print.o): Update dependencies.
19251 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19252
19253 2009-05-04 Richard Guenther <rguenther@suse.de>
19254
19255 PR middle-end/40015
19256 * builtins.c (fold_builtin_memory_op): Do not decay to element
19257 type if the size matches the whole array.
19258
19259 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19260
19261 * expmed.c (synth_mult): When trying out a shift, pass the result
19262 of a signed shift.
19263
19264 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19265
19266 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19267 (shiftsub1_cost): New.
19268 (init_expmed): Compute shiftsub1_cost.
19269 (synth_mult): Optimize multiplications by constants of the form
19270 -(2^^m-1) for some constant positive integer m.
19271
19272 2009-05-03 Richard Guenther <rguenther@suse.de>
19273
19274 PR c/39983
19275 * c-typeck.c (array_to_pointer_conversion): Do not built
19276 ADDR_EXPRs of arrays of pointer-to-element type.
19277 * c-gimplify.c (c_gimplify_expr): Revert change fixing
19278 up wrong ADDR_EXPRs after-the-fact.
19279 * c-common.c (strict_aliasing_warning): Strip pointer
19280 conversions for obtaining the original type.
19281 * builtins.c (fold_builtin_memset): Handle array types.
19282 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19283 and array types
19284
19285 2009-05-03 Richard Guenther <rguenther@suse.de>
19286
19287 PR middle-end/23329
19288 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19289 Do not lose casts from array types with unknown extent to array
19290 types with known extent.
19291 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19292 alias set compatibility.
19293
19294 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19295
19296 * flags.h (extra_warnings): Delete.
19297 * toplev.c (process_options): Handle Wuninitialized here.
19298 * opts.c (extra_warnings): Delete.
19299 (set_Wextra): Delete.
19300 (common_handle_option): -Wextra can be handled automatically.
19301 * c-opts.c (c_common_handle_option): Delete obsolete code.
19302 (c_common_post_options): Simplify comment.
19303 * common.opt (W): Add Var.
19304 (Wextra): Add Var.
19305 (Wuninitialized): Initialize to -1.
19306
19307 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
19308 Richard Guenther <rguenther@suse.de>
19309
19310 * expr.c (get_def_for_expr): New function.
19311 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19312 SSA rather than trees.
19313 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
19314 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19315
19316 2009-05-03 Joseph Myers <joseph@codesourcery.com>
19317
19318 * c-common.c (reswords): Add _Imaginary.
19319 * c-common.c (enum rid): Add RID_IMAGINARY.
19320
19321 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
19322
19323 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19324 Patch by Richard Guenther.
19325
19326 2009-05-03 Anatoly Sokolov <aesok@post.ru>
19327
19328 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19329 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19330 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19331 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19332 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19333 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19334 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19335 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19336 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19337 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19338 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19339 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19340 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19341 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19342 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19343 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19344 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19345 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19346
19347 2009-05-02 Richard Guenther <rguenther@suse.de>
19348
19349 PR tree-optimization/39940
19350 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19351 doing so.
19352
19353 2009-05-02 Richard Guenther <rguenther@suse.de>
19354
19355 PR middle-end/40001
19356 * tree-ssa.c (execute_update_addresses_taken): Properly check
19357 if we can mark a variable DECL_GIMPLE_REG_P.
19358 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19359 back to the end of the function.
19360 (is_gimple_reg_type): Remove complex type special casing.
19361 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19362 if not optimizing.
19363
19364 2009-05-02 Ben Elliston <bje@au.ibm.com>
19365
19366 * doc/collect2.texi (Collect2): Document search path behaviour
19367 when configured with --with-ld.
19368
19369 2009-05-02 Jan Hubicka <jh@suse.cz>
19370
19371 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19372 parameter; update callers.
19373 (coalesce_cost_edge): EH edges are costier because they needs
19374 splitting even if not critical and even more costier when there are
19375 multiple EH predecestors.
19376
19377 2009-05-02 Jan Hubicka <jh@suse.cz>
19378
19379 * except.c (remove_eh_handler_and_replace): Handle updating after
19380 removing TRY blocks.
19381
19382 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19383
19384 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19385
19386 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19387
19388 * varasm.c: Do not include c-pragma.h.
19389 * attribs.c: Do not incude c-common.h.
19390
19391 2009-05-01 Michael Matz <matz@suse.de>
19392
19393 * calls.c (initialize_argument_information): Handle SSA names like
19394 decls with a non MEM_P DECL_RTL.
19395
19396 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19397
19398 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19399 * ipa-utils.c: Likewise.
19400 * ipa-type-escape.c: Likewise.
19401 * cgraphunit.c Do not include c-common.h.
19402 * ipa-pure-const.c: Likewise.
19403 * tree-if-conv.c: Likewise.
19404 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19405 * ipa-struct-reorg.c: Likewise.
19406 * tree-nomudflap.c: Likewise.
19407 * tree-ssa-structalias.c: Likewise.
19408
19409 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19410
19411 * store-motion.c: Many cleanups to make this pass a first-class
19412 citizen instead of an appendix to gcse load motion. Add TODO list
19413 to make this pass faster/cleaner/better.
19414
19415 (struct ls_expr): Post gcse.c-split cleanups.
19416 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19417 "stores" field to "avail_stores".
19418 (pre_ldst_mems): Rename to store_motion_mems.
19419 (pre_ldst_table): Rename to store_motion_mems_table.
19420 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19421 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19422 (ldst_entry): Rename to st_expr_entry, update users.
19423 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19424 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19425 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19426 update caller.
19427 (first_ls_expr): Rename to first_st_expr, update users.
19428 (next_ls_expr): Rename to next_st_expr, update users.
19429 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19430 fields properly for store motion instead of names inherited from load
19431 motion in gcse.c.
19432 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19433 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19434 are done with it.
19435
19436 (ae_kill): Rename to st_kill, update users.
19437 (ae_gen): Rename to st_avloc, update users.
19438 (transp): Rename to st_transp, update users.
19439 (pre_insert_map): Rename to st_insert_map, update users.
19440 (pre_delete_map): Rename to st_delete_map, update users.
19441 (insert_store, build_store_vectors, free_store_memory,
19442 one_store_motion_pass): Update for abovementioned changes.
19443
19444 (gcse_subst_count, gcse_create_count): Remove.
19445 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19446 and "n_stores_created", local variables.
19447
19448 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19449 use for_each_rtx.
19450
19451 (regvec, compute_store_table_current_insn): Remove.
19452 (reg_set_info, reg_clear_last_set): Remove.
19453 (compute_store_table): Use DF caches instead of local dataflow
19454 solvers.
19455
19456 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19457
19458 * c-objc-common.c (c_tree_printer): Print identifiers with
19459 pp_identifier, not pp_string. Mark "({anonymous})" for
19460 translation.
19461 * c-pretty-print.c (pp_c_ws_string): New.
19462 (pp_c_cv_qualifier, pp_c_type_specifier,
19463 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19464 pp_c_storage_class_specifier, pp_c_function_specifier,
19465 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19466 pp_c_primary_expression, pp_c_postfix_expression,
19467 pp_c_unary_expression, pp_c_shift_expression,
19468 pp_c_relational_expression, pp_c_equality_expression,
19469 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19470 use pp_string and pp_c_ws_string in place of pp_identifier and
19471 pp_c_identifier for non-identifiers. Mark English strings for
19472 translation.
19473 * c-pretty-print.h (pp_c_ws_string): Declare.
19474
19475 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19476 Roland McGrath <roland@redhat.com>
19477
19478 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19479 (ENABLE_LD_BUILDID): New configuration option.
19480 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19481 (LINK_BUILDID_SPEC): New macro.
19482 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19483 link_spec.
19484 * doc/install.texi: Document --enable-linker-build-id option.
19485 * configure: Rebuild.
19486 * config.in: Rebuild.
19487
19488 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19489
19490 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19491 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19492 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19493 MIPS_GP_SAVE_AREA_SIZE.
19494 * config/mips/mips.c (struct mips_frame_info): Update comment
19495 before arg_pointer_offset and hard_frame_pointer_offset.
19496 (mips_compute_frame_info): Update diagram before function: to
19497 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19498 indicate the position of frame_pointer_rtx with -fstack-protector and
19499 to show args_size. Don't allocate cprestore area for leaf functions
19500 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19501 cprestore_size.
19502 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19503
19504 2009-04-30 Michael Matz <matz@suse.de>
19505
19506 PR tree-optimization/39955
19507 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19508
19509 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19510
19511 * ira.c (setup_cover_and_important_classes): Use safe macro
19512 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19513 directly.
19514 * genpreds.c (write_tm_preds_h): Output suitable definition of
19515 REG_CLASS_FOR_CONSTRAINT.
19516
19517 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19518
19519 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19520 instead of an int.
19521 * bitmap.c (bitmap_descriptor): Likewise.
19522 * ggc-common.c (loc_descriptor): Likewise.
19523 * varray.c (varray_descriptor): Likewise.
19524 * vec.c (vec_descriptor): Likewise.
19525
19526 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19527
19528 * Makefile.in (dce.o): Add $(EXCEPT_H).
19529 * dce.c: Include except.h and delete redundant vector definitions.
19530 (deletable_insn_p): Return false for non-call insns that can throw
19531 if DF is running.
19532
19533 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19534
19535 * gcse.c (ae_gen): Remove.
19536 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19537 and make non-static function to make it available in store-motion.c.
19538 Update call sites with search-and-replace.
19539 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19540 extract_mentioned_regs, extract_mentioned_regs_helper,
19541 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19542 store_killed_in_insn, store_killed_after, store_killed_before,
19543 build_store_vectors, insert_insn_start_basic_block, insert-store,
19544 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19545 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19546 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19547 * store-motion.c: ...new file. Also copy data structures from gcse.c
19548 and clean up to remove parts not used by store motion.
19549 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19550 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19551
19552 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19553
19554 PR target/38571
19555 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19556 when optimizing for size.
19557
19558 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19559
19560 * gcse.c (gcse_constant_p): Fix typo in last change.
19561
19562 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19563
19564 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19565
19566 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19567
19568 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19569
19570 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19571
19572 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19573 CONST_HIGH_PART result.
19574
19575 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19576
19577 * config/avr/avr.c (initial_elimination_offset): Rename to
19578 avr_initial_elimination_offset.
19579 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19580 change return type to bool.
19581 (avr_can_eliminate): New function.
19582 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19583 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19584 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19585 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19586 avr_initial_elimination_offset.
19587 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19588 (avr_initial_elimination_offset): Define.
19589
19590 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19591 Steven Bosscher <steven@gcc.gnu.org>
19592
19593 PR rtl-optimization/39938
19594 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19595 * cfgrtl.c: Include insn-attr.h.
19596 (rest_of_pass_free_cfg): New function.
19597 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19598 * resource.c (init_resource_info): Remove call to df_analyze.
19599
19600 2009-04-29 Richard Guenther <rguenther@suse.de>
19601
19602 PR target/39943
19603 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19604 allow conversion to signed integers.
19605
19606 2009-04-29 Richard Guenther <rguenther@suse.de>
19607
19608 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19609 shifts of floating point vectors if the shift amount is
19610 a constant multiple of the element size.
19611
19612 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19613 Michael Matz <matz@suse.de>
19614
19615 PR middle-end/39927
19616 PR bootstrap/39929
19617 * tree-outof-ssa.c (emit_partition_copy): New function.
19618 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19619 insert_part_to_rtx_on_edge): Perform the partition base var
19620 copy using emit_partition_copy.
19621 (insert_value_copy_on_edge): Convert constants to the right mode.
19622 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19623 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19624
19625 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19626
19627 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19628 scan backwards to try to find a constant to initialize it.
19629
19630 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19631 insn before the loop_end instruction, don't look past labels.
19632
19633 2009-04-29 Richard Guenther <rguenther@suse.de>
19634
19635 PR middle-end/39937
19636 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19637 loose type conversions.
19638 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19639 stmts only if there are no uses of its definition.
19640
19641 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19642
19643 * config/bfin/bfin.h (splitting_loops): Declare.
19644 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19645 Reorder bit definitions to be ascending.
19646 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19647 * config/bfin/bfin.c (splitting_loops): New variable.
19648 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19649 (struct loop_info): Remove members INIT and LOOP_INIT.
19650 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19651 the LSETUP sequence. Allow LC to be loaded from any register, but
19652 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19653 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19654 set to 1.
19655 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19656 of reload_completed.
19657
19658 From Jie Zhang:
19659 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19660
19661 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19662
19663 * Makefile.in (PLUGIN_VERSION_H): New.
19664 (OBJS-common): Remove plugin-version.o.
19665 (plugin.o): Depend on (PLUGIN_VERSION_H).
19666 (plugin-version.o): Remove.
19667 * configure: Regenerate
19668 * configure.ac: Create plugin-version.h.
19669 * gcc-plugin.h (plugin_gcc_version): Remove.
19670 (plugin_default_version_check): Change signature.
19671 * plugin-version.c: Remove.
19672 * plugin.c: Include plugin-version.h.
19673 (str_plugin_gcc_version_name): Remove.
19674 (try_init_one_plugin): Pass gcc version to plugin_init.
19675 (plugin_default_version_check): Both gcc and plugin versions are now
19676 arguments.
19677
19678 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19679
19680 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19681 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19682 Remove special case testing for last insn of inner loops. Don't fail
19683 if the loop ends with a jump, emit an extra nop instead.
19684
19685 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19686 DREGS rather than comparing directly. Remove code that tries to
19687 account for latencies.
19688
19689 2009-04-29 Richard Guenther <rguenther@suse.de>
19690
19691 PR tree-optimization/39941
19692 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19693 eliminating an indirect call.
19694
19695 2009-04-29 Richard Guenther <rguenther@suse.de>
19696
19697 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19698 parameter. Allow invariants as base if !require_lvalue.
19699 (verify_gimple_assign_single): Adjust.
19700
19701 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19702
19703 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19704 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19705 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19706 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19707 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19708 a VEC_SELECT.
19709 * config/bfin/bfin.c (bfin_expand_builtin,
19710 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19711
19712 2009-04-28 Richard Guenther <rguenther@suse.de>
19713
19714 * tree-vect-loop.c (get_initial_def_for_induction): Use
19715 correct types for pointer increment.
19716
19717 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19718
19719 * toplev.c (print_version): Update GMP version string calculation.
19720
19721 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19722
19723 PR rtl-optimization/39938
19724 * resource.c (init_resource_info): Add call to df_analyze.
19725
19726 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19727
19728 * config/alpha/alpha.md (usegp): Cast the result of
19729 alpha_find_lo_sum_using_gp to enum attr_usegp.
19730 * config/alpha/alpha.c (override_options): Remove end-of-structure
19731 marker element from cpu_table. Use array size of cpu_table to handle
19732 -mcpu and -mtune options.
19733 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19734
19735 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19736
19737 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19738 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19739 tune_32 and tune_64.
19740 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19741 support on PowerPC.
19742 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19743 * config/rs6000/option-defaults.h: ... here. New file.
19744 (OPT_64, OPT_32): Define.
19745 (MASK_64BIT): Define to 0 if not already defined.
19746 (OPT_ARCH64, OPT_ARCH32): Define.
19747 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19748 and tune_64.
19749
19750 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19751
19752 * config/arm/arm.c (arm_override_options): Emit error on using
19753 fpa with AAPCS.
19754
19755 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19756
19757 PR rtl-optimization/39914
19758 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19759 registers for allocnos created from user-defined variables only
19760 when not optimizing.
19761
19762 2009-04-28 Richard Guenther <rguenther@suse.de>
19763
19764 PR middle-end/39937
19765 * fold-const.c (fold_binary): Use distribute_real_division only
19766 on float types.
19767
19768 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19769
19770 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19771 add hpux-stdint.h to tm_file.
19772 (hppa[12]*-*-hpux11*): Ditto.
19773 (ia64*-*-hpux*): Ditto.
19774 * config/hpux-stdint.h: New.
19775 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19776 __STDC_EXT__ for all compiles.
19777 * config/pa/pa-hpux.h: Ditto.
19778 * config/pa/pa-hpux10.h: Ditto.
19779 * config/pa/pa-hpux11.h: Ditto.
19780
19781 2009-04-28 Catherine Moore <clm@codesourcery.com>
19782
19783 * debug.h (set_name): Add comment.
19784
19785 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19786
19787 PR target/39929
19788 * config/darwin.c (machopic_gen_offset): Check
19789 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19790 * config/arm/arm.c (require_pic_register): Likewise.
19791
19792 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19793
19794 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19795 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19796 m32c_promote_prototypes): Delete.
19797
19798 2009-04-28 Michael Matz <matz@suse.de>
19799
19800 PR middle-end/39922
19801 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19802 constants.
19803
19804 2009-04-28 Richard Guenther <rguenther@suse.de>
19805
19806 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19807
19808 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19809
19810 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19811 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19812 * config/arm/arm-tune.md: Regenerate.
19813
19814 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19815
19816 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19817 block if there are complex incoming edges.
19818 (sel_merge_blocks): Remove useless assert.
19819 (sel_redirect_edge_and_branch): Check that edge was redirected.
19820 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19821 (sel_find_rgns): Delete declaration.
19822 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19823 the region when it is not a preheader.
19824
19825 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19826
19827 PR c/39323
19828 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19829
19830 2009-04-28 Richard Guenther <rguenther@suse.de>
19831
19832 * tree.h (SSA_NAME_VALUE): Remove.
19833 (struct tree_ssa_name): Remove value_handle member.
19834 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19835 array for jump threading.
19836 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19837 SSA_NAME_VALUEs.
19838 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19839 * tree-flow.h (threadedge_initialize_values): Declare.
19840 (threadedge_finalize_values): Likewise.
19841 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19842 (SSA_NAME_VALUE): Define.
19843 (threadedge_initialize_values): New function.
19844 (threadedge_finalize_values): Likewise.
19845 * tree-ssa-dom.c (ssa_name_values): New global variable.
19846 (SSA_NAME_VALUE): Define.
19847 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19848
19849 2009-04-28 Ira Rosen <irar@il.ibm.com>
19850
19851 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19852 Use REPORT_VECTORIZED_LOCATIONS instead
19853 REPORT_VECTORIZED_LOOPS.
19854 * tree-vectorizer.c (vect_verbosity_level): Make static.
19855 (vect_loop_location): Rename to vect_location.
19856 (vect_set_verbosity_level): Update comment.
19857 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19858 and vect_location.
19859 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19860 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19861 instead REPORT_UNVECTORIZED_LOOPS.
19862 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19863 and vect_loop_def to vect_external_def and vect_internal_def.
19864 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19865 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19866 REPORT_UNVECTORIZED_LOCATIONS.
19867 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19868 and vect_used_in_loop and to vect_unused_in_scope and
19869 vect_used_in_scope.
19870 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19871 (vect_verbosity_level): Remove declaration.
19872 (vect_analyze_operations): Likewise.
19873 (vect_analyze_stmt): Declare.
19874 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19875 REPORT_UNVECTORIZED_LOCATIONS.
19876 (vect_get_loop_niters): Fix indentation.
19877 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19878 (vect_analyze_loop_operations): New function.
19879 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19880 vect_analyze_operations.
19881 (vect_is_simple_reduction): Use new names.
19882 (vectorizable_live_operation, vect_transform_loop): Likewise.
19883 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19884 to specify whether the data references can be a part of interleaving
19885 chain.
19886 (vect_analyze_data_ref_dependence): Use new names.
19887 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19888 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19889 * tree-vect-patterns.c (widened_name_p): Use new names.
19890 (vect_recog_dot_prod_pattern): Likewise.
19891 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19892 (process_use, vect_mark_stmts_to_be_vectorized,
19893 vect_model_simple_cost, vect_model_store_cost,
19894 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19895 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19896 vectorizable_operation, vectorizable_type_demotion,
19897 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19898 vectorizable_condition): Likewise.
19899 (vect_analyze_operations): Split into vect_analyze_loop_operations
19900 and ...
19901 (vect_analyze_stmt): ... new function.
19902 (new_stmt_vec_info): Use new names.
19903 (vect_is_simple_use): Use new names and fix comment.
19904 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19905 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19906
19907 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19908
19909 PR target/39911
19910 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19911 and integer modes for x87 operands. Do not ICE for unsupported size,
19912 generate error instead. Generate error for unsupported operand types.
19913 ['z']: Do not handle HImode memory operands specially. Warning
19914 for floating-point operands. Fallthru to 'Z' for unsupported operand
19915 types. Do not ICE for unsupported size, generate error instead.
19916 (output_387_binary_op): Use %Z to output operands.
19917 (output_fp_compare): Ditto.
19918 (output_387_reg_move): Ditto.
19919
19920 2009-04-28 Ben Elliston <bje@au.ibm.com>
19921
19922 PR c++/35652
19923 Revert:
19924
19925 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19926
19927 * builtins.c (c_strlen): Do not warn here.
19928 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19929 * c-common.c (pointer_int_sum): Take an explicit location.
19930 Warn about offsets out of bounds.
19931 * c-common.h (pointer_int_sum): Adjust declaration.
19932
19933 2009-04-27 Ian Lance Taylor <iant@google.com>
19934
19935 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19936 names to symkind.
19937 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19938 * df-core.c (df_set_flags): Change return type to int. Change
19939 type of old_flags to int.
19940 (df_clear_flags): Likewise.
19941 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19942 (df_get_conditional_uses): Likewise.
19943 * df.h (df_set_flags, df_clear_flags): Update declarations.
19944 * dwarf2out.c (struct indirect_string_node): Change type of form
19945 field to enum dwarf_form.
19946 (AT_string_form): Change return type to enum dwarf_form.
19947 * fixed-value.c (fixed_compare): Add cast to enum type.
19948 * fwprop.c (update_df): Change 0 to VOIDmode.
19949 * gensupport.c: Change 0 to UNKNOWN.
19950 * gimple.h (gimple_cond_code): Add cast to enum type.
19951 * haifa-sched.c (reemit_notes): Add cast to enum type.
19952 * hooks.c (hook_int_void_no_regs): Remove function.
19953 * hooks.h (hook_int_void_no_regs): Remove declaration.
19954 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19955 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19956 * real.c (real_arithmetic): Add cast to enum type.
19957 (real_compare): Likewise.
19958 * target.h (struct gcc_target): Change return type of
19959 branch_target_register_class to enum reg_class.
19960 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19961 default_branch_target_register_class.
19962 * targhooks.c (default_branch_target_register_class): New function.
19963 * targhooks.h (default_branch_target_register_class): Declare.
19964 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19965 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19966 cast to int.
19967 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19968 ERROR_MARK.
19969 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19970 vect_uninitialized_def. Change 0 to ERROR_MARK.
19971 * tree-vect-stmts.c (supportable_widening_operation): Don't
19972 initialize icode1 and icode2.
19973 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19974 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19975 and to STD_C89.
19976 (cmn_err_flag_specs): Change 0 to STD_C89.
19977 (cmn_err_char_table): Likewise.
19978 * config/arm/arm.c (get_arm_condition_code): Change type of code
19979 to enum arm_cond_code.
19980 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19981 (IWMMXT_BUILTIN2): Likewise.
19982 (neon_builtin_type_bits): Don't define typedef.
19983 (neon_builtin_datum): Change type of bits field to int.
19984 (arm_expand_neon_args): Add cast to enum type.
19985 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19986 TLS_MODEL_NONE.
19987 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19988 casts to enum type.
19989 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19990 MIPS_FP_COND_f.
19991 * config/mips/mips.md (jal_macro): Return enum constant.
19992 (single_insn): Likewise.
19993 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19994 CODE_FOR_nothing.
19995 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19996 casts to enum type.
19997 * config/s390/s390.c (s390_tune_flags): Change type to int.
19998 (s390_arch_flags): Likewise.
19999 (s390_handle_arch_option): Change flags field of struct pta to int.
20000 * config/s390/s390.h (s390_tune_flags): Update declaration.
20001 (s390_arch_flags): Likewise.
20002 * config/sh/sh.c (prepare_move_operands): Compare
20003 tls_symbolic_operand result with enum constant.
20004 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
20005 (sh_expand_prologue): Add cast to enum type.
20006 (sh_expand_epilogue): Likewise.
20007 (tls_symbolic_operand): Change return type to enum tls_model.
20008 (fpscr_set_from_mem): Add cast to enum type.
20009 (legitimize_pic_address): Compare tls_symbolic_operand result with
20010 enum constant.
20011 (sh_target_reg_class): Change return type to enum reg_class.
20012 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
20013 PROCESSOR_xxx.
20014 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
20015 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
20016 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
20017 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
20018 (delayed_branch, tls_call_delay): Likewise.
20019 (eligible_for_sibcall_delay): Likewise.
20020 (eligible_for_return_delay): Likewise.
20021 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
20022 (spu_expand_builtin_1): Likewise.
20023
20024 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
20025 for all types of conversions.
20026 (output_init_element): Issue -Wc++-compat warning if needed when
20027 initializing a bitfield with enum type.
20028 * c-parser.c (c_parser_expression): Set original_type to
20029 original_type of right hand operand of comma operator.
20030
20031 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20032
20033 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
20034 grammar nits.
20035 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
20036 * doc/cpp.texi (Standard Predefined Macros)
20037 (Implementation-defined behavior): Likewise.
20038 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
20039 * doc/gimple.texi (GIMPLE Exception Handling)
20040 (@code{GIMPLE_ASSIGN}): Likewise.
20041 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
20042 * doc/invoke.texi (Warning Options, Optimize Options)
20043 (AVR Options, Darwin Options): Likewise.
20044 (Optimize Options): Reformulate -fwhole-program description.
20045 * doc/loop.texi (Lambda): Likewise.
20046 * doc/md.texi (Output Template, Define Constraints)
20047 (Standard Names, Insn Splitting): Likewise.
20048 * doc/options.texi (Option properties): Likewise.
20049 * doc/passes.texi (Tree-SSA passes): Likewise.
20050 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
20051 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
20052 (File Names and DBX): Likewise.
20053 * doc/trouble.texi (Incompatibilities): Likewise.
20054
20055 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
20056
20057 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
20058 instruction is correct.
20059
20060 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
20061
20062 Allow non-constant arguments to conversion intrinsics.
20063 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
20064 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
20065 * spu.c (print_operand): Handle 'v' and 'w'.
20066 (exp2_immediate_p, spu_gen_exp2): Define.
20067 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
20068 spu_convtf_1): Update parameter descriptions.
20069 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
20070 * constraints.md ('v', 'w'): New.
20071 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
20072 Remove.
20073 (i2f, I2F): New define_mode_attr.
20074 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
20075 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
20076 fixuns_truncv4sfv4si2): Update to use mode attribute.
20077 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
20078 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
20079 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
20080 patterns for combine.
20081
20082 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
20083
20084 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
20085 (cprop, hoist, pre, store_motion): New debug counters.
20086 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
20087 is not an RTL pass anymore.
20088 (pass_profiling): Remove extern decl for pass removed in 2005.
20089 (pass_gcse, pass_jump_bypass): Remove.
20090 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
20091 to 0 for clean state.
20092 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
20093 * cse.c (gate_handle_cse_after_global_opts,
20094 rest_of_handle_cse_after_global_opts): New functions.
20095 (pass_cse_after_global_opts): New pass, does local CSE.
20096 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
20097 (TV_CPROP): New timevar.
20098 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
20099 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
20100 (gcse_main, recompute_all_luids): Remove.
20101 (compute_hash_table_work): Call max_reg_num instead of reading
20102 max_gcse_regno.
20103 (cprop_jump): Don't set run_jump_opt_after_gcse.
20104 (constprop_register): Always allow to alter jumps.
20105 (cprop_insn): Likewise.
20106 (do_local_cprop): Likewise.
20107 (local_cprop_pass): Likewise. Return non-zero if something changed.
20108 (cprop): Remove function, fold interesting bits into one_cprop_pass.
20109 (find_implicit_sets): Add note about missed optimization opportunity.
20110 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
20111 pass_rtl_cprop execute function.
20112 Don't bother tracking the pass number, each pass gets its own dumpfile
20113 now anyway.
20114 Always allow to alter jumpsand bypass jumps.
20115 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
20116 will just find no suitable set.
20117 (pre_edge_insert): Fix dumping, this function is for PRE only.
20118 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20119 pass_rtl_pre execute function.
20120 (hoist_code): Return non-zero if something changed. Keep track of
20121 substitutions and insertions for statistics gathering similar to PRE.
20122 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20123 called from the pass_rtl_hoist execute function. Show pass statistics.
20124 (compute_store_table): Use max_reg_num directly instead of using the
20125 formerly global max_gcse_regno.
20126 (build_store_vectors): Likewise.
20127 (replace_store_insn): Fix dumping.
20128 (store_motion): Rename to ...
20129 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
20130 pass, called from the pass_rtl_store_motion execute function. Keep
20131 track of substitutions and insertions for statistics gathering similar
20132 to PRE.
20133 (bypass_jumps): Remove, fold interesting bits into ...
20134 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
20135 from the pass_rtl_cprop execute function.
20136 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20137 pass_jump_bypass): Remove.
20138 (gate_handle_gcse, rest_of_handle_gcse): Remove.
20139 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20140 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20141 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20142 (gate_rtl_store_motion, execute_rtl_store_motion,
20143 pass_rtl_store_motion): New.
20144 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20145 make it clear that -fcse-skip-blocks is a no-op for backward compat.
20146 * passes.c (init_optimization_passes): Remove pass_gcse and
20147 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
20148 and cse_after_global_opts in place of pass_gcse. Schedule cprop
20149 instead of pass_jump_bypass.
20150
20151 2009-04-27 Richard Guenther <rguenther@suse.de>
20152
20153 PR middle-end/39928
20154 * gimplify.c (gimplify_expr): If we are required to create
20155 a temporary make sure it ends up as register.
20156
20157 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
20158
20159 PR target/39903
20160 * config/i386/i386.c (construct_container): Don't call
20161 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20162 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20163
20164 2009-04-27 Michael Matz <matz@suse.de>
20165
20166 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20167 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20168 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
20169 (dump_replaceable_exprs): Take a bitmap.
20170 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20171 array.
20172 (expand_gimple_basic_block): Likewise.
20173 * tree-ssa-ter.c (struct temp_expr_table_d): Make
20174 replaceable_expressions member a bitmap.
20175 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20176 (mark_replaceable): Likewise.
20177 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20178 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20179
20180 2009-04-27 Richard Guenther <rguenther@suse.de>
20181
20182 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20183 (verify_stmts): Dispatch to gimple/type verification code.
20184 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20185 issue with call argument types.
20186
20187 2009-04-27 Michael Matz <matz@suse.de>
20188
20189 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20190 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20191 to above.
20192
20193 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20194 Eric Botcazou <ebotcazou@adacore.com>
20195
20196 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20197 a label's basic block.
20198 (mark_target_live_regs): Tidy and rework obsolete comments.
20199 Change back DF problem to LIVE. If a label starts a basic block,
20200 assume that all registers that used to be live then still are.
20201 (init_resource_info): If a label starts a basic block, set its
20202 BLOCK_FOR_INSN accordingly.
20203 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20204
20205 2009-04-27 Richard Guenther <rguenther@suse.de>
20206
20207 * tree-flow-inline.h (function_ann): Remove.
20208 (get_function_ann): Likewise.
20209 * tree-dfa.c (create_function_ann): Remove.
20210 * tree-flow.h (struct static_var_ann_d): Remove.
20211 (struct function_ann_d): Likewise.
20212 (union tree_ann_d): Remove fdecl member.
20213 (function_ann_t): Remove.
20214 (function_ann, get_function_ann, create_function_ann): Remove
20215 declarations.
20216
20217 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
20218
20219 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20220
20221 2009-04-27 Jan Hubicka <jh@suse.cz>
20222
20223 * ipa-pure-const.c (struct funct_state_d): New fields
20224 state_previously_known, looping_previously_known; remove
20225 state_set_in_source.
20226 (analyze_function): Use new fields.
20227 (propagate): Avoid assumption that state_set_in_source imply
20228 nonlooping.
20229
20230 * tree-ssa-loop-niter.c (finite_loop_p): New function.
20231 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20232 * cfgloop.h (finite_loop_p): Declare.
20233
20234 2009-04-26 Michael Matz <matz@suse.de>
20235
20236 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20237
20238 2009-04-26 Michael Matz <matz@suse.de>
20239
20240 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20241 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20242 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20243 pass_mark_used_blocks): Remove.
20244 * tree-optimize.c (pass_free_datastructures,
20245 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20246 * passes.c (init_optimization_passes): Don't call
20247 pass_mark_used_blocks, remove dead code.
20248
20249 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
20250
20251 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20252 * tree-ssa-live.h (register_ssa_partition): Likewise.
20253
20254 2009-04-26 Michael Matz <matz@suse.de>
20255
20256 Expand from SSA.
20257 * builtins.c (fold_builtin_next_arg): Handle SSA names.
20258 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20259 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20260 SSA names.
20261 (compare_pairs): Swap cost comparison.
20262 (coalesce_ssa_name): Don't use change_partition_var.
20263 * tree-nrv.c (struct nrv_data): Add modified member.
20264 (finalize_nrv_r): Set it.
20265 (tree_nrv): Use it to update statements.
20266 (pass_nrv): Require PROP_ssa.
20267 * tree-mudflap.c (mf_decl_cache_locals,
20268 mf_build_check_statement_for): Use make_rename_temp.
20269 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20270 * alias.c (find_base_decl): Handle SSA names.
20271 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20272 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20273 * rtl.h (set_reg_attrs_for_parm): Declare.
20274 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20275 to "optimized", remove unused locals at finish.
20276 (execute_free_datastructures): Make global, call
20277 delete_tree_cfg_annotations.
20278 (execute_free_cfg_annotations): Don't call
20279 delete_tree_cfg_annotations.
20280
20281 * ssaexpand.h: New file.
20282 * expr.c (toplevel): Include ssaexpand.h.
20283 (expand_assignment): Handle SSA names the same as register variables.
20284 (expand_expr_real_1): Expand SSA names.
20285 * cfgexpand.c (toplevel): Include ssaexpand.h.
20286 (SA): New global variable.
20287 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20288 (SSAVAR): New macro.
20289 (set_rtl): New helper function.
20290 (add_stack_var): Deal with SSA names, use set_rtl.
20291 (expand_one_stack_var_at): Likewise.
20292 (expand_one_stack_var): Deal with SSA names.
20293 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20294 before unique numbers.
20295 (expand_stack_vars): Use set_rtl.
20296 (expand_one_var): Accept SSA names, add asserts for them, feed them
20297 to above subroutines.
20298 (expand_used_vars): Expand all partitions (without default defs),
20299 then only the local decls (ignoring those expanded already).
20300 (expand_gimple_cond): Remove edges when jumpif() expands an
20301 unconditional jump.
20302 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20303 or remove abnormal edges. Ignore insns setting the LHS of a TERed
20304 SSA name.
20305 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20306 members of SA; deal with PARM_DECL partitions here; expand
20307 all PHI nodes, free tree datastructures and SA. Commit instructions
20308 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20309 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20310 info and statements at start, collect garbage at finish.
20311 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20312 (VAR_ANN_PARTITION) Remove.
20313 (change_partition_var): Don't declare.
20314 (partition_to_var): Always return SSA names.
20315 (var_to_partition): Only accept SSA names.
20316 (register_ssa_partition): Only check argument.
20317 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20318 member.
20319 (delete_var_map): Don't free it.
20320 (var_union): Only accept SSA names, simplify.
20321 (partition_view_init): Mark only useful SSA names as used.
20322 (partition_view_fini): Only deal with SSA names.
20323 (change_partition_var): Remove.
20324 (dump_var_map): Use ssa_name instead of partition_to_var member.
20325 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20326 basic blocks.
20327 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20328 (struct _elim_graph): New member const_dests; nodes member vector of
20329 ints.
20330 (set_location_for_edge): New static helper.
20331 (create_temp): Remove.
20332 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20333 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20334 (new_elim_graph): Allocate const_dests member.
20335 (clean_elim_graph): Truncate const_dests member.
20336 (delete_elim_graph): Free const_dests member.
20337 (elim_graph_size): Adapt to new type of nodes member.
20338 (elim_graph_add_node): Likewise.
20339 (eliminate_name): Likewise.
20340 (eliminate_build): Don't take basic block argument, deal only with
20341 partition numbers, not variables.
20342 (get_temp_reg): New static helper.
20343 (elim_create): Use it, deal with RTL temporaries instead of trees.
20344 (eliminate_phi): Adjust all calls to new signature.
20345 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20346 (rewrite_trees): Only do checking.
20347 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20348 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20349 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20350 contains_tree_r, MAX_STMTS_IN_LATCH,
20351 process_single_block_loop_latch, analyze_edges_for_bb,
20352 perform_edge_inserts): Remove.
20353 (expand_phi_nodes): New global function.
20354 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20355 functions, initialize new parameter, remember partitions having a
20356 default def.
20357 (finish_out_of_ssa): New global function.
20358 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20359 don't reset in_ssa_p here, don't disable TER when mudflap.
20360 (pass_del_ssa): Remove.
20361 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20362 partition members.
20363 (execute_free_datastructures): Declare.
20364 * Makefile.in (SSAEXPAND_H): New variable.
20365 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20366 * basic-block.h (commit_one_edge_insertion): Declare.
20367 * passes.c (init_optimization_passes): Move pass_nrv and
20368 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20369 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20370 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20371 (redirect_branch_edge): Deal with super block when expanding, split
20372 out jump patching itself into ...
20373 (patch_jump_insn): ... here, new static helper.
20374
20375 2009-04-26 Michael Matz <matz@suse.de>
20376
20377 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20378 beyond num_ssa_names.
20379 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20380 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20381
20382 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20383
20384 PR inline-asm/39543
20385 * fwprop.c (forward_propagate_asm): New function.
20386 (forward_propagate_and_simplify): Propagate also into __asm, if it
20387 doesn't increase the number of referenced registers.
20388
20389 PR c/39889
20390 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20391
20392 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20393
20394 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20395 note_nonlocal_vla_type for nonlocal VLAs.
20396 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20397 contains_remapped_vars, remap_vla_decls): New functions.
20398 (convert_nonlocal_reference_stmt): If not optimizing, call
20399 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20400 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20401 if it wasn't found in var_map.
20402 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20403 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20404 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20405 declare_vars.
20406 * gimplify.c (nonlocal_vlas): New variable.
20407 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20408 referenced VLAs.
20409 (gimplify_body): Create and destroy nonlocal_vlas.
20410
20411 * dwarf2out.c (loc_descr_plus_const): New function.
20412 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20413 mem_loc_descriptor, loc_descriptor_from_tree_1,
20414 descr_info_loc, gen_variable_die): Use it.
20415
20416 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20417 !TREE_STATIC VAR_DECLs.
20418 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20419 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20420 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20421 DECL_BY_REFERENCE is valid.
20422 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20423 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20424 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20425 Copy DECL_BY_REFERENCE.
20426 (struct nesting_copy_body_data): New type.
20427 (nesting_copy_decl): New function.
20428 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20429 if they have variable length.
20430
20431 2009-04-26 Michael Matz <matz@suse.de>
20432
20433 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20434 mark new temporaries for renaming.
20435
20436 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20437
20438 PR c/39581
20439 * c-decl.c (global_bindings_p): Return negative value.
20440 (c_variable_size): New. Based on variable_size from
20441 stor-layout.c.
20442 (grokdeclarator): Call c_variable_size not variable_size.
20443
20444 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20445
20446 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20447
20448 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20449
20450 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20451 Redefine it to just use mingw/include.
20452 (ASM_SPEC): Rules for -m32 and -m64.
20453 (LINK_SPEC): Use Likewise.
20454 (SPEC_32): New define.
20455 (SPEC_64): Likewise.
20456 (SUB_LINK_SPEC): Likewise.
20457 (MULTILIB_DEFAULTS): New define.
20458 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20459 Add multilib options.
20460 (MULTILIB_DIRNAMES): Likewise.
20461 (MULTILIB_OSDIRNAMES): Likewise.
20462 (LIBGCC): Likewise.
20463 (INSTALL_LIBGCC): Likewise.
20464
20465 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20466
20467 PR c/39556
20468 * c-tree.h (enum c_inline_static_type): New.
20469 (record_inline_static): Declare.
20470 * c-decl.c (struct c_inline_static, c_inline_statics,
20471 record_inline_static, check_inline_statics): New.
20472 (pop_file_scope): Call check_inline_statics.
20473 (start_decl): Call record_inline_static instead of pedwarning
20474 directly for static in inline function.
20475 * c-typeck.c (build_external_ref): Call record_inline_static
20476 instead of pedwarning directly for static referenced in inline
20477 function.
20478
20479 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20480
20481 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20482 not new but only being rescanned.
20483 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20484 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20485 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20486 record_set_info, compute_set, grealloc): Remove.
20487 (recompute_all_luids): New function.
20488 (gcse_main): Don't compute sets, and don't do related memory
20489 allocations/free-ing. If something changed before the end of the
20490 pass, update LUIDs using recompute_all_luids.
20491 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20492 (free_gcse_mem): Don't free it either.
20493 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20494 Use the df insn LUIDs.
20495 (load_killed_in_block): Likewise.
20496 (compute_hash_table_work): Don't compute reg_set_in_block.
20497 (compute_transp): Use DF_REG_DEF_CHAINs.
20498 (local_cprop_pass): Don't use compute_sets and related functions.
20499 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20500 Use get_max_uid() instead of max_cuid.
20501 (insert_insn_end_basic_block, pre_insert_copy_insn,
20502 update_ld_motion_stores): Don't try to
20503 keep reg_set tables up to date.
20504 (pre_insert_copies): Use df insn LUIDs.
20505 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20506 (reg_set_info): Don't use extra bitmap argument.
20507 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20508 information to compute regs_set_in_block.
20509 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20510 (bypass_jumps): Don't use compute_sets and friends.
20511
20512 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20513
20514 PR testsuite/39710
20515 * opts.c (undocumented_msg): Do not leave blank even with
20516 ENABLE_CHECKING.
20517
20518 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20519
20520 * c-decl.c (build_enumerator): Allow values folding to integer
20521 constants but not integer constant expressions with a pedwarn if
20522 pedantic.
20523
20524 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20525
20526 PR c/39582
20527 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20528 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20529 type is an integer constant.
20530
20531 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20532
20533 PR target/39897
20534 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20535 HImode operands.
20536
20537 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20538
20539 PR c/39564
20540 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20541 with variably modified return type and no storage class
20542 specifiers, except for the case of nested functions. Distinguish
20543 extern declarations of functions with variably modified return
20544 types from those of objects with variably modified types.
20545
20546 2009-04-25 Jan Hubicka <jh@suse.cz>
20547
20548 * tree.c (list_equal_p): New function.
20549 * tree.h (list_equal_p): Declare.
20550 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20551 basic_block_def, basic_block, const_basic_block): New.
20552 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20553 (redirect_eh_edge): New function.
20554 (make_eh_edge_update_phi): EH edges are not abnormal.
20555 * except.c: Include tree-flow.h.
20556 (list_match): New function.
20557 (eh_region_replaceable_by_p): New function.
20558 (replace_region): New function.
20559 (hash_type_list): New function.
20560 (hash_eh_region): New function.
20561 (eh_regions_equal_p): New function.
20562 (merge_peers): New function.
20563 (remove_unreachable_regions): Verify EH tree when checking;
20564 merge peers.
20565 (copy_eh_region_1): New function.
20566 (copy_eh_region): New function.
20567 (push_reachable_handler): New function.
20568 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20569 regions without label but with live RESX.
20570 * except.h (redirect_eh_edge_to_label): New.
20571 * tree-flow.h (redirect_eh_edge): New.
20572 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20573 basic_block_def, basic_block, const_basic_block): Remove.
20574 * Makefile.in (except.o): Add dependency on tree-flow.h
20575 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20576 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20577 Remove.
20578
20579 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20580
20581 PR bootstrap/39645
20582 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20583 on the destination of memcpy.
20584
20585 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20586
20587 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20588 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20589 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20590
20591 2009-04-25 Jan Hubicka <jh@suse.cz>
20592
20593 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20594 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20595 to be reached by different label than left.
20596 (update_eh_edges): Update comment; remove edge_to_remove if possible
20597 and return true if suceeded.
20598 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20599 (cleanup_eh): Compute sharing map.
20600 * except.c (remove_eh_handler_and_replace): Add argument if we should
20601 update regions.
20602 (remove_unreachable_regions): Update for label sharing.
20603 (label_to_region_map): Likewise.
20604 (get_next_region_sharing_label): New function.
20605 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20606 prev_try pointers.
20607 (remove_eh_handler): Update.
20608 (remove_eh_region_and_replace_by_outer_of): New function.
20609 * except.h (struct eh_region): Add next_region_sharing_label.
20610 (remove_eh_region_and_replace_by_outer_of,
20611 get_next_region_sharing_label): Declare.
20612 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20613
20614 2009-04-25 Jan Hubicka <jh@suse.cz>
20615
20616 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20617 insert code even if they are not critical.
20618
20619 2009-04-25 Jan Hubicka <jh@suse.cz>
20620
20621 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20622 (gimple_can_remove_branch_p): EH edges won't remove branch by
20623 redirection.
20624 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20625 updating of non-abnormal EH edges.
20626 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20627 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20628 (split_critical_edges): Split also edges where emitting code on them
20629 will lead to splitting later.
20630
20631 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20632 H.J. Lu <hongjiu.lu@intel.com>
20633
20634 PR target/39590
20635 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20636 the configured assembler supports fildq and fistpq mnemonics.
20637 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20638 * configure: Regenerated.
20639 * config.in: Ditto.
20640
20641 * config/i386/i386.c (print_operand): Handle 'Z'.
20642 ['z']: Remove handling of special fild/fist suffixes.
20643 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20644 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20645 suffix of fild insn.
20646 (*floatsi<mode>2_vector_mixed): Ditto.
20647 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20648 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20649 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20650 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20651 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20652
20653 2009-04-25 Ben Elliston <bje@au.ibm.com>
20654
20655 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20656 the source of a set operation.
20657
20658 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20659
20660 * target.h (struct gcc_target): Add case_values_threshold field.
20661 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20662 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20663 * targhooks.c (default_case_values_threshold): New function.
20664 * targhooks.h (default_case_values_threshold): Declare function.
20665 * stmt.c (expand_case): Use case_values_threshold target hook.
20666 * expr.h (case_values_threshold): Remove declartation.
20667 * expr.c (case_values_threshold): Remove function.
20668 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20669
20670 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20671 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20672 (avr_case_values_threshold): Declare as static.
20673 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20674
20675 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20676 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20677 (mn10300_case_values_threshold): New function.
20678
20679 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20680
20681 * ira.c (setup_cover_and_important_classes): Add enum cast.
20682
20683 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20684
20685 * genpreds.c (write_enum_constraint_num): Output definition of
20686 CONSTRAINT_NUM_DEFINED_P macro.
20687 * ira.c (setup_cover_and_important_classes): Use
20688 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20689
20690 2009-04-24 DJ Delorie <dj@redhat.com>
20691
20692 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20693 __SH2A_SINGLE_ONLY__ also.
20694
20695 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20696
20697 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20698 (movdf_internal): Ditto.
20699 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20700 SFmode and DFmode constants.
20701 (ia64_print_operand): Add 'G' format for printing
20702 floating point constants.
20703
20704 2009-04-24 Richard Guenther <rguenther@suse.de>
20705
20706 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20707 from unsigned additions.
20708
20709 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20710
20711 * c-typeck.c (set_init_index): Allow array designators that are
20712 not integer constant expressions with a pedwarn if pedantic.
20713
20714 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20715
20716 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20717 zero if no overlap in nonzero bits between the operands.
20718
20719 2009-04-24 Ian Lance Taylor <iant@google.com>
20720
20721 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20722 (record_dead_and_set_regs): Likewise.
20723 * df.h (struct df_mw_hardreg): Change flags field to int.
20724 (struct df_base_ref): Likewise.
20725 (struct df): Change changeable_flags field to int.
20726 * df-scan.c (df_defs_record): Change clobber_flags to int.
20727 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20728 constants rather than #define macros.
20729 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20730 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20731 (enum dwarf_calling_convention): Likewise.
20732 (enum dwarf_line_number_x_ops): Likewise.
20733 (enum dwarf_call_frame_info): Likewise.
20734 (enum dwarf_source_language): Likewise.
20735 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20736 (add_calling_convention_attribute): Likewise.
20737 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20738 (combine_comparisons): Change compcode to int. Add cast to enum type.
20739 * genrecog.c (maybe_both_true_2): Change c to int.
20740 (write_switch): Likewise. Add cast to enum type.
20741 * gimplify.c (gimplify_omp_for): Handle return values from
20742 gimplify_expr using MIN rather than bitwise or.
20743 (gimplify_expr): Add cast to enum type.
20744 * ipa-prop.c (update_jump_functions_after_inlining): Change
20745 IPA_BOTTOM to IPA_JF_UNKNOWN.
20746 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20747 Add casts to enum type.
20748 (setup_cover_and_important_classes): Change cl to int. Add casts
20749 to enum type.
20750 (setup_class_translate): Change cl and mode to int.
20751 (ira_init_once): Change mode to int.
20752 (free_register_move_costs): Likewise.
20753 (setup_prohibited_mode_move_regs): Add casts to enum type.
20754 * langhooks.c (add_builtin_function_common): Rework assertion that
20755 value fits bitfield.
20756 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20757 * omega.c (omega_do_elimination): Avoid math on enum types.
20758 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20759 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20760 int local to handle integral_argment value.
20761 * regmove.c (try_auto_increment): Change PUT_MODE to
20762 PUT_REG_NOTE_KIND.
20763 * reload.c (push_secondary_reload): Add casts to enum type.
20764 (secondary_reload_class, find_valid_class): Likewise.
20765 * reload1.c (emit_input_reload_insns): Likewise.
20766 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20767 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20768 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20769 constant.
20770 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20771 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20772 enum type.
20773 (expand_complex_libcall): Add casts to enum type.
20774 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20775 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20776 with ERROR_MARK, not NUM_TREE_CODES.
20777 (vect_create_epilog_for_reduction): Likewise.
20778 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20779 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20780 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20781 enum machine_mode.
20782 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20783 vect_unused_in_loop. Change 0 to loop_vect.
20784 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20785 * var-tracking.c (get_init_value): Change return type to enum
20786 var_init_status.
20787 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20788 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20789 arm_fp_model.
20790 (arm_override_options): Add casts to enum type.
20791 (arm_emit_tls_decoration): Likewise.
20792 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20793 to enum type.
20794 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20795 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20796 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20797 enum type.
20798 * config/s390/s390.c (code_for_builtin_64): Change to array of
20799 enum insn_code.
20800 (code_for_builtin_31): Likewise.
20801 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20802 const *.
20803 * config/sparc/sparc.c (sparc_override_options): Change value
20804 field in struct code_model to enum cmodel. In initializer change
20805 0 to NULL and add cast to enum type.
20806
20807 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20808 Change all callers. Issue a -Wc++-compat warning using
20809 lhs_origtype if necessary.
20810 (convert_for_assignment): Issue -Wc++-compat warnings about
20811 invalid conversions to enum type on assignment.
20812 * c-common.h (build_modify_expr): Update declaration.
20813
20814 2009-04-24 Nick Clifton <nickc@redhat.com>
20815
20816 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20817 (function_arg_advance): Likewise.
20818 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20819 5th alternative.
20820
20821 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20822
20823 * config/s390/constraints.md ('I', 'J'): Fix condition.
20824
20825 2009-04-24 Diego Novillo <dnovillo@google.com>
20826
20827 * gengtype-parse.c (parse_error): Add newline after message.
20828
20829 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20830
20831 * config/i386/sse.md (avxmodesuffixs): Removed.
20832 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20833 (*avx_pinsr<ssevecsize>): This.
20834
20835 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20836
20837 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20838 follow chains of regs with a single definition, and allow expressions
20839 that are function_invariant_p.
20840 (simple_rhs_p): Allow expressions that are function_invariant_p.
20841
20842 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20843
20844 PR middle-end/39867
20845 * fold-const.c (fold_cond_expr_with_comparison): When folding
20846 > and >= to MAX, make sure the MAX uses the same type as the
20847 comparison's operands.
20848
20849 2009-04-24 Nick Clifton <nickc@redhat.com>
20850
20851 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20852 addressing for DImode accesses.
20853 (frv_print_operand_address): Handle PLUS case.
20854 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20855
20856 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20857
20858 PR rtl-optimization/39794
20859 * alias.c (canon_true_dependence): Add x_addr argument.
20860 * rtl.h (canon_true_dependence): Adjust prototype.
20861 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20862 * cselib.c (cselib_invalidate_mem): Likewise.
20863 * gcse.c (compute_transp): Likewise.
20864 * dse.c (scan_reads_nospill): Likewise.
20865 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20866 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20867 canon_base_addr of the group, plus optional offset.
20868 (struct group_info): Rename canon_base_mem to
20869 canon_base_addr.
20870 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20871 canon_rtx of base_mem.
20872
20873 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20874
20875 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20876 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20877
20878 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20879
20880 * config/spu/spu-builtins.h: Delete file.
20881
20882 * config/spu/spu.h (enum spu_builtin_type): Move here from
20883 spu-builtins.h.
20884 (struct spu_builtin_description): Likewise. Add GTY marker.
20885 Do not use enum spu_function_code or enum insn_code.
20886 (spu_builtins): Add extern declaration.
20887
20888 * config/spu/spu.c: Do not include "spu-builtins.h".
20889 (enum spu_function_code, enum spu_builtin_type_index,
20890 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20891 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20892 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20893 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20894 (spu_builtin_types): Make static. Add GTY marker.
20895 (spu_builtins): Add extern declaration with GTY marker.
20896 Include "gt-spu.h".
20897
20898 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20899 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20900 Check programmatically whether all parameters are scalar.
20901
20902 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20903
20904 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20905
20906 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20907 assignment from the constructor either if the target is volatile.
20908
20909 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20910
20911 * config/arm/arm.md (insv): Do not share operands[0].
20912
20913 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20914
20915 * config/vxlib-tls.c (active_tls_threads): Delete.
20916 (delete_hook_installed): New.
20917 (tls_delete_hook): Don't delete the delete hook.
20918 (tls_destructor): Delete it here.
20919 (__gthread_set_specific): Adjust installing the delete hook.
20920 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20921 __gthread_leave_tsd_dtor_context.
20922
20923 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20924
20925 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20926
20927 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20928
20929 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20930 enum type.
20931 (alpha_rtx_costs): Ditto.
20932 (emit_unlikely_jump): Use add_reg_note.
20933 (emit_frame_store_1): Ditto.
20934 (alpha_expand_prologue): Ditto.
20935 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20936 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20937
20938 2009-04-23 Nick Clifton <nickc@redhat.com>
20939
20940 * config/v850/v850.md (epilogue): Remove suppressed code.
20941 (return): Rename to return_simple and remove test of frame size.
20942 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20943 to gen_return_simple.
20944
20945 2009-04-22 Jing Yu <jingyu@google.com>
20946
20947 PR testsuite/39781
20948 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20949
20950 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20951
20952 PR C/31499
20953 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20954 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20955 value is a VECTOR_CST, the element type is the element type of the
20956 vector.
20957
20958 2009-04-22 DJ Delorie <dj@redhat.com>
20959
20960 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20961
20962 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20963
20964 * alias.c (find_base_term): Move around LO_SUM case, so that
20965 CONST falls through into PLUS/MINUS handling.
20966
20967 PR c/39855
20968 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20969 into 0, use omit_one_operand.
20970
20971 2009-04-23 Ben Elliston <bje@au.ibm.com>
20972
20973 * config/rs6000/linux-unwind.h (get_regs): Remove type
20974 puns. Change the type of `pc' to an array of unsigned ints and
20975 update all users. Constify frame24.
20976
20977 2009-04-22 DJ Delorie <dj@redhat.com>
20978
20979 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20980 declarations before code.
20981 (current_function_special_page_vector): Likewise.
20982 (m32c_expand_insv): Silence a warning.
20983
20984 2009-04-21 Taras Glek <tglek@mozilla.com>
20985
20986 * alias.c: Update GTY annotations to new syntax.
20987 * basic-block.h: Likewise.
20988 * bitmap.h: Likewise.
20989 * c-common.h: Likewise.
20990 * c-decl.c: Likewise.
20991 * c-parser.c: Likewise.
20992 * c-pragma.c: Likewise.
20993 * c-tree.h: Likewise.
20994 * cfgloop.h: Likewise.
20995 * cgraph.h: Likewise.
20996 * config/alpha/alpha.c: Likewise.
20997 * config/arm/arm.h: Likewise.
20998 * config/avr/avr.h: Likewise.
20999 * config/bfin/bfin.c: Likewise.
21000 * config/cris/cris.c: Likewise.
21001 * config/darwin.c: Likewise.
21002 * config/frv/frv.c: Likewise.
21003 * config/i386/i386.c: Likewise.
21004 * config/i386/i386.h: Likewise.
21005 * config/i386/winnt.c: Likewise.
21006 * config/ia64/ia64.h: Likewise.
21007 * config/iq2000/iq2000.c: Likewise.
21008 * config/mips/mips.c: Likewise.
21009 * config/mmix/mmix.h: Likewise.
21010 * config/pa/pa.c: Likewise.
21011 * config/pa/pa.h: Likewise.
21012 * config/rs6000/rs6000.c: Likewise.
21013 * config/s390/s390.c: Likewise.
21014 * config/sparc/sparc.c: Likewise.
21015 * config/xtensa/xtensa.c: Likewise.
21016 * cselib.h: Likewise.
21017 * dbxout.c: Likewise.
21018 * dwarf2out.c: Likewise.
21019 * except.c: Likewise.
21020 * except.h: Likewise.
21021 * fixed-value.h: Likewise.
21022 * function.c: Likewise.
21023 * function.h: Likewise.
21024 * gimple.h: Likewise.
21025 * integrate.c: Likewise.
21026 * optabs.c: Likewise.
21027 * output.h: Likewise.
21028 * real.h: Likewise.
21029 * rtl.h: Likewise.
21030 * stringpool.c: Likewise.
21031 * tree-data-ref.c: Likewise.
21032 * tree-flow.h: Likewise.
21033 * tree-scalar-evolution.c: Likewise.
21034 * tree-ssa-address.c: Likewise.
21035 * tree-ssa-alias.h: Likewise.
21036 * tree-ssa-operands.h: Likewise.
21037 * tree.c: Likewise.
21038 * tree.h: Likewise.
21039 * varasm.c: Likewise.
21040 * varray.h: Likewise.
21041 * vec.h: Likewise.
21042 * coretypes.h: Do not define GTY macro if it is already defined.
21043 * doc/gty.texi: Update GTY documentation to new syntax.
21044 * gengtype-lex.l: Enforce attribute-like syntax for GTY
21045 annotations on structs.
21046 * gengtype-parse.c: Likewise.
21047
21048 2009-04-22 Mark Heffernan <meheff@google.com>
21049
21050 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
21051
21052 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
21053
21054 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
21055 where appropriate.
21056
21057 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
21058
21059 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
21060 the same as a PLUS without a shift. Increase the cost of a
21061 CONST_INT in MULT.
21062
21063 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21064
21065 * Makefile.in: Update dependencies.
21066 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
21067 * errors.h: Remove bogus comment about compatibility.
21068 (warning): Update declaration.
21069 * genautomata.c: Update all calls to warning.
21070 * gimple.c: Do not include errors.h. Include toplev.h.
21071 * tree-ssa-structalias.c: Do not include errors.h.
21072 * omega.c: Likewise.
21073 * tree-ssa-reassoc.c: Likewise.
21074 * config/spu/spu-c.c: Likewise.
21075 * config/spu/t-spu-elf: Update dependencies.
21076
21077 2009-04-22 Richard Guenther <rguenther@suse.de>
21078
21079 PR tree-optimization/39824
21080 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
21081 make sure the types are compatible.
21082
21083 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21084
21085 PR c++/14875
21086 * c-common.c (c_parse_error): Take a token_flags parameter.
21087 Use token_type for the token type instead.
21088 Pass token_flags to cpp_type2name.
21089 * c-common.h (c_parse_error): Update declaration.
21090 * c-parser.c (c_parser_error): Pass 0 as token flags.
21091
21092 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
21093
21094 PR rtl-optimization/39580
21095 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
21096
21097 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21098
21099 * function.c (expand_function_end): Do not emit a jump to the "naked"
21100 return label for fall-through returns.
21101 * except.c (sjlj_emit_function_exit): Always place the call to the
21102 unregister function at the location installed by expand_function_end.
21103
21104 2009-04-22 Richard Guenther <rguenther@suse.de>
21105
21106 PR tree-optimization/39845
21107 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
21108 (gen_inbound_check): Likewise.
21109
21110 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
21111
21112 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
21113 padding for PPC.
21114 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
21115 * config/vxlib.c (__gthread_once): Add race guard for PPC.
21116
21117 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21118
21119 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21120 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21121 shift counts to avoid out-of-bounds array accesses.
21122
21123 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21124
21125 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21126 (Pmode): Move above.
21127
21128 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
21129
21130 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21131 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21132 GET_CODE macro. Use IN_RANGE macro where appropriate.
21133 * config/alpha/alpha.h: Ditto.
21134 * config/alpha/alpha.md: Ditto.
21135 * config/alpha/constraints.md: Ditto.
21136 * config/alpha/predicates.md: Ditto.
21137
21138 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21139
21140 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21141 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21142 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21143 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21144 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21145 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21146 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21147 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21148 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21149 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21150 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21151 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21152 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21153 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21154 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21155 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21156 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21157 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21158 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21159 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21160 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21161 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21162 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21163 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21164 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21165 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21166 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21167
21168 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21169
21170 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21171 references from comments.
21172 * cfgbuild.c (count_basic_blocks): Delete.
21173 (find_basic_blocks_1): Delete.
21174 (find_basic_blocks): Delete.
21175 * except.c (finish_eh_generation): Make static. Move comment from
21176 except.h here. Remove find_basic_blocks references from comments.
21177 * except.h (finish_eh_generation): Delete.
21178 * basic-block.h (find_basic_blocks): Delete.
21179 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21180
21181 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
21182
21183 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
21184 (sdbout_parms): Likewise.
21185
21186 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
21187
21188 * config/sh/sh.c (prepare_cbranch_operands): Use
21189 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21190 (expand_cbranchdi4): Likewise.
21191 (from_compare): Add cast to enum type.
21192 (expand_cbranchsi4): Use add_reg_note.
21193 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21194 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21195 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21196 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21197 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21198 instead of CODE_FOR_nothing.
21199 (cbranchdi4): Likewise. Fix the order of arguments for
21200 gen_rtx_fmt_ee.
21201 (push_fpscr): Use add_reg_note.
21202 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21203 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21204
21205 2009-04-21 Joseph Myers <joseph@codesourcery.com>
21206
21207 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21208 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21209 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21210 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21211 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21212 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21213 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21214 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21215 config/alpha/x-vms, config/arc/t-arc,
21216 config/arm/README-interworking, config/arm/arm-c.c,
21217 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21218 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21219 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21220 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21221 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21222 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21223 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21224 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21225 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21226 config/cris/t-elfmulti, config/crx/t-crx,
21227 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21228 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21229 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21230 config/h8300/t-h8300, config/i386/athlon.md,
21231 config/i386/darwin-libgcc.10.4.ver,
21232 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21233 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21234 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21235 config/i386/t-linux64, config/i386/t-nwld,
21236 config/i386/t-rtems-i386, config/i386/t-sol2-10,
21237 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21238 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21239 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21240 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21241 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21242 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21243 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21244 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21245 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21246 config/m68k/t-uclinux, config/mcore/t-mcore,
21247 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21248 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21249 config/mips/crtn.asm, config/mips/irix-crti.asm,
21250 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21251 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21252 config/mips/mips-fixed.md, config/mips/sb1.md,
21253 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21254 config/mips/t-iris6, config/mips/t-isa3264,
21255 config/mips/t-libgcc-mips16, config/mips/t-linux64,
21256 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21257 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21258 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21259 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21260 config/mn10300/t-linux, config/mn10300/t-mn10300,
21261 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21262 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21263 config/picochip/libgccExtras/clzsi2.asm,
21264 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21265 config/rs6000/darwin-libgcc.10.4.ver,
21266 config/rs6000/darwin-libgcc.10.5.ver,
21267 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21268 config/rs6000/t-aix43, config/rs6000/t-aix52,
21269 config/rs6000/t-darwin, config/rs6000/t-fprules,
21270 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21271 config/rs6000/t-lynx, config/rs6000/t-netbsd,
21272 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21273 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21274 config/rs6000/t-rtems, config/rs6000/t-spe,
21275 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21276 config/score/t-score-elf, config/sh/divcost-analysis,
21277 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21278 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21279 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21280 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21281 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21282 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21283 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21284 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21285 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21286 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21287 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21288 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21289 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21290 limitx.h, version.c, xcoff.h: Add copyright and license notices.
21291 * config/h8300/genmova.sh: Include copyright and license notices
21292 in generated output.
21293 * config/h8300/mova.md: Regenerate.
21294 * doc/install.texi2html: Include word "Copyright" in copyright
21295 notice and use name "Free Software Foundation, Inc.".
21296 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21297 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21298 ChangeLog-2007, ChangeLog-2008: Correct dates.
21299
21300 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
21301
21302 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21303 NE_EXPR operations as well.
21304 * c-parser.c (c_parser_condition): Do not set location information on
21305 the condition.
21306 (c_parser_conditional_expression): Likewise.
21307 (c_parser_binary_expression): Set location information on operators.
21308 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21309 TRUTH_NOT_EXPR has been folded.
21310 * fold-const.c (fold_truth_not_expr): Copy location information from
21311 the incoming expression to the outgoing one.
21312 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
21313 recursive calls on the LHS of the operator but pass that of the
21314 operator to recursive calls on the RHS of the operator. Set it
21315 on the COND_EXPR.
21316 (shortcut_cond_expr): Set the locus of the operator on the second
21317 COND_EXPR and that of the expression on the first in degenerate cases.
21318 Pass the locus of the expression to calls to shortcut_cond_r.
21319 Set the locus of the 'then' block on the associated jump, if any.
21320 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
21321 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21322 expression to call to gimplify_boolean_expr.
21323
21324 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
21325
21326 * config.gcc: Add additional configuration for
21327 i686-w64-mingw* and x86_64-w64-mingw* triplet.
21328 * config/i386/mingw-w64.h: New mingw-w64 specific header.
21329 (CPP_SPEC): Redefine for allowing -municode option.
21330 (STARTFILE_SPEC): Likewise.
21331 * config/i386/t-mingw-w64: New.
21332 * config/i386/mingw-w64.opt: New.
21333 (municode): Add new target option.
21334 * doc/invoke.texi (municode): Add documentation for new option.
21335
21336 2009-04-21 Ian Lance Taylor <iant@google.com>
21337
21338 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21339 Correct test for number of arguments.
21340 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21341
21342 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21343
21344 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21345 argument of emit_library_call.
21346
21347 2009-04-21 Richard Guenther <rguenther@suse.de>
21348
21349 PR middle-end/39829
21350 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21351 inside VIEW_CONVERT_EXPRs.
21352
21353 2009-04-21 Martin Jambor <mjambor@suse.cz>
21354
21355 * tree-switch-conversion.c (build_constructors): Split a long line.
21356 (constructor_contains_same_values_p): New function.
21357 (build_one_array): Create assigns of constants if possible, do not
21358 call mark_sym_for_renaming, call update_stmt.
21359 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21360 make_rename_temp. Do not call mark_symbols_for_renaming, call
21361 update_stmt.
21362 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21363 find_new_referenced_vars, call update_stmt.
21364 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21365 instead of calling make_rename_temp. Do not call
21366 find_new_referenced_vars or mark_symbols_for_renaming, call
21367 update_stmt.
21368
21369 2009-04-21 Richard Guenther <rguenther@suse.de>
21370
21371 PR tree-optimization/39827
21372 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21373 (tree_ssa_phiprop): Pass the correct array size.
21374
21375 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21376
21377 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21378
21379 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21380
21381 PR 16202
21382 * c-typeck.c (lvalue_p): Move declaration ...
21383 * c-common.h (lvalue_p): ... to here.
21384 * c-common.c (candidate_equal_p): New.
21385 (add_tlist): Use it.
21386 (merge_tlist): Use it.
21387 (warn_for_collisions_1): Likewise.
21388 (warning_candidate_p): Accept more candidates.
21389 (verify_tree): A warning candidate can be an expression. Use
21390 candidate_equal_p.
21391
21392 2009-04-21 Ben Elliston <bje@au.ibm.com>
21393
21394 PR target/5267
21395 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21396 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21397 options. Remove -mcall-solaris documentation.
21398
21399 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21400
21401 PR c++/13358
21402 * doc/invoke.texi (-Wlong-long): Update description.
21403 * c-lex (interpret_integer): Only warn if there was no previous
21404 overflow and -Wlong-long is enabled.
21405 * c-decl.c (declspecs_add_type): Drop redundant flags.
21406 * c.opt (Wlong-long): Init to -1.
21407 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21408 and front-end warn_long_long. Wlong-long only depends on other
21409 flags if it is uninitialized.
21410 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21411 the same for CPP and FE.
21412 (restore_extension_diagnostics): Likewise.
21413
21414 2009-04-20 Ian Lance Taylor <iant@google.com>
21415
21416 Fix enum conversions which are invalid in C++:
21417 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21418 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21419 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21420 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21421 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21422 (dbxout_parms): Likewise.
21423 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21424 (df_clear_flags): Likewise.
21425 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21426 top_flag parameter to int.
21427 (df_chain_create_bb_process_use): Likewise.
21428 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21429 Remove cast.
21430 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21431 (df_ref_create_structure, df_def_record_1): Likewise.
21432 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21433 (df_notes_rescan): Change 0 to VOIDmode in function call.
21434 (df_get_call_refs, df_insn_refs_collect): Likewise.
21435 (df_bb_regs_collect): Likewise.
21436 (df_entry_block_defs_collect): Likewise.
21437 (df_exit_block_uses_collect): Likewise.
21438 * df.h: Update declarations.
21439 * double-int.c (double_int_divmod): Add cast to enum type.
21440 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21441 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21442 (based_loc_descr): Likewise.
21443 (loc_descriptor_from_tree_1): Change first_op and second_op to
21444 enum dwarf_location_atom. Add cast to enum type.
21445 * expmed.c (init_expmed): Change 0 to SET in function call.
21446 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21447 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21448 (do_store_flag): Likewise.
21449 * fixed-value.h (struct fixed_value): Change mode to enum
21450 machine_mode.
21451 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21452 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21453 function call.
21454 (insert_insn_decl, insert_decl, insert_state): Likewise.
21455 (automata_list_finish): Likewise.
21456 * genrecog.c (process_define_predicate): Add cast to enum type.
21457 * gensupport.c (init_predicate_table): Add cast to enum type.
21458 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21459 function call.
21460 (gimple_build_call_1, gimple_build_label): Likewise.
21461 (gimple_build_goto, gimple_build_asm_1): Likewise.
21462 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21463 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21464 (enum fallback): Rename from enum fallback_t.
21465 (fallback_t): Typedef as int.
21466 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21467 GSI_SAME_STMT in function call.
21468 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21469 enum type.
21470 (setup_reg_class_relations): Likewise.
21471 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21472 (setup_prohibited_class_mode_regs): Add cast to enum type.
21473 (setup_prohibited_mode_move_regs): Likewise.
21474 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21475 (record_address_regs): Change i to enum reg_class.
21476 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21477 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21478 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21479 (GET_MODE_2XWIDER_MODE): Likewise.
21480 (GET_CLASS_NARROWEST_MODE): Likewise.
21481 * omp-low.c (expand_omp_for): Add cast to enum type.
21482 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21483 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21484 * postreload.c (reload_cse_simplify_operands): Change rclass local
21485 to enum reg_class.
21486 * predict.c (combine_predictions_for_insn): Change best_predictor
21487 and predictor to enum br_predictor.
21488 (combine_predictions_for_bb): Likewise.
21489 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21490 use SET_PREDICT_EXPR_OUTCOME.
21491 * real.c (real_arithmetic): Change icode to code in function call.
21492 * reginfo.c (init_move_cost): Add casts to enum type.
21493 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21494 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21495 enum reg_class.
21496 * reload.c (find_valid_class): Add casts to enum type.
21497 (push_reload): Change 0 to NO_REGS in function call.
21498 (find_reloads): Change this_alternative to array of enum
21499 reg_class. Remove some now-unnecessary casts.
21500 (make_memloc): Change 0 to VOIDmode in function call.
21501 * reload1.c (reload): Change 0 to VOIDmode in function call.
21502 (eliminate_regs_1, elimination_effects): Likewise.
21503 (eliminate_regs_in_insn): Likewise.
21504 (emit_input_reload_insns): Add cast to enum type.
21505 (delete_output_reload): Change 0 to VOIDmode in function call.
21506 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21507 to enum type in function call.
21508 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21509 (SET_PREDICT_EXPR_OUTCOME): Define.
21510 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21511 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21512 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21513 (dump_function): Likewise.
21514 * tree-dump.h: Update declarations.
21515 * tree-pass.h: Update declarations.
21516 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21517 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21518 enum type.
21519 (arm_rtx_costs_1): Correct parenthesization.
21520 (arm_rtx_costs): Add casts to enum type.
21521 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21522 (vfp_emit_fstmd): Use add_rg_note.
21523 (emit_multi_reg_push, emit_sfm): Likewise.
21524 (thumb_set_frame_pointer): Likewise.
21525 (arm_expand_prologue): Likewise.
21526 (arm_regno_class): Change return type to enum reg_class.
21527 (thumb1_expand_prologue): Use add_reg_note.
21528 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21529 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21530 in function call.
21531 * config/arm/gentune.sh: Add cast to enum type.
21532 * config/arm/arm-tune.md: Rebuild.
21533 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21534 (ix86_split_fp_branch, predict_jump): Likewise.
21535 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21536 insn_code to enum rtx_code.
21537 (ix86_builtin_vectorized_function): Add cast to enum type.
21538 * config/i386/i386.md (truncdfsf2): Change slot to enum
21539 ix86_stack_slot.
21540 (truncxf<mode>2, isinf<mode>2): Likewise.
21541 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21542 enum type.
21543 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21544 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21545 (insert_bundle_state): Change 1 to INSERT in function call.
21546 (ia64_add_bundle_selector_before): Likewise.
21547 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21548 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21549 (restore_stack_nonlocal): Likewise.
21550 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21551 function call.
21552 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21553 function call.
21554 (mips_rtx_costs): Likewise.
21555 (mips_override_options): Add casts to enum type.
21556 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21557 in function call.
21558 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21559 (store_reg, set_reg_plus_d): Likewise.
21560 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21561 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21562 cast to enum type.
21563 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21564 function call.
21565 (emit_unlikely_jump): Use add_reg_note.
21566 (rs6000_emit_allocate_stack): Likewise.
21567 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21568 (output_toc): Change 1 to INSERT in function call.
21569 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21570 (rs6000_initialize_trampoline): Likewise.
21571 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21572 function call.
21573 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21574 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21575 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21576 (save_gprs): Use add_reg_note.
21577 (s390_emit_prologue): Likewise.
21578 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21579 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21580 (sparc_fold_builtin): Add cast to enum type.
21581 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21582 enum insn_code.
21583 (spu_expand_prologue): Use add_reg_note.
21584 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21585
21586 2009-04-20 Ian Lance Taylor <iant@google.com>
21587
21588 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21589 (c_parser_postfix_expression_after_primary): Get VEC for list of
21590 arguments. Get original types of arguments. Call
21591 build_function_call_vec.
21592 (cached_expr_list_1, cached_expr_list_2): New static variables.
21593 (c_parser_expr_list): Change return type to VEC *. Add
21594 p_orig_types parameter. Change all callers.
21595 (c_parser_release_expr): New static function.
21596 (c_parser_vec_to_tree_list): New static function.
21597 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21598 call build_function_call_vec.
21599 (build_function_call_vec): New function, based on old
21600 build_function_call.
21601 (convert_arguments): Remove nargs and argarray parameters. Change
21602 values to a VEC. Add origtypes parameter.
21603 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21604 (convert_for_assignment): Add origtype parameter. Change all
21605 callers. If warn_cxx_compat, check for conversion to an enum
21606 type when calling a function.
21607 (store_init_value): Add origtype parameter. Change all callers.
21608 (digest_init): Likewise.
21609 (struct init_node): Add origtype field.
21610 (add_pending_init): Add origtype parameter. Change all callers.
21611 (output_init_element): Likewise.
21612 (output_pending_init_elements): Pass origtype from init_node to
21613 output_init_element.
21614 (process_init_element): Pass origtype from c_expr to
21615 output_init_element.
21616 (c_finish_return): Add origtype parameter. Change all callers.
21617 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21618 caller.
21619 (sync_resolve_params): Likewise.
21620 (sync_resolve_return): Change params to first_param. Change caller.
21621 (resolve_overloaded_builtins): Change params to VEC *. Change
21622 callers. Save first parameter around call to build_function_call_vec.
21623 * c-decl.c (finish_decl): Add origtype parameter. Change all
21624 callers. Call build_function_call_vec rather than
21625 build_function_call for cleanup.
21626 * c-tree.h: Update declarations.
21627 * c-common.h: Update declarations.
21628 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21629 params to first_param.
21630 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21631 params parameter from tree to void *.
21632 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21633 Change arglist parameter to have type void *, and to be a pointer
21634 to a VEC.
21635 * config/rs6000/rs6000-protos.h
21636 (altivec_resolve_overloaded_builtin): Update declaration.
21637 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21638 fnargs parameter to have type void *, and to be a pointer to a
21639 VEC. Call build_function_call_vec instead of
21640 build_function_call.
21641 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21642
21643 2009-04-20 Joey Ye <joey.ye@intel.com>
21644 Xuepeng Guo <xuepeng.guo@intel.com>
21645 H.J. Lu <hongjiu.lu@intel.com>
21646
21647 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21648
21649 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21650 (IX86_LEA_PRIORITY): Likewise.
21651 (distance_non_agu_define): New function.
21652 (distance_agu_use): Likewise.
21653 (ix86_lea_for_add_ok): Likewise.
21654 (ix86_dep_by_shift_count): Likewise.
21655
21656 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21657 should split for LEA.
21658
21659 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21660 function.
21661 (ix86_dep_by_shift_count): Likewise.
21662
21663 2009-04-20 Richard Guenther <rguenther@suse.de>
21664
21665 * expr.c (handled_component_p): Move ...
21666 * tree.h (handled_component_p): ... here.
21667 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21668 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21669 and REALPART_EXPR to be in one group.
21670
21671 2009-04-20 Richard Guenther <rguenther@suse.de>
21672
21673 * basic-block.h (get_all_dominated_blocks): Declare.
21674 * dominance.c (get_all_dominated_blocks): New function.
21675 * tree-cfg.c (get_all_dominated_blocks): Remove.
21676 (remove_edge_and_dominated_blocks): Adjust.
21677 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21678 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21679 instead of recursing.
21680
21681 2009-04-20 Doug Kwan <dougkwan@google.com>
21682
21683 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21684 (struct cgraph_node_set_def): New type.
21685 (cgraph_node_set) New type. Also declare vector functions.
21686 (struct cgraph_node_set_element_def): New type.
21687 (cgraph_node_set_element): Ditto.
21688 (cgraph_node_set_iterator): New iterator type.
21689 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21690 cgraph_node_set_remove, dump_cgraph_node_set,
21691 debug_cgraph_node_set): New prototypes.
21692 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21693 cgraph_node_set_size): New inlines.
21694 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21695 including cgraph.h.
21696 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21697 argument to function 'write_summary'.
21698 * ipa.c: Include ggc.h.
21699 (hash_cgraph_node_set_element,
21700 eq_cgraph_node_set_element, cgraph_node_set_new,
21701 cgraph_node_set_add, cgraph_node_set_remove,
21702 cgraph_node_set_find, dump_cgraph_node_set,
21703 debug_cgraph_node_set): New functions.
21704 * Makefile.in (ipa.o): Add dependency on GGC_H.
21705
21706 2009-04-20 Ira Rosen <irar@il.ibm.com>
21707
21708 PR tree-optimization/39675
21709 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21710 check of the return code of vect_schedule_slp. Check that
21711 stmt_vec_info still exists for the statement, before checking its
21712 vectorization type.
21713
21714 2009-04-20 Michael Matz <matz@suse.de>
21715
21716 * Makefile.in (generated_files): Take out $(simple_generated_c).
21717
21718 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21719
21720 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21721 (UINTPTR_TYPE): Likewise.
21722
21723 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21724
21725 PR c/37481
21726 * c-typeck.c (digest_init): Check for initializing an array with a
21727 string literal.
21728
21729 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21730
21731 PR c/19771
21732 * c-semantics.c (pop_stmt_list): Propagate
21733 STATEMENT_LIST_HAS_LABEL to parent statement list.
21734
21735 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21736
21737 * config/mips/mips.h (mips_tune_attr): New macro.
21738 * config/mips/mips.md (cpu): Use it.
21739
21740 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21741
21742 PR c/38243
21743 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21744 declaring a tag.
21745
21746 2009-04-19 Diego Novillo <dnovillo@google.com>
21747
21748 * toplev.c (compile_file): Move call to coverage_finish ...
21749 * cgraphunit.c (ipa_passes): ... here.
21750 Call cgraph_process_new_functions.
21751 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21752 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21753
21754 2009-04-19 Jan Hubicka <jh@suse.cz>
21755
21756 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21757 cfun.
21758 (dump_cgraph_node): Dump can throw external flag.
21759 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21760
21761 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21762
21763 PR c/32061
21764 PR c++/36954
21765 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21766 * common.opt (Wlogical-op): Move from here...
21767 * c.opt (Wlogical-op): ... to here.
21768 * c-typeck.c (parser_build_binary_op): Update call to
21769 warn_logical_operator.
21770 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21771 extra_warnings.
21772 * c-common.c (warn_logical_op): Update.
21773 * c-common.h (warn_logical_op): Update declaration.
21774
21775 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21776
21777 * tree.c (protected_set_expr_location): Fix formatting.
21778
21779 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21780
21781 PR c/27676
21782 * c-typeck.c (readonly_warning): new.
21783 (build_unary_op, build_modify_expr): Use readonly_warning for
21784 storing into something readonly but not const-qualified.
21785
21786 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21787
21788 PR c/22367
21789 * c-typeck.c (build_unary_op): Check for taking address of
21790 expression of type void.
21791
21792 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21793
21794 PR c/35210
21795 * c-typeck.c (build_function_call): Check for calling a function
21796 with qualified void return types. Call require_complete_type when
21797 generating a trap.
21798
21799 2009-04-18 Jan Hubicka <jh@suse.cz>
21800
21801 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21802 Set nothrow flag.
21803 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21804 can_throw_external flag.
21805 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21806 * ipa-pure-const.c (ignore_edge): New function.
21807 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21808 only over can_throw_external edges.
21809 (local_pure_const): Add nothrow flag.
21810 * ipa-utils.c (searchc): Add ignore_edge callback.
21811 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21812 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21813 (set_nothrow_function_flags): Update cgraph.
21814 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21815
21816 2009-04-18 Richard Guenther <rguenther@suse.de>
21817
21818 PR middle-end/39804
21819 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21820 (fold_stmt): ... this and ...
21821 (fold_stmt_inplace): ... this.
21822 (fold_stmt_1): Fold references in calls and asms.
21823 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21824
21825 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21826
21827 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21828 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21829
21830 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21831
21832 * tree.c (function_args_count): Remove.
21833 * tree.h: Remove the prototype for function_args_count.
21834
21835 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21836
21837 * tree-iterator.c (expr_only): Remove.
21838 * tree.h: Remove the prototype for expr_only.
21839
21840 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21841
21842 * reginfo.c (cannot_change_mode_set_regs): Remove.
21843 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21844
21845 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21846
21847 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21848 whether operands 0 and 1 overlaps.
21849
21850 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21851
21852 PR middle-end/36902
21853 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21854 pointer. Use warning_at instead of warning.
21855 (search_for_addr_array): Likewise.
21856 (check_array_bounds): Likewise.
21857 (check_all_array_refs): Check that the incoming edge is not in the
21858 list of edges to be removed.
21859 (check_all_array_refs): Avoid the temporal pointer.
21860 (vrp_visit_cond_stmt): Fix typo.
21861 (simplify_switch_using_ranges): Handle the case where the switch
21862 index is an integer constant.
21863
21864 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21865
21866 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21867
21868 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21869
21870 * doc/extend.texi, doc/invoke.texi: Fix typos.
21871
21872 2009-04-17 Cary Coutant <ccoutant@google.com>
21873
21874 * tree-flow-inline.h (get_lineno): Fix inverted test.
21875
21876 2009-04-17 Diego Novillo <dnovillo@google.com>
21877
21878 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21879 assertion for AVAIL_OUT.
21880
21881 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21882
21883 PR target/38627
21884 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21885 * config/sh/linux-atomic.asm: Likewise.
21886
21887 2009-04-17 Diego Novillo <dnovillo@google.com>
21888
21889 * except.c (debug_eh_tree): New.
21890 (struct eh_region, struct eh_status): Move ...
21891 * except.h: ... here.
21892 (add_type_for_runtime): Declare extern.
21893 (lookup_type_for_runtime): Likewise.
21894 (debug_eh_tree): Declare.
21895 * Makefile.in (GTFILES): List except.h before except.c
21896
21897 2009-04-17 Diego Novillo <dnovillo@google.com>
21898
21899 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21900 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21901 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21902 (find_vars_r): ... here.
21903 * tree-flow.h (find_referenced_vars_in): Declare.
21904 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21905 that AVAIL_OUT exists for BLOCK.
21906 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21907 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21908 (tree-parloops.o): Likewise.
21909
21910 2009-04-17 Simon Baldwin <simonb@google.com>
21911
21912 * toplev.c (default_tree_printer): Add handling for %E format.
21913
21914 2009-04-17 Diego Novillo <dnovillo@google.com>
21915
21916 * tree-pretty-print.c (dump_generic_node): Add break after
21917 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21918 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21919 FUNCTION_TYPE together. Call print_struct_decl when printing
21920 structures and TDF_SLIM is not given.
21921 (print_struct_decl): Fix logic for detecting recursion.
21922
21923 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21924
21925 PR 31567
21926 * gcc.c (create_at_file): New.
21927 (compile_input_file_p): New.
21928 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21929 * main.c (main): Update call to toplev_main.
21930 * toplev.c (toplev_main): Change signature. Call expandargv.
21931 * toplev.h (toplev_main): Change signature.
21932
21933 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21934
21935 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21936 if the latter is not constant.
21937
21938 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21939
21940 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21941
21942 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21943
21944 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21945 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21946
21947 2009-04-17 Richard Guenther <rguenther@suse.de>
21948
21949 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21950 Handle component references view-converting an invariant address.
21951
21952 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21953
21954 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21955 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21956 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21957 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21958 Use @deftypevr rather than @deftypevar.
21959
21960 2009-04-17 Richard Guenther <rguenther@suse.de>
21961
21962 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21963 (get_prop_source_stmt): Likewise.
21964 (can_propagate_from): Likewise.
21965
21966 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21967
21968 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21969 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21970 (--with-multilib-list): Add default value.
21971 * configure: Regenerate.
21972 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21973 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21974 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21975 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21976 Don't add default cpu to multilib list unnecessarily, but do enable
21977 the relevant compiler option..
21978 Add support for --with-multilib-list=<blank> and
21979 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21980 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21981 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21982 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21983 TM_MULTILIB_CONFIG.
21984 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21985 (MULTILIB_OSDIRNAMES): New variable.
21986 * config/sh/t-1e: Delete file.
21987 * config/sh/t-mlib-sh1: Delete file.
21988 * config/sh/t-mlib-sh2: Delete file.
21989 * config/sh/t-mlib-sh2a: Delete file.
21990 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21991 * config/sh/t-mlib-sh2a-single: Delete file.
21992 * config/sh/t-mlib-sh2a-single-only: Delete file.
21993 * config/sh/t-mlib-sh2e: Delete file.
21994 * config/sh/t-mlib-sh3e: Delete file.
21995 * config/sh/t-mlib-sh4: Delete file.
21996 * config/sh/t-mlib-sh4-nofpu: Delete file.
21997 * config/sh/t-mlib-sh4-single: Delete file.
21998 * config/sh/t-mlib-sh4-single-only: Delete file.
21999 * config/sh/t-mlib-sh4a: Delete file.
22000 * config/sh/t-mlib-sh4a-nofpu: Delete file.
22001 * config/sh/t-mlib-sh4a-single: Delete file.
22002 * config/sh/t-mlib-sh4a-single-only: Delete file.
22003 * config/sh/t-mlib-sh4al: Delete file.
22004 * config/sh/t-mlib-sh5-32media: Delete file.
22005 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
22006 * config/sh/t-mlib-sh5-64media: Delete file.
22007 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
22008 * config/sh/t-mlib-sh5-compact: Delete file.
22009 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
22010 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
22011 * doc/install.texi (Options specification): Add
22012 --with-multilib-list and --with-endian.
22013
22014 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
22015
22016 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
22017 REVISION_c.
22018 (OBJS-common): Add plugin-version.o.
22019 (plugin-version.o): New.
22020 * gcc-plugin.h (plugin_gcc_version): New.
22021 (plugin_default_version_check): New.
22022 (plugin_init_func, plugin_init): Add version argument.
22023 * plugin-version.c: New.
22024 * plugin.c (str_plugin_gcc_version_name): New.
22025 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
22026 pass it to the init function.
22027 (plugin_default_version_check): New.
22028
22029 2009-04-17 Richard Guenther <rguenther@suse.de>
22030
22031 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
22032 for decl-vs-decl disambiguation.
22033
22034 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
22035
22036 * config/s390/s390.h (s390_tune_attr): New macro definition.
22037 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
22038
22039 2009-04-17 Richard Guenther <rguenther@suse.de>
22040
22041 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
22042 (fold_stmt_r): Likewise.
22043 (maybe_fold_reference): New function.
22044 (fold_gimple_assign): Handle cases fold_stmt_r did.
22045 (fold_stmt): Do not use fold_stmt_r.
22046 (fold_stmt_inplace): Likewise.
22047
22048 2009-04-17 Richard Guenther <rguenther@suse.de>
22049
22050 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
22051 (record_equivalences_from_stmt): Remove useless checks and
22052 simplifications.
22053 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
22054 the type is already suitable.
22055
22056 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
22057
22058 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
22059
22060 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
22061
22062 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
22063 (CMPtype): Define as __gcc_CMPtype.
22064
22065 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
22066
22067 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
22068 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
22069
22070 2009-04-17 Richard Guenther <rguenther@suse.de>
22071
22072 PR tree-optimization/39746
22073 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
22074 special-casing for builtins and static variable use/def.
22075 (call_may_clobber_ref_p_1): Likewise.
22076
22077 2009-04-16 Ian Lance Taylor <iant@google.com>
22078
22079 * df.h: Include "timevar.h".
22080 (struct df_problem): Change tv_id field to timevar_id_t.
22081 * tree-pass.h: Include "timevar.h".
22082 (struct opt_pass): Change tv_id field to timevar_id_t.
22083 * timevar.h (timevar_id_t): Define TV_NONE.
22084 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
22085 TV_NONE rather than tv_id != 0.
22086 (execute_one_pass): Likewise.
22087 * Makefile.in (DF_H): Add $(TIMEVAR_H).
22088 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
22089 dependencies to $(TREE_PASS_H).
22090 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
22091 to TV_NONE.
22092 (pass_branch_target_load_optimize2): Likewise.
22093 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
22094 (pass_outof_cfg_layout_mode): Likewise.
22095 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
22096 (pass_rebuild_cgraph_edges): Likewise.
22097 (pass_remove_cgraph_callee_edges): Likewise.
22098 * df-core.c (pass_df_initialize_opt): Likewise.
22099 (pass_df_initialize_no_opt): Likewise.
22100 (pass_df_finish): Likewise.
22101 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
22102 * except.c (pass_set_nothrow_function_flags): Likewise.
22103 (pass_convert_to_eh_region_ranges): Likewise.
22104 * final.c (pass_compute_alignments): Likewise.
22105 * function.c (pass_instantiate_virtual_regs): Likewise.
22106 (pass_init_function): Likewise.
22107 (pass_leaf_regs): Likewise.
22108 (pass_match_asm_constraints): Likewise.
22109 * gimple-low.c (pass_lower_cf): Likewise.
22110 (pass_mark_used_blocks): Likewise.
22111 * init-regs.c (pass_initialize_regs): Likewise.
22112 * integrate.c (pass_initial_value_sets): Likewise.
22113 * ira.c (pass_ira): Likewise.
22114 * jump.c (pass_cleanup_barriers): Likewise.
22115 * omp-low.c (pass_expand_omp): Likewise.
22116 (pass_lower_omp): Likewise.
22117 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22118 * recog.c (pass_split_all_insns): Likewise.
22119 (pass_split_after_reload): Likewise.
22120 (pass_split_before_regstack): Likewise.
22121 (pass_split_before_sched2): Likewise.
22122 (pass_split_for_shorten_branches): Likewise.
22123 * reginfo.c (pass_reginfo_init): Likewise.
22124 (pass_subregs_of_mode_init): Likewise.
22125 (pass_subregs_of_mode_finish): Likewise.
22126 * passes.c (pass_postreload): Likewise.
22127 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22128 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22129 (pass_warn_function_return): Likewise.
22130 (pass_warn_function_noreturn): Likewise.
22131 * tree-complex.c (pass_lower_complex): Likewise.
22132 (pass_lower_complex_O0): Likewise.
22133 * tree-if-conv.c (pass_if_conversion): Likewise.
22134 * tree-into-ssa.c (pass_build_ssa): Likewise.
22135 * tree-mudflap.c (pass_mudflap_1): Likewise.
22136 (pass_mudflap_2): Likewise.
22137 * tree-nomudflap.c (pass_mudflap_1): Likewise.
22138 (pass_mudflap_2): Likewise.
22139 * tree-nrv.c (pass_return_slot): Likewise.
22140 * tree-object-size.c (pass_object_sizes): Likewise.
22141 * tree-optimize.c (pass_all_optimizations): Likewise.
22142 (pass_early_local_passes): Likewise.
22143 (pass_all_early_optimizations): Likewise.
22144 (pass_cleanup_cfg): Likewise.
22145 (pass_cleanup_cfg_post_optimizing): Likewise.
22146 (pass_free_datastructures): Likewise.
22147 (pass_free_cfg_annotations): Likewise.
22148 (pass_fixup_cfg): Likewise.
22149 (pass_init_datastructures): Likewise.
22150 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22151 (pass_late_warn_uninitialized): Likewise.
22152 (pass_update_address_taken): Likewise.
22153 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22154 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22155 (pass_cse_sincos): Likewise.
22156 (pass_convert_to_rsqrt): Likewise.
22157 * tree-ssa-structalias.c (pass_build_alias): Likewise.
22158 * tree-stdarg.c (pass_stdarg): Likewise.
22159 * tree-tailcall.c (pass_tail_recursion): Likewise.
22160 (pass_tail_calls): Likewise.
22161 * tree-vect-generic.c (pass_lower_vector): Likewise.
22162 (pass_lower_vector_ssa): Likewise.
22163 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22164
22165 2009-04-16 Joseph Myers <joseph@codesourcery.com>
22166
22167 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22168 XLR entry.
22169 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22170 Handle -march=xlr.
22171 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22172 logical and signext.
22173
22174 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
22175
22176 PR target/39767
22177 * config/sh/predicates.md (arith_operand): Check if the operand
22178 of TRUNCATE is a REG.
22179
22180 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22181
22182 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22183 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22184
22185 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22186
22187 * tree-iterator.c (tsi_split_statement_list_after,
22188 tsi_split_statement_list_before): Remove.
22189 * tree-iterator.h: Remove the prototypes for
22190 tsi_split_statement_list_after and tsi_split_statement_list_before.
22191
22192 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22193
22194 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22195 * tree-ssa-propagate.h: Remove the prototype for
22196 stmt_makes_single_load.
22197
22198 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22199
22200 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22201 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22202
22203 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22204
22205 * tree-iterator.c (EXPR_LAST_BODY): Remove.
22206
22207 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22208
22209 * except.c (eh_region_outer_p): Remove.
22210 * except.h: Remove the prototype for eh_region_outer_p.
22211
22212 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22213
22214 * function.c (current_function_assembler_name): Remove.
22215 * function.h: Remove the prototype for
22216 current_function_assembler_name.
22217
22218 2009-04-16 Ian Lance Taylor <iant@google.com>
22219
22220 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22221 (add_reg_note): Call alloc_reg_note.
22222 * rtl.h (alloc_reg_note): Declare.
22223 * combine.c (try_combine): Use alloc_reg_note.
22224 (recog_for_combine, move_deaths): Likewise.
22225 (distribute_notes): Use alloc_reg_note and add_reg_note.
22226 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22227 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22228 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22229
22230 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
22231
22232 PR rtl-optimization/39762
22233 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22234 ira_may_move_out_cost): Add comments about way of their usage.
22235 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22236
22237 * ira-conflicts.c (process_regs_for_copy): Use function
22238 ira_get_register_move_cost instead of global
22239 ira_register_move_cost.
22240
22241 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22242 color_pass, move_spill_restore, update_curr_costs): Ditto.
22243
22244 * ira-lives.c (process_single_reg_class_operands): Ditto.
22245
22246 * ira-emit.c (emit_move_list): Ditto.
22247
22248 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22249 (record_reg_classes): Ditto. Use functions
22250 ira_get_register_move_cost and ira_get_may_move_cost instead of
22251 global vars ira_register_move_cost, ira_may_move_out_cost and
22252 ira_may_move_in_cost.
22253 (record_address_regs): Don't call ira_init_register_move_cost.
22254 Use function ira_get_may_move_cost instead of global
22255 ira_may_move_in_cost.
22256 (process_bb_node_for_hard_reg_moves): Use function
22257 ira_get_register_move_cost instead of global ira_register_move_cost.
22258 (ira_costs): Don't call ira_init_register_move_cost.
22259
22260 2009-04-16 Richard Guenther <rguenther@suse.de>
22261
22262 * tree-cfg.c (verify_gimple_assign_binary):
22263 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22264 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22265 (create_general_new_stmt): Note that this function is broken.
22266
22267 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22268
22269 * common.opt (fhelp): Add Var(help_flag).
22270 * gcc-plugin.h (plugin_info): Add help.
22271 * plugin.c (plugin_name_args): Add help.
22272 (register_plugin_info): Set plugin->help.
22273 (print_help_one_plugin): New.
22274 (print_plugins_help): New.
22275 * plugin.h (print_plugins_help): New.
22276 * toplev.c (toplev_main): Call print_plugins_help if needed.
22277
22278 2009-04-16 Richard Guenther <rguenther@suse.de>
22279
22280 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22281 (gimple_ior_addresses_taken_1): New function.
22282 (gimple_ior_addresses_taken): Likewise.
22283 * gimple.h (struct gimple_statement_with_ops_base): Remove
22284 addresses_taken member.
22285 (gimple_ior_addresses_taken): Declare.
22286 (gimple_addresses_taken, gimple_addresses_taken_ptr,
22287 gimple_set_addresses_taken): Remove.
22288 * ipa-reference.c (mark_address): New function.
22289 (scan_stmt_for_static_refs): Use it for marking addresses taken.
22290 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22291 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
22292 (gimple_add_to_addresses_taken): Remove.
22293 (get_tmr_operands): Call mark_address_taken.
22294 (get_asm_expr_operands): Likewise.
22295 (get_expr_operands): Likewise.
22296 (build_ssa_operands): Do not clear the addresses_taken bitmap.
22297 (free_stmt_operands): Do not free it.
22298 * tree-ssa.c (delete_tree_ssa): Likewise.
22299 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22300
22301 2009-04-16 Richard Guenther <rguenther@suse.de>
22302
22303 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22304 (walk_stmt_load_store_ops): Likewise.
22305 * gimple.c (get_base_loadstore): New function.
22306 (walk_stmt_load_store_addr_ops): Likewise.
22307 (walk_stmt_load_store_ops): Likewise.
22308 * ipa-pure-const.c (check_op): Simplify.
22309 (check_load, check_store): New functions.
22310 (check_stmt): Use walk_stmt_load_store_ops.
22311 * ipa-reference.c (mark_load): Adjust signature.
22312 (mark_store): Likewise.
22313 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22314
22315 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22316
22317 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22318 (plugin_info): New.
22319 * opts.c (common_handle_option): Don't call print_version.
22320 * plugin.c (plugin_name_args): Add version.
22321 (register_plugin_info): New.
22322 (register_callback): Handle PLUGIN_INFO.
22323 (try_init_one_plugin): New.
22324 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22325 if failed to init.
22326 (finalize_one_plugin): New.
22327 (finalize_plugins): New.
22328 (print_one_plugin): New.
22329 (print_plugins_versions): New.
22330 * plugin.h (print_plugins_versions): New.
22331 (finalize_plugins): New.
22332 * toplev.c (compile_file): Don't call initialize_plugins.
22333 (print_version): Call print_plugins_versions.
22334 (toplev_main): Call initialize_plugins. Print version if needed.
22335 Call finalize_plugins.
22336
22337 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22338
22339 * common.opt (fversion): New.
22340 * gcc.c (print_version): New.
22341 (process_command): Don't print the version. Just set print_version.
22342 (main): Print version. Call subprocesses if print_version and
22343 verbose_flag are set.
22344 * opts.c (common_handle_option): Handle OPT_fversion.
22345
22346 2009-04-16 Richard Guenther <rguenther@suse.de>
22347 Ira Rosen <irar@il.ibm.com>
22348
22349 PR tree-optimization/39698
22350 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22351 type of the reduction variable. Only generate the def if
22352 it is needed.
22353
22354 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22355 make sure to first convert to an integer of the same precision.
22356 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22357 the type of the evolution correctly in computing the new
22358 induction variable base.
22359
22360 2009-04-16 Richard Guenther <rguenther@suse.de>
22361
22362 PR middle-end/39625
22363 * tree-cfg.c (make_blocks): Split statements with to-be
22364 abnormal SSA names on the lhs.
22365
22366 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22367
22368 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22369 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22370 * c-typeck.c (really_start_incremental_init): Likewise.
22371 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22372 (TARGET_INITIALIZER): Remove it.
22373 * target.h (struct target): Remove vector_opaque_p.
22374 * tree.c (build_opaque_vector_type): New.
22375 * tree.h (TYPE_VECTOR_OPAQUE): New.
22376 (build_opaque_vector_type): Declare.
22377 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22378 * config/rs6000/rs6000.c (build_opaque_vector_type,
22379 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22380 (rs6000_init_builtins): Use build_opaque_vector_type for
22381 opaque_V4SI_type_node.
22382
22383 2009-04-15 Catherine Moore <clm@codesourcery.com>
22384
22385 * debug.h (set_name): Declare.
22386 * dwarf2out.c (dwarf2out_set_name): Declare.
22387 (dwarf2_debug_hooks): Add set_name.
22388 (find_AT_string): New.
22389 (add_AT_string): Call find_AT_string.
22390 (dwarf2out_set_name): New.
22391 * cp/decl.c (grokdeclarator): Call set_name.
22392 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22393 * debug.c (do_nothing_debug_hooks): Likewise.
22394 * dbxout.c (dbx_debug_hooks): Likewise.
22395 * sdbout.c (sdb_debug_hooks): Likewise.
22396
22397 2009-04-15 Michael Eager <eager@eagercon.com>
22398
22399 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22400 reg for single-precision FPU.
22401 * config/rs6000/rs6000.md (movsi_internal1): Only for
22402 !TARGET_SINGLE_FPU.
22403 (movsi_internal1_single): New. Add pattern to move SI values to/from
22404 single-precision FP regs.
22405
22406 2009-04-15 Richard Guenther <rguenther@suse.de>
22407
22408 * omp-low.c (lower_rec_input_clauses): Build correct address
22409 expressions.
22410 (expand_omp_for_generic): Fix multiplication type.
22411 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22412 (generate_memset_zero): Fix types.
22413 * tree-profile.c (prepare_instrumented_value): Correctly
22414 widen a pointer.
22415
22416 2009-04-15 Ian Lance Taylor <iant@google.com>
22417
22418 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22419 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22420 for -Wall and for -Wc++-compat.
22421 (c_common_post_options): For C++, set warn_enum_compare if not
22422 already set.
22423 * c-tree.h (struct c_expr): Add field original_type.
22424 (build_external_ref): Update declaration.
22425 * c-parser.c (c_parser_braced_init): Set original_type.
22426 (c_parser_initelt): Likewise.
22427 (c_parser_expr_no_commas): Likewise.
22428 (c_parser_conditional_expression): Likewise.
22429 (c_parser_cast_expression): Likewise.
22430 (c_parser_unary_expression): Likewise. Pull setting of
22431 original_code to top of function.
22432 (c_parser_sizeof_expression): Set original_type.
22433 (c_parser_alignof_expression): Likewise.
22434 (c_parser_postfix_expression): Likewise. Pull setting of
22435 original_code to top of function.
22436 (c_parser_postfix_expression_after_paren_type): Set original_type.
22437 (c_parser_postfix_expression_after_primary): Likewise.
22438 (c_parser_expression): Likewise.
22439 * c-typeck.c (build_external_ref): Add type parameter. Change all
22440 callers.
22441 (c_expr_sizeof_expr): Set original_type field.
22442 (parser_build_unary_op): Likewise.
22443 (parser_build_binary_op): Likewise. Optionally warn about
22444 comparisons of enums of different types.
22445 (digest_init): Set original_type field.
22446 (really_start_incremental_init): Likewise.
22447 (push_init_level, pop_init_level): Likewise.
22448 * doc/invoke.texi (Warning Options): -Wenum-compare now
22449 supported in C.
22450
22451 2009-04-15 Richard Guenther <rguenther@suse.de>
22452
22453 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22454 out a necessary conversion.
22455 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22456 names we didn't value number.
22457 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22458
22459 2009-04-15 Richard Guenther <rguenther@suse.de>
22460
22461 PR tree-optimization/39764
22462 * tree-ssa-ccp.c (get_value): Canonicalize value with
22463 canonicalize_float_value.
22464
22465 2009-04-15 Jan Hubicka <jh@suse.cz>
22466
22467 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22468 Wrong version of patch.
22469
22470 2009-04-15 Jan Hubicka <jh@suse.cz>
22471
22472 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22473
22474 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22475
22476 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22477 our distinct integral and vector types.
22478
22479 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22480
22481 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22482 * init.c (build_vtbl_address): Remove call to assemble_external.
22483
22484 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22485
22486 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22487 output for other floating point modes.
22488
22489 2009-04-14 Diego Novillo <dnovillo@google.com>
22490
22491 * diagnostic.c (diagnostic_report_diagnostic): Do not
22492 warn about loaded plugins for DK_ERROR and DK_WARNING.
22493 * c-decl.c (declspecs_add_type): Move call to
22494 invoke_plugin_callbacks ...
22495 * c-parser.c (c_parser_declspecs): ... here.
22496 * plugin.c (dump_active_plugins): Tidy output.
22497
22498 2009-04-14 Diego Novillo <dnovillo@google.com>
22499 Le-Chun Wu <lcwu@google.com>
22500
22501 * configure.ac: Add --enable-plugin support.
22502 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22503 * Makefile.in (PLUGIN_H): Define.
22504 Export ENABLE_PLUGIN and GMPINC to site.exp.
22505 Add PLUGINLIBS to link command.
22506 Add/modify dependencies for plugin.o and files including plugin.h.
22507 (plugin.o): New.
22508 * config.in: Regenerate.
22509
22510 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22511 OPT_fplugin_arg_.
22512
22513 2009-04-14 Le-Chun Wu <lcwu@google.com>
22514
22515 * tree-pass.h (register_one_dump_file): Add a prototype for
22516 register_one_dump_file.
22517 * toplev.c (compile_file): Call initialize_plugins.
22518 (do_compile): Call invoke_plugin_callbacks.
22519 (toplev_main): Call invoke_plugin_callbacks.
22520 * common.opt: Add -fplugin= and -fplugin-arg-.
22521 * gcc-plugin.h: New public header file for plugins to include.
22522 * plugin.c: New source file.
22523 * plugin.h: New internal header file.
22524 * passes.c (register_one_dump_file): Make it external.
22525
22526 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22527
22528 2009-04-14 Diego Novillo <dnovillo@google.com>
22529
22530 * doc/plugins.texi: New.
22531 * doc/gccint.texi: Add reference to Plugins chapter.
22532 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22533 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22534 loaded plugins, if any.
22535 * timevar.def (TV_PLUGIN_INIT): Define.
22536 (TV_PLUGIN_RUN): Define.
22537 * plugin.c: Include timevar.h
22538 (plugins_active_p): New.
22539 (dump_active_plugins): New.
22540 (debug_active_plugins): New.
22541
22542 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22543
22544 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22545 library paths.
22546 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22547
22548 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22549
22550 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22551 the same as a minus without a shift.
22552
22553 2009-04-14 Nick Clifton <nickc@redhat.com>
22554
22555 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22556 comparisons with small integers will always produce a short
22557 branch.
22558
22559 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22560
22561 Merge:
22562 2008-12-19 Diego Novillo <dnovillo@google.com>
22563
22564 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22565
22566 2009-04-14 Richard Guenther <rguenther@suse.de>
22567
22568 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22569 verification.
22570 (verify_gimple_assign_binary): Likewise. Handle shifts and
22571 rotates correctly.
22572 (verify_gimple_phi): Print the mismatched argument position.
22573 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22574 Fix types.
22575 (vect_update_init_of_dr): Likewise.
22576 * matrix-reorg.c (transform_access_sites): Do what the
22577 comment suggests.
22578 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22579
22580 2009-04-13 Michael Eager <eager@eagercon.com>
22581
22582 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22583 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22584 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22585 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22586 remove duplicate config
22587
22588 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22589
22590 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22591 file_name:line_number type locator of the call site.
22592
22593 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22594
22595 * genautomata.c: Put blank after comma.
22596 (automaton_decls): New.
22597 (struct unit_usage): Add comments to member next.
22598 (store_alt_unit_usage): Keep the list ordered.
22599 (unit_present_on_list_p, equal_alternatives_p): New.
22600 (check_regexp_units_distribution): Check units distribution
22601 correctness correctly.
22602 (main): Don't write automata if error is found. Return correct
22603 exit code.
22604
22605 * config/m68k/cf.md (cfv4_ds): Remove.
22606 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22607 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22608
22609 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22610 power4-load-ext, power4-store, power4-store-update,
22611 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22612 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22613 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22614 power4-sqrt, power4-isync): Modify reservation to make correct
22615 unit distribution to automata.
22616
22617 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22618 power5-store-update, power5-two, power5-three, power5-lmul,
22619 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22620
22621 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22622
22623 * except.c (pass_set_nothrow_function_flags): Set name and add
22624 TODO_dump_func.
22625 (set_nothrow_function_flags): Mention in the dump file when
22626 changing a function to nothrow.
22627
22628 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22629
22630 PR/39066
22631 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22632 instead of unsigned long.
22633
22634 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22635
22636 * config/arm/arm.c (return_used_this_function): Remove.
22637 (arm_output_function_prologue): Remove use of
22638 return_used_this_function.
22639 (output_return_instruction): Replace use of
22640 return_used_this_function
22641 by cfun->machine->return_used_this_function.
22642 (arm_output_epilogue): Likewise.
22643 (arm_output_function_epilogue): Likewise.
22644 (thumb_unexpanded_epilogue): Likewise.
22645 * config/arm/arm.h (struct machine_function):
22646 New member return_used_this_function.
22647
22648 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22649
22650 * doc/install.texi: Correct description of default directory for
22651 --with-gxx-include-dir.
22652
22653 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22654
22655 * fold-const.c (build_range_check): Properly deal with enumeral and
22656 boolean base types.
22657
22658 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22659
22660 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22661 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22662 * params.h (MAX_GCSE_PASSES): Remove.
22663 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22664 in sequence. Remove ability to run multiple passes.
22665 (bypass_jumps): Report run as third CPROP pass.
22666
22667 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22668
22669 PR middle-end/39651
22670 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22671 when deciding whether the whole SEQUENCE can throw.
22672
22673 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22674
22675 PR target/39740
22676 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22677 offseted label references.
22678
22679 2009-04-11 Jan Hubicka <jh@suse.cz>
22680
22681 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22682
22683 2009-04-11 Richard Guenther <rguenther@suse.de>
22684
22685 PR middle-end/39732
22686 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22687 return variables as TREE_ADDRESSABLE.
22688
22689 2009-04-11 Richard Guenther <rguenther@suse.de>
22690
22691 PR tree-optimization/39713
22692 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22693 reference trees have SSA_NAME operands.
22694
22695 2009-04-11 Richard Guenther <rguenther@suse.de>
22696
22697 PR c/39712
22698 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22699 address expressions.
22700
22701 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22702
22703 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22704 match changes in Cygwin 1.7
22705 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22706 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22707
22708 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22709
22710 PR tree-optimization/39701
22711 * doc/invoke.texi (Optimization Options): Document change in
22712 meaning and initialization of -fdelete-null-pointer-checks.
22713
22714 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22715
22716 PR middle-end/39701
22717 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22718
22719 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22720 here.
22721
22722 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22723
22724 2009-04-10 Chao-ying Fu <fu@mips.com>
22725
22726 * doc/tm.texi (Instruction Output): Document
22727 TARGET_ASM_FINAL_POSTSCAN_INSN.
22728 * target.h (final_postscan_insn): New field in asm_out.
22729 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22730 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22731 * final.c (final_scan_insn): Call
22732 targetm.asm_out.final_postscan_insn after outputting
22733 an asm macro and a normal instruction.
22734
22735 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22736 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22737 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22738 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22739 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22740
22741 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22742
22743 PR middle-end/39701
22744 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22745 variables as non-NULL even with -fdelete-null-pointer-checks.
22746
22747 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22748
22749 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22750
22751 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22752
22753 PR target/39678
22754 * config/i386/i386.c (classify_argument): Handle SCmode with
22755 (bit_offset % 64) != 0.
22756
22757 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22758
22759 * doc/invoke.texi (Optimize Options): Add cross-reference to
22760 -Q --help=optimizers examples.
22761
22762 2009-04-10 Ben Elliston <bje@au.ibm.com>
22763
22764 PR target/36800
22765 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22766 regalign for the reg == fpr and TDmode case.
22767
22768 2009-04-09 David Ayers <ayers@fsfe.org>
22769
22770 PR objc/29200
22771 * objc/objc-act.c (warn_with_method): Remove helper function.
22772 (check_duplicates): Call warning and inform directly.
22773 (really_start_method): Likewise.
22774
22775 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22776
22777 * expmed.c (expand_divmod): Always use a comparison for a division
22778 by a large unsigned integer.
22779
22780 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22781 for things others than variables or functions as nonzero.
22782
22783 2009-04-09 Nick Clifton <nickc@redhat.com>
22784
22785 * unwind-compat.c: Change copyright header to refer to version
22786 3 of the GNU General Public License with version 3.1 of the
22787 GCC Runtime Library Exception and to point readers at the
22788 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22789 * config/alpha/crtfastmath.c: Likewise.
22790 * config/alpha/linux-unwind.h: Likewise.
22791 * config/alpha/qrnnd.asm: Likewise.
22792 * config/alpha/vms-crt0-64.c: Likewise.
22793 * config/alpha/vms-crt0.c: Likewise.
22794 * config/alpha/vms-dwarf2.asm: Likewise.
22795 * config/alpha/vms-dwarf2eh.asm: Likewise.
22796 * config/alpha/vms-psxcrt0-64.c: Likewise.
22797 * config/alpha/vms-psxcrt0.c: Likewise.
22798 * config/alpha/vms_tramp.asm: Likewise.
22799 * config/arc/initfini.c: Likewise.
22800 * config/arc/lib1funcs.asm: Likewise.
22801 * config/arm/bpabi-v6m.S: Likewise.
22802 * config/arm/bpabi.S: Likewise.
22803 * config/arm/bpabi.c: Likewise.
22804 * config/arm/crti.asm: Likewise.
22805 * config/arm/crtn.asm: Likewise.
22806 * config/arm/ieee754-df.S: Likewise.
22807 * config/arm/ieee754-sf.S: Likewise.
22808 * config/arm/lib1funcs.asm: Likewise.
22809 * config/arm/libunwind.S: Likewise.
22810 * config/arm/linux-atomic.c: Likewise.
22811 * config/arm/mmintrin.h: Likewise.
22812 * config/arm/pr-support.c: Likewise.
22813 * config/arm/unaligned-funcs.c: Likewise.
22814 * config/arm/unwind-arm.c: Likewise.
22815 * config/arm/unwind-arm.h: Likewise.
22816 * config/avr/libgcc.S: Likewise.
22817 * config/bfin/crti.s: Likewise.
22818 * config/bfin/crtlibid.s: Likewise.
22819 * config/bfin/crtn.s: Likewise.
22820 * config/bfin/lib1funcs.asm: Likewise.
22821 * config/bfin/linux-unwind.h: Likewise.
22822 * config/cris/arit.c: Likewise.
22823 * config/cris/cris_abi_symbol.c: Likewise.
22824 * config/darwin-64.c: Likewise.
22825 * config/darwin-crt2.c: Likewise.
22826 * config/darwin-crt3.c: Likewise.
22827 * config/darwin.h: Likewise.
22828 * config/dbxelf.h: Likewise.
22829 * config/dfp-bit.c: Likewise.
22830 * config/dfp-bit.h: Likewise.
22831 * config/elfos.h: Likewise.
22832 * config/fixed-bit.c: Likewise.
22833 * config/fixed-bit.h: Likewise.
22834 * config/fp-bit.c: Likewise.
22835 * config/fp-bit.h: Likewise.
22836 * config/fr30/crti.asm: Likewise.
22837 * config/fr30/crtn.asm: Likewise.
22838 * config/fr30/lib1funcs.asm: Likewise.
22839 * config/freebsd-spec.h: Likewise.
22840 * config/frv/cmovd.c: Likewise.
22841 * config/frv/cmovh.c: Likewise.
22842 * config/frv/cmovw.c: Likewise.
22843 * config/frv/frvbegin.c: Likewise.
22844 * config/frv/frvend.c: Likewise.
22845 * config/frv/lib1funcs.asm: Likewise.
22846 * config/glibc-stdint.h: Likewise.
22847 * config/h8300/clzhi2.c: Likewise.
22848 * config/h8300/crti.asm: Likewise.
22849 * config/h8300/crtn.asm: Likewise.
22850 * config/h8300/ctzhi2.c: Likewise.
22851 * config/h8300/fixunssfsi.c: Likewise.
22852 * config/h8300/lib1funcs.asm: Likewise.
22853 * config/h8300/parityhi2.c: Likewise.
22854 * config/h8300/popcounthi2.c: Likewise.
22855 * config/i386/ammintrin.h: Likewise.
22856 * config/i386/att.h: Likewise.
22857 * config/i386/avxintrin.h: Likewise.
22858 * config/i386/biarch64.h: Likewise.
22859 * config/i386/bmmintrin.h: Likewise.
22860 * config/i386/cpuid.h: Likewise.
22861 * config/i386/cross-stdarg.h: Likewise.
22862 * config/i386/crtfastmath.c: Likewise.
22863 * config/i386/crtprec.c: Likewise.
22864 * config/i386/cygming-crtbegin.c: Likewise.
22865 * config/i386/cygming-crtend.c: Likewise.
22866 * config/i386/cygwin.asm: Likewise.
22867 * config/i386/emmintrin.h: Likewise.
22868 * config/i386/gmm_malloc.h: Likewise.
22869 * config/i386/gthr-win32.c: Likewise.
22870 * config/i386/i386.h: Likewise.
22871 * config/i386/immintrin.h: Likewise.
22872 * config/i386/linux-unwind.h: Likewise.
22873 * config/i386/linux64.h: Likewise.
22874 * config/i386/mm3dnow.h: Likewise.
22875 * config/i386/mmintrin-common.h: Likewise.
22876 * config/i386/mmintrin.h: Likewise.
22877 * config/i386/nmmintrin.h: Likewise.
22878 * config/i386/pmm_malloc.h: Likewise.
22879 * config/i386/pmmintrin.h: Likewise.
22880 * config/i386/smmintrin.h: Likewise.
22881 * config/i386/sol2-c1.asm: Likewise.
22882 * config/i386/sol2-ci.asm: Likewise.
22883 * config/i386/sol2-cn.asm: Likewise.
22884 * config/i386/sol2-gc1.asm: Likewise.
22885 * config/i386/tmmintrin.h: Likewise.
22886 * config/i386/unix.h: Likewise.
22887 * config/i386/w32-unwind.h: Likewise.
22888 * config/i386/wmmintrin.h: Likewise.
22889 * config/i386/x86-64.h: Likewise.
22890 * config/i386/x86intrin.h: Likewise.
22891 * config/i386/xmmintrin.h: Likewise.
22892 * config/ia64/crtbegin.asm: Likewise.
22893 * config/ia64/crtend.asm: Likewise.
22894 * config/ia64/crtfastmath.c: Likewise.
22895 * config/ia64/crti.asm: Likewise.
22896 * config/ia64/crtn.asm: Likewise.
22897 * config/ia64/fde-glibc.c: Likewise.
22898 * config/ia64/lib1funcs.asm: Likewise.
22899 * config/ia64/linux-unwind.h: Likewise.
22900 * config/ia64/quadlib.c: Likewise.
22901 * config/ia64/unwind-ia64.c: Likewise.
22902 * config/linux.h: Likewise.
22903 * config/m32c/m32c-lib1.S: Likewise.
22904 * config/m32c/m32c-lib2-trapv.c: Likewise.
22905 * config/m32c/m32c-lib2.c: Likewise.
22906 * config/m32r/initfini.c: Likewise.
22907 * config/m68hc11/larith.asm: Likewise.
22908 * config/m68hc11/m68hc11-crt0.S: Likewise.
22909 * config/m68k/cf.md: Likewise.
22910 * config/m68k/crti.s: Likewise.
22911 * config/m68k/crtn.s: Likewise.
22912 * config/m68k/lb1sf68.asm: Likewise.
22913 * config/m68k/linux-unwind.h: Likewise.
22914 * config/mcore/crti.asm: Likewise.
22915 * config/mcore/crtn.asm: Likewise.
22916 * config/mcore/lib1.asm: Likewise.
22917 * config/mips/linux-unwind.h: Likewise.
22918 * config/mips/loongson.h: Likewise.
22919 * config/mips/mips16.S: Likewise.
22920 * config/mmix/crti.asm: Likewise.
22921 * config/mmix/crtn.asm: Likewise.
22922 * config/pa/fptr.c: Likewise.
22923 * config/pa/hpux-unwind.h: Likewise.
22924 * config/pa/lib2funcs.asm: Likewise.
22925 * config/pa/linux-atomic.c: Likewise.
22926 * config/pa/linux-unwind.h: Likewise.
22927 * config/pa/milli64.S: Likewise.
22928 * config/pa/quadlib.c: Likewise.
22929 * config/pa/stublib.c: Likewise.
22930 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22931 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22932 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22933 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22934 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22935 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22936 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22937 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22938 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22939 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22940 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22941 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22942 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22943 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22944 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22945 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22946 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22947 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22948 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22949 * config/rs6000/750cl.h: Likewise.
22950 * config/rs6000/altivec.h: Likewise.
22951 * config/rs6000/biarch64.h: Likewise.
22952 * config/rs6000/crtresfpr.asm: Likewise.
22953 * config/rs6000/crtresgpr.asm: Likewise.
22954 * config/rs6000/crtresxfpr.asm: Likewise.
22955 * config/rs6000/crtresxgpr.asm: Likewise.
22956 * config/rs6000/crtsavfpr.asm: Likewise.
22957 * config/rs6000/crtsavgpr.asm: Likewise.
22958 * config/rs6000/darwin-asm.h: Likewise.
22959 * config/rs6000/darwin-fallback.c: Likewise.
22960 * config/rs6000/darwin-fpsave.asm: Likewise.
22961 * config/rs6000/darwin-ldouble.c: Likewise.
22962 * config/rs6000/darwin-tramp.asm: Likewise.
22963 * config/rs6000/darwin-unwind.h: Likewise.
22964 * config/rs6000/darwin-vecsave.asm: Likewise.
22965 * config/rs6000/darwin-world.asm: Likewise.
22966 * config/rs6000/e500crtres32gpr.asm: Likewise.
22967 * config/rs6000/e500crtres64gpr.asm: Likewise.
22968 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22969 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22970 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22971 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22972 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22973 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22974 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22975 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22976 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22977 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22978 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22979 * config/rs6000/eabi-ci.asm: Likewise.
22980 * config/rs6000/eabi-cn.asm: Likewise.
22981 * config/rs6000/eabi.asm: Likewise.
22982 * config/rs6000/linux-unwind.h: Likewise.
22983 * config/rs6000/linux64.h: Likewise.
22984 * config/rs6000/paired.h: Likewise.
22985 * config/rs6000/paired.md: Likewise.
22986 * config/rs6000/ppc64-fp.c: Likewise.
22987 * config/rs6000/ppu_intrinsics.h: Likewise.
22988 * config/rs6000/rs6000.h: Likewise.
22989 * config/rs6000/si2vmx.h: Likewise.
22990 * config/rs6000/sol-ci.asm: Likewise.
22991 * config/rs6000/sol-cn.asm: Likewise.
22992 * config/rs6000/spe.h: Likewise.
22993 * config/rs6000/spu2vmx.h: Likewise.
22994 * config/rs6000/sysv4.h: Likewise.
22995 * config/rs6000/tramp.asm: Likewise.
22996 * config/rs6000/vec_types.h: Likewise.
22997 * config/s390/linux-unwind.h: Likewise.
22998 * config/s390/tpf-unwind.h: Likewise.
22999 * config/score/crti.asm: Likewise.
23000 * config/score/crtn.asm: Likewise.
23001 * config/sh/crt1.asm: Likewise.
23002 * config/sh/crti.asm: Likewise.
23003 * config/sh/crtn.asm: Likewise.
23004 * config/sh/divtab-sh4-300.c: Likewise.
23005 * config/sh/divtab-sh4.c: Likewise.
23006 * config/sh/divtab.c: Likewise.
23007 * config/sh/lib1funcs-4-300.asm: Likewise.
23008 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
23009 * config/sh/lib1funcs.asm: Likewise.
23010 * config/sh/lib1funcs.h: Likewise.
23011 * config/sh/linux-atomic.asm: Likewise.
23012 * config/sh/linux-unwind.h: Likewise.
23013 * config/sh/shmedia.h: Likewise.
23014 * config/sh/sshmedia.h: Likewise.
23015 * config/sh/ushmedia.h: Likewise.
23016 * config/sparc/crtfastmath.c: Likewise.
23017 * config/sparc/linux-unwind.h: Likewise.
23018 * config/sparc/sol2-c1.asm: Likewise.
23019 * config/sparc/sol2-ci.asm: Likewise.
23020 * config/sparc/sol2-cn.asm: Likewise.
23021 * config/spu/divmodti4.c: Likewise.
23022 * config/spu/divv2df3.c: Likewise.
23023 * config/spu/float_disf.c: Likewise.
23024 * config/spu/float_unsdidf.c: Likewise.
23025 * config/spu/float_unsdisf.c: Likewise.
23026 * config/spu/float_unssidf.c: Likewise.
23027 * config/spu/mfc_multi_tag_release.c: Likewise.
23028 * config/spu/mfc_multi_tag_reserve.c: Likewise.
23029 * config/spu/mfc_tag_release.c: Likewise.
23030 * config/spu/mfc_tag_reserve.c: Likewise.
23031 * config/spu/mfc_tag_table.c: Likewise.
23032 * config/spu/multi3.c: Likewise.
23033 * config/spu/spu_internals.h: Likewise.
23034 * config/spu/spu_intrinsics.h: Likewise.
23035 * config/spu/spu_mfcio.h: Likewise.
23036 * config/spu/vec_types.h: Likewise.
23037 * config/spu/vmx2spu.h: Likewise.
23038 * config/stormy16/stormy16-lib2.c: Likewise.
23039 * config/svr4.h: Likewise.
23040 * config/sync.c: Likewise.
23041 * config/v850/lib1funcs.asm: Likewise.
23042 * config/vxlib-tls.c: Likewise.
23043 * config/vxlib.c: Likewise.
23044 * config/vxworks-dummy.h: Likewise.
23045 * config/xtensa/crti.asm: Likewise.
23046 * config/xtensa/crtn.asm: Likewise.
23047 * config/xtensa/ieee754-df.S: Likewise.
23048 * config/xtensa/ieee754-sf.S: Likewise.
23049 * config/xtensa/lib1funcs.asm: Likewise.
23050 * config/xtensa/lib2funcs.S: Likewise.
23051 * config/xtensa/linux-unwind.h: Likewise.
23052 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23053 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
23054 * coretypes.h: Likewise.
23055 * crtstuff.c: Likewise.
23056 * defaults.h: Likewise.
23057 * dwarf2.h: Likewise.
23058 * emutls.c: Likewise.
23059 * gbl-ctors.h: Likewise.
23060 * gcov-io.h: Likewise.
23061 * ginclude/float.h: Likewise.
23062 * ginclude/iso646.h: Likewise.
23063 * ginclude/stdarg.h: Likewise.
23064 * ginclude/stdbool.h: Likewise.
23065 * ginclude/stddef.h: Likewise.
23066 * ginclude/stdfix.h: Likewise.
23067 * ginclude/stdint-gcc.h: Likewise.
23068 * ginclude/tgmath.h: Likewise.
23069 * gthr-aix.h: Likewise.
23070 * gthr-dce.h: Likewise.
23071 * gthr-gnat.c: Likewise.
23072 * gthr-gnat.h: Likewise.
23073 * gthr-lynx.h: Likewise.
23074 * gthr-mipssde.h: Likewise.
23075 * gthr-nks.h: Likewise.
23076 * gthr-posix.c: Likewise.
23077 * gthr-posix.h: Likewise.
23078 * gthr-posix95.h: Likewise.
23079 * gthr-rtems.h: Likewise.
23080 * gthr-single.h: Likewise.
23081 * gthr-solaris.h: Likewise.
23082 * gthr-tpf.h: Likewise.
23083 * gthr-vxworks.h: Likewise.
23084 * gthr-win32.h: Likewise.
23085 * gthr.h: Likewise.
23086 * libgcc2.c: Likewise.
23087 * libgcc2.h: Likewise.
23088 * libgcov.c: Likewise.
23089 * tsystem.h: Likewise.
23090 * typeclass.h: Likewise.
23091 * unwind-c.c: Likewise.
23092 * unwind-compat.h: Likewise.
23093 * unwind-dw2-fde-compat.c: Likewise.
23094 * unwind-dw2-fde-darwin.c: Likewise.
23095 * unwind-dw2-fde-glibc.c: Likewise.
23096 * unwind-dw2-fde.c: Likewise.
23097 * unwind-dw2-fde.h: Likewise.
23098 * unwind-dw2.c: Likewise.
23099 * unwind-dw2.h: Likewise.
23100 * unwind-generic.h: Likewise.
23101 * unwind-pe.h: Likewise.
23102 * unwind-sjlj.c: Likewise.
23103 * unwind.inc: Likewise.
23104 * config/arm/neon-gen.ml: Change generated copyright header to
23105 refer to version 3 of the GNU General Public License with
23106 version 3.1 of the GCC Runtime Library Exception and to point
23107 readers at the COPYING3 and COPYING3.RUNTIME files and the
23108 FSF's license web page.
23109 * config/arm/arm_neon.h: Regenerate.
23110
23111 2009-04-09 Jakub Jelinek <jakub@redhat.com>
23112
23113 * config/cris/cris.md: Change copyright header to refer to version
23114 3 of the GNU General Public License.
23115 * doc/install.texi2html: Change copyright header to refer to version
23116 3 of the GNU General Public License and to point readers at the
23117 COPYING3 file and the FSF's license web page.
23118 * config/vax/linux.h: Likewise.
23119
23120 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
23121
23122 * config/i386/i386.md (cmpcc): New.
23123 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23124 (sync_compare_and_swap_cc*): Delete.
23125
23126 * config/s390/s390.c (s390_compare_emitted): Remove.
23127 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23128 s390_compare_emitted used to be handled. Assert that modes match.
23129 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23130 refer to sync_compare_and_swap_ccsi.
23131 * config/s390/s390.h (s390_compare_emitted): Remove.
23132 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23133 instead of s390_compare_emitted.
23134 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23135 instead of s390_compare_emitted.
23136 * config/s390/s390.md (cmpcc): New.
23137 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23138 CC_REGNUM, do not pretend it's set.
23139 (sync_compare_and_swap_cc*): Delete.
23140 * config/s390/predicates.md (cc_reg_operand): New.
23141
23142 * expr.c (sync_compare_and_swap_cc): Delete.
23143 * optabs.h (sync_compare_and_swap_cc): Delete.
23144 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23145 is being used with can_compare_p.
23146 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23147 (find_cc_set): New.
23148 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23149 look for a MODE_CC set instead. Use emit_store_flag.
23150 (expand_compare_and_swap_loop): Likewise, with some additional
23151 complication to avoid a force_reg when useless. Use
23152 emit_cmp_and_jump_insns.
23153 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23154 * doc/md.texi (sync_compare_and_swap_cc): Merge with
23155 sync_compare_and_swap documentation.
23156
23157 2009-04-09 Jan Hubicka <jh@suse.cz>
23158
23159 * except.c (find_prev_try): Break out from ....
23160 (duplicate_eh_regions): ... here; properly update prev_try pointers
23161 when duplication part of tree.
23162 (dump_eh_tree): Improve dumping.
23163 (verify_eh_region): New.
23164 (verify_eh_tree): Use it.
23165
23166 2009-04-06 Richard Guenther <rguenther@suse.de>
23167
23168 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23169 &ARRAY addresses by adjusting their types and prepending
23170 a conversion.
23171 * tree-cfg.c (verify_gimple_assign_single): Verify that
23172 addresses are correct.
23173
23174 2009-04-09 Richard Guenther <rguenther@suse.de>
23175
23176 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23177 indices into an array reference if possible.
23178 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23179 Fold POINTER_PLUS_EXPR statements with invariant address.
23180
23181 2009-04-09 Alan Modra <amodra@bigpond.net.au>
23182
23183 PR target/39634
23184 * config.gcc (powerpc64-*-linux*): Always build biarch.
23185
23186 2009-04-09 Joseph Myers <joseph@codesourcery.com>
23187
23188 PR c/39613
23189 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23190 it and pedwarn if this results in an INTEGER_CST.
23191
23192 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23193
23194 * doc/install.texi: Update minimum GMP version. Remove obsolete
23195 text in MPFR section.
23196
23197 2009-04-08 Jakub Jelinek <jakub@redhat.com>
23198
23199 * dwarf2out.c (class_scope_p): New static inline.
23200 (class_or_namespace_scope_p): Use it.
23201 (gen_variable_die): Use DW_TAG_member tag for static data member
23202 declarations instead of DW_TAG_variable.
23203
23204 PR middle-end/39573
23205 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23206 variables.
23207
23208 2009-04-08 Richard Guenther <rguenther@suse.de>
23209
23210 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23211 valueize random data.
23212
23213 2009-04-08 David Edelsohn <edelsohn@gnu.org>
23214
23215 * config.gcc (aix tm_file): Add aix-stdint.h.
23216 (aix tm clause use_gcc_stdint): Set to wrap.
23217 * config/rs6000/aix-stdint.h: New file.
23218
23219 2009-04-08 Richard Guenther <rguenther@suse.de>
23220
23221 PR middle-end/36291
23222 * tree-dfa.c (add_referenced_var): Do not recurse into
23223 global initializers.
23224 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23225 exposed variables.
23226 (fold_const_aggregate_ref): Likewise.
23227
23228 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23229
23230 * recog.c (ordered_comparison_operator): New.
23231 * gensupport.c (std_preds): Add it.
23232 * doc/md.texi (Machine-Independent Predicates): Document it.
23233
23234 2009-04-08 Jan Hubicka <jh@suse.cz>
23235
23236 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23237 * function.h (rtl_eh): Remove exception_handler_label_map.
23238 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23239 remove_exception_handler_label, for_each_eh_label_1): Remove.
23240 (rtl_remove_unreachable_regions): Remove.
23241 (convert_from_eh_region_ranges): Do not remove unreachable regions.
23242 (find_exception_handler_labels): Don't build the hashtable.
23243 (maybe_remove_eh_handler): Remove.
23244 (for_each_eh_label): Rewrite to walk the tree.
23245 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23246 * except.h (maybe_remove_eh_handler): Remove.
23247 * passes.c (init_optimization_passes): Schedule second EH cleanup
23248 before out-of-ssa.
23249 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23250 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23251
23252 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23253
23254 * genoutput.c (validate_optab_operands): New.
23255 (gen_insn, gen_expand): Call it.
23256
23257 * genflags.c (gen_insn): Detect misused iterators.
23258 (main): Pass line_no to gen_insn, exit with status 1 on error.
23259
23260 * genextract.c (line_no): Make global.
23261 (VEC_safe_set_locstr): Change assertion to error message.
23262 (main): Exit with status 1 on error.
23263
23264 2009-04-08 Joseph Myers <joseph@codesourcery.com>
23265
23266 PR c/39614
23267 PR c/39673
23268 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23269 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23270 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23271 * c-convert.c (convert): Do not call fold on results of conversion
23272 functions when the result is a C_MAYBE_CONST_EXPR.
23273 * c-parser.c (c_parser_postfix_expression): Do not fold condition
23274 of __builtin_choose_expr.
23275 * c-typeck.c (remove_c_maybe_const_expr): New.
23276 (build_unary_op, build_conditional_expr, build_compound_expr,
23277 build_binary_op, c_objc_common_truthvalue_conversion): Call
23278 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23279 integer operands.
23280
23281 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
23282
23283 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23284 CODE to produce a new one. Add a prototype to use fold_convert_const
23285
23286 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
23287
23288 PR bootstrap/39660
23289 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23290 mix declarations and code.
23291
23292 2009-04-08 Ben Elliston <bje@au.ibm.com>
23293
23294 * gcc.c: Replace `CC' with `GCC' throughout.
23295
23296 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
23297
23298 * doc/invoke.texi: Document Atom support.
23299
23300 2009-04-07 Jason Merrill <jason@redhat.com>
23301
23302 PR c++/25185
23303 * c-common.h, c-common.c: Add flag_pretty_templates.
23304 * c-opts.c (c_common_handle_option): Set it.
23305 * c.opt: Add -fno-pretty-templates.
23306 * doc/invoke.texi (C++ Dialect Options): Likewise.
23307
23308 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
23309
23310 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23311 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23312 (ia64_expand_builtin): Likewise.
23313
23314 2009-04-07 Martin Jambor <mjambor@suse.cz>
23315
23316 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23317 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23318 ADDR_EXPRS are include too.
23319
23320 2009-04-07 Richard Guenther <rguenther@suse.de>
23321
23322 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23323 decls are only used if passes as parameters or if they are
23324 local statics and the call is not to a builtin.
23325 (call_may_clobber_ref_p_1): Likewise.
23326
23327 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23328
23329 * expr.c (do_store_flag): Remove last argument. Simplify code
23330 to avoid duplication of tests already done by can_compare_p.
23331 (expand_expr_real_1): Adjust caller.
23332
23333 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23334
23335 * optabs.c (can_compare_p): Test the predicate of a
23336 cbranch and cstore pattern.
23337
23338 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23339
23340 * expr.c (convert_move): Use emit_store_flag instead of
23341 "emulating" it.
23342
23343 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23344
23345 * config/i386/i386.c (ix86_compare_emitted): Remove.
23346 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23347 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23348 * config/i386/i386.h (ix86_compare_emitted): Remove.
23349 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23350 instead of ix86_compare_emitted.
23351 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23352
23353 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23354
23355 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23356 Add t-sysroot-suffix to tmake_file.
23357 * config/print-sysroot-suffix.sh: New file.
23358 * config/t-sysroot-suffix: New file.
23359
23360 2009-04-07 Ben Elliston <bje@au.ibm.com>
23361
23362 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23363 as the latter produces a warning when the target does not support
23364 infinity.
23365
23366 2009-04-07 Ben Elliston <bje@au.ibm.com>
23367
23368 * dfp.c: Replace type punning assignments with memcpy throughout.
23369 * Makefile.in (dfp.o-warn): Remove.
23370
23371 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23372
23373 PR target/39634
23374 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23375 Include soft-fp/t-softfp after rs6000/t-linux64.
23376
23377 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23378
23379 * stor-layout.c (set_sizetype): Use the full precision of their
23380 machine mode for bitsize types.
23381
23382 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23383
23384 * config/i386/i386.md: Revert 2 accidental checkins.
23385
23386 2009-04-06 Joey Ye <joey.ye@intel.com>
23387 Xuepeng Guo <xuepeng.guo@intel.com>
23388 H.J. Lu <hongjiu.lu@intel.com>
23389
23390 Atom pipeline model, tuning and insn selection.
23391 * config.gcc (atom): Add atom config options and target.
23392
23393 * config/i386/atom.md: New.
23394
23395 * config/i386/i386.c (atom_cost): New cost.
23396 (m_ATOM): New macro flag.
23397 (initial_ix86_tune_features): Set m_ATOM.
23398 (x86_accumulate_outgoing_args): Likewise.
23399 (x86_arch_always_fancy_math_387): Likewise.
23400 (processor_target): Add Atom cost.
23401 (cpu_names): Add Atom cpu name.
23402 (override_options): Set Atom ISA.
23403 (ix86_issue_rate): New case PROCESSOR_ATOM.
23404 (ix86_adjust_cost): Likewise.
23405
23406 * config/i386/i386.h (TARGET_ATOM): New target macro.
23407 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23408 (TARGET_OPT_AGU): New target option.
23409 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23410 (processor_type): Add PROCESSOR_ATOM.
23411
23412 * config/i386/i386.md (cpu): Add new value "atom".
23413 (use_carry, movu): New attr.
23414 (atom.md): Include atom.md.
23415 (adddi3_carry_rex64): Set attr "use_carry".
23416 (addqi3_carry): Likewise.
23417 (addhi3_carry): Likewise.
23418 (addsi3_carry): Likewise.
23419 (*addsi3_carry_zext): Likewise.
23420 (subdi3_carry_rex64): Likewise.
23421 (subqi3_carry): Likewise.
23422 (subhi3_carry): Likewise.
23423 (subsi3_carry): Likewise.
23424 (x86_movdicc_0_m1_rex64): Likewise.
23425 (*x86_movdicc_0_m1_se): Likewise.
23426 (x86_movsicc_0_m1): Likewise.
23427 (*x86_movsicc_0_m1_se): Likewise.
23428 (*adddi_1_rex64): Emit add insn as much as possible.
23429 (*addsi_1): Likewise.
23430 (return_internal): Set atom_unit.
23431 (return_internal_long): Likewise.
23432 (return_pop_internal): Likewise.
23433 (*rcpsf2_sse): Set atom_sse_attr attr.
23434 (*qrt<mode>2_sse): Likewise.
23435 (*prefetch_sse): Likewise.
23436
23437 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23438 PROCESSOR_ATOM.
23439 (ix86_target_macros_internal): Likewise.
23440
23441 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23442 (*prefetch_sse_rex): Likewise.
23443 (sse_rcpv4sf2): Likewise.
23444 (sse_vmrcpv4sf2): Likewise.
23445 (sse_sqrtv4sf2): Likewise.
23446 (<sse>_vmsqrt<mode>2): Likewise.
23447 (sse_ldmxcsr): Likewise.
23448 (sse_stmxcsr): Likewise.
23449 (*sse_sfence): Likewise.
23450 (sse2_clflush): Likewise.
23451 (*sse2_mfence): Likewise.
23452 (*sse2_lfence): Likewise.
23453 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23454 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23455 (avx_movdqu<avxmodesuffix>): Likewise.
23456 (avx_lddqu<avxmodesuffix>): Likewise.
23457 (sse2_movntv2di): Change attr "type" to "ssemov".
23458 (sse2_movntsi): Likewise.
23459 (rsqrtv8sf2): Change attr "type" to "sseadd".
23460 (sse3_addsubv2df3): Set attr "atom_unit".
23461 (sse3_h<plusminus_insn>v4sf3): Likewise.
23462 (*sse2_pmaddwd): Likewise.
23463 (*vec_extractv2di_1_rex64): Likewise.
23464 (*vec_extractv2di_1_avx): Likewise.
23465 (sse2_psadbw): Likewise.
23466 (ssse3_phaddwv8hi3): Likewise.
23467 (ssse3_phaddwv4hi3): Likewise.
23468 (ssse3_phadddv4si3): Likewise.
23469 (ssse3_phadddv2si3): Likewise.
23470 (ssse3_phaddswv8hi3): Likewise.
23471 (ssse3_phaddswv4hi3): Likewise.
23472 (ssse3_phsubwv8hi3): Likewise.
23473 (ssse3_phsubwv4hi3): Likewise.
23474 (ssse3_phsubdv4si3): Likewise.
23475 (ssse3_phsubdv2si3): Likewise.
23476 (ssse3_phsubswv8hi3): Likewise.
23477 (ssse3_phsubswv4hi3): Likewise.
23478 (ssse3_pmaddubsw128): Likewise.
23479 (sse3_pmaddubsw: Likewise.
23480 (ssse3_palignrti): Likewise.
23481 (ssse3_palignrdi): Likewise.
23482
23483 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23484
23485 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23486
23487 2009-04-06 Richard Guenther <rguenther@suse.de>
23488
23489 PR tree-optimization/28868
23490 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23491 of which PHI results we inserted.
23492 (insert_into_preds_of_block): Record inserted PHIs.
23493 (eliminate): Eliminate redundant PHI nodes.
23494 (init_pre): Init inserted_phi_names.
23495
23496 2009-04-06 Richard Guenther <rguenther@suse.de>
23497
23498 PR tree-optimization/39643
23499 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23500 IMAGPART_EXPRs of complex constants.
23501 (execute_fold_all_builtins): If we folded a call queue
23502 TODO_update_address_taken.
23503
23504 2009-04-06 Jan Hubicka <jh@suse.cz>
23505
23506 PR middle-end/39659
23507 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23508 flag.
23509
23510 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23511
23512 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23513 delay slot.
23514 (ic_invalidate_array): Likewise.
23515
23516 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23517
23518 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23519 alignment for library calls.
23520
23521 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23522
23523 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23524 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23525 * config/i386/mingw-stdint.h: New file.
23526
23527 2009-04-05 Richard Guenther <rguenther@suse.de>
23528
23529 PR tree-optimization/39648
23530 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23531 our &A vs. &A[0] IL deficiencies.
23532
23533 2009-04-04 Jan Hubicka <jh@suse.cz>
23534
23535 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23536 removed toplevel regions.
23537 (sjlj_mark_call_sites): Likewise.
23538
23539 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23540
23541 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23542 (cygwin tm clause use_gcc_stdint): Set to wrap.
23543 * config/i386/cygwin-stdint.h: New file.
23544
23545 2009-04-04 Richard Guenther <rguenther@suse.de>
23546
23547 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23548 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23549 single-argument PHIs if we are in loop-closed SSA form.
23550 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23551 for the pre-condition.
23552 (slpeel_tree_peel_loop_to_edge): Likewise.
23553 (vect_build_loop_niters): Take an optional sequence to append stmts.
23554 (vect_generate_tmps_on_preheader): Likewise.
23555 (vect_do_peeling_for_loop_bound): Take extra guards for the
23556 pre-condition.
23557 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23558 the cost model check.
23559 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23560 guards if we are going to peel. Do not apply versioning in that case.
23561 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23562 (vect_do_peeling_for_loop_bound): Likewise.
23563 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23564 loop bound only record extra pre-conditions, do not apply loop
23565 versioning.
23566
23567 2009-04-04 Richard Guenther <rguenther@suse.de>
23568
23569 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23570 renaming code.
23571
23572 2009-04-04 Jan Hubicka <jh@suse.cz>
23573
23574 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23575 last_basic_block for size of bb->index indexed array.
23576 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23577 compute_out, link_btr_uses, build_btr_def_use_webs,
23578 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23579
23580 2009-04-04 Jan Hubicka <jh@suse.cz>
23581
23582 * except.c (remove_eh_handler_and_replace): Break out from ...
23583 (remove_eh_handler): ... here.
23584 (bring_to_root): New function.
23585 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23586 handled ones, bring others to root of tree.
23587
23588 2009-04-04 Jan Hubicka <jh@suse.cz>
23589
23590 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23591 (all_phis_safe_to_merge): New function.
23592 (update_info): New structure.
23593 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23594 (cleanup_empty_eh): Update SSA if possible.
23595
23596 2009-04-04 Richard Guenther <rguenther@suse.de>
23597
23598 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23599 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23600 (append_vuse): Likewise.
23601
23602 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23603
23604 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23605 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23606 instead of REG_UNSAVED for DW_CFA_undefined.
23607 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23608 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23609 outermost frame.
23610
23611 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23612
23613 PR target/39501
23614 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23615
23616 2009-04-04 Richard Guenther <rguenther@suse.de>
23617
23618 PR tree-optimization/8781
23619 PR tree-optimization/37892
23620 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23621 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23622 (valueize_refs): Call it for *& valueizations.
23623 (shared_reference_ops_from_ref): Rename to ...
23624 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23625 (shared_reference_ops_from_call): Rename to ...
23626 (valueize_shared_reference_ops_from_call): ... this and valueize.
23627 (vn_reference_lookup): Update.
23628 (visit_reference_op_call): Likewise.
23629 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23630 (eliminate): Value-replace the call address in call statements.
23631
23632 2009-04-04 Richard Guenther <rguenther@suse.de>
23633
23634 PR tree-optimization/39636
23635 * tree-ssa-forwprop.c
23636 (forward_propagate_addr_into_variable_array_index): Check for
23637 GIMPLE_ASSIGN before accessing the rhs code.
23638
23639 2009-04-03 Jason Merrill <jason@redhat.com>
23640
23641 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23642
23643 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23644
23645 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23646 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23647 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23648 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23649 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23650 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23651 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23652 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23653 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23654 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23655 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23656 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23657 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23658 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23659 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23660 Use fr_reg_or_fp01_operand instead of fr_register_operand
23661
23662 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23663 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23664 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23665
23666 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23667
23668 PR rtl-optimization/39607
23669 PR rtl-optimization/39631
23670
23671 Revert:
23672
23673 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23674 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23675 instead of DF_LR_OUT.
23676 * ira-lives.c (process_bb_node_lives): Ditto.
23677 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23678 instead of DF_LR_{OUT,IN}.
23679 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23680 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23681
23682 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23683
23684 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23685 (execute_lower_omp): Always run but take the short way out if -fopenmp
23686 is not given.
23687 (gate_lower_omp): Remove, forcing the pass manager to always run the
23688 pass and always set PROP_gimple_lomp.
23689 (pass_lower_omp): Remove gate function.
23690 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23691 PROP_trees. Instead, require it.
23692 * ipa-cp.c (pass_ipa_cp): Likewise.
23693 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23694 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23695 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23696 and PROP_gimple_leh.
23697
23698 2009-04-03 Richard Guenther <rguenther@suse.de>
23699
23700 PR middle-end/13146
23701 PR tree-optimization/23940
23702 PR tree-optimization/33237
23703 PR middle-end/33974
23704 PR middle-end/34093
23705 PR tree-optimization/36201
23706 PR tree-optimization/36230
23707 PR tree-optimization/38049
23708 PR tree-optimization/38207
23709 PR tree-optimization/38230
23710 PR tree-optimization/38301
23711 PR tree-optimization/38585
23712 PR middle-end/38895
23713 PR tree-optimization/38985
23714 PR tree-optimization/39299
23715 * tree-ssa-structalias.h: Remove.
23716 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23717 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23718 (struct vuse_element_d): Remove.
23719 (struct vuse_vec_d): Likewise.
23720 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23721 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23722 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23723 VUSE_ELEMENT_VAR): Likewise.
23724 (struct voptype_d): Likewise.
23725 (NUM_VOP_FREE_BUCKETS): Likewise.
23726 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23727 (struct stmt_operands_d): Remove.
23728 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23729 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23730 VDEF_NUM, VDEF_VECT): Likewise.
23731 (copy_virtual_operands): Remove.
23732 (operand_build_cmp): Likewise.
23733 (create_ssa_artificial_load_stmt): Likewise.
23734 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23735 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23736 vuse_index and mayuse_index members. Pack and move done and iter_type
23737 members to the front.
23738 (SSA_OP_VMAYUSE): Remove.
23739 (SSA_OP_VIRTUAL_USES): Adjust.
23740 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23741 (unlink_stmt_vdef): Declare.
23742 (add_to_addressable_set): Remove.
23743 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23744 (vrp_visit_stmt): Likewise.
23745 * doc/tree-ssa.texi (Alias analysis): Update.
23746 * doc/invoke.texi (max-aliased-vops): Remove docs.
23747 (avg-aliased-vops): Likewise.
23748 * tree-into-ssa.c (syms_to_rename): Remove.
23749 (need_to_update_vops_p): Likewise.
23750 (need_to_initialize_update_ssa_p): Rename to ...
23751 (update_ssa_initialized_fn): ... this. Track function we are
23752 initialized for.
23753 (symbol_marked_for_renaming): Simplify.
23754 (add_new_name_mapping): Do not set need_to_update_vops_p.
23755 (dump_currdefs): Use SYMS_TO_RENAME.
23756 (rewrite_update_stmt): Always walk all uses/defs.
23757 (dump_update_ssa): Adjust.
23758 (init_update_ssa): Take function argument. Track what we are
23759 initialized for.
23760 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23761 (create_new_def_for): Initialize for cfun, assert we are initialized
23762 for cfun.
23763 (mark_sym_for_renaming): Simplify.
23764 (mark_set_for_renaming): Do not initialize update-ssa.
23765 (need_ssa_update_p): Simplify. Take function argument.
23766 (name_mappings_registered_p): Assert we ask for the correct function.
23767 (name_registered_for_update_p): Likewise.
23768 (ssa_names_to_replace): Likewise.
23769 (release_ssa_name_after_update_ssa): Likewise.
23770 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23771 (dump_decl_set): Do not print a newline.
23772 (debug_decl_set): Do it here.
23773 (dump_update_ssa): And here.
23774 * tree-ssa-loop-im.c (move_computations): Adjust.
23775 (movement_possibility): Likewise.
23776 (determine_max_movement): Likewise.
23777 (gather_mem_refs_stmt): Likewise.
23778 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23779 or NAME_MEMORY_TAG.
23780 * tree-complex.c (update_all_vops): Remove.
23781 (expand_complex_move): Adjust.
23782 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23783 Simplify test for memory referencing statement. Exclude
23784 non-invariant ADDR_EXPRs.
23785 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23786 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23787 (rdg_flag_uses): Likewise.
23788 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23789 related code.
23790 (tree_optimize_tail_calls_1): Also split the
23791 edge from the entry block if we have degenerate PHI nodes in
23792 the first basic block.
23793 * tree.c (init_ttree): Remove memory-tag related code.
23794 (tree_code_size): Likewise.
23795 (tree_node_structure): Likewise.
23796 (build7_stat): Re-write to be build6_stat.
23797 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23798 (SSA_VAR_P): Adjust.
23799 (struct tree_memory_tag): Remove.
23800 (struct tree_memory_partition_tag): Likewise.
23801 (union tree_node): Adjust.
23802 (build7): Re-write to be build6.
23803 * tree-pass.h (pass_reset_cc_flags): Remove.
23804 (TODO_update_address_taken): New flag.
23805 (pass_simple_dse): Remove.
23806 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23807 * params.h (MAX_ALIASED_VOPS): Remove.
23808 (AVG_ALIASED_VOPS): Likewise.
23809 * omp-low.c (expand_omp_taskreg): Update SSA form.
23810 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23811 aliases the lhs in a copy stmt.
23812 * tree-ssa-dse.c (struct address_walk_data): Remove.
23813 (memory_ssa_name_same): Likewise.
23814 (memory_address_same): Likewise.
23815 (get_kill_of_stmt_lhs): Likewise.
23816 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23817 unused stores. Look through PHI nodes into post-dominated regions.
23818 (dse_optimize_stmt): Simplify. Properly remove stores.
23819 (tree_ssa_dse): Compute dominators.
23820 (execute_simple_dse): Remove.
23821 (pass_simple_dse): Likewise.
23822 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23823 gimple_loaded_syms and gimple_stored_syms computation.
23824 * toplev.c (dump_memory_report): Dump alias and pta stats.
23825 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23826 (vn_reference_eq): Likewise.
23827 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23828 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23829 valueize_vuses): Remove.
23830 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23831 (get_def_ref_stmt_vuse): ... this.
23832 (vn_reference_lookup_2): New function.
23833 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23834 walking equivalent vuses. Simplify.
23835 (vn_reference_lookup): Likewise.
23836 (vn_reference_insert): Likewise.
23837 (vn_reference_insert_pieces): Likewise.
23838 (visit_reference_op_call): Simplify.
23839 (visit_reference_op_load): Likewise.
23840 (visit_reference_op_store): Likewise.
23841 (init_scc_vn): Remove shared_lookup_vuses initialization.
23842 (free_scc_vn): Remove shared_lookup_vuses freeing.
23843 (sort_vuses, sort_vuses_heap): Remove.
23844 (get_ref_from_reference_ops): Export.
23845 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23846 vector with single vuse pointer.
23847 (vn_reference_lookup_pieces, vn_reference_lookup,
23848 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23849 (shared_vuses_from_stmt): Remove.
23850 (get_ref_from_reference_ops): Declare.
23851 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23852 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23853 memory-tag related code.
23854 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23855 (likely_value): Add comment, skip static-chain of call statements.
23856 (surely_varying_stmt_p): Adjust.
23857 (gimplify_and_update_call_from_tree): Likewise.
23858 (execute_fold_all_builtins): Do not rebuild alias info.
23859 (gimplify_and_update_call_from_tree): Properly update VOPs.
23860 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23861 (copy_ref_info): Remove memory-tag related code.
23862 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23863 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23864 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23865 computation.
23866 * tree-ssa-dom.c (gimple_p): Remove typedef.
23867 (eliminate_redundant_computations): Adjust.
23868 (record_equivalences_from_stmt): Likewise.
23869 (avail_expr_hash): Likewise.
23870 (avail_expr_eq): Likewise.
23871 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23872 (stmt_makes_single_load): Likewise.
23873 (stmt_makes_single_store): Likewise.
23874 * tree-ssa-alias.c: Rewrite completely.
23875 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23876 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23877 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23878 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23879 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23880 Remove public functions.
23881 (pass_reset_cc_flags): Remove.
23882 (pass_build_alias): Move ...
23883 * tree-ssa-structalias.c (pass_build_alias): ... here.
23884 * tree-ssa-alias.c (may_be_aliased): Move ...
23885 * tree-flow-inline.h (may_be_aliased): ... here.
23886 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23887 count_uses_and_derefs): Move ...
23888 * gimple.c: ... here.
23889 * gimple.h (count_uses_and_derefs): Declare.
23890 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23891 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23892 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23893 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23894 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23895 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23896 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23897 New functions.
23898 * tree-dfa.c (refs_may_alias_p): Move ...
23899 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23900 * tree-ssa-alias.h: New file.
23901 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23902 (statement_sink_location): Likewise.
23903 * opts.c (decode_options): Do not adjust max-aliased-vops or
23904 avg-aliased-vops values.
23905 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23906 (TV_CALL_CLOBBER): Likewise.
23907 (TV_FLOW_SENSITIVE): Likewise.
23908 (TV_FLOW_INSENSITIVE): Likewise.
23909 (TV_MEMORY_PARTITIONING): Likewise.
23910 (TV_ALIAS_STMT_WALK): New timevar.
23911 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23912 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23913 (get_address_description): Remove memory-tag related code.
23914 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23915 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23916 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23917 and immediate uses in statements. Document.
23918 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23919 (dump_symbols): Remove.
23920 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23921 * alias.c (get_deref_alias_set): New function split out from ...
23922 (get_alias_set): ... here.
23923 * alias.h (get_deref_alias_set): Declare.
23924 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23925 type parameter. Remove restrict pointer handling. Create a
23926 ref-all pointer in case type-based alias sets do not conflict.
23927 (vect_analyze_data_refs): Remove SMT related code.
23928 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23929 (vectorizable_load): Likewise.
23930 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23931 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23932 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23933 Ignore vops and SMTs.
23934 (dr_analyze_alias): Likewise..
23935 (free_data_ref): Likewise.
23936 (create_data_ref): Likewise.
23937 (analyze_all_data_dependences): Likewise.
23938 (get_references_in_stmt): Adjust.
23939 * tree-flow-inline.h (gimple_aliases_computed_p,
23940 gimple_addressable_vars, gimple_call_clobbered_vars,
23941 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23942 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23943 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23944 gimple_mem_ref_stats): Remove.
23945 (gimple_vop): New function.
23946 (op_iter_next_use): Remove vuses and mayuses cases.
23947 (op_iter_next_def): Remove vdefs case.
23948 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23949 (clear_and_done_ssa_iter): Do not set removed fields.
23950 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23951 Assert we are not iterating over vuses or vdefs if not also
23952 iterating over uses or defs.
23953 (op_iter_init_use): Likewise.
23954 (op_iter_init_def): Likewise.
23955 (op_iter_next_vdef): Remove.
23956 (op_iter_next_mustdef): Likewise.
23957 (op_iter_init_vdef): Likewise.
23958 (compare_ssa_operands_equal): Likewise.
23959 (link_use_stmts_after): Handle vuse operand.
23960 (is_call_used): Use is_call_clobbered.
23961 (is_call_clobbered): Global variables are always call clobbered,
23962 query the call-clobbers bitmap.
23963 (mark_call_clobbered): Ignore global variables.
23964 (clear_call_clobbered): Likewise.
23965 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23966 virtual operands sanity check.
23967 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23968 Remove.
23969 (TARGET_MEM_REF): Remove TMR_TAG operand.
23970 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23971 Remove call-clobber related code.
23972 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23973 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23974 partitions or escape reason.
23975 (get_single_def_stmt, get_single_def_stmt_from_phi,
23976 get_single_def_stmt_with_phi): Remove.
23977 (dump_referenced_vars): Tidy.
23978 (get_ref_base_and_extent): Allow bare decls.
23979 (collect_dfa_stats): Adjust.
23980 * graphite.c (rename_variables_in_stmt): Adjust.
23981 (graphite_copy_stmts_from_block): Likewise.
23982 (translate_clast): Likewise.
23983 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23984 (EXPR_DIES): New.
23985 (translate_vuse_through_block): Use the oracle.
23986 (phi_translate_1): Adjust.
23987 (value_dies_in_block_x): Use the oracle. Cache the outcome
23988 in EXPR_DIES.
23989 (valid_in_sets): Check if the VUSE for
23990 a REFERENCE is available.
23991 (eliminate): Do not remove stmts during elimination,
23992 instead queue and remove them afterwards.
23993 (do_pre): Do not rebuild alias info.
23994 (pass_pre): Run TODO_rebuild_alias before PRE.
23995 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23996 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23997 (mark_all_v_defs_stmt): Remove.
23998 (mark_all_v_defs_seq): Adjust.
23999 (sra_replace): Likewise.
24000 (scalarize_use): Likewise.
24001 (scalarize_copy): Likewise.
24002 (scalarize_init): Likewise.
24003 (scalarize_ldst): Likewise.
24004 (todoflags): Remove.
24005 (tree_sra): Do not rebuild alias info.
24006 (tree_sra_early): Adjust.
24007 (pass_sra): Run TODO_update_address_taken before SRA.
24008 * tree-predcom.c (set_alias_info): Remove.
24009 (prepare_initializers_chain): Do not call it.
24010 (mark_virtual_ops_for_renaming): Adjust.
24011 (mark_virtual_ops_for_renaming_list): Remove.
24012 (initialize_root_vars): Adjust.
24013 (initialize_root_vars_lm): Likewise.
24014 (prepare_initializers_chain): Likewise.
24015 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
24016 (may_propagate_copy_into_stmt): Likewise.
24017 (merge_alias_info): Do nothing for now.
24018 (propagate_tree_value_into_stmt): Adjust.
24019 (stmt_may_generate_copy): Likewise.
24020 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
24021 not mark symbols for renaming.
24022 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
24023 with the same statement, make sure to update the new pointed-to one.
24024 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
24025 call statements, do not mark symbols for renaming.
24026 (mark_operand_necessary): Dump something.
24027 (ref_may_be_aliased): New function.
24028 (mark_aliased_reaching_defs_necessary_1): New helper function.
24029 (mark_aliased_reaching_defs_necessary): Likewise.
24030 (mark_all_reaching_defs_necessary_1): Likewise.
24031 (mark_all_reaching_defs_necessary): Likewise.
24032 (propagate_necessity): Do not process virtual PHIs. For
24033 non-aliased loads mark all reaching definitions as necessary.
24034 For aliased loads and stores mark the immediate dominating
24035 aliased clobbers as necessary.
24036 (visited): New global static.
24037 (perform_tree_ssa_dce): Free visited bitmap after propagating
24038 necessity.
24039 (remove_dead_phis): Perform simple dead virtual PHI removal.
24040 (remove_dead_stmt): Properly unlink virtual operands when
24041 removing stores.
24042 (eliminate_unnecessary_stmts): Schedule PHI removal after
24043 stmt removal.
24044 * tree-ssa-ter.c (is_replaceable_p): Adjust.
24045 (process_replaceable): Likewise.
24046 (find_replaceable_in_bb): Likewise.
24047 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
24048 based on the single gimple vop.
24049 (verify_flow_insensitive_alias_info): Remove.
24050 (verify_flow_sensitive_alias_info): Likewise.
24051 (verify_call_clobbering): Likewise.
24052 (verify_memory_partitions): Likewise.
24053 (verify_alias_info): Likewise.
24054 (verify_ssa): Adjust..
24055 (execute_update_addresses_taken): Export. Update SSA
24056 manually. Optimize only when optimizing. Use a local bitmap.
24057 (pass_update_address_taken): Remove TODO_update_ssa, add
24058 TODO_dump_func.
24059 (pass_update_address_taken): Just use TODO_update_address_taken.
24060 (init_tree_ssa): Do not initialize addressable_vars.
24061 (verify_ssa): Verify new VUSE / VDEF properties.
24062 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
24063 Do not call verify_alias_info.
24064 (delete_tree_ssa): Clear the VUSE, VDEF operands.
24065 Do not free the loaded and stored syms bitmaps. Reset the escaped
24066 and callused solutions. Do not free addressable_vars.
24067 Remove memory-tag related code.
24068 (warn_uninitialized_var): Aliases are always available.
24069 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
24070 * lambda-code.c (can_put_in_inner_loop): Adjust.
24071 (can_put_after_inner_loop): Likewise.
24072 (perfect_nestify): Likewise.
24073 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
24074 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
24075 (vectorizable_conversion): Do not mark symbols for renaming.
24076 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
24077 (expand_call_inline): Unlink the calls virtual operands before
24078 replacing it.
24079 (tree_function_versioning): Do not call update_ssa if we are not
24080 updating clones. Simplify.
24081 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
24082 (propagate_with_phi): Likewise..
24083 * tree-outof-ssa.c (create_temp): Remove memory tag and call
24084 clobber code. Assert we are not aliased or global.
24085 * tree-flow.h: Include tree-ssa-alias.h
24086 (enum escape_type): Remove.
24087 (struct mem_sym_stats_d): Likewise.
24088 (struct mem_ref_stats_d): Likewise.
24089 (struct gimple_df): Add vop member. Remove global_var,
24090 call_clobbered_vars, call_used_vars, addressable_vars,
24091 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
24092 escaped and callused members.
24093 (struct ptr_info_def): Remove all members, add points-to solution
24094 member pt.
24095 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
24096 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
24097 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
24098 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
24099 (tree-ssa-alias.o): Likewise.
24100 (toplev.o): Add tree-ssa-alias.h
24101 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
24102 * gimple.c (gimple_set_bb): Fix off-by-one error.
24103 (is_gimple_reg): Do not handle memory tags.
24104 (gimple_copy): Also copy virtual operands.
24105 Delay updating the statement. Do not reset loaded and stored syms.
24106 (gimple_set_stored_syms): Remove.
24107 (gimple_set_loaded_syms): Likewise.
24108 (gimple_call_copy_skip_args): Copy the virtual operands
24109 and mark the new statement modified.
24110 * tree-ssa-structalias.c (may_alias_p): Remove.
24111 (set_uids_in_ptset): Take the alias set to prune with as
24112 parameter. Fold in the alias test of may_alias_p.
24113 (compute_points_to_sets): Compute whether a ptr is dereferenced
24114 in a local sbitmap.
24115 (process_constraint): Deal with &ANYTHING on the lhs, reject all
24116 other ADDRESSOF constraints on the lhs.
24117 (get_constraint_for_component_ref): Assert that we don't get
24118 ADDRESSOF constraints from the base of the reference.
24119 Properly generate UNKNOWN_OFFSET for DEREF if needed.
24120 (struct variable_info): Remove collapsed_to member.
24121 (get_varinfo_fc): Remove.
24122 (new_var_info): Do not set collapsed_to.
24123 (dump_constraint): Do not follow cycles.
24124 (dump_constraint_graph): Likewise.
24125 (build_pred_graph): Likewise.
24126 (build_succ_graph): Likewise.
24127 (rewrite_constraints): Likewise.
24128 (do_simple_structure_copy): Remove.
24129 (do_rhs_deref_structure_copy): Remove.
24130 (do_lhs_deref_structure_copy): Remove.
24131 (collapse_rest_of_var): Remove.
24132 (do_structure_copy): Re-implement.
24133 (pta_stats): New global variable.
24134 (dump_pta_stats): New function.
24135 (struct constraint_expr): Make offset signed.
24136 (UNKNOWN_OFFSET): Define special value.
24137 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24138 (solution_set_expand): New helper function split out from ...
24139 (do_sd_constraint): ... here.
24140 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
24141 (do_ds_constraint): Likewise.
24142 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
24143 and CALLUSED = *CALLUSED.
24144 (set_union_with_increment): Make inc argument signed.
24145 (type_safe): Remove.
24146 (get_constraint_for_ptr_offset): Handle unknown and negative
24147 constant offsets.
24148 (first_vi_for_offset): Handle offsets before start. Bail
24149 out early for offsets beyond the variable extent.
24150 (first_or_preceding_vi_for_offset): New function.
24151 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24152 Together with ESCAPED = *ESCAPED this properly computes reachability.
24153 (find_what_var_points_to): New function.
24154 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24155 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24156 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24157 pt_solutions_intersect): New functions.
24158 (compute_call_used_vars): Remove.
24159 (compute_may_aliases): New main entry into PTA computation.
24160 * gimple.h (gimple_p): New typedef.
24161 (struct gimple_statement_base): Remove references_memory_p.
24162 (struct gimple_statement_with_memory_ops_base): Remove
24163 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
24164 members.
24165 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24166 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24167 gimple_set_references_memory): Remove.
24168 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24169 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24170 New functions.
24171 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24172 (verify_expr): Allow RESULT_DECL.
24173 (gimple_duplicate_bb): Do not copy virtual operands.
24174 (gimple_duplicate_sese_region): Adjust.
24175 (gimple_duplicate_sese_tail): Likewise.
24176 (mark_virtual_ops_in_region): Remove.
24177 (move_sese_region_to_fn): Do not call it.
24178 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24179 and pass_simple_dse.
24180 (execute_function_todo): Handle TODO_update_address_taken,
24181 call execute_update_addresses_taken for TODO_rebuild_alias.
24182 (execute_todo): Adjust.
24183 (execute_one_pass): Init dump files early.
24184 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24185 call-clobbered.
24186 (create_general_new_stmt): Clear vops.
24187 * tree-ssa-reassoc.c (get_rank): Adjust.
24188 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24189 symbols for renaming.
24190 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24191 (PARAM_AVG_ALIASED_VOPS): Likewise.
24192 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24193 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24194 * tree-ssa-operands.c: Simplify for new virtual operand representation.
24195 (operand_build_cmp, copy_virtual_operands,
24196 create_ssa_artificial_load_stmt, add_to_addressable_set,
24197 gimple_add_to_addresses_taken): Remove public functions.
24198 (unlink_stmt_vdef): New function.
24199
24200 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24201
24202 * config.gcc (powerpc-*-linux*): Merge variants.
24203
24204 2009-04-02 Chao-ying Fu <fu@mips.com>
24205 James Grosbach <james.grosbach@microchip.com>
24206
24207 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24208 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24209 cop0_sp_offset.
24210 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24211 keep_interrupts_masked_p, use_debug_exception_return_p.
24212 (mips_attribute_table): Add interrupt, use_shadow_register_set,
24213 keep_interrupts_masked, use_debug_exception_return.
24214 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24215 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24216 New functions.
24217 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24218 (mips_print_operand): Process COP0 registers to print $0 .. $31
24219 correctly for GAS to process.
24220 (mips_interrupt_extra_call_saved_reg_p): New function.
24221 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24222 extra registers.
24223 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24224 (mips_compute_frame_info): Add supports for interrupt context that
24225 includes doubleword accumulators and COP0 registers.
24226 (mips_for_each_saved_acc): New function.
24227 (mips_for_each_saved_gpr_and_fpr): Change the function name from
24228 mips_for_each_saved_reg.
24229 (mips_save_reg): Save accumulators.
24230 (mips_kernel_reg_p): A new for_each_rtx callback.
24231 (mips_expand_prologue): Support interrupt handlers.
24232 (mips_restore_reg): Restore accumulators.
24233 (mips_expand_epilogue): Support interrupt handlers.
24234 (mips_can_use_return_insn): Return false for interrupt handlers.
24235 (mips_epilogue_uses): New function.
24236 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24237 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24238 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24239 cop0_move): New instructions.
24240 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24241 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24242 defines.
24243 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24244 New defines.
24245 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24246 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24247 interrupt handlers, we use K0 as the temporary register.
24248 (EPILOGUE_USES): Change to a function call.
24249 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24250 handlers, we use K0 as the temporary register.
24251
24252 * doc/extend.texi (Function Attributes): Document interrupt,
24253 use_shadow_register_set, keep_interrupts_masked,
24254 use_debug_exception_return for MIPS attributes.
24255
24256 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24257
24258 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24259 Remove a number of t-files from tmake_file.
24260 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24261 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24262 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24263 target_prototype, not TARGET_PROTOTYPE.
24264 (LINK_OS_GNU_SPEC): Define.
24265 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24266 and darwin-ldoubdle.c.
24267
24268 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24269
24270 PR driver/39293
24271 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24272 (cpp_options): Ditto.
24273 (default_compilers): Ditto.
24274 (display_help): Ditto.
24275 (process_command): Ditto.
24276 (do_spec_1): Ditto.
24277 (set_input): Use lbasename instead of duplicate code.
24278 (save_temps_prefix): New static for -save-temps=obj.
24279 (save_temps_length): Ditto.
24280
24281 * doc/invoke.texi (-save-temps=obj): Document new variant to
24282 -save-temps switch.
24283
24284 2009-04-02 Jeff Law <law@redhat.com>
24285
24286 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24287 variable.
24288
24289 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24290
24291 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24292 * configure: Regenerated.
24293
24294 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24295
24296 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24297 share the argument list.
24298
24299 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24300
24301 Merge
24302
24303 2009-02-12 Diego Novillo <dnovillo@google.com>
24304
24305 * varpool.c (debug_varpool): New.
24306 * cgraph.h (debug_varpool): Declare.
24307
24308 2009-04-02 Jan Hubicka <jh@suse.cz>
24309
24310 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24311 pass.
24312
24313 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24314
24315 * config/i386/i386.c (ix86_abi): Move initialization to ...
24316 (override_options): Here.
24317
24318 2009-04-02 Christian Bruel <christian.bruel@st.com>
24319
24320 * config/sh/sh.c (sh_dwarf_register_span): New function.
24321 (TARGET_DWARF_REGISTER_SPAN): Define.
24322 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24323
24324 2009-04-02 Ira Rosen <irar@il.ibm.com>
24325
24326 PR tree-optimization/39595
24327 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24328 interleaved loads group is not greater than the SLP group size.
24329
24330 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24331
24332 * builtins.c (is_builtin_name): New.
24333 (called_as_built_in): Use is_builtin_name.
24334 * tree.h (is_builtin_name): New.
24335 * varasm.c (incorporeal_function_p): Use is_builtin_name
24336
24337 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24338
24339 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24340
24341 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24342
24343 PR c++/26693
24344 * c-decl.c (clone_underlying_type): Move this ...
24345 * c-common.c (set_underlying_type): ... here.
24346 Also, make sure the function properly sets TYPE_STUB_DECL() on
24347 the newly created typedef variant type.
24348 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24349 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24350 points.
24351
24352 2009-04-02 Richard Guenther <rguenther@suse.de>
24353
24354 PR tree-optimization/37221
24355 * tree-flow.h (degenerate_phi_result): Declare.
24356 * tree-ssa-dom.c (degenerate_phi_result): Export.
24357 * tree-scalar-evolution.c (analyze_initial_condition): If
24358 the initial condition is defined by a degenerate PHI node
24359 use the degenerate value.
24360
24361 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24362
24363 PR rtl-optimization/39588
24364 * combine.c (merge_outer_ops): Do not set the constant when this
24365 is not necessary.
24366 (simplify_shift_const_1): Do not modify it either in this case.
24367
24368 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24369
24370 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24371 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24372
24373 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24374
24375 PR c/29027
24376 * c-lex.c (interpret_float): Default (no suffix) is double.
24377
24378 2009-04-1 Xinliang David Li <davidxl@google.com>
24379
24380 * config/i386/i386.c (legitimate_constant_p): Recognize
24381 all one vector constant.
24382
24383 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24384
24385 * config/vax/vax.c: Add #includes to silence warnings.
24386 Change #include order to silence two warnings.
24387
24388 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24389
24390 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24391 (ASM_SPEC): Pass -k to the assembler for PIC code.
24392
24393 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24394
24395 * config.gcc: Add vax-*-linux* to the switch.
24396 * config/vax/linux.h: New file. (TARGET_VERSION,
24397 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24398
24399 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24400
24401 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24402 Use predicate macros instead of GET_CODE() == foo.
24403 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24404 ashlsi3, rotrsi3, <unnamed>): Likewise.
24405
24406 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24407
24408 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24409 jbbccihi, jbbccisi): Remova trailing whitespace.
24410 * config/vax/constraints.md: Likewise.
24411 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24412 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24413 * config/vax/predicates.md: Likewise.
24414 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24415 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24416 * config/vax/vax.h: Likewise.
24417 * config/vax/vax.md (nonlocal_goto): Likewise.
24418
24419 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24420
24421 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24422 (indirectable_address_p, adjacent_operands_p): Add spaces around
24423 braces.
24424 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24425
24426 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24427
24428 * config/vax/vax.c (legitimate_constant_address_p,
24429 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24430 index_term_p, reg_plus_index_p, legitimate_address_p,
24431 vax_mode_dependent_address_p): Update comments to match functions
24432 modified by the recent int->bool conversion.
24433
24434 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24435
24436 * config/vax/builtins.md: Update copyright message.
24437 * config/vax/constraints.md: Likewise.
24438 * config/vax/netbsd-elf.h: Likewise.
24439 * config/vax/predicates.md: Likewise.
24440 * config/vax/vax-protos.h: Likewise.
24441 * config/vax/vax.c: Likewise.
24442 * config/vax/vax.h: Likewise.
24443 * config/vax/vax.md: Likewise.
24444 * config/vax/vax.opt: Likewise.
24445
24446 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24447
24448 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24449 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24450 * config/vax/constraints.md (B, R): Likewise.
24451 * config/vax/predicates.md (external_memory_operand,
24452 nonimmediate_addsub_di_operand): Likewise.
24453 * config/vax/vax.c (vax_output_int_add): Likewise.
24454 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24455 untyped_call): Likewise.
24456
24457 2009-04-01 Matt Thomas <matt@3am-software.com>
24458
24459 * config/vax/predicates.md: New file.
24460 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24461 external_const_operand, nonsymbolic_operand, external_memory_operand,
24462 indirect_memory_operand, indexed_memory_operand,
24463 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24464 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24465 predicate.
24466 * config/vax/constraints.md: New file.
24467 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24468 New constraint.
24469 * config/vax/builtins.md: New file.
24470 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24471 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24472 jbbccisi): Define.
24473 * config/vax/vax.opt (mqmath): Add option.
24474 * config/vax/vax.md (isfx): Extend with DI.
24475 (VAXintQH, VAXintQHSD): Define.
24476 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24477 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24478 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24479 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24480 (movdi): Update constraints and use vax_output_int_move().
24481 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24482 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24483 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24484 nonlocal_goto): New.
24485 (mov<mode>): Extend accepted operand types.
24486 (subdi3_old): Rename from subdi3, change update constraints and use
24487 a new implementation.
24488 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24489 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24490 MOVE_RATIO, CLEAR_RATIO): Define.
24491 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24492 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24493 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24494 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24495 (split_quadword_operands): Make static and really allow variable
24496 splitting.
24497 (print_operand_address): Update for PIC generation.
24498 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24499 indexable_address_p, fixup_mathdi_operand,
24500 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24501 (vax_float_literal, legitimate_constant_p,
24502 indirectable_constant_address_p, index_term_p,
24503 reg_plus_index_p): Return bool instead of int.
24504 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24505 where needed.
24506 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24507 generation.
24508 (vax_output_conditional_branch): Indent.
24509 (legitimate_constant_address_p, indirectable_constant_address_p,
24510 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24511 vax_mode_dependent_address_p): Return bool instead of int, update for
24512 PIC generation.
24513 * config/vax/vax-protos.h (legitimate_constant_address_p,
24514 legitimate_constant_p, legitimate_address_p,
24515 vax_mode_dependent_address_p): Change declaration to bool.
24516 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24517 vax_expand_addsub_di_operands, vax_output_int_subtract,
24518 vax_output_movmemsi): Declare.
24519 (split_quadword_operands, vax_float_literal): Delete declaration.
24520 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24521 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24522 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24523 ASM_OUTPUT_DWARF_PCREL): Define.
24524 (ASM_SPEC): Change definition to allow PIC generation.
24525
24526 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24527
24528 * doc/sourcebuild.texi: Update front-end requirements.
24529
24530 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24531
24532 PR target/39226
24533 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24534 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24535 (booldi3_internal3): Use boolean_or_operator instead of
24536 boolean_operator.
24537
24538 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24539
24540 PR c/39605
24541 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24542 declarator whose size is not an integer constant expression but
24543 folds to an integer constant, then treat it as a constant
24544 subsequently.
24545
24546 2009-04-01 Richard Guenther <rguenther@suse.de>
24547
24548 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24549 i * 4 + 2 to (i * 2 + 1) * 2.
24550
24551 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24552
24553 PR c/37772
24554 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24555 return if c_parser_asm_string_literal returned NULL.
24556
24557 2009-04-01 Nick Clifton <nickc@redhat.com>
24558
24559 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24560 already defined.
24561 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24562 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24563 other typedefs to avoid conflicts with libgcc2.c. Define labels
24564 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24565 include it.
24566 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24567 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24568 then include it.
24569
24570 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24571
24572 * varasm.c (default_function_rodata_section): Declare DOT as
24573 const char*.
24574
24575 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24576 Andrey Galkin <agalkin@hypercom.com>
24577
24578 PR/39492
24579 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24580 Make object_name unique for each process.
24581
24582 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24583
24584 PR other/39591
24585 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24586 addressable variables in the parallel that could go out of scope while
24587 running queued tasks.
24588
24589 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24590
24591 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24592 (CASE_VALUES_THRESHOLD): Redefine.
24593 * config/avr/avr.c (avr_override_options): Remove initialization of
24594 avr_case_values_threshold variable.
24595 (avr_case_values_threshold): Remove variable. Add new function.
24596 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24597 * config/avr/avr.opt (mno-tablejump): Remove option.
24598 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24599
24600 2009-04-01 DJ Delorie <dj@redhat.com>
24601
24602 * varasm.c (default_function_rodata_section): Don't assume
24603 anything about where the first '.' in the section name is.
24604
24605 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24606
24607 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24608 rs6000_emit_stack_tie.
24609
24610 2009-03-31 Ian Lance Taylor <iant@google.com>
24611
24612 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24613 gimple_code with GIMPLE_RESX, not RESX.
24614
24615 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24616
24617 * c-common.c (c_get_ident): New.
24618 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24619
24620 2009-04-01 Ben Elliston <bje@au.ibm.com>
24621
24622 * config/rs6000/sysv4.opt (msdata): Improve option description.
24623
24624 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24625
24626 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24627 (divdf3_internal_lat): Remove.
24628 (divxf3_internal_lat): Remove.
24629 (divxf3_internal_thr): Remove.
24630 (divxf): Use divxf3_internal.
24631 * config/ia64/div.md (divsf3_internal_lat): New.
24632 (divdf3_internal_lat): New.
24633 (divxf3_internal): New.
24634
24635 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24636
24637 PR c/448
24638 * Makefile.in (USE_GCC_STDINT): Define.
24639 (stmp-int-hdrs): Install stdint.h if applicable.
24640 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24641 if known.
24642 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24643 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24644 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24645 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24646 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24647 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24648 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24649 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24650 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24651 (c_common_nodes_and_builtins): Initialize
24652 underlying_wchar_type_node. Do not initialize
24653 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24654 nodes for new types.
24655 (c_stddef_cpp_builtins): Define macros for new types.
24656 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24657 Remove.
24658 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24659 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24660 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24661 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24662 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24663 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24664 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24665 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24666 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24667 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24668 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24669 int16_type_node, int32_type_node, int64_type_node,
24670 uint8_type_node, uint16_type_node, c_uint32_type_node,
24671 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24672 int_least32_type_node, int_least64_type_node,
24673 uint_least8_type_node, uint_least16_type_node,
24674 uint_least32_type_node, uint_least64_type_node,
24675 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24676 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24677 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24678 uintptr_type_node): Define.
24679 * c-cppbuiltin.c (builtin_define_constants,
24680 builtin_define_type_minmax): New.
24681 (builtin_define_stdint_macros): Define more macros.
24682 (c_cpp_builtins): Define more limit macros.
24683 (type_suffix): New.
24684 (builtin_define_type_max): Define in terms of
24685 builtin_define_type_minmax. Remove is_long parameter. All
24686 callers changed.
24687 * config.gcc (use_gcc_stdint): Define.
24688 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24689 Add newlib-stdint.h for generic targets.
24690 * config/glibc-stdint.h, config/newlib-stdint.h,
24691 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24692 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24693 * config/score/score.h (UINTPTR_TYPE): Define.
24694 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24695 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24696 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24697 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24698 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24699 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24700 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24701 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24702 * config/spu/spu.h (STDINT_LONG32): Define.
24703 * configure.ac (use_gcc_stdint): Substitute.
24704 * configure: Regenerate.
24705 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24706 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24707 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24708 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24709 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24710 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24711 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24712 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24713 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24714 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24715 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24716 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24717 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24718 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24719 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24720 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24721 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24722 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24723 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24724 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24725 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24726 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24727 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24728 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24729 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24730 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24731 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24732 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24733 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24734
24735 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24736
24737 * loop-iv.c (suitable_set_for_replacement): Renamed from
24738 simplify_using_assignment; changed to return bool and to accept new
24739 args DEST and SRC. Return true iff we find a source/destination pair
24740 that can be used to make a replacement, and fill SRC and DEST if so.
24741 Remove arg ALTERED. Don't deal with altered regs here. All callers
24742 changed.
24743 (simplify_using_initial_values): Deal with altered regs here and track
24744 more precisely the effect they have on the validity of our expression.
24745
24746 * loop-iv.c (simplify_using_condition): A condition of the form
24747 (EQ REG CONST) can be used to simply make a substitution.
24748 (simplify_using_initial_values): Keep track of conditions we have seen
24749 and keep using them to simplify new expressions, while applying the
24750 same substitutions to them as to the expression.
24751
24752 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24753 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24754 GEU/LTU reversed.
24755
24756 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24757 changed. Use this when trying to improve the upper bound.
24758 Generate the comparison by using simplify_gen_relational.
24759
24760 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24761
24762 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24763 functions.
24764 (simplify_using_assignment, simplify_using_initial_values): Call
24765 replace_in_expr to make replacements. Call replace_single_def_regs
24766 once on the initial version of the expression.
24767
24768 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24769
24770 PR target/27237
24771 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24772
24773 2009-03-31 Richard Guenther <rguenther@suse.de>
24774
24775 PR middle-end/31029
24776 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24777 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24778
24779 2009-03-31 Richard Guenther <rguenther@suse.de>
24780
24781 * tree.h (div_if_zero_remainder): Declare.
24782 * fold-const.c (div_if_zero_remainder): Export.
24783 * tree-ssa-forwprop.c
24784 (forward_propagate_addr_into_variable_array_index): Handle
24785 constant array index addition outside of the variable index.
24786
24787 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24788
24789 PR target/39592
24790 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24791 define_splits, floatunssi<mode>2): Require x87 conversions from
24792 DImode to be permitted.
24793
24794 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24795
24796 PR preprocessor/15638
24797 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24798
24799 2009-03-31 Richard Guenther <rguenther@suse.de>
24800
24801 PR middle-end/23401
24802 PR middle-end/27810
24803 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24804 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24805 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24806 a separate statement.
24807 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24808 (lookup_tmp_var): Likewise.
24809 (is_gimple_formal_tmp_or_call_rhs): Remove.
24810 (is_gimple_reg_or_call_rhs): Rename to ...
24811 (is_gimple_reg_rhs_or_call): ... this.
24812 (is_gimple_mem_or_call_rhs): Rename to ...
24813 (is_gimple_mem_rhs_or_call): ... this.
24814 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24815 DECL_GIMPLE_REG_P only if is_formal is true.
24816 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24817 for non-proper post-modify expression gimplification.
24818 (gimplify_self_mod_expr): For post-modify expressions gimplify
24819 the lvalue to a minimal lvalue.
24820 (rhs_predicate_for): Remove formal temp case.
24821 (gimplify_modify_expr_rhs): Likewise.
24822 (gimplify_addr_expr): Use is_gimple_reg.
24823 (gimplify_expr): Remove formal temp cases.
24824 (gimple_regimplify_operands): Likewise.
24825 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24826 and FILTER_EXPR like constants.
24827 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24828 is_gimple_reg.
24829 (is_gimple_formal_tmp_rhs): Remove.
24830 (is_gimple_reg_rhs): Remove special casing.
24831 (is_gimple_mem_rhs): Fix.
24832 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24833 (is_gimple_formal_tmp_var): Remove.
24834 (is_gimple_formal_tmp_reg): Likewise.
24835 (is_gimple_min_lval): Allow invariant component ref parts.
24836 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24837 is_gimple_formal_tmp_reg): Remove declarations.
24838 * tree-cfg.c (verify_expr): Verify that variables with address
24839 taken do not have DECL_GIMPLE_REG_P set.
24840 * tree-mudflap.c (mf_build_check_statement_for): Use
24841 force_gimple_operand instead of gimplify_expr.
24842
24843 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24844
24845 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24846 schedulable rows to compute_split_row.
24847
24848 2009-03-31 Ben Elliston <bje@au.ibm.com>
24849
24850 PR target/31635
24851 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24852 OPT_mvrsave.
24853
24854 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24855
24856 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24857 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24858 * configure: Regenerate.
24859 * config.in: Regenerate.
24860 * config/rs6000/rs6000.opt (mtls-markers): Add.
24861 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24862 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24863 (tls_ld_aix, tls_ld_sysv): Likewise.
24864 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24865 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24866
24867 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24868
24869 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24870
24871 2009-03-30 Jan Hubicka <jh@suse.cz>
24872
24873 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24874 out of RESX.
24875 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24876 detection and label handling.
24877
24878 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24879
24880 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24881 left_conflicts_size.
24882 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24883 ALLOCNO_LEFT_CONFLICTS_SIZE.
24884
24885 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24886 remove_allocno_from_bucket_and_push,
24887 allocno_spill_priority_compare, push_allocnos_to_stack,
24888 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24889 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24890 (setup_allocno_left_conflicts_num): Ditto. Rename to
24891 setup_allocno_left_conflicts_size.
24892 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24893 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24894 setup_allocno_left_conflicts_size instead of
24895 setup_allocno_left_conflicts_num.
24896
24897 * ira-build.c (ira_create_allocno): Use
24898 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24899 ALLOCNO_LEFT_CONFLICTS_NUM.
24900
24901 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24902
24903 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24904 instead of DF_LR_OUT.
24905
24906 * ira-lives.c (process_bb_node_lives): Ditto.
24907
24908 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24909 instead of DF_LR_{OUT,IN}.
24910
24911 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24912
24913 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24914
24915 2009-03-30 Jan Hubicka <jh@suse.cz>
24916
24917 * except.c (label_to_region_map): Fix thinko.
24918
24919 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24920
24921 PR middle-end/38237
24922 * tree.h (tree_find_value): New declaration.
24923 * tree.c (tree_find_value): New function.
24924 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24925
24926 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24927
24928 PR debug/39563
24929 * c-decl.c (struct c_binding): Add locus field.
24930 (bind): Add locus argument, set locus field from it.
24931 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24932 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24933 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24934 implicitly_declare, undeclared_variable, lookup_label,
24935 declare_label, c_make_fname_decl, c_builtin_function,
24936 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24937 bind callers.
24938
24939 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24940
24941 PR target/38781
24942 * config/i386/i386.c (classify_argument): Check total size of
24943 structure.
24944
24945 2009-03-30 Martin Jambor <mjambor@suse.cz>
24946
24947 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24948 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24949 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24950 respectively.
24951
24952 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24953 seen_variable_array_ref while also traversing a union.
24954
24955 * tree-inline.c (optimize_inline_calls): Do not call
24956 cgraph_node_remove_callees.
24957 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24958 (pass_remove_cgraph_callee_edges): New variable.
24959 * passes.c (init_optimization_passes): Add
24960 pass_remove_cgraph_callee_edges after early inlining and before all
24961 late intraprocedural passes.
24962
24963 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24964
24965 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24966
24967 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24968 Fix typos in names.
24969
24970 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24971
24972 * combine.c (simplify_comparison): Use have_insn_for.
24973 * dojump.c (do_jump): Likewise.
24974
24975 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24976
24977 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24978 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24979 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24980 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24981 instead of sparc_compare_emitted.
24982 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24983 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24984 instead of sparc_compare_emitted.
24985
24986 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24987
24988 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24989 enter/exit cfglayout mode.
24990 (pass_partition_block): Require it.
24991 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24992 (combine_instructions): Track basic blocks instead of labels.
24993 (update_cfg_for_uncondjump): New.
24994 (try_combine): Use it. Update jumps after rescanning.
24995 (pass_combine): Require PROP_cfglayout.
24996 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24997
24998 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24999
25000 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
25001 Provide/destroy PROP_cfglayout respectively.
25002 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
25003 * tree-pass.h (PROP_cfglayout): New.
25004
25005 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
25006
25007 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
25008 fold_convert_const_fixed_from_fixed,
25009 fold_convert_const_fixed_from_int,
25010 fold_convert_const_fixed_from_real, fold_negate_const): Do not
25011 set TREE_CONSTANT_OVERFLOW.
25012 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
25013 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
25014
25015 2009-03-30 Ira Rosen <irar@il.ibm.com>
25016
25017 * tree-vect-loop-manip.c: New file.
25018 * tree-vectorizer.c: Update documentation and included files.
25019 (vect_loop_location): Make extern.
25020 (rename_use_op): Move to tree-vect-loop-manip.c
25021 (rename_variables_in_bb, rename_variables_in_loop,
25022 slpeel_update_phis_for_duplicate_loop,
25023 slpeel_update_phi_nodes_for_guard1,
25024 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
25025 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
25026 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
25027 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
25028 find_loop_location): Likewise.
25029 (new_stmt_vec_info): Move to tree-vect-stmts.c.
25030 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
25031 get_vectype_for_scalar_type, vect_is_simple_use,
25032 supportable_widening_operation, supportable_narrowing_operation):
25033 Likewise.
25034 (bb_in_loop_p): Move to tree-vect-loop.c.
25035 (new_loop_vec_info, destroy_loop_vec_info,
25036 reduction_code_for_scalar_code, report_vect_op,
25037 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
25038 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
25039 (vect_supportable_dr_alignment): Likewise.
25040 * tree-vectorizer.h (tree-data-ref.h): Include.
25041 (vect_loop_location): Declare.
25042 Reorganize function declarations according to the new file structure.
25043 * tree-vect-loop.c: New file.
25044 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
25045 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
25046 * tree-vect-data-refs.c: New file.
25047 * tree-vect-patterns.c (timevar.h): Don't include.
25048 * tree-vect-stmts.c: New file.
25049 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
25050 tree-vect-slp.c, tree-vect-loop.c.
25051 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
25052 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
25053 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
25054 (tree-vect-analyze.o): Remove.
25055 (tree-vect-transform.o): Likewise.
25056 (tree-vect-data-refs.o): Add rule.
25057 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
25058 tree-vect-slp.o): Likewise.
25059 (tree-vect-patterns.o): Remove redundant dependencies.
25060 (tree-vectorizer.o): Likewise.
25061 * tree-vect-slp.c: New file.
25062
25063 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25064
25065 * optc-gen.awk: Warn if an option flag has multiple different
25066 help strings.
25067
25068 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
25069
25070 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
25071 -floop-block): Document dependences on PPL, CLooG and Graphite.
25072
25073 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25074
25075 PR rtl-optimization/323
25076 * c-common.c (c_fully_fold, convert_and_check,
25077 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
25078 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
25079 * c-common.def (EXCESS_PRECISION_EXPR): New.
25080 * c-cppbuiltin.c (builtin_define_float_constants): Define
25081 constants with enough digits for long double.
25082 * c-lex.c (interpret_float): Interpret constant with excess
25083 precision where appropriate.
25084 * c-opts.c (c_common_post_options): Set
25085 flag_excess_precision_cmdline. Give an error for
25086 -fexcess-precision=standard for C++ for processors where the
25087 option is significant.
25088 * c-parser.c (c_parser_conditional_expression): Handle excess
25089 precision in condition.
25090 * c-typeck.c (convert_arguments): Handle arguments with excess
25091 precision.
25092 (build_unary_op): Move excess precision outside operation.
25093 (build_conditional_expr): Likewise.
25094 (build_compound_expr): Likewise.
25095 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
25096 (build_modify_expr): Handle excess precision in RHS.
25097 (convert_for_assignment): Handle excess precision in converted
25098 value.
25099 (digest_init, output_init_element, process_init_element): Handle
25100 excess precision in initializer.
25101 (c_finish_return): Handle excess precision in return value.
25102 (build_binary_op): Handle excess precision in operands and add
25103 excess precision as needed for operation.
25104 * common.opt (-fexcess-precision=): New option.
25105 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
25106 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25107 For standard excess precision, output explicit conversion to and
25108 truncation from XFmode.
25109 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
25110 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
25111 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
25112 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
25113 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
25114 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
25115 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
25116 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
25117 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25118 define_splits, sqrt<mode>2): Disable where appropriate for
25119 standard excess precision.
25120 * convert.c (convert_to_real): Do not shorten arithmetic to type
25121 for which excess precision would be used.
25122 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25123 * doc/invoke.texi (-fexcess-precision=): Document option.
25124 (-mfpmath=): Correct index entry.
25125 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25126 flag_excess_precision): New.
25127 * langhooks.c (lhd_post_options): Set
25128 flag_excess_precision_cmdline.
25129 * opts.c (common_handle_option): Handle -fexcess-precision=.
25130 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25131 init_excess_precision): New.
25132 (lang_dependent_init_target): Call init_excess_precision.
25133 * tree.c (excess_precision_type): New.
25134 * tree.h (excess_precision_type): Declare.
25135
25136 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25137
25138 PR c/35235
25139 * c-typeck.c (build_component_ref): Do not copy qualifiers from
25140 non-lvalue to component.
25141
25142 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25143
25144 PR preprocessor/34695
25145 * Makefile.in (c-opts.o): Depend on c-tree.h.
25146 * c-common.c: Move down include of diagnostic.h.
25147 (done_lexing, c_cpp_error): New.
25148 * c-common.h (done_lexing): Declare.
25149 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25150 (parse_in).
25151 * c-opts.c: Include c-tree.h.
25152 (c_common_init_options): Set preprocessor error callback.
25153 (c_common_handle_option): Do not set preprocessor
25154 inhibit_warnings, warnings_are_errors, warn_system_headers,
25155 pedantic_errors or inhibit_warnings flags.
25156 (c_common_post_options): Do not check cpp_errors (parse_in).
25157 (c_common_finish): Do not output dependencies if there were
25158 errors. Do not check return value of cpp_finish.
25159 * c-ppoutput.c (pp_file_change): Set input_location.
25160 * c-tree.h (c_cpp_error): Declare.
25161 * diagnostic.c (diagnostic_set_info_translated): Also initialize
25162 override_column.
25163 (diagnostic_build_prefix): Check override_column.
25164 * diagnostic.h (diagnostic_info): Add override_column field.
25165 (diagnostic_override_column): Define.
25166
25167 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
25168
25169 * c-common.c (c_expand_expr, c_staticp): Remove.
25170 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25171 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25172 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25173 * c-gimplify.c (gimplify_compound_literal_expr,
25174 optimize_compound_literals_in_ctor): Remove.
25175 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25176 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25177 * c-semantics.c (emit_local_var): Remove.
25178
25179 * langhooks-def.h (lhd_expand_expr): Remove.
25180 * langhooks.c (lhd_expand_expr): Remove.
25181 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25182
25183 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25184 handling from c-semantics.c; don't call into langhook.
25185 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25186 * gimplify.c (gimplify_compound_literal_expr,
25187 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25188 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25189 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25190 as was done in c-gimplify.c.
25191 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25192 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25193 Move from c-common.h.
25194 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25195
25196 * tree.c (staticp): Do not call langhook.
25197 * langhooks.c (lhd_staticp): Delete.
25198 * langhooks-def.h (lhd_staticp): Delete prototype.
25199 (LANG_HOOKS_STATICP): Delete.
25200 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25201
25202 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25203 instead of DECL_STMTs.
25204
25205 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25206
25207 PR c/456
25208 PR c/5675
25209 PR c/19976
25210 PR c/29116
25211 PR c/31871
25212 PR c/35198
25213 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25214 void_type_node.
25215 (fold_call_expr): Return a NOP_EXPR from folding rather than the
25216 contained expression.
25217 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25218 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
25219 conditional expressions for C.
25220 (decl_constant_value_for_optimization): Move from
25221 decl_constant_value_for_broken_optimization in c-typeck.c. Check
25222 whether optimizing and that the expression is a VAR_DECL not of
25223 array type instead of doing such checks in the caller. Do not
25224 check pedantic. Call gcc_unreachable for C++.
25225 * c-common.def (C_MAYBE_CONST_EXPR): New.
25226 * c-common.h (c_fully_fold, c_save_expr,
25227 decl_constant_value_for_optimization): New prototypes.
25228 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25229 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25230 EXPR_INT_CONST_OPERANDS): Define.
25231 * c-convert.c (convert): Strip nops from expression.
25232 * c-decl.c (groktypename): Take extra parameters expr and
25233 expr_const_operands. Update call to grokdeclarator.
25234 (start_decl): Update call to grokdeclarator. Add statement for
25235 expressions used in type of decl.
25236 (grokparm): Update call to grokdeclarator.
25237 (push_parm_decl): Update call to grokdeclarator.
25238 (build_compound_literal): Add parameter non_const and build a
25239 C_MAYBE_COSNT_EXPR if applicable.
25240 (grokdeclarator): Take extra parameters expr and
25241 expr_const_operands. Track expressions used in declaration
25242 specifiers and declarators. Fold array sizes and track whether
25243 they are constant expressions and whether they are integer
25244 constant expressions.
25245 (parser_xref_tag): Set expr and expr_const_operands fields in
25246 return value.
25247 (grokfield): Update call to grokdeclarator.
25248 (start_function): Update call to grokdeclarator.
25249 (build_null_declspecs): Set expr and expr_const_operands fields in
25250 return value.
25251 (declspecs_add_type): Handle expressions in typeof specifiers.
25252 * c-parser.c (c_parser_declspecs): Set expr and
25253 expr_const_operands fields for declaration specifiers.
25254 (c_parser_enum_specifier): Likewise.
25255 (c_parser_struct_or_union_specifier): Likewise.
25256 (c_parser_typeof_specifier): Likewise. Update call to
25257 groktypename. Fold expression as needed. Return expressions with
25258 type instead of adding statements.
25259 (c_parser_attributes): Update calls to c_parser_expr_list.
25260 (c_parser_statement_after_labels): Fold expression before passing
25261 to objc_build_throw_stmt.
25262 (c_parser_condition): Fold expression.
25263 (c_parser_asm_operands): Fold expression.
25264 (c_parser_conditional_expression): Use c_save_expr. Update call
25265 to build_conditional_expr.
25266 (c_parser_alignof_expression): Update call to groktypename.
25267 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25268 original_code. Fold expression argument of va_arg. Create
25269 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25270 argument to va_arg. Update calls to groktypename. Fold array
25271 index for offsetof. Verify that first argument to
25272 __builtin_choose_expr has integer type.
25273 (c_parser_postfix_expression_after_paren_type): Update calls to
25274 groktypename and build_compound_literal. Handle expressions with
25275 side effects in type name.
25276 (c_parser_postfix_expression_after_primary): Update call to
25277 c_parser_expr_list. Set original_code for calls to
25278 __builtin_constant_p.
25279 (c_parser_expr_list): Take extra parameter fold_p. Fold
25280 expressions if requested.
25281 (c_parser_objc_type_name): Update call to groktypename.
25282 (c_parser_objc_synchronized_statement): Fold expression.
25283 (c_parser_objc_receiver): Fold expression.
25284 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25285 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25286 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25287 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25288 (struct c_typespec): Add elements expr and expr_const_operands.
25289 (struct c_declspecs): Add elements expr and expr_const_operands.
25290 (groktypename, build_conditional_expr, build_compound_literal):
25291 Update prototypes.
25292 (in_late_binary_op): Declare.
25293 * c-typeck.c (note_integer_operands): New function.
25294 (in_late_binary_op): New variable.
25295 (decl_constant_value_for_broken_optimization): Move to c-common.c
25296 and rename to decl_constant_value_for_optimization.
25297 (default_function_array_conversion): Do not strip nops.
25298 (default_conversion): Do not call
25299 decl_constant_value_for_broken_optimization.
25300 (build_array_ref): Do not fold result.
25301 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
25302 result when operand is a VLA.
25303 (c_expr_sizeof_type): Update call to groktypename. Handle
25304 expressions included in type name. Use C_MAYBE_CONST_EXPR for
25305 result when operand names a VLA type.
25306 (build_function_call): Update call to build_compound_literal.
25307 Only fold result for calls to __builtin_* functions. Strip
25308 NOP_EXPR from INTEGER_CST returned from such functions. Fold
25309 the function designator.
25310 (convert_arguments): Fold arguments. Update call to
25311 convert_for_assignment.
25312 (build_unary_op): Handle increment and decrement of
25313 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
25314 decrement earlier. Fold operand of increment and decrement.
25315 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
25316 built for integer operand. Wrap returns that are INTEGER_CSTs
25317 without being integer constant expressions or that have integer
25318 constant operands without being INTEGER_CSTs.
25319 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25320 (build_conditional_expr): Add operand ifexp_bcp. Track whether
25321 result is an integer constant expression or can be used in
25322 unevaluated parts of one and avoid folding and wrap as
25323 appropriate. Fold operands before possibly doing -Wsign-compare
25324 warnings.
25325 (build_compound_expr): Wrap result for C99 if operands can be used
25326 in integer constant expressions.
25327 (build_c_cast): Update call to digest_init. Do not ignore
25328 overflow from casting floating-point constants to integers. Wrap
25329 results that could be confused with integer constant expressions,
25330 null pointer constants or floating-point constants.
25331 (c_cast_expr): Update call to groktypename. Handle expressions
25332 included in type name.
25333 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25334 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25335 Update calls to convert_for_assignment.
25336 (convert_for_assignment): Take new parameter
25337 null_pointer_constant. Do not strip nops or call
25338 decl_constant_value_for_broken_optimization. Set
25339 in_late_binary_op for conversions to boolean.
25340 (store_init_value): Update call to digest_init.
25341 (digest_init): Take new parameter null_pointer_constant. Do not
25342 call decl_constant_value_for_broken_optimization. pedwarn for
25343 initializers not constant expressions. Update calls to
25344 convert_for_assignment.
25345 (constructor_nonconst): New.
25346 (struct constructor_stack): Add nonconst element.
25347 (really_start_incremental_init, push_init_level, pop_init_level):
25348 Handle constructor_nonconst and nonconst element.
25349 (set_init_index): Call constant_expression_warning for array
25350 designators.
25351 (output_init_element): Fold value. Set constructor_nonconst as
25352 applicable. pedwarn for initializers not constant expressions.
25353 Update call to digest_init. Call constant_expression_warning
25354 where constant initializers are required.
25355 (process_init_element): Use c_save_expr.
25356 (c_finish_goto_ptr): Fold expression.
25357 (c_finish_return): Fold return value. Update call to
25358 convert_for_assignment.
25359 (c_start_case): Fold switch expression.
25360 (c_process_expr_stmt): Fold expression.
25361 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25362 ensure statement expression is not evaluated in constant expression.
25363 (build_binary_op): Track whether results are integer constant
25364 expressions or may occur in such, disable folding and wrap results
25365 as applicable. Fold operands for -Wsign-compare warnings unless
25366 in_late_binary_op.
25367 (c_objc_common_truthvalue_conversion): Handle results folded to
25368 integer constants that are not integer constant expressions.
25369 * doc/extend.texi: Document when typeof operands are evaluated,
25370 that condition of __builtin_choose_expr is an integer constant
25371 expression, and more about use of __builtin_constant_p in
25372 initializers.
25373
25374 2009-03-29 Richard Guenther <rguenther@suse.de>
25375
25376 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25377 propagate addresses of array references.
25378
25379 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25380
25381 * regmove.c (perhaps_ends_bb_p): Remove.
25382 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25383 from INSN and check that the main loop stays within that basic block.
25384 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25385 (regmove_forward_pass): Split out from regmove_optimize. Use
25386 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25387 (regmove_backward_pass): Split out from regmove_optimize. Use
25388 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25389 (regmove_optimize): Simplify.
25390
25391 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25392
25393 PR target/39545
25394 * config/i386/i386.c (classify_argument): Ignore flexible array
25395 member in struct and warn ABI change.
25396
25397 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25398
25399 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25400
25401 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25402 (ix86_adjust_cost): Updated.
25403
25404 2009-03-29 Jan Hubicka <jh@suse.cz>
25405
25406 PR middle-end/28850
25407 * tree-pass.h (pass_cleanup_eh): New function.
25408 (remove_unreachable_regions): Break code handling RTL
25409 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25410 that can not be reached by runtime.
25411 (can_be_reached_by_runtime): New function.
25412 (label_to_region_map): New function.
25413 (num_eh_regions): New function.
25414 (rtl_remove_unreachable_regions): New function.
25415 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25416 (remove_eh_region): New function.
25417 * except.h: Include sbitmap and vecprim.
25418 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25419 num_eh_regions): Declare.
25420 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25421 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25422 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25423 (tree_empty_eh_handler_p): New function.
25424 (cleanup_empty_eh): New function.
25425 (cleanup_eh): New function.
25426 (pass_cleanup_eh): New function.
25427
25428 2009-03-29 Jan Hubicka <jh@suse.cz>
25429
25430 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25431 for removed regions.
25432
25433 2009-03-29 Jan Hubicka <jh@suse.cz>
25434
25435 * except.c (dump_eh_tree): Dump all datastructures.
25436
25437 2009-03-29 Jan Hubicka <jh@suse.cz>
25438
25439 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25440 (duplicate_eh_regions_1): Likewise.
25441 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25442 vector; call EH verification.
25443 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25444 Be ready for region being removed.
25445
25446 2009-03-29 Jan Hubicka <jh@suse.cz>
25447
25448 * bitmap.c (bitmap_last_set_bit): New function.
25449 * bitmap.h (bitmap_last_set_bit): Declare.
25450
25451 2009-03-29 David Ayers <ayers@fsfe.org>
25452
25453 PR objc/27377
25454 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25455 by calling objc_compare_types and surpress warnings about
25456 incompatible C pointers that are compatible ObjC pointers.
25457
25458 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25459
25460 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25461 call initialize_inline_failed.
25462 (initialize_inline_failed): Move it from here ...
25463 * cgraph.c (initialize_inline_failed): ... to here.
25464 (cgraph_create_edge): Call initialize_inline_failed rather than
25465 setting inline_failed directly.
25466
25467 2009-03-29 Ben Elliston <bje@au.ibm.com>
25468
25469 PR target/32542
25470 * sysv4.opt (msdata): Improve comment.
25471 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25472 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25473
25474 2009-03-29 Ben Elliston <bje@au.ibm.com>
25475
25476 PR target/30451
25477 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25478 load and store attributes.
25479
25480 2009-03-29 Ben Elliston <bje@au.ibm.com>
25481
25482 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25483 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25484 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25485 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25486 __builtin_infq and __builtin_huge_valq.
25487
25488 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25489
25490 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25491 atmega8m1 devices.
25492 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25493 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25494
25495 2009-03-28 Xinliang David Li <davidxl@google.com>
25496
25497 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25498 (do_dbg_cnt): New function.
25499
25500 2009-03-28 Jan Hubicka <jh@suse.cz>
25501
25502 Merge from pretty-ipa:
25503
25504 2009-03-27 Jan Hubicka <jh@suse.cz>
25505
25506 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25507 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25508 * passes.c (function_called_by_processed_nodes_p): New.
25509 * ipa-pure-const.c (check_call): Fix handling of operands.
25510 (analyze_function): Dump debug output for skipped bodies.
25511 (local_pure_const): Use function_called_by_processed_nodes_p.
25512 * dwarf2out.c (reference_to_unused): Use output.
25513 * passes.c (do_per_function_toporder): Likewise.
25514
25515 2008-11-12 Jan Hubicka <jh@suse.cz>
25516
25517 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25518 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25519 state_set_in_source enum
25520 (check_decl): Ignore memory tags; do not set fake looping flags;
25521 dump diagnostics.
25522 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25523 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25524 (check_call, analyze_function): Rewrite.
25525 (check_stmt): New.
25526 (add_new_function): Update call of analyze_function.
25527 (generate_summary): Add call of analyze_function.
25528 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25529 (local_pure_const): New function.
25530 (pass_local_pure_const): New pass.
25531 * ipa-inline.c (inline_transform): Set after_inlining.
25532 * tree-eh.c (stmt_can_throw_external): New.
25533 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25534 work with aliasing built.
25535 * tree-flow.h (stmt_can_throw_external): New.
25536 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25537 and local pure/const pass in early and late optimization queue.
25538
25539 2009-03-28 Martin Jambor <mjambor@suse.cz>
25540
25541 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25542 allow_func_align.
25543 (fold_binary): Allow function decl aligment consideration is the
25544 second argument is integer constant one.
25545 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25546 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25547 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25548
25549 2009-03-28 Jan Hubicka <jh@suse.cz>
25550
25551 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25552 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25553 * function.h (rtl_data): Add nothrow flag.
25554 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25555 set DECL_NOTHROW for AVAILABLE functions.
25556
25557 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25558
25559 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25560 following vector keyword has expansion starting with pixel or bool
25561 keyword, expand vector to __vector and pixel or bool to __pixel or
25562 __bool.
25563
25564 PR c++/39554
25565 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25566 warn_if_disallowed_function_p): Removed.
25567 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25568 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25569 warning_if_disallowed_function_p.
25570 * flags.h (warn_if_disallowed_function_p,
25571 warn_disallowed_functions): Removed.
25572 * common.opt (Wdisallowed-function-list=): Removed.
25573 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25574
25575 2009-03-28 Richard Guenther <rguenther@suse.de>
25576
25577 PR tree-optimization/38723
25578 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25579 the entry block.
25580
25581 2009-03-28 Jan Hubicka <jh@suse.cz>
25582
25583 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25584 test introduced by my previous patch.
25585
25586 2009-03-28 Richard Guenther <rguenther@suse.de>
25587
25588 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25589 the PHIs value undefined.
25590
25591 2009-03-28 Jan Hubicka <jh@suse.cz>
25592
25593 * tree-pass.h (pass_fixup_cfg): New pass.
25594 * ipa-inline.c (inline_transform): Set
25595 always_inline_functions_inlined/after_inlining.
25596 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25597 (pass_fixup_cfg): New pass.
25598 * passes.c (init_optimization_passes): Add fixup_cfg.
25599
25600 2009-03-28 Richard Guenther <rguenther@suse.de>
25601
25602 PR tree-optimization/38458
25603 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25604 argument use the arguments copy-of value.
25605
25606 2009-03-28 Richard Guenther <rguenther@suse.de>
25607
25608 PR tree-optimization/38180
25609 * tree-ssa-ccp.c (get_default_value): Simplify.
25610 (likely_value): Likewise.
25611 (surely_varying_stmt_p): Properly handle VOP case.
25612 (ccp_initialize): Likewise.
25613 (ccp_fold): Handle propagating through *&.
25614 (fold_const_aggregate_ref): Also handle decls.
25615
25616 2009-03-28 Jan Hubicka <jh@suse.cz>
25617
25618 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25619 * cgraph.h (cgraph_node): Likewise.
25620 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25621 (cgraph_reset_node): Use process flag.
25622 (cgraph_mark_functions_to_output): Likewise.
25623 (cgraph_expand_function): Likewise.
25624 (cgraph_expand_all_functions): Likewise.
25625 (cgraph_output_in_order): Likewise.
25626 * dwarf2out.c (reference_to_unused): Likewise.
25627 * passes.c do_per_function_toporder): Likewise.
25628
25629 2009-03-28 Jan Hubicka <jh@suse.cz>
25630
25631 Bring from lto-branch:
25632
25633 2008-09-03 Doug Kwan <dougkwan@google.com>
25634
25635 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25636 enums instead of reason strings.
25637 * cgraph.c (cgraph_create_edge): Same.
25638 (cgraph_inline_failed_string): New function.
25639 * cgraph.h (cgraph_inline_failed_t): New enum type.
25640 (cgraph_inline_failed_string): New prototype.
25641 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25642 char pointer to cgraph_inline_failed_t.
25643 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25644 (cgraph_default_inline_p): Ditto.
25645 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25646 to cgraph_inline_failed_t pointer.
25647 * cif-code.def: New file.
25648 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25649 reason string.
25650 (cgraph_check_inline_limits): Change type of REASON to pointer to
25651 cgraph_inline_failed_t. Replace reason strings with enums.
25652 (cgraph_default_inline_p): Ditto.
25653 (cgraph_recursive_inlining_p): Ditto.
25654 (update_caller_keys): Change type of FAILED_REASON to
25655 cgraph_inline_failed_t.
25656 (cgraph_set_inline_failed): Change type of REASON to pointer to
25657 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25658 convert enums to strings for text output.
25659 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25660 to be of type cgraph_inline_failed_t. Replace reason strings with
25661 enums. Call cgraph_inline_failed_string to covert enums
25662 to strings for text output.
25663 (cgraph_decide_inlining): Replace reason strings with enums.
25664 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25665 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25666 for text output.
25667 * tree-inline.c (expand_call_inline): Change type of REASON
25668 to cgraph_inline_failed_t. Replace reason strings with enums.
25669 Call cgraph_inline_failed_string for text output.
25670 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25671 (cgraph.o): Ditto.
25672
25673 2009-03-28 Jan Hubicka <jh@suse.cz>
25674
25675 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25676 cgraph_clone_node): Remove master clone handling.
25677 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25678 * cgraph.h (master_clone): Remove.
25679 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25680 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25681 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25682
25683 2009-03-28 Jan Hubicka <jh@suse.cz>
25684
25685 * cgraph.c (cgraph_function_body_availability): Functions declared
25686 inline are always safe to assume that it is not going to be replaced.
25687
25688 2009-03-28 Richard Guenther <rguenther@suse.de>
25689
25690 PR tree-optimization/38513
25691 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25692 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25693 EXC_PTR_EXPR and FILTER_EXPR.
25694 (get_ref_from_reference_ops): Likewise.
25695
25696 2009-03-28 Richard Guenther <rguenther@suse.de>
25697
25698 PR tree-optimization/38968
25699 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25700 Use FLOOR_MOD_EXPR to compute misalignment.
25701
25702 2009-03-28 Richard Guenther <rguenther@suse.de>
25703
25704 PR tree-optimization/37795
25705 * tree.h (combine_comparisons): Declare.
25706 * fold-const.c (combine_comparisons): Export.
25707 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25708 comparisons.
25709 (ifcombine_iforif): Use combine_comparisons.
25710
25711 2009-03-28 Jan Hubicka <jh@suse.cz>
25712
25713 * tree-eh.c (inlinable_call_p): New function.
25714 (make_eh_edges): Use it.
25715 (verify_eh_edges): Use it.
25716 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25717 * except.c (reachable_next_level): Add inlinable_function argument
25718 (sjlj_find_directly_reachable_regions): Update.
25719 (add_reachable_handler): Do not set saw_any_handlers.
25720 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25721 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25722 Add new inlinable call parameter.
25723 (can_throw_internal, can_throw_external): Update.
25724 * except.h (can_throw_internal_1, can_throw_external_1,
25725 foreach_reachable_handler): Update declaration.
25726
25727 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25728
25729 * config/arm/t-arm-coff, config/h8300/coff.h,
25730 config/i386/i386-aout.h, config/i386/i386-coff.h,
25731 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25732 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25733 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25734 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25735 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25736 sys-types.h: Remove.
25737 * Makefile.in: Remove protoize and fixproto support and references
25738 in comments.
25739 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25740 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25741 Remove.
25742 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25743 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25744 unprotoize$(exeext).
25745 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25746 (.PHONY): Don't depend on proto.
25747 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25748 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25749 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25750 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25751 build/gen-protos.o, build/scan.o, xsys-protos.h,
25752 build/fix-header$(build_exeext), build/fix-header.o,
25753 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25754 stmp-install-fixproto): Remove.
25755 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25756 SYSCALLS.c or fixproto files.
25757 (install-common): Don't install protoize.
25758 (install-headers-tar, install-headers-cpio, install-headers-cp):
25759 Don't depend on $(STMP_FIXPROTO).
25760 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25761 install fixproto files or write out fixproto settings.
25762 (uninstall): Don't uninstall protoize.
25763 * config.gcc (use_fixproto): Remove.
25764 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25765 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25766 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25767 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25768 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25769 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25770 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25771 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25772 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25773 * config/t-vxworks (STMP_FIXPROTO): Remove.
25774 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25775 STMP_FIXPROTO): Remove.
25776 * config.in, configure: Regenerate.
25777 * crtstuff.c (gid_t, uid_t): Don't undefine.
25778 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25779 (arm-*-coff, arm-*-aout: Remove target entries.
25780 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25781 Remove mention of AIX 4.1.
25782 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25783 * doc/invoke.texi (Running Protoize): Remove.
25784 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25785 (Protoize Caveats): Remove.
25786 * tsystem.h: Update comments on headers assumed to exist.
25787
25788 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25789
25790 * genautomata.c: Add a new year to the copyright. Add a new
25791 reference.
25792 (struct insn_reserv_decl): Add comments for member bypass_list.
25793 (find_bypass): Remove.
25794 (insert_bypass): New.
25795 (process_decls): Use insert_bypass.
25796 (output_internal_insn_latency_func): Output all bypasses with the
25797 same input insn in one switch case.
25798
25799 * rtl.def (define_bypass): Describe bypass choice.
25800 * doc/md.texi (define_bypass): Ditto.
25801
25802 2009-03-27 Richard Guenther <rguenther@suse.de>
25803
25804 * gimplify.c (mark_addressable): Export.
25805 * tree-flow.h (mark_addressable): Declare.
25806 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25807 * tree-ssa.c (verify_phi_args): Verify that address taken
25808 variables have TREE_ADDRESSABLE set.
25809
25810 2009-03-27 Richard Guenther <rguenther@suse.de>
25811
25812 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25813 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25814 Do not mark decls TREE_ADDRESSABLE.
25815 (build_fold_addr_expr): Adjust.
25816 (fold_addr_expr): Remove.
25817 (fold_unary): Use build_fold_addr_expr.
25818 (fold_comparison): Likewise.
25819 (split_address_to_core_and_offset): Likewise.
25820 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25821 TREE_ADDRESSABLE.
25822 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25823 (gimplify_modify_expr_to_memcpy): Mark source and destination
25824 addressable.
25825 * omp-low.c (create_omp_child_function): Mark the object decl
25826 TREE_ADDRESSABLE.
25827 (lower_rec_input_clauses): Mark the var we take the address of
25828 TREE_ADDRESSABLE.
25829 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25830
25831 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25832
25833 PR middle-end/39315
25834 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25835 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25836
25837 2009-03-27 Richard Guenther <rguenther@suse.de>
25838
25839 PR tree-optimization/39120
25840 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25841 constraints.
25842 (handle_lhs_call): Process return constraints. Add escape
25843 constraints if necessary.
25844 (handle_const_call): Fill out return constraints. Make nested
25845 case more precise. Avoid consttmp if possible.
25846 (handle_pure_call): Fill out return constraints. Avoid
25847 callused if possible.
25848 (find_func_aliases): Simplify call handling.
25849
25850 2009-03-27 Richard Guenther <rguenther@suse.de>
25851
25852 PR tree-optimization/39120
25853 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25854 as a representative.
25855 (solve_graph): Do propagate CALLUSED.
25856 (handle_pure_call): Use a scalar constraint from CALLUSED for
25857 the return value.
25858 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25859 solutions.
25860
25861 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25862
25863 PR c/39323
25864 * c-common.c (handle_aligned_attribute): Properly check alignment
25865 overflow. Use (1U << i) instead of (1 << i).
25866
25867 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25868
25869 * expr.h (get_mem_align_offset): Updated.
25870
25871 * tree.h (tree_decl_common): Change align to "unsigned int" and
25872 move it before pointer_alias_set.
25873
25874 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25875 Jakub Jelinek <jakub@redhat.com>
25876
25877 PR target/38034
25878 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25879 gr_register_operand with gr_reg_or_0_operand.
25880 (cmpxchg_rel_di): Likewise.
25881 (sync_lock_test_and_set<mode>): Likewise.
25882
25883 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25884
25885 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25886 (true_regnum): Likewise.
25887
25888 * rtlanal.c (subreg_info): Moved to ...
25889 * rtl.h (subreg_info): Here. New.
25890 (subreg_get_info): New.
25891
25892 * rtlanal.c (subreg_get_info): Make it extern.
25893
25894 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25895
25896 PR target/39472
25897 * config/i386/i386.c (ix86_abi): New.
25898 (override_options): Handle -mabi=.
25899 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25900 (ix86_call_abi_override): Likewise.
25901 (init_cumulative_args): Likewise.
25902 (function_arg_advance): Likewise.
25903 (function_arg_64): Likewise.
25904 (function_arg): Likewise.
25905 (ix86_pass_by_reference): Likewise.
25906 (ix86_function_value_regno_p): Likewise.
25907 (ix86_build_builtin_va_list_abi): Likewise.
25908 (setup_incoming_varargs_64): Likewise.
25909 (is_va_list_char_pointer): Likewise.
25910 (ix86_init_machine_status): Likewise.
25911 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25912 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25913 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25914 (ix86_function_abi): Make it static and return enum calling_abi.
25915 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25916 with ix86_abi.
25917 (ix86_fn_abi_va_list): Updated.
25918
25919 * config/i386/i386.h (ix86_abi): New.
25920 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25921 (CONDITIONAL_REGISTER_USAGE): Likewise.
25922 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25923 (machine_function): Likewise.
25924
25925 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25926 with ix86_abi.
25927 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25928 (STACK_BOUNDARY): Likewise.
25929 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25930
25931 * config/i386/i386.opt (mabi=): New.
25932
25933 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25934 return enum calling_abi.
25935 (ix86_function_type_abi): Likewise.
25936 (ix86_function_abi): Removed.
25937
25938 * doc/invoke.texi: Document -mabi= option for x86.
25939
25940 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25941
25942 * builtins.c (real_dconstp): Delete.
25943 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25944
25945 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25946 Jakub Jelinek <jakub@redhat.com>
25947
25948 PR debug/37959
25949 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25950 (gen_subprogram_die): When a function is explicit, generate the
25951 DW_AT_explicit attribute.
25952 * langhooks.h (struct lang_hooks_for_decls): Add
25953 function_decl_explicit_p langhook.
25954 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25955 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25956
25957 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25958
25959 * builtins.c (fold_builtin_memory_op): Optimize memmove
25960 into memcpy if we can prove source and destination don't overlap.
25961
25962 * tree-inline.c: Include gt-tree-inline.h.
25963 (clone_fn_id_num): New variable.
25964 (clone_function_name): New function.
25965 (tree_function_versioning): Use it.
25966 * Makefile.in (GTFILES): Add tree-inline.c.
25967
25968 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25969
25970 * BASE-VER: Change to 4.5.0.
25971
25972 2009-03-27 Xinliang David Li <davidxl@google.com>
25973
25974 PR tree-optimization/39557
25975 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25976
25977 2009-03-27 Xinliang David Li <davidxl@google.com>
25978
25979 PR tree-optimization/39548
25980 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25981 candidate check.
25982
25983 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25984
25985 * c-common.c (pointer_int_sum): Use %wd on return from
25986 tree_low_cst.
25987
25988 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25989
25990 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25991 on return from tree_low_cst.
25992
25993 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25994
25995 PR c++/36799
25996 * ginclude/stdarg.h (va_copy): Define also for
25997 __GXX_EXPERIMENTAL_CXX0X__.
25998
25999 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26000
26001 PR c++/35652
26002 * builtins.h (c_strlen): Do not warn here.
26003 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
26004 * c-common.c (pointer_int_sum): Take an explicit location.
26005 Warn about offsets out of bounds.
26006 * c-common.h (pointer_int_sum): Adjust declaration.
26007
26008 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26009
26010 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
26011 markup glitch.
26012
26013 2009-03-26 Jakub Jelinek <jakub@redhat.com>
26014
26015 PR c++/39554
26016 * opts.c (warn_if_disallowed_function_p): Don't assume
26017 get_callee_fndecl must return non-NULL.
26018
26019 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
26020
26021 PR rtl-optimization/39522
26022 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
26023 when reg_reloaded_valid is set.
26024
26025 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26026
26027 * config/spu/divv2df3.c: New file.
26028 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
26029 (DPBIT_FUNCS): Filter out _div_df.
26030
26031 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
26032
26033 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
26034 a jump insn, count that jump in the distance to the loop start.
26035
26036 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
26037
26038 PR target/39523
26039 * config/sh/sh.c (calc_live_regs): Fix condition for global
26040 registers except PIC_OFFSET_TABLE_REGNUM.
26041
26042 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
26043
26044 PR/39518
26045 * doc/invoke.texi (-mconsole): New.
26046 (-mcygwin): New.
26047 (-mno-cygwin): New.
26048 (-mdll): New.
26049 (-mnop-fun-dllimport): New.
26050 (-mthread): New.
26051 (-mwin32): New.
26052 (-mwindows): New.
26053 (sub section "i386 and x86-64 Windows Options"): New.
26054
26055 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
26056
26057 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
26058 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
26059
26060 2009-03-25 Richard Guenther <rguenther@suse.de>
26061
26062 PR middle-end/39497
26063 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
26064 of -Wno-error.
26065
26066 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
26067
26068 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
26069 neither of haifa/selective schedulers are working.
26070
26071 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26072
26073 * doc/invoke.texi (Debugging Options): Fix description of
26074 -fno-merge-debug-strings.
26075
26076 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
26077
26078 * config/cris/libgcc.ver: New version-script.
26079 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
26080
26081 * configure.ac <GAS features, nop mnemonic>: Add pattern
26082 crisv32-*-* for "nop".
26083 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
26084 * configure: Regenerate.
26085
26086 2009-03-24 Ira Rosen <irar@il.ibm.com>
26087
26088 PR tree-optimization/39529
26089 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
26090 mark_sym_for_renaming for the tag copied to the new vector
26091 pointer.
26092
26093 2009-03-24 Arthur Loiret <aloiret@debian.org>
26094
26095 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
26096 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
26097 EXTRA_SPEC_FUNCTIONS.
26098 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
26099 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
26100 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
26101 -march and -mtune options.
26102
26103 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
26104
26105 * config/m68k/t-rtems: Add m5329 multilib.
26106
26107 2009-03-24 Dodji Seketeli <dodji@redhat.com>
26108 Jakub Jelinek <jakub@redhat.com>
26109
26110 PR debug/39524
26111 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
26112 nodes.
26113
26114 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26115
26116 PR c/39495
26117 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26118 instead of c_parser_expression_conv, if original_code isn't one of the
26119 4 allowed comparison codes, fail.
26120
26121 2009-03-23 Richard Guenther <rguenther@suse.de>
26122
26123 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26124 * tree.h (struct tree_type): Likewise.
26125 * reload.h (struct insn_chain): Likewise.
26126 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26127 * function.h (struct function): Likewise.
26128 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26129
26130 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26131
26132 PR tree-optimization/39516
26133 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26134
26135 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
26136
26137 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26138 should be set true if BITS_PER_WORD of target is bigger than 32
26139
26140 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
26141
26142 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26143 Translate -B-options to -rpath-link. Correct existing
26144 rpath-link and conditionalize on !nostdlib.
26145
26146 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26147
26148 * doc/extend.texi (Function Attributes, Variable Attributes):
26149 Fix typos.
26150 * doc/invoke.texi (Debugging Options, Optimize Options)
26151 (i386 and x86-64 Options, MCore Options): Likewise.
26152
26153 2009-03-20 Jakub Jelinek <jakub@redhat.com>
26154
26155 PR debug/37890
26156 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26157 it for block local namespace aliases.
26158 (gen_decl_die): Pass context_die to gen_namespace_die.
26159
26160 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26161
26162 PR c/39495
26163 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26164 minimum or maximum value.
26165
26166 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
26167
26168 * reginfo.c (globalize_reg): Recompute derived reg sets.
26169
26170 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
26171
26172 PR target/39063
26173 * libgcc2.c (mprotect): Do not use signed arguments for
26174 VirtualProtect, use DWORD arguments. Also fix the 'may
26175 be used uninitialized' warning for the np variable.
26176
26177 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26178
26179 PR target/39496
26180 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26181 functions using regparm calling conventions when not optimizing.
26182 (ix86_function_sseregparm): Similarly for sseregparm calling
26183 conventions.
26184
26185 2009-03-19 Li Feng <nemokingdom@gmail.com>
26186
26187 PR middle-end/39500
26188 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26189 dependence if the first conflict is after niter iterations.
26190
26191 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
26192
26193 PR middle-end/38609
26194 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26195 functions with dynamic stack-pointer adjustments.
26196
26197 2009-03-19 Ben Elliston <bje@au.ibm.com>
26198
26199 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26200 option; change to -msdata=data.
26201
26202 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26203
26204 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26205 and -fopenmp.
26206
26207 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
26208
26209 PR target/35180
26210 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26211
26212 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
26213
26214 * doc/invoke.texi (Code Gen Options): Expand discussion of
26215 -fno-common.
26216
26217 2009-03-18 Jakub Jelinek <jakub@redhat.com>
26218
26219 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26220 * matrix-reorg.c (struct matrix_info): Likewise.
26221 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26222 * rtl.h (struct mem_attrs): Likewise.
26223 * df.h (struct df): Likewise.
26224 * tree-data-ref.h (struct data_dependence_relation): Likewise.
26225 * ira-int.h (struct ira_allocno): Likewise.
26226 * df-scan.c (struct df_collection_rec): Likewise.
26227 * ira.c (struct equivalence): Likewise.
26228 * function.c (struct temp_slot): Likewise.
26229 * cfgloop.h (struct loop): Likewise.
26230
26231 PR debug/39485
26232 * function.c (use_register_for_decl): When not optimizing, disregard
26233 register keyword for variables with types containing methods.
26234
26235 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
26236
26237 PR middle-end/39447
26238 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26239 (is_simple_operand): Call contains_component_ref_p before calling data
26240 reference analysis that would fail on COMPONENT_REFs.
26241
26242 * tree-vrp.c (search_for_addr_array): Fix formatting.
26243
26244 2009-03-18 Richard Guenther <rguenther@suse.de>
26245
26246 * tree-vect-transform.c (vect_loop_versioning): Fold the
26247 generated comparisons.
26248 * tree-vectorizer.c (set_prologue_iterations): Likewise.
26249 (slpeel_tree_peel_loop_to_edge): Likewise.
26250
26251 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26252
26253 PR middle-end/37805
26254 * opts.c (print_specific_help): In addition to `undocumented',
26255 accept `separate' and `joined' flags if passed alone. Describe
26256 output by the first matched one of those.
26257 (common_handle_option): Skip over empty strings.
26258 * gcc.c (display_help): Fix help string for `--help='.
26259 * doc/invoke.texi (Option Summary, Overall Options): With
26260 `--help=', classes and qualifiers can both be repeated, but
26261 only the latter can be negated. One should not pass only
26262 negated qualifiers. Fix markup and examples.
26263
26264 Revert
26265 2008-10-14 Jakub Jelinek <jakub@redhat.com>
26266 PR middle-end/37805
26267 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26268 and -fhelp=separate.
26269
26270 2009-03-17 Jing Yu <jingyu@google.com>
26271
26272 PR middle-end/39378
26273 * function.h (struct rtl_data): Move is_thunk from here...
26274 (struct function): ...to here.
26275 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26276 * varasm.c (assemble_start_function): Change is_thunk from crtl to
26277 cfun.
26278 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26279 cfun.
26280 (alpha_does_function_need_gp, alpha_start_function): Likewise.
26281 (alpha_output_function_end_prologue): Likewise.
26282 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26283 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26284 (rs6000_output_function_epilogue): Likewise.
26285 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26286
26287 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
26288
26289 PR target/39482
26290 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26291 from different units in a single alternative.
26292 (*truncdfsf_i387): Ditto.
26293 (*truncxfsf2_mixed): Ditto.
26294 (*truncxfdf2_mixed): Ditto.
26295
26296 2009-03-17 Jakub Jelinek <jakub@redhat.com>
26297
26298 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26299 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26300
26301 PR debug/39474
26302 * tree-ssa-live.c (remove_unused_locals): Don't remove local
26303 unused non-artificial variables when not optimizing.
26304
26305 PR debug/39471
26306 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26307 DW_TAG_imported_module even if decl is IMPORTED_DECL with
26308 NAMESPACE_DECL in its DECL_INITIAL.
26309
26310 PR middle-end/39443
26311 * optabs.c (set_user_assembler_libfunc): New function.
26312 * expr.h (set_user_assembler_libfunc): New prototype.
26313 * c-common.c: Include libfuncs.h.
26314 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26315 for memcmp, memset, memcpy, memmove and abort.
26316 * Makefile.in (c-common.o): Depend on libfuncs.h.
26317
26318 PR debug/39412
26319 * dwarf2out.c (gen_inlined_enumeration_type_die,
26320 gen_inlined_structure_type_die, gen_inlined_union_type_die,
26321 gen_tagged_type_instantiation_die): Removed.
26322 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26323 do nothing.
26324
26325 2009-03-17 Janis Johnson <janis187@us.ibm.com>
26326
26327 PR testsuite/38526
26328 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26329 its use.
26330 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26331 (check-parallel-%): Ditto.
26332 (check-consistency): Ditto.
26333
26334 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26335
26336 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26337 local variable rhs by NULL_TREE.
26338
26339 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26340
26341 PR target/39477
26342 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26343
26344 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 PR target/39476
26347 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26348
26349 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26350
26351 PR target/39473
26352 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26353 for ms->sysv ABI calls only in 64bit mode.
26354
26355 * config/i386/i386.md (untyped_call): Support 32bit.
26356
26357 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26358
26359 * doc/extend.texi: Replace x86_65 with x86_64.
26360
26361 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26362
26363 PR tree-optimization/39455
26364 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26365 mismatches for POINTER_TYPE_P (type).
26366 (number_of_iterations_le): Likewise.
26367
26368 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26369
26370 * config/picochip/picochip.c: Removed profiling support.
26371 * config/picochip/picochip.md: Removed profiling instruction.
26372 * config/picochip/picochip.h: Removed profiling builtin.
26373
26374 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26375
26376 * doc/install.texi (--with-host-libstdcxx): Document.
26377
26378 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26379
26380 PR target/34299
26381 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26382 generate a warning if the function name does not begin with
26383 "__vector" and the function has either the 'signal' or 'interrupt'
26384 attribute, from here to ...
26385 (avr_declare_function_name): ...here. New function.
26386 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26387 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26388
26389 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26390
26391 PR bootstrap/39454
26392 * cse.c (fold_rtx): Don't modify original const_arg1 when
26393 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26394 separate variable instead.
26395 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26396 from out of range shift counts.
26397 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26398
26399 2009-03-13 Catherine Moore <clm@codesourcery.com>
26400
26401 * config/i386/x-mingw32 (host-mingw32.o): Replace
26402 diagnostic.h with $(DIAGNOSTIC_H).
26403
26404 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26405
26406 PR target/39431
26407 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26408 predicate.
26409 * config/i386/sync.md (sync_compare_and_swap<mode>,
26410 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26411 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26412 into a register.
26413 (sync_double_compare_and_swapdi_pic,
26414 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26415 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26416
26417 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26418
26419 PR target/39445
26420 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26421
26422 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26423
26424 PR target/39327
26425 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26426 (avx_addsubv4df3): Likewise.
26427 (*avx_addsubv4sf3): Likewise.
26428 (sse3_addsubv4sf3): Likewise.
26429
26430 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26431
26432 PR target/38824
26433 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26434
26435 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26436
26437 PR debug/39432
26438 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26439 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26440 registers for allocnos created from user-defined variables.
26441
26442 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26443
26444 PR target/39181
26445 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26446 of non-integer mode as well.
26447
26448 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26449
26450 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26451 for functions for which the parameter types are unknown.
26452
26453 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26454
26455 PR target/39137
26456 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26457 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26458 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26459 * config/i386/i386.c (ix86_local_alignment): For
26460 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26461 long long variables on the stack to avoid dynamic realignment.
26462 Allow the first argument to be a decl rather than type.
26463 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26464
26465 2009-03-11 Nick Clifton <nickc@redhat.com>
26466
26467 PR target/5362
26468 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26469 options.
26470 Add description to mno-lsim option.
26471 * config/mcore/mcore.h: Remove comment about deprecated m4align
26472 option.
26473 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26474 * doc/invoke.texi: Add description of mno-lsim and
26475 mstack-increment options.
26476
26477 * config/fr30/fr30.opt: Document the -mno-lsim option.
26478 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26479 and -mno-lsim options.
26480
26481 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26482
26483 * fold-const.c (fold_comparison): Only call fold_inf_compare
26484 if the mode supports infinities.
26485
26486 2009-03-11 Jason Merrill <jason@redhat.com>
26487
26488 PR debug/39086
26489 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26490 end already did. Notice GIMPLE_CALL modifications of the result.
26491 Don't copy debug information from an ignored decl or a decl from
26492 another function.
26493
26494 2009-03-10 Richard Guenther <rguenther@suse.de>
26495 Nathan Froyd <froydnj@codesourcery.com>
26496
26497 PR middle-end/37850
26498 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26499 (__divMODE3): Likewise.
26500
26501 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26502
26503 PR tree-optimization/39394
26504 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26505 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26506
26507 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26508
26509 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26510 inline asms for register asm ("") declarations.
26511
26512 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26513
26514 * fold-const.c (fold_unary): Fix comment.
26515
26516 2009-03-07 Jan Hubicka <jh@suse.cz>
26517
26518 PR target/39361
26519 * tree-inline.c (setup_one_parameter): Do replacement of const
26520 argument by constant in SSA form.
26521
26522 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26523
26524 PR middle-end/38028
26525 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26526 determine alignment passed to assign_stack_local.
26527 (assign_parms_unsplit_complex): Likewise.
26528 * except.c (sjlj_build_landing_pads): Likewise.
26529
26530 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26531
26532 PR middle-end/39360
26533 * tree-flow.h (add_referenced_var): Return bool instead of void.
26534 * tree-dfa.c (add_referenced_var): Return result of
26535 referenced_var_check_and_insert call.
26536 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26537 of referenced_var_check_and_insert.
26538
26539 PR debug/39372
26540 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26541 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26542 DIE, don't emit it if abstract origin already has it.
26543 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26544 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26545
26546 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26547
26548 * genpreds.c (needs_variable): Fix parentheses at variable name
26549 detection.
26550 (write_tm_constrs_h): Indent generated code.
26551
26552 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26553
26554 * doc/extend.texi (Function Attributes): Add documentation
26555 for isr attributes.
26556
26557 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26558
26559 PR debug/39387
26560 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26561 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26562
26563 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26564
26565 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26566 the loop as bad.
26567
26568 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26569
26570 PR debug/39379
26571 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26572 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26573
26574 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26575
26576 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26577 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26578 constants instead of magic numbers.
26579 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26580 (QI_REG_P): Ditto.
26581 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26582 (x86_64_ms_abi_int_parameter_registers): Ditto.
26583 (x86_64_int_return_registers): Ditto.
26584 (ix86_maybe_switch_abi): Ditto.
26585 (ix86_expand_call): Ditto for clobbered_registers array.
26586 (ix86_hard_regno_mode_ok): Ditto.
26587 (x86_extended_QIreg_mentioned_p): Ditto.
26588
26589 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26590
26591 PR tree-optimization/39349
26592 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26593
26594 * combine.c (gen_lowpart_for_combine): Use omode when generating
26595 clobber.
26596
26597 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26598
26599 PR rtl-optimization/39235
26600 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26601
26602 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26603
26604 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26605
26606 2009-03-04 Richard Guenther <rguenther@suse.de>
26607
26608 PR tree-optimization/39362
26609 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26610 that occur in abnormal PHIs should be varying.
26611
26612 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26613
26614 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26615 Extend comments.
26616 (simple_iv): Take loop as an argument instead of statement.
26617 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26618 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26619 to simple_iv.
26620 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26621 Ditto.
26622 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26623 * matrix-reorg.c (analyze_transpose): Ditto.
26624 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26625 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26626 * tree-predcom.c (ref_at_iteration): Ditto.
26627 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26628
26629 2009-03-04 Richard Guenther <rguenther@suse.de>
26630
26631 PR tree-optimization/39358
26632 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26633 escaped_id and callused_id.
26634 (solve_graph): Likewise.
26635
26636 2009-03-04 Richard Guenther <rguenther@suse.de>
26637
26638 PR tree-optimization/39339
26639 * tree-sra.c (try_instantiate_multiple_fields): Make it
26640 no longer ICE on the above.
26641
26642 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26643
26644 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26645 that fits within Pmode.
26646
26647 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26648
26649 PR middle-end/10109
26650 * tm.texi (LIBCALL_VALUE): Update description.
26651
26652 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26653
26654 PR middle-end/34443
26655 * doc/extend.texi (section): Update description.
26656
26657 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26658
26659 PR middle-end/39345
26660 * tree-inline.c (remapped_type): New.
26661 (can_be_nonlocal): Call remapped_type instead of remap_type.
26662
26663 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26664
26665 PR fortran/39354
26666 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26667 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26668
26669 2009-03-03 Richard Guenther <rguenther@suse.de>
26670
26671 PR middle-end/39272
26672 * tree.c (tree_nonartificial_location): New function.
26673 * tree.h (tree_nonartificial_location): Declare.
26674 * builtins.c (expand_builtin_memory_chk): Provide location
26675 of the call location for artificial function pieces.
26676 (maybe_emit_chk_warning): Likewise.
26677 (maybe_emit_sprintf_chk_warning): Likewise.
26678 (maybe_emit_free_warning): Likewise.
26679 * expr.c (expand_expr_real_1): Likewise.
26680
26681 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26682
26683 PR tree-optimization/39343
26684 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26685 COMPONENT_REF t has ARRAY_TYPE.
26686
26687 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26688
26689 PR middle-end/39335
26690 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26691 when the type precision of the induction variable should be
26692 larger than the type precision of nit.
26693 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26694 * graphite.c (graphite_loop_normal_form): Same.
26695 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26696
26697 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26698
26699 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26700 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26701 numbers to describe clobbered registers.
26702 (*call_value_0_rex64_ms_sysv): Ditto.
26703 * config/i386/mmx.md (mmx_emms): Ditto.
26704 (mmx_femms): Ditto.
26705
26706 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26707
26708 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26709 of ABI_64.
26710
26711 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26712
26713 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26714 (spu_section_type_flags): New function.
26715
26716 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26717
26718 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26719 reg_class_contents of FLOAT_REGS into a temporary.
26720
26721 2009-03-02 Richard Guenther <rguenther@suse.de>
26722 Ira Rosen <irar@il.ibm.com>
26723
26724 PR tree-optimization/39318
26725 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26726 information to the vectorized statement.
26727
26728 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26729
26730 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26731 variable. Use defined names instead of magic constants for REX SSE
26732 registers.
26733
26734 2009-03-01 Richard Guenther <rguenther@suse.de>
26735
26736 PR tree-optimization/39331
26737 * omp-low.c (lower_send_shared_vars): Do not receive new
26738 values for the reference of DECL_BY_REFERENCE parms or results.
26739
26740 2009-03-01 Jan Hubicka <jh@suse.cz>
26741
26742 PR debug/39267
26743 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26744 BLOCK_NONLOCALIZED_VAR): New macros.
26745 (tree_block): Add nonlocalized_vars.
26746 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26747 gen_decl_die): Add origin argument. Allow generation of die with
26748 origin at hand only.
26749 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26750 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26751 of gen_*.
26752 (gen_block_die): Fix checking for unused blocks.
26753 (process_scope_var): Break out from .... ; work with origins only.
26754 (decls_for_scope) ... here; process nonlocalized list.
26755 (dwarf2out_ignore_block): Look for nonlocalized vars.
26756 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26757 vars.
26758 (dump_scope_block): Dump them.
26759 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26760 (remap_block): Likewise.
26761 (can_be_nonlocal): New predicate.
26762 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26763
26764 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26765
26766 * configure: Regenerate.
26767
26768 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26769
26770 * optc-gen.awk: No need to duplicate option flags twice.
26771 Reuse help texts for duplicate options which do not have any.
26772
26773 * gcc.c (display_help): Document --version.
26774
26775 * gcc.c (main): If print_help_list and verbose_flag, ensure
26776 driver output comes before subprocess output.
26777
26778 * optc-gen.awk: Assign all remaining fields to help string,
26779 space-separated, for multi-line help in *.opt.
26780
26781 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26782 -Wno-pedantic-ms-format is for MinGW targets only.
26783
26784 * doc/options.texi (Option file format): Fix bad indentation,
26785 restoring dropped sentence.
26786
26787 2009-02-28 Jan Hubicka <jh@suse.cz>
26788
26789 * tree-inline.c (tree_function_versioning): Output debug info.
26790
26791 2009-02-28 Jan Hubicka <jh@suse.cz>
26792
26793 PR debug/39267
26794 * tree-inline.c (setup_one_parameter): Do not copy propagate
26795 arguments when not optimizing.
26796
26797 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26798
26799 PR target/39327
26800 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26801 (avx_addsubv4df3): Likewise.
26802 (*avx_addsubv4sf3): Likewise.
26803 (sse3_addsubv4sf3): Likewise.
26804 (*avx_addsubv2df3): Likewise.
26805 (sse3_addsubv2df3): Likewise.
26806 (avx_unpckhps256): Correct item selectors.
26807 (avx_unpcklps256): Likewise.
26808 (avx_unpckhpd256): Likewise.
26809 (avx_unpcklpd256): Likewise.
26810
26811 2009-02-28 Jan Hubicka <jh@suse.cz>
26812
26813 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26814 static vars.
26815 (copy_arguments_for_versioning): If var is declared don't declare it.
26816 (tree_function_versioning): First setup substitutions and then copy
26817 args.
26818
26819 2009-02-27 Jan Hubicka <jh@suse.cz>
26820
26821 PR debug/39267
26822 * cgraph.h (varpool_output_debug_info): Remove.
26823 * cgraphunit.c (varpool_output_debug_info): Remove.
26824 * dwarf2out.c (deferred_locations_struct): New struct
26825 (deferred_locations): New type.
26826 (deferred_locations_list): New static var.
26827 (deffer_location): New function.
26828 (gen_variable_die): Use it.
26829 (decls_for_scope): Output info on local static vars.
26830 (dwarf2out_finish): Process deferred locations.
26831 * varpool.c (varpool_output_debug_info): Remove.
26832
26833 2009-02-27 Jan Hubicka <jh@suse.cz>
26834
26835 PR debug/39267
26836 * tree.h (TREE_PROTECTED): Fix comment.
26837 (BLOCK_HANDLER_BLOCK): Remove.
26838 (struct tree_block): Remove handler_block add body_block.
26839 (inlined_function_outer_scope_p): New.
26840 (is_body_block): Remove.
26841 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26842 * dwarf2out.c (is_inlined_entry_point): Remove.
26843 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26844 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26845 code.
26846 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26847 * gimplify.c (gimplify_expr): Gimplify body blocks.
26848 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26849 block with multiple subblocks.
26850 (dump_scope_block): Prettier output; dump more flags and info.
26851 (dump_scope_blocks): New.
26852 (remove_unused_locals): Use dump_scope_blocks.
26853 * tree-flow.h (dump_scope_blocks): Declare.
26854 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26855 * stmt.c (is_body_block): Remove.
26856 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26857 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26858
26859 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26860
26861 PR middle-end/39308
26862 * graphite.c (graphite_loop_normal_form): Do not call
26863 number_of_iterations_exit from a gcc_assert.
26864
26865 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26866
26867 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26868 jumps if COND is NULL.
26869 (find_cond_jump): New function.
26870 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26871 * config/s390/s390.md: Remove z10_cobra attribute value.
26872
26873 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26874
26875 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26876 force_const_mem returns NULL_RTX.
26877
26878 2009-02-26 Jan Hubicka <jh@suse.cz>
26879
26880 PR debug/39267
26881 * cgraph.h (varpool_output_debug_info): Remove.
26882 * cgraphunit.c (varpool_output_debug_info): Remove.
26883 * dwarf2out.c (deferred_locations_struct): New struct
26884 (deferred_locations): New type.
26885 (deferred_locations_list): New static var.
26886 (deffer_location): New function.
26887 (gen_variable_die): Use it.
26888 (decls_for_scope): Output info on local static vars.
26889 (dwarf2out_finish): Process deferred locations.
26890 * varpool.c (varpool_output_debug_info): Remove.
26891
26892 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26893
26894 PR rtl-optimization/39241
26895 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26896 to subreg_offset_representable_p.
26897
26898 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26899
26900 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26901 execute function prototype. Get f and nregs from max_reg_num
26902 and get_insns. Remove the first backward pass as it's dead,
26903 guard the forward pass by flag_expensive_optimizations.
26904 (rest_of_handle_regmove): Delete.
26905 (pass_regmove): Replace it with regmove_optimize.
26906
26907 2009-02-25 Martin Jambor <mjambor@suse.cz>
26908
26909 PR tree-optimization/39259
26910 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26911 calls_alloca function flags.
26912 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26913 calls are detected.
26914
26915 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26916
26917 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26918 flags_set_1_rtx, flags_set_1_set): Delete.
26919 (regmove_optimize): Do not call mark_flags_life_zones.
26920
26921 2009-02-24 Julian Brown <julian@codesourcery.com>
26922
26923 PR target/35965
26924 * config/arm/arm.c (require_pic_register): Only set
26925 cfun->machine->pic_reg once per function.
26926
26927 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26928
26929 * doc/invoke.texi (Link Options): Document an easier way to pass
26930 options that take arguments to the GNU linker using -Xlinker and -Wl.
26931
26932 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26933
26934 PR target/33785
26935 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26936
26937 2009-02-24 Richard Guenther <rguenther@suse.de>
26938
26939 PR debug/39285
26940 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26941
26942 2009-02-24 Richard Guenther <rguenther@suse.de>
26943 Zdenek Dvorak <ook@ucw.cz>
26944
26945 PR tree-optimization/39233
26946 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26947 from converting them to a generic type.
26948
26949 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26950
26951 PR tree-optimization/39260
26952 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26953 contains a condition with a real type.
26954 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26955
26956 2009-02-23 Jason Merrill <jason@redhat.com>
26957
26958 PR c++/38880
26959 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26960 narrowing_initializer_constant_valid_p.
26961 (narrowing_initializer_constant_valid_p): Don't return
26962 null_pointer_node for adding a pointer to itself.
26963
26964 2009-02-23 Jan Hubicka <jh@suse.cz>
26965
26966 PR c/12245
26967 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26968 resizing.
26969
26970 2009-02-23 Jan Hubicka <jh@suse.cz>
26971
26972 PR tree-optimization/37709
26973 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26974 * tree.h (block_ultimate_origin): Declare.
26975 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26976 * tree-ssa-live.c (remove_unused_scope_block_p):
26977 Eliminate blocks containig no instructions nor live variables nor
26978 nested blocks.
26979 (dump_scope_block): New function.
26980 (remove_unused_locals): Enable removal of dead blocks by default;
26981 enable dumping at TDF_DETAILS.
26982
26983 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26984
26985 * config/i386/i386.c (classify_argument): Don't allow COImode
26986 and OImode.
26987 (function_arg_advance_32): Don't allow OImode.
26988 (function_arg_32): Likewise.
26989 (function_value_32): Likewise.
26990 (return_in_memory_32): Likewise.
26991 (function_arg_64): Remove OImode comment.
26992
26993 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26994
26995 PR target/39261
26996 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26997 ix86_expand_vector_set for V4DImode in 64bit mode only.
26998 (ix86_expand_vector_init_one_var): Likewise.
26999
27000 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
27001
27002 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
27003
27004 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
27005
27006 PR bootstrap/39257
27007 * loop-iv.c: Revert last change.
27008 * emit-rtl.c: Likewise.
27009
27010 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
27011
27012 PR target/39256
27013 * config/i386/i386.c (type_natural_mode): Remove an extra
27014 space in the warning message.
27015 (function_value_32): Handle 32-byte vector modes.
27016 (return_in_memory_32): Likewise.
27017
27018 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
27019
27020 * loop-iv.c (truncate_value): New function.
27021 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
27022 of lowpart_subreg.
27023 (lowpart_subreg): Move to...
27024 * emit-rtl.c: ...here.
27025
27026 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
27027
27028 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
27029 accidental and undocumented change at revision 140860.
27030
27031 2009-02-21 Joseph Myers <joseph@codesourcery.com>
27032
27033 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
27034 take gimple_seq * arguments.
27035 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
27036 types_compatible_p langhook.
27037
27038 2009-02-20 Mark Mitchell <mark@codesourcery.com>
27039 Joseph Myers <joseph@codesourcery.com>
27040
27041 * config/arm/arm.c (arm_builtin_va_list): New function.
27042 (arm_expand_builtin_va_start): Likewise.
27043 (arm_gimplify_va_arg_expr): Likewise.
27044 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
27045 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
27046 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
27047 (va_list_type): New variable.
27048 (arm_mangle_type): Mangle va_list_type appropriately.
27049
27050 2009-02-20 Jakub Jelinek <jakub@redhat.com>
27051
27052 PR middle-end/39157
27053 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
27054 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
27055 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
27056 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
27057 parameter to 1000 for -O1 by default.
27058 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
27059 parameter.
27060 * loop-invariant.c: Include params.h.
27061 (move_loop_invariants): Don't call move_single_loop_invariants on
27062 very large loops.
27063
27064 2009-02-20 Jaka Mocnik <jaka@xlab.si>
27065
27066 * calls.c (emit_library_call_value_1): Use slot_offset instead of
27067 offset when calculating bounds for indexing stack_usage_map. Fixes
27068 a buffer overflow with certain target setups.
27069
27070 2009-02-20 Jakub Jelinek <jakub@redhat.com>
27071
27072 PR target/39240
27073 * calls.c (expand_call): Clear try_tail_call if caller and callee
27074 disagree in promotion of function return value.
27075
27076 2009-02-19 Jakub Jelinek <jakub@redhat.com>
27077
27078 PR target/39175
27079 * c-common.c (c_determine_visibility): If visibility changed and
27080 DECL_RTL has been already set, call make_decl_rtl to update symbol
27081 flags.
27082
27083 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
27084
27085 PR c++/39188
27086 * varasm.c (assemble_variable): Don't check DECL_NAME when
27087 globalizing a variable.
27088
27089 2009-02-19 Joseph Myers <joseph@codesourcery.com>
27090
27091 PR c/38483
27092 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
27093 expression before any __builtin_trap call.
27094 * c-typeck.c (build_function_call): Convert and check function
27095 arguments before generating a call to a trap. Evaluate the
27096 function arguments before the trap.
27097
27098 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
27099
27100 PR target/39228
27101 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
27102 (UNSPEC_FXAM_MEM): New unspec.
27103 (fxam<mode>2_i387_with_temp): New insn and split pattern.
27104 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
27105 memory using fxam<mode>2_i387_with_temp to remove excess precision.
27106
27107 2009-02-19 Richard Guenther <rguenther@suse.de>
27108
27109 PR tree-optimization/39207
27110 PR tree-optimization/39074
27111 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
27112 storedanything_tree): New.
27113 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
27114 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
27115 (build_succ_graph): Add edges from STOREDANYTHING to all
27116 non-direct nodes.
27117 (init_base_vars): Initialize STOREDANYTHING.
27118 (compute_points_to_sets): Free substitution info after
27119 building the succ graph.
27120 (ipa_pta_execute): Likewise.
27121
27122 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27123 field.
27124 (do_ds_constraint): Do not add to special var or non-pointer
27125 field solutions.
27126 (type_could_have_pointers): Split out from ...
27127 (could_have_pointers): ... here. For arrays use the element type.
27128 (create_variable_info_for): Initialize may_have_pointers.
27129 (new_var_info): Likewise.
27130 (handle_lhs_call): Make the HEAP variable unknown-sized.
27131 (intra_create_variable_infos): Use a type with pointers for
27132 PARM_NOALIAS, make it unknown-sized.
27133
27134 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
27135
27136 PR target/39224
27137 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27138
27139 2009-02-18 Jason Merrill <jason@redhat.com>
27140
27141 PR target/39179
27142 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27143 value if DECL_EXTERNAL.
27144 * tree-sra.c (sra_walk_gimple_assign): Likewise.
27145 * target.h (gcc_target::binds_local_p): Clarify "module".
27146 * tree.h (TREE_PUBLIC): Clarify "module".
27147
27148 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
27149
27150 PR target/38891
27151 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27152 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27153
27154 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
27155
27156 PR target/39082
27157 * c.opt (Wabi): Support C and ObjC.
27158 (Wpsabi): New.
27159
27160 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27161
27162 * config/i386/i386.c (classify_argument): Warn once about the ABI
27163 change when passing union with long double.
27164
27165 * doc/invoke.texi: Update -Wabi for warning psABI changes.
27166
27167 2009-02-18 Joseph Myers <joseph@codesourcery.com>
27168
27169 PR c/35447
27170 * c-parser.c (c_parser_compound_statement): Always enter and leave
27171 a scope.
27172
27173 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27174
27175 PR target/34587
27176 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27177
27178 2009-02-18 Jakub Jelinek <jakub@redhat.com>
27179
27180 PR tree-optimization/36922
27181 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27182 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27183 Likewise.
27184
27185 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27186
27187 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27188 to 0 for EABI64.
27189
27190 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27191
27192 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27193
27194 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27195
27196 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27197 tree sharing.
27198
27199 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
27200 Richard Sandiford <rdsandiford@googlemail.com>
27201
27202 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27203 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27204 (loongson_biadd): ...this.
27205
27206 2009-02-17 Richard Guenther <rguenther@suse.de>
27207
27208 PR tree-optimization/39202
27209 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27210 a var make sure to follow existing collapses.
27211
27212 2009-02-17 Richard Guenther <rguenther@suse.de>
27213
27214 PR middle-end/39214
27215 * langhooks.c (lhd_print_error_function): Check for NULL block.
27216
27217 2009-02-17 Richard Guenther <rguenther@suse.de>
27218
27219 PR tree-optimization/39204
27220 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27221 of the PHI arg.
27222
27223 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
27224
27225 * config/soft-fp/double.h: Update from glibc CVS.
27226
27227 2009-02-17 Richard Guenther <rguenther@suse.de>
27228
27229 PR tree-optimization/39207
27230 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27231 strict-aliasing warnings for pointers pointing to NULL.
27232
27233 2009-02-16 Joseph Myers <joseph@codesourcery.com>
27234
27235 PR c/35446
27236 * c-parser.c (c_parser_braced_init): Call pop_init_level when
27237 skipping until next close brace.
27238
27239 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
27240
27241 PR target/37049
27242 * config/i386/i386.c (ix86_expand_push): Set memory alignment
27243 to function argument boundary.
27244
27245 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27246
27247 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27248 in the lea_add. Reload eventually constraints it properly.
27249 * config/picochip/constraints.md: Remove the target constraint
27250 "b", since it is not needed anymore.
27251
27252 2009-02-16 Jakub Jelinek <jakub@redhat.com>
27253
27254 * gthr-dce.h: Uglify function parameter and local variable names.
27255 * gthr-gnat.h: Likewise.
27256 * gthr-mipssde.h: Likewise.
27257 * gthr-nks.h: Likewise.
27258 * gthr-posix95.h: Likewise.
27259 * gthr-posix.h: Likewise.
27260 * gthr-rtems.h: Likewise.
27261 * gthr-single.h: Likewise.
27262 * gthr-solaris.h: Likewise.
27263 * gthr-tpf.h: Likewise.
27264 * gthr-vxworks.h: Likewise.
27265 * gthr-win32.h: Likewise.
27266
27267 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
27268
27269 PR target/39196
27270 * config/i386/i386.md: Restrict the new peephole2 to move
27271 between MMX/SSE registers.
27272
27273 2009-02-15 Richard Guenther <rguenther@suse.de>
27274
27275 Revert
27276 2009-02-13 Richard Guenther <rguenther@suse.de>
27277
27278 * configure.ac: Enable LFS.
27279 * configure: Re-generate.
27280 * config.in: Likewise.
27281
27282 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27283
27284 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27285 spu_srqwbyte, spu_srqwbytebc): Define.
27286 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27287 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27288 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27289 "shrqby_<mode>"): New insn-and-split patterns.
27290 * config/spu/spu.c (expand_builtin_args): Determine and return
27291 number of operands using spu_builtin_description data.
27292 (spu_expand_builtin_1): Use it.
27293
27294 2009-02-13 Steve Ellcey <sje@cup.hp.com>
27295
27296 PR target/38056
27297 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27298 TARGET_CONST_GP.
27299
27300 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 PR target/39149
27303 * config/i386/i386.c (override_options): Correct warning
27304 messages for -malign-loops, -malign-jumps and -malign-functions.
27305
27306 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27307
27308 PR target/39152
27309 * config/i386/i386.md: Restrict the new peephole2 to move
27310 between the general purpose registers.
27311
27312 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27313
27314 PR target/39162
27315 * config/i386/i386.c (type_natural_mode): Add a new argument.
27316 Return the original mode and warn ABI change if vector size is 32byte.
27317 (function_arg_advance): Updated.
27318 (function_arg): Likewise.
27319 (ix86_function_value): Likewise.
27320 (ix86_return_in_memory): Likewise.
27321 (ix86_sol10_return_in_memory): Likewise.
27322 (ix86_gimplify_va_arg): Likewise.
27323 (function_arg_32): Don't warn ABX ABI change here.
27324 (function_arg_64): Likewise.
27325
27326 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27327
27328 * loop-iv.c (implies_p): In the final case, test that operands 0
27329 of the two comparisons match.
27330
27331 * config/bfin/bfin.c (find_prev_insn_start): New function.
27332 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27333 (find_next_insn_start): Move.
27334
27335 2009-02-13 Richard Guenther <rguenther@suse.de>
27336
27337 * configure.ac: Enable LFS.
27338 * configure: Re-generate.
27339 * config.in: Likewise.
27340
27341 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27342
27343 PR c/35444
27344 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27345 sizes on syntax error after some arguments have been parsed.
27346
27347 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27348
27349 * doc/invoke.texi (-fira): Remove.
27350
27351 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27352
27353 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27354 * recog.c: Likewise.
27355 * rtl.h: Likewise.
27356
27357 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27358
27359 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27360 (umul_ppmm): Likewise.
27361 (count_leading_zeros): Likewise.
27362 (count_trailing_zeros): Likewise.
27363 (UMUL_TIME): Likewise.
27364
27365 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27366
27367 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27368 soft-fp/t-softfp to tmake_file.
27369
27370 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27371 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27372 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27373 IA64_BUILTIN_INFQ]: New.
27374 (ia64_init_builtins): Initialize __builtin_infq,
27375 __builtin_fabsq and __builtin_copysignq if not HPUX.
27376 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27377 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27378
27379 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27380 SHARED is defined.
27381 (__fixtfti): Likewise.
27382 (__fixunstfti): Likewise.
27383 (__floattitf): Likewise.
27384
27385 * config/ia64/libgcc-glibc.ver: New.
27386 * config/ia64/t-fprules-softfp: Likewise.
27387 * config/ia64/sfp-machine.h: Likewise.
27388
27389 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27390 (LIBGCC2_TF_CEXT): Likewise.
27391 (TF_SIZE): Likewise.
27392 (TARGET_INIT_LIBFUNCS): Likewise.
27393
27394 * config/ia64/t-glibc (SHLINB_MAPFILES):
27395 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27396
27397 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27398
27399 * config/i386/i386.c (construct_container): Rewrite processing
27400 BLKmode with X86_64_SSE_CLASS.
27401
27402 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27403
27404 PR target/39152
27405 * config/i386/i386.md: Replace simplify_replace_rtx with
27406 replace_rtx in the new peephole2.
27407
27408 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27409
27410 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27411 loop unrolling do not happen at -O2.
27412
27413 2009-02-12 Michael Matz <matz@suse.de>
27414
27415 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27416
27417 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27418
27419 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27420 for -g3.
27421
27422 2009-02-12 Ben Elliston <bje@au.ibm.com>
27423
27424 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27425 patterns when updating the back chain. Missed in the 2009-02-10
27426 change.
27427
27428 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27429
27430 * doc/extend.texi (Decimal Floating Types): Update identifier of
27431 draft TR and list of missing support.
27432
27433 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27434
27435 PR middle-end/39154
27436 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27437 bit to variable length decl's flags, add it also to its
27438 pointer replacement variable.
27439
27440 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27441 Jakub Jelinek <jakub@redhat.com>
27442
27443 PR target/39118
27444 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27445 (memory_blockage): New expander.
27446 (*memory_blockage): New insn pattern.
27447 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27448 instead of general blockage at the end of function prologue when
27449 frame pointer is used to access red zone area. Do not emit blockage
27450 when profiling, it is emitted in generic code.
27451 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27452 function epilogue when frame pointer is used to access red zone area.
27453
27454 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27455
27456 PR target/38824
27457 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27458 by arithmetic with memory operands.
27459 * config/i386/predicates.md (commutative_operator): New.
27460
27461 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27462
27463 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27464 bulleted lists.
27465
27466 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27467
27468 * alias.h (record_alias_subset): Declare.
27469 * alias.c (record_alias_subset): Make global.
27470
27471 2009-02-10 Nick Clifton <nickc@redhat.com>
27472
27473 * tree-parloops.c: Change license to GPLv3.
27474 * ipa-struct-reorg.c: Change license to GPLv3.
27475 * ipa-struct-reorg.h: Change license to GPLv3.
27476
27477 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27478
27479 PR c/39084
27480 * c-decl.c (start_struct): Return NULL on error.
27481
27482 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27483
27484 PR middle-end/39124
27485 * cfgloopmanip.c (remove_path): Call remove_bbs after
27486 cancel_loop_tree, not before it.
27487
27488 PR target/39139
27489 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27490 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27491 VAR_DECLs were seen.
27492 * tree-ssa-live.c (remove_unused_locals): Recompute
27493 cfun->has_local_explicit_reg_vars.
27494 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27495 copies or clearings if cfun->has_local_explicit_reg_vars.
27496
27497 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27498
27499 PR target/39118
27500 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27501 of function prologue when frame pointer is used to access
27502 red zone area.
27503
27504 2009-02-10 Richard Guenther <rguenther@suse.de>
27505
27506 PR middle-end/39127
27507 * gimplify.c (gimple_regimplify_operands): Always look if
27508 we need to create a temporary.
27509
27510 2009-02-10 Richard Guenther <rguenther@suse.de>
27511
27512 PR tree-optimization/39132
27513 * tree-loop-distribution.c (todo): New global var.
27514 (generate_memset_zero): Trigger TODO_rebuild_alias.
27515 (tree_loop_distribution): Return todo.
27516
27517 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27518
27519 PR target/39119
27520 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27521 (x86_64_reg_class_name): Removed.
27522 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27523 first one isn't X86_64_SSE_CLASS or any other ones aren't
27524 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27525 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27526 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27527 and 3 X86_64_SSEUP_CLASS.
27528 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27529 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27530
27531 2009-02-10 Ben Elliston <bje@au.ibm.com>
27532
27533 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27534 form instruction to update the stack back chain word, even if the
27535 user has disabled the generation of update instructions.
27536 (movdi_<mode>_update_stack): New.
27537 (movsi_update_stack): Likewise.
27538 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27539 always use an update form instruction to update the stack back
27540 chain word.
27541
27542 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27543
27544 PR middle-end/38953
27545 * graphite.c (if_region_set_false_region): After moving a region in
27546 the false branch of a condition, remove the empty dummy basic block.
27547 (gloog): Remove wrong fix for PR38953.
27548
27549 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27550
27551 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27552 generation due to implicit sign extension.
27553
27554 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27555
27556 PR middle-end/38981
27557 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27558 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27559
27560 2009-02-09 Richard Guenther <rguenther@suse.de>
27561
27562 PR middle-end/35202
27563 * convert.c (convert_to_real): Disable (float)fn((double)x)
27564 to fnf(x) conversion if errno differences may occur and
27565 -fmath-errno is set.
27566
27567 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27568
27569 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27570 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27571 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27572
27573 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27574
27575 PR c/35434
27576 * c-common.c (handle_alias_attribute): Disallow attribute for
27577 anything not a FUNCTION_DECL or VAR_DECL.
27578
27579 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27580
27581 PR c/39035
27582 * real.c (do_compare): Special-case compare of zero against
27583 decimal float value.
27584
27585 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27586
27587 PR c/36432
27588 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27589 as indicating flexible array members unless the field itself is
27590 being declarared as the incomplete array.
27591
27592 2009-02-06 Jan Hubicka <jh@suse.cz>
27593
27594 PR tree-optimization/38844
27595 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27596 is already inlined.
27597
27598 2009-02-06 Richard Guenther <rguenther@suse.de>
27599
27600 PR middle-end/38977
27601 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27602 fork because we may expand it as __gcov_fork.
27603
27604 2009-02-06 Nick Clifton <nickc@redhat.com>
27605
27606 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27607
27608 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27609
27610 PR tree-optimization/35659
27611 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27612 vn_phi_eq): Shortcut if hashcode does not match.
27613 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27614 NULL operands.
27615 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27616 and avoid iterative_hash_expr.
27617 (FOR_EACH_VALUE_ID_IN_SET): New.
27618 (value_id_compare): Remove.
27619 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27620 sort expressions by value id.
27621
27622 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27623
27624 PR target/38991
27625 * config/sh/predicates.md (general_movsrc_operand): Don't check
27626 the subreg of system registers here.
27627
27628 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27629
27630 PR c++/39106
27631 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27632 on the copied decl.
27633
27634 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27635
27636 PR rtl-optimization/39110
27637 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27638 addresses, not aligned ones.
27639
27640 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27641 Richard Guenther <rguenther@suse.de>
27642
27643 PR tree-optimization/39100
27644 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27645 comment says and add edges.
27646
27647 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27648
27649 PR c/35435
27650 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27651 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27652
27653 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27654
27655 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27656 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27657 register_bb_in_sese, new_sese, free_sese): Moved.
27658 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27659 outermost_loop_in_scop, build_scop_iteration_domain,
27660 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27661 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27662 Use loop_in_sese_p instead of loop_in_scop_p.
27663 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27664 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27665 (scopdet_basic_block_info): Fix bug in scop detection.
27666 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27667 eq_loop_to_cloog_loop): Remove.
27668 (nb_loops_around_loop_in_scop, nb_loop
27669 ref_nb_loops): Moved here...
27670 * graphite.h (ref_nb_loops): ... from here.
27671 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27672 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27673 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27674
27675 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27676 Hans-Peter Nilsson <hp@axis.com>
27677
27678 PR rtl-optimization/37889
27679 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27680 Move offset handling from PLUS to before the switch. Use new
27681 arguments when considering SYMBOL_REFs too.
27682 (rtx_addr_can_trap_p): Pass dummy offset and size.
27683 (enum may_trap_p_flags): Remove.
27684 (may_trap_p_1): Pass size from MEM_SIZE.
27685
27686 PR rtl-optimization/38921
27687 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27688 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27689 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27690 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27691
27692 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27693
27694 AVX Programming Reference (January, 2009)
27695 * config/i386/sse.md (*vpclmulqdq): New.
27696
27697 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27698
27699 PR tree-optimization/38977
27700 PR gcov-profile/38292
27701 * calls.c (special_function_p): Disregard __builtin_ prefix.
27702
27703 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27704
27705 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27706 non-indexable addresses even before reload.
27707
27708 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27709
27710 PR c/29129
27711 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27712 as having variable size. Do not give an error for unnamed
27713 parameters with [*] declarators. Give a warning for type names
27714 with [*] declarators and mark them as variable size.
27715 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27716 for sizeof applied to [*] type names.
27717
27718 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27719
27720 PR C++/36607
27721 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27722
27723 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27724
27725 * gcc.c (process_command): Update copyright notice dates.
27726 * gcov.c (print_version): Likewise.
27727 * gcov-dump.c (print_version): Likewise.
27728 * mips-tfile.c (main): Likewise.
27729 * mips-tdump.c (main): Likewise.
27730
27731 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27732
27733 PR c/35433
27734 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27735 for composite type involving a zero-length array type.
27736
27737 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27738
27739 PR target/35318
27740 * function.c (match_asm_constraints_1): Skip over
27741 initial optional % in the constraint.
27742
27743 PR inline-asm/39059
27744 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27745 supported, don't accept FIXED_CSTs.
27746 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27747 and _Sat is used without _Fract/_Accum. Set specs->type to
27748 integer_type_node for cts_fract/cts_accum if fixed point is not
27749 supported.
27750
27751 2009-02-02 Catherine Moore <clm@codesourcery.com>
27752
27753 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27754
27755 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27756
27757 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27758 (ABI_HAS_64BIT_SYMBOLS): Use it.
27759 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27760
27761 2009-02-02 Paul Brook <paul@codesourcery.com>
27762
27763 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27764
27765 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27766
27767 PR inline-asm/39058
27768 * recog.h (asm_operand_ok): Add constraints argument.
27769 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27770 recurse on matching constraint.
27771 (check_asm_operands): Pass constraints as 3rd argument to
27772 asm_operand_ok. Don't look up matching constraint here.
27773 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27774 to asm_operand_ok.
27775
27776 2009-02-02 Ben Elliston <bje@au.ibm.com>
27777
27778 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27779 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27780
27781 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27782
27783 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27784 information. Remove some obsolete information. Reorganize.
27785
27786 * config/pa/fptr.c: Revert license to GPL 2.
27787 * config/pa/milli64.S: Likewise.
27788
27789 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27790
27791 PR target/38904
27792 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27793 LIBRARY name in, instead of hard-coding it.
27794 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27795 extra target make frag to tmake_files according to EH model.
27796 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27797 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27798 frags that define makefile variable EH_MODEL appropriately.
27799 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27800 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27801 to "-sjlj" according to type of EH configured.
27802 (LIBGCC_SONAME): Concatenate it to shared library base name.
27803 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27804 to "_sjlj" according to type of EH configured.
27805 (LIBGCC_SONAME): Concatenate it to shared library base name.
27806 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27807 (SHLIB_LINK): Add missing semicolon to if-else construct.
27808 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27809 string value of "pe_dll" command-line option.
27810 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27811 (SHLIB_SONAME): Use it when overriding t-cygming default.
27812 (SHLIB_IMPLIB): Override t-cygming default.
27813 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27814 string value of "pe_dll" command-line option.
27815
27816 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27817
27818 PR target/38952
27819 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27820 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27821
27822 2009-01-31 Richard Guenther <rguenther@suse.de>
27823
27824 PR tree-optimization/38937
27825 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27826 computing the transitive closure.
27827
27828 2009-01-30 Richard Guenther <rguenther@suse.de>
27829
27830 PR tree-optimization/39041
27831 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27832 Propagate variable indices only if the types match for this stmt.
27833
27834 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27835
27836 PR target/39013
27837 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27838 inline but never defined.
27839
27840 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27841
27842 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27843 (*insv_h_di_reg_extimm): New insn.
27844 (*insv_l<mode>_reg_extimm): New insn.
27845
27846 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27847
27848 * config/picochip/picochip.c (flag_conserve_stack): set
27849 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27850 fconserve-stack. Reduce call-overhead used by inliner.
27851
27852 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27853
27854 PR/38157
27855 * common.opt (flag_conserve_stack): Initialised to zero.
27856
27857 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27858
27859 PR/39002
27860 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27861 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27862 method.
27863
27864 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27865
27866 * ira-color.c (allocno_reload_assign): Update comments.
27867 * regmove.c (regmove_optimize): Likewise.
27868
27869 * ra.h: Removed.
27870
27871 2009-01-29 Robert Millan <rmh@aybabtu.com>
27872
27873 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27874 * config/i386/kopensolaris-gnu.h: New file. Undefine
27875 `MD_UNWIND_SUPPORT'.
27876 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27877
27878 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27879
27880 PR tree-optimization/39007
27881 * tree-loop-distribution.c (generate_builtin): Use
27882 recompute_dominator to compute the immediate dominator of the
27883 basic block just after the loop.
27884
27885 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27886
27887 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27888 (ASM_OUTPUT_DWARF_PCREL): Define.
27889
27890 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27891
27892 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27893 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27894 global. Modify entries about regmove and IRA.
27895
27896 * ra-conflict.c: Remove the file.
27897
27898 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27899
27900 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27901 (pass_regclass_init): Rename to pass_reginfo_init.
27902
27903 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27904
27905 * toplev.h (flag_ira): Remove.
27906
27907 * caller-save.c (setup_save_areas): Remove flag_ira.
27908
27909 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27910
27911 * global.c: Remove the file.
27912
27913 * opts.c (decode_options): Remove flag_ira.
27914
27915 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27916
27917 * regmove.c: Modify file description.
27918 (find_use_as_address, try_auto_increment): Define them only if
27919 AUTO_INC_DEC is defined.
27920 (replacement_quality, replace_in_call_usage, fixup_match_1,
27921 stable_and_no_regs_but_for_p): Remove.
27922 (reg_set_in_bb): Make it static.
27923 (regmove_optimize): Remove flag_ira and code which worked for
27924 !flag_ira.
27925
27926 * local-alloc.c: Remove the file.
27927
27928 * common.opt (fira): Remove.
27929
27930 * ira.c: Include except.h.
27931 (eliminable_regset): Move from global.c.
27932 (mark_elimination): Ditto. Remove flag_ira.
27933 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27934 equiv_mem_modified, validate_equiv_mem_from_store,
27935 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27936 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27937 no_equiv, recorded_label_ref): Move from local-alloc.c.
27938 (update_equiv_regs): Ditto. Make it static.
27939 (print_insn_chain, print_insn_chains): Move it from global.c.
27940 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27941 (build_insn_chain): Ditto. Make it static.
27942 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27943 Rename to init_live_subregs.
27944 (gate_ira): Remove flag_ira.
27945
27946 * regclass.c: Rename reginfo.c. Change file description.
27947 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27948 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27949 (init_reg_sets_1): Remove code for evaluation of
27950 reg_class_superclasses and losing_caller_save_reg_set.
27951 (init_regs): Remove init_reg_autoinc.
27952 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27953 ok_for_base_p_nonstrict): Remove.
27954 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27955 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27956 corresponding entries.
27957 (dump_regclass, record_operand_costs, scan_one_insn,
27958 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27959 record_address_regs, auto_inc_dec_reg_p): Remove.
27960 (gt-regclass.h): Rename to gt-reginfo.h.
27961
27962 * rtl.h (dump_global_regs, retry_global_alloc,
27963 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27964
27965 * Makefile.in (RA_H): Remove.
27966 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27967 Rename regclass.o to reginfo.o.
27968 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27969 gt-reginfo.h.
27970 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27971 (GTFILES): Rename regclass.c to reginfo.c.
27972
27973 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27974 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27975
27976 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27977 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27978 Remove flag_ira.
27979 (finish_spills): Ditto. Remove code for !flag_ira.
27980
27981 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27982
27983 PR middle-end/35854
27984 * doc/invoke.texi (rtl debug options): Complete rewrite.
27985 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27986 to auto_inc_dec".
27987 * mode-switching.c (pass_mode_switching): Rename pass from
27988 "mode-sw" to "mode_sw".
27989 * except.c (pass_convert_to_eh_ranges): Rename pass from
27990 "eh-ranges" to "eh_ranges".
27991 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27992 to "subreg1".
27993
27994
27995 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27996 Alexander Monakov <amonakov@ispras.ru>
27997
27998 PR middle-end/38857
27999 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
28000 register.
28001 (move_exprs_to_boundary): Change return type and pass through
28002 should_move from move_op. Relax assert. Update usage ...
28003 (schedule_expr_on_boundary): ... here. Use should_move instead of
28004 cant_move.
28005 (move_op_orig_expr_found): Indicate that insn was disconnected from
28006 stream.
28007 (code_motion_process_successors): Do not call after_merge_succs
28008 callback if original expression was not found when traversing any of
28009 the branches.
28010 (code_motion_path_driver): Change return type. Update prototype.
28011 (move_op): Update comment. Add a new parameter (should_move). Update
28012 prototype. Set *should_move based on indication provided by
28013 move_op_orig_expr_found.
28014
28015 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
28016
28017 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
28018 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
28019 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
28020 * config/rs6000/rs6000.c (rs6000_override_options): Default
28021 avoid-indexed-addresses on for Power6, off for everything else.
28022 (avoiding_indexed_address_p): New function.
28023 (rs6000_legitimize_address): Use it.
28024 (rs6000_legitimate_address): Likewise.
28025 * config/rs6000/rs6000.md (movXX_updateX): Likewise
28026
28027 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
28028
28029 PR tree-optimization/38997
28030 * tree-loop-distribution.c (generate_memset_zero): Use
28031 POINTER_PLUS_EXPR for a pointer addition.
28032
28033 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
28034
28035 * config/s390/s390.md (bswap<mode>2): New pattern added.
28036
28037 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
28038
28039 * config/s390/s390.md (*tls_load_31): Added type attribute.
28040
28041 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
28042
28043 * config/s390/s390.md: Fix a few comments.
28044
28045 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
28046
28047 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
28048 (*tm<mode>_full): Fixed z10prop attribute.
28049 (*tst<mode>_extimm): Fixed z10prop attribute.
28050 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
28051 (*tstqiCCT_cconly): Fixed z10prop attribute.
28052 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
28053 (*movsi_larl): Fixed z10prop attribute.
28054 (*movsi_zarch): Fixed z10prop attribute.
28055 (*movsi_eas): Fixed z10prop attribute.
28056 (*movhi): Fixed z10prop attribute.
28057 (*movqi): Fixed z10prop attribute.
28058 (*movstrictqi): Fixed z10prop attribute.
28059 (*mov<mode>): Fixed z10prop attribute.
28060 (*movcc): Fixed z10prop attribute.
28061 (*sethighpartdi_64): Fixed z10prop attribute.
28062 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
28063 (*negdi2_sign_cc): Fixed z10prop attribute.
28064 (*negdi2_sign): Fixed z10prop attribute.
28065 (*absdi2_sign_cc): Fixed z10prop attribute.
28066 (*absdi2_sign): Fixed z10prop attribute.
28067 (*negabsdi2_sign_cc): Fixed z10prop attribute.
28068 (*negabsdi2_sign): Fixed z10prop attribute.
28069 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
28070 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
28071 (doloop_si64): Fixed z10prop attribute.
28072 (doloop_si31): Fixed z10prop attribute.
28073 (doloop_long): Fixed z10prop attribute.
28074 (indirect_jump): Fixed z10prop attribute.
28075 (nop): Fixed z10prop attribute.
28076 (main_base_64): Fixed z10prop attribute.
28077 (reload_base_64): Fixed z10prop attribute.
28078
28079 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28080
28081 PR rtl-optimization/38740
28082 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
28083 if !optimize.
28084 * config/mips/mips.c (mips_reorg): Likewise.
28085
28086 2009-01-28 Richard Guenther <rguenther@suse.de>
28087
28088 PR tree-optimization/38926
28089 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
28090 with the correct value id to a value.
28091 (do_regular_insertion): Use the value number of edoubleprime
28092 for the value number of the expr.
28093
28094 Revert
28095 2008-08-21 Richard Guenther <rguenther@suse.de>
28096
28097 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
28098 a PHI ask VN if it is already available.
28099 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
28100 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
28101
28102 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28103
28104 PR middle-end/38934
28105 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
28106 set to varying whenever max has TREE_OVERFLOW set, similarly
28107 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
28108
28109 2009-01-28 Richard Guenther <rguenther@suse.de>
28110
28111 PR middle-end/38908
28112 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
28113 uninitialized aggregate uses in call arguments.
28114
28115 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
28116
28117 PR tree-optimization/38984
28118 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28119 the nothing_id variable if -fno-delete-null-pointer-checks.
28120
28121 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
28122
28123 PR target/38988
28124 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28125 (set_got_offset_rex64): Ditto.
28126
28127 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
28128
28129 PR target/38941
28130 * doc/extend.texi: Improve local variable with asm reg.
28131
28132 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
28133
28134 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28135 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28136 was not supplied then set warn_packed_bitfield_compat to the
28137 default value of 1.
28138 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28139 against 1.
28140
28141 2009-01-27 Richard Guenther <rguenther@suse.de>
28142
28143 PR tree-optimization/38503
28144 * cfgexpand.c (expand_gimple_basic_block): Ignore
28145 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28146 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28147 variables that cannot have TBAA applied.
28148 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28149 statements.
28150
28151 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
28152
28153 PR middle-end/38969
28154 * calls.c (initialize_argument_information): Do not wrap complex
28155 arguments in SAVE_EXPR.
28156
28157 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
28158
28159 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28160 (INSTALL_LIBGCC): Revert typo commit.
28161
28162 2009-01-26 Richard Guenther <rguenther@suse.de>
28163
28164 PR tree-optimization/38745
28165 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28166 from special handling.
28167
28168 2009-01-26 Richard Guenther <rguenther@suse.de>
28169
28170 PR tree-optimization/38745
28171 * tree-ssa.c (execute_update_addresses_taken): Do not include
28172 variables that cannot possibly be a register in not_reg_needs.
28173 Do not clear TREE_ADDRESSABLE on vars that may not become
28174 registers.
28175 * tree-ssa.c (update_alias_info_1): Include those in the set
28176 of addressable vars.
28177
28178 2009-01-26 Richard Guenther <rguenther@suse.de>
28179
28180 PR middle-end/38851
28181 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28182 * tree-ssa-dse.c: Include langhooks.h
28183 (execute_simple_dse): Remove stores with zero size.
28184
28185 2009-01-24 Jakub Jelinek <jakub@redhat.com>
28186
28187 PR c/38957
28188 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28189 as PLUS_EXPR.
28190
28191 2009-01-24 Julian Brown <julian@codesourcery.com>
28192
28193 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28194 config/arm/linux-atomic.c.
28195 * config/arm/linux-atomic.c: New.
28196
28197 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
28198
28199 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28200 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28201 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28202
28203 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
28204
28205 PR c/38938
28206 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28207 properly.
28208
28209 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
28210
28211 PR tree-optimization/38953
28212 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28213 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28214 (gloog): Split the exit of the scop when the scop exit is a loop exit.
28215 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28216 changed the CFG.
28217
28218 2009-01-24 Paul Brook <paul@codesourcery.com>
28219
28220 * config/arm/neon.md (neon_type): Move to arm.md.
28221 (neon_mov<VSTRUCT>): Add neon_type attribute.
28222 * config/arm/arm.md (neon_type): Move to here.
28223 (conds): Add "unconditioal" and use as default for NEON insns.
28224
28225 2009-01-24 Ben Elliston <bje@au.ibm.com>
28226
28227 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28228 void *' warning from -Wc++-compat.
28229 * Makefile.in (dominance.o-warn): Remove.
28230
28231 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
28232
28233 PR tree-optimization/38932
28234 * fold-const.c (fold_unary_ignore_overflow): New.
28235 * tree.h (fold_unary_ignore_overflow): Declare.
28236 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28237 * tree-ssa-sccvn.c (visit_reference_op_load,
28238 simplify_unary_expression): Likewise.
28239
28240 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
28241
28242 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28243 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
28244 regardless of their type.
28245 * c-common.c (handle_packed_attribute): Don't ignore packed on
28246 bitfields.
28247 * c.opt (Wpacked-bitfield-compat): New warning option.
28248 * stor-layout.c (place_field): Warn if offset of a field changed.
28249 * doc/extend.texi (packed): Mention the ABI change.
28250 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28251 (Warning Options): Add it to the list.
28252
28253 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
28254
28255 * c-opts.c (c_common_post_options): Fix a typo in comments.
28256
28257 2009-01-22 Steve Ellcey <sje@cup.hp.com>
28258
28259 PR middle-end/38615
28260 * gimplify.c (gimplify_init_constructor): Fix promotion of const
28261 variables to static.
28262 * doc/invoke.texi (-fmerge-all-constants): Update description.
28263
28264 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
28265
28266 PR target/38931
28267 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28268 (*movdi_1_rex64): Use type "mmx" for alternative 5.
28269
28270 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
28271
28272 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28273 a word boundary.
28274 (LOCAL_ALIGNMENT): Similarly.
28275
28276 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28277 Joseph Myers <joseph@codesourcery.com>
28278
28279 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28280 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28281 * config/arm/arm-tune.md: Regenerate.
28282 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28283 -march=iwmmxt2.
28284
28285 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28286
28287 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28288 version number to five.
28289
28290 2009-01-22 Dodji Seketeli <dodji@redhat.com>
28291
28292 PR c++/38930
28293 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28294 * c-common.c (set_underlying_type): Likewise.
28295 (is_typedef_decl ): Likewise
28296 * tree.h: Likewise
28297 (set_underlying_type): Likewise.
28298 (is_typedef_type): Likewise.
28299
28300 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
28301
28302 PR middle-end/38587
28303 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28304 crossing setjmps.
28305
28306 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28307
28308 PR bootstrap/37660
28309 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
28310 (LIBGCC_SPEC): Don't define.
28311 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
28312
28313 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
28314
28315 PR rtl-optimization/38879
28316 * alias.c (base_alias_check): Unaligned access via AND address can
28317 alias all surrounding object types except those with sizes equal
28318 or wider than the size of unaligned access.
28319
28320 2009-01-21 Dodji Seketeli <dodji@redhat.com>
28321
28322 PR c++/26693
28323 * c-decl.c (clone_underlying_type): Move this ...
28324 * c-common.c (set_underlying_type): ... here.
28325 Also, make sure the function properly sets TYPE_STUB_DECL() on
28326 the newly created typedef variant type.
28327 (is_typedef_decl ): New entry point.
28328 * tree.h: Added a new member member_types_needing_access_check to
28329 struct tree_decl_non_common.
28330 (set_underlying_type): New entry point.
28331 (is_typedef_type): Likewise.
28332
28333 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28334
28335 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28336 Check whether two instructions have memory references that
28337 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28338 are helper functions for traversing.
28339 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28340 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28341 not to draw dependency edge for instructions with non-conflicting
28342 alias sets.
28343
28344 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28345
28346 PR other/38758
28347 * longlong.h: Update copyright years. Use soft-fp license notice.
28348 Sync __clz_tab declaration with glibc.
28349
28350 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28351
28352 PR target/30687
28353 * doc/extend.texi (syscall_linkage): New.
28354 (version_id): Modify.
28355
28356 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28357 Richard Guenther <rguenther@suse.de>
28358
28359 PR tree-optimization/38747
28360 PR tree-optimization/38748
28361 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28362 conversion if the base address is an indirect reference and the
28363 aliasing sets could cause issues.
28364
28365 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28366
28367 * common.opt (fgraphite, fgraphite-identity): Add comment for
28368 explaining why these options are not documented.
28369
28370 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28371
28372 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28373 gimple_call_lhs is NULL.
28374
28375 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28376
28377 PR target/38868
28378 * emit-rtl.c (adjust_address_1): Make sure memref is never
28379 overwritten.
28380
28381 2009-01-20 Ben Elliston <bje@au.ibm.com>
28382
28383 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28384 const qualifier from arg parameter. Remove unnecessary cast to char *.
28385 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28386 const qualifier from arg 2.
28387
28388 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28389
28390 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28391
28392 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28393
28394 PR c/38869
28395 * rtl.h (reinit_regs): New prototype.
28396 * regclass.c: Include ira.h.
28397 (reinit_regs): New.
28398 * Makefile.in (regclass.o): Add ira.h.
28399 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28400
28401 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28402
28403 PR target/38736
28404 * c-common.c (handle_aligned_attribute): Use
28405 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28406 default alignment value.
28407
28408 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28409
28410 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28411 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28412
28413 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28414 __BIGGEST_ALIGNMENT__.
28415
28416 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28417
28418 2009-01-18 Richard Guenther <rguenther@suse.de>
28419
28420 PR tree-optimization/38819
28421 * tree-flow.h (operation_could_trap_helper_p): Declare.
28422 * tree-eh.c (operation_could_trap_helper_p): Export.
28423 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28424 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28425 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28426 are about to insert a possibly trapping instruction and fail
28427 in this case.
28428
28429 2009-01-18 Andreas Schwab <schwab@suse.de>
28430
28431 * doc/install.texi (Configuration): Remove obsolete paragraph
28432 about use of --with-gnu-ld with --with-gnu-as.
28433
28434 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28435
28436 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28437 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28438 Follow spelling conventions.
28439
28440 2009-01-18 Ben Elliston <bje@au.ibm.com>
28441
28442 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28443 C++ warning about implicit conversion from void * to struct
28444 bitmap_head_def *.
28445 (bitmap_obstack_free): Likewise for bitmap_element *.
28446 * Makefile.in (bitmap.o-warn): Remove.
28447
28448 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28449
28450 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28451
28452 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28453 Tobias Grosser <tobi.grosser@amd.com>
28454
28455 * graphite.c (graphite_trans_scop_block): Do not block single
28456 nested loops.
28457
28458 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28459
28460 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28461 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28462 test with assertion.
28463
28464 2009-01-16 Richard Guenther <rguenther@suse.de>
28465
28466 PR tree-optimization/38835
28467 PR middle-end/36227
28468 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28469 and INT + PTR -> (INT)(PTR p+ INT) folding.
28470 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28471
28472 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28473
28474 PR target/38554
28475 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28476 the subreg from a lowpart subreg if it is also casting the value.
28477
28478 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28479 Tobias Grosser <tobi.grosser@amd.com>
28480
28481 * graphite.c (compare_prefix_loops): New.
28482 (build_scop_canonical_schedules): Rewritten.
28483 (graphite_transform_loops): Move build_scop_canonical_schedules
28484 after build_scop_iteration_domain.
28485
28486 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28487 Tobias Grosser <tobi.grosser@amd.com>
28488
28489 * graphite.c (add_conditions_to_domain): Add the loops to
28490 the dimension of the iteration domain. Do copy the domain
28491 only when it exists.
28492 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28493 (add_conditions_to_constraints): New.
28494 (can_generate_code_stmt, can_generate_code): Removed.
28495 (gloog): Do not call can_generate_code.
28496 (graphite_transform_loops): Call add_conditions_to_constraints
28497 after building the iteration domain.
28498
28499 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28500
28501 PR tree-optimization/38789
28502 * tree-ssa-threadedge.c
28503 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28504 __builtin_constant_p.
28505
28506 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28507
28508 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28509 examined before deleting them.
28510
28511 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28512
28513 * function.c (aggregate_value_p): Correctly extract the function
28514 type from CALL_EXPR_FN lookup.
28515
28516 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28517
28518 * config/picochip/picochip.c (picochip_override_options): Revert
28519 CFI asm flag disable commited previously.
28520
28521 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28522 Tobias Grosser <tobi.grosser@amd.com>
28523 Jan Sjodin <jan.sjodin@amd.com>
28524
28525 * graphite.c (scan_tree_for_params): On substractions negate
28526 all the coefficients of the term.
28527 (clast_to_gcc_expression_red): New. Handle reduction expressions
28528 of more than two operands.
28529 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28530 (get_vdef_before_scop): Handle also the case of default definitions.
28531
28532 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28533
28534 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28535 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28536 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28537
28538 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28539 Joey Ye <joey.ye@intel.com>
28540
28541 PR middle-end/37843
28542 * cfgexpand.c (expand_stack_alignment): Don't update stack
28543 boundary nor check incoming stack boundary here.
28544 (gimple_expand_cfg): Update stack boundary and check incoming
28545 stack boundary here.
28546
28547 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28548
28549 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28550
28551 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28552
28553 PR rtl-optimization/38245
28554 * calls.c (expand_call): Add stack arguments to
28555 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28556 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28557 in regs and partially in memory or BLKmode arguments.
28558 (emit_library_call_value_1): Add stack arguments to
28559 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28560 ACCUMULATE_OUTGOING_ARGS).
28561 * dce.c: Include tm_p.h.
28562 (find_call_stack_args): New function.
28563 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28564 argument.
28565 (mark_insn): Call find_call_stack_args for CALL_Ps.
28566 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28567 forwards. Allocate and free arg_stores bitmap if needed, pass it
28568 down to deletable_insn_p, don't mark stores set in arg_stores
28569 bitmap, clear the bitmap at the beginning of each bb.
28570 * Makefile.in (dce.o): Depend on $(TM_P_H).
28571
28572 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28573
28574 PR target/22599
28575 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28576 to make sure the insn is a conditional test (bug 22599). Reformat a
28577 few long lines.
28578
28579 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28580
28581 PR middle-end/38431
28582 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28583 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28584 (gloog): Do not call cleanup_tree_cfg.
28585 (graphite_transform_loops): Call cleanup_tree_cfg after all
28586 scops have been code generated.
28587
28588 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28589 * doc/gty.texi (Invoking the garbage collector): Added new node
28590 and section documenting ggc_collect.
28591
28592 2009-01-14 Richard Guenther <rguenther@suse.de>
28593
28594 PR tree-optimization/38826
28595 PR middle-end/38477
28596 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28597 initialization notes only if we actually emitted a warning.
28598 (intra_create_variable_infos): Add constraints for a result decl
28599 that is passed by hidden reference.
28600 (build_pred_graph): Mark all related variables non-direct on
28601 address-taking.
28602
28603 2009-01-14 Nick Clifton <nickc@redhat.com>
28604
28605 * ira-conflicts.c: Include addresses.h for the definition of
28606 base_reg_class.
28607 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28608 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28609
28610 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28611
28612 PR target/38811
28613 * Makefile.in (ira-lives.o): Add except.h.
28614
28615 * ira-lives.c: Include except.h.
28616 (process_bb_node_lives): Process can_throw_internal.
28617
28618 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28619
28620 PR rtl-optimization/38774
28621 * combine.c (simplify_set): When undoing cc_use change, don't do
28622 PUT_CODE on the newly created comparison, but instead put back the
28623 old comparison.
28624
28625 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28626
28627 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28628 values. Remove duplicate arm8 entry.
28629
28630 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28631
28632 PR tree-optimization/38786
28633 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28634 the SSA_NAME case of expand_scalar_variables_expr.
28635 Set the type of an expression to the type of its assign statement.
28636 (expand_scalar_variables_expr): Also gather the scalar computation
28637 used to index the memory access. Do not pass loop_p.
28638 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28639 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28640 the gimple_stmt_iterator where it inserts new code.
28641 Do not pass loop_p.
28642 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28643 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28644
28645 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28646
28647 * graphite.h (debug_value): Removed.
28648 * graphite.c (debug_value): Removed.
28649
28650 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28651
28652 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28653 ldrd/strd with two 32-bit instructions.
28654
28655 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28656
28657 * config/arm/arm.c (struct processors): Pass for speed down into
28658 cost helper functions.
28659 (const_ok_for_op): Handle COMPARE and inequality nodes.
28660 (arm_rtx_costs_1): Rewrite.
28661 (arm_size_rtx_costs): Update prototype.
28662 (arm_rtx_costs): Pass speed down to helper functions.
28663 (arm_slowmul_rtx_costs): Rework cost calculations.
28664 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28665 (arm_9e_rtx_costs): Likewise.
28666
28667 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28668
28669 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28670 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28671 (alpha_legitimize_address): Do not split local symbols wider than
28672 UNITS_PER_WORD into HIGH/LO_SUM parts.
28673
28674 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28675
28676 PR bootstrap/38580
28677 * gcc.c (process_command): Replace call to execvp with calls
28678 to pex_one and exit.
28679
28680 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28681
28682 PR target/29141
28683 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28684 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28685 variant for devices with 3-byte PC.
28686 (__tablejump_elpm__): New.
28687
28688 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28689
28690 PR c/32041
28691 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28692 offsetof member-designator, handle it as `[0].'.
28693
28694 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28695
28696 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28697 function when not using named sections on targets with named sections
28698 if branch distance is less than 262132.
28699
28700 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28701
28702 * combine.c (combine_instructions): Recompute
28703 optimize_this_for_speed_p for each BB in the main combine loop.
28704
28705 2009-01-12 Tomas Bily <tbily@suse.cz>
28706
28707 PR middlend/38385
28708 * tree-loop-distribution.c (prop_phis): New function.
28709 (generate_builtin): Call prop_phis.
28710
28711 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28712
28713 PR tree-optimization/38807
28714 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28715 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28716
28717 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28718
28719 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28720 subreg of op0 to the original op0.
28721
28722 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28723
28724 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28725
28726 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28727
28728 PR debug/7055
28729 * mips-tfile.c (parse_def): Fix parsing of def strings
28730 starting with digits.
28731
28732 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28733
28734 PR target/38695
28735 * config/arm/arm.c (arm_is_long_call_p): Don't call
28736 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28737
28738 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28739
28740 * regrename.c (regrename_optimize): Fix dumping.
28741 (find_oldest_value_reg): Preserve REG_POINTER.
28742 (copy_hardreg_forward_1): Likewise.
28743
28744 2009-01-09 Diego Novillo <dnovillo@google.com>
28745
28746 * gimple.h (struct gimple_statement_base) <uid>: Document
28747 the restrictions on its use.
28748 (gimple_uid): Tidy.
28749 (gimple_set_uid): Tidy.
28750
28751 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28752
28753 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28754 zero guard even if align_bytes != 0 and count is smaller than
28755 size_needed.
28756
28757 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28758
28759 PR rtl-optimization/38495
28760 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28761 (add_range_and_copies_from_move_list): Print all added ranges.
28762 Add ranges to memory optimized destination.
28763
28764 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28765
28766 PR target/38686
28767 PR target/38708
28768 * config/i386/i386.c (override_options): Reject
28769 -mstringop-strategy=rep_8byte with -m32.
28770 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28771 to 1. Do count comparison against epilogue_size_needed at compile
28772 time even when count_exp was constant forced into register. For
28773 size_needed don't jump to epilogue, instead just avoid aligning
28774 and invoke the body algorithm. If need_zero_guard, add zero guard
28775 even if count is non-zero, but smaller than size_needed + number of
28776 bytes that could be stored for alignment.
28777 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28778 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28779 but smaller than size_needed + number of bytes that could be stored
28780 for alignment. Compare size_needed with epilogue_size_needed instead
28781 of desired_align - align, don't adjust size_needed, pass
28782 epilogue_size_needed to the epilogue expanders.
28783
28784 PR c/35742
28785 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28786
28787 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28788
28789 * pa.c (last_address): Change to unsigned.
28790 (update_total_code_bytes): Change argument to unsigned. Don't
28791 check if insn addresses are set.
28792 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28793 addresses are not set.
28794 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28795
28796 2009-01-09 Nick Clifton <nickc@redhat.com>
28797
28798 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28799 DECL_DECLARED_INLINE_P.
28800
28801 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28802
28803 PR middle-end/38347
28804 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28805 GET_MODE (op0) in operand_subword_force calls.
28806
28807 PR middle-end/38771
28808 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28809 fold_convert arg0 operands to TREE_TYPE (op0) first.
28810
28811 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28812
28813 * params.def (ira-max-conflict-table-size): Decrease default value
28814 to 1000.
28815
28816 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28817
28818 PR tree-optimization/37031
28819 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28820 on parameter_set.
28821 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28822 allocate it using gc instead of heap, use VEC_quick_push instead of
28823 VEC_safe_push.
28824 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28825 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28826 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28827 allocated vector from heap allocated.
28828 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28829 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28830 vector only after perfect_loop_nest_depth call.
28831
28832 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28833 Jan Sjodin <jan.sjodin@amd.com>
28834
28835 PR tree-optimization/38559
28836 * graphite.c (debug_value, copy_constraint,
28837 swap_constraint_variables, scale_constraint_variable, ): New.
28838 (get_lower_bound, get_upper_bound): Removed.
28839 (graphite_trans_bb_strip_mine): Clean up this code that works
28840 only for constant number of iterations. Fully copy upper and
28841 lower bound constraints, not only the constant part of them.
28842 * graphite.h (debug_value): Declared.
28843
28844 2009-01-08 Ira Rosen <irar@il.ibm.com>
28845
28846 PR tree-optimization/37194
28847 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28848 Don't add the cost of cost model guard in prologue to scalar
28849 outside cost in case of known number of iterations.
28850
28851 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28852 Alan Modra <amodra@bigpond.net.au>
28853
28854 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28855 non-word-aligned REG+CONST addressing.
28856
28857 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28858
28859 PR target/38706
28860 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28861 free_after_compilation when outputting a thunk.
28862 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28863 Do not call free_after_compilation here.
28864
28865 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28866
28867 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28868 (ix86_valid_target_attribute_inner_p): Ditto.
28869
28870 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28871
28872 PR tree-optimization/38492
28873 PR tree-optimization/38498
28874 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28875 * tree-chrec.h (scev_is_linear_expression): Declared.
28876 * graphite.c (graphite_cannot_represent_loop_niter): New.
28877 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28878 (graphite_loop_normal_form): Use gcc_assert.
28879 (scan_tree_for_params): Use CASE_CONVERT.
28880 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28881 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28882 Use gcc_assert. Discard scops that contain unhandled cases.
28883 (build_scop_conditions): Return a boolean status for unhandled cases.
28884 (strip_mine_profitable_p): Print the loop number, not its depth.
28885 (is_interchange_valid): Pass the depth of the loop nest, don't
28886 recompute it wrongly.
28887 (graphite_trans_bb_block): Same.
28888 (graphite_trans_bb_block): Print tentative of loop blocking.
28889 (graphite_trans_scop_block): Do not print that the loop has been
28890 blocked.
28891 (graphite_transform_loops): Do not handle scops that contain condition
28892 scalar phi nodes.
28893
28894 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28895
28896 AVX Programming Reference (December, 2008)
28897 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28898 (_mm256_stream_pd): Likewise.
28899 (_mm256_stream_ps): Likewise.
28900
28901 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28902 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28903 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28904 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28905 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28906 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28907 (ix86_expand_special_args_builtin): Likewise.
28908
28909 * config/i386/sse.md (AVXMODEDI): New.
28910 (avx_movnt<mode>): Likewise.
28911 (avx_movnt<mode>): Likewise.
28912 (<sse>_movnt<mode>): Remove AVX support.
28913 (sse2_movntv2di): Likewise.
28914
28915 2009-01-07 Richard Guenther <rguenther@suse.de>
28916
28917 PR middle-end/38751
28918 * fold-const.c (extract_muldiv): Remove obsolete comment.
28919 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28920 to PLUS_EXPR canonicalization for the canonicalization.
28921
28922 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28923
28924 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28925 hosted cross-compilers generating less efficient code.
28926
28927 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28928
28929 * function.h (rtl_data): Add a dbr_scheduled_p field.
28930 * reorg.c (dbr_schedule): Set it.
28931 (gate_handle_delay_slots): Check it.
28932 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28933 (mips_reorg): Check flag_delayed_branch instead of
28934 mips_base_delayed_branch.
28935 (mips_override_options): Don't set mips_base_delayed_branch
28936 or flag_delayed_branch.
28937
28938 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28939
28940 PR rtl-optimization/38426.
28941 * ira.c (ira): Set current_function_is_leaf earlier.
28942
28943 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28944
28945 PR rtl-optimization/38722
28946 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28947 too early, only set a flag and modify after last possible
28948 undo_all point.
28949
28950 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28951
28952 PR c/34252
28953 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28954 * real.c (decimal_single_format): Correct values of emin and emax.
28955 (decimal_double_format): Ditto.
28956 (decimal_quad_format): Ditto.
28957 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28958 computation of DECnn_MIN and DECnn_MAX for corrected values of
28959 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28960 __DECnn_MIN__, and adjust its computation for the corrected value
28961 of emin.
28962
28963 2009-01-06 Jan Hubicka <jh@suse.cz>
28964
28965 PR target/38744
28966 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28967
28968 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28969
28970 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28971 Add Robert Clark to the list of testers.
28972
28973 2009-01-06 Jan Hubicka <jh@suse.cz>
28974 Kai Tietz <kai.tietz@onevision.com>
28975
28976 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28977 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28978
28979 2009-01-06 Jan Hubicka <jh@suse.cz>
28980 Kai Tietz <kai.tietz@onevision.com>
28981
28982 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28983 for w64 ABI.
28984 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28985 (ix86_nsaved_regs): Count only general purpose regs.
28986 (ix86_nsaved_sseregs): New.
28987 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28988 to 16 for w64; compute padding and size of sse reg save area.
28989 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28990 general purpose regs.
28991 (ix86_emit_save_sse_regs_using_mov): New.
28992 (ix86_expand_prologue): Save SSE regs if needed.
28993 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28994 (ix86_emit_restore_sse_regs_using_mov): New.
28995 (ix86_expand_epilogue): Save SSE regs if needed.
28996
28997 2009-01-06 Jan Hubicka <jh@suse.cz>
28998 Kai Tietz <kai.tietz@onevision.com>
28999
29000 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
29001 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
29002 functions when accumulate outgoing args is off.
29003
29004 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
29005
29006 PR bootstrap/38742
29007 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
29008 before using pseudos_have_intersected_live_ranges_p.
29009
29010 * ira-int.h (ira_assert): Always define.
29011
29012 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
29013
29014 AVX Programming Reference (December, 2008)
29015 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
29016 (_mm256_permute2_pd): Likewise.
29017 (_mm_permute2_ps): Likewise.
29018 (_mm256_permute2_ps): Likewise.
29019 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
29020 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
29021
29022 * config/i386/i386.c (ix86_builtins): Remove
29023 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
29024 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
29025 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
29026 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
29027 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
29028 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
29029 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
29030 __builtin_ia32_vpermil2ps256.
29031 (ix86_init_mmx_sse_builtins): Updated.
29032 (ix86_expand_args_builtin): Likewise.
29033
29034 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29035
29036 * pa.c (output_call): Relocate non-jump insns in the delay slot of
29037 long absolute calls when generating PA 2.0 code.
29038
29039 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
29040
29041 PR rtl-optimization/38583
29042 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
29043
29044 * params.def (ira-max-conflict-table-size): New.
29045
29046 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
29047
29048 * ira.h (ira_conflicts_p): New external definition.
29049
29050 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
29051 table. Report this. Return result of building.
29052 (ira_build_conflicts): Use ira_conflicts_p. Check result of
29053 building conflict table.
29054
29055 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
29056 (ira_color): Use ira_conflicts_p.
29057
29058 * global.c: Include ira.h.
29059 (pseudo_for_reload_consideration_p, build_insn_chain): Use
29060 ira_conflicts_p.
29061
29062 * Makefile.in (global.o): Add ira.h.
29063
29064 * ira-build.c (mark_all_loops_for_removal,
29065 propagate_some_info_from_allocno): New.
29066 (remove_unnecessary_allocnos): Call
29067 propagate_some_info_from_allocno.
29068 (remove_low_level_allocnos): New.
29069 (remove_unnecessary_regions): Add parameter. Call
29070 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
29071 parameter to remove_unnecessary_regions.
29072 (ira_build): Remove all regions but root if the conflict table was
29073 not built. Update conflict hard regs for allocnos crossing calls.
29074
29075 * ira.c (ira_conflicts_p): New global.
29076 (ira): Define and use ira_conflicts_p.
29077
29078 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29079 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
29080 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
29081
29082 2009-01-06 Ben Elliston <bje@au.ibm.com>
29083
29084 * gengtype-lex.l (YY_NO_INPUT): Define.
29085
29086 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
29087
29088 PR c/34911
29089 * c-common.c (handle_vector_size_attribute): Also reject
29090 BOOLEAN_TYPE types.
29091
29092 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
29093
29094 PR tree-optimization/38492
29095 * graphite.c (rename_map_elt, debug_rename_elt,
29096 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
29097 rename_map_elt_info, eq_rename_map_elts,
29098 get_new_name_from_old_name, bb_in_sese_p): Moved around.
29099 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
29100 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
29101 (sese_build_livein_liveouts): New.
29102 (new_sese, free_sese): New.
29103 (new_scop): Call new_sese.
29104 (free_scop): Call free_sese.
29105 (rename_variables_from_edge, rename_phis_end_scop): Removed.
29106 (register_old_new_names): Renamed register_old_and_new_names.
29107 (register_scop_liveout_renames, add_loop_exit_phis,
29108 insert_loop_close_phis, struct igp,
29109 default_liveout_before_guard, add_guard_exit_phis,
29110 insert_guard_phis, copy_renames): New.
29111 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
29112 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
29113 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
29114 (scop_adjust_phis_for_liveouts): New.
29115 (gloog): Call scop_adjust_phis_for_liveouts.
29116
29117 * graphite.h (struct sese): Documented. Added fields liveout,
29118 num_ver and livein.
29119 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29120 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29121 (struct scop): Added field liveout_renames.
29122 (SCOP_LIVEOUT_RENAMES): New.
29123
29124 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29125
29126 PR tree-optimization/38510
29127 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29128 (translate_clast): Call recompute_all_dominators before
29129 graphite_verify.
29130 (gloog): Call recompute_all_dominators before graphite_verify.
29131
29132 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29133 Jan Sjodin <jan.sjodin@amd.com>
29134
29135 PR tree-optimization/38500
29136 * graphite.c (create_sese_edges): Call fix_loop_structure after
29137 splitting blocks.
29138
29139 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
29140
29141 * config.gcc: Add m32r*-*-rtems*.
29142 * config/m32r/rtems.h: New file.
29143
29144 2009-01-05 Ben Elliston <bje@au.ibm.com>
29145
29146 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29147 (.po.pox): Likewise.
29148 (po/gcc.pot): Likewise.
29149
29150 2009-01-04 David S. Miller <davem@davemloft.net>
29151
29152 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29153 (STARTING_FRAME_OFFSET): Always set to zero.
29154
29155 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29156
29157 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29158 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29159 fixed-point types, and vectors of the same.
29160
29161 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29162
29163 * config/mips/sync.md (*mb_barrier): Rename to...
29164 (*memory_barrier): ...this.
29165
29166 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
29167
29168 * doc/extend.texi (Function Attributes): Move @cindex after @item
29169 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29170 and put in alphabetical order. Fix 'target' name and put in order.
29171 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29172 typos.
29173
29174 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
29175
29176 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29177 (memory_barrier): Expand as unspec instead of unspec_volatile.
29178 Remove mem:BLK from insn operands. Use Pmode scratch register.
29179 (*memory_barrier): Define as unspec instead of unspec_volatile.
29180 Use (match_dup 0) as input operand.
29181
29182 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29183 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29184 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
29185 scratch register. Remove operand 1.
29186 (*stbar): Define as unspec instead of unspec_volatile.
29187 Use (match_dup 0) as input operand, remove (const_int 8).
29188 (*membar): Define as unspec instead of unspec_volatile.
29189 Use (match_dup 0) as input operand, remove input operand 2.
29190
29191 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29192 (memory_barrier): Expand as unspec instead of unspec_volatile.
29193 Remove mem:BLK from insn operands. Use Pmode scratch register.
29194 (*memory_barrier): Define as unspec instead of unspec_volatile.
29195 Use (match_dup 0) as input operand.
29196
29197 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29198 Remove mem:BLK from insn operands. Use Pmode scratch register.
29199 Set volatile flag on operand 0.
29200 (*memory_barrier): New insn pattern.
29201
29202 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29203 insn operands.
29204 (*memory_barrier): Use (match_dup 0) as input operand.
29205
29206 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29207 Remove mem:BLK from insn operands. Use Pmode scratch register.
29208 Set volatile flag on operand 0.
29209 (*mb_internal): New insn pattern.
29210
29211 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29212
29213 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29214
29215 PR middle-end/38586
29216 * function.c (struct temp_slot): Move to the section of the file
29217 that deals with temp slots. Remove field 'address'.
29218 (temp_slot_address_table): New hash table of address -> temp slot.
29219 (struct temp_slot_address_entry): New struct, items for the table.
29220 (temp_slot_address_compute_hash, temp_slot_address_hash,
29221 temp_slot_address_eq, insert_temp_slot_address): Support functions
29222 for the new table.
29223 (find_temp_slot_from_address): Rewrite to use the new hash table.
29224 (remove_unused_temp_slot_addresses): Remove addresses of temp
29225 slots that have been made available.
29226 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29227 worker function for remove_unused_temp_slot_addresses.
29228 (assign_stack_temp_for_type): Don't clear the temp slot address list.
29229 Add the temp slot address to the address -> temp slot map.
29230 (update_temp_slot_address): Update via insert_temp_slot_address.
29231 (free_temp_slots): Call remove_unused_temp_slot_addresses.
29232 (pop_temp_slots): Likewise.
29233 (init_temp_slots): Allocate the address -> temp slot map, or empty
29234 the map if it is already allocated.
29235 (prepare_function_start): Initialize temp slot processing.
29236
29237 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29238
29239 PR middle-end/38584
29240 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29241 Calculate the size of all stack vars assuming no packing of stack
29242 vars will happen, replacing a quadratic algorithm with a linear one.
29243
29244 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29245
29246 PR target/38707
29247 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29248 can't be used.
29249
29250 2009-01-03 Diego Novillo <dnovillo@google.com>
29251
29252 * doc/contrib.texi: Update contributions.
29253
29254 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29255
29256 PR c++/38705
29257 * builtins.c (fold_builtin_memory_op): Give up if either operand
29258 is volatile. Set srctype or desttype to non-qualified version
29259 of the other type.
29260
29261 PR c/38700
29262 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29263 and FUNCTION_DECLs.
29264
29265 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
29266
29267 PR rtl-optimization/35805
29268 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29269 problem if fast dce is able to remove any instructions.
29270 * dce.c (dce_process_block): Fix dump message.
29271
29272 2009-01-02 Mark Mitchell <mark@codesourcery.com>
29273
29274 PR 33649
29275 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29276
29277 2009-01-02 Jakub Jelinek <jakub@redhat.com>
29278
29279 PR middle-end/38690
29280 * tree-flow.h (op_code_prio, op_prio): New prototypes.
29281 * tree-pretty-print.c (op_code_prio): New function.
29282 (op_prio): No longer static. Use op_code_prio.
29283 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29284 Use op_prio and op_code_prio to determine if () should be
29285 printed around operand(s) or not.
29286
29287 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29288 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29289 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29290 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29291 pp_character instead of pp_string for single letter printing.
29292
29293 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29294
29295 * doc/extend.texi: Fix '#pragma GCC option' typo.
29296
29297 2009-01-02 Richard Guenther <rguenther@suse.de>
29298
29299 * doc/install.texi (--enable-checking): Mention different
29300 default for stage1.
29301 (--enable-stage1-checking): Document.
29302
29303 2009-01-01 Andrew Pinski <pinskia@gmail.com>
29304
29305 PR middle-end/30142
29306 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
29307 case to be an error.
29308
29309 2009-01-02 Ben Elliston <bje@au.ibm.com>
29310
29311 * config/fp-bit.h (pack_d): Constify argument.
29312 * config/fp-bit.c (makenan): Constify return type. Remove casts.
29313 (isnan): Constify argument.
29314 (isinf): Likewise.
29315 (iszero): Likewise.
29316 (pack_d): Likewise.
29317 (_fpadd_parts): Constify return type.
29318 (_fpmul_parts): Likewise.
29319 (_fpdiv_parts): Likewise.
29320
29321 2009-01-01 Jakub Jelinek <jakub@redhat.com>
29322
29323 PR c/36489
29324 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
29325 warn about overwriting initializer with side-effects or
29326 -Woverride-init if !IMPLICIT.
29327 (output_init_element): Likewise. Pass IMPLICIT down to
29328 add_pending_init.
29329 (process_init_element): Add IMPLICIT argument. Pass it down
29330 to output_init_element.
29331 (push_init_element, pop_init_level, set_designator): Adjust
29332 process_init_element callers.
29333 (set_nonincremental_init, set_nonincremental_init_from_string):
29334 Adjust add_pending_init callers.
29335 (output_pending_init_elements): Adjust output_init_element callers.
29336 * c-tree.h (process_init_element): Adjust prototype.
29337 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29338 process_init_element callers.
29339
29340 \f
29341 Copyright (C) 2009 Free Software Foundation, Inc.
29342
29343 Copying and distribution of this file, with or without modification,
29344 are permitted in any medium without royalty provided the copyright
29345 notice and this notice are preserved.
This page took 1.349637 seconds and 4 git commands to generate.