OSDN Git Service

2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
2
3         PR rtl-optimization/38583
4         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
5
6         * params.def (ira-max-conflict-table-size): New.
7
8         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
9         
10         * ira.h (ira_conflicts_p): New external definition.
11         
12         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
13         table.  Report this.  Return result of building.
14         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
15         building conflict table.
16
17         * ira-color.c (fast_allocation): Use num instead of
18         ira_allocnos_num.
19         (ira_color): Use ira_conflicts_p.
20         
21         * global.c: Include ira.h.
22         (pseudo_for_reload_consideration_p, build_insn_chain): Use
23         ira_conflicts_p.
24
25         * Makefile.in (global.o): Add ira.h.
26         
27         * ira-build.c (mark_all_loops_for_removal,
28         propagate_some_info_from_allocno): New.
29         (remove_unnecessary_allocnos): Call
30         propagate_some_info_from_allocno.
31         (remove_low_level_allocnos): New.
32         (remove_unnecessary_regions): Add parameter.  Call
33         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
34         parameter to remove_unnecessary_regions.
35         (ira_build): Remove all regions but root if the conflict table was
36         not built.  Update conflict hard regs for allocnos crossing calls.
37
38         * ira.c (ira_conflicts_p): New global.
39         (ira): Define and use ira_conflicts_p.
40
41         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
42         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
43         emit_input_reload_insns, delete_output_reload): Use
44         ira_conflicts_p.
45         
46 2009-01-06  Ben Elliston  <bje@au.ibm.com>
47
48         * gengtype-lex.l (YY_NO_INPUT): Define.
49
50 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
51
52         PR c/34911
53         * c-common.c (handle_vector_size_attribute): Also reject
54         BOOLEAN_TYPE types.
55
56 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
57
58         PR tree-optimization/38492
59         * graphite.c (rename_map_elt, debug_rename_elt,
60         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
61         rename_map_elt_info, eq_rename_map_elts,
62         get_new_name_from_old_name, bb_in_sese_p): Moved around.
63         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
64         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
65         (sese_build_livein_liveouts): New.
66         (new_sese, free_sese): New.
67         (new_scop): Call new_sese.
68         (free_scop): Call free_sese.
69         (rename_variables_from_edge, rename_phis_end_scop): Removed.
70         (register_old_new_names): Renamed register_old_and_new_names.
71         (register_scop_liveout_renames, add_loop_exit_phis,
72         insert_loop_close_phis, struct igp,
73         default_liveout_before_guard, add_guard_exit_phis,
74         insert_guard_phis, copy_renames): New.
75         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
76         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
77         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
78         (scop_adjust_phis_for_liveouts): New.
79         (gloog): Call scop_adjust_phis_for_liveouts.
80
81         * graphite.h (struct sese): Documented.  Added fields liveout,
82         num_ver and livein.
83         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
84         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
85         (struct scop): Added field liveout_renames.
86         (SCOP_LIVEOUT_RENAMES): New.
87
88 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
89
90         PR tree-optimization/38510
91         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
92         (translate_clast): Call recompute_all_dominators before
93         graphite_verify.
94         (gloog): Call recompute_all_dominators before graphite_verify.
95
96 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
97             Jan Sjodin <jan.sjodin@amd.com>
98
99         PR tree-optimization/38500
100         * graphite.c (create_sese_edges): Call fix_loop_structure after
101         splitting blocks.
102
103 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
104
105         * config.gcc: Add m32r*-*-rtems*.
106         * config/m32r/rtems.h: New file.
107
108 2009-01-05  Ben Elliston  <bje@au.ibm.com>
109
110         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
111         (.po.pox): Likewise.
112         (po/gcc.pot): Likewise.
113
114 2009-01-04  David S. Miller  <davem@davemloft.net>
115
116         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
117         (STARTING_FRAME_OFFSET): Always set to zero.
118
119 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
120
121         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
122         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
123         fixed-point types, and vectors of the same.
124
125 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
126
127         * config/mips/sync.md (*mb_barrier): Rename to...
128         (*memory_barrier): ...this.
129
130 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
131
132         * doc/extend.texi (Function Attributes): Move @cindex after @item
133         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
134         and put in alphabetical order. Fix 'target' name and put in order.
135         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
136         typos.
137
138 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
139
140         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
141         (memory_barrier): Expand as unspec instead of unspec_volatile.
142         Remove mem:BLK from insn operands.  Use Pmode scratch register.
143         (*memory_barrier): Define as unspec instead of unspec_volatile.
144         Use (match_dup 0) as input operand.
145
146         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
147         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
148         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
149         scratch register.  Remove operand 1.
150         (*stbar): Define as unspec instead of unspec_volatile.
151         Use (match_dup 0) as input operand, remove (const_int 8).
152         (*membar): Define as unspec instead of unspec_volatile.
153         Use (match_dup 0) as input operand, remove input operand 2.
154
155         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
156         (memory_barrier): Expand as unspec instead of unspec_volatile.
157         Remove mem:BLK from insn operands.  Use Pmode scratch register.
158         (*memory_barrier): Define as unspec instead of unspec_volatile.
159         Use (match_dup 0) as input operand.
160
161         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
162         Remove mem:BLK from insn operands.  Use Pmode scratch register.
163         Set volatile flag on operand 0.
164         (*memory_barrier): New insn pattern.
165
166         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
167         insn operands.
168         (*memory_barrier): Use (match_dup 0) as input operand.
169
170         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
171         Remove mem:BLK from insn operands.  Use Pmode scratch register.
172         Set volatile flag on operand 0.
173         (*memory_barrier): New insn pattern.
174
175         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
176
177 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
178
179         PR middle-end/38586
180         * function.c (struct temp_slot): Move to the section of the file
181         that deals with temp slots.  Remove field 'address'.
182         (temp_slot_address_table): New hash table of address -> temp slot.
183         (struct temp_slot_address_entry): New struct, items for the table.
184         (temp_slot_address_compute_hash, temp_slot_address_hash,
185         temp_slot_address_eq, insert_temp_slot_address): Support functions
186         for the new table.
187         (find_temp_slot_from_address): Rewrite to use the new hash table.
188         (remove_unused_temp_slot_addresses): Remove addresses of temp
189         slots that have been made available.
190         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
191         worker function for remove_unused_temp_slot_addresses.
192         (assign_stack_temp_for_type): Don't clear the temp slot address list.
193         Add the temp slot address to the address -> temp slot map.
194         (update_temp_slot_address): Update via insert_temp_slot_address.
195         (free_temp_slots): Call remove_unused_temp_slot_addresses.
196         (pop_temp_slots): Likewise.
197         (init_temp_slots): Allocate the address -> temp slot map, or empty
198         the map if it is already allocated.
199         (prepare_function_start): Initialize temp slot processing.
200
201 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
202
203         PR middle-end/38584
204         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
205         Calculate the size of all stack vars assuming no packing of stack
206         vars will happen, replacing a quadratic algorithm with a linear one.
207
208 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
209
210         PR target/38707
211         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
212         can't be used.
213
214 2009-01-03  Diego Novillo  <dnovillo@google.com>
215
216         * doc/contrib.texi: Update contributions.
217
218 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
219
220         PR c++/38705
221         * builtins.c (fold_builtin_memory_op): Give up if either operand
222         is volatile.  Set srctype or desttype to non-qualified version
223         of the other type.
224
225         PR c/38700
226         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
227         and FUNCTION_DECLs.
228
229 2009-01-02  Kenneth Zadeck <zadeck@naturalbridge.com>
230
231         PR rtl-optimization/35805
232         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
233         problem if fast dce is able to remove any instructions.
234         * dce.c (dce_process_block): Fix dump message.
235         
236 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
237
238         PR 33649
239         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
240
241 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
242
243         PR middle-end/38690
244         * tree-flow.h (op_code_prio, op_prio): New prototypes.
245         * tree-pretty-print.c (op_code_prio): New function.
246         (op_prio): No longer static.  Use op_code_prio.
247         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
248         Use op_prio and op_code_prio to determine if () should be
249         printed around operand(s) or not.
250
251         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
252         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
253         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
254         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
255         pp_character instead of pp_string for single letter printing.
256
257 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
258
259         * doc/extend.texi: Fix '#pragma GCC option' typo.
260
261 2009-01-02 Richard Guenther <rguenther@suse.de>
262
263         * doc/install.texi (--enable-checking): Mention different
264         default for stage1.
265         (--enable-stage1-checking): Document.
266
267 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
268
269         PR middle-end/30142
270         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
271         case to be an error.
272
273 2009-01-02  Ben Elliston  <bje@au.ibm.com>
274
275         * config/fp-bit.h (pack_d): Constify argument.
276         * config/fp-bit.c (makenan): Constify return type. Remove casts.
277         (isnan): Constify argument.
278         (isinf): Likewise.
279         (iszero): Likewise.
280         (pack_d): Likewise.
281         (_fpadd_parts): Constify return type.
282         (_fpmul_parts): Likewise.
283         (_fpdiv_parts): Likewise.
284
285 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
286
287         PR c/36489
288         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
289         warn about overwriting initializer with side-effects or
290         -Woverride-init if !IMPLICIT.
291         (output_init_element): Likewise.  Pass IMPLICIT down to
292         add_pending_init.
293         (process_init_element): Add IMPLICIT argument.  Pass it down
294         to output_init_element.
295         (push_init_element, pop_init_level, set_designator): Adjust
296         process_init_element callers.
297         (set_nonincremental_init, set_nonincremental_init_from_string):
298         Adjust add_pending_init callers.
299         (output_pending_init_elements): Adjust output_init_element callers.
300         * c-tree.h (process_init_element): Adjust prototype.
301         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
302         process_init_element callers.