]>
Commit | Line | Data |
---|---|---|
a795ca6e HJ |
1 | 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com> |
2 | ||
3 | * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h. | |
4 | (x86_64-*-*): Ditto. | |
5 | * config/i386/smmintrin.h: Move instructions in mmintrin-common.h | |
6 | back to smmintrin.h. | |
7 | * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit. | |
8 | * config/i386/x86intrin.h: Remove SSE5. | |
9 | * config/i386/mmintrin-common.h: Delete file. | |
10 | * doc/extend.texi (x86 intrinsics): Remove SSE5 flags | |
11 | and builtins. | |
12 | ||
b0e96404 RG |
13 | 2009-09-29 Richard Guenther <rguenther@suse.de> |
14 | ||
15 | * alias.c (ao_ref_from_mem): Properly deal with off decl accesses | |
16 | resulting from stack temporaries on STRICT_ALIGNMENT targets. | |
17 | ||
c7ac4fb5 NC |
18 | 2009-09-29 Nick Clifton <nickc@redhat.com> |
19 | ||
20 | * function.c (current_function_name): If there is no current | |
21 | function just return "<none>". | |
22 | ||
b80b0fd9 ST |
23 | 2009-09-28 Sriraman Tallam <tmsriram@google.com> |
24 | ||
25 | * tree-pass.h (register_pass_info): New structure. | |
26 | (pass_positioning_ops): Move enum from gcc-plugin.h. | |
27 | (register_pass): New function. | |
28 | * gcc-plugin.h (plugin_pass): Delete structure. | |
29 | (pass_positioning_ops): Delete enum. | |
30 | * plugin.c (regsiter_pass): Delete function. | |
31 | (position_pass): Delete function. | |
32 | (added_pass_nodes): Delete variable. | |
33 | (prev_added_pass_nodes): Delete variable. | |
34 | (pass_list_node): Delete structure. | |
35 | * passes.c (make_pass_instance): New function. | |
36 | (next_pass_1): Change to call make_pass_instance. | |
37 | (pass_list_node): Move structure from gcc-plugin.h. | |
38 | (added_pass_nodes): Move variable from plugin.c. | |
39 | (prev_added_pass_nodes): Move variable from plugin.c. | |
40 | (position_pass): New function. | |
41 | (register_pass): New function. | |
42 | ||
65026047 ER |
43 | 2009-09-28 Easwaran Raman <eraman@google.com> |
44 | ||
45 | * ifcvt.c (noce_try_abs): Recognize pattern and call | |
46 | expand_one_cmpl_abs_nojump. | |
47 | * optabs.c (expand_one_cmpl_abs_nojump): New function. | |
48 | * optabs.h (expand_one_cmpl_abs_nojump): Declare. | |
49 | ||
13ebf17b ILT |
50 | 2009-09-28 Ian Lance Taylor <iant@google.com> |
51 | ||
52 | PR middle-end/40500 | |
53 | * c-opts.c (c_common_handle_option): Don't set | |
54 | warn_jump_misses_init for -Wall. | |
55 | * doc/invoke.texi (Warning Options): Update documentation. | |
56 | ||
2bc98066 RW |
57 | 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
58 | ||
59 | * Makefile.in ($(out_object_file)): Depend on | |
60 | gt-$(basename $(notdir $(out_file))).h. | |
61 | ||
384c400a RH |
62 | 2009-09-28 Richard Henderson <rth@redhat.com> |
63 | ||
64 | * except.h (struct eh_region_d): Add use_cxa_end_cleanup. | |
65 | * except.c (gen_eh_region): Set it. | |
66 | (duplicate_eh_regions_1): Copy it. | |
67 | * tree-eh.c (lower_resx): Use it to determine which function | |
68 | to call to resume. | |
69 | ||
70 | * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup. | |
71 | * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New. | |
72 | * builtins.def (BUILT_IN_CXA_END_CLEANUP): New. | |
73 | * tree.c (build_common_builtin_nodes): Remove parameter. Build | |
74 | BUILT_IN_CXA_END_CLEANUP if necessary. | |
75 | ||
76 | * c-common.c (c_define_builtins): Update call to | |
77 | build_common_builtin_nodes. | |
78 | ||
aa633255 AP |
79 | 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com> |
80 | ||
81 | * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns. | |
82 | ||
44e10129 MM |
83 | 2009-09-28 Michael Matz <matz@suse.de> |
84 | ||
85 | * builtins.c (interclass_mathfn_icode): New helper. | |
86 | (expand_builtin_interclass_mathfn): Use it here, and split folding | |
87 | into ... | |
88 | (fold_builtin_interclass_mathfn): ... this new folder. | |
89 | (build_call_nofold_loc): New static helper. | |
90 | (build_call_nofold): New wrapper macro for above. | |
91 | (expand_builtin_int_roundingfn): Use it instead of build_call_expr. | |
92 | (expand_builtin_pow): Ditto. | |
93 | (expand_builtin_memset_args): Ditto. | |
94 | (expand_builtin_printf): Ditto. | |
95 | (expand_builtin_fprintf): Ditto. | |
96 | (expand_builtin_sprintf): Ditto. | |
97 | (expand_builtin_memory_chk): Ditto. | |
98 | (expand_builtin_mempcpy_args): Ditto and don't call folders. | |
99 | (expand_builtin_stpcpy): Ditto. | |
100 | (expand_builtin_strcmp): Ditto. | |
101 | (expand_builtin_strncmp): Ditto. | |
102 | (expand_builtin_strcpy): Remove FNDECL and MODE arguments. | |
103 | (expand_builtin_strcpy_args): Don't call folders. | |
104 | (expand_builtin_memcmp): Ditto. | |
105 | (expand_builtin_strncpy): Ditto, and use target. | |
106 | (expand_builtin_memcpy): Ditto. | |
107 | (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr, | |
108 | expand_builtin_strpbrk, expand_builtin_memmove, | |
109 | expand_builtin_memmove_args, expand_builtin_bcopy, | |
110 | expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat, | |
111 | expand_builtin_strspn, expand_builtin_strcspn, | |
112 | expand_builtin_fputs): Remove these. | |
113 | (expand_builtin): Don't call the above, change calls to other | |
114 | expanders that changed prototype. | |
115 | (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy. | |
116 | (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call | |
117 | fold_builtin_interclass_mathfn. | |
118 | (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy. | |
119 | (fold_builtin_strcat): Add folding split from expand_builtin_strcat. | |
120 | ||
121 | * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp. | |
122 | * passes.c (init_optimization_passes): Move pass_fold_builtins | |
123 | after last phiopt pass. | |
124 | * tree-inline.c (fold_marked_statements): When folding builtins | |
125 | iterate over all instruction potentially generated. | |
126 | * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare | |
127 | earlier. | |
128 | (fold_gimple_call): Use it to always fold calls (into potentially | |
129 | multiple instructions). | |
130 | * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p | |
131 | calls into zero at this time. | |
132 | * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple | |
133 | statements generated by builtin folding. | |
134 | ||
d813aaba NC |
135 | 2009-09-28 Nick Clifton <nickc@redhat.com> |
136 | ||
137 | * config/m32r/m32r.c (m32r_is_insn): Return false for debugging | |
138 | insns. | |
139 | ||
1d7d659d | 140 | 2009-09-28 Duncan Sands <baldrick@free.fr> |
32c9b4e9 DS |
141 | |
142 | * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event. | |
143 | * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES. | |
144 | (register_callback): Dispatch it. | |
145 | (invoke_plugin_callbacks): Incorporate in sanity check. | |
146 | * ggc.h (ggc_register_cache_tab): Add declaration. | |
147 | * ggc-common.c (ggc_register_root_tab): Simplify. | |
148 | (const_ggc_cache_tab_t): New typedef. | |
149 | (extra_cache_vec): New vector of dynamically added cache tables. | |
150 | (ggc_register_cache_tab): New function. | |
151 | (ggc_scan_cache_tab): New function. | |
152 | (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches. | |
153 | * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES. | |
154 | ||
ff9d1adc RH |
155 | 2009-09-27 Richard Henderson <rth@redhat.com> |
156 | ||
157 | * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under | |
158 | which we remove __builtin_stack_restore. | |
159 | ||
cdf1bf8b BS |
160 | 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com> |
161 | ||
162 | * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P, | |
163 | to test for GRD_INVARIANT. | |
164 | (simple_rhs_p): Anything that's function_invariant_p is fine. | |
165 | ||
ea2ca633 RE |
166 | 2009-09-27 Rafael Avila de Espindola <espindola@google.com> |
167 | ||
168 | * gengtype.c (main): Use plunge_files instead of plugin_output. | |
169 | ||
99be7084 BS |
170 | 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net> |
171 | Rafael Avila de Espindola <espindola@google.com> | |
172 | ||
173 | * gengtype.c (write_root, write_roots): Add a emit_pch argument. | |
174 | Don't print pch related info if it is false. | |
175 | (main): Don't print pch info in plugin mode. | |
176 | ||
4c0ce3c9 | 177 | 2009-09-27 Eric Botcazou <ebotcazou@adacore.com> |
afbd0665 | 178 | |
4c0ce3c9 EB |
179 | * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long |
180 | with dw_val_class_const_double. | |
181 | (struct dw_val_struct): Replace val_long_long with val_double and | |
182 | adjust for above change. | |
183 | (output_loc_operands): Likewise. | |
184 | (add_AT_long_long): Rename into... | |
185 | (add_AT_double): ...this. | |
186 | (print_die): Replace dw_val_class_long_long with | |
187 | dw_val_class_const_double and adjust. | |
188 | (attr_checksum): Likewise. | |
189 | (same_dw_val_p): Likewise. | |
190 | (size_of_die): Likewise. | |
191 | (value_format): Likewise. | |
192 | (output_die): Likewise. | |
193 | (loc_descriptor) <CONST_DOUBLE>: Likewise. | |
194 | (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double | |
195 | instead of add_AT_long_long. | |
196 | (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned | |
197 | value with the precision of its type. | |
198 | ||
199 | 2009-09-27 Andreas Schwab <schwab@linux-m68k.org> | |
200 | ||
201 | PR c/41476 | |
afbd0665 AS |
202 | * c-typeck.c (build_conditional_expr): Use the readonly and |
203 | volatile flags of the operand types, not of the operands itself. | |
204 | ||
4c0ce3c9 | 205 | 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com> |
88febe35 PG |
206 | |
207 | collect2.c (main): Look for -brtl before adding libraries. | |
208 | ||
4c0ce3c9 | 209 | 2009-09-27 Jonathan Gray <jsg@openbsd.org> |
aa58f943 JG |
210 | |
211 | * config.gcc: Update OpenBSD targets. | |
212 | * config/openbsd-stdint.h: New file. | |
213 | * config/openbsd-libpthread.h: New file. | |
214 | * config/openbsd.h: Update and break out LIB_SPEC definition. | |
215 | * config/alpha/openbsd.h: Overhaul to reflect ELF migration. | |
216 | * config/i386/openbsdelf.h: Correct types. | |
217 | * config/m68k/openbsd.h: Likewise. | |
218 | * config/mips/openbsd.h: Likewise. | |
219 | * config/vax/openbsd.h: Likewise. | |
220 | ||
ffaf6f25 EB |
221 | 2009-09-27 Eric Botcazou <ebotcazou@adacore.com> |
222 | ||
223 | * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR. | |
224 | (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary. | |
225 | * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum | |
226 | of the length and zero. | |
227 | ||
c829a888 RW |
228 | 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
229 | ||
464778c0 RW |
230 | * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h. |
231 | (FLAGS_H): Add options.h $(REAL_H). | |
232 | (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H). | |
233 | (TREE_VECTORIZER_H): New. | |
234 | (EBITMAP_H): Renamed from EBIMAP_H. | |
235 | (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o) | |
236 | (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o) | |
237 | (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o) | |
238 | (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o) | |
239 | (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o) | |
240 | (graphite-clast-to-gimple.o, graphite-dependences.o) | |
241 | (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o) | |
242 | (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o) | |
243 | (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o) | |
244 | (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o) | |
245 | (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o) | |
246 | (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o) | |
247 | (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o) | |
248 | (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o) | |
249 | (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies | |
250 | updated and fixed as per above changes and per | |
251 | check_makefile_deps.sh output. | |
252 | ||
c829a888 RW |
253 | PR bootstrap/40928 |
254 | * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS. | |
255 | * configure: Regenerate. | |
256 | ||
3e661154 KG |
257 | 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
258 | ||
259 | * doc/install.texi: Update minimum MPC version to 0.7. | |
260 | ||
39088c66 GP |
261 | 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com> |
262 | ||
263 | * doc/install.texi (Binaries): Remove reference to the binary | |
264 | distribution CD-ROM from the FSF. | |
265 | ||
0ffd2048 MM |
266 | 2009-09-26 Michael Matz <matz@suse.de> |
267 | ||
268 | PR lto/40758 | |
269 | PR middle-end/41470 | |
270 | * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names | |
271 | that are mentioned in the body. | |
272 | ||
87c93592 MM |
273 | 2009-09-26 Michael Matz <matz@suse.de> |
274 | ||
275 | PR tree-optimization/41454 | |
276 | * tree-ssa-dom (stmts_to_rescan): Remove variable. | |
277 | (tree_ssa_dominator_optimize): Don't allocate and free it. | |
278 | (dom_opt_leave_block): Don't iterate over it. | |
279 | (eliminate_redundant_computations): Don't return a value. | |
280 | (cprop_operand, cprop_into_stmt): Ditto. | |
281 | (optimize_stmt): Don't defer updating stmts. | |
282 | ||
7653f273 | 283 | 2009-09-25 Dodji Seketeli <dodji@redhat.com> |
072c87d1 | 284 | |
7653f273 DS |
285 | * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies, |
286 | generic_parameter_die, template_parameter_pack_die, | |
287 | gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming | |
288 | DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into | |
289 | DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack. | |
072c87d1 | 290 | |
14a878f3 AS |
291 | 2009-09-25 Anatoly Sokolov <aesok@post.ru> |
292 | ||
293 | * config/v850/v850.h (FUNCTION_VALUE): Remove. | |
294 | * config/v850/v850.c (v850_function_value): New function. | |
295 | (TARGET_FUNCTION_VALUE): Define. | |
296 | ||
94c08201 JJ |
297 | 2009-09-25 Jakub Jelinek <jakub@redhat.com> |
298 | ||
7411b8f0 JJ |
299 | * tree-vect-stmts.c (vectorizable_call): Call |
300 | mark_symbols_for_renaming after vect_finish_stmt_generation. | |
301 | ||
94c08201 JJ |
302 | * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2 |
303 | to loc_descriptor_from_tree. | |
304 | (add_location_or_const_value_attribute): Pass 0 instead of 2 | |
305 | for decl_by_reference_p decls. | |
306 | ||
79441eca RG |
307 | 2009-09-25 Richard Guenther <rguenther@suse.de> |
308 | ||
309 | PR middle-end/41463 | |
310 | * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing | |
311 | arrays again. | |
312 | ||
7930dab0 BE |
313 | 2009-09-25 Ben Elliston <bje@au.ibm.com> |
314 | ||
315 | * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma | |
316 | after `power7'. | |
317 | ||
3025dff8 AM |
318 | 2009-09-25 Alan Modra <amodra@bigpond.net.au> |
319 | ||
320 | * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER | |
321 | form of instruction. | |
322 | ||
e3d5405d KG |
323 | 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
324 | ||
325 | PR middle-end/41435 | |
326 | * fold-const.c (const_binop): Handle complex int division. | |
327 | * tree-complex.c (expand_complex_div_straight, | |
328 | expand_complex_div_wide): Update comments. | |
329 | ||
18b80268 DD |
330 | 2009-09-24 DJ Delorie <dj@redhat.com> |
331 | ||
332 | PR target/41456 | |
333 | * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13. | |
334 | (reg_class): Likewise. | |
335 | (REG_CLASS_NAMES): Likewise. | |
336 | * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise. | |
afbd0665 | 337 | |
18b80268 DD |
338 | * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for |
339 | M32C. | |
340 | ||
368908d8 MM |
341 | 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com> |
342 | ||
343 | * config/rs6000/predicates.md (indexed_or_indirect_operand): | |
344 | Delete VSX load/store with update support. | |
345 | * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto. | |
346 | * config/rs6000/vsx.md (vsx_mov<mode>): Ditto. | |
347 | (vsx_movti): Ditto. | |
348 | (VSX_U): Delete. | |
349 | (VSbit): Ditto. | |
350 | (VStype_load_update): Ditto. | |
351 | (VStype_store_update): Ditto. | |
352 | (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto. | |
353 | (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto. | |
354 | ||
355 | * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX | |
356 | load/store with update builtins. | |
357 | ||
0a38153f KT |
358 | 2009-09-24 Kai Tietz <kai.tietz@onevision.com> |
359 | ||
360 | * libgcc2.c (L_trampoline): Prototype for getpagesize | |
361 | and mprotect in WINNT case. | |
362 | ||
3faa6313 AS |
363 | 2009-09-24 Anatoly Sokolov <aesok@post.ru> |
364 | ||
365 | * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro. | |
366 | * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove. | |
367 | * config/rs6000/rs6000.c (rs6000_function_value): Make static, add | |
368 | 'outgoing' argument. | |
369 | (TARGET_FUNCTION_VALUE): Define. | |
370 | ||
2d84a337 IS |
371 | 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> |
372 | ||
373 | * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1. | |
374 | ||
047a3193 IS |
375 | 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> |
376 | ||
377 | PR bootstrap/41405 | |
afbd0665 | 378 | * common.opt: Initialize dwarf_strict to -1. |
047a3193 IS |
379 | * toplev.c (process_options): Catch unset dwarf_strict |
380 | and set to 0 for all targets not overriding. | |
381 | * config/darwin.c (darwin_override_options): Catch unset | |
382 | dwarf_strict and override to 1. | |
383 | ||
b5dcb2b9 JL |
384 | 2009-09-24 Jeff Law <law@redhat.com> |
385 | ||
afbd0665 | 386 | * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks. |
b5dcb2b9 | 387 | |
824ff0cd RG |
388 | 2009-09-24 Richard Guenther <rguenther@suse.de> |
389 | ||
390 | PR tree-optimization/36143 | |
391 | PR tree-optimization/38747 | |
392 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only | |
393 | create VIEW_CONVERT_EXPRs for TBAA compatible accesses. | |
394 | ||
22a3138f JJ |
395 | 2009-09-24 Jakub Jelinek <jakub@redhat.com> |
396 | ||
397 | PR bootstrap/41457 | |
398 | * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED, | |
399 | return false instead of gcc_unreachable (). For CONST return the | |
400 | value returned by recursive call instead of always returning true. | |
401 | (tree_add_const_value_attribute): Return the value returned by | |
402 | add_const_value_attribute instead of always returning true if rtl | |
403 | is non-NULL. | |
404 | ||
405 | 2009-09-23 Justin Seyster <jrseys@gmail.com> | |
6209e51c JS |
406 | |
407 | * Makefile.in (PLUGIN_HEADERS): Include real.h. | |
408 | ||
9f62cb92 JJ |
409 | 2009-09-24 Jakub Jelinek <jakub@redhat.com> |
410 | ||
411 | * cgraphunit.c (cgraph_lower_function): Revert last change. | |
412 | * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN | |
413 | instead of DECL_NO_STATIC_CHAIN. | |
414 | * tree-cfg.c (verify_gimple_call): Likewise. | |
415 | * tree-nested.c (get_chain_decl, get_chain_field, | |
416 | convert_tramp_reference_op, convert_gimple_call): Likewise. | |
417 | (convert_all_function_calls): Likewise. Always set or clear | |
418 | DECL_STATIC_CHAIN initially, for !n->outer clear it. | |
419 | (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code. | |
420 | * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN | |
421 | if nested. | |
422 | * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of | |
423 | DECL_NO_STATIC_CHAIN. | |
424 | * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN | |
425 | instead of DECL_NO_STATIC_CHAIN. | |
426 | (ix86_function_regparm, find_drap_reg): Likewise. Don't test | |
427 | decl_function_context. | |
428 | * varasm.c (initializer_constant_valid_p): Likewise. | |
429 | * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ... | |
430 | (DECL_STATIC_CHAIN): ... this. | |
431 | * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN | |
432 | instead of DECL_NO_STATIC_CHAIN. | |
433 | ||
9f78bf05 | 434 | 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net> |
6209e51c | 435 | Rafael Avila de Espindola <espindola@google.com> |
9f78bf05 BS |
436 | |
437 | * gengtype.c (nb_plugin_files): Make it unsigned to match | |
438 | num_gt_files. Adjust other variables to avoid warnings. | |
439 | (main): Allocate an all zero lang_bitmap before each plugin file name | |
440 | to match regular file names. | |
441 | ||
2b4fa409 RH |
442 | 2009-09-23 Richard Henderson <rth@redhat.com> |
443 | ||
444 | * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove. | |
445 | (TARGET_STATIC_CHAIN): Mention that this hook must be used for | |
446 | static chain passed in memory. | |
447 | * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison. | |
448 | * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN, | |
449 | STATIC_CHAIN_INCOMING. Issue a sorry if there's no | |
450 | STATIC_CHAIN_REGNUM defined. | |
451 | ||
452 | * config/picochip/picochip-protos.h: s/class/klass/. | |
453 | * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New. | |
454 | (picochip_static_chain): New. | |
455 | * config/picochip/picochip.h (STATIC_CHAIN): Remove. | |
456 | (STATIC_CHAIN_INCOMING): Remove. | |
457 | ||
458 | * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New. | |
459 | (xtensa_static_chain): New. | |
460 | * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove. | |
461 | ||
9193312a AS |
462 | 2009-09-23 Anatoly Sokolov <aesok@post.ru> |
463 | ||
464 | * config/pa/pa.h (FUNCTION_VALUE): Remove macro. | |
465 | * config/pa/pa-protos.h (function_value): Remove. | |
466 | * config/pa/pa.c (pa_function_value): Rename from function_value. | |
467 | Make static, add 'outgoing' argument. | |
468 | (TARGET_FUNCTION_VALUE): Define. | |
469 | ||
9ed74235 AS |
470 | 2009-09-23 Anatoly Sokolov <aesok@post.ru> |
471 | ||
472 | * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf | |
473 | instead of cfun->machine->is_leaf. | |
474 | * config/avr/avr.h (machine_function): Remove is_leaf field. | |
475 | ||
abab57ef JJ |
476 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
477 | ||
478 | PR debug/41439 | |
479 | * dwarf2out.c (address_of_int_loc_descriptor): Don't emit | |
480 | DW_OP_piece after DW_OP_stack_value, adjust size calculations | |
481 | for it, when DW_OP_stack_value and DW_OP_implicit_value has | |
482 | the same size, prefer DW_OP_stack_value. | |
483 | (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref, | |
484 | loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value. | |
485 | ||
7168dc47 AO |
486 | 2009-09-23 Alexandre Oliva <aoliva@redhat.com> |
487 | ||
488 | PR debug/41353 | |
489 | * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses. | |
490 | ||
dda2da58 AO |
491 | 2009-09-23 Alexandre Oliva <aoliva@redhat.com> |
492 | ||
493 | PR debug/41248 | |
494 | * cfgexpand.c (convert_debug_memory_address): New. | |
495 | (expand_debug_expr): Convert base address and offset to the same | |
496 | mode. Use it to convert addresses to other modes. Accept | |
497 | ptr_mode addresses. | |
498 | ||
4c685825 RG |
499 | 2009-09-23 Richard Guenther <rguenther@suse.de> |
500 | ||
501 | * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET | |
502 | produced for bigendian targets with promoted subregs. | |
503 | ||
659ad88e RG |
504 | 2009-09-23 Richard Guenther <rguenther@suse.de> |
505 | ||
506 | * value-prof.c (gimple_ic): Purge old EH edges only after building | |
507 | the new ones. | |
508 | ||
b3901be5 NC |
509 | 2009-09-23 Nick Clifton <nickc@redhat.com> |
510 | ||
511 | * config/arc/arc.c (arc_trampoline_init): Fix typo. | |
512 | ||
66f0e027 JJ |
513 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
514 | ||
dc67413d JJ |
515 | PR bootstrap/41405 |
516 | * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf. | |
517 | ||
66f0e027 JJ |
518 | PR bootstrap/41436 |
519 | * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN | |
520 | on non-nested functions. | |
521 | ||
457ff6a1 JJ |
522 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
523 | Jan Hubicka <jh@suse.cz> | |
524 | ||
525 | * dwarf2out.c (loc_list_plus_const): Only define if | |
526 | DWARF2_DEBUGGING_INFO. | |
527 | (address_of_int_loc_descriptor): Likewise. | |
528 | ||
529 | PR debug/41411 | |
530 | * dwarf2out.c (mem_loc_descriptor): Handle HIGH. | |
531 | ||
532 | 2009-09-23 Uros Bizjak <ubizjak@gmail.com> | |
be123439 UB |
533 | |
534 | PR c/39779 | |
535 | * c-typeck.c (build_binary_op) <short_shift>: Check that integer | |
536 | constant is more than zero. | |
537 | ||
d57c0139 AM |
538 | 2009-09-23 Alan Modra <amodra@bigpond.net.au> |
539 | ||
540 | PR target/40473 | |
541 | * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't | |
542 | call final to emit non-scheduled prologue, instead insert at entry. | |
543 | ||
f2431d5d LR |
544 | 2009-09-22 Loren J. Rittle <ljrittle@acm.org> |
545 | Joseph S. Myers <joseph@codesourcery.com> | |
546 | ||
547 | * doc/install.texi (*-*-freebsd*): Add proper format codes. | |
548 | ||
41e7ac51 | 549 | 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net> |
be123439 | 550 | Rafael Avila de Espindola <espindola@google.com> |
41e7ac51 BS |
551 | |
552 | * gengtype.c (is_file_equal): New function. | |
553 | (close_output_files): Use is_file_equal. Free of->buf. | |
554 | ||
0182d016 | 555 | 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net> |
be123439 | 556 | Rafael Avila de Espindola <espindola@google.com> |
0182d016 BS |
557 | |
558 | * gengtype.c (write_types, write_local): Add the output_header | |
559 | argument. Update all callers. | |
560 | ||
d40a19da DS |
561 | 2009-09-22 Dodji Seketeli <dodji@redhat.com> |
562 | ||
563 | * dwarf2out.c (template_parameter_pack_die, | |
564 | gen_formal_parameter_pack_die ): New functions. | |
565 | (make_ith_pack_parameter_name): Remove this function. | |
566 | (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and | |
567 | DW_TAG_formal_parameter_pack. | |
568 | (gen_generic_params_dies): Represent each template parameter pack | |
569 | by a DW_TAG_template_parameter_pack DIE. Argument pack elements are | |
570 | represented by usual DW_TAG_template_*_parameter DIEs that are | |
571 | children of the DW_TAG_template_parameter_pack element DIE. | |
572 | (generic_parameter_die): This doesn't deal with parameter pack | |
be123439 UB |
573 | names anymore. Don't generate DW_AT_name for some DIEs, e.g. children |
574 | of parameter pack DIEs. | |
d40a19da DS |
575 | (gen_formal_parameter_die): Add a flag to not emit DW_AT_name |
576 | in certain cases, e.g. for pack elements. | |
577 | (gen_formal_types_die, gen_decl_die): Adjust usage of | |
578 | gen_formal_parameter_die. | |
579 | (gen_subprogram_die): Represent each function parameter pack by a | |
580 | DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are | |
581 | represented by usual DW_TAG_formal_parameter DIEs that are children | |
582 | of the DW_TAG_formal_parameter_pack DIE. Remove references to | |
583 | ____builtin_va_alist decls as no part of the compiler uses those | |
584 | anymore. | |
585 | * langhooks.h (struct lang_hooks_for_decls): Add | |
586 | function_parm_expanded_from_pack_p, get_generic_function_decl | |
587 | and function_parameter_pack_p hooks. Fix comment for | |
588 | get_innermost_generic_parms hook. | |
589 | * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P, | |
590 | LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook | |
591 | macros and use them to initialize lang_hook. | |
592 | ||
82497700 RH |
593 | 2009-09-22 Richard Henderson <rth@redhat.com> |
594 | ||
595 | * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison. | |
596 | (TRAMPOLINE_ADJUST_ADDRESS): Poison. | |
597 | * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize | |
598 | on TRAMPOLINE_TEMPLATE. | |
599 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on | |
600 | TRAMPOLINE_ADJUST_ADDRESS. | |
601 | * targhooks.c (default_asm_trampoline_template): Remove. | |
602 | (default_trampoline_adjust_address): Remove. | |
603 | (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE. | |
604 | * targhooks.h: Update decls. | |
605 | ||
6a92b6c7 DK |
606 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
607 | ||
608 | * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable. | |
609 | * config/i386/cygwin.h (LIBGCJ_SONAME): Define. | |
610 | * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise. | |
611 | ||
502a1e45 AO |
612 | 2009-09-22 Alexandre Oliva <aoliva@redhat.com> |
613 | ||
614 | PR debug/41295 | |
615 | * reload1.c (reload): Reset debug insns with pseudos without | |
616 | equivalences. | |
617 | ||
a9ab39d3 JJ |
618 | 2009-09-22 Janis Johnson <janis187@us.ibm.com> |
619 | ||
620 | * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return | |
621 | unconditional true for decimal float modes. | |
622 | * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto. | |
623 | * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto. | |
624 | ||
2208d2ac LR |
625 | 2009-09-22 Loren J. Rittle <ljrittle@acm.org> |
626 | ||
627 | * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME. | |
628 | Enable a new case for __FreeBSD__ >= 7. | |
629 | * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7. | |
630 | * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP. | |
631 | * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC | |
632 | and USE_LD_AS_NEEDED. | |
633 | ||
27ed7478 LR |
634 | * doc/install.texi (*-*-freebsd*): Update target information. |
635 | ||
6eee506e RH |
636 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
637 | ||
638 | PR middle-end/41395 | |
639 | * tree-dfa.c (get_ref_base_and_extent): Handle trailing | |
640 | arrays really properly. | |
641 | ||
531ca746 RH |
642 | 2009-09-22 Richard Henderson <rth@redhat.com> |
643 | ||
644 | PR target/41246 | |
645 | * target.h (struct gcc_target): Add asm_out.trampoline_template, | |
646 | calls.static_chain, calls.trampoline_init, | |
647 | calls.trampoline_adjust_address. | |
648 | * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. | |
649 | (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New. | |
650 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
651 | * builtins.c (expand_builtin_setjmp_receiver): Use | |
652 | targetm.calls.static_chain; only clobber registers. | |
653 | (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init; | |
654 | set up memory attributes properly for the trampoline block. | |
655 | (expand_builtin_adjust_trampoline): Use | |
656 | targetm.calls.trampoline_adjust_address. | |
657 | * calls.c (prepare_call_address): Add fndecl argument. Use | |
658 | targetm.calls.static_chain. | |
659 | * df-scan.c (df_need_static_chain_reg): Remove. | |
660 | (df_get_entry_block_def_set): Use targetm.calls.static_chain; | |
661 | consolodate static chain handling. | |
662 | * doc/tm.texi: Document new hooks. | |
663 | * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove. | |
664 | (init_emit_regs): Don't initialize them. | |
665 | * expr.h (prepare_call_address): Update decl. | |
666 | * final.c (profile_function): Use targetm.calls.static_chain. | |
667 | * function.c (expand_function_start): Likewise. | |
668 | * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove. | |
669 | * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain; | |
670 | only clobber registers. | |
671 | * targhooks.c (default_static_chain): New. | |
672 | (default_asm_trampoline_template, default_trampoline_init): New. | |
673 | (default_trampoline_adjust_address): New. | |
674 | * targhooks.h: Declare them. | |
675 | * varasm.c (assemble_trampoline_template): Use | |
676 | targetm.asm_out.trampoline_template. Make the memory block const | |
677 | and set its size. | |
678 | ||
672f0baa RH |
679 | * config/alpha/alpha.c (alpha_trampoline_init): Rename from |
680 | alpha_initialize_trampoline. Make static. Merge VMS parameter | |
681 | differences into the TARGET_ABI_OPEN_VMS code block. | |
682 | (TARGET_TRAMPOLINE_INIT): New. | |
683 | * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove. | |
684 | (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove. | |
685 | * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove. | |
686 | (INITIALIZE_TRAMPOLINE): Remove. | |
687 | ||
688 | * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New. | |
689 | (TRAMPOLINE_TEMPLATE): Merge with ... | |
690 | (INITIALIZE_TRAMPOLINE): ... this and move ... | |
691 | * config/arc/arc.c (arc_trampoline_init): ... here. | |
2d7b663a | 692 | (TARGET_TRAMPOLINE_INIT): New. |
2d7b663a | 693 | |
0ef9304b RH |
694 | * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
695 | (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
696 | (arm_asm_trampoline_template): New. | |
697 | (arm_trampoline_init, arm_trampoline_adjust_address): New. | |
698 | * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE, | |
699 | THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all | |
700 | code to arm_asm_trampoline_template. | |
701 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to | |
702 | arm_trampoline_adjust_address. | |
703 | (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init; | |
704 | adjust for target hook parameters. | |
705 | ||
be123439 UB |
706 | * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): |
707 | Remove. | |
2df373c2 | 708 | |
92910d77 RH |
709 | * config/bfin/bfin-protos.h (initialize_trampoline): Remove. |
710 | * config/bfin/bfin.c (bfin_asm_trampoline_template): New. | |
711 | (bfin_trampoline_init): Rename from initialize_trampoline; | |
712 | make static; update for target hook parameters. | |
713 | (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New. | |
714 | * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to | |
715 | bfin_asm_trampoline_template. | |
716 | (INITIALIZE_TRAMPOLINE): Remove. | |
717 | ||
3e322b77 RH |
718 | * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
719 | TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template, | |
720 | cris_trampoline_init): New. | |
721 | * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to | |
722 | cris_asm_trampoline_template. | |
723 | (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init; | |
724 | adjust for target hook parameters. | |
725 | ||
956c97fc RH |
726 | * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove. |
727 | ||
98689f5e RH |
728 | * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
729 | TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template, | |
730 | fr30_trampoline_init): New. | |
731 | * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to | |
732 | fr30_asm_trampoline_template. | |
733 | (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init; | |
734 | adjust for target hook parameters. | |
735 | ||
e9d5fdb2 RH |
736 | * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New. |
737 | (frv_trampoline_init): Rename from frv_initialize_trampoline; | |
738 | make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook. | |
739 | * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove. | |
740 | * config/frv/frv-protos.h (frv_initialize_trampoline): Remove. | |
741 | ||
9f6ef043 RH |
742 | * config/h8300/h8300.c (h8300_trampoline_init): New. |
743 | (TARGET_TRAMPOLINE_INIT): New. | |
744 | * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code | |
745 | to h8300_trampoline_init and adjust for hook parameters. | |
746 | ||
2a1211e5 RH |
747 | * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove. |
748 | * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New. | |
749 | (ia64_trampoline_init): Rename from ia64_initialize_trampoline; | |
750 | make static; adjust for hook parameters. | |
751 | * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove. | |
752 | ||
f4a33d37 RH |
753 | * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
754 | (TARGET_TRAMPOLINE_INIT): New. | |
755 | (iq2000_asm_trampoline_template, iq2000_trampoline_init): New. | |
756 | * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to | |
757 | iq2000_asm_trampoline_template. | |
758 | (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init. | |
759 | (TRAMPOLINE_CODE_SIZE): New. | |
760 | (TRAMPOLINE_SIZE): Use it. | |
761 | (TRAMPOLINE_ALIGNMENT): Follow Pmode. | |
762 | ||
229fbccb RH |
763 | * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove. |
764 | * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New. | |
765 | (m32c_trampoline_init): Rename from m32c_initialize_trampoline; | |
766 | adjust for hook parameters. | |
767 | * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove. | |
768 | ||
1548bf05 RH |
769 | * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New. |
770 | (m32r_trampoline_init): New. | |
771 | * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to | |
772 | m32r_trampoline_init. | |
773 | ||
0d7e5af1 RH |
774 | * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New. |
775 | (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline; | |
776 | make static; update for hook parameters. | |
777 | * config/m68hc11/m68hc11-protos.h: Update. | |
778 | * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove. | |
779 | ||
71e0af3c RH |
780 | * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
781 | (TARGET_TRAMPOLINE_INIT): New. | |
782 | (mcore_function_value): Fix typo. | |
783 | (mcore_asm_trampoline_template, mcore_trampoline_init): New. | |
afbd0665 | 784 | * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code |
71e0af3c RH |
785 | to mcore_asm_trampoline_template. |
786 | (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init. | |
787 | ||
87138d8d RH |
788 | * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove. |
789 | * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New. | |
790 | (mep_trampoline_init): Rename from mep_init_trampoline; make static; | |
791 | update for hook parameters. | |
792 | * config/mep/mep-protos.h (mep_init_trampoline): Remove. | |
793 | ||
a1d29c8c RH |
794 | * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
795 | mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
796 | mips_trampoline_init): New. | |
797 | * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to | |
798 | mips_asm_trampoline_template. | |
799 | (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init; | |
800 | update for hook parameters. | |
801 | ||
dbbdb385 RH |
802 | * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
803 | (TARGET_TRAMPOLINE_INIT): New. | |
804 | (mmix_trampoline_size): Remove. | |
805 | (mmix_asm_trampoline_template): Rename from mmix_trampoline_template; | |
806 | make static. Remove out-of-date tetra vs octa comment. | |
807 | (mmix_trampoline_init): Rename from mmix_initialize_trampoline; | |
808 | make static; update for hook parameters. | |
809 | * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove. | |
810 | (INITIALIZE_TRAMPOLINE): Remove. | |
811 | (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size. | |
812 | (TRAMPOLINE_ALIGNMENT): New. | |
813 | * gcc/config/mmix/mmix-protos.h: Update. | |
814 | ||
bdeb5f0c RH |
815 | * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
816 | mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
817 | mn10300_trampoline_init): New. | |
818 | * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to | |
819 | mn10300_asm_trampoline_template. | |
820 | (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init. | |
821 | ||
4601494d RH |
822 | * config/moxie/moxie.c (moxie_static_chain, |
823 | moxie_asm_trampoline_template, moxie_trampoline_init, | |
824 | TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE, | |
825 | TARGET_TRAMPOLINE_INIT): New. | |
826 | * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to | |
827 | moxie_trampoline_init. | |
828 | (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template. | |
829 | (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove. | |
830 | ||
859c146c RH |
831 | * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
832 | pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
833 | pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS, | |
834 | pa_trampoline_adjust_address): New. | |
835 | * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to | |
836 | pa_asm_trampoline_template. | |
837 | (TRAMPOLINE_ALIGNMENT): New. | |
838 | (TRAMPOLINE_CODE_SIZE): Move to pa.c. | |
839 | (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init; | |
840 | adjust for hook parameters. | |
841 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address. | |
842 | ||
8dd65c37 RH |
843 | * config/pdp11/pdp11.c (pdp11_trampoline_init): New. |
844 | (TARGET_TRAMPOLINE_INIT): New. | |
845 | * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove. | |
846 | (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init. | |
847 | ||
454da451 RH |
848 | * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove. |
849 | ||
44d43e53 RH |
850 | * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove. |
851 | * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New. | |
852 | (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline; | |
853 | make static; adjust parameters for the hook. | |
854 | * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove. | |
855 | ||
b81ecf6f RH |
856 | * config/s390/s390.c (s390_asm_trampoline_template): Rename from |
857 | s390_trampoline_template; make static. | |
858 | (s390_trampoline_init): Rename from s390_initialize_trampoline; | |
859 | make static; adjust for target hook. | |
860 | (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New. | |
861 | * config/s390/s390-protos.h: Remove trampoline decls. | |
862 | * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove. | |
863 | (TRAMPOLINE_TEMPLATE): Remove. | |
864 | (TRAMPOLINE_ALIGNMENT): New. | |
865 | ||
2f5bb28c RH |
866 | * config/score/score-protos.h (score_initialize_trampoline): Remove. |
867 | * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. | |
868 | (TARGET_TRAMPOLINE_INIT): New. | |
869 | (score_asm_trampoline_template): New. | |
870 | (score_trampoline_init): Rename from score_initialize_trampoline; | |
871 | make static; adjust for hook parameters. | |
872 | * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to | |
873 | score[37]_asm_trampoline_template. | |
874 | (INITIALIZE_TRAMPOLINE): Remove. | |
875 | * config/score/score3.c (score3_asm_trampoline_template): New. | |
876 | (score3_trampoline_init): Rename from score3_initialize_trampoline; | |
877 | adjust for target hook. | |
878 | * config/score/score7.c (score7_asm_trampoline_template): New. | |
879 | (score7_trampoline_init): Rename from score7_initialize_trampoline; | |
880 | adjust for target hook. | |
881 | * config/score/score3.h, config/score/score7.h: Update. | |
882 | ||
994322ef RH |
883 | * config/sh/sh-protos.h (sh_initialize_trampoline): Remove. |
884 | * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New. | |
885 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
886 | (sh_trampoline_init): Rename from sh_initialize_trampoline; | |
887 | make static; adjust for target hook parameters. | |
888 | (sh_trampoline_adjust_address): New. | |
889 | * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New. | |
890 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address. | |
891 | ||
809e78cc RH |
892 | * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New. |
893 | (sparc32_initialize_trampoline): Rename from | |
894 | sparc_initialize_trampoline; make static; replace tramp parameter | |
895 | with m_tramp and update memory accesses. | |
896 | (sparc64_initialize_trampoline): Similarly. | |
897 | (sparc_trampoline_init): New. | |
898 | * config/sparc/sparc-protos.h: Remove trampoline decls. | |
899 | * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove. | |
900 | * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx. | |
901 | ||
a85b4c91 RH |
902 | * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New. |
903 | (array_to_constant): Make ARR parameter const. | |
904 | (spu_trampoline_init): Rename from spu_initialize_trampoline; | |
905 | make static; update for hook parameters. | |
906 | * config/spu/spu-protos.h: Update decls. | |
907 | * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove. | |
908 | ||
fb8d0fac RH |
909 | * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename |
910 | from xstormy16_initialize_trampoline; make static; update for | |
911 | hook parameters. | |
912 | (TARGET_TRAMPOLINE_INIT): New. | |
913 | * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove. | |
914 | ||
e0c6c273 RH |
915 | * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
916 | (TARGET_TRAMPOLINE_INIT): New. | |
917 | (v850_can_eliminate): Make static. | |
918 | (v850_asm_trampoline_template, v850_trampoline_init): New. | |
919 | * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to | |
920 | v850_asm_trampoline_template. | |
921 | (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init | |
922 | and adjust for target hook parameters. | |
923 | ||
3814318d RH |
924 | * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
925 | (TARGET_TRAMPOLINE_INIT): New. | |
926 | (vax_asm_trampoline_template, vax_trampoline_init): New. | |
927 | * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to | |
928 | vax_asm_trampoline_template. | |
929 | (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init. | |
930 | ||
3c1229cb RH |
931 | * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
932 | (TARGET_TRAMPOLINE_INIT): New. | |
933 | (xtensa_asm_trampoline_template): Rename from | |
934 | xtensa_trampoline_template; make static. | |
935 | (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline; | |
936 | make static; update for hook parameters. | |
937 | * config/xtensa/xtensa-protos.h: Remove trampoline decls. | |
938 | * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove. | |
939 | (INITIALIZE_TRAMPOLINE): Remove. | |
940 | ||
3452586b RH |
941 | * config/i386/i386.c (ix86_function_regparm): Do not issue an |
942 | error for nested functions with regparm=3. | |
943 | (ix86_compute_frame_layout): Adjust frame pointer offset for | |
944 | ix86_static_chain_on_stack. | |
945 | (ix86_expand_prologue): Handle ix86_static_chain_on_stack. | |
946 | (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset, | |
947 | don't reset to UNITS_PER_WORD. | |
948 | (ix86_emit_leave): Adjust ix86_cfa_state. | |
949 | (ix86_expand_epilogue): Handle ix86_static_chain_on_stack. | |
950 | (ix86_static_chain): New. | |
951 | (ix86_trampoline_init): Rename from x86_initialize_trampoline; | |
952 | make static; update for target hook parameters; use ix86_static_chain. | |
953 | (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New. | |
954 | * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove. | |
955 | (INITIALIZE_TRAMPOLINE): Remove. | |
956 | (TRAMPOLINE_SIZE): Use 24 for 64-bit. | |
957 | (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields | |
958 | to the end. Add static_chain_on_stack. | |
959 | (ix86_static_chain_on_stack): New. | |
960 | ||
e0601576 RH |
961 | * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New. |
962 | (m68k_output_mi_thunk): Don't use static_chain_rtx. | |
963 | (m68k_trampoline_init): New. | |
964 | * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to | |
965 | m68k_trampoline_init and adjust for hook parameters. | |
966 | * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove. | |
967 | (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove. | |
968 | ||
39dbcfc3 JJ |
969 | 2009-09-22 Jakub Jelinek <jakub@redhat.com> |
970 | ||
9190e0a9 JJ |
971 | * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes |
972 | for __builtin_altivec_vcmpgt{sb,uh,sh,uw}. | |
973 | ||
39dbcfc3 JJ |
974 | * reload1.c (reload): Call wrap_constant when substituting |
975 | reg for equiv inside of DEBUG_INSNs. | |
976 | ||
65f753a0 JJ |
977 | PR bootstrap/41405 |
978 | * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die, | |
979 | add_call_src_coords_attributes, add_high_low_attributes, | |
980 | gen_compile_unit_die, gen_type_die_with_usage force_decl_die, | |
981 | gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish, | |
982 | dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions | |
983 | when -gdwarf-2 -gstrict-dwarf. | |
984 | (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when | |
985 | -gdwarf-[23] -gstrict-dwarf. | |
986 | (address_of_int_loc_descriptor, loc_descriptor, | |
987 | loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using | |
988 | DWARF4 additions when -gdwarf-[23] -gstrict-dwarf. | |
989 | * common.opt (gno-strict-dwarf, gstrict-dwarf): New options. | |
990 | ||
f61e18ec RG |
991 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
992 | ||
993 | PR tree-optimization/41428 | |
994 | * tree-ssa-ccp.c (ccp_fold_stmt): New function. | |
995 | (ccp_finalize): Pass it to substitute_and_fold. | |
996 | ||
ff7ffb8f RG |
997 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
998 | ||
999 | * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare. | |
1000 | (substitute_and_fold): Adjust prototype. | |
1001 | * tree-vrp.c (vrp_evaluate_conditional): Make static. | |
1002 | (simplify_stmt_using_ranges): Likewise. | |
1003 | (fold_predicate_in): Move here from tree-ssa-propagate.c. | |
1004 | (vrp_fold_stmt): New function. | |
1005 | (vrp_finalize): Pass it to substitute_and_fold. | |
1006 | * tree-flow.h (vrp_evaluate_conditional): Remove. | |
1007 | (simplify_stmt_using_ranges): Likewise. | |
1008 | * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold. | |
1009 | * tree-ssa-copy.c (fini_copy_prop): Likewise. | |
1010 | * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded | |
1011 | member. | |
1012 | (fold_predicate_in): Move to tree-vrp.c. | |
1013 | (substitute_and_fold): Use the callback instead of calling into | |
1014 | tree-vrp.c functions directly. | |
1015 | ||
40742b42 JJ |
1016 | 2009-09-22 Jakub Jelinek <jakub@redhat.com> |
1017 | ||
8b659ecb JJ |
1018 | * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned |
1019 | comparison warning on rs6000. | |
1020 | ||
40742b42 JJ |
1021 | PR middle-end/41429 |
1022 | * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for | |
1023 | GIMPLE_EH_MUST_NOT_THROW cleanup. | |
1024 | (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW. | |
1025 | ||
c9c80434 JH |
1026 | 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu> |
1027 | ||
1028 | PR middle-end/41260 | |
1029 | * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later. | |
1030 | * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on | |
1031 | LIB_SPEC for darwin10 and later since it always uses the unwinder in | |
1032 | libSystem which is derived from the gcc 4.2.1 unwinder. | |
1033 | ||
e0fd7469 DK |
1034 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
1035 | ||
1036 | PR middle-end/41357 | |
1037 | * varasm.c (default_encode_section_info): Copy TLS model into | |
1038 | sym_ref flags regardless of backend support for TLS, for all | |
1039 | model types except TLS_MODEL_EMULATED. | |
1040 | ||
cf09842e DK |
1041 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
1042 | ||
1043 | PR bootstrap/41404 | |
1044 | * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until | |
1045 | we can handle it correctly. | |
1046 | ||
c1493544 GP |
1047 | 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com> |
1048 | ||
1049 | * doc/install.texi (os2): Remove section. | |
1050 | ||
2f55829e GP |
1051 | 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com> |
1052 | ||
1053 | * doc/standards.texi (Objective-C): Adjust two URLs. | |
1054 | ||
d9334061 GS |
1055 | 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org> |
1056 | ||
be123439 UB |
1057 | * tree-tailcall.c (process_assignment): Don't check if a |
1058 | multiplication or an addition are already present. | |
d9334061 GS |
1059 | (find_tail_calls): Combine multiple additions and multiplications. |
1060 | (adjust_accumulator_values): Emit accumulators. | |
1061 | ||
4b51caf2 KT |
1062 | 2009-09-21 Kai Tietz <kai.tietz@onevision.com> |
1063 | ||
1064 | * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for | |
1065 | xmm register restore. | |
1066 | ||
5b5fba56 JH |
1067 | 2009-09-21 Jan Hubicka <jh@suse.cz> |
1068 | ||
1069 | * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL. | |
1070 | (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and | |
1071 | restore at the end. | |
1072 | ||
473ebbc5 EB |
1073 | 2009-09-21 Eric Botcazou <ebotcazou@adacore.com> |
1074 | ||
1075 | * stor-layout.c (layout_type): Remove obsolete code. | |
1076 | ||
1dbb24a3 L |
1077 | 2009-09-20 H.J. Lu <hongjiu.lu@intel.com> |
1078 | ||
1079 | PR middle-end/41395 | |
1080 | * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2. | |
1081 | ||
ca75b926 KG |
1082 | 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1083 | ||
1084 | PR middle-end/30789 | |
1085 | * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter. | |
1086 | (do_mpc_ckconv): Accept FORCE_CONVERT parameter. | |
1087 | (fold_builtin_2, do_mpc_arg1): Update accordingly. | |
1088 | * fold-const.c (const_binop): Likewise. | |
1089 | * real.h (do_mpc_arg2): Update prototype. | |
1090 | ||
c4a80a2d JH |
1091 | 2009-09-20 Jan Hubicka <jh@suse.cz> |
1092 | ||
1093 | * dwarf2out.c (add_const_value_attribute): Return true if successful. | |
be123439 UB |
1094 | (add_location_or_const_value_attribute): Rewrite using |
1095 | loc_list_from_tree. | |
c4a80a2d JH |
1096 | (tree_add_const_value_attribute): Return true if successful. |
1097 | (tree_add_const_value_attribute_for_decl): Likewise. | |
1098 | ||
1099 | * dwarf2out.c (address_of_int_loc_descriptor): Break out from ... | |
1100 | (loc_descriptor): ... here; | |
1101 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
1102 | (cst_pool_loc_descr): Break out from ...; do not reffer constant | |
1103 | pool items that was not marked for output. | |
1104 | (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR; | |
1105 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
1106 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
1107 | handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR, | |
1108 | IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of | |
1109 | CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use | |
1110 | DW_OP_stack_value to get address of items that are not available | |
1111 | as addresses. | |
1112 | (dw_loc_list): Handle single element lists correctly. | |
1113 | ||
0b1d7060 KT |
1114 | 2009-09-20 Kai Tietz <kai.tietz@onevision.com> |
1115 | Pascal Obry <obry@adacore.com> | |
1116 | ||
1117 | * unwind-dw2-fde.c (classify_object_over_fdes): | |
1118 | Cast the constant 1 to _Unwind_Ptr. | |
1119 | (add_fdes): Likewise. | |
1120 | (linear_search_fdes): Likewise. | |
1121 | ||
d0566a63 EB |
1122 | 2009-09-20 Eric Botcazou <ebotcazou@adacore.com> |
1123 | ||
1124 | * stor-layout.c (set_sizetype): Avoid useless type copy. | |
1125 | ||
49576e25 RS |
1126 | 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com> |
1127 | ||
1128 | * configure.ac (gcc_cv_ld_mips_personality_relaxation): New | |
1129 | feature check. | |
1130 | (HAVE_LD_PERSONALITY_RELAXATION): New macro definition. | |
1131 | * configure, config.in: Regenerate. | |
1132 | * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect | | |
1133 | DW_EH_PE_absptr. | |
1134 | * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro. | |
1135 | (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT | |
1136 | for global data if the output could be used in a shared library. | |
1137 | * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm | |
1138 | to 0 if TARGET_WRITABLE_EH_FRAME. | |
1139 | ||
63c6c7e0 KT |
1140 | 2009-09-20 Paolo Bonzini <bonzini@gnu.org> |
1141 | ||
f8e25a2a | 1142 | PR rtl-optimization/39886 |
63c6c7e0 KT |
1143 | * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU |
1144 | just when insn is equal to BB_END (bb). | |
1145 | ||
b53da244 AN |
1146 | 2009-09-19 Adam Nemet <anemet@caviumnetworks.com> |
1147 | ||
1148 | * config/mips/mips.opt (mrelax-pic-calls): New option. | |
1149 | * config/mips/mips.c (mips_strip_unspec_address): Move it up in | |
1150 | the file. | |
1151 | (mips_unspec_call): Change "unspec_call" expander into this. | |
1152 | (mips_strip_unspec_call): New function. | |
1153 | (mips_got_load): Call mips_unspec_call instead of | |
1154 | gen_unspec_call<mode>. | |
1155 | (mips16_build_call_stub): Fix comment for fp_code. Adjust call to | |
1156 | MIPS_CALL. | |
1157 | (mips_cfg_in_reorg): New function. | |
1158 | (mips16_lay_out_constants): Use it to decide whether to call | |
1159 | CFG-aware insn splitting. | |
1160 | (r10k_insert_cache_barriers): Move CFG set-up code from here to | |
1161 | mips_reorg. Move DF set-up code from here ... | |
1162 | (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers | |
1163 | from here. | |
1164 | (mips_reorg): Call mips_df_reorg instead of | |
1165 | r10k_insert_cache_barriers. Move CFG set-up code here from | |
1166 | r10k_insert_cache_barriers. | |
1167 | (mips_call_expr_from_insn): New function. | |
1168 | (mips_pic_call_symbol_from_set): Likewise. | |
1169 | (mips_find_pic_call_symbol): Likewise. | |
1170 | (mips_annotate_pic_call_expr): Likewise. | |
1171 | (mips_get_pic_call_symbol): Likewise. | |
1172 | (mips_annotate_pic_calls): Likewise. | |
1173 | (mips_override_options): Disable -mrelax-pic-calls unless PIC | |
1174 | calls are used. | |
1175 | (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16. | |
1176 | * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it. | |
1177 | * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc | |
1178 | directive. | |
1179 | * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec. | |
1180 | (unspec_call<mode>): Remove it. | |
1181 | (sibcall_internal, sibcall_value_internal, | |
1182 | sibcall_value_multiple_internal, call_internal, call_split, | |
1183 | call_value_internal, call_value_split, | |
1184 | call_value_multiple_internal, call_value_multiple_split): Pass | |
1185 | SIZE_OPNO to MIPS_CALL. | |
1186 | (call_internal_direct, call_direct_split, | |
1187 | call_value_internal_direct, call_value_direct_split): Pass -1 as | |
1188 | SIZE_OPNO to MIPS_CALL. | |
1189 | * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR. | |
1190 | * configure: Regenerate. | |
1191 | * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls | |
1192 | and -mno-relax-pic-calls. | |
be123439 | 1193 | (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls. |
b53da244 | 1194 | |
1d93c860 RW |
1195 | 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1196 | ||
1197 | PR bootstrap/35619 | |
1198 | * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created | |
1199 | in the directory this rule is called from, rather than the | |
1200 | toplevel 'gcc' directory, to fix in-tree build. | |
1201 | ||
74dc6a11 CD |
1202 | 2009-09-19 Chris Demetriou <cgd@google.com> |
1203 | ||
1204 | PR preprocessor/28435: | |
1205 | * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate | |
1206 | to cpplib that the preprocessor output is needed. | |
1207 | ||
bc8b6c98 JJ |
1208 | 2009-09-19 Jakub Jelinek <jakub@redhat.com> |
1209 | ||
e0f3e75b JJ |
1210 | * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>, |
1211 | *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>, | |
1212 | *return_and_restore_fpregs_<mode>, | |
1213 | *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier. | |
1214 | ||
bc8b6c98 JJ |
1215 | PR bootstrap/41397 |
1216 | * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse | |
1217 | instead of assuming it has always a REG inside of it. | |
1218 | ||
ca94da48 GP |
1219 | 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com> |
1220 | ||
1221 | * config/freebsd.h: Update comment on types. | |
1222 | (WINT_TYPE): Define. | |
1223 | ||
5f5babf1 JM |
1224 | 2009-09-18 Jason Merrill <jason@redhat.com> |
1225 | ||
1226 | * c.opt: Add -fno-deduce-init-list. | |
1227 | ||
eb99f777 NV |
1228 | 2009-09-18 Neil Vachharajani <nvachhar@google.com> |
1229 | ||
1230 | * value-prof.c (interesting_stringop_to_profile_p): Added output | |
1231 | argument to indicate which parameter is the size parameter. | |
1232 | * value-prof.c (gimple_stringop_fixed_value): Use | |
1233 | INTERESTING_STRINGOP_TO_PROFILE_P to find size argument. | |
1234 | * value-prof.c (gimple_stringops_transform): Update call sites to | |
1235 | INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change. | |
eb99f777 | 1236 | |
2a79f8e4 UB |
1237 | 2009-09-18 Uros Bizjak <ubizjak@gmail.com> |
1238 | ||
1239 | PR target/38288 | |
1240 | From David Binderman <dcb314@hotmail.com>: | |
1241 | * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless | |
1242 | local variable f. Remove stale comments. | |
1243 | (ix86_compute_frame_layout): Remove useless local variable total_size. | |
1244 | Remove #if 0'd code. | |
1245 | (legitimate_address_p): Remove useless local variables | |
1246 | reason_rtx and reason. | |
1247 | (ix86_split_copysign_const): Remove useless local variable op1. | |
1248 | (scale_counter): Remove useless local variable piece_size_mask. | |
1249 | ||
2b5bcdee JJ |
1250 | 2009-09-18 Jakub Jelinek <jakub@redhat.com> |
1251 | ||
1252 | * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from | |
1253 | output decl. | |
1254 | ||
43eb8947 MH |
1255 | 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at> |
1256 | ||
1257 | PR target/40913 | |
1258 | * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl. | |
1259 | ||
591a8495 JJ |
1260 | 2009-09-17 Jakub Jelinek <jakub@redhat.com> |
1261 | ||
1262 | * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of | |
1263 | TYPE_STUB_DECL. | |
1264 | ||
417b3023 AO |
1265 | 2009-09-17 Alexandre Oliva <aoliva@redhat.com> |
1266 | ||
1267 | * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and | |
1268 | DW_OP_implicit_value even without dwarf_version 4. | |
1269 | ||
e7f373fa JH |
1270 | 2009-09-17 Jan Hubicka <jh@suse.cz> |
1271 | ||
1272 | * dwarf2out.c: Include tree-pass.h and gimple.h. | |
1273 | (loc_list_plus_const): New function. | |
1274 | (loc_descriptor_from_tree_1): Rename to ... | |
1275 | (loc_descriptor_from_tree): ... remove original. | |
1276 | (loc_list_from_tree): New function. | |
1277 | (add_AT_location_description): Accept location list. | |
1278 | (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree. | |
1279 | (concatn_mem_loc_descriptor): Remove. | |
1280 | (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by | |
1281 | returning NULL. | |
1282 | (secname_for_decl): Move up. | |
1283 | (hidden_reference_p): New function; break out from ... | |
1284 | (loc_by_refernece): ... here; move up. | |
1285 | (dw_loc_list): New function. | |
1286 | (single_element_loc_list): New function. | |
1287 | (single_element_loc_list_p): New function. | |
1288 | (add_loc_descr_to_each): New function. | |
1289 | (add_loc_list): New function. | |
1290 | (loc_descr_from_tree): Make wraper of loc_list_from_tree. | |
1291 | (loc_list_from_tree): Reroganized from loc_descr_from_tree; | |
1292 | add diagnostics why expansion failed. | |
1293 | (add_location_or_const_value_attribute): Support location lists. | |
1294 | (add_bound_info): Likewise. | |
1295 | (descr_info_loc): Update call of loc_descriptor_from_tree. | |
1296 | (gen_variable_die): Work on location lists. | |
1297 | * final.c (pass_final): Add dump file. | |
1298 | * Makefile.in (dwarf2out.o): Add new dependencies. | |
1299 | ||
d2da4af2 JJ |
1300 | 2009-09-17 Janis Johnson <janis187@us.ibm.com> |
1301 | ||
1302 | PR c/41049 | |
1303 | * real.c decimal_from_integer, decimal_integer_string): New. | |
1304 | (real_from_integer): Use them as special case for decimal float. | |
1305 | * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding. | |
1306 | (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td): | |
1307 | Do not append zero after the decimal point in string to convert. | |
1308 | ||
98f3eb1f AM |
1309 | 2009-09-17 Alexander Monakov <amonakov@ispras.ru> |
1310 | ||
1311 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
1312 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
1313 | ||
07ffa034 MJ |
1314 | 2009-09-17 Martin Jambor <mjambor@suse.cz> |
1315 | ||
1316 | * common.opt (fipa-sra): New switch. | |
1317 | * opts.c (decode_options): Turn flag_ipa_sra on for opt2. | |
1318 | * timevar.def (TV_IPA_SRA): New timevar. | |
1319 | * params.def (ipa-sra-ptr-growth-factor): New parameter. | |
1320 | * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor. | |
1321 | * tree-sra.c: Include cgraph.c. | |
1322 | (enum sra_mode): Added SRA_MODE_EARLY_IPA. | |
1323 | (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr | |
1324 | and grp_not_necessarilly_dereferenced. | |
1325 | (func_param_count): New variable. | |
1326 | (encountered_apply_args): New variable. | |
1327 | (bb_dereferences): New variable. | |
1328 | (final_bbs): New variable. | |
1329 | (no_accesses_representant): New variable. | |
1330 | (no_accesses_p): New function. | |
1331 | (dump_access): Dump the new fields. | |
1332 | (sra_initialize): Set encountered_apply_args to false. | |
1333 | (get_ssa_base_param): New function. | |
1334 | (mark_parm_dereference): New function. | |
1335 | (create_access): Caring for INIDRECT_REFs and different handling of | |
1336 | varialble length accesses in early IPA SRA. Store the stmt - a new | |
1337 | parameter - to the new access. | |
1338 | (build_access_from_expr_1): New parameter stmt, passed to | |
1339 | create_access. Handle INDIRECT_REFs. | |
1340 | (build_access_from_expr): Pass the current statement to | |
1341 | build_access_from_expr_1. | |
1342 | (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural | |
1343 | passes. | |
1344 | (build_accesses_from_assign): Pass the current statement to | |
1345 | build_access_from_expr_1. Do not create assign links in IPA-SRA. | |
1346 | (scan_function): Call handle_ssa_defs on phi nodes. Set bits in | |
1347 | final_bbs when necessary. Check for calls to __builtin_apply_args. | |
1348 | Fixup EH info if anythng was changed. | |
1349 | (is_unused_scalar_param): New function. | |
1350 | (ptr_parm_has_direct_uses): New function. | |
1351 | (find_param_candidates): New function. | |
1352 | (mark_maybe_modified): New function. | |
1353 | (analyze_modified_params): New function. | |
1354 | (propagate_dereference_distances): New function. | |
1355 | (dump_dereferences_table): New function. | |
1356 | (analyze_caller_dereference_legality): New function. | |
1357 | (unmodified_by_ref_scalar_representative): New function. | |
1358 | (splice_param_accesses): New function. | |
1359 | (decide_one_param_reduction): New function. | |
1360 | (enum ipa_splicing_result): New type. | |
1361 | (splice_all_param_accesses): New function. | |
1362 | (get_param_index): New function. | |
1363 | (turn_representatives_into_adjustments): New function. | |
1364 | (analyze_all_param_acesses): New function. | |
1365 | (get_replaced_param_substitute): New function. | |
1366 | (get_adjustment_for_base): New function. | |
1367 | (replace_removed_params_ssa_names): New function. | |
1368 | (sra_ipa_reset_debug_stmts): New function. | |
1369 | (sra_ipa_modify_expr): New function. | |
1370 | (sra_ipa_modify_assign): New function. | |
1371 | (convert_callers): New function. | |
1372 | (modify_function): New function. | |
1373 | (ipa_sra_preliminary_function_checks): New function. | |
1374 | (ipa_early_sra): New function. | |
1375 | (ipa_early_sra_gate): New function. | |
1376 | (pass_early_ipa_sra): New variable. | |
1377 | * Makefile.in (tree-sra.o): Add cgraph.h to dependencies. | |
2a79f8e4 | 1378 | |
040c6d51 MM |
1379 | 2009-09-17 Michael Matz <matz@suse.de> |
1380 | ||
1381 | PR middle-end/41347 | |
1382 | * tree.c (build_type_attribute_qual_variant): Export. | |
1383 | * tree.h (build_type_attribute_qual_variant): Declare. | |
1384 | * tree-inline.c (remap_type_1): Use it to build variants with | |
1385 | the original qualifiers and attributes. | |
1386 | ||
10e154df AK |
1387 | 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1388 | ||
1389 | * cfglayout.c (fixup_reorder_chain): Accept conditional jumps | |
1390 | without a fallthrough edge. | |
1391 | ||
402f2db8 DD |
1392 | 2009-09-16 DJ Delorie <dj@redhat.com> |
1393 | ||
1394 | * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C | |
1395 | chip and ignore the "fast_interrupt" attribute if so. | |
1396 | ||
27b4689f RH |
1397 | 2009-09-16 Richard Henderson <rth@redhat.com> |
1398 | ||
1399 | PR middle-end/41360 | |
1400 | * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02 | |
1401 | barrier fix. | |
1402 | ||
fe663f4e RH |
1403 | 2009-09-16 Richard Henderson <rth@redhat.com> |
1404 | ||
1405 | PR target/41246 | |
1406 | * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain | |
1407 | is set only if DECL_NO_STATIC_CHAIN is unset. | |
1408 | * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New. | |
1409 | (FOR_EACH_NEST_INFO): New. | |
1410 | (walk_all_functions): Use it. | |
1411 | (finalize_nesting_tree): Likewise. | |
1412 | (unnest_nesting_tree): Likewise. | |
1413 | (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next. | |
1414 | (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN. | |
1415 | (convert_gimple_call): Early out if gimple_call_chain already set. | |
1416 | (convert_all_function_calls): Iterate until no new functions | |
1417 | require a static chain. | |
1418 | (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset | |
1419 | when building a trampoline. Use dump_function_to_file instead | |
1420 | of dump_function. | |
1421 | (lower_nested_functions): Open dump_file. Validate that decls | |
1422 | that have DECL_NO_STATIC_CHAIN from the front end don't have that | |
1423 | bit reset by this pass. | |
1424 | ||
9b87db3c MM |
1425 | 2009-09-16 Michael Matz <matz@suse.de> |
1426 | ||
1427 | PR fortran/41212 | |
1428 | * tree.h (struct tree_decl_common): Add decl_restricted_flag, | |
1429 | shorten decl_common_unused. | |
1430 | (DECL_RESTRICTED_P): New accessor. | |
1431 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it | |
1432 | to disambiguate marked decls and restrict pointers. | |
1433 | ||
79876307 RH |
1434 | 2009-09-16 Richard Henderson <rth@redhat.com> |
1435 | ||
1436 | PR middle-end/41360 | |
1437 | * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix. | |
1438 | ||
e038c37b JJ |
1439 | 2009-09-16 Jakub Jelinek <jakub@redhat.com> |
1440 | ||
1441 | * integrate.c (set_block_abstract_flags): Call | |
1442 | set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs. | |
1443 | ||
4075e7e8 RG |
1444 | 2009-09-16 Richard Guenther <rguenther@suse.de> |
1445 | ||
1446 | PR middle-end/34011 | |
1447 | * tree-flow-inline.h (may_be_aliased): Compute readonly variables | |
1448 | as non-aliased. | |
1449 | ||
21d05694 DD |
1450 | 2009-09-16 DJ Delorie <dj@redhat.com> |
1451 | Kaz Kojima <kkojima@gcc.gnu.org> | |
1452 | ||
1453 | * config/sh/sh.c (output_stack_adjust): Add new argument frame_p. | |
1454 | (sh_expand_prologue): Update calls to output_stack_adjust. | |
2a79f8e4 | 1455 | (sh_expand_epilogue): Likewise. |
21d05694 | 1456 | |
e484d1f0 AN |
1457 | 2009-09-15 Adam Nemet <anemet@caviumnetworks.com> |
1458 | ||
1459 | PR bootstrap/41349 | |
1460 | * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when | |
1461 | trying to limit the extent of searches in the insn stream. | |
1462 | ||
d7a9e7c5 NF |
1463 | 2009-09-15 Nathan Froyd <froydnj@codesourcery.com> |
1464 | Jakub Jelinek <jakub@redhat.com> | |
1465 | ||
1466 | PR target/41175 | |
1467 | PR target/40677 | |
1468 | * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence | |
1469 | problem. | |
1470 | (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR, | |
1471 | SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits. | |
1472 | (rs6000_savres_strategy): Always save FP registers inline if the | |
1473 | target doesn't support hardware double-precision. Set the above | |
1474 | bits in return value when needed. | |
1475 | (rs6000_savres_routine_sym): Fix computation for cache selector. | |
1476 | Mark the generated symbol as a function. Rename exitp argument to | |
1477 | lr. Move code for determining the name of the symbol... | |
1478 | (rs6000_savres_routine_name): ...here. New function. Add cases for | |
1479 | getting the names right on AIX and 64-bit Linux. | |
1480 | (savres_routine_name): New variable. | |
1481 | (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert | |
1482 | lr isn't set when savep. Use r12 resp. r1 instead of r11 depending | |
1483 | on what the target routine uses as a base register. If savep && lr | |
1484 | describe saving of r0 into memory slot. | |
1485 | (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of | |
1486 | line calls for AIX ABI. | |
1487 | (rs6000_output_function_prologue): Use rs6000_savres_routine_name to | |
1488 | determine FP save/restore functions. | |
1489 | (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and | |
1490 | frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of | |
1491 | gen_addsi3. | |
1492 | (rs6000_emit_epilogue): Adjust computation of restore_lr. | |
1493 | Duplicate restoration of LR and execute the appropriate one | |
1494 | depending on whether GPRs are being restored inline. Set r11 from | |
1495 | offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is | |
1496 | r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3. | |
1497 | Fix out of line calls for AIX ABI. | |
1498 | * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>): | |
1499 | New insn. | |
1500 | * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for | |
1501 | register 11. | |
1502 | (*restore_gpregs_spe): Likewise. | |
1503 | (*return_and_restore_gpregs_spe): Likewise. | |
1504 | * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): | |
1505 | Define to empty string unconditionally. | |
1506 | * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): | |
1507 | Define to empty string unconditionally. | |
1508 | (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as | |
1509 | !TARGET_64BIT. | |
1510 | ||
c7d68c96 JH |
1511 | 2009-09-15 Jan Hubicka <jh@suse.cz> |
1512 | ||
1513 | * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50. | |
1514 | * params.def (inline-insns-auto): Likewise. | |
1515 | ||
aa9dc284 MJ |
1516 | 2009-09-15 Martin Jambor <mjambor@suse.cz> |
1517 | ||
1518 | * ipa-inline.c (estimate_function_body_sizes): Dump info about | |
1519 | individual statements only at TDF_DETAILS dump level. Format | |
1520 | source for 80 characters per line. | |
1521 | ||
1522 | 2009-09-15 Christian Bruel <christian.bruel@st.com> | |
56550f23 | 1523 | |
2a79f8e4 UB |
1524 | * regrename.c (do_replace): Update REG_DEAD notes. |
1525 | ||
0601d0cf RE |
1526 | 2009-09-15 Revital Eres <eres@il.ibm.com> |
1527 | ||
1528 | * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document. | |
1529 | * targhooks.c (default_builtin_support_vector_misalignment): | |
1530 | New builtin function. | |
1531 | * targhooks.h (default_builtin_support_vector_misalignment): | |
1532 | Declare. | |
1533 | * target.h (builtin_support_vector_misalignment): | |
1534 | New field in struct gcc_target. | |
1535 | * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call | |
1536 | new builtin function. | |
1537 | * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT): | |
1538 | Define. | |
1539 | * config/rs6000/rs6000.c | |
1540 | (rs6000_builtin_support_vector_misalignment): New function. | |
1541 | (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define. | |
1542 | ||
e5e44796 JZ |
1543 | 2009-09-15 Jie Zhang <jie.zhang@analog.com> |
1544 | ||
1545 | * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P | |
1546 | instead of INSN_P. | |
1547 | (bfin_optimize_loop): Likewise. | |
1548 | (bfin_gen_bundles): Likewise. | |
1549 | (workaround_speculation): Likewise. | |
1550 | (find_load): Return NULL_RTX for debug_insn. | |
1551 | ||
6dac2e8e UB |
1552 | 2009-09-15 Uros Bizjak <ubizjak@gmail.com> |
1553 | ||
1554 | * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode. | |
1555 | (sminsf3): Ditto. | |
1556 | ||
d839f1eb DD |
1557 | 2009-09-14 DJ Delorie <dj@redhat.com> |
1558 | ||
1559 | * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define. | |
6dac2e8e UB |
1560 | * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in |
1561 | VLIW mode. | |
d839f1eb | 1562 | |
1c384bf1 | 1563 | 2009-09-14 Richard Henderson <rth@redhat.com> |
6dac2e8e | 1564 | Jakub Jelinek <jakub@redhat.com> |
1c384bf1 RH |
1565 | |
1566 | * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec. | |
1567 | * cfgbuild.c (make_edges): Handle asm goto. | |
1568 | * cfglayout.c (fixup_reorder_chain): Likewise. | |
1569 | * cfgrtl.c (patch_jump_insn): Likewise. | |
1570 | * gimple-pretty-print.c (dump_gimple_asm): Likewise. | |
1571 | * gimple.c (gimple_build_asm_1): Add and use nlabels parameter. | |
1572 | (gimple_build_asm_vec): Add and use labels parameter. | |
1573 | (gimple_build_asm): Remove. | |
1574 | (walk_gimple_asm): Walk labels too. | |
1575 | * gimple.def (GIMPLE_ASM): Update docs. | |
1576 | * gimple.h: Update decls. | |
1577 | (struct gimple_statement_asm): Change nc to use unsigned char; | |
1578 | add nl member. | |
1579 | (gimple_asm_nlabels): New. | |
1580 | (gimple_asm_label_op, gimple_asm_set_label_op): New. | |
1581 | * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR | |
1582 | into gimple_build_asm_vec. | |
1583 | * jump.c (mark_jump_label_asm): New. | |
1584 | (mark_jump_label): Use it. | |
1585 | (redirect_jump_1): Handle asm goto. | |
1586 | (invert_jump_1): Soft fail if X is null. | |
1587 | * recog.c (extract_asm_operands): New. | |
1588 | (asm_noperands): Use it; handle asm labels. | |
1589 | (decode_asm_operands): Use extract_asm_operands. | |
1590 | (asm_operand_ok): Properly handle empty string. | |
1591 | * reg-stack.c (get_asm_operands_in_out): Rename from | |
1592 | get_asm_operand_n_inputs; use extract_asm_operands; return both | |
1593 | inputs and outputs by reference; update all callers. | |
1594 | * rtl.def (ASM_OPERANDS): Add label vector as operand 6. | |
1595 | * rtl.h (ASM_OPERANDS_LABEL_VEC): New. | |
1596 | (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New. | |
1597 | (ASM_OPERANDS_SOURCE_LOCATION): Renumber. | |
1598 | (extract_asm_operands): Declare. | |
1599 | * stmt.c (expand_asm_operands): Add and use labels parameter. | |
1600 | (check_unique_operand_names): Likewise. | |
1601 | (resolve_asm_operand_names, resolve_operand_name_1): Likewise. | |
1602 | (expand_asm_stmt): Handle asm labels. | |
1603 | * tree-cfg.c (make_gimple_asm_edges): New. | |
1604 | (make_edges): Use it. | |
1605 | (cleanup_dead_labels): Handle asm labels. | |
1606 | (is_ctrl_altering_stmt): Likewise. | |
1607 | (gimple_redirect_edge_and_branch): Likewise. | |
1608 | * tree.def (ASM_EXPR): Add 5th operand. | |
1609 | * tree.h (ASM_LABELS): New. | |
1610 | (resolve_asm_operand_names): Update decl. | |
1611 | ||
1612 | * c-parser.c (c_parser_asm_statement): Parse asm goto. | |
1613 | (c_parser_asm_goto_operands): New. | |
1614 | * c-tree.h (build_asm_expr): Update decl. | |
1615 | * c-typeck.c (build_asm_expr): Add and use labels parameter. | |
1616 | * doc/extend.texi: Document asm goto. | |
1617 | ||
1d65f45c RH |
1618 | 2009-09-14 Richard Henderson <rth@redhat.com> |
1619 | ||
1620 | * except.h: Update declarations. | |
1621 | (struct pointer_map_t): Forward declare. | |
1622 | (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove. | |
1623 | (struct eh_landing_pad_d, eh_landing_pad): New. | |
1624 | (struct eh_catch_d, eh_catch): New. | |
1625 | (struct eh_region_d): Remove next_region_sharing_label, aka, | |
1626 | label, tree_label, landing_pad, post_landing_pad, resume, | |
1627 | may_contain_throw. Rename region_number to index. Remove | |
1628 | u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch. | |
1629 | Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg. | |
1630 | (VEC(eh_landing_pad,gc)): New. | |
1631 | (struct eh_status): Remove last_region_number. Add lp_array, | |
1632 | throw_stmt_table, ttype_data, ehspec_data. | |
1633 | (ehr_next, FOR_ALL_EH_REGION_AT): New. | |
1634 | (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New. | |
1635 | * except.c (lang_protect_cleanup_actions): Return tree. | |
1636 | (struct ehl_map_entry): Remove. | |
1637 | (init_eh_for_function): Push zero entries for region and lp_array. | |
1638 | (gen_eh_region): Add to region_array immediately. | |
1639 | (gen_eh_region_catch): Operate on eh_catch objects. | |
1640 | (gen_eh_landing_pad): New. | |
1641 | (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove. | |
1642 | (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove. | |
1643 | (get_eh_region_from_number, get_eh_region_from_number_fn): New. | |
1644 | (get_eh_landing_pad_from_number_fn): New. | |
1645 | (get_eh_landing_pad_from_number): New. | |
1646 | (get_eh_region_from_lp_number_fn): New. | |
1647 | (get_eh_region_from_lp_number): New. | |
1648 | (expand_resx_stmt, note_eh_region_may_contain_throw): Remove. | |
1649 | (get_exception_pointer, get_exception_filter): Remove. | |
1650 | (collect_eh_region_array, can_be_reached_by_runtime): Remove. | |
1651 | (current_function_has_exception_handlers): Simplify. | |
1652 | (bring_to_root, eh_region_replaceable_by_p): Remove. | |
1653 | (replace_region, hash_type_list, hash_eh_region): Remove. | |
1654 | (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove. | |
1655 | (label_to_region_map, num_eh_regions): Remove. | |
1656 | (get_next_region_sharing_label, must_not_throw_labels): Remove. | |
1657 | (find_exception_handler_labels): Remove. | |
1658 | (duplicate_eh_regions_0, find_prev_try): Remove. | |
1659 | (struct duplicate_eh_regions_data): New. | |
1660 | (duplicate_eh_regions_1): Rewrite. | |
1661 | (duplicate_eh_regions): Return a pointer map instead of an | |
1662 | integer offset. | |
1663 | (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove. | |
1664 | (redirect_eh_edge_to_label): Remove. | |
1665 | (eh_region_outermost): Rewrite using eh_region pointers | |
1666 | instead of integers. | |
1667 | (add_ttypes_entry): Update for ttype_data move to eh_status. | |
1668 | (add_ehspec_entry): Rewrite with VEC instead of varray. | |
1669 | (assign_filter_values): Likewise. Export. | |
1670 | (build_post_landing_pads, connect_post_landing_pads): Remove. | |
1671 | (dw2_build_landing_pads): Rewrite to use lp_array. | |
1672 | (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove. | |
1673 | (sjlj_assign_call_site_values): Rewrite to use lp_array. | |
1674 | (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise. | |
1675 | (sjlj_mark_call_sites): Update for landing pad numbers. | |
1676 | (finish_eh_generation): Rewrite. | |
1677 | (gate_handle_eh): Do nothing for no eh tree. | |
1678 | (pass_rtl_eh): Move up near finish_eh_generation. | |
1679 | (remove_eh_landing_pad): New. | |
1680 | (remove_eh_handler): Export. | |
1681 | (remove_eh_region, remove_eh_handler_and_replace): Remove. | |
1682 | (for_each_eh_label): Rewrite to use lp_array. | |
1683 | (make_reg_eh_region_note): New. | |
1684 | (make_reg_eh_region_note_nothrow_nononlocal): New. | |
1685 | (insn_could_throw_p): New. | |
1686 | (copy_reg_eh_region_note_forward): New. | |
1687 | (copy_reg_eh_region_note_backward): New. | |
1688 | (check_handled, add_reachable_handler): Remove. | |
1689 | (reachable_next_level, foreach_reachable_handler): Remove. | |
1690 | (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove. | |
1691 | (get_eh_region_and_lp_from_rtx): New. | |
1692 | (get_eh_region_from_rtx): New. | |
1693 | (can_throw_internal_1, can_throw_external_1): Remove. | |
1694 | (can_throw_internal): Use get_eh_region_from_rtx. | |
1695 | (can_throw_external): Use get_eh_region_and_lp_from_rtx. | |
1696 | (insn_nothrow_p, can_nonlocal_goto): New. | |
1697 | (expand_builtin_eh_common, expand_builtin_eh_pointer): New. | |
1698 | (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New. | |
1699 | (add_action_record): Use VEC not varray. | |
1700 | (collect_one_action_chain): Update for eh_region changes. | |
1701 | (convert_to_eh_region_ranges): Make static. Use VEC not varray. | |
1702 | Use get_eh_region_and_lp_from_rtx. | |
1703 | (gate_convert_to_eh_region_ranges): New. | |
1704 | (pass_convert_to_eh_region_ranges): Use it. | |
1705 | (push_uleb128, push_sleb128): Use VEC not varray. | |
1706 | (output_one_function_exception_table): Likewise. | |
1707 | (dump_eh_tree): Update for eh_region changes. | |
1708 | (verify_eh_tree): Likewise. | |
1709 | (verify_eh_region, default_init_unwind_resume_libfunc): Remove. | |
1710 | * tree-eh.c: Include target.h. | |
1711 | (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn. | |
1712 | Don't disallow GIMPLE_RESX; adjust argument check. | |
1713 | (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region. | |
1714 | (record_stmt_eh_region): Update for landing pad numbers; | |
1715 | generate a landing pad if necessary. | |
1716 | (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region. | |
1717 | (remove_stmt_from_eh_lp_fn): Similarly. | |
1718 | (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn. | |
1719 | Update for lp numbers; don't special case missing throw_stmt_table. | |
1720 | (lookup_expr_eh_lp): Similarly. | |
1721 | (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region. | |
1722 | (eh_seq, eh_region_may_contain_throw): New. | |
1723 | (struct leh_state): Add ehp_region. | |
1724 | (struct leh_tf_state): Remove eh_label. | |
1725 | (emit_post_landing_pad): New. | |
1726 | (emit_resx, emit_eh_dispatch): New. | |
1727 | (note_eh_region_may_contain_throw): New. | |
1728 | (frob_into_branch_around): Take eh_region not eh label; | |
1729 | emit eh code into eh_seq. | |
1730 | (honor_protect_cleanup_actions): Early exit for no actions. Don't | |
1731 | handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw, | |
1732 | lower_eh_must_not_throw. Emit code to eh_seq. | |
1733 | (lower_try_finally_nofallthru): Emit eh code to eh_seq. | |
1734 | (lower_try_finally_onedest): Likewise. | |
1735 | (lower_try_finally_copy): Likewise. | |
1736 | (lower_try_finally_switch): Likewise. | |
1737 | (lower_try_finally): Initialize ehp_region. | |
1738 | (lower_catch): Update for eh_catch objects. | |
1739 | (lower_eh_filter): Don't handle must_not_throw. | |
1740 | (lower_eh_must_not_throw): New. | |
1741 | (lower_cleanup): Don't set eh_label. | |
1742 | (lower_eh_constructs_2): Resolve eh builtins. | |
1743 | Handle GIMPLE_EH_MUST_NOT_THROW. | |
1744 | (lower_eh_constructs): Initialize eh_region_may_contain_throw. | |
1745 | Add eh_seq to the end of the function body. | |
1746 | (make_eh_dispatch_edges): New. | |
1747 | (make_eh_edge): Remove. | |
1748 | (make_eh_edges): Simplify for landing pads. | |
1749 | (redirect_eh_edge_1): New. | |
1750 | (redirect_eh_edge): Use it. | |
1751 | (redirect_eh_dispatch_edge): New. | |
1752 | (stmt_could_throw_p): Use a switch. Allow RESX. | |
1753 | (stmt_can_throw_external): Use lookup_stmt_eh_lp. | |
1754 | (stmt_can_throw_internal): Likewise. | |
1755 | (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New. | |
1756 | (maybe_clean_or_replace_eh_stmt): Update for landing pads. | |
1757 | (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New. | |
1758 | (gate_refactor_eh): New. | |
1759 | (pass_refactor_eh): Use it. | |
1760 | (lower_resx, execute_lower_resx, pass_lower_resx): New. | |
1761 | (lower_eh_dispatch, execute_lower_eh_dispatch): New. | |
1762 | (gate_lower_ehcontrol, pass_lower_eh_dispatch): New. | |
1763 | (remove_unreachable_handlers): Rename from | |
1764 | tree_remove_unreachable_handlers; rewrite for landing pads; | |
1765 | call remove_eh_handler directly. | |
1766 | (remove_unreachable_handlers_no_lp): New. | |
1767 | (unsplit_eh, unsplit_all_eh): New. | |
1768 | (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove. | |
1769 | (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New. | |
1770 | (cleanup_empty_eh_unsplit): New. | |
1771 | (cleanup_empty_eh): Rewrite. | |
1772 | (cleanup_all_empty_eh): New. | |
1773 | (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable | |
1774 | handlers first. Use unsplit_all_eh, cleanup_all_empty_eh. | |
1775 | (gate_cleanup_eh): New. | |
1776 | (pass_cleanup_eh): Use it. | |
1777 | (verify_eh_edges): Move later in file. Expect one EH edge. | |
1778 | (verify_eh_dispatch_edge): New. | |
1779 | ||
1780 | * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h. | |
1781 | (gtype-desc.o): Add TARGET_H. | |
1782 | (tree.o): Use EXCEPT_H, not except.h. | |
1783 | (cfgbuild.o): Add EXPR_H. | |
1784 | (GTFILES): Add vecprim.h. | |
1785 | * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER, | |
1786 | BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES. | |
1787 | * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER, | |
1788 | BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New. | |
1789 | * calls.c (emit_call_1): Use make_reg_eh_region_note. | |
1790 | * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy | |
1791 | calls to can_throw_internal. | |
1792 | (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx. | |
1793 | (make_edges): Don't handle RESX; use can_nonlocal_goto. | |
1794 | * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX. | |
1795 | (expand_gimple_stmt): Use make_reg_eh_region_note. | |
1796 | (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR. | |
1797 | (gimple_expand_cfg): Don't call convert_from_eh_region_ranges, | |
1798 | or find_exception_handler_labels. | |
1799 | * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert | |
1800 | there is exacly one EH edge. Use can_nonlocal_goto and | |
1801 | can_throw_internal. | |
1802 | * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn. | |
1803 | (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt. | |
1804 | * combine.c (can_combine_p, try_combine): Use insn_nothrow_p. | |
1805 | * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p. | |
1806 | * dce.c (deletable_insn_p_1): Don't test may_trap_p. | |
1807 | (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test. | |
1808 | * dse.c (scan_insn): Use insn_could_throw_p. | |
1809 | * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward. | |
1810 | * expr.c (expand_expr_real): Use make_reg_eh_region_note. | |
1811 | (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR. | |
1812 | * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle | |
1813 | EXC_PTR_EXPR or FILTER_EXPR. | |
1814 | (tree_expr_nonzero_warnv_p): Likewise. | |
1815 | * function.h: Include vecprim.h, not varray.h | |
1816 | (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members; | |
1817 | move ttype_data and ehspec_data members to struct eh_status; change | |
1818 | action_record_data member to a VEC. | |
1819 | * gcse.c (hash_scan_set): Use can_throw_internal. | |
1820 | * gengtype.c (open_base_files): Add target.h to gtype-desc.c. | |
1821 | * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt. | |
1822 | * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW. | |
1823 | (block_may_fallthru): Don't handle RESX_EXPR. | |
1824 | * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR. | |
1825 | (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New. | |
1826 | (dump_gimple_stmt): Dump landing pad information with TDF_EH; | |
1827 | handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH. | |
1828 | * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW, | |
1829 | GIMPLE_EH_DISPATCH, GIMPLE_RESX. | |
1830 | (gimple_size): Likewise. | |
1831 | (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New. | |
1832 | (gimple_build_resx): Use gimple_build_with_ops. | |
1833 | (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR. | |
1834 | (is_gimple_val): Likewise. | |
1835 | (is_gimple_stmt): Remove RESX_EXPR. | |
1836 | * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New. | |
1837 | (GIMPLE_RESX): Reorder with other EH constructs. | |
1838 | * gimple.h (struct gimple_statement_eh_mnt): New. | |
1839 | (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx. | |
1840 | (gimple_eh_filter_must_not_throw): Remove. | |
1841 | (gimple_eh_filter_set_must_not_throw): Remove. | |
1842 | (gimple_eh_must_not_throw_fndecl): New. | |
1843 | (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New. | |
1844 | (is_gimple_resx): New. | |
1845 | * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR. | |
1846 | Don't copy EH_FILTER_MUST_NOT_THROW. | |
1847 | * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New. | |
1848 | * ipa-inline.c (estimate_function_body_sizes): Don't try to | |
1849 | handle must_not_throw_labels specially. | |
1850 | * ipa-pure-const.c (check_call): Update debug statement for LP. | |
1851 | * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER. | |
1852 | * ipa-utils.c (get_base_var): Likewise. | |
1853 | * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove. | |
1854 | * lower-subreg.c (move_eh_region_note): Remove. | |
1855 | (resolve_simple_move): Use copy_reg_eh_region_note_forward. | |
1856 | * omp-low.c (new_omp_context): Update for eh_lp_nr. | |
1857 | (create_task_copyfn): Likewise. | |
1858 | (maybe_catch_exception): Use gimple_build_eh_filter. | |
1859 | * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto | |
1860 | REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal. | |
1861 | * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch | |
1862 | and pass_lower_resx. | |
1863 | * print-tree.c (print_node): Dump EH_LANDING_PAD_NR. | |
1864 | * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward, | |
1865 | can_throw_internal, can_nonlocal_goto. | |
1866 | * reload1.c (fixup_eh_region_note): Use insn_could_throw_p, | |
1867 | copy_reg_eh_region_note_forward. | |
1868 | (emit_input_reload_insns): Use copy_reg_eh_region_note_forward. | |
1869 | (emit_output_reload_insns): Likewise. | |
1870 | (copy_eh_notes): Remove. | |
1871 | * rtl.def (RESX): Remove. | |
1872 | * rtl.h: Update declarations. | |
1873 | * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt. | |
1874 | * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH. | |
1875 | (update_eh_label): Remove. | |
1876 | (cleanup_dead_labels_eh): New. | |
1877 | (cleanup_deal_labels): Use it instead of update_eh_label. | |
1878 | (gimple_merge_blocks): Update landing pad data structure when | |
1879 | removing a landing pad label. | |
1880 | (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw | |
1881 | test; handle GIMPLE_EH_MUST_NOT_THROW. | |
1882 | (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH. | |
1883 | (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR. | |
1884 | (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH. | |
1885 | (verify_stmt): Likewise. Verify landing pads. | |
1886 | (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH. | |
1887 | (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt. | |
1888 | (struct move_stmt_d): Add eh_map. | |
1889 | (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New. | |
1890 | (move_stmt_r): Remap eh region numbers in builtin calls, | |
1891 | resx and eh_dispatch. | |
1892 | (move_block_to_fn): Remove eh_offset parameter. Use | |
1893 | maybe_duplicate_eh_stmt_fn. | |
1894 | (find_outermost_region_in_block): Operate on eh_region pointers | |
1895 | instead of region numbers. | |
1896 | (move_sese_region_to_fn): Expect eh_map instead of eh_offset from | |
1897 | duplicate_eh_regions. | |
1898 | * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge | |
1899 | test earlier. Disallow EH landing pads. | |
1900 | * tree-cfa.c (create_tree_common_ann): Don't set ann->rn. | |
1901 | * tree-flow.h: Update declarations. | |
1902 | (struct tree_ann_common_d): Replace rn with lp_nr. | |
1903 | * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR. | |
1904 | (remap_eh_region_nr, remap_eh_region_tree_nr): New. | |
1905 | (remap_gimple_stmt): Remap eh region numbers in builtin calls, | |
1906 | resx and eh_dispatch. | |
1907 | (copy_bb): Use maybe_duplicate_eh_stmt_fn. | |
1908 | (copy_edges_for_bb): Use make_eh_dispatch_edges. | |
1909 | (copy_cfg_body): Expect eh_map instead of eh_region_offset | |
1910 | from duplicate_eh_regions. | |
1911 | (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR; | |
1912 | update RESX; handle EH_DISPATCH. | |
1913 | (expand_call_inline): Set eh_lp_nr, not eh_region. | |
1914 | (maybe_inline_call_in_expr): Likewise. | |
1915 | * tree-inline.h (struct copy_body_data): Replace eh_region with | |
1916 | eh_lp_nr, eh_region_offset with eh_map. | |
1917 | * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt. | |
1918 | * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New. | |
1919 | * tree-pretty-print.c (dump_generic_node): Don't handle | |
1920 | EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR. | |
1921 | * tree-sra.c (scan_function): Use maybe_clean_eh_stmt. | |
1922 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle | |
1923 | EXC_PTR_EXPR, FILTER_EXPR. | |
1924 | * tree-ssa-operands.c (get_expr_operands): Likewise. | |
1925 | * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise. | |
1926 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. | |
1927 | (ao_ref_init_from_vn_reference): Likewise. | |
1928 | * tree-ssa-sink.c (statement_sink_location): Likewise. | |
1929 | * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise. | |
1930 | (mark_virtual_phi_result_for_renaming): Export. Tidy. | |
1931 | * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle | |
1932 | EXC_PTR_EXPR, FILTER_EXPR. | |
1933 | (is_exception_related): Remove. | |
1934 | (compute_avail): Don't call it. | |
1935 | * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned. | |
1936 | * tree.c (find_decls_types_in_eh_region): Update for eh_region changes. | |
1937 | (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN. | |
1938 | (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter. | |
1939 | Build EH builtins. | |
1940 | (build_resx): Remove. | |
1941 | * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove. | |
1942 | * tree.h: Update declarations. | |
1943 | (EH_FILTER_MUST_NOT_THROW): Remove. | |
1944 | (struct tree_label_decl): Add eh_landing_pad_nr. | |
1945 | (EH_LANDING_PAD_NR): New. | |
1946 | * value-prof.c (gimple_ic): Tidy variable names. Update for | |
1947 | landing pad numbers. | |
1948 | (gimple_stringop_fixed_value): Tidy variable names. Assert | |
1949 | that neither call stmt can throw. | |
1950 | * vecprim.h (uchar): New. | |
1951 | (VEC(uchar,heap), VEC(uchar,gc)): New. | |
1952 | ||
1953 | * c-common.c (c_define_builtins): Update call to | |
1954 | build_common_builtin_nodes. | |
1955 | * c-parser.c (c_parse_file): Don't call | |
1956 | default_init_unwind_resume_libfunc. | |
1957 | ||
0c433c31 RS |
1958 | 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com> |
1959 | ||
1960 | * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare. | |
1961 | (mips_cprestore_address_p): Likewise. | |
1962 | (mips_save_gp_to_cprestore_slot): Likewise. | |
1963 | (mips_restore_gp): Rename to... | |
1964 | (mips_restore_gp_from_cprestore_slot): ...this. | |
1965 | (mips_must_initialize_gp_p): Declare. | |
1966 | (mips_emit_save_slot_move): Likewise. | |
1967 | (mips_output_load_label): Return nothing. | |
1968 | (mips_eh_uses): Declare. | |
1969 | * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed. | |
1970 | (TARGET_CPRESTORE_DIRECTIVE): New macro. | |
1971 | (TARGET_ABSOLUTE_JUMPS): Likewise. | |
1972 | (EH_USES): Likewise. | |
1973 | (FIRST_PSEUDO_REGISTER): Update comment. | |
1974 | (MIPS_ABSOLUTE_JUMP): New macro, extracted from... | |
1975 | (MIPS_CALL): ...here. | |
1976 | (REGISTER_NAMES): Add $cprestore. | |
1977 | * config/mips/mips.c (machine_function): Remove has_gp_insn_p. | |
1978 | Add load_label_length, has_inflexible_gp_insn_p, | |
1979 | has_flexible_gp_insn_p, must_initialize_gp_p and | |
1980 | must_restore_gp_when_clobbered_p. | |
1981 | (mips_expand_call): Don't generate split instructions here. | |
1982 | (mips_split_call): Update the call to mips_restore_gp after | |
1983 | the above name change. | |
1984 | (mips16_cfun_returns_in_fpr_p): Move earlier in file. | |
1985 | (mips_find_gp_ref): New function. | |
1986 | (mips_insn_has_inflexible_gp_ref_p): Likewise. | |
1987 | (mips_cfun_has_inflexible_gp_ref_p): Likewise. | |
1988 | (mips_insn_has_flexible_gp_ref_p): Likewise. | |
1989 | (mips_cfun_has_flexible_gp_ref_p): Likewise. | |
1990 | (mips_function_has_gp_insn): Delete. | |
1991 | (mips_global_pointer): Drop the df_regs_ever_live_p check. | |
1992 | Use the new functions above. Only return INVALID_REGNUM | |
1993 | for TARGET_ABSOLUTE_JUMPS. | |
1994 | (mips_must_initialize_gp_p): New function. | |
1995 | (mips_get_cprestore_base_and_offset): New function, extracted from... | |
1996 | (mips_cprestore_slot): ...here. Take a bool parameter. | |
1997 | (mips_cfun_has_cprestore_slot_p): New function. | |
1998 | (mips_cprestore_address_p): Likewise. | |
1999 | (mips_save_gp_to_cprestore_slot): Likewise. | |
2000 | (mips_restore_gp): Rename to... | |
2001 | (mips_restore_gp_from_cprestore_slot): ...this. Assert | |
2002 | epilogue_completed. Update the call to mips_cprestore_slot. | |
2003 | Test cfun->machine->must_restore_gp_when_clobbered_p. | |
2004 | (mips_direct_save_slot_move_p): New function. | |
2005 | (mips_emit_save_slot_move): Likewise. | |
2006 | (mips_output_cplocal): Test mips_must_initialize_gp_p () instead | |
2007 | of cfun->machine->global_pointer. | |
2008 | (mips_output_function_prologue): Check mips_must_initialize_gp_p (). | |
2009 | (mips_save_reg): Use mips_emit_save_slot_move. | |
2010 | (mips_expand_prologue): Set must_initialize_gp_p. | |
2011 | Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore | |
2012 | for all cprestore saves. Emit a use_cprestore instruction after | |
2013 | setting up the cprestore slot. | |
2014 | (mips_restore_reg): Use mips_emit_save_slot_move. | |
2015 | (mips_process_load_label): New function. | |
2016 | (mips_load_label_length): Likewise. | |
2017 | (mips_output_load_label): Don't return asm: output it here instead. | |
2018 | Use mips_process_load_label. | |
2019 | (mips_adjust_insn_length): Adjust the length of branch instructions | |
2020 | that have length MAX_PIC_BRANCH_LENGTH. | |
2021 | (mips_output_conditional_branch): Update the call to | |
2022 | mips_output_load_label. Assume the branch target is OPERANDS[0] | |
2023 | rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps. | |
2024 | (mips_output_order_conditional_branch): Swap the meaning of | |
2025 | OPERANDS[0] and OPERANDS[1]. | |
2026 | (mips_variable_issue): Don't count ghost instructions. | |
2027 | (mips_expand_ghost_gp_insns): New function. | |
2028 | (mips_reorg): Rerun mips_reorg_process_insns if it returns true. | |
2029 | (mips_output_mi_thunk): Set must_initialize_gp_p. | |
2030 | (mips_eh_uses): New function. | |
2031 | * config/mips/predicates.md (cprestore_save_slot_operand) | |
2032 | (cprestore_load_slot_operand): New predicates. | |
2033 | * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec. | |
2034 | (UNSPEC_MOVE_GP): Likewise. | |
2035 | (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN) | |
2036 | (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room. | |
2037 | (CPRESTORE_SLOT_REGNUM): New register. | |
2038 | (MAX_PIC_BRANCH_LENGTH): New constant. | |
2039 | (jal_macro): Use MIPS_ABSOLUTE_JUMPS. | |
2040 | (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long | |
2041 | branches. Fix commentary. | |
2042 | (loadgp_newabi_<mode>): Change from unspec_volatile to unspec. | |
2043 | Only split if mips_must_initialize_gp_p; expand to nothing otherwise. | |
2044 | Change type to "ghost". | |
2045 | (loadgp_absolute_<mode>): Likewise. | |
2046 | (loadgp_rtp_<mode>): Likewise. | |
2047 | (copygp_mips16): Likewise. | |
2048 | (loadgp_blockage): Remove redundant mode attribute. | |
2049 | (potential_cprestore): New instruction. | |
2050 | (cprestore): Turn into an unspec set. | |
2051 | (use_cprestore): New instruction. | |
2052 | (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute. | |
2053 | (*branch_fp_inverted): Likewise. | |
2054 | (*branch_order<mode>): Likewise. | |
2055 | (*branch_order<mode>_inverted): Likewise. | |
2056 | (*branch_equality<mode>): Likewise. | |
2057 | (*branch_equality<mode>_inverted): Likewise. | |
2058 | (*branch_bit<bbv><mode>): Likewise. | |
2059 | (*branch_bit<bbv><mode>_inverted): Likewise. | |
2060 | (*branch_equality<mode>_mips16): Remove redundant mode. | |
2061 | (jump): Turn into a define_expand. | |
2062 | (*jump_absolute): New instruction. | |
2063 | (*jump_pic): Likewise. | |
2064 | (*jump_mips16): Rename previously-unnamed pattern. Remove | |
2065 | redundant mode attribute. | |
2066 | (restore_gp): Split on epilogue_completed rather than | |
2067 | reload_completed. Change type to "ghost". | |
2068 | (move_gp<mode>): New instruction. | |
2069 | * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1. | |
2070 | Remove redundant mode attribute. | |
2071 | * config/mips/mips-ps-3d.md (bc1any4t): Likewise. | |
2072 | (bc1any4f, bc1any2t, bc1any2f): Likewise. | |
2073 | (*branch_upper_lower, *branch_upper_lower_inverted): Likewise. | |
2074 | ||
5910fb59 MM |
2075 | 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
2076 | ||
2077 | PR target/41210 | |
2078 | * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI | |
2079 | are returned in the same register (vs34 or v2) that Altivec vector | |
2080 | types are returned in. | |
2081 | (rs6000_libcall_value): Ditto. | |
2082 | ||
2083 | PR target/41331 | |
2084 | * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn | |
2085 | instead of explicit addsi3/adddi3 calls. | |
2086 | (rs6000_split_multireg_move): Ditto. | |
2087 | (rs6000_emit_allocate_stack): Ditto. | |
2088 | (rs6000_emit_prologue): Ditto. | |
2089 | (rs6000_output_mi_thunk): Ditto. | |
2090 | ||
2091 | * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer | |
2092 | size is 64 bits if we can use 64-bit registers. | |
2093 | ||
49caeea1 BS |
2094 | 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com> |
2095 | ||
2096 | * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak | |
2097 | symbols. | |
2098 | ||
8be6ada8 BS |
2099 | From Jie Zhang <jie.zhang@analog.com>: |
2100 | * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to | |
2101 | save FP and RETS with saveall attribute. | |
2102 | (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS | |
2103 | with saveall attribute. | |
2104 | ||
6c1c1dfa BS |
2105 | * config/bfin/bfin.c (bfin_expand_builtin, |
2106 | case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the | |
2107 | operands. | |
6dac2e8e | 2108 | |
6c1c1dfa BS |
2109 | From Jie Zhang <jie.zhang@analog.com>: |
2110 | * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes | |
2111 | before use in two places. | |
2112 | * config/bfin/bfin.md (AREG): Define mode iterator. | |
2113 | (reload_in, reload_out): Use mode iterator AREG. | |
2114 | ||
cdb4dde5 RG |
2115 | 2009-09-14 Richard Guenther <rguenther@suse.de> |
2116 | ||
2117 | PR middle-end/41350 | |
2118 | * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm | |
2119 | EH personality path. | |
2120 | ||
f9417da1 | 2121 | 2009-09-13 Richard Guenther <rguenther@suse.de> |
6dac2e8e | 2122 | Rafael Avila de Espindola <espindola@google.com> |
f9417da1 RG |
2123 | |
2124 | * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define. | |
2125 | (LANG_HOOKS_EH_PERSONALITY): Likewise. | |
2126 | (LANG_HOOKS_INITIALIZER): Adjust. | |
2127 | (lhd_pass_through_t): Declare. | |
2128 | * langhooks.h (struct lang_hooks): Add eh_runtime_type and | |
2129 | eh_personality. | |
2130 | * langhooks.c (lhd_pass_through_t): New function. | |
6dac2e8e | 2131 | * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc, |
f9417da1 | 2132 | dwarf2out_begin_prologue): Use personality from current_function_decl. |
6dac2e8e | 2133 | * expr.h (get_personality_function): Declare. |
f9417da1 RG |
2134 | * expr.c (get_personality_function): New function. |
2135 | (build_personality_function): Likewise. | |
6dac2e8e UB |
2136 | * libfuncs.h (libfunc_index): Remove LTI_eh_personality. |
2137 | (eh_personality_libfunc): Remove. | |
2138 | * optabs.c (build_libfunc_function): New function split out from ... | |
f9417da1 | 2139 | (init_one_libfunc): ... here. |
6dac2e8e UB |
2140 | * tree.h (DECL_FUNCTION_PERSONALITY): New. |
2141 | (tree_function_decl): Add personality. | |
f9417da1 RG |
2142 | (lhd_gcc_personality): Declare. |
2143 | (build_personality_function): Likewise. | |
2144 | * tree.c (gcc_eh_personality_decl): New. | |
2145 | (lhd_gcc_personality): New function. | |
2146 | * except.h (lang_eh_runtime_type): Remove. | |
2147 | (enum eh_personality_kind): New. | |
2148 | (build_personality_function): Declare. | |
2149 | (function_needs_eh_personality): Declare. | |
6dac2e8e | 2150 | * except.c (lang_eh_runtime_type): Remove. |
f9417da1 RG |
2151 | (function_needs_eh_personality): New function. |
2152 | (add_type_for_runtime): Call lang_hooks.type_for_runtime instead. | |
6dac2e8e UB |
2153 | (sjlj_emit_function_enter, output_function_exception_table): |
2154 | Use personality from current_function_decl. | |
f9417da1 RG |
2155 | * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY. |
2156 | * tree-inline.c (tree_can_inline_p): Do not inline across different | |
2157 | EH personalities. | |
2158 | (expand_call_inline): Likewise. Adjust the callers EH personality. | |
2159 | (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY. | |
2160 | * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY. | |
2161 | * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency. | |
2162 | (c-parser.o): Likewise | |
2163 | * c-tree.h (c_eh_initialized_p): Remove. | |
2164 | (c_maybe_initialize_eh): Likewise. | |
2165 | * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh. | |
2166 | (finish_decl): Don't call c_maybe_initialize_eh. | |
2167 | (c_eh_initialized_p): Remove. | |
2168 | (c_maybe_initialize_eh): Likewise. | |
6dac2e8e | 2169 | * c-parser.c (c_parser_omp_construct): Likewise. |
f9417da1 RG |
2170 | (c_parse_file): Initialize exception handling. |
2171 | ||
933608b7 KT |
2172 | 2009-09-13 Kai Tietz <kai.tietz@onevision.com> |
2173 | ||
2174 | * config.gcc (tm_file): Remove i386/biarch32.h | |
2175 | for i?86-w64-mingw* case. | |
2176 | (i?86-*-mingw* andx86_64-*-mingw*): Add multilib | |
2177 | support. | |
22f34504 KT |
2178 | * config.host: Set for x64 mingw the option |
2179 | use_long_long_for_widest_fast_int to yes. | |
933608b7 | 2180 | |
725730f2 EB |
2181 | 2009-09-13 Eric Botcazou <ebotcazou@adacore.com> |
2182 | ||
2183 | * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL. | |
2184 | * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P. | |
2185 | (dbxout_begin_function): Likewise. | |
2186 | * final.c (dwarf2_debug_info_emitted_p): New predicate. | |
2187 | (final_start_function): Do not emit debug info if DECL_IGNORED_P is | |
2188 | set on the function. | |
2189 | (final_end_function): Likewise. | |
2190 | (final_scan_insn): Likewise. | |
2191 | (rest_of_handle_final): Likewise. | |
2192 | * varasm.c (assemble_start_function): Likewise. | |
2193 | * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise. | |
2194 | ||
2195 | 2009-09-12 Jason Merrill <jason@redhat.com> | |
86373e7e JM |
2196 | |
2197 | * dbgcnt.c (dbg_cnt_process_single_pair): constify. | |
2198 | * opts.c (common_handle_option): constify. | |
2199 | ||
8ff51917 GP |
2200 | 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com> |
2201 | ||
beb1adc1 GP |
2202 | * doc/install.texi (avr): Remove obsolete reference site. |
2203 | ||
2204 | 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com> | |
afbd0665 | 2205 | |
8ff51917 GP |
2206 | * doc/install.texi (Binaries): Adjust AIX link. |
2207 | ||
460ba396 AD |
2208 | 2009-09-12 Akim Demaille <demaille@gostai.com> |
2209 | ||
2210 | * doc/invoke.texi (-fstrict-aliasing): Correct two examples. | |
2211 | Use an imperative sentence. | |
2212 | ||
f2c4a81c RH |
2213 | 2009-09-11 Richard Henderson <rth@redhat.com> |
2214 | ||
2215 | * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add | |
2216 | structure-name and has-tree-operands arguments; update all entries. | |
2217 | * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol; | |
2218 | update all entries. | |
2219 | * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument. | |
2220 | (gsstruct_code_size): New. | |
2221 | (gss_for_code_): New. | |
2222 | (gss_for_code): Remove. | |
2223 | (gimple_size): Rewrite using gsstruct_code_size. | |
2224 | (gimple_statement_structure): Move to gimple.h. | |
2225 | * gimple.h (gimple_ops_offset_, gss_for_code_): Declare. | |
2226 | (gss_for_code, gimple_statement_structure): New. | |
2227 | (gimple_ops): Use new arrays; tidy. | |
2228 | ||
85ed9a33 JDA |
2229 | 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2230 | ||
2231 | * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic | |
2232 | operand to be a PLUS expression. | |
2233 | * config/pa/pa.c (pa_secondary_reload): Likewise. | |
2234 | ||
137a05d3 JJ |
2235 | 2009-09-11 Jakub Jelinek <jakub@redhat.com> |
2236 | ||
9258b4c1 JJ |
2237 | * combine.c (propagate_for_debug_subst): Call wrap_constant on top. |
2238 | ||
137a05d3 JJ |
2239 | * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of |
2240 | XEXP (in_rtx, 8). | |
2241 | ||
603bb63e BS |
2242 | 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com> |
2243 | ||
2244 | From Jie Zhang <jie.zhang@analog.com>: | |
2245 | * doc/extend.texi (node Function Attributes): Document l2 | |
2246 | function attribute. | |
2247 | (node Blackfin Variable Attributes): Document l2 variable attributes. | |
2248 | ||
8a47c6c4 LR |
2249 | 2009-09-11 Loren J. Rittle <ljrittle@acm.org> |
2250 | ||
2251 | * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit | |
2252 | to match the system compiler's configuration at inflection point. | |
2253 | Add comment to remark a remaining difference with system compiler. | |
2254 | ||
61e1d511 LR |
2255 | * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail. |
2256 | * configure: Regenerate. | |
2257 | ||
db689ed6 BS |
2258 | 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com> |
2259 | ||
2260 | From Jie Zhang <jie.zhang@analog.com>: | |
2261 | * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions. | |
2262 | (bfin_handle_l2_attribute): New. | |
2263 | (bfin_attribute_table): Add l2 attribute. | |
2264 | ||
5c3ec539 MM |
2265 | 2009-09-11 Michael Matz <matz@suse.de> |
2266 | ||
2267 | PR middle-end/41275 | |
2268 | * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls | |
2269 | on the local_decls list. | |
2270 | ||
0b7e34d7 AO |
2271 | 2009-09-11 Alexandre Oliva <aoliva@redhat.com> |
2272 | ||
2273 | PR debug/41276 | |
2274 | PR debug/41307 | |
2275 | * cselib.c (cselib_expand_value_rtx_cb): Document callback | |
2276 | interface. | |
2277 | (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust | |
2278 | for VALUEs, to implement the documented interface. | |
2279 | * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs. | |
2280 | Adjust for VALUEs and anything else, to implement the | |
2281 | documented interface. | |
2282 | ||
b851135c NF |
2283 | 2009-09-10 Nathan Froyd <froydnj@codesourcery.com> |
2284 | ||
2285 | * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing | |
2286 | with actual SPE/paired vector modes before using 64-bit alignment. | |
2287 | Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE. | |
2288 | ||
5ba863d7 DD |
2289 | 2009-09-10 DJ Delorie <dj@redhat.com> |
2290 | ||
2291 | * config/mep/mep.md (eh_epilogue): Defer until after epilogue is | |
2292 | emitted. | |
2293 | ||
2294 | * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New. | |
2295 | * config/mep/mep.c (mep_legitimate_constant_p): New. | |
2296 | * config/mep/mep-protos.h: Prototype it. | |
2297 | ||
68bcdeed RH |
2298 | 2009-09-10 Richard Henderson <rth@redhat.com> |
2299 | ||
2300 | * print-rtl.c (print_rtx): Fix JUMP_LABEL index. | |
2301 | ||
ad42ff1e JM |
2302 | 2009-09-10 Jason Merrill <jason@redhat.com> |
2303 | ||
2304 | * tree.c (chain_index): New fn. | |
2305 | * tree.h: Declare it. | |
2306 | ||
0e6748ab RO |
2307 | 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2308 | ||
2309 | * config/sol2-c.c (cmn_err_length_specs): Initialize | |
2310 | scalar_identity_flag. | |
2311 | ||
671f9f30 RH |
2312 | 2009-09-10 Richard Henderson <rth@redhat.com> |
2313 | ||
b6777fea RH |
2314 | * tree.h (struct tree_decl_common): Move align member earlier; |
2315 | move label_decl_uid member ... | |
2316 | (struct tree_label_decl): ... here. | |
2317 | (LABEL_DECL_UID): Update to match. | |
2318 | ||
feb4e5ba RH |
2319 | * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH, |
2320 | not TDF_DETAILS. | |
2321 | ||
1c061be5 RH |
2322 | * tree-cfg.c (gimple_redirect_edge_and_branch): Do |
2323 | gimple_try_redirect_by_replacing_jump test after no-op and EH tests. | |
2324 | ||
88e24a5a RH |
2325 | * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at |
2326 | dest_prev if the edge is complex. | |
2327 | ||
40a32862 RH |
2328 | * tree-cfg.c (is_ctrl_stmt): Use a switch. |
2329 | ||
8e7c5fdd RH |
2330 | * tree-cfg.c (gimple_can_merge_blocks_p): Move label and |
2331 | loop latch tests earlier. | |
2332 | ||
07c358c6 RH |
2333 | * gimple-iterator.c (gimple_find_edge_insert_loc): Insert |
2334 | before GIMPLE_RETURN, not after its predecessor; insert | |
2335 | before GIMPLE_RESX. | |
2336 | ||
671f9f30 RH |
2337 | * gimple-iterator.c (gimple_find_edge_insert_loc): Use |
2338 | gimple_seq_empty_p to test for no PHI nodes. | |
2339 | * tree-cfg.c (split_critical_edges): Likewise. | |
2340 | ||
15a15e8d RH |
2341 | * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify. |
2342 | ||
f90f4827 HS |
2343 | 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com> |
2344 | ||
2345 | * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions | |
6dac2e8e | 2346 | introduced by the VTA branch merge. |
f90f4827 | 2347 | |
edb30094 UB |
2348 | 2009-09-10 Uros Bizjak <ubizjak@gmail.com> |
2349 | ||
2350 | * ira-conflicts.c: Use fputs or putc instead of fprintf | |
2351 | where appropriate. | |
2352 | * cfg.c: Ditto. | |
2353 | * toplev.c: Ditto. | |
2354 | * tree-switch-conversion.c: Ditto. | |
2355 | ||
2356 | 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com> | |
f3d9e91b HS |
2357 | |
2358 | * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions | |
6dac2e8e | 2359 | introduced by the VTA branch merge. |
f3d9e91b | 2360 | |
edb30094 | 2361 | 2009-09-10 Uros Bizjak <ubizjak@gmail.com> |
3a3d54f2 UB |
2362 | |
2363 | Revert: | |
2364 | 2009-09-09 Uros Bizjak <ubizjak@gmail.com> | |
2365 | ||
2366 | PR rtl-optimization/39779 | |
2367 | * expr.c (convert_modes): Return when mode == oldmode after | |
2368 | CONST_INTs are processed. | |
2369 | ||
1c6679e2 NC |
2370 | 2009-09-10 Nick Clifton <nickc@redhat.com> |
2371 | ||
2372 | * config/mep/mep.c (mep_encode_section_info): Copy weakness | |
2373 | attribute and referring decl when creating renamed symbol. | |
2374 | ||
90097c67 RG |
2375 | 2009-09-10 Richard Guenther <rguenther@suse.de> |
2376 | ||
2377 | PR middle-end/41257 | |
2378 | * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for | |
2379 | reachable nodes. | |
2380 | (cgraph_finalize_compilation_unit): Compute reachability | |
2381 | before emitting thunks. Properly process aliases before | |
2382 | possibly removing unreachable nodes. | |
2383 | ||
c7a3980a RG |
2384 | 2009-09-10 Richard Guenther <rguenther@suse.de> |
2385 | ||
2386 | PR middle-end/41254 | |
2387 | * tree.c (struct free_lang_data_d): Add worklist member. | |
2388 | (find_decls_types_r): Push onto the worklist instead of recursing. | |
2389 | Handle TREE_BINFOs properly. | |
2390 | (find_decls_types): New function wrapped around find_decls_types_r | |
2391 | to process the worklist. | |
2392 | (find_decls_types_in_eh_region): Use it. | |
2393 | (find_decls_types_in_node): Likewise. | |
2394 | (find_decls_types_in_var): Likewise. | |
2395 | (free_lang_data_in_cgraph): Likewise. Free the worklist. | |
2396 | * tree.h (RECORD_OR_UNION_TYPE_P): New. | |
2397 | (AGGREGATE_TYPE_P): Adjust. | |
2398 | ||
e00ded68 JM |
2399 | 2009-09-09 Jason Merrill <jason@redhat.com> |
2400 | ||
2401 | * configure.ac: Check glibc version even if we have an in-tree | |
2402 | assembler. | |
2403 | ||
75cd1c8f AG |
2404 | 2009-09-09 Anthony Green <green@moxielogic.com> |
2405 | ||
2406 | * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load | |
2407 | the constant 0 when appropriate. | |
2408 | * config/moxie/constraints.md: Add constraint O. | |
2409 | ||
2410 | * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust | |
2411 | to pass up to 6 32-bit argument values in registers. | |
2412 | (moxie_function_arg): Ditto. | |
2413 | (moxie_arg_partial_bytes): Ditto. | |
2414 | * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto. | |
2415 | (REG_PARM_STACK_SPACE): Ditto. | |
2416 | (FUNCTION_ARG_REGNO_P): Ditto. | |
2417 | ||
2418 | * config/moxie/moxie.c (moxie_expand_prologue): Use dec | |
2419 | instruction to allocate stack space. | |
2420 | ||
93fbf857 SB |
2421 | 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org> |
2422 | ||
2423 | * config/rs6000/rs6000.md (bswapdi2_64bit): Fix | |
2424 | unnecessarily stringent constraints. Fix address | |
2425 | calculation in the splitters. | |
2426 | ||
ed9d5a4a UB |
2427 | 2009-09-09 Uros Bizjak <ubizjak@gmail.com> |
2428 | ||
2429 | PR rtl-optimization/39779 | |
2430 | * expr.c (convert_modes): Return when mode == oldmode after | |
2431 | CONST_INTs are processed. | |
2432 | ||
3d887721 KT |
2433 | 2009-09-09 Kai Tietz <kai.tietz@onevision.com> |
2434 | ||
2435 | PR/41315 | |
ed9d5a4a | 2436 | * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too. |
3d887721 KT |
2437 | (ix86_expand_prologue): Take frame.padding0 into logic of |
2438 | to_allocate checks. | |
2439 | (ix86_expand_epilogue): Likewise. | |
2440 | ||
80a76d1d JJ |
2441 | 2009-09-09 Jakub Jelinek <jakub@redhat.com> |
2442 | ||
2443 | * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK): | |
2444 | New variables. | |
2445 | (SHLIB_LINK, SHLIB_INSTALL): Use them. | |
2446 | * config/t-slibgcc-libgcc: New file. | |
2447 | * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it. | |
2448 | ||
ca1bb752 MJ |
2449 | 2009-09-09 Martin Jambor <mjambor@suse.cz> |
2450 | ||
2451 | PR tree-optimization/41089 | |
2452 | * tree-sra.c (find_var_candidates): Do not consider va_lists in | |
2453 | early SRA. | |
2454 | ||
8b9db065 RH |
2455 | 2009-09-09 Richard Henderson <rth@redhat.com> |
2456 | ||
2457 | * gimple.h (CASE_GIMPLE_OMP): New. | |
2458 | (is_gimple_omp): Use it. | |
2459 | * tree-cfg.c (is_ctrl_altering_stmt): Likewise. | |
2460 | (verify_gimple_debug): Likewise. | |
2461 | ||
70a6b17e RG |
2462 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
2463 | ||
2464 | PR tree-optimization/41101 | |
2465 | * tree-ssa-pre.c (maximal_set): Remove. | |
2466 | (compute_antic_aux): Treat the maximal set as implicitly all ones. | |
2467 | Defer all blocks we didn't visit at least one successor. | |
2468 | (add_to_exp_gen): Do not add to the maximal set. | |
2469 | (make_values_for_phi): Likewise. | |
2470 | (compute_avail): Likewise. | |
2471 | (init_pre): Do not allocate the maximal set. | |
2472 | (execute_pre): Do not dump it. | |
2473 | ||
7648edc4 MJ |
2474 | 2009-09-09 Martin Jambor <mjambor@suse.cz> |
2475 | ||
2476 | * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is | |
2477 | an SSA_NAME rather than a is_gimple_variable. | |
2478 | ||
5a4b005f RG |
2479 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
2480 | ||
2481 | PR middle-end/41317 | |
2482 | * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove | |
2483 | code dealing with plain pointer bases. | |
2484 | (maybe_fold_offset_to_reference): Likewise. | |
2485 | (maybe_fold_stmt_addition): Adjust. | |
2486 | ||
ccffb755 RG |
2487 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
2488 | ||
2489 | * tree.c (free_lang_data_in_type): Do not free the type variant | |
2490 | chains. | |
2491 | (free_lang_data): Merge char_type_node with its properly signed | |
2492 | variant. | |
2493 | (pass_ipa_free): Collect after freeing language specific data. | |
2494 | ||
4e18a7d4 MM |
2495 | 2009-09-09 Michael Matz <matz@suse.de> |
2496 | ||
2497 | PR middle-end/41268 | |
2498 | * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing | |
2499 | SUBREG_PROMOTED_UNSIGNED_P, instead of a bool. | |
2500 | * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments | |
2501 | to reflect reality. | |
2502 | ||
5fb455bc DD |
2503 | 2009-09-08 DJ Delorie <dj@redhat.com> |
2504 | ||
2505 | * config/mep/mep.c (conversions[]): Add "ml" pattern. | |
2506 | ||
d5df7223 JM |
2507 | 2009-09-04 Jason Merrill <jason@redhat.com> |
2508 | ||
2509 | * tree.c (tree_find_value): Remove. | |
2510 | * tree.h: Remove prototype. | |
2511 | * varasm.c (assemble_external): Use value_member instead. | |
2512 | ||
6a57e634 AO |
2513 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2514 | ||
2515 | * toplev.c (process_options): Choose default debugging type when | |
2516 | gtoggle enables debug info and type is unset. | |
2517 | ||
da4a9479 AO |
2518 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2519 | ||
2520 | PR debug/41276 | |
2521 | PR debug/41307 | |
2522 | * cselib.c (cselib_expand_value_rtx_1): Don't return copy of | |
2523 | invalid subreg. | |
2524 | ||
713e2ea6 AO |
2525 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2526 | ||
2527 | * configure: Rebuilt with modified libtool.m4. | |
2528 | ||
91642126 AO |
2529 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2530 | ||
2531 | PR debug/41229 | |
2532 | PR debug/41291 | |
2533 | PR debug/41300 | |
2534 | * tree-ssa.c (execute_update_addresses_taken): Update debug insns. | |
2535 | ||
ae0a4449 AO |
2536 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2537 | ||
2538 | * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove. | |
2539 | (remove_statement): Likewise. | |
2540 | (rewrite_use_nonlinear_expr): Adjust. | |
2541 | (remove_unused_ivs): Collect SSA NAMEs to remove and call... | |
2542 | * tree-ssa.c (release_defs_bitset): ... this. New. | |
2543 | * tree-flow.h (release_defs_bitset): Declare. | |
2544 | ||
21719cea AO |
2545 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2546 | ||
2547 | PR debug/41232 | |
2548 | * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts | |
2549 | in the middle block. | |
2550 | ||
7c2a2dbf KT |
2551 | 2009-09-08 Kai Tietz <kai.tietz@onevision.com> |
2552 | ||
34c6743c KT |
2553 | * tree-ssa-reassoc.c (find_operand_rank): Cast pointer |
2554 | via intptr_t to long type. | |
2555 | (insert_operand_rank): Cast long type via intptr_t to | |
2556 | pointer type. | |
2557 | * genattrtab.c (RTL_HASH): Use intptr_t to cast from | |
2558 | pointer to scalar. | |
2559 | * c-pretty-print.c (pp_c_tree_decl_identifier): Cast | |
2560 | from pointer to unsigned via uintptr_t. | |
2561 | ||
7c2a2dbf KT |
2562 | * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t, |
2563 | uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T, | |
2564 | and HAVE_INTPTR_T. | |
2565 | * configure: Regenerated. | |
2566 | * config.in: Regenerated | |
2567 | * system.h (stdint.h): Add include. | |
2568 | (inttypes.h): Likewise. | |
2569 | * Makefile.in (aclocal): Add config/stdint.m4. | |
2570 | * aclocal.m4: Regenerated. | |
2571 | ||
8472b255 BS |
2572 | 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com> |
2573 | ||
2574 | * config/bfin/bfin.c (np_check_regno, np_after_branch): New static | |
2575 | variables. | |
2576 | (note_np_check_stores): New function. | |
2577 | (harmless_null_pointer_p): New function. | |
2578 | (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers | |
2579 | changed. Take into account whether we're in the shadow of a condjump | |
2580 | that tested NP_REG for NULL. | |
2581 | Lose all code that tested for SEQUENCEs. | |
2582 | (workaround_speculation): Avoid inserting NOPs for loads that are | |
2583 | either always executed or a NULL pointer. | |
2584 | ||
ac875c2e JH |
2585 | 2009-09-08 Jan Hubicka <jh@suse.cz> |
2586 | ||
2587 | * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8. | |
2588 | * params.def (early-inlining-insns): Likewise. | |
2589 | ||
1098d3a5 JJ |
2590 | 2009-09-08 Jakub Jelinek <jakub@redhat.com> |
2591 | ||
2592 | PR rtl-optimization/41239 | |
2593 | * sched-int.h (struct deps): Add last_function_call_may_noreturn field. | |
2594 | * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn | |
2595 | lists. | |
2596 | * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns | |
2597 | across calls, as the calls might not always return normally. | |
2598 | (call_may_noreturn_p): New function. | |
2599 | (deps_analyze_insn): Update last_function_call_may_noreturn list. | |
2600 | (init_deps): Initialize it. | |
2601 | (remove_from_deps): Also remove calls from | |
2602 | last_function_call_may_noreturn list. | |
2603 | ||
35ecd408 RH |
2604 | 2009-09-07 Richard Henderson <rth@redhat.com> |
2605 | ||
2606 | * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are | |
2607 | more VR->OPERANDS than LHS operands. Free LHS before returning. | |
2608 | ||
c7cb1555 BS |
2609 | 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com> |
2610 | ||
2611 | * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant. | |
2612 | (attr "addrtype"): New member "spreg". | |
2613 | Use it if mem_spfp_address_operand is true for the address. | |
2614 | (attr "type"): New entry "stall". | |
2615 | (cpu_unit "load"): New. | |
2616 | (insn_reservations "load32", "loadp", "loadi"): Add reservation of | |
2617 | "load". | |
2618 | (insn_reservation "loadsp"): New. | |
2619 | (insn_reservation "load_stall1"): New. | |
2620 | (insn_reservation "load_stall3"): New. | |
ed9d5a4a | 2621 | (stall): New insn. |
c7cb1555 BS |
2622 | * config/bfin/predicates.md (const1_operand, const3_operand): New. |
2623 | (mem_p_address_operand): Exclude stack and frame pointer based | |
2624 | addresses. | |
2625 | (mem_spfp_address_operand): New; match them here. | |
2626 | * config/bfin/bfin.c (add_sched_insns_for_speculation): New function. | |
2627 | (bfin_reorg): Call it if scheduling insns. | |
2628 | (bfin_gen_bundles): Remove dummy insns created by | |
2629 | add_sched_insns_for_speculation. | |
2630 | ||
4dce27df BS |
2631 | From Jie Zhang <jie.zhang@analog.com>: |
2632 | * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type, | |
2633 | bfin_si_revision, bfin_workarounds): Move these ... | |
2634 | * config/bfin/bfin.h: ... here. | |
2635 | ||
5254cd50 BS |
2636 | From Mike Frysinger <michael.frysinger@analog.com> |
2637 | * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M, | |
2638 | BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M. | |
ed9d5a4a UB |
2639 | * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m, |
2640 | bf547m, bf548m, and bf549m. | |
5254cd50 | 2641 | * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__ |
ed9d5a4a UB |
2642 | for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M, |
2643 | __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for | |
2644 | BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M. | |
5254cd50 BS |
2645 | * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for |
2646 | bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none. | |
2647 | * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise. | |
2648 | * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise. | |
2649 | * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts | |
2650 | bf542m, bf544m, bf547m, bf548m, and bf549m. | |
2651 | ||
b3187e24 | 2652 | From Jie Zhang <jie.zhang@analog.com>: |
ed9d5a4a | 2653 | * config/bfin/predicates.md (p_register_operand): New predicate. |
b3187e24 BS |
2654 | (dp_register_operand): New predicate. |
2655 | * config/bfin/bfin-protos.h (WA_05000074): Define. | |
2656 | (ENABLE_WA_05000074): Define. | |
ed9d5a4a | 2657 | * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus. |
b3187e24 BS |
2658 | (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0]. |
2659 | * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm. | |
ed9d5a4a | 2660 | (define_attr addrtype): Allow load/store register to be P register. |
b3187e24 BS |
2661 | (define_attr storereg): New. |
2662 | (define_cpu_unit anomaly_05000074): New. | |
2663 | (define_insn_reservation dsp32shiftimm): New. | |
2664 | (define_insn_reservation dsp32shiftimm_anomaly_05000074): New. | |
2665 | (define_insn_reservation loadp): Cannot use slot2. | |
2666 | (define_insn_reservation loadsp): Cannot use slot2. | |
2667 | (define_insn_reservation storep): Cannot use slot2. Does not | |
2668 | apply when working around 05000074. | |
2669 | (define_insn_reservation storep_anomaly_05000074): New. | |
2670 | (define_insn_reservation storei): Does not apply when working | |
2671 | around 05000074. | |
2672 | (define_insn_reservation storei_anomaly_05000074): New. | |
2673 | (define_attr length): Add dsp32shiftimm case. | |
2674 | (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3, | |
2675 | ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low, | |
2676 | movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi, | |
2677 | ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3): | |
2678 | Set type as dsp32shiftimm for dsp32shiftimm alternatives. | |
2679 | ||
4a50e99c MJ |
2680 | 2009-09-07 Martin Jambor <mjambor@suse.cz> |
2681 | ||
2682 | PR middle-end/41282 | |
2683 | * tree-sra.c (create_artificial_child_access): Return NULL if | |
2684 | build_ref_for_offset fails. | |
2685 | (propagate_subacesses_accross_link): Allow build_ref_for_offset | |
2686 | and create_artificial_child_access to fail. | |
2687 | ||
e5b258a4 DG |
2688 | 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com> |
2689 | ||
2690 | PR c++/41214 | |
6dac2e8e | 2691 | * unwind-dw2.c (uw_init_context_1): Mark noinline. |
e5b258a4 DG |
2692 | * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise. |
2693 | * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise. | |
2694 | ||
8ff7f824 BS |
2695 | 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com> |
2696 | ||
2697 | * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic | |
2698 | block, ensure it has an exit edge. Emit a barrier after a jump. | |
2699 | ||
3beb864c NC |
2700 | 2009-09-07 Nick Clifton <nickc@redhat.com> |
2701 | ||
2702 | * gcc.c (this_is_linker_script): New variable. Like | |
2703 | this_is_library_file but for the %T constructor. | |
2704 | (end_going_arg): If this_is_linker_script is set then locate the | |
2705 | script and insert a --script switch before it | |
6dac2e8e UB |
2706 | (do_spec_2): Initialise this_is_linker_script. |
2707 | (do_spec_1): Likewise. Handle %T construct. | |
2708 | (eval_spec_function): Preserve this_is_linker_script. | |
3beb864c NC |
2709 | * doc/invoke.texi: Document %T construct in spec files. |
2710 | * config/m32c/m32c.h (LIB_SPEC): Use it. | |
2711 | ||
3fce100b AK |
2712 | 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
2713 | ||
ed9d5a4a | 2714 | * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro. |
3fce100b AK |
2715 | * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier |
2716 | when volatile flag is set. | |
2717 | * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces. | |
2718 | ||
1362aa31 EB |
2719 | 2009-09-06 Eric Botcazou <ebotcazou@adacore.com> |
2720 | ||
2721 | PR bootstrap/41241 | |
2722 | * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores. | |
2723 | (combine_stack_adjustments_for_block): Allow insns between stack | |
7717df30 EB |
2724 | adjustments and stores with corresponding pre-(dec|inc)rement or |
2725 | pre-modify operation. | |
1362aa31 | 2726 | |
90588a10 JJ |
2727 | 2009-09-06 Jakub Jelinek <jakub@redhat.com> |
2728 | ||
2729 | PR bootstrap/41241 | |
2730 | * combine-stack-adj.c (struct csa_memlist): Rename to... | |
2731 | (struct csa_reflist): ... this. Rename mem field to ref. | |
2732 | (free_csa_memlist): Rename to... | |
2733 | (free_csa_reflist): ... this. | |
2734 | (record_one_stack_memref): Rename to... | |
2735 | (record_one_stack_ref): ... this. Handle also REG_P. | |
2736 | (try_apply_stack_adjustment): Handle also REG_P. | |
2737 | (struct record_stack_memrefs_data): Rename to... | |
2738 | (struct record_stack_refs_data): ... this. Rename memlist field to | |
2739 | reflist. | |
2740 | (record_stack_memrefs): Rename to... | |
2741 | (record_stack_refs): ... this. For DEBUG_INSNs keep traversing | |
2742 | subexpressions instead of failing when a MEM contains SP references. | |
2743 | For SP itself in DEBUG_INSNs queue it also onto reflist chain. | |
2744 | (combine_stack_adjustments_for_block): Adjust for mem to ref renaming. | |
2745 | ||
3797a0ff RG |
2746 | 2009-09-06 Richard Guenther <rguenther@suse.de> |
2747 | ||
2748 | PR middle-end/41144 | |
2749 | * tree.c (build_array_type): Do not record types marked | |
2750 | with structural equality in the canonical type hashtable. | |
2751 | ||
3c45b96b RG |
2752 | 2009-09-06 Richard Guenther <rguenther@suse.de> |
2753 | ||
2754 | PR middle-end/41261 | |
2755 | * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls. | |
2756 | ||
6a129567 RG |
2757 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2758 | ||
2759 | PR middle-end/41181 | |
2760 | * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type. | |
2761 | ||
432b4b31 RG |
2762 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2763 | ||
2764 | PR debug/41273 | |
2765 | * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops. | |
2766 | ||
575140c2 RG |
2767 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2768 | ||
2769 | PR middle-end/41271 | |
2770 | * tree-ssa.c (useless_type_conversion_p): Drop qualifiers | |
2771 | before comparing function argument types. | |
2772 | ||
896237cd FXC |
2773 | 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
2774 | ||
2775 | PR target/41024 | |
2776 | * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to | |
2777 | the assembler. | |
2778 | ||
e139ab34 UB |
2779 | 2009-09-04 Uros Bizjak <ubizjak@gmail.com> |
2780 | ||
2781 | Revert: | |
2782 | 2009-08-18 Uros Bizjak <ubizjak@gmail.com> | |
2783 | ||
2784 | * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn | |
2785 | locators before emit_insn is called. | |
2786 | ||
1fe28116 VM |
2787 | 2009-09-04 Vladimir Makarov <vmakarov@redhat.com> |
2788 | ||
2789 | PR bootstrap/41241 | |
2790 | * ira.c (update_equiv_reg): Revert my previous patch for the PR. | |
2791 | * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary. | |
2792 | (reginfo_init): Don't call allocate_reg_info. | |
2793 | ||
14e58be0 UB |
2794 | 2009-09-04 Uros Bizjak <ubizjak@gmail.com> |
2795 | ||
2796 | PR target/41262 | |
2797 | * config/alpha/alpha.c (alpha_does_function_need_gp): Use | |
2798 | NONDEBUG_INSN_P instead of INSN_P. | |
2799 | ||
3157b0c2 AO |
2800 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2801 | ||
2802 | PR debug/41225 | |
2803 | * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses. | |
2804 | ||
510bc854 AO |
2805 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2806 | ||
2807 | PR target/41252 | |
2808 | * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second | |
2809 | pattern of the split. | |
2810 | ||
6751b6f6 AO |
2811 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2812 | ||
2813 | * toplev.c (process_options): Move setter of flag_var_tracking | |
2814 | before other tests that depend on it. Move down setter of | |
2815 | flag_rename_registers. Don't enable var-tracking-assignments | |
2816 | by default if selective scheduling is enabled. Warn if both | |
2817 | are enabled. | |
2818 | ||
24277d34 AO |
2819 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2820 | ||
2821 | * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match | |
2822 | comment. Use switch statement to catch overlaps between rtx | |
2823 | and tree codes. Accept FUNCTION_DECLs in addition to those in... | |
2824 | (IS_DECL_CODE): ... here. Remove. | |
2825 | (check_value_is_not_decl): Remove. | |
2826 | (dv_from_decl, dv_from_value): Check after conversion. | |
2827 | ||
5f1a9ebb RG |
2828 | 2009-09-04 Richard Guenther <rguenther@suse.de> |
2829 | ||
2830 | PR middle-end/41257 | |
2831 | * (cgraph_finalize_compilation_unit): Move finalizing aliases | |
2832 | after emitting tunks. Move emitting thunks and ctors from ... | |
2833 | (cgraph_optimize): ... here. Remove redundant | |
2834 | cgraph_analyze_functions. | |
2835 | * varasm.c (find_decl_and_mark_needed): Remove no longer | |
2836 | necessary check. | |
2837 | (finish_aliases_1): Adjust check for thunk aliases. | |
2838 | ||
8d142c15 DG |
2839 | 2009-09-04 Daniel Gutson <dgutson@codesourcery.com> |
2840 | ||
2841 | * config/arm/arm.md (ctzsi2): Added braces | |
2842 | to avoid warning that broke booststrap. | |
2843 | ||
22fc64b4 MJ |
2844 | 2009-09-04 Martin Jambor <mjambor@suse.cz> |
2845 | ||
2846 | PR tree-optimization/41112 | |
2847 | * tree-sra.c (build_ref_for_offset_1): Signal that we cannot | |
2848 | handle variable-bounded arrays. | |
2849 | (expr_with_var_bounded_array_refs_p): New function. | |
2850 | (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p. | |
2851 | ||
2cdece44 WG |
2852 | 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com> |
2853 | ||
2854 | * config/s390/2097.md: Removed two incorrect bypasses. | |
2855 | (z10_fsimpdf): Fixed latency. | |
2856 | (z10_fhex): New insn_reservation. | |
2857 | (z10_floaddf): Fixed latency. | |
2858 | (z10_floadsf): Fixed latency. | |
2859 | (z10_ftrunctf): Fixed latency. | |
2860 | (z10_ftruncdf): Fixed latency. | |
2861 | * config/s390/s390.c (z10_cost): Fixed values. | |
2862 | (s390_adjust_priority): Added z10 path. | |
2863 | * config/s390/s390.md (type): Added fhex. | |
2864 | (*mov<mode>_64dfp): Updated type attribute. | |
2865 | (*mov<mode>_64): Updated type attribute. | |
2866 | (*mov<mode>_31): Updated type attribute. | |
2867 | (*mov<mode>"): Likewise. | |
2868 | * config/s390/2084.md (x_fsimpdf): Updated condition. | |
2869 | ||
b09062ee AK |
2870 | 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com> |
2871 | ||
2872 | * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem | |
2873 | RTXs in the predicate for operand 1. | |
2874 | ||
ca96ed43 DG |
2875 | 2009-09-03 Daniel Gutson <dgutson@codesourcery.com> |
2876 | ||
2877 | * config/arm/arm.md (UNSPEC_RBIT): New constant. | |
2878 | (rbitsi2): New insn. | |
2879 | (ctzsi2): New expand. | |
2880 | * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro. | |
2881 | ||
687b5078 MJ |
2882 | 2009-09-03 Martin Jambor <mjambor@suse.cz> |
2883 | ||
2884 | * tree-sra.c (duplicate_expr_for_different_base): Removed. | |
2885 | (create_artificial_child_access): Use build_ref_for_offset instead | |
2886 | of duplicate_expr_for_different_base. | |
2887 | (propagate_subacesses_accross_link): Likewise. | |
14e58be0 | 2888 | |
006b29ab RS |
2889 | 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com> |
2890 | ||
2891 | * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead | |
2892 | of INSN_P. | |
2893 | (mips16e_collect_argument_saves): Skip debug instructions. | |
2894 | (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P. | |
2895 | (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P. | |
2896 | (r10k_insert_cache_barriers): Likewise. | |
2897 | (mips_reorg_process_insns): Likewise. | |
2898 | ||
691571d2 VM |
2899 | 2009-09-03 Vladimir Makarov <vmakarov@redhat.com> |
2900 | ||
2901 | PR bootstrap/41241 | |
2902 | * ira.c (update_equiv_reg): Remove check on class likely spill. | |
2903 | ||
08ab0acf JJ |
2904 | 2009-09-03 Jakub Jelinek <jakub@redhat.com> |
2905 | ||
7d4507cb JJ |
2906 | PR debug/41236 |
2907 | * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on | |
2908 | SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of | |
2909 | it or SUBREG. | |
2910 | ||
08ab0acf JJ |
2911 | PR debug/41238 |
2912 | * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on | |
2913 | the stack slot if it is passed by invisible reference. | |
755d55bb EB |
2914 | * var-tracking.c (vt_add_function_parameters): Handle arguments passed |
2915 | by invisible reference. | |
08ab0acf | 2916 | |
9840d30a BS |
2917 | 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com> |
2918 | ||
2919 | * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1. | |
2920 | * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1. | |
2921 | * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of | |
2922 | 0. | |
2923 | * config/bfin/sync.md: New file. | |
2924 | * config/bfin/bfin.md: Include it. | |
2925 | (UNSPEC_ATOMIC): New. | |
2926 | (UNSPEC_ONES): Provide a unique number. | |
2927 | ||
2928 | From Jie Zhang <jie.zhang@analog.com>: | |
2929 | * config/bfin/bfin.c (ret_regs): New. | |
2930 | (must_save_fp_p): Don't return true because of frame_pointer_needed. | |
2931 | (must_save_rets_p): New. | |
2932 | (n_regs_saved_by_prologue): Use must_save_rets_p instead of | |
2933 | current_function_is_leaf. | |
2934 | (do_link): Likewise. | |
2935 | (do_unlink): Likewise. | |
2936 | (expand_interrupt_handler_prologue): Use ret_regs array. | |
2937 | (expand_interrupt_handler_epilogue): Use ret_regs array and | |
2938 | pass return register to gen_return_internal. | |
2939 | (bfin_expand_epilogue): Pass return register to | |
2940 | gen_return_internal. | |
2941 | (bfin_expand_call): Explicitly clobber RETS. | |
2942 | * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define. | |
2943 | * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic, | |
2944 | call_insn_fdpic, call_value_insn_fdpic, call_symbol, | |
2945 | call_value_symbol, call_insn, call_value_insn): Explicitly clobber | |
2946 | RETS. | |
2947 | (return_internal): Take a reg rtx rather than the register number. | |
2948 | ||
8e094aa2 L |
2949 | 2009-09-03 H.J. Lu <hongjiu.lu@intel.com> |
2950 | ||
2951 | * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT | |
2952 | when comparing against estimated_loop_iterations_int return. | |
2953 | ||
e20c9328 RG |
2954 | 2009-09-03 Richard Guenther <rguenther@suse.de> |
2955 | ||
2956 | * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of | |
2957 | eh_personality_libfunc. | |
2958 | ||
c9630c40 RL |
2959 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2960 | ||
2961 | * tree-parloops.c (separate_decls_in_region): Add space. | |
14e58be0 | 2962 | |
e7df16a5 RL |
2963 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2964 | ||
14e58be0 | 2965 | * tree-parloops.c (separate_decls_in_region): Change the condition |
e7df16a5 RL |
2966 | checking if there are reductions in the loop. |
2967 | ||
785aa2a7 RL |
2968 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2969 | ||
2970 | PR tree-optimization/38275 | |
14e58be0 | 2971 | * tree-parloops.c (parallelize_loops): Replace profitability condition |
785aa2a7 RL |
2972 | for expected number of iterations. |
2973 | ||
e12c4094 AO |
2974 | 2009-09-03 Alexandre Oliva <aoliva@redhat.com> |
2975 | ||
2976 | * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config. | |
2977 | (bootstrap-debug): Explain conditions in which it becomes default. | |
2978 | (bootstrap-debug-big): Rather than duplicate bootstrap-debug, | |
2979 | make it add to it. | |
2980 | ||
95da10ea NK |
2981 | 2009-09-03 Namhyung Kim <namhyung@gmail.com> |
2982 | ||
2983 | * doc/invoke.texi (Optimize Options): Move | |
2984 | -finline-small-functions to the -O2 list. | |
2985 | ||
73d598d5 AO |
2986 | 2009-09-03 Alexandre Oliva <aoliva@redhat.com> |
2987 | ||
2988 | * toplev.c (process_options): Enable var-tracking-assignments | |
2989 | by default if var-tracking is enabled. | |
2990 | ||
896aa4ea DD |
2991 | 2009-09-02 David Daney <ddaney@caviumnetworks.com> |
2992 | ||
2993 | * cfgbuild.c (find_bb_boundaries): Split blocks containing a | |
2994 | barrier. | |
2995 | * emit-rtl.c (prev_nonnote_insn_bb): New function. | |
2996 | * rtl.h (prev_nonnote_insn_bb): Declare it. | |
2997 | ||
4537ec0c DN |
2998 | 2009-09-03 Diego Novillo <dnovillo@google.com> |
2999 | ||
3000 | * cgraph.c (cgraph_node_for_decl): New. | |
3001 | * cgraph.h (cgraph_node_for_decl): Declare. | |
3002 | * tree.c (host_integerp): Return 0 if T is NULL. | |
3003 | ||
3004 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
3005 | ||
3006 | * tree.h (struct alias_pair): Move from varasm.c. | |
3007 | (alias_pairs): Likewise. | |
3008 | (TYPE_MAXVAL): Define. | |
3009 | (TYPE_MINVAL): Define. | |
3010 | (iterative_hash_host_wide_int): Declare. | |
3011 | (remove_unreachable_alias_pairs): Declare. | |
3012 | * tree-pass.h (pass_ipa_free_lang_data): Declare. | |
3013 | * diagnostic.c (default_diagnostic_starter): Make extern. | |
3014 | (default_diagnostic_finalizer): Make extern. | |
3015 | * diagnostic.h (default_diagnostic_starter): Declare. | |
3016 | (default_diagnostic_finalizer): Declare. | |
3017 | (default_tree_printer): Declare. | |
3018 | * toplev.c (default_tree_printer): Make extern. | |
3019 | ||
3020 | 2009-09-03 Richard Guenther <rguenther@suse.de> | |
3021 | Diego Novillo <dnovillo@google.com> | |
3022 | ||
3023 | * cgraph.c (cgraph_add_new_function): Remove gimplification. | |
3024 | * cgraphunit.c (cgraph_expand_function): Do not emit | |
3025 | associated thunks from here. | |
3026 | (cgraph_emit_thunks): New. | |
3027 | (cgraph_optimize): Call it. | |
3028 | Return if any IPA pass finds an error. | |
3029 | * varasm.c (finish_aliases_1): Ignore errorneous aliases used | |
3030 | by thunks. | |
3031 | ||
3032 | 2009-09-03 Simon Baldwin <simonb@google.com> | |
3033 | Rafael Espindola <espindola@google.com> | |
3034 | Richard Guenther <rguenther@suse.de> | |
3035 | Doug Kwan <dougkwan@google.com> | |
3036 | Diego Novillo <dnovillo@google.com> | |
3037 | ||
3038 | * tree.c: Include tree-pass.h, langhooks-def.h, | |
3039 | diagnostic.h, cgraph.h, timevar.h, except.h and debug.h. | |
3040 | (free_lang_data_in_type): New. | |
3041 | (need_assembler_name_p): New. | |
3042 | (free_lang_data_in_block): New. | |
3043 | (free_lang_data_in_decl): New. | |
3044 | (struct free_lang_data_d): New. | |
3045 | (add_tree_to_fld_list): New. | |
3046 | (find_decls_types_r): New. | |
3047 | (get_eh_types_for_runtime): New. | |
3048 | (find_decls_types_in_eh_region): New. | |
3049 | (find_decls_types_in_node): New. | |
3050 | (find_decls_types_in_var): New. | |
3051 | (free_lang_data_in_cgraph): New. | |
3052 | (free_lang_data): New. | |
3053 | (gate_free_lang_data): New. | |
3054 | (pass_ipa_free_lang_data): New. | |
3055 | ||
3056 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
3057 | ||
3058 | * timevar.def (TV_IPA_FREE_LANG_DATA): Define. | |
3059 | * langhooks.h (struct lang_hooks): Add field free_lang_data. | |
3060 | (lang_hooks): Remove const qualifier. | |
3061 | * ipa.c (cgraph_remove_unreachable_nodes): Call | |
3062 | remove_unreachable_alias_pairs. | |
3063 | * except.c (add_type_for_runtime): Check if TYPE has | |
3064 | already been converted. | |
3065 | (lookup_type_for_runtime): Likewise. | |
3066 | (check_handled): Handle converted types. | |
3067 | * varasm.c (remove_unreachable_alias_pairs): New. | |
3068 | * gimple.c: Include demangle.h. | |
3069 | (gimple_decl_printable_name): New. | |
3070 | (gimple_fold_obj_type_ref): New. | |
3071 | * gimple.h (gimple_decl_printable_name): Declare. | |
3072 | (gimple_fold_obj_type_ref): Declare. | |
3073 | * passes.c (init_optimization_passes): Add pass | |
3074 | pass_ipa_free_lang_data. | |
3075 | * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define. | |
3076 | (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA. | |
3077 | ||
3078 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
3079 | ||
3080 | * c-lang.c (lang_hooks): Remove const qualifier. | |
3081 | ||
02c8b4f8 LR |
3082 | 2009-09-02 Loren James Rittle <ljrittle@acm.org> |
3083 | ||
3084 | * doc/install.texi (*-*-freebsd*): Update target information. | |
3085 | ||
adee59ae AS |
3086 | 2009-09-02 Anatoly Sokolov <aesok@post.ru> |
3087 | ||
3088 | * hard-reg-set.h (call_fixed_regs): Remove. | |
3089 | * reginfo.c (call_fixed_regs): Remove. | |
3090 | (init_reg_sets_1): Remove initialization of call_fixed_regs. | |
3091 | (globalize_reg): Don't use call_fixed_regs. | |
3092 | * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of | |
3093 | call_fixed_regs. | |
3094 | ||
28ed065e MM |
3095 | 2009-09-01 Michael Matz <matz@suse.de> |
3096 | ||
3097 | * expr.h (emit_storent_insn, expand_expr_real_1, | |
3098 | expand_expr_real_2): Declare. | |
3099 | * expr.c (emit_storent_insn, expand_expr_real_1, | |
3100 | expand_expr_real_2): Export. | |
ed9d5a4a | 3101 | (store_expr): Setting and evaluating dont_return_target is useless. |
28ed065e MM |
3102 | (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR, |
3103 | LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable. | |
3104 | * except.c (expand_resx_expr): Rename to ... | |
3105 | (expand_resx_stmt): ... this. Rewrite to take gimple statement. | |
3106 | * except.h (expand_resx_stmt): Declare. | |
3107 | * stmt.c: Add include gimple.h | |
3108 | (expand_asm_expr): Rename to ... | |
3109 | (expand_asm_stmt): ... this. Rewrite to take gimple statement. | |
3110 | (expand_case): Rewrite to take gimple statement. | |
3111 | * tree.h (expand_asm_stmt): Declare. | |
3112 | (expand_case): Change prototype. | |
3113 | * Makefile.in (stmt.o): Depend on gimple.h. | |
3114 | * builtins.c (expand_builtin_synchronize): Build gimple asm | |
3115 | statement, not an ASM_EXPR. | |
3116 | * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r, | |
3117 | gimple_to_tree, release_stmt_tree): Remove. | |
3118 | (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or | |
3119 | ggc_free, but hold comparison code and operands separately. | |
3120 | Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot. | |
3121 | (expand_call_stmt, expand_gimple_stmt_1, | |
3122 | expand_gimple_stmt): New helpers. | |
3123 | (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt, | |
3124 | release_stmt_tree. Call expand_gimple_stmt instead. | |
3125 | (expand_gimple_basic_block): Ditto. | |
3126 | ||
3127 | * calls.c (emit_call_1): Don't look at EH regions here, make | |
3128 | fntree parameter useless. | |
3129 | (expand_call): New local rettype for TREE_TYPE(exp), use it | |
3130 | throughout. Remove local p, use addr instead. | |
3131 | Don't look at EH regions here. | |
3132 | ||
ce18efcb VM |
3133 | 2009-09-02 Vladimir Makarov <vmakarov@redhat.com> |
3134 | ||
3135 | * doc/invoke.texi (-fsched-pressure): Document it. | |
3136 | (-fsched-reg-pressure-heuristic): Remove it. | |
14e58be0 | 3137 | |
ce18efcb VM |
3138 | * reload.c (ira.h): Include. |
3139 | (find_reloads): Add choosing reload on number of small spilled | |
3140 | classes. | |
14e58be0 | 3141 | |
ce18efcb VM |
3142 | * haifa-sched.c (ira.h): Include. |
3143 | (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure, | |
3144 | saved_reg_pressure, curr_reg_live, saved_reg_live, | |
3145 | region_ref_regs): New variables. | |
3146 | (sched_init_region_reg_pressure_info, mark_regno_birth_or_death, | |
3147 | initiate_reg_pressure_info, setup_ref_regs, | |
3148 | initiate_bb_reg_pressure_info, save_reg_pressure, | |
3149 | restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New | |
3150 | functions. | |
3151 | (setup_insn_reg_pressure_info): New function. | |
3152 | (rank_for_schedule): Add pressure checking and insn issue time. | |
3153 | Remove comparison of insn reg weights. | |
3154 | (ready_sort): Set insn reg pressure info. | |
3155 | (update_register_pressure, setup_insn_max_reg_pressure, | |
3156 | update_reg_and_insn_max_reg_pressure, | |
3157 | sched_setup_bb_reg_pressure_info): New functions. | |
ed9d5a4a | 3158 | (schedule_insn): Add code for printing and updating reg pressure info. |
ce18efcb VM |
3159 | (find_set_reg_weight, find_insn_reg_weight): Remove. |
3160 | (ok_for_early_queue_removal): Do nothing if pressure_only_p. | |
3161 | (debug_ready_list): Print reg pressure info. | |
3162 | (schedule_block): Ditto. Check insn issue time. | |
3163 | (sched_init): Set up sched_pressure_p. Allocate and set up some | |
3164 | reg pressure related info. | |
3165 | (sched_finish): Free some reg pressure related info. | |
3166 | (fix_tick_ready): Make insn always ready if pressure_p. | |
3167 | (init_h_i_d): Don't call find_insn_reg_weight. | |
3168 | (haifa_finish_h_i_d): Free insn reg pressure info. | |
14e58be0 | 3169 | |
ce18efcb VM |
3170 | * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs, |
3171 | ira_memory_move_cost, ira_class_hard_regs, | |
3172 | ira_class_hard_regs_num, ira_no_alloc_regs, | |
3173 | ira_available_class_regs, ira_reg_class_cover_size, | |
3174 | ira_reg_class_cover, ira_class_translate): Move to ira.h. | |
3175 | ||
3176 | * ira-lives.c (single_reg_class): Check mode to find how many | |
3177 | registers are necessary for operand. | |
3178 | (ira_implicitly_set_insn_hard_regs): New. | |
3179 | ||
3180 | * common.opt (fsched-pressure): New options. | |
3181 | (fsched-reg-pressure-heuristic): Remove. | |
3182 | ||
3183 | * ira.c (setup_eliminable_regset): Rename to | |
3184 | ira_setup_eliminable_regset. Make it external. | |
3185 | (expand_reg_info): Pass cover class to setup_reg_classes. | |
3186 | (ira): Call resize_reg_info instead of allocate_reg_info. | |
3187 | ||
3188 | * sched-deps.c: Include ira.h. | |
3189 | (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New. | |
3190 | (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses, | |
3191 | reg_pressure_info, insn_use_p, mark_insn_pseudo_birth, | |
3192 | mark_insn_hard_regno_birth, mark_insn_reg_birth, | |
3193 | mark_pseudo_death, mark_hard_regno_death, mark_reg_death, | |
3194 | mark_insn_reg_store, mark_insn_reg_clobber, | |
3195 | setup_insn_reg_pressure_info): New. | |
3196 | (sched_analyze_1): Update implicit_reg_pending_uses. | |
3197 | (sched_analyze_insn): Find implicit sets, uses, clobbers of regs. | |
3198 | Use them to create dependencies. Set insn reg uses and pressure | |
3199 | info. Process reg_pending_uses in one place. | |
3200 | (free_deps): Free implicit sets. | |
3201 | (remove_from_deps): Remove implicit sets if necessary. Check | |
3202 | implicit sets when clearing reg_last_in_use. | |
3203 | (init_deps_global): Clear implicit_reg_pending_clobbers and | |
3204 | implicit_reg_pending_uses. | |
14e58be0 | 3205 | |
ce18efcb VM |
3206 | * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs, |
3207 | ira_memory_move_cost, ira_class_hard_regs, | |
3208 | ira_class_hard_regs_num, ira_no_alloc_regs, | |
3209 | ira_available_class_regs, ira_reg_class_cover_size, | |
3210 | ira_reg_class_cover, ira_class_translate): Move from ira-int.h. | |
3211 | (ira_setup_eliminable_regset, ira_set_pseudo_classes, | |
3212 | ira_implicitly_set_insn_hard_regs): New prototypes. | |
14e58be0 | 3213 | |
ce18efcb VM |
3214 | * ira-costs.c (pseudo_classes_defined_p, allocno_p, |
3215 | cost_elements_num): New variables. | |
3216 | (allocno_costs, total_costs): Rename to costs and | |
3217 | total_allocno_costs. | |
3218 | (COSTS_OF_ALLOCNO): Rename to COSTS. | |
3219 | (allocno_pref): Rename to pref. | |
3220 | (allocno_pref_buffer): Rename to pref_buffer. | |
3221 | (common_classes): Rename to regno_cover_class. | |
3222 | (COST_INDEX): New. | |
3223 | (record_reg_classes): Set allocno attributes only if allocno_p. | |
ed9d5a4a | 3224 | (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM. |
ce18efcb VM |
3225 | (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM |
3226 | and COSTS_OF_ALLOCNO. | |
3227 | (print_costs): Rename to print_allocno_costs. | |
3228 | (print_pseudo_costs): New. | |
3229 | (process_bb_node_for_costs): Split into 2 functions with new | |
3230 | function process_bb_for_costs. Pass BB to process_bb_for_costs. | |
3231 | (find_allocno_class_costs): Rename to find_costs_and_classes. Add | |
3232 | new parameter dump_file. Use cost_elements_num instead of | |
3233 | ira_allocnos_num. Make one iteration if preferred classes were | |
3234 | already calculated for scheduler. Make 2 versions of code | |
3235 | depending on allocno_p. | |
3236 | (setup_allocno_cover_class_and_costs): Check allocno_p. Use | |
3237 | regno_cover_class and COSTS instead of common_classes and | |
3238 | COSTS_OF_ALLOCNO. | |
3239 | (init_costs, finish_costs): New. | |
3240 | (ira_costs): Set up allocno_p and cost_elements_num. Call | |
3241 | init_costs and finish_costs. | |
3242 | (ira_set_pseudo_classes): New. | |
3243 | ||
3244 | * rtl.h (allocate_reg_info): Remove. | |
3245 | (resize_reg_info): Change return type. | |
3246 | (reg_cover_class): New. | |
3247 | (setup_reg_classes): Add new parameter. | |
14e58be0 | 3248 | |
ce18efcb | 3249 | * sched-int.h (struct deps_reg): New member implicit_sets. |
ed9d5a4a | 3250 | (sched_pressure_p, sched_regno_cover_class): New external definitions. |
ce18efcb VM |
3251 | (INCREASE_BITS): New macro. |
3252 | (struct reg_pressure_data, struct reg_use_data): New. | |
3253 | (struct _haifa_insn_data): Remove reg_weight. Add members | |
3254 | reg_pressure, reg_use_list, reg_set_list, and | |
3255 | reg_pressure_excess_cost_change. | |
3256 | (struct deps): New member implicit_sets. | |
3257 | (pressure_p): New variable. | |
3258 | (COVER_CLASS_BITS, INCREASE_BITS): New macros. | |
3259 | (struct reg_pressure_data, struct reg_use_data): New. | |
3260 | (INSN_REG_WEIGHT): Remove. | |
3261 | (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST, | |
ed9d5a4a | 3262 | INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros. |
ce18efcb VM |
3263 | (sched_init_region_reg_pressure_info, |
3264 | sched_setup_bb_reg_pressure_info): New prototypes. | |
14e58be0 UB |
3265 | |
3266 | * reginfo.c (struct reg_pref): New member coverclass. | |
ce18efcb VM |
3267 | (reg_cover_class): New function. |
3268 | (reginfo_init, pass_reginfo_init): Move after free_reg_info. | |
3269 | (reg_info_size): New variable. | |
3270 | (allocate_reg_info): Make static. Setup reg_info_size. | |
3271 | (resize_reg_info): Use reg_info_size. Return flag of resizing. | |
3272 | (setup_reg_classes): Add a new parameter. Setup cover class too. | |
3273 | ||
ed9d5a4a UB |
3274 | * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to |
3275 | the dependencies. | |
ce18efcb VM |
3276 | |
3277 | * sched-rgn.c (deps_join): Set up implicit_sets. | |
3278 | (schedule_region): Set up region and basic blocks pressure | |
3279 | relative info. | |
14e58be0 | 3280 | |
ce18efcb VM |
3281 | * passes.c (init_optimization_passes): Move |
3282 | pass_subregs_of_mode_init before pass_sched. | |
14e58be0 | 3283 | |
fef94f76 MJ |
3284 | 2009-09-02 Martin Jambor <mjambor@suse.cz> |
3285 | ||
3286 | * tree-sra.c (struct access): New field grp_hint. | |
3287 | (dump_access): Dump grp_hint. | |
3288 | (sort_and_splice_var_accesses): Set grp_hint if a group is read | |
3289 | multiple times. | |
3290 | (analyze_access_subtree): Only scalarize accesses with grp_hint set or | |
3291 | those which have been specifically read and somehow written to. | |
3292 | (propagate_subacesses_accross_link): Set grp_hint of right child and | |
3293 | also possibly of the left child. | |
3294 | ||
ded97380 JJ |
3295 | 2009-09-02 Jakub Jelinek <jakub@redhat.com> |
3296 | ||
3297 | * tree-object-size.c (addr_object_size): Always use object_size_type | |
3298 | 0 or 2 when determining the pointer pointed object size. | |
3299 | ||
63838157 RG |
3300 | 2009-09-02 Richard Guenther <rguenther@suse.de> |
3301 | ||
3302 | Revert | |
3303 | 2009-08-31 Richard Guenther <rguenther@suse.de> | |
3304 | ||
3305 | * builtins.c (fold_builtin_memory_op): Use the alias oracle | |
3306 | to query if the memory regions for memmove overlap. | |
3307 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the | |
3308 | asserts on pointers, instead deal with odd trees. | |
3309 | (ptr_derefs_may_alias_p): Likewise. | |
3310 | (refs_may_alias_p_1): Constructor bases also never alias. | |
3311 | ||
c68e4eed CB |
3312 | 2009-08-01 Christian Bruel <christian.bruel@st.com> |
3313 | ||
3314 | Revert: | |
3315 | 2009-07-31 Christian Bruel <christian.bruel@st.com> | |
3316 | * gcc/config.gcc (sh*-*-elf): test with_libgloss. | |
14e58be0 | 3317 | |
8fc68cba AO |
3318 | 2009-09-01 Alexandre Oliva <aoliva@redhat.com> |
3319 | ||
3320 | * doc/invoke.texi (-fvar-tracking-assignments): New. | |
3321 | (-fvar-tracking-assignments-toggle): New. | |
3322 | (-fdump-final-insns=file): Mark filename as optional. | |
3323 | (--param min-nondebug-insn-uid): New. | |
3324 | (-gdwarf-@{version}): Mention version 4. | |
3325 | * opts.c (common_handle_option): Accept it. | |
3326 | * tree-vrp.c (find_assert_locations_1): Skip debug stmts. | |
3327 | * regrename.c (regrename_optimize): Drop last. Don't count debug | |
3328 | insns as uses. Don't reject change because of debug insn. | |
3329 | (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno | |
ed9d5a4a | 3330 | from the chain starter, and check for inexact matches in DEBUG_INSNS. |
8fc68cba AO |
3331 | (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs. |
3332 | (build_def_use): Simplify and fix the marking of DEBUG_INSNs. | |
3333 | * sched-ebb.c (schedule_ebbs): Skip boundary debug insns. | |
3334 | * fwprop.c (forward_propagate_and_simplify): ...into debug insns. | |
3335 | * doc/gimple.texi (is_gimple_debug): New. | |
3336 | (gimple_debug_bind_p): New. | |
3337 | (is_gimple_call, gimple_assign_cast_p): End sentence with period. | |
3338 | * doc/install.texi (bootstrap-debug): More details. | |
3339 | (bootstrap-debug-big, bootstrap-debug-lean): Document. | |
3340 | (bootstrap-debug-lib): More details. | |
3341 | (bootstrap-debug-ckovw): Update. | |
3342 | (bootstrap-time): New. | |
3343 | * tree-into-ssa.c (mark_def_sites): Skip debug stmts. | |
3344 | (insert_phi_nodes_for): Insert debug stmts. | |
3345 | (rewrite_stmt): Take iterator. Insert debug stmts. | |
3346 | (rewrite_enter_block): Adjust. | |
3347 | (maybe_replace_use_in_debug_stmt): New. | |
3348 | (rewrite_update_stmt): Use it. | |
3349 | (mark_use_interesting): Return early for debug stmts. | |
3350 | * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug | |
3351 | stmts before replacing stmt. | |
3352 | (move_computations_stmt): Likewise. | |
3353 | * ira-conflicts.c (add_copies): Skip debug insns. | |
3354 | * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns. | |
3355 | (regstat_bb_compute_ri): Skip debug insns. | |
3356 | * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts. | |
3357 | * tree-ssa-loop-manip.c (find_uses_to_rename_stmt, | |
3358 | check_loop_closed_ssa_stmt): Skip debug stmts. | |
3359 | * tree-tailcall.c (find_tail_calls): Likewise. | |
3360 | * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise. | |
3361 | * tree.h (MAY_HAVE_DEBUG_STMTS): New. | |
3362 | (build_var_debug_value_stat): Declare. | |
3363 | (build_var_debug_value): Define. | |
3364 | (target_for_debug_bind): Declare. | |
3365 | * reload.c (find_equiv_reg): Skip debug insns. | |
3366 | * rtlanal.c (reg_used_between_p): Skip debug insns. | |
3367 | (side_effects_p): Likewise. | |
3368 | (canonicalize_condition): Likewise. | |
14e58be0 | 3369 | * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug |
8fc68cba AO |
3370 | insns never depend on debug insns. |
3371 | (create_ddg_dep_no_link): Likewise. | |
3372 | (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns. | |
3373 | Don't add inter-loop dependencies for debug insns. | |
3374 | (build_intra_loop_deps): Likewise. | |
3375 | (create_ddg): Count debug insns. | |
3376 | * ddg.h (struct ddg::num_debug): New. | |
3377 | (num_backargs): Pair up with previous int field. | |
3378 | * diagnostic.c (diagnostic_report_diagnostic): Skip notes on | |
3379 | -fcompare-debug-second. | |
3380 | * final.c (get_attr_length_1): Skip debug insns. | |
3381 | (rest_of_clean-state): Don't dump CFA_RESTORE_STATE. | |
3382 | * gcc.c (invoke_as): Call compare-debug-dump-opt. | |
3383 | (driver_self_specs): Map -fdump-final-insns to | |
3384 | -fdump-final-insns=.. | |
3385 | (get_local_tick): New. | |
3386 | (compare_debug_dump_opt_spec_function): Test for . argument and | |
3387 | compute output name. Compute temp output spec without flag name. | |
3388 | Compute -frandom-seed. | |
3389 | (OPT): Undef after use. | |
3390 | * cfgloopanal.c (num_loop_insns): Skip debug insns. | |
3391 | (average_num_loop_insns): Likewise. | |
3392 | * params.h (MIN_NONDEBUG_INSN_UID): New. | |
3393 | * gimple.def (GIMPLE_DEBUG): New. | |
3394 | * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts. | |
3395 | * auto-inc-dec.c (merge_in_block): Skip debug insns. | |
3396 | (merge_in_block): Fix whitespace. | |
3397 | * toplev.c (flag_var_tracking): Update comment. | |
3398 | (flag_var_tracking_assignments): New. | |
3399 | (flag_var_tracking_assignments_toggle): New. | |
3400 | (process_options): Don't open final insns dump file if we're not | |
3401 | going to write to it. Compute defaults for var_tracking. | |
3402 | * df-scan.c (df_insn_rescan_debug_internal): New. | |
3403 | (df_uses_record): Handle debug insns. | |
3404 | * haifa-sched.c (ready): Initialize n_debug. | |
3405 | (contributes_to_priority): Skip debug insns. | |
3406 | (dep_list_size): New. | |
3407 | (priority): Use it. | |
14e58be0 | 3408 | (rank_for_schedule): Likewise. Schedule debug insns as soon as |
8fc68cba AO |
3409 | they're ready. Disregard previous debug insns to make decisions. |
3410 | (queue_insn): Never queue debug insns. | |
3411 | (ready_add, ready_remove_first, ready_remove): Count debug insns. | |
3412 | (schedule_insn): Don't reject debug insns because of issue rate. | |
3413 | (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns. | |
3414 | (queue_to_ready): Skip and discount debug insns. | |
3415 | (choose_ready): Let debug insns through. | |
3416 | (schedule_block): Check boundary debug insns. Discount debug | |
3417 | insns, schedule them early. Adjust whitespace. | |
3418 | (set_priorities): Check for boundary debug insns. | |
3419 | (add_jump_dependencies): Use dep_list_size. | |
3420 | (prev_non_location_insn): New. | |
3421 | (check_cfg): Use it. | |
3422 | * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug | |
3423 | stmts. | |
3424 | (remove_unused_ivs): Reset debug stmts. | |
3425 | * modulo-sched.c (const_iteration_count): Skip debug insns. | |
3426 | (res_MII): Discount debug insns. | |
3427 | (loop_single_full_bb_p): Skip debug insns. | |
3428 | (sms_schedule): Likewise. | |
3429 | (sms_schedule_by_order): Likewise. | |
3430 | (ps_has_conflicts): Likewise. | |
3431 | * caller-save.c (refmarker_fn): New. | |
3432 | (save_call_clobbered_regs): Replace regs with saved mem in | |
3433 | debug insns. | |
3434 | (mark_referenced_regs): Take pointer, mark and arg. Adjust. | |
3435 | Call refmarker_fn mark for hardregnos. | |
3436 | (mark_reg_as_referenced): New. | |
3437 | (replace_reg_with_saved_mem): New. | |
3438 | * ipa-pure-const.c (check_stmt): Skip debug stmts. | |
3439 | * cse.c (cse_insn): Canonicalize debug insns. Skip them when | |
3440 | searching back. | |
3441 | (cse_extended_basic_block): Skip debug insns. | |
3442 | (count_reg_usage): Likewise. | |
3443 | (is_dead_reg): New, split out of... | |
3444 | (set_live_p): ... here. | |
3445 | (insn_live_p): Use it for debug insns. | |
3446 | * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts. | |
3447 | (execute_optimize_stdarg): Likewise. | |
3448 | * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise. | |
3449 | * tree-ssa-propagate.c (substitute_and_fold): Don't regard | |
3450 | changes in debug stmts as changes. | |
3451 | * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New. | |
3452 | (moveup_expr): Don't move across debug insns. Don't move | |
3453 | debug insn if it would create a bookkeeping block. | |
3454 | (moveup_expr_cached): Don't use cache for debug insns that | |
3455 | are heads of blocks. | |
3456 | (compute_av_set_inside_bb): Skip debug insns. | |
3457 | (sel_rank_for_schedule): Schedule debug insns first. Remove | |
3458 | dead code. | |
3459 | (block_valid_for_bookkeeping_p); Support lax searches. | |
3460 | (create_block_for_bookkeeping): Adjust block numbers when | |
3461 | encountering debug-only blocks. | |
3462 | (find_place_for_bookkeeping): Deal with debug-only blocks. | |
3463 | (generate_bookkeeping_insn): Accept no place to insert. | |
3464 | (remove_temp_moveop_nops): New argument full_tidying. | |
3465 | (prepare_place_to_insert): Deal with debug insns. | |
3466 | (advance_state_on_fence): Debug insns don't start cycles. | |
3467 | (update_boundaries): Take fence as argument. Deal with | |
3468 | debug insns. | |
3469 | (schedule_expr_on_boundary): No full_tidying on debug insns. | |
3470 | (fill_insns): Deal with debug insns. | |
3471 | (track_scheduled_insns_and_blocks): Don't count debug insns. | |
3472 | (need_nop_to_preserve_insn_bb): New, split out of... | |
3473 | (remove_insn_from_stream): ... this. | |
3474 | (fur_orig_expr_not_found): Skip debug insns. | |
3475 | * rtl.def (VALUE): Move up. | |
3476 | (DEBUG_INSN): New. | |
ed9d5a4a | 3477 | * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts. |
8fc68cba AO |
3478 | (nearest_common_dominator_of_uses): Take debug_stmts argument. |
3479 | Set it if debug stmts are found. | |
3480 | (statement_sink_location): Skip debug stmts. Propagate | |
3481 | moving defs into debug stmts. | |
3482 | * ifcvt.c (first_active_insn): Skip debug insns. | |
3483 | (last_active_insns): Likewise. | |
3484 | (cond_exec_process_insns): Likewise. | |
3485 | (noce_process_if_block): Likewise. | |
3486 | (check_cond_move_block): Likewise. | |
3487 | (cond_move_convert_if_block): Likewise. | |
3488 | (block_jumps_and_fallthru_p): Likewise. | |
3489 | (dead_or_predicable): Likewise. | |
3490 | * dwarf2out.c (debug_str_hash_forced): New. | |
3491 | (find_AT_string): Add comment. | |
3492 | (gen_label_for_indirect_string): New. | |
3493 | (get_debug_string_label): New. | |
3494 | (AT_string_form): Use it. | |
3495 | (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV, | |
3496 | MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but | |
3497 | discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and | |
3498 | several operations that cannot be represented with DWARF opcodes. | |
3499 | (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require | |
3500 | dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value. | |
3501 | (dwarf2out_var_location): Take during-call mark into account. | |
3502 | (output_indirect_string): Update comment. Output if there are | |
3503 | label and references. | |
3504 | (prune_indirect_string): New. | |
3505 | (prune_unused_types): Call it if debug_str_hash_forced. | |
3506 | More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>: | |
3507 | (dw_long_long_const): Remove. | |
3508 | (struct dw_val_struct): Change val_long_long type to rtx. | |
3509 | (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for | |
3510 | val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair. | |
3511 | (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each | |
3512 | component instead of HOST_BITS_PER_LONG. | |
14e58be0 | 3513 | (output_loc_operands): Likewise. For const8* assert |
8fc68cba AO |
3514 | HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64. |
3515 | (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT | |
3516 | rather than HOST_BITS_PER_LONG is >= 64. | |
3517 | (add_AT_long_long): Remove val_hi and val_lo arguments, add | |
3518 | val_const_double. | |
3519 | (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of | |
3520 | HOST_BITS_PER_LONG for dw_val_class_long_long. | |
3521 | (add_const_value_attribute): Adjust add_AT_long_long caller. Don't | |
3522 | handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse. | |
3523 | (dwarf_stack_op_name): Handle DW_OP_implicit_value and | |
3524 | DW_OP_stack_value. | |
3525 | (size_of_loc_descr, output_loc_operands, output_loc_operands_raw): | |
3526 | Handle DW_OP_implicit_value. | |
3527 | (extract_int): Move prototype earlier. | |
3528 | (mem_loc_descriptor): For SUBREG punt if inner | |
3529 | mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND | |
3530 | and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle | |
3531 | EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN, | |
3532 | UMAX, SIGN_EXTRACT, ZERO_EXTRACT. | |
3533 | (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE | |
3534 | instead of Pmode size. | |
3535 | (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE, | |
3536 | CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode, | |
3537 | attempt to handle other expressions. Don't handle TLS SYMBOL_REFs. | |
3538 | (concat_loc_descriptor, concatn_loc_descriptor, | |
3539 | loc_descriptor_from_tree_1): Adjust loc_descriptor callers. | |
3540 | (add_location_or_const_value_attribute): Likewise. For single | |
3541 | location loc_lists attempt to use add_const_value_attribute | |
3542 | for constant decls. Add DW_AT_const_value even if | |
3543 | NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING | |
3544 | in its expression. | |
3545 | * cfgbuild.c (inside_basic_block_p): Handle debug insns. | |
3546 | (control_flow_insn_p): Likewise. | |
ed9d5a4a | 3547 | * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt. |
8fc68cba AO |
3548 | (separate_decls_in_region_debug_bind): New. |
3549 | (separate_decls_in_region): Process debug bind stmts afterwards. | |
3550 | * recog.c (verify_changes): Handle debug insns. | |
3551 | (extract_insn): Likewise. | |
3552 | (peephole2_optimize): Skip debug insns. | |
3553 | * dse.c (scan_insn): Skip debug insns. | |
3554 | * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument. | |
3555 | Pass it on. | |
3556 | (setup_id_for_insn): Handle debug insns. | |
3557 | (maybe_tidy_empty_bb): Adjust whitespace. | |
3558 | (tidy_control_flow): Skip debug insns. | |
3559 | (sel_remove_insn): Adjust for debug insns. | |
3560 | (sel_estimate_number_of_insns): Skip debug insns. | |
3561 | (create_insn_rtx_from_pattern): Handle debug insns. | |
3562 | (create_copy_of_insn_rtx): Likewise. | |
3563 | * sel-sched-.h (sel_bb_end): Declare. | |
3564 | (sel_bb_empty_or_nop_p): New. | |
3565 | (get_all_loop_exits): Use it. | |
3566 | (_eligible_successor_edge_p): Likewise. | |
3567 | (return_nop_to_pool): Adjust. | |
3568 | * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts. | |
3569 | * ira-lives.c (process_bb_node_lives): Skip debug insns. | |
3570 | * gimple-pretty-print.c (dump_gimple_debug): New. | |
3571 | (dump_gimple_stmt): Use it. | |
3572 | (dump_bb_header): Skip gimple debug stmts. | |
3573 | * regmove.c (optimize_reg_copy_1): Discount debug insns. | |
3574 | (fixup_match_2): Likewise. | |
3575 | (regmove_backward_pass): Likewise. Simplify combined | |
3576 | replacement. Handle debug insns. | |
3577 | * function.c (instantiate_virtual_regs): Handle debug insns. | |
3578 | * function.h (struct emit_status): Add x_cur_debug_insn_uid. | |
3579 | * print-rtl.h: Include cselib.h. | |
ed9d5a4a | 3580 | (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs. |
8fc68cba AO |
3581 | * df.h (df_inns_rescan_debug_internal): Declare. |
3582 | * gcse.c (alloc_hash_table): Estimate n_insns. | |
3583 | (cprop_insn): Don't regard debug insns as changes. | |
3584 | (bypass_conditional_jumps): Skip debug insns. | |
3585 | (one_pre_gcse_pass): Adjust. | |
3586 | (one_code_hoisting_pass): Likewise. | |
3587 | (compute_ld_motion_mems): Skip debug insns. | |
3588 | (one_cprop_pass): Adjust. | |
3589 | * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts. | |
3590 | (if_convertible_stmt_p): Handle debug stmts. | |
3591 | * init-regs.c (initialize_uninitialized_regs): Skip debug insns. | |
3592 | * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts. | |
3593 | * ira-build.c (create_bb_allocnos): Skip debug insns. | |
3594 | * tree-flow-inline.h (has_zero_uses): Discount debug stmts. | |
3595 | (has_single_use): Likewise. | |
3596 | (single_imm_use): Likewise. | |
3597 | (num_imm_uses): Likewise. | |
3598 | * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts. | |
3599 | * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts. | |
3600 | (create_outofssa_var_map): Likewise. | |
3601 | * lower-subreg.c (adjust_decomposed_uses): New. | |
3602 | (resolve_debug): New. | |
3603 | (decompose_multiword_subregs): Use it. | |
3604 | * tree-dfa.c (find_referenced_vars): Skip debug stmts. | |
3605 | * emit-rtl.c: Include params.h. | |
3606 | (cur_debug_insn_uid): Define. | |
3607 | (set_new_first_and_last_insn): Set cur_debug_insn_uid too. | |
3608 | (copy_rtx_if_shared_1): Handle debug insns. | |
3609 | (reset_used_flags): Likewise. | |
3610 | (set_used_flags): LIkewise. | |
3611 | (get_max_insn_count): New. | |
3612 | (next_nondebug_insn): New. | |
3613 | (prev_nondebug_insn): New. | |
3614 | (make_debug_insn_raw): New. | |
3615 | (emit_insn_before_noloc): Handle debug insns. | |
3616 | (emit_jump_insn_before_noloc): Likewise. | |
3617 | (emit_call_insn_before_noloc): Likewise. | |
3618 | (emit_debug_insn_before_noloc): New. | |
3619 | (emit_insn_after_noloc): Handle debug insns. | |
3620 | (emit_jump_insn_after_noloc): Likewise. | |
3621 | (emit_call_insn_after_noloc): Likewise. | |
3622 | (emit_debug_insn_after_noloc): Likewise. | |
3623 | (emit_insn_after): Take loc from earlier non-debug insn. | |
3624 | (emit_jump_insn_after): Likewise. | |
3625 | (emit_call_insn_after): Likewise. | |
3626 | (emit_debug_insn_after_setloc): New. | |
3627 | (emit_debug_insn_after): New. | |
3628 | (emit_insn_before): Take loc from later non-debug insn. | |
3629 | (emit_jump_insn_before): Likewise. | |
3630 | (emit_call_insn_before): Likewise. | |
3631 | (emit_debug_insn_before_setloc): New. | |
3632 | (emit_debug_insn_before): New. | |
3633 | (emit_insn): Handle debug insns. | |
3634 | (emit_debug_insn): New. | |
3635 | (emit_jump_insn): Handle debug insns. | |
3636 | (emit_call_insn): Likewise. | |
3637 | (emit): Likewise. | |
3638 | (init_emit): Take min-nondebug-insn-uid into account. | |
3639 | Initialize cur_debug_insn_uid. | |
3640 | (emit_copy_of_insn_after): Handle debug insns. | |
3641 | * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite | |
3642 | location of single rhs in place. | |
3643 | (maybe_dump_rtl_for_gimple_stmt): Dump lineno. | |
3644 | (floor_sdiv_adjust): New. | |
3645 | (cell_sdiv_adjust): New. | |
3646 | (cell_udiv_adjust): New. | |
3647 | (round_sdiv_adjust): New. | |
3648 | (round_udiv_adjust): New. | |
3649 | (wrap_constant): Moved from cselib. | |
3650 | (unwrap_constant): New. | |
3651 | (expand_debug_expr): New. | |
3652 | (expand_debug_locations): New. | |
3653 | (expand_gimple_basic_block): Drop hiding redeclaration. Expand | |
3654 | debug bind stmts. | |
3655 | (gimple_expand_cfg): Expand debug locations. | |
3656 | * cselib.c: Include tree-pass.h. | |
3657 | (struct expand_value_data): New. | |
3658 | (cselib_record_sets_hook): New. | |
3659 | (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New. | |
3660 | (cselib_clear_table): Move, and implemnet in terms of... | |
3661 | (cselib_reset_table_with_next_value): ... this. | |
3662 | (cselib_get_next_unknown_value): New. | |
3663 | (discard_useless_locs): Don't discard preserved values. | |
3664 | (cselib_preserve_value): New. | |
3665 | (cselib_preserved_value_p): New. | |
3666 | (cselib_preserve_definitely): New. | |
3667 | (cselib_clear_preserve): New. | |
3668 | (cselib_preserve_only_values): New. | |
3669 | (new_cselib_val): Take rtx argument. Dump it in details. | |
3670 | (cselib_lookup_mem): Adjust. | |
3671 | (expand_loc): Take regs_active in struct. Adjust. Silence | |
3672 | dumps unless details are requested. | |
3673 | (cselib_expand_value_rtx_cb): New. | |
3674 | (cselib_expand_value_rtx): Rename and reimplment in terms of... | |
3675 | (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps | |
3676 | without details. Copy more subregs. Try to resolve values | |
3677 | using a callback. Wrap constants. | |
3678 | (cselib_subst_to_values): Adjust. | |
3679 | (cselib_log_lookup): New. | |
3680 | (cselib_lookup): Call it. | |
ed9d5a4a | 3681 | (cselib_invalidate_regno): Don't count preserved values as useless. |
8fc68cba AO |
3682 | (cselib_invalidate_mem): Likewise. |
3683 | (cselib_record_set): Likewise. | |
3684 | (struct set): Renamed to cselib_set, moved to cselib.h. | |
3685 | (cselib_record_sets): Adjust. Call hook. | |
3686 | (cselib_process_insn): Reset table when it would be cleared. | |
3687 | (dump_cselib_val): New. | |
3688 | (dump_cselib_table): New. | |
3689 | * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts. | |
3690 | (remove_forwarder_block): Support moving debug stmts. | |
3691 | * cselib.h (cselib_record_sets_hook): Declare. | |
3692 | (cselib_expand_callback): New type. | |
3693 | (cselib_expand_value_rtx_cb): Declare. | |
3694 | (cselib_reset_table_with_next_value): Declare. | |
3695 | (cselib_get_next_unknown_value): Declare. | |
3696 | (cselib_preserve_value): Declare. | |
3697 | (cselib_preserved_value_p): Declare. | |
3698 | (cselib_preserve_only_values): Declare. | |
3699 | (dump_cselib_table): Declare. | |
3700 | * cfgcleanup.c (flow_find_cross_jump): Skip debug insns. | |
3701 | (try_crossjump_to_edge): Likewise. | |
3702 | (delete_unreachable_blocks): Remove dominant GIMPLE blocks after | |
3703 | dominated blocks when debug stmts are present. | |
3704 | * simplify-rtx.c (delegitimize_mem_from_attrs): New. | |
3705 | * tree-ssa-live.c (remove_unused_locals): Skip debug stmts. | |
3706 | (set_var_live_on_entry): Likewise. | |
3707 | * loop-invariant.c (find_invariants_bb): Skip debug insns. | |
3708 | * cfglayout.c (curr_location, last_location): Make static. | |
3709 | (set_curr_insn_source_location): Don't avoid bouncing. | |
3710 | (get_curr_insn_source_location): New. | |
3711 | (get_curr_insn_block): New. | |
3712 | (duplicate_insn_chain): Handle debug insns. | |
3713 | * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate | |
3714 | into debug stmts. | |
3715 | * common.opt (fcompare-debug): Move to sort order. | |
3716 | (fdump-unnumbered-links): Likewise. | |
3717 | (fvar-tracking-assignments): New. | |
3718 | (fvar-tracking-assignments-toggle): New. | |
3719 | * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks | |
3720 | because of debug stmts. | |
3721 | (mark_stmt_if_obviously_necessary): Mark debug stmts. | |
3722 | (eliminate_unnecessary_stmts): Walk dominated blocks before | |
3723 | dominators. | |
3724 | * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts. | |
3725 | * ira.c (memref_used_between_p): Skip debug insns. | |
3726 | (update_equiv_regs): Likewise. | |
3727 | * sched-deps.c (sd_lists_size): Accept empty list. | |
3728 | (sd_init_insn): Mark debug insns. | |
3729 | (sd_finish_insn): Unmark them. | |
3730 | (sd_add_dep): Reject non-debug deps on debug insns. | |
3731 | (fixup_sched_groups): Give debug insns group treatment. | |
3732 | Skip debug insns. | |
3733 | (sched_analyze_reg): Don't mark debug insns for sched before call. | |
3734 | (sched_analyze_2): Handle debug insns. | |
3735 | (sched_analyze_insn): Compute next non-debug insn. Handle debug | |
3736 | insns. | |
3737 | (deps_analyze_insn): Handle debug insns. | |
3738 | (deps_start_bb): Skip debug insns. | |
3739 | (init_deps): Initialize last_debug_insn. | |
3740 | * tree-ssa.c (target_for_debug_bind): New. | |
3741 | (find_released_ssa_name): New. | |
3742 | (propagate_var_def_into_debug_stmts): New. | |
3743 | (propagate_defs_into_debug_stmts): New. | |
3744 | (verify_ssa): Skip debug bind stmts without values. | |
3745 | (warn_uninialized_vars): Skip debug stmts. | |
3746 | * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default. | |
3747 | * rtl.c (rtx_equal_p_cb): Handle VALUEs. | |
3748 | (rtx_equal_p): Likewise. | |
3749 | * ira-costs.c (scan_one_insn): Skip debug insns. | |
3750 | (process_bb_node_for_hard_reg_moves): Likewise. | |
3751 | * rtl.h (DEBUG_INSN_P): New. | |
3752 | (NONDEBUG_INSN_P): New. | |
3753 | (MAY_HAVE_DEBUG_INSNS): New. | |
3754 | (INSN_P): Accept debug insns. | |
3755 | (RTX_FRAME_RELATED_P): Likewise. | |
3756 | (INSN_DELETED_P): Likewise | |
3757 | (PAT_VAR_LOCATION_DECL): New. | |
3758 | (PAT_VAR_LOCATION_LOC): New. | |
3759 | (PAT_VAR_OCATION_STATUS): New. | |
3760 | (NOTE_VAR_LOCATION_DECL): Reimplement. | |
3761 | (NOTE_VAR_LOCATION_LOC): Likewise. | |
3762 | (NOTE_VAR_LOCATION_STATUS): Likewise. | |
3763 | (INSN_VAR_LOCATION): New. | |
3764 | (INSN_VAR_LOCATION_DECL): New. | |
3765 | (INSN_VAR_LOCATION_LOC): New. | |
3766 | (INSN_VAR_LOCATION_STATUS): New. | |
3767 | (gen_rtx_UNKNOWN_VAR_LOC): New. | |
3768 | (VAR_LOC_UNKNOWN_P): New. | |
3769 | (NOTE_DURING_CALL_P): New. | |
3770 | (SCHED_GROUP_P): Accept debug insns. | |
3771 | (emit_debug_insn_before): Declare. | |
3772 | (emit_debug_insn_before_noloc): Declare. | |
3773 | (emit_debug_insn_beore_setloc): Declare. | |
3774 | (emit_debug_insn_after): Declare. | |
3775 | (emit_debug_insn_after_noloc): Declare. | |
3776 | (emit_debug_insn_after_setloc): Declare. | |
3777 | (emit_debug_insn): Declare. | |
3778 | (make_debug_insn_raw): Declare. | |
3779 | (prev_nondebug_insn): Declare. | |
3780 | (next_nondebug_insn): Declare. | |
3781 | (delegitimize_mem_from_attrs): Declare. | |
3782 | (get_max_insn_count): Declare. | |
3783 | (wrap_constant): Declare. | |
3784 | (unwrap_constant): Declare. | |
3785 | (get_curr_insn_source_location): Declare. | |
3786 | (get_curr_insn_block): Declare. | |
3787 | * tree-inline.c (insert_debug_decl_map): New. | |
3788 | (processing_debug_stmt): New. | |
3789 | (remap_decl): Don't create new mappings in debug stmts. | |
3790 | (remap_gimple_op_r): Don't add references in debug stmts. | |
3791 | (copy_tree_body_r): Likewise. | |
3792 | (remap_gimple_stmt): Handle debug bind stmts. | |
3793 | (copy_bb): Skip debug stmts. | |
3794 | (copy_edges_for_bb): Likewise. | |
3795 | (copy_debug_stmt): New. | |
3796 | (copy_debug_stmts): New. | |
3797 | (copy_body): Copy debug stmts at the end. | |
3798 | (insert_init_debug_bind): New. | |
3799 | (insert_init_stmt): Take id. Skip and emit debug stmts. | |
ed9d5a4a | 3800 | (setup_one_parameter): Remap variable earlier, register debug mapping. |
8fc68cba AO |
3801 | (estimate_num_insns): Skip debug stmts. |
3802 | (expand_call_inline): Preserve debug_map. | |
3803 | (optimize_inline_calls): Check for no debug_stmts left-overs. | |
3804 | (unsave_expr_now): Preserve debug_map. | |
3805 | (copy_gimple_seq_and_replace_locals): Likewise. | |
3806 | (tree_function_versioning): Check for no debug_stmts left-overs. | |
3807 | Init and destroy debug_map as needed. Split edges unconditionally. | |
3808 | (build_duplicate_type): Init and destroy debug_map as needed. | |
3809 | * tree-inline.h: Include gimple.h instead of pointer-set.h. | |
3810 | (struct copy_body_data): Add debug_stmts and debug_map. | |
3811 | * sched-int.h (struct ready_list): Add n_debug. | |
3812 | (struct deps): Add last_debug_insn. | |
3813 | (DEBUG_INSN_SCHED_P): New. | |
3814 | (BOUNDARY_DEBUG_INSN_P): New. | |
3815 | (SCHEDULE_DEBUG_INSN_P): New. | |
3816 | (sd_iterator_cond): Accept empty list. | |
3817 | * combine.c (create_log_links): Skip debug insns. | |
3818 | (combine_instructions): Likewise. | |
3819 | (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the | |
3820 | return value is always unshared. | |
3821 | (struct rtx_subst_pair): New. | |
3822 | (auto_adjust_pair): New. | |
3823 | (propagate_for_debug_subst): New. | |
3824 | (propagate_for_debug): New. | |
3825 | (try_combine): Skip debug insns. Propagate removed defs into | |
3826 | debug insns. | |
3827 | (next_nonnote_nondebug_insn): New. | |
3828 | (distribute_notes): Use it. Skip debug insns. | |
3829 | (distribute_links): Skip debug insns. | |
3830 | * tree-outof-ssa.c (set_location_for_edge): Likewise. | |
3831 | * resource.c (mark_target_live_regs): Likewise. | |
3832 | * var-tracking.c: Include cselib.h and target.h. | |
3833 | (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and | |
3834 | MO_VAL_SET. | |
3835 | (micro_operation_type_name): New. | |
3836 | (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN. | |
3837 | (struct micro_operation_def): Update comments. | |
3838 | (decl_or_value): New type. Use instead of decls. | |
3839 | (struct emit_note_data_def): Add vars. | |
3840 | (struct attrs_def): Use decl_or_value. | |
3841 | (struct variable_tracking_info_def): Add permp, flooded. | |
3842 | (struct location_chain_def): Update comment. | |
3843 | (struct variable_part_def): Use decl_or_value. | |
3844 | (struct variable_def): Make var_part a variable length array. | |
3845 | (valvar_pool): New. | |
3846 | (scratch_regs): New. | |
3847 | (cselib_hook_called): New. | |
3848 | (dv_is_decl_p): New. | |
3849 | (dv_is_value_p): New. | |
3850 | (dv_as_decl): New. | |
3851 | (dv_as_value): New. | |
3852 | (dv_as_opaque): New. | |
3853 | (dv_onepart_p): New. | |
3854 | (dv_pool): New. | |
3855 | (IS_DECL_CODE): New. | |
3856 | (check_value_is_not_decl): New. | |
3857 | (dv_from_decl): New. | |
3858 | (dv_from_value): New. | |
3859 | (dv_htab_hash): New. | |
3860 | (variable_htab_hash): Use it. | |
3861 | (variable_htab_eq): Support values. | |
3862 | (variable_htab_free): Free from the right pool. | |
3863 | (attrs_list_member, attrs_list_insert): Use decl_or_value. | |
3864 | (attrs_list_union): Adjust. | |
3865 | (attrs_list_mpdv_union): New. | |
3866 | (tie_break_pointers): New. | |
3867 | (canon_value_cmp): New. | |
3868 | (unshare_variable): Return possibly-modified slot. | |
3869 | (vars_copy_1): Adjust. | |
3870 | (var_reg_decl_set): Adjust. Split out of... | |
3871 | (var_reg_set): ... this. | |
3872 | (get_init_value): Adjust. | |
3873 | (var_reg_delete_and_set): Adjust. | |
3874 | (var_reg_delete): Adjust. | |
3875 | (var_regno_delete): Adjust. | |
3876 | (var_mem_decl_set): Split out of... | |
3877 | (var_mem_set): ... this. | |
3878 | (var_mem_delete_and_set): Adjust. | |
3879 | (var_mem_delete): Adjust. | |
3880 | (val_store): New. | |
3881 | (val_reset): New. | |
3882 | (val_resolve): New. | |
3883 | (variable_union): Adjust. Speed up merge of 1-part vars. | |
3884 | (variable_canonicalize): Use unshared slot. | |
3885 | (VALUED_RECURSED_INTO): New. | |
3886 | (find_loc_in_1pdv): New. | |
3887 | (struct dfset_merge): New. | |
3888 | (insert_into_intersection): New. | |
3889 | (intersect_loc_chains): New. | |
3890 | (loc_cmp): New. | |
3891 | (canonicalize_loc_order_check): New. | |
3892 | (canonicalize_values_mark): New. | |
3893 | (canonicalize_values_star): New. | |
3894 | (variable_merge_over_cur): New. | |
3895 | (variable_merge_over_src): New. | |
3896 | (dataflow_set_merge): New. | |
3897 | (dataflow_set_equiv_regs): New. | |
3898 | (remove_duplicate_values): New. | |
3899 | (struct dfset_post_merge): New. | |
3900 | (variable_post_merge_new_vals): New. | |
3901 | (variable_post_merge_perm_vals): New. | |
3902 | (dataflow_post_merge_adjust): New. | |
3903 | (find_mem_expr_in_1pdv): New. | |
3904 | (dataflow_set_preserve_mem_locs): New. | |
3905 | (dataflow_set_remove_mem_locs): New. | |
3906 | (dataflow_set_clear_at_call): New. | |
3907 | (onepart_variable_different_p): New. | |
3908 | (variable_different_p): Use it. | |
ed9d5a4a | 3909 | (dataflow_set_different_1): Adjust. Make detailed dump more verbose. |
8fc68cba AO |
3910 | (track_expr_p): Add need_rtl parameter. Don't generate rtl |
3911 | if not needed. | |
3912 | (track_loc_p): Pass it true. | |
3913 | (struct count_use_info): New. | |
3914 | (find_use_val): New. | |
3915 | (replace_expr_with_values): New. | |
3916 | (log_op_type): New. | |
3917 | (use_type): New, partially split out of... | |
3918 | (count_uses): ... this. Count new micro-ops. | |
3919 | (count_uses_1): Adjust. | |
3920 | (count_stores): Adjust. | |
3921 | (count_with_sets): New. | |
3922 | (VAL_NEEDS_RESOLUTION): New. | |
3923 | (VAL_HOLDS_TRACK_EXPR): New. | |
3924 | (VAL_EXPR_IS_COPIED): New. | |
3925 | (VAL_EXPR_IS_CLOBBERED): New. | |
3926 | (add_uses): Adjust. Generate new micro-ops. | |
3927 | (add_uses_1): Adjust. | |
3928 | (add_stores): Generate new micro-ops. | |
3929 | (add_with_sets): New. | |
3930 | (find_src_status): Adjust. | |
3931 | (find_src_set_src): Adjust. | |
3932 | (compute_bb_dataflow): Use dataflow_set_clear_at_call. | |
3933 | Handle new micro-ops. Canonicalize value equivalances. | |
3934 | (vt_find_locations): Compute total size of hash tables for | |
3935 | dumping. Perform merge for var-tracking-assignments. Don't | |
3936 | disregard single-block loops. | |
3937 | (dump_attrs_list): Handle decl_or_value. | |
3938 | (dump_variable): Take variable. Deal with decl_or_value. | |
3939 | (dump_variable_slot): New. | |
3940 | (dump_vars): Use it. | |
3941 | (dump_dataflow_sets): Adjust. | |
3942 | (set_slot_part): New, extended to support one-part variables | |
3943 | after splitting out of... | |
3944 | (set_variable_part): ... this. | |
3945 | (clobber_slot_part): New, split out of... | |
3946 | (clobber_variable_part): ... this. | |
3947 | (delete_slot_part): New, split out of... | |
3948 | (delete_variable_part): .... this. | |
3949 | (check_wrap_constant): New. | |
3950 | (vt_expand_loc_callback): New. | |
3951 | (vt_expand_loc): New. | |
3952 | (emit_note_insn_var_location): Adjust. Handle values. Handle | |
3953 | EMIT_NOTE_AFTER_CALL_INSN. | |
3954 | (emit_notes_for_differences_1): Adjust. Handle values. | |
3955 | (emit_notes_for_differences_2): Likewise. | |
3956 | (emit_notes_for_differences): Adjust. | |
ed9d5a4a UB |
3957 | (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes. |
3958 | Adjust. Handle new micro-ops. | |
8fc68cba AO |
3959 | (vt_add_function_parameters): Adjust. Create and bind values. |
3960 | (vt_initialize): Adjust. Initialize scratch_regs and | |
3961 | valvar_pool, flooded and perm.. Initialize and use cselib. Log | |
3962 | operations. Move some code to count_with_sets and add_with_sets. | |
3963 | (delete_debug_insns): New. | |
3964 | (vt_debug_insns_local): New. | |
3965 | (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish | |
3966 | cselib. | |
3967 | (var_tracking_main): If var-tracking-assignments is enabled | |
3968 | but var-tracking isn't, delete debug insns and leave. Likewise | |
3969 | if we exceed limits or fail the stack adjustments tests, and | |
3970 | after all var-tracking processing. | |
3971 | More in var-tracking, from Jakub Jelinek <jakub@redhat.com>: | |
3972 | (dataflow_set): Add traversed_vars. | |
3973 | (value_chain, const_value_chain): New typedefs. | |
3974 | (value_chain_pool, value_chains): New variables. | |
3975 | (value_chain_htab_hash, value_chain_htab_eq, add_value_chain, | |
3976 | add_value_chains, add_cselib_value_chains, remove_value_chain, | |
3977 | remove_value_chains, remove_cselib_value_chains): New functions. | |
3978 | (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1, | |
3979 | shared_hash_find_slot_noinsert_1, shared_hash_find_1): New | |
3980 | static inlines. | |
3981 | (shared_hash_find_slot_unshare, shared_hash_find_slot, | |
3982 | shared_hash_find_slot_noinsert, shared_hash_find): Update. | |
3983 | (dst_can_be_shared): New variable. | |
3984 | (unshare_variable): Unshare set->vars if shared, use shared_hash_*. | |
3985 | Clear dst_can_be_shared. If set->traversed_vars is non-NULL and | |
3986 | different from set->vars, look up slot again instead of using the | |
3987 | passed in slot. | |
3988 | (dataflow_set_init): Initialize traversed_vars. | |
3989 | (variable_union): Use shared_hash_*. Use initially NO_INSERT | |
3990 | lookup if set->vars is shared. Don't keep slot cleared before | |
3991 | calling unshare_variable. Unshare set->vars if needed. Adjust | |
3992 | unshare_variable callers. Clear dst_can_be_shared if needed. | |
3993 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
3994 | and var needs to be modified. | |
3995 | (dataflow_set_union): Set traversed_vars during canonicalization. | |
3996 | (VALUE_CHANGED, DECL_CHANGED): Define. | |
14e58be0 | 3997 | (set_dv_changed, dv_changed_p): New static inlines. |
8fc68cba AO |
3998 | (track_expr_p): Clear DECL_CHANGED. |
3999 | (dump_dataflow_sets): Set it. | |
4000 | (variable_was_changed): Call set_dv_changed. | |
4001 | (emit_note_insn_var_location): Likewise. | |
4002 | (changed_variables_stack): New variable. | |
4003 | (check_changed_vars_1, check_changed_vars_2): New functions. | |
4004 | (emit_notes_for_changes): Do nothing if changed_variables is | |
4005 | empty. Traverse changed_variables with check_changed_vars_1, | |
4006 | call check_changed_vars_2 on each changed_variables_stack entry. | |
4007 | (emit_notes_in_bb): Add SET argument. Just clear it at the | |
ed9d5a4a | 4008 | beginning, use it instead of local &set, don't destroy it at the end. |
8fc68cba AO |
4009 | (vt_emit_notes): Call dataflow_set_clear early on all |
4010 | VTI(bb)->out sets, never use them, instead use emit_notes_in_bb | |
4011 | computed set, dataflow_set_clear also VTI(bb)->in when we are | |
4012 | done with the basic block. Initialize changed_variables_stack, | |
4013 | free it afterwards. If ENABLE_CHECKING verify that after noting | |
4014 | differences to an empty set value_chains hash table is empty. | |
4015 | (vt_initialize): Initialize value_chains and value_chain_pool. | |
4016 | (vt_finalize): Delete value_chains htab, free value_chain_pool. | |
4017 | (variable_tracking_main): Call dump_dataflow_sets before calling | |
4018 | vt_emit_notes, not after it. | |
4019 | * tree-flow.h (propagate_defs_into_debug_stmts): Declare. | |
4020 | (propagate_var_def_into_debug_stmts): Declare. | |
4021 | * df-problems.c (df_lr_bb_local_compute): Skip debug insns. | |
4022 | (df_set_note): Reject debug insns. | |
4023 | (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't | |
4024 | add notes to debug insns. | |
4025 | (df_note_bb_compute): Adjust. Likewise. | |
4026 | (df_simulate_uses): Skip debug insns. | |
4027 | (df_simulate_initialize_backwards): Likewise. | |
4028 | * reg-stack.c (subst_stack_regs_in_debug_insn): New. | |
4029 | (subst_stack_regs_pat): Reject debug insns. | |
4030 | (convert_regs_1): Handle debug insns. | |
4031 | * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H. | |
4032 | (print-rtl.o): Depend on cselib.h. | |
4033 | (cselib.o): Depend on TREE_PASS_H. | |
4034 | (var-tracking.o): Depend on cselib.h and TARGET_H. | |
ed9d5a4a | 4035 | * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns. |
8fc68cba AO |
4036 | (init_ready_list): Skip boundary debug insns. |
4037 | (add_branch_dependences): Skip debug insns. | |
ed9d5a4a | 4038 | (free_block_dependencies): Check for blocks with only debug insns. |
8fc68cba AO |
4039 | (compute_priorities): Likewise. |
4040 | * gimple.c (gss_for_code): Handle GIMPLE_DEBUG. | |
4041 | (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust | |
4042 | all callers. | |
4043 | (gimple_build_debug_bind_stat): New. | |
4044 | (empty_body_p): Skip debug stmts. | |
4045 | (gimple_has_side_effects): Likewise. | |
4046 | (gimple_rhs_has_side_effects): Likewise. | |
4047 | * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New. | |
4048 | (gimple_build_debug_bind_stat): Declare. | |
4049 | (gimple_build_debug_bind): Define. | |
4050 | (is_gimple_debug): New. | |
4051 | (gimple_debug_bind_p): New. | |
4052 | (gimple_debug_bind_get_var): New. | |
4053 | (gimple_debug_bind_get_value): New. | |
4054 | (gimple_debug_bind_get_value_ptr): New. | |
4055 | (gimple_debug_bind_set_var): New. | |
4056 | (gimple_debug_bind_set_value): New. | |
4057 | (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro. | |
4058 | (gimple_debug_bind_reset_value): New. | |
4059 | (gimple_debug_bind_has_value_p): New. | |
4060 | (gsi_next_nondebug): New. | |
4061 | (gsi_prev_nondebug): New. | |
4062 | (gsi_start_nondebug_bb): New. | |
4063 | (gsi_last_nondebug_bb): New. | |
4064 | * sched-vis.c (print_pattern): Handle VAR_LOCATION. | |
4065 | (print_insn): Handle DEBUG_INSN. | |
4066 | * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc | |
4067 | of first insn prevail. | |
4068 | (first_stmt): Skip debug stmts. | |
4069 | (first_non_label_stmt): Likewise. | |
4070 | (last_stmt): Likewise. | |
4071 | (has_zero_uses_1): New. | |
4072 | (single_imm_use_1): New. | |
4073 | (verify_gimple_debug): New. | |
4074 | (verify_types_in_gimple_stmt): Handle debug stmts. | |
4075 | (verify_stmt): Likewise. | |
4076 | (debug_loop_num): Skip debug stmts. | |
4077 | (remove_edge_and_dominated_blocks): Remove dominators last. | |
ed9d5a4a | 4078 | * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts. |
8fc68cba AO |
4079 | (linearize_expr): Likewise. |
4080 | * config/i386/i386.c (ix86_delegitimize_address): Call | |
4081 | default implementation. | |
ed9d5a4a | 4082 | * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns. |
8fc68cba AO |
4083 | (group_barrier_needed): Skip debug insns. |
4084 | (emit_insn_group_barriers): Likewise. | |
4085 | (emit_all_insn_group_barriers): Likewise. | |
4086 | (ia64_variable_issue): Handle debug insns. | |
4087 | (ia64_dfa_new_cycle): Likewise. | |
4088 | (final_emit_insn_group_barriers): Skip debug insns. | |
4089 | (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't | |
4090 | def cfa without frame. | |
4091 | (process_set): Likewise. | |
4092 | (process_for_unwind_directive): Pass frame on. | |
4093 | * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define. | |
4094 | (rs6000_delegitimize_address): New. | |
4095 | (rs6000_debug_adjust_cost): Handle debug insns. | |
4096 | (is_microcoded_insn): Likewise. | |
4097 | (is_cracked_insn): Likewise. | |
4098 | (is_nonpipeline_insn): Likewise. | |
4099 | (insn_must_be_first_in_group): Likewise. | |
4100 | (insn_must_be_last_in_group): Likewise. | |
4101 | (force_new_group): Likewise. | |
4102 | * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block | |
4103 | contains only debug insns. | |
4104 | (rtl_merge_blocks): Skip debug insns. | |
4105 | (purge_dead_edges): Likewise. | |
4106 | (rtl_block_ends_with_call_p): Skip debug insns. | |
4107 | * dce.c (deletable_insn_p): Handle VAR_LOCATION. | |
4108 | (mark_reg_dependencies): Skip debug insns. | |
4109 | * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New. | |
ed9d5a4a | 4110 | * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts. |
8fc68cba AO |
4111 | * tree-ssa-threadedge.c |
4112 | (record_temporary_equivalences_from_stmts): Skip debug stmts. | |
4113 | * regcprop.c (replace_oldest_value_addr): Skip debug insns. | |
4114 | (replace_oldest_value_mem): Use ALL_REGS for debug insns. | |
4115 | (copyprop_hardreg_forward_1): Handle debug insns. | |
4116 | * reload1.c (reload): Skip debug insns. Replace unassigned | |
4117 | pseudos in debug insns with their equivalences. | |
4118 | (eliminate_regs_in_insn): Skip debug insns. | |
4119 | (emit_input_reload_insns): Skip debug insns at first, adjust | |
4120 | them later. | |
4121 | * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts. | |
4122 | (get_indirect_ref_operands): Pass opf_no_vops on. | |
4123 | (get_expr_operands): Likewise. Skip debug stmts. | |
4124 | (parse_ssa_operands): Scan debug insns with opf_no_vops. | |
4125 | ||
cd6ea7a2 RH |
4126 | 2009-09-01 Richard Henderson <rth@redhat.com> |
4127 | ||
14e58be0 | 4128 | * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate |
cd6ea7a2 RH |
4129 | stmt_ends_pp_p statements at least once. |
4130 | * tree-vrp.c (vrp_initialize): Likewise. | |
4131 | (vrp_visit_stmt): Be prepared for non-interesting stmts. | |
4132 | ||
d3bc57f2 DS |
4133 | 2009-09-01 Dodji Seketeli <dodji@redhat.com> |
4134 | ||
4135 | PR bootstrap/41205 | |
4136 | Fix AIX bootstrap after PR debug/30161 | |
4137 | * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen | |
4138 | that is a GNU extension. | |
4139 | (tmpl_value_parm_die_table): Move the definition of this global | |
4140 | outside #ifdef DWARF2_DEBUGGING_INFO region. | |
4141 | ||
71c00b5c RG |
4142 | 2009-09-01 Richard Guenther <rguenther@suse.de> |
4143 | ||
4144 | * tree.c (tree_expr_size): New function. | |
4145 | * tree.h (tree_expr_size): Declare. | |
4146 | * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment. | |
4147 | * builtins.c (fold_builtin_memory_op): Use tree_expr_size. | |
4148 | * langhooks.c (lhd_expr_size): Remove. | |
4149 | * langhooks.h (struct lang_hooks): Remove expr_size. | |
4150 | * explow.c (expr_size): Use tree_expr_size. | |
4151 | (int_expr_size): Likewise. | |
4152 | * langhooks-def.h (lhd_expr_size): Remove. | |
4153 | (LANG_HOOKS_EXPR_SIZE): Likewise. | |
4154 | (LANG_HOOKS_INITIALIZER): Adjust. | |
4155 | ||
58f986ca RG |
4156 | 2009-09-01 Richard Guenther <rguenther@suse.de> |
4157 | ||
4158 | * tree-flow.h (mark_addressable): Move declaration ... | |
4159 | * tree.h (mark_addressable): ... here. | |
4160 | * stmt.c (expand_asm_operands): Use mark_addressable, not | |
4161 | lang_hooks.mark_addressable. | |
4162 | * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove | |
4163 | LANG_HOOKS_MARK_ADDRESSABLE. | |
4164 | * langhooks.h (struct lang_hooks): Remove mark_addressable langhook. | |
4165 | * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove. | |
4166 | ||
5fa162c0 CD |
4167 | 2009-08-31 Chris Demetriou <cgd@google.com> |
4168 | ||
4169 | * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never | |
4170 | vectorize if not TARGET_SSE2. | |
4171 | ||
453503d6 DD |
4172 | 2009-08-31 DJ Delorie <dj@redhat.com> |
4173 | ||
4174 | * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor | |
4175 | registers if no coprocessor is enabled. | |
4176 | ||
f9329c35 DS |
4177 | 2009-08-31 Dodji Seketeli <dodji@redhat.com> |
4178 | ||
4179 | PR debug/30161 | |
4180 | * cgraph.h (cgraph_get_node): Declare ... | |
4181 | * cgraph.c (cgraph_get_node): ... new function. | |
4182 | * dwarf2out.c (gen_generic_params_dies, | |
4183 | generic_parameter_die, tree_add_const_value_attribute_for_decl, | |
4184 | make_ith_pack_parameter_name, | |
4185 | append_entry_to_tmpl_value_parm_die_table, | |
4186 | gen_remaining_tmpl_value_param_die_attribute): New functions. | |
4187 | (gen_subprogram_die): Generate debug info for template parameters | |
4188 | if debug info level is higher than DINFO_LEVEL_TERSE. | |
4189 | Use tree_add_const_value_attribute_for_decl instead of | |
4190 | tree_add_const_value_attribute. | |
4191 | (gen_const_die): Use tree_add_const_value_attribute_for_decl | |
4192 | instead of tree_add_const_value_attribute. | |
4193 | (gen_struct_or_union_type_die): Generate debug | |
4194 | info for template parameters if debug info level is higher than | |
4195 | DINFO_LEVEL_TERSE. | |
4196 | (tree_add_const_value_attribute): Handle integral and pointer | |
4197 | constants. Update comment. | |
4198 | (dwarf_tag_name): Support DW_TAG_GNU_template_template_param. | |
4199 | (dwarf_attr_name): Support DW_AT_GNU_template_name. | |
4200 | (reference_to_unused): Fix thinko. Remove redundant predicates from | |
4201 | tests. | |
4202 | (tree_add_const_value_attribute): Make this work for constant | |
4203 | expressions only. | |
4204 | tree_add_const_value_attribute_for_decl is to be used for variable | |
4205 | DECLs now. | |
4206 | (add_location_or_const_value_attribute): Use | |
4207 | tree_add_const_value_attribute_for_decl now. | |
4208 | (dwarf2out_finish): Emit the DW_AT_const_value attribute of | |
4209 | DW_TAG_template_value_param DIEs after function DIEs have been | |
4210 | emitted. | |
4211 | * langhooks.h (lang_hooks_for_types): Add | |
4212 | get_argument_pack_elems. | |
4213 | (lang_hooks_for_decls): Add generic_generic_parameter_decl_p. | |
4214 | (lang_hooks): Added get_innermost_generic_parms, | |
4215 | get_innermost_generic_args. | |
4216 | * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS, | |
4217 | LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS, | |
4218 | LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS, | |
4219 | LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks. | |
4220 | ||
e756464b DD |
4221 | 2009-08-31 DJ Delorie <dj@redhat.com> |
4222 | ||
4223 | * config/mep/mep.c (machine_function): Add frame_locked flag. Set | |
4224 | it once we start generating the prologue or epilogue. | |
5fa162c0 CD |
4225 | (mep_call_saves_register): If the frame is locked, re-use |
4226 | cached values. | |
e756464b DD |
4227 | (mep_assign_save_slots): New, broken out from mep_expand_prologue. |
4228 | (mep_expand_prologue): Call it. | |
4229 | (mep_expand_epilogue): Likewise. | |
4230 | (mep_start_function): Use the same logic as mep_expand_prologue. | |
4231 | (mep_pass_by_reference): Make logic more readable. | |
4232 | (mep_return_in_memory): Zero-sized objects are passed in memory. | |
4233 | (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes. | |
4234 | ||
e2abde5f RG |
4235 | 2009-08-31 Richard Guenther <rguenther@suse.de> |
4236 | ||
4237 | * builtins.c (fold_builtin_memory_op): Use the alias oracle | |
4238 | to query if the memory regions for memmove overlap. | |
4239 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the | |
4240 | asserts on pointers, instead deal with odd trees. | |
4241 | (ptr_derefs_may_alias_p): Likewise. | |
4242 | (refs_may_alias_p_1): Constructor bases also never alias. | |
4243 | ||
c4331d93 GP |
4244 | 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com> |
4245 | ||
4246 | * doc/install.texi (Final install): Adjust reference on where to | |
4247 | order printed manuals. | |
4248 | ||
40a99889 OH |
4249 | 2009-08-30 Olivier Hainque <hainque@adacore.com> |
4250 | ||
4251 | * dwarf2out.c (switch_to_frame_table_section): Move | |
4252 | definition prior to first use. | |
4253 | ||
a778c4e7 RG |
4254 | 2009-08-30 Richard Guenther <rguenther@suse.de> |
4255 | ||
4256 | PR tree-optimization/41186 | |
4257 | * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove. | |
4258 | (ao_ref_init_from_ptr_and_size): New function. | |
4259 | (ref_maybe_used_by_call_p_1): Be more precise tracking | |
4260 | used ranges for builtin functions. | |
4261 | (ref_maybe_used_by_call_p): Adjust. | |
4262 | (call_may_clobber_ref_p_1): Be more precise tracking clobbered | |
4263 | ranges for builtin functions. | |
4264 | * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare. | |
4265 | ||
e85122be AM |
4266 | 2009-08-30 Alan Modra <amodra@bigpond.net.au> |
4267 | ||
4268 | PR target/41081 | |
4269 | * fwprop.c (get_reg_use_in): Delete. | |
4270 | (free_load_extend): New function. | |
4271 | (forward_propagate_subreg): Use it. | |
4272 | ||
2d606e03 KK |
4273 | 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org> |
4274 | ||
4275 | * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf. | |
4276 | ||
ce557b74 KT |
4277 | 2009-08-29 Kai Tietz<kai.tietz@onevision.com> |
4278 | ||
d1eda136 L |
4279 | PR/41184 |
4280 | * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for | |
4281 | padding. | |
ce557b74 | 4282 | |
6d83cb32 DR |
4283 | 2009-08-29 Douglas B Rupp <rupp@gnat.com> |
4284 | ||
4285 | * crtstuff.c (__do_global_dtors_aux): Use atexit if no | |
4286 | fini or fini_array section. | |
4287 | ||
211694b6 SP |
4288 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4289 | ||
4290 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
4291 | pbb_remove_duplicate_pdrs. | |
4292 | * graphite-poly.c (can_collapse_pdr): Removed. | |
4293 | (pdr_find_duplicate): Removed. | |
4294 | (can_collapse_pdrs): New. | |
4295 | (pbb_remove_duplicate_pdrs): New. | |
4296 | (new_poly_dr): Do not look for duplicates. | |
4297 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
4298 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
4299 | (pbb_remove_duplicate_pdrs): Declared. | |
4300 | ||
7bd2a8a7 SP |
4301 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4302 | ||
4303 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
4304 | the strides by multiplying by PDR_NB_REFS. | |
4305 | * graphite-poly.c (can_collapse_pdr): New. | |
4306 | (pdr_find_duplicate): New. | |
4307 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
4308 | Initialize PDR_NB_REFS. | |
4309 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
4310 | (PDR_NB_REFS): New. | |
4311 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
4312 | ||
93b2db87 SP |
4313 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4314 | ||
4315 | PR middle-end/40965 | |
4316 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
4317 | any transform. | |
4318 | ||
d8eeb078 SP |
4319 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4320 | ||
4321 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
4322 | for read-read dependence relations. | |
4323 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
4324 | (pdr_read_p): New. | |
4325 | (pdr_write_p): New. | |
4326 | (pdr_may_write_p): New. | |
4327 | ||
e6dec0fb SP |
4328 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4329 | ||
4330 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
4331 | (struct poly_dr): Same. | |
4332 | (new_poly_dr): Same. | |
4333 | * graphite-poly.c (new_poly_dr): Same. | |
4334 | * graphite-dependences.c (dot_deps): Disable call to system. | |
4335 | ||
3ff4c25d CC |
4336 | 2009-08-28 Cary Coutant <ccoutant@google.com> |
4337 | ||
4338 | PR debug/41063 | |
4339 | * dwarf2out.c (gen_type_die_with_usage): Use proper context for | |
4340 | struct/union/enum types local to a function. | |
4341 | ||
baf4b881 KT |
4342 | 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
4343 | Sebastian Pop <sebastian.pop@amd.com> | |
4344 | ||
4345 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
4346 | pbb_strip_mine_time_depth. Changed the implementation so that | |
4347 | transformation is expressed as a transformation on | |
4348 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
4349 | scheduling format is preserved. | |
4350 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
4351 | iteration number of a given time (scattering) dimension, | |
4352 | and not on a original loop depth dimension. | |
4353 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
4354 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
4355 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
4356 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
4357 | (pbb_nb_dynamic_scattering_transform): New. | |
4358 | (psct_dynamic_dim): New. | |
4359 | ||
059a5f9f KT |
4360 | 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
4361 | ||
4362 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
4363 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
4364 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
4365 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
4366 | (memory_stride_in_loop): Same. | |
4367 | ||
afae0207 SP |
4368 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4369 | ||
4370 | * graphite-dependences.c (pddr_original_scattering): New. | |
4371 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
4372 | (dot_deps_1): New. | |
4373 | (dot_deps): New. | |
4374 | * graphite-dependences.h (dot_deps): Declared. | |
4375 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
4376 | (print_pdr): Print PDR_ID. | |
4377 | * graphite-poly.h (struct poly_dr): Add field id. | |
4378 | (PDR_ID): New. | |
4379 | (pbb_index): New. | |
4380 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
4381 | ||
f8e0bb8b SP |
4382 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4383 | ||
4384 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
4385 | not delete the original dependence relation. | |
4386 | ||
e37f165f SP |
4387 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4388 | ||
4389 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
4390 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
4391 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
4392 | (free_poly_ddr): New. | |
4393 | (pddr_is_empty): New. | |
4394 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
4395 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
4396 | Remove fprintfs. | |
4397 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
4398 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
4399 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
4400 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
4401 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
4402 | (PDRP_SINK): Renamed PDDR_SINK. | |
4403 | (PDRP_DDP): Renamed PDDR_DDP. | |
4404 | (PDDR_KIND): New. | |
4405 | (free_poly_ddr): Declared. | |
4406 | * graphite-poly.c (new_scop): Use the new hash function names. | |
4407 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
4408 | into original_pddrs. | |
4409 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
4410 | ||
45e76e9f SP |
4411 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4412 | ||
4413 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
4414 | bounds with LT_EXPR to make niter analysis more precise on code | |
4415 | generated by Graphite. | |
4416 | ||
66b466c3 SP |
4417 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
4418 | ||
4419 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
4420 | (graphite_legal_transform_bb): Same. | |
4421 | (poly_drs_may_alias_p): Same. | |
4422 | ||
81fa17da RG |
4423 | 2009-08-28 Richard Guenther <rguenther@suse.de> |
4424 | ||
4425 | * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS. | |
4426 | ||
a858e912 JB |
4427 | 2009-08-28 Jan Beulich <jbeulich@novell.com> |
4428 | ||
4429 | * config/i386/netware.c: Include langhooks.h. | |
4430 | (i386_nlm_encode_section_info): Simplify. | |
4431 | (netware_override_options): Delete. | |
4432 | * config/i386/netware.h (netware_override_options): Delete | |
4433 | declaration. | |
4434 | (OVERRIDE_OPTIONS): Delete definition. | |
4435 | (SUBTARGET_OVERRIDE_OPTIONS): Define. | |
4436 | (ASM_COMMENT_START): Define. | |
4437 | * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define. | |
4438 | ||
39ba7b7d JB |
4439 | 2009-08-28 Jan Beulich <jbeulich@novell.com> |
4440 | ||
4441 | * configure.ac: For in-tree ld, do a plain version check to | |
4442 | determine whether comdat groups are supported. | |
4443 | * configure: Regenerate. | |
4444 | ||
7e49a4b3 OH |
4445 | 2009-08-28 Olivier Hainque <hainque@adacore.com> |
4446 | ||
4447 | * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro, | |
4448 | always defined. Reflect definition or absence of such for | |
4449 | COLLECT_EXPORT_LIST. Readability helper. | |
4450 | (scanfilter): New enum, to help control what symbols | |
4451 | are to be considered or ignored by scan_prog_file. | |
4452 | (enum pass): Rename as "scanpass", moved together with scanfilter | |
4453 | prior to scan_prog_file's prototype. | |
4454 | (scan_prog_file): Accept and honor scanpass and scanfilter arguments. | |
4455 | Group prototype with the scanpass/scanfilter definitions, factorize | |
4456 | head comments for the several implementations at the prototype. | |
4457 | (main): Reorganize the first pass link control to let AIX | |
4458 | drag only the needed frame tables in executables. Prevent | |
4459 | frame tables collection during the scan aimed at static ctors. | |
4460 | Pre-link and scan for frame tables later to compensate. | |
4461 | * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro. | |
4462 | A C statement to issue assembly directives that create a reference | |
4463 | to the given DWARF table identifier label from the current function | |
4464 | section. | |
4465 | * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument | |
4466 | to differentiate first time section entry. Only emit a .data | |
4467 | tables start identifier label the first time around. | |
4468 | (switch_to_frame_table_section): New function. Helper for | |
4469 | output_call_frame_info to switch possibly BACK into the eh_frame | |
4470 | or the debug_frame section depending on FOR_EH. | |
4471 | (output_call_frame_info): Use helper to first enter the proper | |
4472 | frame section. | |
4473 | (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to | |
4474 | emit a link to the frame table start label from each function | |
4475 | section. | |
4476 | * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref): | |
4477 | New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF. | |
4478 | * config/rs6000/rs6000-protos.h: Declare it. | |
4479 | * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define. | |
4480 | ||
a7d6f306 KK |
4481 | 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org> |
4482 | ||
4483 | * config/sh/sh.c (split_branches): Check the result of | |
4484 | next_active_insn. | |
4485 | ||
715fda99 SE |
4486 | 2009-08-27 Steve Ellcey <sje@cup.hp.com> |
4487 | ||
4488 | * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when | |
4489 | using -pthread -fopenmp | |
4490 | ||
2711df18 GP |
4491 | 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com> |
4492 | ||
4493 | * doc/service.texi (service directory): Update URL. | |
4494 | ||
2b3b22d3 UB |
4495 | 2009-08-27 Uros Bizjak <ubizjak@gmail.com> |
4496 | ||
4497 | PR rtl-optimization/40861 | |
4498 | * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to | |
4499 | extract word from a multi-word subreg for negative byte positions. | |
4500 | ||
30ed9d3d TG |
4501 | 2009-08-27 Tristan Gingold <gingold@adacore.com> |
4502 | Douglas B Rupp <rupp@gnat.com> | |
4503 | ||
2b3b22d3 | 4504 | * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry. |
30ed9d3d TG |
4505 | (SECTION_VMS_OVERLAY): Define. |
4506 | (ia64_vms_common_object_attribute): Added. Handle the "common_object" | |
4507 | attribute. | |
4508 | (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op | |
4509 | for common_object. | |
4510 | (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for | |
4511 | common_object declarations. | |
4512 | (ia64_section_type_flags): Set section flag for common_object. | |
4513 | * config/ia64/ia64-protos.h | |
4514 | (ia64_vms_output_aligned_decl_common): Declare. | |
4515 | (ia64_vms_elf_asm_named_section): Declare. | |
4516 | ||
f994f296 MM |
4517 | 2009-08-27 Michael Matz <matz@suse.de> |
4518 | ||
4519 | * expr.c (expand_expr_real_2): New function taking exploded | |
4520 | unary or binary expression, split out from ... | |
4521 | (expand_expr_real_1): ... here. Move over all unary/binary | |
4522 | switch parts to above function, in particular these codes: | |
4523 | PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR, | |
4524 | MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR, | |
4525 | ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR, | |
4526 | FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR, | |
4527 | FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR, | |
4528 | BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR, | |
4529 | BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR, | |
4530 | LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, | |
4531 | NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, | |
4532 | UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR, | |
4533 | WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR, | |
4534 | VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR, | |
4535 | VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR, | |
4536 | VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR, | |
4537 | VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR, | |
4538 | VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR, | |
4539 | VEC_PACK_FIX_TRUNC_EXPR. | |
4540 | (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the | |
4541 | full expression. | |
4542 | ||
c6a21142 RG |
4543 | 2009-08-27 Richard Guenther <rguenther@suse.de> |
4544 | ||
4545 | * gengtype.c (main): Handle uint64_t. | |
4546 | * ipa-utils.c (get_base_var): Indent properly. | |
4547 | * tree-ssa-live.c (debug_scope_block): New function. | |
4548 | * tree-flow.h (debug_scope_block): Declare. | |
4549 | * tree-ssa-copy.c (replace_exp_1): Add vertical space. | |
4550 | * basic-block.h (enum profile_status): Rename to | |
4551 | enum profile_status_d. | |
4552 | (x_profile_status): Adjust type. | |
4553 | ||
7842a9db DS |
4554 | 2009-08-27 Dodji Seketeli <dodji@redhat.com> |
4555 | ||
d1eda136 | 4556 | PR debug/41170 |
7842a9db DS |
4557 | * dwarf2out.c (get_context_die): Declare this static function. |
4558 | (gen_type_die_with_usage): Make sure a DIE is a generated for | |
4559 | the context of a typedef. | |
4560 | ||
98f6d48a AS |
4561 | 2009-08-26 Anatoly Sokolov <aesok@post.ru> |
4562 | ||
4563 | * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack | |
4564 | switch. | |
4565 | ||
6f5a62e9 RS |
4566 | 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com> |
4567 | ||
4568 | * config/mips/mips-protos.h (mips_output_sync): Declare. | |
4569 | (mips_sync_loop_insns): Likewise. | |
4570 | (mips_output_sync_loop): Replace first two parameters with an rtx. | |
4571 | * config/mips/mips.c (mips_multi_member): New structure. | |
4572 | (mips_multi_members): New variable. | |
4573 | (mips_multi_start): New function. | |
4574 | (mips_multi_add): Likewise. | |
4575 | (mips_multi_add_insn): Likewise. | |
4576 | (mips_multi_add_label): Likewise. | |
4577 | (mips_multi_last_index): Likewise. | |
4578 | (mips_multi_copy_insn): Likewise. | |
4579 | (mips_multi_set_operand): Likewise. | |
4580 | (mips_multi_write): Likewise. | |
4581 | (mips_print_operand_punctuation): Remove '%|' and '%-'. | |
4582 | (mips_init_print_operand_punct): Update accordingly. | |
4583 | (mips_start_ll_sc_sync_block): New function. | |
4584 | (mips_end_ll_sc_sync_block): Likewise. | |
4585 | (mips_output_sync): Likewise. | |
4586 | (mips_sync_insn1_template): Likewise. | |
4587 | (mips_sync_insn2_template): Likewise. | |
4588 | (mips_get_sync_operand): Likewise. | |
4589 | (mips_process_sync_loop): Likewise. | |
4590 | (mips_output_sync_loop): Use mips_process_sync_loop. | |
4591 | (mips_sync_loop_insns): New function. | |
4592 | * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete. | |
4593 | (MIPS_COMPARE_AND_SWAP_12): Likewise. | |
4594 | (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise. | |
4595 | (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise. | |
4596 | (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise. | |
4597 | (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise. | |
4598 | (MIPS_SYNC_OLD_OP_12): Likewise. | |
4599 | (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise. | |
4600 | (MIPS_SYNC_NEW_OP_12): Likewise. | |
4601 | (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise. | |
4602 | (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise. | |
4603 | (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise. | |
4604 | (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise. | |
4605 | (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise. | |
4606 | (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise. | |
4607 | * config/mips/mips.md (sync_mem): New attribute. | |
4608 | (sync_oldval, sync_newval, sync_inclusive_mask): Likewise. | |
4609 | (sync_exclusive_mask, sync_required_oldval): Likewise. | |
4610 | (sync_insn1_op2, sync_insn1, sync_insn2): Likewise. | |
4611 | (sync_release_barrier): Likewise. | |
4612 | (length): Handle sync loops. | |
4613 | (sync): Use mips_output_sync. | |
4614 | * config/mips/sync.md (*memory_barrier): Use mips_output_sync. | |
4615 | (sync_compare_and_swap<mode>): Set the new sync_* attributes | |
4616 | and use mips_output_sync_loop. | |
4617 | (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise. | |
4618 | (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise. | |
4619 | (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise. | |
4620 | (sync_old_add<mode>, sync_old_sub<mode>): Likewise. | |
4621 | (sync_new_add<mode>, sync_new_sub<mode>): Likewise. | |
4622 | (sync_<optab><mode>, sync_old_<optab><mode>): Likewise. | |
4623 | (sync_new_<optab><mode>, sync_nand<mode>): Likewise. | |
4624 | (sync_old_nand<mode>, sync_new_nand<mode>): Likewise. | |
4625 | (sync_lock_test_and_set<mode>, test_and_set_12): Likewise. | |
4626 | ||
6b8b9e42 RG |
4627 | 2009-08-26 Richard Guenther <rguenther@suse.de> |
4628 | ||
4629 | PR middle-end/41163 | |
4630 | * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if | |
4631 | the types to not match. | |
4632 | * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR | |
4633 | verification. | |
4634 | * tree-ssa.c (useless_type_conversion_p): Conversions to | |
4635 | pointers to unprototyped functions are useless. | |
4636 | ||
bacd3fb6 RG |
4637 | 2009-08-26 Richard Guenther <rguenther@suse.de> |
4638 | ||
5fa162c0 CD |
4639 | * tree-ssa-structalias.c (create_variable_info_for): Remove strange |
4640 | whole-program condition, prepare to be called for non-globals. | |
bacd3fb6 RG |
4641 | (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE |
4642 | params build a representative with known type and track its fields. | |
4643 | ||
7b3d1847 UB |
4644 | 2009-08-26 Uros Bizjak <ubizjak@gmail.com> |
4645 | ||
4646 | * config/alpha/sync.md: Update comment about unpredictable LL/SC lock | |
4647 | clearing by a taken branch. | |
4648 | (sync_<fetchop_name><mode>): Split when epilogue_completed is set, | |
4649 | effectively after bbro pass. | |
4650 | (sync_nand<mode>): Ditto. | |
4651 | (sync_old_<fetchop_name><mode>): Ditto. | |
4652 | (sync_old_nand<mode>): Ditto. | |
4653 | (sync_new_<fetchop_name><mode>): Dito. | |
4654 | (sync_new_nand<mode>): Ditto. | |
4655 | (sync_compare_and_swap<mode>_1): Ditto. | |
4656 | (*sync_compare_and_swap<mode>): Ditto. | |
4657 | (sync_lock_test_and_set<mode>_1): Ditto. | |
4658 | ("sync_lock_test_and_set<mode>): Ditto. | |
4659 | ||
edb89024 DR |
4660 | 2009-08-25 Douglas B Rupp <rupp@gnat.com> |
4661 | ||
4662 | * hwint.h (HOST_LONG_FORMAT): New macro | |
4663 | * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c: | |
4664 | Use HOST_PTR_PRINTF. | |
4665 | * system.h (HOST_PTR_PRINTF): Resurrect old macro | |
4666 | * doc/hostconfig.texi (HOST_LONG_FORMAT): Document. | |
4667 | (HOST_PTR_PRINTF): Document. | |
4668 | ||
5c1a2bb1 JH |
4669 | 2009-08-25 Jan Hubicka <jh@suse.cz> |
4670 | ||
4671 | * config/i386/bmmintrin.h: Replace by #error. | |
4672 | ||
4673 | Revert: | |
4674 | Michael Meissner <michael.meissner@amd.com> | |
4675 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
4676 | Tony Linthicum <tony.linthicum@amd.com> | |
4677 | ||
4678 | * config/i386/i386.h (TARGET_SSE5): New macro for SSE5. | |
4679 | (TARGET_ROUND): New macro for the round/ptest instructions which | |
4680 | are shared between SSE4.1 and SSE5. | |
4681 | (OPTION_MASK_ISA_ROUND): Ditto. | |
4682 | (OPTION_ISA_ROUND): Ditto. | |
4683 | (TARGET_FUSED_MADD): New macro for -mfused-madd swtich. | |
4684 | (TARGET_CPU_CPP_BUILTINS): Add SSE5 support. | |
4685 | ||
4686 | * config/i386/i386.opt (-msse5): New switch for SSE5 support. | |
4687 | (-mfused-madd): New switch to give users control over whether the | |
4688 | compiler optimizes to use the multiply/add SSE5 instructions. | |
4689 | ||
4690 | * config/i386/i386.c (enum pta_flags): Add PTA_SSE5. | |
4691 | (ix86_handle_option): Turn off 3dnow if -msse5. | |
4692 | (override_options): Add SSE5 support. | |
4693 | (print_operand): %Y prints comparison codes for SSE5 com/pcom | |
4694 | instructions. | |
4695 | (ix86_expand_sse_movcc): Add SSE5 support. | |
4696 | (ix86_expand_sse5_unpack): New function to use pperm to unpack a | |
4697 | vector type to the next largest size. | |
4698 | (ix86_expand_sse5_pack): New function to use pperm to pack a | |
4699 | vector type to the next smallest size. | |
4700 | (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic. | |
4701 | (IX86_BUILTIN_FMADDSD): Ditto. | |
4702 | (IX86_BUILTIN_FMADDPS): Ditto. | |
4703 | (IX86_BUILTIN_FMADDPD): Ditto. | |
4704 | (IX86_BUILTIN_FMSUBSS): Ditto. | |
4705 | (IX86_BUILTIN_FMSUBSD): Ditto. | |
4706 | (IX86_BUILTIN_FMSUBPS): Ditto. | |
4707 | (IX86_BUILTIN_FMSUBPD): Ditto. | |
4708 | (IX86_BUILTIN_FNMADDSS): Ditto. | |
4709 | (IX86_BUILTIN_FNMADDSD): Ditto. | |
4710 | (IX86_BUILTIN_FNMADDPS): Ditto. | |
4711 | (IX86_BUILTIN_FNMADDPD): Ditto. | |
4712 | (IX86_BUILTIN_FNMSUBSS): Ditto. | |
4713 | (IX86_BUILTIN_FNMSUBSD): Ditto. | |
4714 | (IX86_BUILTIN_FNMSUBPS): Ditto. | |
4715 | (IX86_BUILTIN_FNMSUBPD): Ditto. | |
4716 | (IX86_BUILTIN_PCMOV_V2DI): Ditto. | |
4717 | (IX86_BUILTIN_PCMOV_V4SI): Ditto. | |
4718 | (IX86_BUILTIN_PCMOV_V8HI): Ditto. | |
4719 | (IX86_BUILTIN_PCMOV_V16QI): Ditto. | |
4720 | (IX86_BUILTIN_PCMOV_V4SF): Ditto. | |
4721 | (IX86_BUILTIN_PCMOV_V2DF): Ditto. | |
4722 | (IX86_BUILTIN_PPERM): Ditto. | |
4723 | (IX86_BUILTIN_PERMPS): Ditto. | |
4724 | (IX86_BUILTIN_PERMPD): Ditto. | |
4725 | (IX86_BUILTIN_PMACSSWW): Ditto. | |
4726 | (IX86_BUILTIN_PMACSWW): Ditto. | |
4727 | (IX86_BUILTIN_PMACSSWD): Ditto. | |
4728 | (IX86_BUILTIN_PMACSWD): Ditto. | |
4729 | (IX86_BUILTIN_PMACSSDD): Ditto. | |
4730 | (IX86_BUILTIN_PMACSDD): Ditto. | |
4731 | (IX86_BUILTIN_PMACSSDQL): Ditto. | |
4732 | (IX86_BUILTIN_PMACSSDQH): Ditto. | |
4733 | (IX86_BUILTIN_PMACSDQL): Ditto. | |
4734 | (IX86_BUILTIN_PMACSDQH): Ditto. | |
4735 | (IX86_BUILTIN_PMADCSSWD): Ditto. | |
4736 | (IX86_BUILTIN_PMADCSWD): Ditto. | |
4737 | (IX86_BUILTIN_PHADDBW): Ditto. | |
4738 | (IX86_BUILTIN_PHADDBD): Ditto. | |
4739 | (IX86_BUILTIN_PHADDBQ): Ditto. | |
4740 | (IX86_BUILTIN_PHADDWD): Ditto. | |
4741 | (IX86_BUILTIN_PHADDWQ): Ditto. | |
4742 | (IX86_BUILTIN_PHADDDQ): Ditto. | |
4743 | (IX86_BUILTIN_PHADDUBW): Ditto. | |
4744 | (IX86_BUILTIN_PHADDUBD): Ditto. | |
4745 | (IX86_BUILTIN_PHADDUBQ): Ditto. | |
4746 | (IX86_BUILTIN_PHADDUWD): Ditto. | |
4747 | (IX86_BUILTIN_PHADDUWQ): Ditto. | |
4748 | (IX86_BUILTIN_PHADDUDQ): Ditto. | |
4749 | (IX86_BUILTIN_PHSUBBW): Ditto. | |
4750 | (IX86_BUILTIN_PHSUBWD): Ditto. | |
4751 | (IX86_BUILTIN_PHSUBDQ): Ditto. | |
4752 | (IX86_BUILTIN_PROTB): Ditto. | |
4753 | (IX86_BUILTIN_PROTW): Ditto. | |
4754 | (IX86_BUILTIN_PROTD): Ditto. | |
4755 | (IX86_BUILTIN_PROTQ): Ditto. | |
4756 | (IX86_BUILTIN_PROTB_IMM): Ditto. | |
4757 | (IX86_BUILTIN_PROTW_IMM): Ditto. | |
4758 | (IX86_BUILTIN_PROTD_IMM): Ditto. | |
4759 | (IX86_BUILTIN_PROTQ_IMM): Ditto. | |
4760 | (IX86_BUILTIN_PSHLB): Ditto. | |
4761 | (IX86_BUILTIN_PSHLW): Ditto. | |
4762 | (IX86_BUILTIN_PSHLD): Ditto. | |
4763 | (IX86_BUILTIN_PSHLQ): Ditto. | |
4764 | (IX86_BUILTIN_PSHAB): Ditto. | |
4765 | (IX86_BUILTIN_PSHAW): Ditto. | |
4766 | (IX86_BUILTIN_PSHAD): Ditto. | |
4767 | (IX86_BUILTIN_PSHAQ): Ditto. | |
4768 | (IX86_BUILTIN_FRCZSS): Ditto. | |
4769 | (IX86_BUILTIN_FRCZSD): Ditto. | |
4770 | (IX86_BUILTIN_FRCZPS): Ditto. | |
4771 | (IX86_BUILTIN_FRCZPD): Ditto. | |
4772 | (IX86_BUILTIN_CVTPH2PS): Ditto. | |
4773 | (IX86_BUILTIN_CVTPS2PH): Ditto. | |
4774 | (IX86_BUILTIN_COMEQSS): Ditto. | |
4775 | (IX86_BUILTIN_COMNESS): Ditto. | |
4776 | (IX86_BUILTIN_COMLTSS): Ditto. | |
4777 | (IX86_BUILTIN_COMLESS): Ditto. | |
4778 | (IX86_BUILTIN_COMGTSS): Ditto. | |
4779 | (IX86_BUILTIN_COMGESS): Ditto. | |
4780 | (IX86_BUILTIN_COMUEQSS): Ditto. | |
4781 | (IX86_BUILTIN_COMUNESS): Ditto. | |
4782 | (IX86_BUILTIN_COMULTSS): Ditto. | |
4783 | (IX86_BUILTIN_COMULESS): Ditto. | |
4784 | (IX86_BUILTIN_COMUGTSS): Ditto. | |
4785 | (IX86_BUILTIN_COMUGESS): Ditto. | |
4786 | (IX86_BUILTIN_COMORDSS): Ditto. | |
4787 | (IX86_BUILTIN_COMUNORDSS): Ditto. | |
4788 | (IX86_BUILTIN_COMFALSESS): Ditto. | |
4789 | (IX86_BUILTIN_COMTRUESS): Ditto. | |
4790 | (IX86_BUILTIN_COMEQSD): Ditto. | |
4791 | (IX86_BUILTIN_COMNESD): Ditto. | |
4792 | (IX86_BUILTIN_COMLTSD): Ditto. | |
4793 | (IX86_BUILTIN_COMLESD): Ditto. | |
4794 | (IX86_BUILTIN_COMGTSD): Ditto. | |
4795 | (IX86_BUILTIN_COMGESD): Ditto. | |
4796 | (IX86_BUILTIN_COMUEQSD): Ditto. | |
4797 | (IX86_BUILTIN_COMUNESD): Ditto. | |
4798 | (IX86_BUILTIN_COMULTSD): Ditto. | |
4799 | (IX86_BUILTIN_COMULESD): Ditto. | |
4800 | (IX86_BUILTIN_COMUGTSD): Ditto. | |
4801 | (IX86_BUILTIN_COMUGESD): Ditto. | |
4802 | (IX86_BUILTIN_COMORDSD): Ditto. | |
4803 | (IX86_BUILTIN_COMUNORDSD): Ditto. | |
4804 | (IX86_BUILTIN_COMFALSESD): Ditto. | |
4805 | (IX86_BUILTIN_COMTRUESD): Ditto. | |
4806 | (IX86_BUILTIN_COMEQPS): Ditto. | |
4807 | (IX86_BUILTIN_COMNEPS): Ditto. | |
4808 | (IX86_BUILTIN_COMLTPS): Ditto. | |
4809 | (IX86_BUILTIN_COMLEPS): Ditto. | |
4810 | (IX86_BUILTIN_COMGTPS): Ditto. | |
4811 | (IX86_BUILTIN_COMGEPS): Ditto. | |
4812 | (IX86_BUILTIN_COMUEQPS): Ditto. | |
4813 | (IX86_BUILTIN_COMUNEPS): Ditto. | |
4814 | (IX86_BUILTIN_COMULTPS): Ditto. | |
4815 | (IX86_BUILTIN_COMULEPS): Ditto. | |
4816 | (IX86_BUILTIN_COMUGTPS): Ditto. | |
4817 | (IX86_BUILTIN_COMUGEPS): Ditto. | |
4818 | (IX86_BUILTIN_COMORDPS): Ditto. | |
4819 | (IX86_BUILTIN_COMUNORDPS): Ditto. | |
4820 | (IX86_BUILTIN_COMFALSEPS): Ditto. | |
4821 | (IX86_BUILTIN_COMTRUEPS): Ditto. | |
4822 | (IX86_BUILTIN_COMEQPD): Ditto. | |
4823 | (IX86_BUILTIN_COMNEPD): Ditto. | |
4824 | (IX86_BUILTIN_COMLTPD): Ditto. | |
4825 | (IX86_BUILTIN_COMLEPD): Ditto. | |
4826 | (IX86_BUILTIN_COMGTPD): Ditto. | |
4827 | (IX86_BUILTIN_COMGEPD): Ditto. | |
4828 | (IX86_BUILTIN_COMUEQPD): Ditto. | |
4829 | (IX86_BUILTIN_COMUNEPD): Ditto. | |
4830 | (IX86_BUILTIN_COMULTPD): Ditto. | |
4831 | (IX86_BUILTIN_COMULEPD): Ditto. | |
4832 | (IX86_BUILTIN_COMUGTPD): Ditto. | |
4833 | (IX86_BUILTIN_COMUGEPD): Ditto. | |
4834 | (IX86_BUILTIN_COMORDPD): Ditto. | |
4835 | (IX86_BUILTIN_COMUNORDPD): Ditto. | |
4836 | (IX86_BUILTIN_COMFALSEPD): Ditto. | |
4837 | (IX86_BUILTIN_COMTRUEPD): Ditto. | |
4838 | (IX86_BUILTIN_PCOMEQUB): Ditto. | |
4839 | (IX86_BUILTIN_PCOMNEUB): Ditto. | |
4840 | (IX86_BUILTIN_PCOMLTUB): Ditto. | |
4841 | (IX86_BUILTIN_PCOMLEUB): Ditto. | |
4842 | (IX86_BUILTIN_PCOMGTUB): Ditto. | |
4843 | (IX86_BUILTIN_PCOMGEUB): Ditto. | |
4844 | (IX86_BUILTIN_PCOMFALSEUB): Ditto. | |
4845 | (IX86_BUILTIN_PCOMTRUEUB): Ditto. | |
4846 | (IX86_BUILTIN_PCOMEQUW): Ditto. | |
4847 | (IX86_BUILTIN_PCOMNEUW): Ditto. | |
4848 | (IX86_BUILTIN_PCOMLTUW): Ditto. | |
4849 | (IX86_BUILTIN_PCOMLEUW): Ditto. | |
4850 | (IX86_BUILTIN_PCOMGTUW): Ditto. | |
4851 | (IX86_BUILTIN_PCOMGEUW): Ditto. | |
4852 | (IX86_BUILTIN_PCOMFALSEUW): Ditto. | |
4853 | (IX86_BUILTIN_PCOMTRUEUW): Ditto. | |
4854 | (IX86_BUILTIN_PCOMEQUD): Ditto. | |
4855 | (IX86_BUILTIN_PCOMNEUD): Ditto. | |
4856 | (IX86_BUILTIN_PCOMLTUD): Ditto. | |
4857 | (IX86_BUILTIN_PCOMLEUD): Ditto. | |
4858 | (IX86_BUILTIN_PCOMGTUD): Ditto. | |
4859 | (IX86_BUILTIN_PCOMGEUD): Ditto. | |
4860 | (IX86_BUILTIN_PCOMFALSEUD): Ditto. | |
4861 | (IX86_BUILTIN_PCOMTRUEUD): Ditto. | |
4862 | (IX86_BUILTIN_PCOMEQUQ): Ditto. | |
4863 | (IX86_BUILTIN_PCOMNEUQ): Ditto. | |
4864 | (IX86_BUILTIN_PCOMLTUQ): Ditto. | |
4865 | (IX86_BUILTIN_PCOMLEUQ): Ditto. | |
4866 | (IX86_BUILTIN_PCOMGTUQ): Ditto. | |
4867 | (IX86_BUILTIN_PCOMGEUQ): Ditto. | |
4868 | (IX86_BUILTIN_PCOMFALSEUQ): Ditto. | |
4869 | (IX86_BUILTIN_PCOMTRUEUQ): Ditto. | |
4870 | (IX86_BUILTIN_PCOMEQB): Ditto. | |
4871 | (IX86_BUILTIN_PCOMNEB): Ditto. | |
4872 | (IX86_BUILTIN_PCOMLTB): Ditto. | |
4873 | (IX86_BUILTIN_PCOMLEB): Ditto. | |
4874 | (IX86_BUILTIN_PCOMGTB): Ditto. | |
4875 | (IX86_BUILTIN_PCOMGEB): Ditto. | |
4876 | (IX86_BUILTIN_PCOMFALSEB): Ditto. | |
4877 | (IX86_BUILTIN_PCOMTRUEB): Ditto. | |
4878 | (IX86_BUILTIN_PCOMEQW): Ditto. | |
4879 | (IX86_BUILTIN_PCOMNEW): Ditto. | |
4880 | (IX86_BUILTIN_PCOMLTW): Ditto. | |
4881 | (IX86_BUILTIN_PCOMLEW): Ditto. | |
4882 | (IX86_BUILTIN_PCOMGTW): Ditto. | |
4883 | (IX86_BUILTIN_PCOMGEW): Ditto. | |
4884 | (IX86_BUILTIN_PCOMFALSEW): Ditto. | |
4885 | (IX86_BUILTIN_PCOMTRUEW): Ditto. | |
4886 | (IX86_BUILTIN_PCOMEQD): Ditto. | |
4887 | (IX86_BUILTIN_PCOMNED): Ditto. | |
4888 | (IX86_BUILTIN_PCOMLTD): Ditto. | |
4889 | (IX86_BUILTIN_PCOMLED): Ditto. | |
4890 | (IX86_BUILTIN_PCOMGTD): Ditto. | |
4891 | (IX86_BUILTIN_PCOMGED): Ditto. | |
4892 | (IX86_BUILTIN_PCOMFALSED): Ditto. | |
4893 | (IX86_BUILTIN_PCOMTRUED): Ditto. | |
4894 | (IX86_BUILTIN_PCOMEQQ): Ditto. | |
4895 | (IX86_BUILTIN_PCOMNEQ): Ditto. | |
4896 | (IX86_BUILTIN_PCOMLTQ): Ditto. | |
4897 | (IX86_BUILTIN_PCOMLEQ): Ditto. | |
4898 | (IX86_BUILTIN_PCOMGTQ): Ditto. | |
4899 | (IX86_BUILTIN_PCOMGEQ): Ditto. | |
4900 | (IX86_BUILTIN_PCOMFALSEQ): Ditto. | |
4901 | (IX86_BUILTIN_PCOMTRUEQ): Ditto. | |
4902 | (enum multi_arg_type): New enum for describing the various SSE5 | |
4903 | intrinsic argument types. | |
4904 | (bdesc_multi_arg): New table for SSE5 intrinsics. | |
4905 | (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support. | |
4906 | (ix86_expand_multi_arg_builtin): New function for creating SSE5 | |
4907 | intrinsics. | |
4908 | (ix86_expand_builtin): Add SSE5 intrinsic support. | |
4909 | (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4 | |
4910 | operand instructions. | |
4911 | (ix86_expand_sse5_multiple_memory): New function to split the | |
4912 | second memory reference from SSE5 instructions. | |
4913 | (type_has_variadic_args_p): Delete in favor of stdarg_p. | |
4914 | (ix86_return_pops_args): Use stdarg_p to determine if the function | |
4915 | has variable arguments. | |
4916 | (ix86_setup_incoming_varargs): Ditto. | |
4917 | (x86_this_parameter): Ditto. | |
4918 | ||
4919 | * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add | |
4920 | declaration. | |
4921 | (ix86_expand_sse5_pack): Ditto. | |
4922 | (ix86_sse5_valid_op_p): Ditto. | |
4923 | (ix86_expand_sse5_multiple_memory): Ditto. | |
4924 | ||
4925 | * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC | |
4926 | constant for SSE5 support. | |
4927 | (UNSPEC_SSE5_UNSIGNED_CMP): Ditto. | |
4928 | (UNSPEC_SSE5_TRUEFALSE): Ditto. | |
4929 | (UNSPEC_SSE5_PERMUTE): Ditto. | |
4930 | (UNSPEC_SSE5_ASHIFT): Ditto. | |
4931 | (UNSPEC_SSE5_LSHIFT): Ditto. | |
4932 | (UNSPEC_FRCZ): Ditto. | |
4933 | (UNSPEC_CVTPH2PS): Ditto. | |
4934 | (UNSPEC_CVTPS2PH): Ditto. | |
4935 | (PCOM_FALSE): Add new constant for true/false SSE5 comparisons. | |
4936 | (PCOM_TRUE): Ditto. | |
4937 | (COM_FALSE_S): Ditto. | |
4938 | (COM_FALSE_P): Ditto. | |
4939 | (COM_TRUE_S): Ditto. | |
4940 | (COM_TRUE_P): Ditto. | |
4941 | (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types. | |
4942 | (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg | |
4943 | types. | |
4944 | (memory attribute): Ditto. | |
4945 | (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4946 | Use SSE4_1_ROUND_* constants instead of hard coded numbers. | |
4947 | (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4948 | (floor<mode>2): Ditto. | |
4949 | (ceil<mode>2): Ditto. | |
4950 | (btrunc<mode>2): Ditto. | |
4951 | (nearbyintdf2): Ditto. | |
4952 | (nearbyintsf2): Ditto. | |
4953 | (sse_setccsf): Disable if SSE5. | |
4954 | (sse_setccdf): Ditto. | |
4955 | (sse5_setcc<mode>): New support for SSE5 conditional move. | |
4956 | (sse5_pcmov_<mode>): Ditto. | |
4957 | ||
4958 | * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5. | |
4959 | (SSEMODEF4): Ditto. | |
4960 | (SSEMODEF2P): Ditto. | |
4961 | (ssemodesuffixf4): New mode attribute for SSE5. | |
4962 | (ssemodesuffixf2s): Ditto. | |
4963 | (ssemodesuffixf2c): Ditto. | |
4964 | (sserotatemax): Ditto. | |
4965 | (ssescalarmode): Ditto. | |
4966 | (sse_maskcmpv4sf3): Disable if SSE5. | |
4967 | (sse_maskcmpv2df3): Ditto. | |
4968 | (sse_vmmaskcmpv4sf3): Ditto. | |
2b3b22d3 | 4969 | (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions. |
5c1a2bb1 JH |
4970 | (sse5_vmfmadd<mode>4): Ditto. |
4971 | (sse5_fmsub<mode>4): Ditto. | |
4972 | (sse5_vmfmsub<mode>4): Ditto. | |
4973 | (sse5_fnmadd<mode>4): Ditto. | |
4974 | (sse5_vmfnmadd<mode>4): Ditto. | |
4975 | (sse5_fnmsub<mode>4): Ditto. | |
4976 | (sse5_vmfnmsub<mode>4): Ditto. | |
4977 | (sse5i_fmadd<mode>4): Ditto. | |
4978 | (sse5i_fmsub<mode>4): Ditto. | |
4979 | (sse5i_fnmadd<mode>4): Ditto. | |
4980 | (sse5i_fnmsub<mode>4): Ditto. | |
4981 | (sse5i_vmfmadd<mode>4): Ditto. | |
4982 | (sse5i_vmfmsub<mode>4): Ditto. | |
4983 | (sse5i_vmfnmadd<mode>4): Ditto. | |
4984 | (sse5i_vmfnmsub<mode>4): Ditto. | |
4985 | (mulv16qi3): Add SSE5 support. | |
4986 | (mulv4si3): Ditto. | |
4987 | (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5. | |
4988 | (sse2_mulv4si3): Disable if SSE5. | |
4989 | (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4990 | (sse4_1_roundps): Ditto. | |
4991 | (sse4_1_roundsd): Ditto. | |
4992 | (sse4_1_roundss): Ditto. | |
4993 | (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will | |
4994 | be generated. | |
4995 | (sse_maskcmpsf3): Ditto. | |
4996 | (sse_vmmaskcmpv4sf3): Ditto. | |
4997 | (sse2_maskcmpv2df3): Ditto. | |
4998 | (sse2_maskcmpdf3): Ditto. | |
4999 | (sse2_vmmaskcmpv2df3): Ditto. | |
5000 | (sse2_eq<mode>3): Ditto. | |
5001 | (sse2_gt<mode>3): Ditto. | |
5002 | (sse5_pcmov_<mode>): Add SSE5 support. | |
5003 | (vec_unpacku_hi_v16qi): Ditto. | |
5004 | (vec_unpacks_hi_v16qi): Ditto. | |
5005 | (vec_unpacku_lo_v16qi): Ditto. | |
5006 | (vec_unpacks_lo_v16qi): Ditto. | |
5007 | (vec_unpacku_hi_v8hi): Ditto. | |
5008 | (vec_unpacks_hi_v8hi): Ditto. | |
5009 | (vec_unpacku_lo_v8hi): Ditto. | |
5010 | (vec_unpacks_lo_v8hi): Ditto. | |
5011 | (vec_unpacku_hi_v4si): Ditto. | |
5012 | (vec_unpacks_hi_v4si): Ditto. | |
5013 | (vec_unpacku_lo_v4si): Ditto. | |
5014 | (vec_unpacks_lo_v4si): Ditto. | |
5015 | (sse5_pmacsww): New SSE5 intrinsic insn. | |
5016 | (sse5_pmacssww): Ditto. | |
5017 | (sse5_pmacsdd): Ditto. | |
5018 | (sse5_pmacssdd): Ditto. | |
5019 | (sse5_pmacssdql): Ditto. | |
5020 | (sse5_pmacssdqh): Ditto. | |
5021 | (sse5_pmacsdqh): Ditto. | |
5022 | (sse5_pmacsswd): Ditto. | |
5023 | (sse5_pmacswd): Ditto. | |
5024 | (sse5_pmadcsswd): Ditto. | |
5025 | (sse5_pmadcswd): Ditto. | |
5026 | (sse5_pcmov_<move>): Conditional move support on SSE5. | |
5027 | (sse5_phaddbw): New SSE5 intrinsic insn. | |
5028 | (sse5_phaddbd): Ditto. | |
5029 | (sse5_phaddbq): Ditto. | |
5030 | (sse5_phaddwd): Ditto. | |
5031 | (sse5_phaddwq): Ditto. | |
5032 | (sse5_phadddq): Ditto. | |
5033 | (sse5_phaddubw): Ditto. | |
5034 | (sse5_phaddubd): Ditto. | |
5035 | (sse5_phaddubq): Ditto. | |
5036 | (sse5_phadduwd): Ditto. | |
5037 | (sse5_phadduwq): Ditto. | |
5038 | (sse5_phaddudq): Ditto. | |
5039 | (sse5_phsubbw): Ditto. | |
5040 | (sse5_phsubwd): Ditto. | |
5041 | (sse5_phsubdq): Ditto. | |
5042 | (sse5_pperm): Ditto. | |
5043 | (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5. | |
5044 | (sse5_pperm_zero_v16qi_v8hi): Ditto. | |
5045 | (sse5_pperm_sign_v8hi_v4si): Ditto. | |
5046 | (sse5_pperm_zero_v8hi_v4si): Ditto. | |
5047 | (sse5_pperm_sign_v4si_v2di): Ditto. | |
5048 | (sse5_pperm_sign_v4si_v2di): Ditto. | |
5049 | (sse5_pperm_pack_v2di_v4si): Ditto. | |
5050 | (sse5_pperm_pack_v4si_v8hi): Ditto. | |
5051 | (sse5_pperm_pack_v8hi_v16qi): Ditto. | |
5052 | (sse5_perm<mode>): New SSE5 intrinsic insn. | |
5053 | (rotl<mode>3): Ditto. | |
5054 | (sse5_rotl<mode>3): Ditto. | |
5055 | (sse5_ashl<mode>3): Ditto. | |
5056 | (sse5_lshl<mode>3): Ditto. | |
5057 | (sse5_frcz<mode>2): Ditto. | |
5058 | (sse5s_frcz<mode>2): Ditto. | |
5059 | (sse5_cvtph2ps): Ditto. | |
5060 | (sse5_cvtps2ph): Ditto. | |
5061 | (sse5_vmmaskcmp<mode>3): Ditto. | |
5062 | (sse5_com_tf<mode>3): Ditto. | |
5063 | (sse5_maskcmp<mode>3): Ditto. | |
5064 | (sse5_maskcmp_uns<mode>3): Ditto. | |
5065 | (sse5_maskcmp_uns2<mode>3): Ditto. | |
5066 | (sse5_pcom_tf<mode>3): Ditto. | |
7b3d1847 UB |
5067 | |
5068 | * config/i386/predicates.md (sse5_comparison_float_operator): | |
5069 | New predicate to match the comparison operators supported by | |
5070 | the SSE5 com instruction. | |
5c1a2bb1 JH |
5071 | (ix86_comparison_int_operator): New predicate to match just the |
5072 | signed int comparisons. | |
5073 | (ix86_comparison_uns_operator): New predicate to match just the | |
5074 | unsigned int comparisons. | |
5075 | ||
5076 | * doc/invoke.texi (-msse5): Add documentation. | |
5077 | (-mfused-madd): Ditto. | |
5078 | ||
5079 | * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics. | |
5080 | ||
5081 | * config.gcc (i[34567]86-*-*): Include bmmintrin.h and | |
5082 | mmintrin-common.h. | |
5083 | (x86_64-*-*): Ditto. | |
5084 | ||
5085 | * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit. | |
5086 | ||
5087 | * config/i386/bmmintrin.h: New file, provide common x86 compiler | |
5088 | intrinisics for SSE5. | |
5089 | ||
5090 | * config/i386/smmintrin.h: Move instructions shared with SSE5 to | |
5091 | mmintrin-common.h. | |
5092 | ||
5093 | * config/i386/mmintrin-common.h: New file, to contain common | |
5094 | instructions between SSE4.1 and SSE5. | |
5095 | ||
5096 | * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use | |
5097 | FOREACH_FUNCTION_ARGS to iterate over the argument list. | |
5098 | (gen_regparm_prefix): Ditto. | |
5099 | ||
5100 | * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use | |
5101 | FOREACH_FUNCTION_ARGS to iterate over the argument list. Use | |
5102 | prototype_p to determine if a function is prototyped. | |
5103 | ||
f4e8a943 VV |
5104 | 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com> |
5105 | ||
5106 | * c-common.c (c_common_reswords) add the alignof keyword, | |
5107 | with same RID as __alignof and __alignof__ | |
5108 | ||
7b5cbb57 AS |
5109 | 2009-08-25 Anatoly Sokolov <aesok@post.ru> |
5110 | ||
5111 | * hooks.h (hook_bool_const_int_const_int_true): Declare. | |
5112 | * hooks.c (hook_bool_const_int_const_int_true): New function. | |
5113 | * target.h (struct gcc_target): Add can_eliminate field. | |
5114 | * target-def.h (TARGET_CAN_ELIMINATE): Define. | |
5115 | (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE. | |
5116 | * ira.c (setup_eliminable_regset): Use can_eliminate target hook. | |
5117 | * reload1.c (update_eliminables, init_elim_table): (Ditto.). | |
5118 | (elim_table): Revise comment. | |
5119 | * system.h (CAN_ELIMINATE): Poison. | |
5120 | * defaults.h (CAN_ELIMINATE): Remove. | |
5121 | * doc/tm.texi (CAN_ELIMINATE): Revise documentation. | |
5122 | ||
5123 | * config/alpha/vms.h (CAN_ELIMINATE): Remove macro. | |
5124 | * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]: | |
5125 | Define macro. | |
5126 | (alpha_vms_can_eliminate): Declare as static, change return type to | |
5127 | bool. | |
5128 | * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove. | |
5129 | ||
5130 | * config/arm/arm.h (CAN_ELIMINATE): Remove macro. | |
5131 | * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro. | |
5132 | (arm_can_eliminate): New function. | |
5133 | ||
5134 | * config/avr/avr.h (CAN_ELIMINATE): Remove macro. | |
5135 | * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro. | |
5136 | (avr_can_eliminate): Declare as static. | |
5137 | * config/avr/avr-protos.h (avr_can_eliminate): Remove. | |
5138 | ||
5139 | * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro. | |
5140 | * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro. | |
5141 | (bfin_can_eliminate): New function. | |
5142 | ||
5143 | * config/crx/crx.h (CAN_ELIMINATE): Remove macro. | |
5144 | * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro. | |
5145 | (crx_can_eliminate): New function. | |
7b3d1847 | 5146 | |
7b5cbb57 AS |
5147 | * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro. |
5148 | * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro. | |
5149 | (fr30_can_eliminate): New function. | |
5150 | ||
5151 | * config/frv/frv.h (CAN_ELIMINATE): Remove macro. | |
5152 | * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro. | |
5153 | (frv_can_eliminate): New function. | |
5154 | ||
5155 | * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro. | |
5156 | * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro. | |
5157 | (h8300_can_eliminate): New function. | |
5158 | ||
5159 | * config/i386/i386.h (CAN_ELIMINATE): Remove macro. | |
5160 | * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro. | |
5161 | (i386_can_eliminate): Declare as static, change return type to bool. | |
5162 | * config/i386/i386-protos.h (i386_can_eliminate): Remove. | |
5163 | ||
5164 | * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro. | |
5165 | * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro. | |
5166 | (ia64_can_eliminate): New function. | |
5167 | ||
5168 | * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro. | |
5169 | * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro. | |
5170 | (iq2000_can_eliminate): New function. | |
5171 | ||
5172 | * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro. | |
5173 | * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro. | |
5174 | (m32r_can_eliminate): New function. | |
5175 | ||
5176 | * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro. | |
5177 | * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro. | |
5178 | (m68hc11_can_eliminate): New function. | |
5179 | ||
5180 | * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro. | |
5181 | * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro. | |
5182 | (m68k_can_eliminate): New function. | |
5183 | ||
5184 | * config/mep/mep.h (CAN_ELIMINATE): Remove macro. | |
5185 | * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro. | |
5186 | (mep_can_eliminate): New function. | |
5187 | ||
5188 | * config/mips/mips.h (CAN_ELIMINATE): Remove macro. | |
5189 | * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro. | |
5190 | (mips_can_eliminate): New function. | |
5191 | ||
5192 | * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro. | |
5193 | * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro. | |
5194 | (rs6000_can_eliminate): New function. | |
5195 | ||
5196 | * config/s390/s390.h (CAN_ELIMINATE): Remove macro. | |
5197 | * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro. | |
5198 | (s390_can_eliminate): Declare as static. | |
5199 | * config/s390/s390-protos.h (sparc_can_eliminate): Remove. | |
5200 | ||
5201 | * config/score/score.h (CAN_ELIMINATE): Remove macro. | |
5202 | * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro. | |
5203 | (score_can_eliminate): New function. | |
5204 | ||
5205 | * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro. | |
5206 | * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro. | |
5207 | (sparc_can_eliminate): Declare as static. | |
5208 | * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove. | |
5209 | ||
5210 | * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro. | |
5211 | * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro. | |
5212 | (xstormy16_can_eliminate): New function. | |
5213 | ||
5214 | * config/v850/v850.h (CAN_ELIMINATE): Remove macro. | |
5215 | * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro. | |
5216 | (v850_can_eliminate): New function. | |
5217 | ||
e7f8fba9 UB |
5218 | 2009-08-25 Uros Bizjak <ubizjak@gmail.com> |
5219 | ||
5220 | * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove. | |
5221 | (*cmpdf_internal): Enable for all ALPHA_FPTM levels. | |
5222 | (*movdfcc_ext[1234]): Disable for IEEE mode. | |
5223 | ||
f76d6e6f EB |
5224 | 2009-08-25 Eric Botcazou <ebotcazou@adacore.com> |
5225 | ||
5226 | * gimplify.c (prepare_gimple_addressable): New static function. | |
5227 | (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking | |
5228 | it addressable. | |
5229 | (gimplify_addr_expr): Invoke it similarly on the operand instead of | |
5230 | manually fiddling with it. | |
5231 | ||
4df62c77 MM |
5232 | 2009-08-25 Michael Matz <matz@suse.de> |
5233 | ||
5234 | * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare. | |
5235 | * dojump.c (do_jump_by_parts_greater): Take two operands instead of | |
5236 | full expression. | |
5237 | (do_jump_by_parts_equality, do_compare_and_jump): Ditto. | |
5238 | (jumpifnot_1, jumpif_1): New wrappers for do_jump_1. | |
5239 | (do_jump): Split out code for simple binary comparisons into ... | |
5240 | (do_jump_1): ... this, taking the individual operands and code. | |
5241 | Change callers to helper function above accordingly. | |
5242 | * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary | |
5243 | comparisons. | |
5244 | ||
8e7aa1f9 MM |
5245 | 2009-08-25 Michael Matz <matz@suse.de> |
5246 | ||
5247 | * expr.h (struct separate_ops, sepops): New type for passing | |
5248 | around an exploded simple expression. | |
5249 | * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr): | |
5250 | Use this structure instead of expression tree. | |
5251 | (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole | |
5252 | expression, only its type. | |
5253 | (expand_vec_cond_expr): Take type and individual operands instead | |
5254 | of full expression. | |
5255 | * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr, | |
5256 | expand_vec_shift_expr): Change prototype accordingly. | |
5257 | * tree-vect-stmts.c (vectorizable_condition): Change call of | |
5258 | expand_vec_cond_expr_p to pass only type. | |
5259 | * expr.c (do_store_flags): Change prototype and implementation | |
5260 | to take an exploded expression. | |
5261 | (expand_expr_real_1): New local ops initialized with details | |
5262 | of the full expression. Use it instead of full | |
5263 | expression in calls to do_store_flags, expand_vec_cond_expr, | |
5264 | expand_widen_pattern_expr and expand_vec_shift_expr. | |
5265 | ||
b32e7cdb MM |
5266 | 2009-08-25 Michael Matz <matz@suse.de> |
5267 | ||
5268 | * expr.c (expand_expr_real_1): New local treeop0, treeop1, | |
5269 | treeop2 initialized with first three operands of the full expression. | |
5270 | Substitute all TREE_OPERAND (exp, [012]) calls with them. | |
5271 | ||
ce4a9de3 KT |
5272 | 2009-08-25 Kai Tietz <kai.tietz@onevision.com> |
5273 | ||
5274 | * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present. | |
5275 | (__gthread_objc_condition_allocate): Mark arguments as unused. | |
5276 | (__gthread_objc_condition_deallocate): Likewise. | |
5277 | (__gthread_objc_condition_wait): Likewise. | |
5278 | (__gthread_objc_condition_broadcast): Likewise. | |
5279 | (__gthread_objc_condition_signal): Likewise. | |
5280 | (__gthread_objc_thread_detach): Cast via INT_PTR to pointer. | |
5281 | (__gthread_objc_thread_id): Likewise. | |
5282 | ||
d69b8a03 JW |
5283 | 2009-08-25 Janus Weil <janus@gcc.gnu.org> |
5284 | ||
5285 | PR middle-end/41149 | |
5286 | * tree-pretty-print.c (print_call_name): Print the correct call name | |
5287 | for procedure pointer components. | |
5288 | ||
c3313412 SE |
5289 | 2009-08-24 Steve Ellcey <sje@cup.hp.com> |
5290 | ||
5291 | * config/ia64/ia64.c (ia64_promote_function_mode): Call | |
5292 | default_promote_function_mode when not VMS. | |
5293 | ||
c767899e OH |
5294 | 2009-08-24 Olivier Hainque <hainque@adacore.com> |
5295 | ||
5296 | * convert.c (convert_to_integer): Don't assume an input pointer is | |
5297 | POINTER_SIZE wide. Fetch from the type instead. | |
5298 | ||
df58e648 RW |
5299 | 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5300 | ||
5301 | * configure.ac (AC_PREREQ): Bump to 2.64. | |
5302 | ||
2ef4a8e1 RAE |
5303 | 2009-08-24 Rafael Avila de Espindola <espindola@google.com> |
5304 | ||
5305 | * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove. | |
5306 | (process_command): Don't search standard_exec_prefix_1 and | |
5307 | standard_exec_prefix_2. | |
5308 | ||
c7e9ab97 RR |
5309 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
5310 | ||
7b3d1847 UB |
5311 | * config/arm/arm.c (output_return_instruction): Handle for |
5312 | unified syntax. | |
c7e9ab97 | 5313 | |
3e2d9dcf RR |
5314 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
5315 | ||
7b3d1847 | 5316 | * config/arm/arm.c (arm_select_cc_mode): Handle subreg. |
3e2d9dcf | 5317 | |
54f52b81 RR |
5318 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
5319 | ||
7b3d1847 UB |
5320 | * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable. |
5321 | (*arm_movdf_vfp): Likewise. | |
54f52b81 | 5322 | |
d44463a9 RR |
5323 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
5324 | ||
7b3d1847 UB |
5325 | * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3. |
5326 | (vashr<mode>3): Rename from ashr<mode>3. | |
5327 | (vlshr<mode>3): Rename from lshr<mode>3. | |
d44463a9 | 5328 | |
b241b475 KT |
5329 | 2009-08-24 Kai Tietz <kai.tietz@onevision.com> |
5330 | ||
5331 | PR/40786 | |
5fa162c0 | 5332 | * c-format.c (format_wanted_type): Add new member scalar_identity_flag. |
b241b475 KT |
5333 | (check_format_info_main): Use scalar_identify_flag. |
5334 | (check_format_types): Check for scalar size identity if | |
5335 | scalar_identify_flag is set. | |
5336 | (printf_length_specs): Extend by new field. | |
5337 | (asm_fprintf_length_specs): Likewise. | |
5338 | (gcc_diag_length_specs): Likewise. | |
5339 | (scanf_length_specs): Likewise. | |
5340 | (strfmon_length_specs): Likewise. | |
5341 | (gcc_gfc_length_specs): Likewise. | |
5342 | * config/i386/msformat-c.c (ms_printf_length_specs): Likewise. | |
5343 | (ms_printf_flag_specs): Likewise. | |
5344 | * c-format.h (format_length_info): Add new member scalar_identity_flag. | |
5345 | ||
8c40d061 UB |
5346 | 2009-08-23 Uros Bizjak <ubizjak@gmail.com> |
5347 | ||
5348 | PR target/40718 | |
5349 | * config/i386/i386.c (*call_pop_1): Disable for sibling calls. | |
fe62197b | 5350 | (*call_value_pop_1): Ditto. |
8c40d061 | 5351 | (*sibcall_pop_1): New insn pattern. |
fe62197b | 5352 | (*sibcall_value_pop_1): Ditto. |
8c40d061 | 5353 | |
0aa580f4 AM |
5354 | 2009-08-23 Alan Modra <amodra@bigpond.net.au> |
5355 | ||
5356 | PR target/41081 | |
5357 | * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64, | |
5358 | ashrsi3_64): New. | |
5359 | ||
e25b7843 AM |
5360 | 2009-08-23 Alan Modra <amodra@bigpond.net.au> |
5361 | ||
5362 | PR target/41081 | |
5363 | * fwprop.c (try_fwprop_subst): Allow multiple sets. | |
5364 | (get_reg_use_in): New function. | |
5365 | (forward_propagate_subreg): Propagate through subreg of zero_extend | |
5366 | or sign_extend. | |
5367 | ||
79052be3 KK |
5368 | 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org> |
5369 | ||
5370 | * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define. | |
5371 | * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee. | |
5372 | ||
5213506e RW |
5373 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
5374 | ||
70fa0efa RW |
5375 | * configure.ac: Remove --with-datarootdir, --with-docdir, |
5376 | --with-htmldir switches. No need to call AC_SUBST for | |
5377 | datarootdir, docdir, htmldir any more. | |
5378 | * configure: Regenerate. | |
5379 | * doc/install.texi (Configuration): Document --datarootdir, | |
5380 | --docdir, --htmldir, --pdfdir; update documentation for | |
5381 | --infodir, --mandir. | |
e7f8fba9 UB |
5382 | (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11, |
5383 | M4 to 1.4.6. | |
70fa0efa | 5384 | |
5213506e RW |
5385 | * aclocal.m4: Regenerate. |
5386 | * config.in: Regenerate. | |
5387 | * configure: Regenerate. | |
5388 | ||
f2972bf8 DR |
5389 | 2009-08-21 Douglas B Rupp <rupp@gnat.com> |
5390 | Olivier Hainque <hainque@adacore.com> | |
5391 | ||
5392 | * config/ia64/ia64.c: Include libfuncs.h. | |
5393 | (TARGET_PROMOTE_FUNCITON_MODE): Define target macro. | |
5394 | (ia64_expand_call): Use reg 25 on VMS. | |
5395 | (ia64_initialize_trampoline): Fix for VMS ABI. | |
5396 | (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS. | |
5397 | (ia64_function_arg): Initialize reg 25 on VMS. | |
5398 | Fix OpenVMS ABI issues for varargs. | |
5399 | For OpenVMS, emit the Argument Information register set in the | |
5400 | incoming/sibcall case as well. | |
5401 | (ia64_arg_type): New function. | |
5402 | (ia64_function_arg_advance): Keep track of cum->words. | |
5403 | Fix OpenVMS ABI issues for varargs. | |
5404 | (ia64_function_value): On VMS, promote mode of non-aggregate types. | |
5405 | (ia64_override_options): Set flag_no_common on VMS. | |
5406 | (ia64_init_builtins): Disable FWRITE builtin. | |
5407 | (ia64_asm_output_external): Call DO_CRTL_NAMES. | |
5408 | (ia64_vms_init_libfuncs): Add decc$ routines. | |
5409 | (ia64_vms_valid_pointer_mode): New function. | |
5410 | (ia64_struct_value_rtx): Allways NULL_RTX on VMS. | |
5411 | (ia64_promote_function_mode): New function | |
5412 | * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default. | |
5413 | (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS. | |
5414 | (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise. | |
5415 | (INIT_CUMULATIVE_ARGS): Add atypes for VMS. | |
5416 | (INIT_CUMULATIVE_INCOMING_ARGS): Likewise. | |
5417 | (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit. | |
5418 | Suppress trailing '#' if VALUE is numeric. | |
5419 | * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to | |
5420 | ia64_promote_function_mode. | |
5421 | (TARGET_VALID_POINTER_MODE): Define. | |
5422 | ||
30402573 MM |
5423 | 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
5424 | ||
5425 | PR target/40671 | |
5426 | * config/rs6000/rs6000.c (rs6000_override_options): Use | |
8c40d061 | 5427 | TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers. |
30402573 MM |
5428 | |
5429 | PR target/41145 | |
5430 | * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix | |
c89f5009 | 5431 | reporting of vector + decimal/boolean/complex error. |
30402573 | 5432 | |
08ffd640 JJ |
5433 | 2009-08-21 Jakub Jelinek <jakub@redhat.com> |
5434 | ||
5435 | * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of | |
5436 | __vector double TYPE_DECL. | |
5437 | ||
46107b99 RE |
5438 | 2009-08-21 Richard Earnshaw <rearnsha@arm.com> |
5439 | ||
5440 | * arm.h (MACHMODE): New define. Include insn-modes.h if available. | |
5441 | (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode. | |
5442 | * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode | |
5443 | to pointer to enum machine_mode. Update all callers as needed. | |
5444 | ||
7450a081 UB |
5445 | 2009-08-21 Uros Bizjak <ubizjak@gmail.com> |
5446 | ||
5447 | * config/alpha/alpha.md (exception_receiver): Emit alternative | |
5448 | GP load sequence if flag_reorder_blocks_and_partition is set. | |
5449 | (*exception_receiver_2): Also enable when | |
5450 | flag_reorder_blocks_and_partition is set. | |
5451 | ||
6d383c5e MR |
5452 | 2009-08-20 Matt Rice <ratmice@gmail.com> |
5453 | Diego Novillo <dnovillo@google.com> | |
5454 | ||
5455 | * Makefile.in (PLUGIN_HEADERS): Include incpath.h and | |
5456 | tree-ssa-sccvn.h. | |
5457 | ||
29cc57cf RG |
5458 | 2009-08-20 Richard Guenther <rguenther@suse.de> |
5459 | ||
8c40d061 | 5460 | * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define. |
29cc57cf RG |
5461 | * c-tree.h (c_dup_lang_specific_decl): Remove. |
5462 | (struct lang_decl, struct lang_type): Move definitions ... | |
5463 | * c-lang.h: ... here. New file. | |
5464 | * c-decl.c: Include c-lang.h. | |
5465 | (c_dup_lang_specific_decl): Remove. | |
5466 | * c-typeck.c: Include c-lang.h. | |
5467 | * Makefile.in (c-decl.o): Add c-lang.h dependency. | |
5468 | (c-typeck.o): Likewise. | |
5469 | * c-config-lang.in (gtfiles): Add c-lang.h. | |
5470 | * gengtype.c (get_output_file_with_visibility): Handle c-lang.h | |
5471 | like c-tree.h. | |
5472 | ||
7e9f2c0f UB |
5473 | 2009-08-20 Uros Bizjak <ubizjak@gmail.com> |
5474 | ||
5475 | * config/alpha/alpha.c (alpha_end_function): Do not clear | |
5476 | crtl->emit structure and free insn locators if cfun->is_thunk is true, | |
5477 | this is now handled in generic code. | |
5478 | ||
b0f86a7e AK |
5479 | 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com> |
5480 | ||
5481 | * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro. | |
5482 | (s390_z10_fix_long_loop_prediction): New function. | |
5483 | (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg. | |
5484 | (s390_reorg): Walk over the INSNs and invoke | |
5485 | s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp. | |
5486 | ||
f1149235 AK |
5487 | 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com> |
5488 | ||
5489 | * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit", | |
5490 | "*brx_64bit", "*brx_31bit"): New patterns. | |
5491 | * config/s390/s390.c ('E'): New output modifier. | |
5492 | ||
a552b644 | 5493 | 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
7e9f2c0f | 5494 | Richard Earnshaw <richard.earnshaw@arm.com> |
a552b644 | 5495 | |
7e9f2c0f UB |
5496 | * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT. |
5497 | * config/arm/arm.md (*arm_movtas_ze): New pattern for movt. | |
a552b644 | 5498 | |
2fd74bff JDA |
5499 | 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
5500 | ||
5501 | * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New | |
5502 | patterns. | |
5503 | * pa.c (emit_move_sequence): Check if address of operand1 is valid | |
5504 | for mode mode of operand0 when doing secondary reload for SAR. | |
5505 | ||
b8e444f4 JJ |
5506 | 2009-08-19 Jakub Jelinek <jakub@redhat.com> |
5507 | ||
5508 | PR middle-end/41123 | |
5509 | * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds | |
5510 | of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT. | |
5511 | ||
6c879482 JM |
5512 | 2009-08-19 Jason Merrill <jason@redhat.com> |
5513 | ||
5514 | * doc/invoke.texi (C++ Dialect Options): Note change of minimum | |
5515 | supported template depth in C++0x. | |
5516 | ||
dc0c6451 JJ |
5517 | 2009-08-19 Jakub Jelinek <jakub@redhat.com> |
5518 | ||
5519 | * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call | |
5520 | free_after_compilation. | |
5521 | * config/score/score7.c (score7_output_mi_thunk): Likewise. | |
5522 | * config/score/score3.c (score3_output_mi_thunk): Likewise. | |
5523 | * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. | |
5524 | * config/mips/mips.c (mips_output_mi_thunk): Likewise. | |
5525 | * config/sh/sh.c (sh_output_mi_thunk): Likewise. | |
5526 | * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise. | |
5527 | * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. | |
5528 | ||
9302a061 ILT |
5529 | 2009-08-19 Ian Lance Taylor <iant@google.com> |
5530 | ||
5531 | * doc/md.texi (Insn Canonicalizations): Correct canonicalization | |
5532 | of (plus (mult (neg B) C) A). | |
5533 | ||
9600efe1 MM |
5534 | 2009-08-18 Michael Matz <matz@suse.de> |
5535 | ||
5536 | * omp-low.c (optimize_omp_library_calls): Use types_compatible_p | |
5537 | instead of comparing TYPE_MAIN_VARIANT for equality. | |
5538 | * tree-vect-patterns.c (vect_recog_dot_prod_pattern, | |
5539 | vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto. | |
5540 | * tree-vect-loop.c (vect_is_simple_reduction): Ditto. | |
5541 | * gimplify.c (goa_lhs_expr_p): Ditto and use | |
5542 | STRIP_USELESS_TYPE_CONVERSION. | |
5543 | ||
10174ddf MM |
5544 | 2009-08-18 Michael Matz <matz@suse.de> |
5545 | ||
5546 | * tree-ssa-structalias.c (create_variable_info_for): Also mark | |
5547 | first field in a struct. | |
5548 | (intra_create_variable_infos): Don't deal with flag_argument_noalias. | |
5549 | ||
e72cee90 UB |
5550 | 2009-08-18 Uros Bizjak <ubizjak@gmail.com> |
5551 | ||
5552 | * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn | |
5553 | locators before emit_insn is called. Remove assert that | |
5554 | cfun->is_thunk. | |
5555 | (alpha_end_function): Clear crtl->emit structure and free insn | |
5556 | locators if cfun->is_thunk is true. | |
5557 | ||
e31bcd1b JM |
5558 | 2009-08-18 Jason Merrill <jason@redhat.com> |
5559 | ||
5560 | * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object | |
5561 | type if available. | |
5562 | * configure.ac: Test for it. | |
5563 | * configure, config.in: Regenerate. | |
5564 | * doc/install.texi: Document --enable-gnu-unique-object. | |
5565 | ||
776e7174 RG |
5566 | 2009-08-18 Richard Guenther <rguenther@suse.de> |
5567 | ||
5568 | PR middle-end/41094 | |
5569 | * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to | |
5570 | pow(x,y*z) only if x is nonnegative. | |
5571 | ||
68a31530 JJ |
5572 | 2009-08-18 Jakub Jelinek <jakub@redhat.com> |
5573 | ||
5574 | * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump | |
5575 | on jumps. | |
5576 | ||
f3252b3c JJ |
5577 | PR target/40971 |
5578 | * config/rs6000/rs6000.c (rs6000_legitimize_address): For | |
5579 | [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000. | |
5580 | ||
65655f79 DD |
5581 | 2009-08-17 DJ Delorie <dj@redhat.com> |
5582 | ||
5583 | * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New. | |
5584 | * config/m32c/prologue.md (epilogue_freit): New. | |
5585 | (fset_b): New. | |
5586 | * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype. | |
5587 | (bank_switch_p): Likewise. | |
5588 | (fast_interrupt_p): Likewise. | |
5589 | (interrupt_p): Likewise. | |
5590 | (m32c_conditional_register_usage): Round memregs size up. | |
5591 | (need_to_save): We only need to save $a0 when we use ENTER. | |
5592 | (interrupt_p): Check for fast_interrupt too. | |
5593 | (bank_switch_p): New. | |
5594 | (fast_interrupt_p): New. | |
5595 | (m32c_attribute_table): Add bank_switch and fast_interrupt. | |
5596 | (m32c_emit_prolog): Support bank switching and fast interrupts. | |
5597 | * doc/extend.texi (Function Attributes): Add bank_switch and | |
5598 | fast_interrupt. | |
5599 | ||
dfe6ba6d DR |
5600 | 2009-08-17 Douglas B Rupp <rupp@gnat.com> |
5601 | ||
5602 | * config/alpha/alpha.c (vms_valid_pointer_mode): New function. | |
5603 | * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define. | |
5604 | ||
dcad28fd DR |
5605 | 2009-08-16 Douglas B Rupp <rupp@gnat.com> |
5606 | ||
8c40d061 | 5607 | * doc/invoke.texi (Target options): Add new option list for IA-64/VMS. |
dcad28fd DR |
5608 | (menu): Add IA-64/VMS Options. |
5609 | (IA-64/VMS Options): Likewise. | |
5610 | ||
30fff3d8 RS |
5611 | 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com> |
5612 | ||
5613 | PR target/38599 | |
5614 | * config/mips/mips.md (*lwxs): Use :P for pointer values. | |
5615 | ||
cf5fb4b0 RS |
5616 | 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com> |
5617 | ||
5618 | * config/mips/mips-protos.h (mips_push_asm_switch): New function. | |
5619 | (mips_pop_asm_switch): Likewise. | |
5620 | * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace | |
5621 | with... | |
5622 | (mips_noreorder, mips_nomacro, mips_noat): ...these new variables. | |
5623 | (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions. | |
5624 | (mips_push_asm_switch, mips_pop_asm_switch): Likewise. | |
5625 | (mips_print_operand_punctuation): Use them. Check mips_noreorder | |
5626 | instead of set_noreorder. | |
5627 | (mips_output_function_prologue): Use the new functions. | |
5628 | (mips_output_function_epilogue): Likewise. | |
5629 | (mips_need_noat_wrapper_p): New function, split out from... | |
5630 | (mips_final_prescan_insn, mips_final_postscan_insn): ...here. | |
5631 | Use mips_push_asm_switch and mips_pop_asm_switch. | |
5632 | * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch | |
5633 | and mips_pop_asm_switch. | |
5634 | (ASM_OUTPUT_REG_POP): Likewise. | |
5635 | (DBR_OUTPUT_SEQEND): Remove boilerplate comment. | |
5636 | Use mips_pop_asm_switch. | |
5637 | (mips_asm_switch): New structure. | |
5638 | (set_noreorder, set_nomacro): Replace with... | |
5639 | (mips_noreorder, mips_nomacro, mips_noat): ...these new variables. | |
5640 | * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro | |
5641 | instead of set_nomacro. | |
5642 | (fix_truncsfsi2_macro): Likewise. | |
5643 | (cprestore): Likewise. | |
5644 | (hazard): Use mips_noreorder instead of set_noreorder. | |
5645 | * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h. | |
5646 | ||
3eb96d01 UB |
5647 | 2009-08-16 Uros Bizjak <ubizjak@gmail.com> |
5648 | ||
8a067ce4 | 5649 | * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned |
3eb96d01 UB |
5650 | from prev_active_insn. |
5651 | ||
164709cf AS |
5652 | 2009-08-16 Anatoly Sokolov <aesok@post.ru> |
5653 | ||
5654 | * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros. | |
5655 | * config/avr/avr.c (avr_override_options): Initialize | |
5656 | avr_current_arch variable. | |
5657 | (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or | |
5658 | __AVR_HAVE_16BIT_SP__ according to the device type. | |
5659 | (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of | |
5660 | TARGET_TINY_STACK. | |
5661 | (expand_epilogue): Use correct QI mode frame pointer for tiny stack. | |
5662 | Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK. | |
5663 | ||
5782bb7a DS |
5664 | 2009-08-16 Dodji Seketeli <dodji@redhat.com> |
5665 | ||
52ac997d | 5666 | PR debug/37801 |
5782bb7a DS |
5667 | * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on |
5668 | generating inlined subroutine die only. We shouldn't be | |
5669 | called for anything else. | |
5670 | (gen_block_die): Don't generate inline subroutine debug info for | |
5671 | abstract blocks. | |
5672 | ||
07636543 SP |
5673 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
5674 | ||
5675 | * graphite-poly.c (print_pbb): Print PBB index. | |
5676 | ||
f263917c SP |
5677 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
5678 | ||
5679 | PR middle-end/40981 | |
5680 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
5681 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
5682 | * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of | |
5683 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
5684 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
5685 | ||
c54d7dc9 OR |
5686 | 2009-08-14 Olatunji Ruwase <tjruwase@google.com> |
5687 | ||
5688 | * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is | |
5689 | supported on all platforms. | |
8c40d061 UB |
5690 | * target.h (struct gcc_target): Remove handle_pragma_redefine_extname. |
5691 | * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname. | |
c54d7dc9 OR |
5692 | * c-pragma.c: Likewise. |
5693 | * target-def.h (TARGET_INITIALIZER): Remove | |
5694 | TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME. | |
8c40d061 | 5695 | * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME. |
c54d7dc9 | 5696 | |
b874a90d DR |
5697 | 2009-08-14 Douglas B Rupp <rupp@gnat.com> |
5698 | ||
5699 | * config/ia64/fde-vms.c: New file. | |
5700 | * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg. | |
5701 | * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h | |
5702 | (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default. | |
5703 | (uw_frame_state_for): Only register a personality routine if it is | |
5704 | known to be compatible with our expectations. | |
5705 | (_Unwind_FindEnclosingFunction, uw_frame_state_for): | |
5706 | Declare unw_table_entry stack variable and | |
5707 | mod all calls to _Unwind_FindTableEntry to add arg. | |
5708 | * config/ia64/unwind-ia64.h (UNW_ accessors): Move here. | |
5709 | (_Unwind_FindTableEntry): Add arg to prototype. | |
5710 | ||
ac77b88e EB |
5711 | 2009-08-14 Eric Botcazou <ebotcazou@adacore.com> |
5712 | ||
5713 | * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new | |
5714 | field 'signal_pfs_loc'. | |
5715 | (uw_frame_state_for): Remove duplicate code dealing with leaf | |
5716 | procedures without unwind info. | |
5717 | If in the frame after unwinding through a signal handler, restore | |
5718 | the AR.PFS register instead of the CFM if AR.PFS has not been saved. | |
5719 | * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set | |
5720 | 'pfs_loc' to the AR.PFS location in the signal context; instead | |
5721 | set 'signal_pfs_loc'. | |
5722 | Manually generate the unwind info for the AR.PFS register. | |
5723 | (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT, | |
5724 | ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define. | |
5725 | (ia64_handle_unwabi): Test 'fs->unwabi' against them. | |
5726 | Do not set 'pfs_loc' to the AR.PFS location in the signal context; | |
5727 | instead set 'signal_pfs_loc'. | |
5728 | Remove code preventing the AR.PFS register from being restored | |
5729 | from the signal context. | |
5730 | ||
c24db304 DR |
5731 | 2009-08-14 Douglas B Rupp <rupp@gnat.com> |
5732 | Tristan Gingold <gingold@adacore.com> | |
5733 | ||
5734 | * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file. | |
5735 | * config/ia64/t-vms: New file. | |
5736 | * config/ia64/vms64.h: New file. | |
5737 | * config/ia64/vms.h: New file. | |
5738 | * config/ia64/vms-crtinit.asm: New file. | |
5739 | * config/ia64/vms_symvec_libgcc_s.opt: New file. | |
5740 | * config/ia64/vms-unwind.h: New file. | |
5741 | ||
387c39e1 UB |
5742 | 2009-08-14 Uros Bizjak <ubizjak@gmail.com> |
5743 | ||
5744 | * config/alpha/alpha.c (alpha_emit_conditional_move): Handle | |
5745 | TFmode compares. | |
5746 | ||
2f440f6a KG |
5747 | 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
5748 | ||
5749 | PR middle-end/30789 | |
8c40d061 UB |
5750 | * builtins.c (do_mpc_arg2): Make extern, define for any MPC version. |
5751 | Move declaration... | |
2f440f6a KG |
5752 | * real.h (do_mpc_arg2): ... here. |
5753 | * fold-const.c (const_binop): Use MPC for complex MULT_EXPR | |
5754 | and RDIV_EXPR. | |
5755 | ||
fe83055d RAE |
5756 | 2009-08-14 Rafael Avila de Espindola <espindola@google.com> |
5757 | ||
c54d7dc9 OR |
5758 | * final.c (add_debug_prefix_map): Don't use GC memory for |
5759 | old_prefix and new_prefix. | |
fe83055d | 5760 | |
1a15bfdc RG |
5761 | 2009-08-14 Richard Guenther <rguenther@suse.de> |
5762 | ||
5763 | * ipa-prop.c (compute_complex_pass_through): If we cannot | |
5764 | compute a non-varying offset for IPA_JF_ANCESTOR punt. | |
5765 | ||
065312cf UW |
5766 | 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
5767 | ||
5768 | * c-lex.c (c_lex_with_flags): Increase size of local variable | |
5769 | to avoid memory clobber. | |
5770 | ||
371015a8 PB |
5771 | 2009-08-14 Paolo Bonzini <bonzini@gnu.org> |
5772 | ||
5773 | PR target/40934 | |
5774 | * config/i386/i386.c (ix86_fp_comparison_strategy): | |
387c39e1 | 5775 | Only enable/disable sahf at function granularity. |
371015a8 | 5776 | |
94aca67a HPN |
5777 | 2009-08-14 Hans-Peter Nilsson <hp@axis.com> |
5778 | ||
5779 | PR rtl-optimization/41064 | |
5780 | * reload1.c (reload_as_needed): Don't call extract_insn | |
5781 | for known invalid replacements after calling | |
5782 | validate_replace_rtx_group and verify_changes. | |
5783 | ||
1262fd02 UB |
5784 | 2009-08-14 Uros Bizjak <ubizjak@gmail.com> |
5785 | ||
5786 | PR target/41019 | |
5787 | * config/i386/sse.md (SSEMODE124C8): New mode iterator. | |
5788 | (vcond<SSEMODEF2P:mode>): Assert that operation is supported by | |
5789 | ix86_expand_fp_vcond. | |
5790 | (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124. | |
5791 | Assert that operation is supported by ix86_expand_int_vcond. | |
5792 | (vcondu<SSEMODE124C8:mode>): Ditto. | |
5793 | ||
3e3877f8 DD |
5794 | 2009-08-13 DJ Delorie <dj@redhat.com> |
5795 | ||
5796 | * config/i386/djgpp-stdint.h: New. | |
5797 | * config.gcc (djgpp): Use it. | |
5798 | ||
91d1d521 KK |
5799 | 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org> |
5800 | ||
5801 | * config/sh/sh.c (sh_override_options): When flag_exceptions or | |
1262fd02 | 5802 | flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off. |
91d1d521 | 5803 | |
2c6dd136 GS |
5804 | 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com> |
5805 | ||
387c39e1 UB |
5806 | * tree-ssa-loop-prefetch.c |
5807 | (prune_ref_by_group_reuse): Enhance probabilistic analysis | |
2c6dd136 GS |
5808 | for long-stride pruning. |
5809 | (compute_miss_rate): New function to compute the probability | |
387c39e1 | 5810 | that two memory references access different cache lines. |
2c6dd136 | 5811 | |
241547bb DK |
5812 | 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com> |
5813 | ||
5814 | * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base. | |
5815 | ||
e5fdcd8c RG |
5816 | 2009-08-13 Richard Guenther <rguenther@suse.de> |
5817 | ||
5818 | PR middle-end/41047 | |
5819 | * tree-ssa-ccp.c (ccp_fold): When folding pointer additions | |
5820 | use the constant pointer type. | |
5821 | * gimplify.c (canonicalize_addr_expr): Canonicalize independent | |
5822 | of CV qualifiers on the target pointer type. | |
5823 | * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer | |
5824 | conversion check before restrict check. | |
5825 | ||
d5652a5a KK |
5826 | 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org> |
5827 | ||
5828 | PR target/41029 | |
5829 | * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko. | |
5830 | ||
d8158ff1 KK |
5831 | 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org> |
5832 | ||
5833 | * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED. | |
5834 | ||
88ccda10 RG |
5835 | 2009-08-12 Richard Guenther <rguenther@suse.de> |
5836 | ||
5837 | PR tree-optimization/41011 | |
5838 | * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold | |
5839 | and reference constructing. | |
5840 | ||
6eb29714 XDL |
5841 | 2009-08-12 Xinliang David Li <davidxl@google.com> |
5842 | ||
5843 | PR tree-optimization/41012 | |
5844 | * tree-flow.h : New external interface. | |
5845 | * gimple-low.c (check_call_arg): Change to public function. | |
5846 | Remove argument mismatch check in lowering. | |
5847 | * tree-inline.h (tree_can_inline_p): Interface change. | |
5848 | * tree-inline.c (tree_can_inline_p): Fold argument mismatch check | |
5849 | into this function. | |
f100a4a8 | 5850 | * ipa-inline.c (cgraph_decide_inlining_of_small_functions): |
6eb29714 XDL |
5851 | Call change to tree_can_inline_p function. |
5852 | (cgraph_decide_inlining_incrementally): Ditto. | |
5853 | ||
b2a58473 RS |
5854 | 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com> |
5855 | ||
5856 | PR tree-optimization/41031 | |
5857 | * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode | |
5858 | on the partition variable rather than promote_mode on the source | |
5859 | type. Assert that the partition variable's type has the same | |
5860 | mode as the source value's. | |
5861 | ||
666e3ceb PB |
5862 | 2009-08-12 Paolo Bonzini <bonzini@gnu.org> |
5863 | ||
5864 | * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation | |
5865 | for for_return == 2. | |
5866 | * function.c (assign_parm_setup_reg): Use for_return == 2, improve | |
5867 | comments. | |
5868 | * calls.c (expand_call): Fix typo. | |
5869 | * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL | |
5870 | and PARM_DECL. | |
5871 | * stmt.c (expand_value_return): Use promote_function_mode to copy out | |
5872 | of pseudo. | |
5873 | * targhooks.c (default_promote_function_mode): Handle for_return == 2. | |
5874 | * config/cris/cris.c (cris_promote_function_mode): Likewise. | |
5875 | * config/mmix/mmix.c (mmix_promote_function_mode): Likewise. | |
5876 | * config/pa/pa.c (pa_promote_function_mode): Likewise. | |
5877 | ||
46107b99 | 5878 | 2009-08-12 Andrew Haley <aph@redhat.com> |
353a58f7 AH |
5879 | |
5880 | * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize. | |
5881 | ||
4654745d SP |
5882 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5883 | ||
5884 | PR bootstrap/40103 | |
5885 | * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat". | |
5886 | ||
daad0278 RG |
5887 | 2009-08-12 Richard Guenther <rguenther@suse.de> |
5888 | ||
5889 | * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P. | |
5890 | * gimplify.c (gimplify_modify_expr): Do not use | |
5891 | lang_hooks.types_compatible_p. | |
5892 | * tree-ssa.c (useless_type_conversion_p): For aggregates | |
5893 | just return false if the canonical types differ. | |
5894 | ||
30de1632 SP |
5895 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5896 | ||
5897 | PR middle-end/40980 | |
5898 | * sese.c (convert_for_phi_arg): New. | |
5899 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
5900 | ||
8c31ebfa SP |
5901 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5902 | ||
5903 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
5904 | unknown subscript upper bounds. | |
5905 | ||
fb9fb290 SP |
5906 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5907 | Pranav Garg <pranav.garg2107@gmail.com> | |
5908 | ||
5909 | * graphite-interchange.c (gather_access_strides): Removed. | |
5910 | (ppl_max_for_le): New. | |
5911 | (build_linearized_memory_access): New. | |
5912 | (memory_stride_in_loop): New. | |
5913 | (pbb_interchange_profitable_p): Reimplemented. | |
5914 | * graphite-ppl.h (ppl_new_id_map): New. | |
5915 | (ppl_interchange): New. | |
5916 | ||
312aea7f SP |
5917 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5918 | ||
5919 | * graphite-interchange.c (compute_subscript): Removed. | |
5920 | (compute_array_size_cstr): Removed. | |
5921 | (compute_array_size_poly): Removed. | |
5922 | (compute_array_size): Removed. | |
5923 | (gather_access_strides_poly): Removed. | |
5924 | (gather_access_strides): Empty. | |
5925 | ||
25d7cc15 SP |
5926 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5927 | ||
5928 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
5929 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
5930 | (graphite_legal_transform_dr): Same. | |
5931 | (graphite_carried_dependence_level_k): Same. | |
5932 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
5933 | Initialize PDR_NB_SUBSCRIPTS. | |
5934 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
5935 | PDR_NB_SUBSCRIPTS. | |
5936 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
5937 | (PDR_NB_SUBSCRIPTS): New. | |
5938 | (pdr_nb_subscripts): Removed. | |
5939 | (pdr_dim): Simplified. | |
5940 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
5941 | with PDR_NB_SUBSCRIPTS. | |
5942 | ||
66096911 SP |
5943 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5944 | ||
5945 | * graphite-interchange.c (compute_array_size): Remove use of | |
5946 | PDR_DATA_CONTAINER. | |
5947 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
5948 | Do not initialize PDR_DATA_CONTAINER. | |
5949 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
5950 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
5951 | (PDR_DATA_CONTAINER): Removed. | |
5952 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
5953 | PDR_DATA_CONTAINER. | |
5954 | (build_poly_dr): Same. | |
5955 | ||
7491e5f0 KT |
5956 | 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
5957 | Sebastian Pop <sebastian.pop@amd.com> | |
5958 | ||
5959 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
5960 | copy of the dependence polyhedron. Free the temporary objects. | |
5961 | (graphite_carried_dependence_level_k): Free unused objects before | |
5962 | returning. | |
5963 | ||
f4648ed1 SP |
5964 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5965 | ||
5966 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
5967 | Early return without analyzing the data dependences if no | |
5968 | transform has been done. Call restore_scattering if the transform | |
5969 | is not legal. | |
5970 | (graphite-interchange.c): Same. | |
1262fd02 UB |
5971 | * graphite-poly.c (print_scattering_function): Test for |
5972 | PBB_TRANSFORMED. | |
f4648ed1 SP |
5973 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. |
5974 | (apply_poly_transforms): Do not gcc_assert that | |
5975 | the transform is legal. | |
1262fd02 | 5976 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL. |
f4648ed1 SP |
5977 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, |
5978 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
5979 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
5980 | * graphite-poly.h (struct poly_scattering): New. | |
5981 | (struct poly_bb): Add original, transformed, and saved fields. | |
1262fd02 UB |
5982 | Remove transformed_scattering, original_scattering, |
5983 | nb_local_variables and nb_scattering_transform fields. | |
f4648ed1 SP |
5984 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. |
5985 | (poly_scattering_new): New. | |
5986 | (poly_scattering_free): New. | |
5987 | (poly_scattering_copy): New. | |
5988 | (store_scattering_pbb): New. | |
5989 | (store_scattering): New. | |
5990 | (restore_scattering_pbb): New. | |
5991 | (restore_scattering): New. | |
5992 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
5993 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
5994 | ||
e31a5bd4 SP |
5995 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5996 | ||
5997 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
5998 | (print_scop): Same. | |
5999 | ||
8e88f9fd SP |
6000 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
6001 | ||
6002 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
6003 | * graphite.c: Include predict.h. | |
6004 | (graphite_finalize): Call tree_estimate_probability. | |
6005 | * predict.c (predict_loops): Do not call scev_initialize and | |
6006 | scev_finalize. | |
6007 | (tree_estimate_probability_bb): New. | |
6008 | (tree_estimate_probability): Do not initialize loops: move that | |
6009 | code to the driver. Call tree_estimate_probability_bb. | |
6010 | (tree_estimate_probability_driver): New. | |
6011 | (pass_profile): Use tree_estimate_probability_driver. | |
6012 | * predict.h (tree_estimate_probability): Declared. | |
6013 | ||
87d4d0ee SP |
6014 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
6015 | ||
6016 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
6017 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
6018 | TV_GRAPHITE_DATA_DEPS. | |
6019 | (dependency_between_pbbs_p): Same. | |
6020 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
6021 | ||
4c7af939 AB |
6022 | 2009-08-12 Andrey Belevantsev <abel@ispras.ru> |
6023 | ||
6024 | PR rtl-optimization/41033 | |
f100a4a8 | 6025 | * alias.c (nonoverlapping_component_refs_p): Punt when strict |
4c7af939 AB |
6026 | aliasing is disabled. |
6027 | ||
b2c9d70f AN |
6028 | 2009-08-11 Adam Nemet <anemet@caviumnetworks.com> |
6029 | ||
6030 | * config/mips/predicates.md (qi_mask_operand, hi_mask_operand, | |
6031 | si_mask_operand, and_load_operand, low_bitmask_operand, | |
6032 | and_reg_operand, and_operand): New predicates. | |
6033 | * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints. | |
6034 | * config/mips/mips.c (and_operands_ok): New function. | |
6035 | * config/mips/mips-protos.h (and_operands_ok): Declare it. | |
6036 | * config/mips/mips.md (move_type): Add ext_ins and logical. | |
6037 | (type): Handle them. | |
1262fd02 | 6038 | (and<mode>3): Use and_reg_operand as the second operand's predicate. |
b2c9d70f AN |
6039 | (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and |
6040 | shift_shift. Remove commutative constraint modifier. | |
6041 | (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and | |
6042 | shift_shift. | |
6043 | (*clear_upper32_dext): Remove define_insn_and_split. | |
6044 | (*clear_upper32): Turn this define_insn_and_split ... | |
6045 | (splitter for ANDing register with 0xffff_ffff): .. into this. | |
6046 | ||
842e098c AN |
6047 | 2009-08-11 Adam Nemet <anemet@caviumnetworks.com> |
6048 | ||
6049 | * combine.c (try_widen_shift_mode): Factor out code to check if an | |
f100a4a8 | 6050 | integer constant is a low-order bitmask from here ... |
842e098c AN |
6051 | * rtlanal.c (low_bitmask_len): ... to here. |
6052 | * rtl.h (low_bitmask_len): Declare. | |
6053 | ||
c53c2591 UB |
6054 | 2009-08-11 Uros Bizjak <ubizjak@gmail.com> |
6055 | ||
6056 | PR target/8603 | |
6057 | * config/alpha/alpha.md (addsi3): Remove expander. | |
6058 | (addsi3): Rename from *addsi3_internal insn pattern. | |
6059 | (subsi3): Remove expander. | |
6060 | (subsi3): Rename from *subsi3_internal insn pattern. | |
6061 | ||
b0d0a8a7 DR |
6062 | 2009-08-11 Douglas B Rupp <rupp@gnat.com> |
6063 | ||
6064 | * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and | |
6065 | FWRITE_UNLOCKED. | |
6066 | ||
050d3f9d | 6067 | 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com> |
c53c2591 UB |
6068 | Eric Botcazou <botcazou@adacore.com> |
6069 | Douglas B Rupp <rupp@gnat.com> | |
050d3f9d VF |
6070 | |
6071 | * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure | |
6072 | that records that fit in 64 bits are returned by immediate value, | |
6073 | as required by OpenVMS Calling Standard. | |
6074 | (function_value): Adjust for above modification. | |
6075 | (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use | |
6076 | virtual_incoming_args_rtx as base object, not next_arg. | |
6077 | * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0. | |
6078 | ||
2fa8205d UW |
6079 | 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
6080 | ||
6081 | * reload.c (find_reloads_subreg_address): Check the original | |
6082 | req_equiv_mem address to detect the case where an address is | |
6083 | not valid in the outer mode. | |
6084 | ||
ac8f7e42 | 6085 | 2009-08-11 Richard Guenther <rguenther@suse.de> |
f100a4a8 | 6086 | |
c53c2591 UB |
6087 | PR bootstrap/40788 |
6088 | * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION. | |
ac8f7e42 | 6089 | |
fddeba6d DR |
6090 | 2009-08-10 Douglas B Rupp <rupp@gnat.com> |
6091 | ||
6092 | * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove | |
6093 | (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS. | |
6094 | ||
1d3499d8 | 6095 | 2009-08-10 Olivier Hainque <hainqueu@adacore.com> |
c53c2591 | 6096 | Douglas B Rupp <rupp@gnat.com> |
1d3499d8 OH |
6097 | |
6098 | * config/alpha/alpha.c (alpha_sa_size): Force procedure type to | |
6099 | PT_STACK when frame_pointer_needed on OpenVMS. | |
6100 | (alpha_pv_save_size, alpha_using_fp): Remove. | |
6101 | (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE | |
6102 | with proper processing for PT_NULL. | |
6103 | (alpha_vms_initial_elimination_offset): New function. Support for | |
6104 | INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL. | |
6105 | (alpha_sa_size): Force procedure type to PT_STACK when | |
6106 | frame_pointer_needed on OpenVMS. | |
6107 | * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype. | |
6108 | (alpha_using_fp): Likewise. | |
6109 | (alpha_vms_can_eliminate): Add prototype. | |
6110 | (alpha_vms_initial_elimination_offset): Likewise. | |
6111 | * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): | |
6112 | Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset. | |
6113 | ||
18fd5621 | 6114 | 2009-08-10 Eric Botcazou <botcazou@adacore.com> |
c53c2591 | 6115 | Douglas B Rupp <rupp@gnat.com> |
18fd5621 EB |
6116 | |
6117 | * config/alpha/alpha.c (common_object_handler): New function. | |
6118 | (vms_attribute_table): Declare a single attribute "common_object". | |
6119 | (vms_output_aligned_decl_common): New global function. | |
6120 | (SECTION_VMS_OVERLAY): Delete. | |
6121 | (SECTION_VMS_GLOBAL): Likewise. | |
6122 | (SECTION_VMS_INITIALIZE): Likewise. | |
6123 | (vms_asm_named_section): Remove support for above flags. | |
6124 | (vms_section_type_flags): Delete. | |
6125 | (TARGET_SECTION_TYPE_FLAGS): Likewise. | |
6126 | * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New. | |
6127 | * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete. | |
6128 | (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro. | |
6129 | ||
092f3f97 ST |
6130 | 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp> |
6131 | ||
6132 | PR target/41015 | |
6133 | * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list. | |
6134 | (sub_ddmmss): Likewise. | |
6135 | ||
35076532 AT |
6136 | 2009-08-10 Andreas Tobler <a.tobler@schweiz.org> |
6137 | ||
6138 | PR bootstrap/41018 | |
6139 | * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright | |
6140 | year. | |
6141 | ||
0159ec79 UW |
6142 | 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
6143 | ||
6144 | PR target/37053 | |
6145 | * reload1.c (reload_as_needed): Use cancel_changes to completely | |
6146 | undo a failed replacement attempt. | |
6147 | ||
4f4e722e RG |
6148 | 2009-08-10 Richard Guenther <rguenther@suse.de> |
6149 | ||
6150 | PR middle-end/41006 | |
6151 | * tree-ssa.c (useless_type_conversion_p_1): Fold into ... | |
6152 | (useless_type_conversion_p): ... here. Require pointer targets | |
6153 | to be compatible. | |
6154 | ||
b1d82db0 DS |
6155 | 2009-08-10 Dodji Seketeli <dodji@redhat.com> |
6156 | ||
6157 | PR c++/40866 | |
6158 | * tree-inline.c (copy_statement_list): The resulting copy shouldn't | |
6159 | loose the original type of the statement list. | |
6160 | ||
5e3fef6c DR |
6161 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
6162 | ||
6163 | * config/alpha/alpha.c: Include libfuncs.h | |
6164 | (avms_asm_output_extern): New function. | |
6165 | (alpha_init_libfuncs): Init some decc libfuncs. | |
6166 | * config/alpha/alpha-protos.h (avms_asm_output_external): Declare. | |
6167 | * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define. | |
6168 | (DO_CRTL_NAMES): Define. | |
6169 | (LIB_SPEC): Remove. | |
6170 | * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef. | |
6171 | (LONG_TYPE_SIZE): Define. | |
6172 | (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1 | |
6173 | (SUBTARGET_SWITCHES): Define malloc64 switch. | |
6174 | (TARGET_DEFAULT): Default MASK_MALLOC64 set. | |
6175 | (MASK_RETURN_ADDR): Define. | |
6176 | doc/invoke.texi (mmalloc64): Document switch. | |
6177 | ||
221cf9ab | 6178 | 2009-08-09 Olivier Hainque <hainque@adacore.com> |
c53c2591 | 6179 | Douglas B Rupp <rupp@gnat.com> |
221cf9ab OH |
6180 | |
6181 | * config/alpha/alpha.c (struct machine_function): New flag for VMS, | |
6182 | uses_condition_handler. | |
6183 | (alpha_expand_builtin_establish_vms_condition_handler): New expander. | |
6184 | (alpha_expand_builtin_revert_vms_condition_handler): New expander. | |
6185 | (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER | |
6186 | and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values. | |
6187 | (code_for_builtin): New insn codes for the new alpha_builtins. | |
6188 | (alpha_init_builtins): Register the new functions as BUILT_IN_MD. | |
6189 | (alpha_sa_size): Account for uses_condition_handler. | |
6190 | (alpha_expand_prologue): Likewise. | |
6191 | (alpha_start_function): Likewise. | |
6192 | (alpha_expand_epilogue): Likewise. | |
6193 | * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin | |
6194 | establish/revert expanders. | |
6195 | * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define. | |
6196 | * config/alpha/alpha.md (builtin_establish_vms_condition_handler): | |
6197 | New expander, resorting to the alpha.c associated function. | |
6198 | (builtin_revert_vms_condition_handler): Likewise. | |
6199 | * config/alpha/vms-gcc_shell_handler.c: New file. Implements | |
6200 | __gcc_shell_handler, the static VMS condition handler used as | |
6201 | an indirection wrapper to the current dynamically established | |
6202 | handler. | |
6203 | * config/alpha/vms-unwind.h: Complete rewrite. | |
6204 | * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c | |
6205 | * config/alpha/vms.h (MD_UNWIND_SUPPORT): | |
f100a4a8 | 6206 | |
b714133e | 6207 | 2009-08-09 Eric Botcazou <botcazou@adacore.com> |
c53c2591 | 6208 | Douglas B Rupp <rupp@gnat.com> |
b714133e EB |
6209 | |
6210 | * config/alpha/alpha.c (alpha_links): Add 'target' field. | |
6211 | (alpha_need_linkage): Handle aliases. Return function symbol. | |
6212 | (alpha_use_linkage): Rename 'linkage' argument to 'func'. | |
6213 | Use ultimate alias target for the linkage name. | |
6214 | * config/alpha/alpha.md (movmemdi): Use the symbol returned | |
6215 | by alpha_need_linkage for the function symbol. | |
6216 | (setmemdi): Likewise. | |
6217 | ||
3bd1b109 DR |
6218 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
6219 | ||
6220 | * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS. | |
6221 | * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define. | |
6222 | (ASM_WEAKEN_LABEL): Define. | |
6223 | (CRT_CALL_STATIC_FUNCTION): Define. | |
6224 | (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o. | |
6225 | (ENDFILE_SPEC): Define. | |
6226 | (INIT_SECTION_ASM_OP): Define. | |
6227 | * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove. | |
6228 | * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o | |
6229 | crtend.o crtendS.o. | |
6230 | (MULTILIB_OSDIRNAMES): Define. | |
6231 | (shlib_version): Define. | |
6232 | (SHLIB_EXT): Define. | |
6233 | (SHLIB_OBJS): Define. | |
6234 | (SHLIB_NAME): Define. | |
6235 | (SHLIB_MULTILIB): Define. | |
6236 | (SHLIB_INSTALL): Define. | |
6237 | (SHLIB_SYMVEC): Define. | |
6238 | (SHLIB_SYMVECX2): Define. | |
6239 | (SHLIB_LINK): Define. | |
6240 | ||
fe2786f5 DR |
6241 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
6242 | ||
6243 | * config/alpha/alpha.c (alpha_initialize_trampoline): | |
6244 | Initialize VMS trampoline IAW ABI for bounded procedure calls. | |
6245 | (alpha_start_function): Emit transfer address on nested functions | |
6246 | for VMS trampoline call. | |
6247 | * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm | |
6248 | since no longer used. | |
6249 | * config/alpha/vms-tramp.asm: Remove. | |
6250 | * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined | |
6251 | since now only data initialized at runtime. | |
6252 | ||
c889a16f DR |
6253 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
6254 | ||
6255 | * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define. | |
6256 | (LINK_GCC_C_SEQUENCE_SPEC): Define. | |
6257 | (MD_EXEC_PREFIX): Remove, no longer used. | |
6258 | (MD_STARTFILE_PREFIX): Likewise. | |
6259 | (INCLUDE_DEFAULTS): Likewise. | |
6260 | * config/alpha/t-vms: | |
6261 | (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile. | |
6262 | ||
a6450905 RG |
6263 | 2009-08-09 Richard Guenther <rguenther@suse.de> |
6264 | ||
6265 | PR tree-optimization/41016 | |
c53c2591 | 6266 | * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug. |
a6450905 RG |
6267 | (operand_precision): Remove. |
6268 | (integral_operand_p): Likewise. | |
6269 | (recognize_single_bit_test): Adjust. | |
6270 | ||
f5178456 RS |
6271 | 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com> |
6272 | ||
6273 | * c-common.c (c_fully_fold_internal): Issue a warning if a binary | |
6274 | operation overflows. Likewise non-cast unary arithmetic. | |
6275 | If one arm of a conditional expression is always taken, | |
6276 | inhibit evaluation warnings for the other arm. Likewise inhibit | |
6277 | evaluation warnings for the second && or || operand if the first | |
6278 | operand is enough to determine the result. | |
6279 | * c-typeck.c (build_conditional_expr): Apply the same inhibition | |
6280 | rules here. | |
6281 | (build_binary_op): Prevent duplicate evaluation warnings. | |
6282 | ||
8f048d2f RS |
6283 | 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com> |
6284 | ||
6285 | * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source | |
6286 | and destination have different modes, Use promote_mode to | |
6287 | determine the signedness of the conversion. Assert that the | |
6288 | promoted source mode matches the destination mode. Don't pass | |
6289 | the destination and destination mode to expand_expr if the source | |
6290 | mode is different. Simplify conversion logic. | |
6291 | ||
6f4454fc IR |
6292 | 2009-08-09 Ira Rosen <irar@il.ibm.com> |
6293 | ||
6294 | PR tree-optimization/41008 | |
6295 | * tree-vect-loop.c (vect_is_simple_reduction): Get operands | |
f100a4a8 | 6296 | from condition only in case it's a comparison. Adjust checks. |
6f4454fc | 6297 | |
2c08497a BS |
6298 | 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com> |
6299 | ||
6300 | * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function. | |
6301 | * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it. | |
6302 | * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer. | |
6303 | (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE. | |
6304 | (dump_cand): Handle them. | |
6305 | (struct iv_cand): New members COST_STEP and AINC_USE. | |
6306 | (stmt_after_increment): Likewise. | |
6307 | (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All | |
6308 | callers changed. Use gimple_uid comparison instead of scanning. | |
6309 | (add_candidate_1): When looking for identical candidates, take | |
6310 | AINC_USE into account. Set it for new candidates. | |
6311 | (force_expr_to_var_cost): Cast target_spill_cost to int. | |
6312 | (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC. | |
6313 | All callers changed. Check for availability of autoinc addressing | |
c53c2591 | 6314 | modes, both in general for a given mode, and in the specific use case. |
2c08497a BS |
6315 | (get_computation_cost_at): New argument CAN_AUTOINC. All callers |
6316 | changed. | |
6317 | (get_computation_cost): Likewise. | |
6318 | (autoinc_possible_for_pair, set_autoinc_for_original_candidates, | |
6319 | add_autoinc_candidates): New static functions. | |
6320 | (add_candidate): Call add_autoinc_candidates for candidates based on | |
6321 | a USE_ADDRESS use. | |
6322 | (find_iv_candidates): Call set_autoinc_for_original_candidates. | |
6323 | (determine_use_iv_cost_address): If we have an autoinc candidate at | |
6324 | the matching use, verify autoinc is possible and subtract the cost | |
6325 | of the candidate's step from the cost. | |
6326 | (determine_iv_cost): Record the cost of the increment in the COST_STEP | |
6327 | member of the candidate. | |
6328 | (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and | |
6329 | determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks. | |
6330 | ||
a9a25daa DR |
6331 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
6332 | ||
6333 | * config.build (ia64-hp-*vms*): New target. | |
6334 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
6335 | with ia64-hp-*vms*. | |
6336 | * config.gcc (ia64-hp-*vms*): New target. | |
6337 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
6338 | with ia64-hp-*vms*. | |
6339 | * config.host (ia64-hp-*vms*): New target. | |
6340 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
6341 | with ia64-hp-*vms*. | |
6342 | ||
55194b0b RG |
6343 | 2009-08-08 Richard Guenther <rguenther@suse.de> |
6344 | ||
6345 | PR tree-optimization/40991 | |
6346 | * tree-ssa-pre.c (eliminate): Delay purging EH edges. | |
6347 | ||
d686d892 RS |
6348 | 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com> |
6349 | ||
6350 | * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from | |
6351 | mode check. Do truncations in an integer mode. | |
6352 | (force_to_mode): Handle subregs for all mode types. Only do | |
6353 | arithmetic simplifications on integer modes. | |
6354 | ||
0adef8e9 RG |
6355 | 2009-08-07 Richard Guenther <rguenther@suse.de> |
6356 | ||
6357 | PR tree-optimization/40999 | |
6358 | * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs. | |
6359 | (maybe_fold_reference): Lookup constant initializers. | |
6360 | (fold_gimple_assign): Likewise. | |
6361 | ||
60419cc8 RG |
6362 | 2009-08-07 Richard Guenther <rguenther@suse.de> |
6363 | ||
6364 | * tree-ssa.c (useless_type_conversion_p_1): Only for types | |
6365 | that require structural equality defer to the langhook. | |
6366 | ||
685b0d13 MJ |
6367 | 2009-08-07 Martin Jambor <mjambor@suse.cz> |
6368 | ||
6369 | * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed | |
6370 | comments. | |
6371 | (struct ipa_pass_through_data): New type. | |
6372 | (struct ipa_ancestor_jf_data): New type. | |
6373 | (union jump_func_value): Removed field formal_id, added fields | |
6374 | pass_through and ancestor. | |
6375 | (struct ipa_param_call_note): Changed type of formal_id to int from | |
6376 | unsigned. | |
6377 | * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with | |
6378 | operations jump functions and ancestor jump functions. | |
6379 | (compute_complex_pass_through): New function. | |
6380 | (compute_scalar_jump_functions): Call compute_complex_pass_through, | |
6381 | reflect changes in the jump function strucutre. | |
6382 | (update_jump_functions_after_inlining): Ignore complex pass-through | |
6383 | and ancestor jump functions. | |
6384 | * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and | |
6385 | polynomial pass-through with operation jump functions. | |
6386 | ||
17f6e37d JJ |
6387 | 2009-08-07 Jakub Jelinek <jakub@redhat.com> |
6388 | ||
6389 | * dwarf2out.c (output_fde): When doing hot/cold partitioning, use | |
6390 | fde->dw_fde_begin as begin label instead of hot/cold label. | |
6391 | Use LLSDAC label instead of LLSDA for second section lsda. | |
6392 | (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC | |
6393 | label instead of LLSDA if it is true. | |
6394 | (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust | |
6395 | callers. | |
6396 | * except.c (add_call_site, dw2_size_of_call_site_table): Add | |
6397 | SECTION argument. Use it as index into crtl->eh.call_site_record | |
6398 | array. | |
6399 | (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument, | |
6400 | use it to determine how to print table entries instead of using | |
6401 | #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold | |
6402 | label instead of normal begin label as base. | |
6403 | (sjlj_assign_call_site_values): Adjust add_call_site caller. | |
6404 | (convert_to_eh_region_ranges): When doing hot/cold partitioning, | |
6405 | ensure no EH range spans between sections and that landing pads | |
6406 | are always in the corresponding section. | |
6407 | (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust | |
6408 | for crtl->eh.call_site_record being an array rather than scalar. | |
6409 | (output_one_function_exception_table): New function, copied | |
6410 | from output_function_exception_table. Adjust | |
6411 | dw2_size_of_call_site_table, dw2_output_call_site_table | |
6412 | callers. For SECOND section use *C suffixed labels. | |
6413 | (output_function_exception_table): Call | |
6414 | output_one_function_exception_table and, when doing hot/cold | |
6415 | partitioning, also another time for the second section. | |
6416 | * opts.c: Include except.h. | |
6417 | (decode_options): Allow -freorder-blocks-and-partition with | |
6418 | exceptions, unless SJLJ or TARGET_UNWIND_INFO. | |
6419 | * Makefile.in (opts.o): Depend on $(EXCEPT_H). | |
6420 | * function.h (struct rtl_eh): Change call_site_record from | |
6421 | scalar into array of 2 elements. | |
6422 | ||
3f84bf08 MJ |
6423 | 2009-08-07 Martin Jambor <mjambor@suse.cz> |
6424 | ||
6425 | * ipa-prop.c (count_formal_params_1): New function. | |
6426 | (ipa_get_vector_of_formal_parms): New function. | |
6427 | (get_vector_of_formal_parm_types): New function. | |
6428 | (ipa_modify_formal_parameters): New function. | |
6429 | (ipa_modify_call_arguments): New function. | |
6430 | (index_in_adjustments_multiple_times_p): New function. | |
6431 | (ipa_combine_adjustments): New function. | |
6432 | (ipa_dump_param_adjustments): New function. | |
6433 | * ipa-prop.h (struct ipa_parm_adjustment): New type. | |
6434 | (ipa_get_vector_of_formal_parms): Declare. | |
6435 | (ipa_modify_formal_parameters): Declare. | |
6436 | (ipa_modify_call_arguments): Declare. | |
6437 | (ipa_combine_adjustments): Declare. | |
6438 | (ipa_dump_param_adjustments): Declare. | |
6439 | (build_ref_for_offset): Declare. | |
6440 | * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies. | |
6441 | * tree-sra.c: Include ipa-prop.c. | |
f100a4a8 | 6442 | (build_ref_for_offset): Make public. |
3f84bf08 | 6443 | |
ee26a76d NV |
6444 | 2009-08-06 Neil Vachharajani <nvachhar@gmail.com> |
6445 | ||
6446 | * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC. | |
f100a4a8 | 6447 | |
48c4de16 TS |
6448 | 2009-08-06 Thomas Schwinge <tschwinge@gnu.org> |
6449 | ||
6450 | * gcc/doc/extend.texi (__builtin_extract_return_address) | |
6451 | (__builtin_frob_return_address): Document. | |
6452 | ||
f36d140e PB |
6453 | 2009-08-06 Paul Brook <paul@codesourcery.com> |
6454 | ||
6455 | * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation. | |
6456 | (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1 | |
6457 | implementation on ARMv6-M. | |
6458 | ||
14a782c8 RE |
6459 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6460 | ||
6461 | * doc/extend.texi (pcs): Document new attribute for ARM. | |
6462 | ||
0f1a24df RE |
6463 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6464 | ||
6465 | * arm.c (pcs_attribute_args): Comment out unsupported attribute | |
6466 | variants. | |
6467 | ||
a9717079 RE |
6468 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6469 | ||
6470 | * arm.c (arm_handle_pcs_attribute): Pass the entire name object to | |
6471 | warning (). | |
6472 | ||
d8e6aede RE |
6473 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6474 | ||
6475 | * arm.c (arm_handle_pcs_attribute): Use %qE in warning. | |
6476 | ||
390b17c2 RE |
6477 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6478 | ||
6479 | Merge ARM/hard_vfp_branch to trunk. | |
6480 | ||
6481 | 2009-08-04 Richard Earnshaw <rearnsha@arm.com> | |
6482 | ||
6483 | * arm.c (libcall_eq): New function. | |
6484 | (libcall_hash): New function. | |
6485 | (add_libcall): New function. | |
6486 | (arm_libcall_uses_aapcs_base): New function. | |
6487 | (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for | |
6488 | libcalls using the base PCS. | |
6489 | (arm_init_cumulative_args): Likewise. | |
6490 | ||
6491 | 2009-07-20 Joseph Myers <joseph@codesourcery.com> | |
6492 | ||
6493 | * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args): | |
6494 | Use base ABI for conversion libfuncs between HFmode and SFmode. | |
6495 | ||
6496 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6497 | ||
6498 | * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and | |
6499 | V4SImode as representatives of all 64-bit and 128-bit vector | |
6500 | types. Allow vector types without vector modes. | |
6501 | (aapcs_vfp_is_call_or_return_candidate): Handle vector types | |
6502 | without vector modes like BLKmode. | |
6503 | (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like | |
6504 | BLKmode. Avoid unsupported vector modes or TImode moves for | |
6505 | non-TARGET_NEON. | |
6506 | (aapcs_vfp_allocate_return_reg): Likewise. | |
6507 | (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and | |
6508 | V8QImode if TARGET_NEON || TARGET_IWMMXT. | |
6509 | ||
6510 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6511 | ||
6512 | * config/arm/arm.c (arm_handle_pcs_attribute): New. | |
6513 | (arm_get_pcs_model): Pass attribute arguments to | |
6514 | arm_pcs_from_attribute. | |
6515 | (arm_init_cumulative_args): Use base AAPCS for conversions from | |
6516 | floating-point types to DImode. | |
6517 | (arm_attribute_table): Add pcs attribute. | |
6518 | (arm_handle_pcs_attribute): New. | |
6519 | * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming | |
6520 | conversions from floating-point types to DImode, also declare them | |
6521 | to use base AAPCS and declare functions they call to use base | |
6522 | AAPCS and their RTABI names. | |
6523 | ||
6524 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6525 | ||
6526 | * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about | |
6527 | -mfloat-abi=hard not being supported for VFP. | |
6528 | ||
6529 | 2009-05-11 Kazu Hirata <kazu@codesourcery.com> | |
6530 | ||
6531 | * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall | |
6532 | SYMBOL_REF to hard_libcall_value. | |
6533 | ||
6534 | 2009-03-05 Joseph Myers <joseph@codesourcery.com> | |
6535 | Richard Earnshaw <rearnsha@arm.com> | |
6536 | ||
6537 | * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument | |
6538 | has been put on the stack, all remaining co-processory arguments for | |
6539 | that co-processor also go on the stack. | |
6540 | ||
6541 | 2009-03-05 Joseph Myers <joseph@codesourcery.com> | |
6542 | ||
6543 | * config/arm/arm.c (arm_return_in_memory): Handle returning | |
6544 | vectors of suitable size in registers also for AAPCS case. | |
6545 | ||
6546 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> | |
6547 | ||
6548 | * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement. | |
6549 | ||
6550 | 2008-12-09 Richard Earnshaw <rearnsha@arm.com> | |
6551 | ||
6552 | ARM Hard-VFP calling convention | |
6553 | * target-def.h (TARGET_LIBCALL_VALUE): New hook. | |
6554 | * target.h (gcc_target): Add libcall_value to table of call hooks. | |
6555 | * targhooks.h (default_libcall_value): Default implementation. | |
6556 | * targhooks.c (default_libcall_value): Likewise. | |
6557 | * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it. | |
6558 | * optabs.c (expand_unop): Use it. | |
6559 | * expr.h (hard_libcall_value): Pass the function RTX through. | |
f100a4a8 | 6560 | * calls.c (emit_library_call_value_1): Update call to |
390b17c2 RE |
6561 | hard_libcall_value. |
6562 | * explow.c (hard_libcall_value): Use new target hook. | |
6563 | * testsuite/lib/target-supports.exp | |
6564 | (check_effective_target_arm_hard_vfp_ok): New hook. | |
6565 | (check_effective_target_arm_neon_ok): Improve test for neon | |
6566 | availability. | |
6567 | * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant. | |
6568 | * config/arm/arm.c: Include cgraph.h | |
6569 | (TARGET_FUNCTION_VALUE): Override default hook. | |
6570 | (arm_pcs_default): New variable. | |
6571 | (arm_override_options): Don't fault hard calling convention with VFP. | |
6572 | Add support for AAPCS variants. | |
6573 | (arm_function_value): Make static. Handle AAPCS variants. | |
6574 | (arm_libcall_value): New function. | |
6575 | (arm_apply_result_size): Handle VFP registers in results. | |
6576 | (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp | |
6577 | conventions. | |
6578 | (pcs_attribute_args): New variable. | |
6579 | (arm_pcs_from_attribute): New function. | |
6580 | (arm_get_pcs_model): New function. | |
6581 | (aapcs_vfp_cum_init): New function. | |
6582 | (aapcs_vfp_sub_candidate): New function. | |
6583 | (aapcs_vfp_is_return_candidate): New function. | |
6584 | (aapcs_vfp_is_call_candidate): New function. | |
6585 | (aapcs_vfp_allocate): New function. | |
6586 | (aapcs_vfp_allocate_return_reg): New function. | |
6587 | (aapcs_vfp_advance): New function. | |
6588 | (aapcs_cp_arg_layout): New variable. | |
6589 | (aapcs_select_call_coproc): New function. | |
6590 | (aapcs_select_return_coproc): New function. | |
6591 | (aapcs_allocate_return_reg): New function. | |
6592 | (aapcs_libcall_value): New function. | |
6593 | (aapcs_layout_arg): New function. | |
6594 | (arm_init_cumulative_args): Initialize AAPCS args data. | |
6595 | (arm_function_arg): Handle AAPCS variants using new interface. | |
6596 | (arm_arg_parital_bytes): Likewise. | |
6597 | (arm_function_arg_advance): New function. | |
6598 | (arm_function_ok_for_sibcall): Ensure that sibling calls agree on | |
6599 | calling conventions. | |
6600 | (arm_setup_incoming_varargs): Handle new AAPCS args data. | |
6601 | * arm.h (NUM_VFP_ARG_REGS): Define. | |
6602 | (LIBCALL_VALUE): Update. | |
6603 | (FUNCTION_VALUE): Delete. | |
6604 | (FUNCTION_VALUE_REGNO_P): Add VFP regs. | |
6605 | (arm_pcs): New enum. | |
6606 | (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling. | |
6607 | (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance. | |
6608 | (FUNCTION_ARG_REGNO_P): Add VFP regs. | |
6609 | * arm-protos.h (arm_function_arg_advance): Add. | |
6610 | (aapcs_libcall_value): Add. | |
6611 | (arm_function_value): Delete. | |
6612 | ||
4dbf26d5 UB |
6613 | 2009-08-06 Uros Bizjak <ubizjak@gmail.com> |
6614 | H.J. Lu <hongjiu.lu@intel.com> | |
6615 | ||
6616 | PR target/40957 | |
6617 | * config/i386/i386.c (standard_sse_mode_p): Remove. | |
6618 | (standard_sse_constant_p): Return 2 for integer mode | |
6619 | vector_all_ones_operand when SSE2 is enabled. | |
6620 | (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd. | |
6621 | (ix86_expand_vector_move): Do not check for negative values from | |
6622 | standard_sse_constant_p. | |
6623 | ||
e52201b6 RG |
6624 | 2009-08-06 Richard Guenther <rguenther@suse.de> |
6625 | ||
6626 | * tree-ssa.c (useless_type_conversion_p_1): Make function and | |
6627 | array type comparisons frontend independent. | |
6628 | * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency. | |
6629 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill | |
6630 | out array reference lower bound and element size operands. | |
6631 | (ao_ref_init_from_vn_reference): Properly compute the offset | |
6632 | for ARRAY_RANGE_REF. | |
6633 | (vn_reference_fold_indirect): Fill out array reference lower | |
6634 | bound and element size operands. | |
6635 | * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate | |
6636 | a non gimple valued reference operand which can happen for | |
6637 | array reference lower bound or element size. | |
6638 | (create_component_ref_by_pieces_1): Properly generate the | |
6639 | element size operand for array references. | |
6640 | ||
b92fbdd7 RB |
6641 | 2009-08-06 Richard Guenther <rguenther@suse.de> |
6642 | ||
6643 | PR tree-optimization/40964 | |
6644 | * tree.c (iterative_hash_host_wide_int): Export. | |
6645 | * tree.h (iterative_hash_host_wide_int): Declare. | |
6646 | * tree-ssa-structalias.c (heapvar_map): New struct. | |
6647 | (heapvar_map_eq): New function. | |
6648 | (heapvar_map_hash): Likewise. | |
6649 | (heapvar_lookup): Adjust. | |
6650 | (heapvar_insert): Likewise. | |
6651 | (make_constraint_from_heapvar): Allow multiple heap variables | |
6652 | per decl at different offsets. | |
6653 | (init_alias_heapvars): Adjust. | |
6654 | ||
068ca03a DD |
6655 | 2009-08-04 David Daney <ddaney@caviumnetworks.com> |
6656 | ||
6657 | * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro. | |
6658 | * mips_output_sync_loop (mips_output_sync_loop): Only emit | |
6659 | trailing sync if TARGET_SYNC_AFTER_SC. | |
6660 | ||
40a4a37b DD |
6661 | 2009-08-05 David Daney <ddaney@caviumnetworks.com> |
6662 | ||
6663 | * gcc/config/mips/sync.md (sync_compare_and_swap<mode>, | |
6664 | compare_and_swap_12, sync_add<mode>, sync_<optab>_12, | |
6665 | sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12, | |
6666 | sync_old_nand_12, sync_new_nand_12, sync_sub<mode>, | |
6667 | sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>, | |
6668 | sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>, | |
6669 | sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>, | |
6670 | sync_new_nand<mode>, sync_lock_test_and_set<mode>, | |
6671 | test_and_set_12): Rewrite calls to mips_output_sync_loop. | |
6672 | * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make | |
6673 | the prototype declaration match the definition. | |
6674 | * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync | |
6675 | instructions explicitly. Add barrier_before and operands | |
6676 | parameters. | |
6677 | * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP, | |
6678 | MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12, | |
6679 | MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP, | |
6680 | MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, | |
6681 | MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE, | |
6682 | MIPS_SYNC_EXCHANGE_12): Remove sync instructions. | |
6683 | ||
dcbd7063 AP |
6684 | 2009-08-05 Andrew Pinski <pinskia@gmail.com> |
6685 | ||
6686 | * tree-ssa-alias.c: Fix intervals to use [) syntax. | |
6687 | ||
2c4389d8 UB |
6688 | 2009-08-05 Uros Bizjak <ubizjak@gmail.com> |
6689 | Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> | |
6690 | ||
6691 | PR target/40906 | |
6692 | * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part | |
6693 | source operand. | |
6694 | ||
403c7520 JJ |
6695 | 2009-08-05 Jakub Jelinek <jakub@redhat.com> |
6696 | ||
6697 | PR rtl-optimization/40924 | |
6698 | * dse.c (canon_address): Before calling cselib_expand_value_rtx | |
6699 | make sure canon_rtx (mem_address) isn't simpler than | |
6700 | canon_rtx (expanded_mem_address). | |
6701 | ||
64393e40 LF |
6702 | 2009-08-05 Li Feng <nemokingdom@gmail.com> |
6703 | ||
6704 | * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set | |
6705 | for each poly_bb_p. | |
6706 | (build_scop_drs): Build alias set for each SCoP. | |
6707 | ||
5dce6dbd SL |
6708 | 2009-08-04 Sandra Loosemore <sandra@codesourcery.com> |
6709 | ||
6710 | * doc/invoke.texi (MIPS Options): Document new 1004K -march options. | |
6711 | * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores. | |
6712 | * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K. | |
6713 | (MIPS_ARCH_FLOAT_SPEC): Likewise. | |
6714 | (BASE_DRIVER_SELF_SPECS): Likewise. | |
6715 | ||
f9fc1a02 AP |
6716 | 2009-08-04 Andrew Pinski <pinskia@gmail.com> |
6717 | ||
6718 | * tree-ssa-alias.c: Fix some comment typos. | |
6719 | ||
09a7d0af KK |
6720 | 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org> |
6721 | ||
6722 | * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP, | |
6723 | ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define. | |
6724 | ||
50cd60be JJ |
6725 | 2009-08-03 Janis Johnson <janis187@us.ibm.com> |
6726 | ||
6727 | PR c/39902 | |
6728 | * simplify-rtx.c (simplify_binary_operation_1): Disable | |
6729 | simplifications for decimal float operations. | |
6730 | ||
1768a052 JJ |
6731 | 2009-08-03 Jakub Jelinek <jakub@redhat.com> |
6732 | ||
6733 | PR middle-end/40943 | |
6734 | * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for | |
6735 | operand of INDIRECT_REF. | |
6736 | ||
42a9ba1d UB |
6737 | 2009-08-03 Uros Bizjak <ubizjak@gmail.com> |
6738 | ||
6739 | * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST | |
6740 | constants referencing TLS symbols. | |
6741 | ||
9f774cb0 ST |
6742 | 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp> |
6743 | ||
6744 | * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename | |
6745 | __sync_compare_and_swap_* to __sync_val_compare_and_swap_*. | |
6746 | ||
907dd6ae RG |
6747 | 2009-08-03 Richard Guenther <rguenther@suse.de> |
6748 | ||
6749 | * tree.c (make_vector_type): Build a main variant first, | |
6750 | get the canonical one and then build the variant. | |
6751 | * tree-ssa.c (useless_type_conversion_p_1): Handle | |
6752 | fixed-point types. | |
6753 | (useless_type_conversion_p): Conversions to pointers to | |
6754 | incomplete record types are useless. | |
6755 | ||
2329c6f5 RG |
6756 | 2009-08-03 Richard Guenther <rguenther@suse.de> |
6757 | ||
6758 | * tree-cfg.c (pass_warn_unused_result): Mark name that no dump | |
6759 | file will be created. | |
6760 | * omp-low.c (pass_diagnose_omp_blocks): Likewise. | |
6761 | * toplev.c (compile_file): Adjust comment. | |
6762 | ||
d055ce45 KK |
6763 | 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org> |
6764 | ||
6765 | * config/sh/sh-protos.h (sh_promote_function_mode): Remove. | |
6766 | * config/sh/sh.c (sh_promote_function_mode): Wrap long lines. | |
6767 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6768 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6769 | (sh_promote_function_mode): Fix typo. | |
6770 | ||
b1680483 AK |
6771 | 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com> |
6772 | ||
42a9ba1d | 6773 | * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused. |
b1680483 | 6774 | |
4ce3042d JDA |
6775 | 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
6776 | ||
6777 | * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from | |
6778 | declaration arguments. | |
6779 | ||
0589e07d UB |
6780 | 2009-08-02 Uros Bizjak <ubizjak@gmail.com> |
6781 | ||
6782 | * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead | |
6783 | of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01). | |
6784 | (ix86_split_ashl): Ditto. | |
6785 | (ix86_expand_vector_init_one_nonzero): Ditto. | |
6786 | (ix86_expand_vector_set): Ditto. | |
6787 | (ix86_expand_reduc_v4sf): Ditto. | |
6788 | ||
6789 | 2009-08-02 Paolo Bonzini <bonzini@gnu.org> | |
6e957ac8 PB |
6790 | |
6791 | * explow.c (promote_function_mode): Remove assert. | |
6792 | * config/sh/sh.c (sh_promote_function_mode): Declare. | |
6793 | ||
be3e4ef6 JDA |
6794 | 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
6795 | ||
6e957ac8 PB |
6796 | * config/pa/pa.c (pa_promote_function_mode): Declare. |
6797 | Change to static. Fix promote_mode call. | |
02095c50 | 6798 | |
1f7ec57e JDA |
6799 | * gthr-dce.h (CONST_CAST2): Define if not defined. |
6800 | (__gthread_setspecific): Use CONST_CAST2 to fix warning. | |
6801 | ||
be3e4ef6 JDA |
6802 | * config.gcc (hppa[12]*-*-hpux10*): Add stdint support. |
6803 | ||
6e957ac8 | 6804 | 2009-08-01 Paolo Bonzini <bonzini@gnu.org> |
cde0f3fd PB |
6805 | |
6806 | * expr.c (store_constructor): Use promote_decl_mode. Remove | |
6807 | now write-only variable unsignedp. | |
6808 | (expand_expr_real_1): Use promote_decl_mode. | |
6809 | * expr.h (promote_function_mode, promote_decl_mode): New. | |
6810 | (promote_mode): Remove last argument. | |
6811 | * function.c (assign_temp): Drop last argument of promote_mode. | |
6812 | (assign_parm_find_data_types): Use promote_function_mode. | |
6813 | (assign_parm_setup_reg): Likewise. | |
6814 | (expand_function_end): Use promote_function_mode. | |
6815 | * calls.c (initialize_argument_information): Use promote_function_mode. | |
6816 | (precompute_arguments): Use promote_mode instead of checking if | |
6817 | only PROMOTE_FUNCTION_MODE is defined. | |
6818 | (expand_call): When making sibcall decisions, use promote_function_mode. | |
6819 | Below, remove an if for targetm.calls.promote_function_return and | |
6820 | and use promote_function_mode. | |
6821 | (emit_library_call_value_1): Use promote_function_mode, fix bug | |
6822 | where promote_mode was passed FOR_CALL == 0 for a return value in an | |
6823 | assertion. | |
6824 | * cfgexpand.c (expand_one_register_var): Use promote_decl_mode. | |
6825 | * explow.c (promote_function_mode, promote_decl_mode): New. | |
6826 | (promote_mode): Keep only the FOR_CALL == 0 case. | |
6827 | * combine.c (setup_incoming_promotion): Remove test of | |
6828 | promote_function_args. Use promote_function_mode. | |
6829 | * stmt.c (expand_value_return): Use promote_decl_mode. | |
6830 | (expand_decl): Use promote_decl_mode. | |
6831 | ||
6832 | * expr.c (store_constructor): Use promote_decl_mode. Remove | |
6833 | now write-only variable unsignedp. | |
6834 | (expand_expr_real_1): Use promote_decl_mode. | |
6835 | * expr.h (promote_function_mode, promote_decl_mode): New. | |
6836 | (promote_mode): Remove last argument. | |
6837 | * function.c (assign_temp): Drop last argument of promote_mode. | |
6838 | (assign_parm_find_data_types): Use promote_function_mode. | |
6839 | (assign_parm_setup_reg): Likewise. | |
6840 | (expand_function_end): Use promote_function_mode. | |
6841 | * calls.c (initialize_argument_information): Use promote_function_mode. | |
6842 | (precompute_arguments): Use promote_mode instead of checking if | |
6843 | only PROMOTE_FUNCTION_MODE is defined. | |
6844 | (expand_call): When making sibcall decisions, use promote_function_mode. | |
6845 | Below, remove an if for targetm.calls.promote_function_return and | |
6846 | and use promote_function_mode. | |
6847 | (emit_library_call_value_1): Use promote_function_mode, fix bug | |
6848 | where promote_mode was passed FOR_CALL == 0 for a return value in an | |
6849 | assertion. | |
6850 | * cfgexpand.c (expand_one_register_var): Use promote_decl_mode. | |
6851 | * explow.c (promote_function_mode, promote_decl_mode): New. | |
6852 | (promote_mode): Keep only the FOR_CALL == 0 case. | |
6853 | * combine.c (setup_incoming_promotion): Remove test of | |
6854 | promote_function_args. Use promote_function_mode. | |
6855 | * stmt.c (expand_value_return): Use promote_decl_mode. | |
6856 | (expand_decl): Use promote_decl_mode. | |
6857 | ||
6858 | * explow.c (promote_function_mode): Just call the target hook. | |
6859 | * targhooks.c (default_promote_function_mode, | |
6860 | default_promote_function_mode_always_promote): New. | |
6861 | * targhooks.h (default_promote_function_mode, | |
6862 | default_promote_function_mode_always_promote): Declare. | |
6863 | * target.h (promote_function_args, promote_function_return): Remove. | |
6864 | (promote_function_mode): New. | |
6865 | * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS, | |
6866 | TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6867 | (TARGET_PROMOTE_FUNCTION_MODE): New. | |
6868 | (TARGET_CALLS): Adjust. | |
6869 | * system.h (TARGET_PROMOTE_FUNCTION_ARGS, | |
6870 | TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison. | |
6871 | ||
6872 | * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move... | |
6873 | * config/s390/s390.c (s390_promote_function_mode): ... here, | |
6874 | with pointer handling. | |
6875 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6876 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6877 | ||
6878 | * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move... | |
6879 | * config/sparc/sparc.c (sparc_promote_function_mode): ... here, | |
6880 | with pointer handling. | |
6881 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6882 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
f100a4a8 | 6883 | |
cde0f3fd PB |
6884 | * config/sh/sh-protos.h (sh_promote_function_mode): New. |
6885 | * config/sh/sh.c (sh_promote_function_mode): New. | |
6886 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6887 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6888 | ||
6889 | * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move... | |
6890 | * config/cris/cris.c (cris_promote_function_mode): ... here. | |
6891 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6892 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6893 | ||
6894 | * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move... | |
6895 | * config/mmix/mmix.c (mmix_promote_function_mode): ... here. | |
6896 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6897 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6898 | ||
6899 | * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move... | |
0589e07d UB |
6900 | * config/arm/arm.c (arm_promote_function_mode): ... here, without |
6901 | complex type handling. | |
cde0f3fd PB |
6902 | (TARGET_PROMOTE_FUNCTION_MODE): Define. |
6903 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6904 | ||
6905 | * config/pa/pa.c (pa_promote_function_mode): New. | |
6906 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6907 | (TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6908 | ||
6909 | * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS, | |
6910 | TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6911 | (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently. | |
6912 | * config/xtensa/xtensa.c: Likewise. | |
6913 | * config/stormy16/stormy16.c: Likewise. | |
6914 | * config/iq2000/iq2000.c: Likewise. | |
6915 | * config/rs6000/rs6000.c: Likewise. | |
6916 | * config/picochip/picochip.c: Likewise. | |
6917 | * config/arc/arc.c: Likewise. | |
6918 | * config/mcore/mcore.c: Likewise. | |
6919 | * config/score/score.c: Likewise. | |
6920 | * config/mips/mips.c: Likewise. | |
6921 | * config/bfin/bfin.c: Likewise. | |
6922 | * config/ia64/ia64.c: Likewise (disabled though). | |
6923 | ||
6924 | * config/frv/frv.h: Remove pointless remark. | |
6925 | ||
6926 | * doc/tm.texi (PROMOTE_FUNCTION_MODE, | |
6927 | TARGET_PROMOTE_FUNCTION_ARGS, | |
6928 | TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into... | |
6929 | (TARGET_PROMOTE_FUNCTION_MODE): ... this. | |
6930 | ||
3cf0e270 SP |
6931 | 2009-08-01 Sebastian Pop <sebastian.pop@amd.com> |
6932 | ||
6933 | * doc/invoke.texi (-fgraphite-force-parallel): Renamed | |
6934 | -floop-parallelize-all. | |
6935 | * toplev.c (process_options): Rename flag_graphite_force_parallel to | |
6936 | flag_loop_parallelize_all. | |
6937 | * tree-ssa-loop.c (gate_graphite_transforms): Same. | |
6938 | * graphite.c (graphite_transform_loops): Same. | |
6939 | * common.opt: Same. | |
6940 | * graphite-poly.c (apply_poly_transforms): Same. | |
6941 | ||
6f7b8b70 RE |
6942 | 2009-07-31 Richard Earnshaw <rearnsha@arm.com> |
6943 | ||
6944 | PR tree-optimization/40914 | |
6945 | * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta, | |
6946 | if set, then check the delta field of the PMF record. | |
6947 | (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta. | |
6948 | (ipa_analyze_call_uses): Handle machines where the vbit for a PMF | |
6949 | call is stored in the delta. | |
6950 | ||
17320477 AN |
6951 | 2009-07-31 Adam Nemet <anemet@caviumnetworks.com> |
6952 | ||
6953 | * config/mips/mips.md (*clear_upper32_dext): New pattern. | |
6954 | ||
e61c6562 UB |
6955 | 2009-07-31 Uros Bizjak <ubizjak@gmail.com> |
6956 | ||
6957 | * config/i386/bsd.h (ASM_BYTE): New define. | |
6958 | * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP. | |
6959 | * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of | |
6960 | .byte. Use fputs or putc instead of fprintf where appropriate. | |
6961 | * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use | |
6962 | fputs or putc instead of fprintf where appropriate. | |
6963 | * config/i386/i386elf.h: Ditto. | |
6964 | * config/i386/sysv4.h: Ditto. | |
f100a4a8 | 6965 | |
e61c6562 UB |
6966 | * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define. |
6967 | * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte. | |
6968 | (*tls_global_dynamic_64): Ditto. | |
6969 | ||
f100a4a8 | 6970 | 2009-07-31 Christian Bruel <christian.bruel@st.com> |
ea2002ba CB |
6971 | |
6972 | * gcc/config.gcc (sh*-*-elf): test with_libgloss. | |
f100a4a8 | 6973 | |
17eb4921 RR |
6974 | 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
6975 | ||
f100a4a8 | 6976 | * config/arm/arm.c (arm_arm_address_cost): Fix typo. |
17eb4921 RR |
6977 | Remove dead code for MINUS. |
6978 | ||
23865616 AG |
6979 | 2009-07-31 Anthony Green <green@moxielogic.com> |
6980 | ||
6981 | * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of | |
6982 | $r12 in prologue. | |
6983 | (moxie_expand_epilogue): Ditto for epilogue. | |
6984 | (moxie_setup_incoming_varargs): ABI change. Use 5 registers for | |
6985 | incoming arguments. | |
6986 | (moxie_function_arg): Ditto. | |
6987 | (moxie_pass_by_reference): Ditto. | |
6988 | (moxie_arg_partial_bytes): Ditto. | |
6989 | * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto. | |
6990 | (FUNCTION_ARG_ADVANCE) Ditto. | |
6991 | (REG_PARM_STACK_SPACE) Ditto. | |
6992 | (FUNCTION_ARG_REGNO_P) Dito. | |
6993 | ||
6994 | * config.gcc: Add moxie linux config support. | |
6995 | * gcc/config/moxie/uclinux.h: New file. | |
6996 | ||
20e19db4 DD |
6997 | 2009-07-31 DJ Delorie <dj@redhat.com> |
6998 | ||
6999 | * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New. | |
7000 | (UNSPECV_SP_SWITCH_E): New. | |
7001 | (sp_switch_1): Change to an unspec. | |
7002 | (sp_switch_2): Change to an unspec. Don't use post-inc when we | |
7003 | replace $r15. | |
7004 | * config/sh/sh.c (sh_expand_prologue): Use the constant pool to | |
7005 | reference the new stack's address | |
7006 | ||
204b560f SP |
7007 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7008 | ||
7009 | * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o, | |
7010 | graphite-clast-to-gimple.o, graphite-dependences.o, | |
7011 | graphite-interchange.o, graphite-poly.o, graphite-ppl.o, | |
7012 | graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o. | |
7013 | (graphite-blocking.o, | |
7014 | graphite-clast-to-gimple.o, graphite-dependences.o, | |
7015 | graphite-interchange.o, graphite-poly.o, graphite-ppl.o, | |
7016 | graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New. | |
7017 | * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false. | |
7018 | * cfgloop.h (struct loop): Add can_be_parallel field. | |
7019 | * common.opt (fgraphite-identity): Moved up. | |
7020 | (fgraphite-force-parallel): New flag. | |
7021 | * graphite.c: Rewrite. | |
7022 | * graphite.h: Rewrite. | |
7023 | * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM | |
7024 | after Graphite. | |
7025 | * toplev.c (graphite_out_file): New file descriptor. | |
7026 | (graphite_in_file): New. | |
7027 | (process_options): flag_graphite_force_parallel cannot be used without | |
7028 | Graphite. | |
7029 | * tree-ssa-loop.c: Include toplev.h. | |
7030 | (gate_graphite_transforms): Enable flag_graphite for | |
7031 | flag_graphite_force_parallel. | |
7032 | ||
2abae5f1 SP |
7033 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7034 | ||
7035 | * ChangeLog.graphite: New. | |
7036 | * graphite-blocking.c: New. | |
7037 | * graphite-clast-to-gimple.c: New. | |
7038 | * graphite-clast-to-gimple.h: New. | |
7039 | * graphite-dependences.c: New. | |
7040 | * graphite-dependences.h: New. | |
7041 | * graphite-interchange.c: New. | |
7042 | * graphite-poly.c: New. | |
7043 | * graphite-poly.h: New. | |
7044 | * graphite-ppl.c: New. | |
7045 | * graphite-ppl.h: New. | |
7046 | * graphite-scop-detection.c: New. | |
7047 | * graphite-scop-detection.h: New. | |
7048 | * graphite-sese-to-poly.c: New. | |
7049 | * graphite-sese-to-poly.h: New. | |
7050 | * sese.c: New. | |
7051 | * sese.h: New. | |
7052 | ||
e7c705bb SP |
7053 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7054 | ||
7055 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. | |
7056 | * tree-chrec.h (evolution_function_right_is_integer_cst): Declared. | |
7057 | ||
765deab7 SP |
7058 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7059 | ||
7060 | * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR. | |
7061 | (scev_is_linear_expression): Return false if the evolution is not | |
7062 | affine multivariate. | |
7063 | ||
ed91d661 SP |
7064 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7065 | ||
7066 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
7067 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
7068 | ||
a37d995a SP |
7069 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7070 | ||
7071 | * tree-data-ref.c (debug_data_references): New. | |
7072 | (debug_data_reference): New. | |
7073 | * tree-data-ref.h (debug_data_references): Declared. | |
7074 | (debug_data_reference): Declared. | |
7075 | ||
ae5b9860 SP |
7076 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7077 | ||
7078 | * tree-data-ref.c (stmt_simple_memref_p: Removed. | |
7079 | * tree-data-ref.h (scop_p): Removed. | |
7080 | (struct data_reference): Remove field scop. | |
7081 | (DR_SCOP): Removed. | |
7082 | (stmt_simple_memref_p): Removed. | |
7083 | ||
8e74b397 SP |
7084 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7085 | ||
7086 | * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument. | |
7087 | * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch | |
7088 | basic block empty. | |
7089 | ||
109e0d57 SP |
7090 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7091 | ||
7092 | * doc/invoke.texi (-fgraphite-force-parallel): Documented. | |
7093 | ||
66a7961b SP |
7094 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7095 | ||
7096 | * doc/invoke.texi (-fgraphite-identity): Documented. | |
7097 | ||
52bdd655 SP |
7098 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7099 | ||
7100 | * tree-scalar-evolution.c: Fix comment. | |
7101 | (instantiate_scev_1): Return unknow from scev instantiation if the | |
7102 | result is not above instantiate_below. | |
7103 | ||
42e6eec5 SP |
7104 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
7105 | ||
7106 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
7107 | static anymore. Instantiate the symbols that may have been introduced | |
7108 | by chrec_apply. | |
7109 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
7110 | Declared. | |
7111 | ||
77806925 DD |
7112 | 2009-07-30 DJ Delorie <dj@redhat.com> |
7113 | ||
7114 | * config/mep/mep.c (mep_asm_init_sections): Add section flags and | |
7115 | .vliw directive to VLIW sections. | |
7116 | ||
6efbd53f RW |
7117 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
7118 | ||
7119 | * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps): | |
7120 | New variables. | |
7121 | ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules. | |
7122 | (AUTOHEADER): New variable. | |
7123 | ($(srcdir)/cstamp-h.in): Use it. | |
7124 | ||
29e6733c MM |
7125 | 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com> |
7126 | Pat Haugen <pthaugen@us.ibm.com> | |
7127 | Revital Eres <ERES@il.ibm.com> | |
7128 | ||
7129 | * config/rs6000/vector.md (VEC_F): Add VSX support. | |
7130 | (VEC_A): Ditto. | |
7131 | (VEC_N): Ditto. | |
7132 | (mov<mode>): Ditto. | |
7133 | (vector_load_<mode>): Ditto. | |
7134 | (vector_store_<mode>): Ditto. | |
7135 | (vector GPR move split): Ditto. | |
7136 | (vec_reload_and_plus_<mptrsize>): Ditto. | |
7137 | (vec_reload_and_reg_<mptrsize>): Ditto. | |
7138 | (add<mode>3): Ditto. | |
7139 | (sub<mode>3): Ditto. | |
7140 | (mul<mode>3): Ditto. | |
7141 | (neg<mode>2): Ditto. | |
7142 | (abs<mode>2): Ditto. | |
7143 | (smin<mode>3): Ditto. | |
7144 | (smax<mode>3): Ditto. | |
7145 | (vector_eq<mode>): Ditto. | |
7146 | (vector_gt<mode>): Ditto. | |
7147 | (vector_ge<mode>): Ditto. | |
7148 | (vector_gtu<mode>): Ditto. | |
7149 | (vector_select_<mode>_uns): Ditto. | |
7150 | (vector_eq_<mode>_p): Ditto. | |
7151 | (vector_gt_<mode>_p): Ditto. | |
7152 | (vector_ge_<mode>_p): Ditto. | |
7153 | (vector_gtu_<mode>_p): Ditto. | |
7154 | (cr6_test_for_zero): Ditto. | |
7155 | (cr6_test_for_zero_reverse): Ditto. | |
7156 | (cr6_test_for_lt): Ditto. | |
7157 | (cr6_test_for_lt_reverse): Ditto. | |
7158 | (xor<mode>3): Ditto. | |
7159 | (ior<mode>3): Ditto. | |
7160 | (and<mode>3): Ditto. | |
7161 | (one_cmpl<mode>2): Ditto. | |
7162 | (nor<mode>2): Ditto. | |
7163 | (andc<mode>2): Ditto. | |
7164 | (float<VEC_int<mode>2): Ditto. | |
7165 | (unsigned_float<VEC_int><mode>2): Ditto. | |
7166 | (fix_trunc<mode><VEC_int>2): Ditto. | |
7167 | (fixuns_trunc<mode><VEC_int>2): Ditto. | |
7168 | (vec_init<mode>): | |
7169 | (vec_set<mode>): Ditto. | |
7170 | (vec_extract<mode>): Ditto. | |
7171 | (vec_interleave_highv4sf): Ditto. | |
7172 | (vec_interleave_lowv4sf): Ditto. | |
7173 | (vec_realign_load_<mode>): Ditto. | |
7174 | (vec_shl_<mode>): Ditto. | |
7175 | (vec_shr_<mode>): Ditto. | |
7176 | (div<mode>3): New patterns for VSX. | |
7177 | (vec_interleave_highv2df): Ditto. | |
7178 | (vec_interleave_lowv2df): Ditto. | |
7179 | (vec_pack_trunc_v2df): Ditto. | |
7180 | (vec_pack_sfix_trunc_v2df): Ditto. | |
7181 | (vec_pack_ufix_trunc_v2df): Ditto. | |
7182 | (vec_unpacks_hi_v4sf): Ditto. | |
7183 | (vec_unpacks_lo_v4sf): Ditto. | |
7184 | (vec_unpacks_float_hi_v4si): Ditto. | |
29e6733c | 7185 | (vec_unpacks_float_lo_v4si): Ditto. |
1262fd02 UB |
7186 | (vec_unpacku_float_hi_v4si): Ditto. |
7187 | (vec_unpacku_float_lo_v4si): Ditto. | |
29e6733c MM |
7188 | (movmisalign<mode>): Ditto. |
7189 | (vector_ceil<mode>2): New patterns for vectorizing math library. | |
7190 | (vector_floor<mode>2): Ditto. | |
7191 | (vector_btrunc<mode>2): Ditto. | |
7192 | (vector_copysign<mode>3): Ditto. | |
7193 | ||
7194 | * config/rs6000/predicates.md (easy_vector_constant_msb): New | |
e61c6562 | 7195 | predicate for setting the high bit in each word, used for copysign. |
29e6733c MM |
7196 | |
7197 | * config/rs6000/ppc-asm.h (f19): Whitespace. | |
7198 | (f32-f63): Define if VSX. | |
7199 | (v0-v31): Define if Altivec. | |
7200 | (vs0-vs63): Define if VSX. | |
7201 | ||
7202 | * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md. | |
7203 | ||
7204 | * config/rs6000/power7.md: New file, provide tuning parameters for | |
7205 | -mcpu=power7. | |
7206 | ||
e61c6562 | 7207 | * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support. |
29e6733c MM |
7208 | (rs6000_cpu_cpp_builtins): Ditto. |
7209 | (altivec_overloaded_builtins): Ditto. | |
7210 | (altivec_resolve_overloaded_builtin): Ditto. | |
7211 | ||
7212 | * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new | |
7213 | debug switch to disable vectorizing simple math builtin | |
7214 | functions. | |
7215 | ||
7216 | * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): | |
7217 | Vectorize simple math builtin functions. | |
7218 | (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target | |
7219 | hook to vectorize math builtins. | |
7220 | (rs6000_override_options): Enable -mvsx on -mcpu=power7. | |
7221 | (rs6000_builtin_conversion): Add VSX/power7 support. | |
7222 | (rs6000_builtin_vec_perm): Ditto. | |
7223 | (vsplits_constant): Add support for loading up a vector constant | |
7224 | with just the high bit set in each part. | |
7225 | (rs6000_expand_vector_init): Add VSX/power7 support. | |
7226 | (rs6000_expand_vector_set): Ditto. | |
7227 | (rs6000_expand_vector_extract): Ditto. | |
7228 | (rs6000_emit_move): Ditto. | |
7229 | (bdesc_3arg): Ditto. | |
7230 | (bdesc_2arg): Ditto. | |
7231 | (bdesc_1arg): Ditto. | |
7232 | (rs6000_expand_ternop_builtin): Ditto. | |
7233 | (altivec_expand_builtin): Ditto. | |
7234 | (rs6000_expand_unop_builtin): Ditto. | |
7235 | (rs6000_init_builtins): Ditto. | |
7236 | (altivec_init_builtins): Ditto. | |
7237 | (builtin_function_type): Ditto. | |
7238 | (rs6000_common_init_builtins): Ditto. | |
7239 | (rs6000_handle_altivec_attribute); Ditto. | |
7240 | (rs6000_mangle_type): Ditto. | |
7241 | (rs6000_vector_mode_supported_p): Ditto. | |
7242 | (rs6000_mode_dependent_address): Altivec addresses with AND -16 | |
7243 | are mode dependent. | |
7244 | ||
7245 | * config/rs6000/vsx.md: New file for VSX support. | |
7246 | ||
7247 | * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for | |
7248 | identifing values with just the most significant bit set. | |
7249 | (enum rs6000_builtins): Add builtins for VSX. Add simple math | |
7250 | vectorized builtins. | |
7251 | ||
7252 | * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete. | |
7253 | (UNSPEC_VRFIM): Delete. | |
7254 | (splitter for loading up vector with most significant bit): New | |
7255 | splitter for vectorizing copysign. | |
7256 | (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for | |
7257 | vectorizing simple math functions. | |
e61c6562 | 7258 | (altivec_vrfip): Add support for vectorizing simple math functions. |
29e6733c MM |
7259 | (altivec_vrfim): Ditto. |
7260 | (altivec_copysign_v4sf3): New insn for Altivec copysign support. | |
7261 | ||
7262 | * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant. | |
7263 | (power7.md, vsx.md): Include for power7 support. | |
7264 | (copysigndf3): Use VSX instructions if -mvsx. | |
7265 | (negdf2_fpr): Ditto. | |
7266 | (absdf2_fpr): Ditto. | |
7267 | (nabsdf2_fpr): Ditto. | |
7268 | (adddf3_fpr): Ditto. | |
7269 | (subdf3_fpr): Ditto. | |
7270 | (muldf3_fpr): Ditto. | |
7271 | (divdf3_fpr): Ditto. | |
7272 | (fix_truncdfdi2_fpr): Ditto. | |
7273 | (cmpdf_internal1): Ditto. | |
7274 | (fred, fred_fpr): Convert into expander/insn to add VSX support. | |
7275 | (btruncdf2, btruncdf2_fpr): Ditto. | |
7276 | (ceildf2, ceildf2_fpr): Ditto. | |
7277 | (floordf2, floordf2_fpr): Ditto. | |
7278 | (floatdidf2, floatdidf2_fpr): Ditto. | |
7279 | (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx. | |
7280 | (fmsubdf4_fpr): Ditto. | |
7281 | (fnmadddf4_fpr_1): Ditto. | |
7282 | (fnmadddf4_fpr_2): Ditto. | |
7283 | (fnmsubdf4_fpr_1): Ditto. | |
7284 | (fnmsubdf4_fpr_2): Ditto. | |
7285 | (fixuns_truncdfdi2): Add expander for VSX support. | |
7286 | (fix_truncdfdi2): Ditto. | |
7287 | (fix_truncdfsi2): Ditto. | |
7288 | (ftruncdf2): Ditto. | |
7289 | (btruncsf2): Whitespace. | |
7290 | (movdf_hardfloat32): Add support for VSX registers. | |
7291 | (movdf_softfloat32): Ditto. | |
7292 | (movdf_hardfloat64): Ditto. | |
7293 | (movdf_hardfloat64_mfpgpr): Ditto. | |
7294 | (movdf_softfloat64): Ditto. | |
7295 | (movti splitters): Add check for vector registers supporting | |
7296 | TImode in the future. | |
7297 | (bpermd): Add power7 bpermd instruction. | |
7298 | ||
7299 | * config/rs6000/altivec.h (vec_div): Define if VSX. | |
7300 | (vec_mul): Ditto. | |
7301 | (vec_msub): Ditto. | |
7302 | (vec_nmadd): Ditto. | |
7303 | (vec_nearbyint): Ditto. | |
7304 | (vec_rint): Ditto. | |
7305 | (vec_sqrt): Ditto. | |
e61c6562 UB |
7306 | (all predicates): Use the generic builtin function, and not the V4SF |
7307 | specific function so that the predicates will work with VSX's V2DF. | |
29e6733c MM |
7308 | (vec_all_*): Ditto. |
7309 | (vec_any_*): Ditto. | |
7310 | ||
7311 | * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions): | |
7312 | Document new VSX functions and types. | |
7313 | ||
7314 | * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx | |
7315 | switches. | |
7316 | ||
7317 | * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws", | |
7318 | "wa", and "j" constraints. Modify "v" to talk about Altivec | |
7319 | instead of just vector. | |
7320 | ||
f5045c96 AM |
7321 | 2009-07-30 Andrew MacLeod <amacleod@redhat.com> |
7322 | ||
7323 | PR debug/26475 | |
7324 | * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set | |
7325 | location for phi arguments. | |
7326 | (rewrite_update_phi_arguments): Find locations for reaching defs. | |
7327 | * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): | |
7328 | Add location to add_phi_arg calls. | |
7329 | * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations. | |
7330 | * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge, | |
7331 | split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations. | |
7332 | * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call, | |
7333 | create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations. | |
7334 | * tree.h (struct phi_arg_d): Add location_t to PHI arguments. | |
7335 | * tree-phinodes.c (make_phi_node): Initialize location. | |
7336 | (resize_phi_node): Initialize location to UNKNOWN_LOCATION. | |
7337 | (add_phi_arg): Add location parameter. | |
7338 | (remove_phi_arg_num): Move location when moving phi argument. | |
f100a4a8 | 7339 | * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set |
f5045c96 AM |
7340 | location. |
7341 | * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop, | |
7342 | slpeel_update_phi_nodes_for_guard1, | |
7343 | slpeel_update_phi_nodes_for_guard2, | |
7344 | slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations, | |
7345 | vect_loop_versioning): Set locations. | |
7346 | * tree-parloops.c (create_phi_for_local_result, | |
7347 | transform_to_exit_first_loop, create_parallel_loop): Add locations. | |
7348 | * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present. | |
7349 | * tree-vect-loop.c (get_initial_def_for_induction, | |
7350 | vect_create_epilog_for_reduction, vect_finalize_reduction): Add | |
7351 | locations. | |
7352 | * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus. | |
7353 | (gimple_phi_arg_location_from_edge): New. Return locus from an edge. | |
7354 | (gimple_phi_arg_set_location): New. Set locus. | |
7355 | (gimple_phi_arg_has_location): New. Check for locus. | |
7356 | (redirect_edge_var_map_location): New. Return locus from var_map. | |
7357 | * tree-vect-data-refs.c (vect_setup_realignment): Set location. | |
7358 | * tree-ssa-phiopt.c (conditional_replacement): Set locus when | |
7359 | combining PHI arguments. | |
7360 | (cond_store_replacement): Set location. | |
7361 | * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible. | |
7362 | * grpahite.c (add_loop_exit_phis, add_guard_exit_phis, | |
7363 | scop_add_exit_phis_edge): Add locations. | |
7364 | * tree-cfgcleanup.c (remove_forwarder_block, | |
7365 | remove_forwarder_block_with_phi): Add locations. | |
7366 | * tree-ssa-pre.c (insert_into_preds_of_block): Add locations. | |
7367 | * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add | |
7368 | locations. | |
7369 | * tree-ssa-dce.c (forward_edge_to_pdom): Add locations. | |
7370 | * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge, | |
7371 | flush_pending_stmts): Add source location. | |
7372 | * lambda-code.c (perfect_nestify): Maintain location stack with argument | |
7373 | stack to preserve locations. | |
7374 | * tree-vect-stmts.c (vectorizable_load): Add location. | |
7375 | * tree-inline.c (copy_phis_for_bb): Copy locus. | |
7376 | (setup_one_parameter): Add call locus to inlined parameter stmts. | |
7377 | (initialize_inlined_parameters): Pass in call location as parameter | |
7378 | assignment locus. | |
7379 | (tree_function_versioning): Pass location to setup_one_parameter. | |
7380 | * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations. | |
7381 | * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for | |
7382 | copy and edge lists. | |
7383 | (insert_partition_copy_on_edge, insert_value_copy_on_edge, | |
f100a4a8 | 7384 | insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a |
f5045c96 AM |
7385 | locus parameter and override the stmt default if provided. |
7386 | (new_elim_graph, clear_elim_graph, delete_elim_graph, | |
7387 | elim_graph_add_edge, elim_graph_remove_succ_edge, | |
7388 | FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build, | |
7389 | elim_forward, elim_unvisited_predecessor, elim_backward, elim_create, | |
7390 | eliminate_phi): Add locus info in elimination graph for each edge and | |
7391 | value copy. | |
7392 | (insert_backedge_copies): Copy locus if present. | |
7393 | * tree-flow.h (struct _edge_var_map): Add locus field. | |
7394 | * tree-switch_conversions.c (fix_phi_nodes): Add locations. | |
7395 | * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block, | |
f100a4a8 | 7396 | add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add |
f5045c96 AM |
7397 | locations. |
7398 | * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations. | |
f100a4a8 | 7399 | |
2d4b90b1 MJ |
7400 | 2009-07-30 Martin Jambor <mjambor@suse.cz> |
7401 | ||
7402 | PR tree-optimization/40570 | |
7403 | * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single | |
7404 | use inlining loops. | |
7405 | ||
08dab97a RL |
7406 | 2009-07-30 Razya Ladelsky <razya@il.ibm.com> |
7407 | ||
7408 | * ssa-loop-manip.c: Include langhooks.h. | |
7409 | (rewrite_phi_with_iv): New. | |
7410 | (rewrite_all_phi_nodes_with_iv): New. | |
7411 | (canonicalize_loop_ivs): Move here from tree-parloops.c. | |
7412 | Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv. | |
7413 | * tree-parloops.c (loop_parallel_p): Move out all conditions | |
7414 | except dependency check. | |
7415 | (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c. | |
7416 | (gen_parallel_loop): Call canonicalize_loop_ivs without | |
7417 | reduction_list argument. | |
7418 | (build_new_reduction): New. | |
7419 | (gather_scalar_reductions): New. | |
7420 | (try_get_loop_niter): New. | |
7421 | (try_create_reduction_list): New. | |
7422 | (parallleize_loops): Change the parallel conditions check. | |
7423 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
7424 | * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency. | |
7425 | ||
88c2fd3d DK |
7426 | 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com> |
7427 | ||
7428 | * opt-functions.awk (opt_args): Allow argument to be enclosed in | |
7429 | curly braces. | |
7430 | * doc/options.texi (Option properties): Mention new quoting syntax. | |
7431 | ||
5ea8f977 DR |
7432 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7433 | ||
7434 | * config/alpha/alpha.c (alpha_start_function): | |
7435 | Handle VMS_DEBUG_MAIN_POINTER | |
7436 | * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro. | |
7437 | * doc/invoke.texi: Document -mdebug-main switch. | |
7438 | ||
9b2a5ef7 RH |
7439 | 2009-07-29 Richard Henderson <rth@redhat.com> |
7440 | ||
7441 | * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy. | |
7442 | (cgraph_create_edge_including_clones): Likewise. | |
7443 | * tree-inline.c (copy_bb): Operate on the correct edges | |
7444 | when updating the callgraph. | |
7445 | ||
71cd2220 DR |
7446 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7447 | ||
7448 | * config/alpha/vms-cc.c: Deleted. | |
7449 | * config/alpha/vms-ld.c: Deleted. | |
7450 | * config/alpha/t-vms64: Moved to config/vms | |
7451 | * config/alpha/vms-crt0-64.c: Moved to config/vms | |
7452 | * config/alpha/vms-crt0.c: Moved to config/vms | |
7453 | * config/alpha/vms-psxcrt0-64.c: Moved to config/vms | |
7454 | * config/alpha/vms-psxcrt0.c: Moved to config/vms | |
7455 | * config/alpha/xm-vms.h: Moved to config/vms | |
7456 | * config/alpha/x-vms: Moved to config/vms | |
7457 | * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file | |
7458 | config/vms/t-vms. | |
7459 | * config/vms/t-vms: Moved here from config/alpha. Alpha specific | |
7460 | parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set. | |
7461 | (version): Set. | |
7462 | * config/vms/t-vms64: Moved here from config/alpha | |
7463 | * config/vms/vms-crt0-64.c: Moved here from config/alpha. | |
7464 | (argc,argv,envp): Enforce 32bit malloc'ing. | |
7465 | * config/vms/vms-psxcrt0-64.c: Likewise. | |
7466 | * config/vms/vms-crt0.c: Moved here from config/alpha. | |
7467 | * config/vms/vms-psxcrt0.c: Likewise. | |
7468 | * config/vms/vms-crtl-64.h: New file. | |
7469 | * config/vms/vms-crtl.h: New file. | |
7470 | * config/vms/vms.opt: New file. | |
7471 | * config/vms/xm-vms64.h: New file. | |
7472 | * config/vms/xm-vms.h: Moved here from config/alpha. | |
7473 | (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR): | |
7474 | Set. | |
7475 | * config/vms/x-vms: Moved here from config/alpha. | |
7476 | (version, VMS_EXTRA_PARTS): Moved to t-vms. | |
7477 | (vms-ld.o, vms-cc.o): Removed. | |
7478 | (LN, LN_S, USE_COLLECT2, POD2MAN): Set. | |
7479 | ||
82b75b46 DR |
7480 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7481 | ||
7482 | * dwarf2out.c (add_name_and_src_coords_attributes): Push on the | |
7483 | correct stack (obvious VMS fix). | |
7484 | ||
c2cffdc8 DR |
7485 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7486 | ||
7487 | * dwarf2out.c (output_file_names): Output VMS style file name, size, | |
7488 | date, version info if VMS_DEBUGGING_INFO defined. | |
7489 | * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name, | |
7490 | size, date calculating code moved here. | |
7491 | ||
0244b03f PB |
7492 | 2009-07-29 Paul Brook <paul@codesourcery.com> |
7493 | ||
7494 | * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and | |
7495 | do_push/do_pop. | |
7496 | ||
bc4eac6d UB |
7497 | 2009-07-29 Uros Bizjak <ubizjak@gmail.com> |
7498 | ||
7499 | PR target/40577 | |
7500 | * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src | |
7501 | to DImode when generating insq_le insn. | |
7502 | ||
6f1595d3 DR |
7503 | 2009-07-28 Douglas B Rupp <rupp@gnat.com> |
7504 | ||
7505 | * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET): | |
7506 | New macro set for VMS_DEBUGGGING_INFO. | |
7507 | (AT_string_form): Use it. | |
7508 | ||
820ca276 DD |
7509 | 2009-07-28 DJ Delorie <dj@redhat.com> |
7510 | ||
7511 | * config/mep/mep.c (vtext_section): New. | |
7512 | (vftext_section): New. | |
7513 | (ftext_section): New. | |
7514 | (mep_select_section): Add support for functions. | |
7515 | (mep_unique_section): Likewise. | |
7516 | (mep_asm_init_sections): Likewise. | |
3fb0a660 | 7517 | (mep_encode_section_info): Remove it from here. |
820ca276 DD |
7518 | |
7519 | * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define. | |
7520 | ||
e2121f17 PB |
7521 | 2009-07-28 Paolo Bonzini <bonzinI@gnu.org> |
7522 | ||
7523 | * tree.h (TREE_DEPRECATED): Document it is used for types too. | |
7524 | (TYPE_VECTOR_OPAQUE): Use default_def_flag | |
7525 | ||
dde08f9b DR |
7526 | 2009-07-28 Douglas B Rupp <rupp@gnat.com> |
7527 | ||
7528 | * dwarf2out.c (output_file_names): Test new macro | |
7529 | DWARF2_DIR_SHOULD_END_WITH_SEPARATOR. | |
7530 | (add_comp_dir_attribute): Likewise. | |
7531 | ||
032502c2 KT |
7532 | 2009-07-28 Kai Tietz <kai.tietz@onevision.com> |
7533 | ||
7534 | * config/i386/mingw-w64.h (LINK_SPEC): Add | |
7535 | separating space between commands. | |
7536 | ||
b29c2ffd JH |
7537 | 2009-07-28 Jan Hubicka <jh@suse.cz> |
7538 | ||
7539 | PR tree-optimization/40759 | |
7540 | * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses | |
7541 | for renaming. | |
7542 | ||
683a1be6 DD |
7543 | 2009-07-27 DJ Delorie <dj@redhat.com> |
7544 | ||
7545 | * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit | |
7546 | types are dword-aligned. | |
7547 | (mep_expand_va_start): Likewise. | |
7548 | ||
cf157324 | 7549 | 2009-07-27 Olivier Hainque <hainque@adacore.com> |
bc4eac6d | 7550 | Douglas B Rupp <rupp@gnat.com> |
cf157324 OH |
7551 | |
7552 | * convert.c (convert_to_pointer): Don't assume the target | |
7553 | pointer type is POINTER_SIZE long. Fetch its precision instead. | |
7554 | ||
d4d798a3 DR |
7555 | 2009-07-27 Douglas B Rupp <rupp@gnat.com> |
7556 | ||
7557 | * system.h (fopen): Undefine if macro. | |
7558 | ||
5823ade1 JJ |
7559 | 2009-07-27 Jakub Jelinek <jakub@redhat.com> |
7560 | ||
7561 | * dwarf2out.c (output_cfi_p): Removed. | |
7562 | (output_cfis): New function. | |
7563 | (output_fde): New function, split from output_call_frame_info. | |
7564 | (output_call_frame_info): Use it. | |
7565 | (dwarf2out_switch_text_section): Use output_cfis. | |
7566 | ||
648abd76 KT |
7567 | 2009-07-24 Kai Tietz <kai.tietz@onevision.com> |
7568 | ||
7569 | * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when | |
7570 | TARGET_BI_ARCH is specified without enabling SJLJ. | |
7571 | * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT, | |
7572 | if TARGET_64BIT and TARGET_BI_ARCH aren't defined. | |
7573 | ||
4b89636e MP |
7574 | 2009-07-26 Mikael Pettersson <mikpe@it.uu.se> |
7575 | ||
7576 | * arm.md (negdi2): Use DImode if forcing a value into a register. | |
7577 | ||
63827fb8 IR |
7578 | 2009-07-26 Ira Rosen <irar@il.ibm.com> |
7579 | ||
7580 | PR tree-optimization/40801 | |
7581 | * tree-vect-stmts.c (vectorizable_call): Get previous copy | |
7582 | of vector operand from the previous copy of vector statement. | |
7583 | Pass the correct definition type value to | |
7584 | vect_get_vec_def_for_stmt_copy(). | |
7585 | ||
db9369bb JDA |
7586 | 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
7587 | ||
7588 | * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to | |
7589 | const char ** conversion. | |
7590 | ||
2df77822 DD |
7591 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7592 | ||
7593 | * system.h (gcc_assert): Invoke __builtin_unreachable() instead of | |
7594 | fancy_abort() if !ENABLE_ASSERT_CHECKING. | |
7595 | (gcc_unreachable): Invoke __builtin_unreachable() if | |
7596 | !ENABLE_ASSERT_CHECKING. | |
7597 | ||
1e211590 DD |
7598 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7599 | ||
7600 | PR rtl-optimization/40445 | |
7601 | * emit-rtl.c (next_nonnote_insn_bb): New function. | |
7602 | * rtl.h (next_nonnote_insn_bb): Declare new function. | |
7603 | * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block | |
7604 | with no successors that is the successor of the ENTRY_BLOCK. | |
7605 | Continue from the top after removing an empty fallthrough block. | |
7606 | * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead | |
7607 | of next_nonnote_insn. | |
7608 | ||
ba21aba3 DD |
7609 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7610 | ||
bc4eac6d | 7611 | * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks. |
f100a4a8 | 7612 | |
86631ea3 MJ |
7613 | 2009-07-25 Martin Jambor <mjambor@suse.cz> |
7614 | ||
7615 | * c-common.c (c_common_attribute_table): New element for noclone. | |
7616 | (handle_noclone_attribute): New function. Forward-declare. | |
7617 | * tree-inline.c (tree_versionable_function_p): Check for noclone | |
7618 | attribute. | |
7619 | * doc/extend.texi (Labels as Values): Document need for noclone. | |
7620 | (Function Attributes): Document noclone attribute. | |
7621 | ||
0cf856b7 JJ |
7622 | 2009-07-25 Jakub Jelinek <jakub@redhat.com> |
7623 | ||
7624 | PR rtl-optimization/34999 | |
7625 | * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi | |
7626 | and dw_fde_switched_cold_to_hot fields. | |
7627 | (output_cfi_p): New function. | |
7628 | (output_call_frame_info): If fde->dw_fde_switched_sections, | |
7629 | output 2 FDEs instead of one with corrupted header. | |
7630 | (dwarf2out_do_cfi_startproc): New function. | |
7631 | (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi | |
7632 | and fde->dw_fde_switched_cold_to_hot. | |
7633 | (dwarf2out_switch_text_section): Compute | |
7634 | fde->dw_fde_switched_cold_to_hot. Switch to new text section here. | |
7635 | If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call | |
7636 | dwarf2out_do_cfi_startproc plus emit again currently active CFI insns. | |
7637 | Otherwise, compute fde->dw_fde_switch_cfi. | |
7638 | ||
2a2869d6 CC |
7639 | 2009-07-24 Cary Coutant <ccoutant@google.com> |
7640 | ||
7641 | * tree-cfg.c (assign_discriminator): Add explicit parentheses. | |
7642 | ||
cbea518e CC |
7643 | 2009-07-24 Cary Coutant <ccoutant@google.com> |
7644 | ||
7645 | * cfghooks.c (split_block): Copy discriminator to new block. | |
7646 | * tree-cfg.c (assign_discriminator): Check location of last | |
7647 | instruction in block as well as first. | |
7648 | ||
87da3843 UB |
7649 | 2009-07-24 Uros Bizjak <ubizjak@gmail.com> |
7650 | ||
7651 | * config/i386/linux.c: Use fputs or putc instead of fprintf | |
7652 | where appropriate. | |
7653 | * config/i386/gas.h: Ditto. | |
7654 | * config/i386/x86-64.h: Ditto. | |
7655 | * config/i386/att.h: Ditto. | |
7656 | ||
a22fb74c AK |
7657 | 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
7658 | ||
7659 | * expmed.c (emit_store_flag): Use a recursive call to optimize the | |
7660 | xor case. | |
7661 | ||
5b9633c8 MJ |
7662 | 2009-07-24 Martin Jambor <mjambor@suse.cz> |
7663 | ||
7664 | * ipa-prop.h (struct ipa_node_params): New flag node_enqued. | |
7665 | (ipa_push_func_to_list_1): Declare. | |
7666 | (ipa_push_func_to_list): New function. | |
7667 | ||
7668 | * ipa-prop.c (ipa_push_func_to_list_1): New function. | |
7669 | (ipa_init_func_list): Call ipa_push_func_to_list_1. | |
7670 | (ipa_push_func_to_list): Removed. | |
7671 | (ipa_pop_func_from_list): Clear node_enqueued flag. | |
7672 | ||
ff5b964d | 7673 | 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com> |
f100a4a8 | 7674 | |
ff5b964d AK |
7675 | * config/s390/s390.c (override_options): Default |
7676 | max-unrolled-insns to 100 for z10 tuning. | |
7677 | ||
223cf84d TG |
7678 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> |
7679 | ||
7680 | * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o | |
7681 | tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o, | |
7682 | tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o, | |
7683 | tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o, | |
7684 | tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o | |
7685 | tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o, | |
7686 | lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H. | |
7687 | ||
3a802a9e KT |
7688 | 2009-07-24 Kai Tietz <kai.tietz@onevision.com> |
7689 | ||
7690 | * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and | |
7691 | use default set in mingw32.h header. | |
7692 | * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and | |
7693 | 64-bit /mingw/include path. | |
7694 | (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib | |
7695 | path. | |
7696 | ||
c580edc8 NV |
7697 | 2009-07-23 Neil Vachharajani <nvachhar@google.com> |
7698 | ||
7699 | PR rtl-optimization/40209 | |
7700 | * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem. | |
7701 | ||
0d42d490 UB |
7702 | 2009-07-23 Uros Bizjak <ubizjak@gmail.com> |
7703 | ||
7704 | * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate | |
7705 | ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings | |
7706 | with the rest of string where appropriate. Use fputs or putc | |
7707 | instead of fprintf where appropriate. | |
7708 | ||
a72c65c7 MM |
7709 | 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com> |
7710 | Pat Haugen <pthaugen@us.ibm.com> | |
7711 | Revital Eres <ERES@il.ibm.com> | |
7712 | ||
7713 | * config/rs6000/vector.md: New file. Move most of the vector | |
7714 | expander support here from altivec.md to allow for the VSX vector | |
7715 | unit in the future. Add support for secondary_reload patterns. | |
7716 | Rewrite the patterns for vector comparison, and vector comparison | |
7717 | predicate instructions so that the RTL expresses the desired | |
7718 | behavior, instead of using unspec. | |
7719 | ||
7720 | * config/rs6000/constraints.md ("f" constraint): Use | |
7721 | rs6000_constraints to hold the precalculated register class. | |
7722 | ("d" constraint): Ditto. | |
7723 | ("wd" constraint): New constraint for VSX. | |
7724 | ("wf" constraint): Ditto. | |
7725 | ("ws" constraint): Ditto. | |
7726 | ("wa" constraint): Ditto. | |
7727 | ("wZ" constraint): Ditto. | |
7728 | ("j" constraint): Ditto. | |
7729 | ||
7730 | * config/rs6000/predicates.md (vsx_register_operand): New | |
7731 | predicate for VSX. | |
7732 | (vfloat_operand): New predicate for vector.md. | |
7733 | (vint_operand): Ditto. | |
7734 | (vlogical_operand): Ditto. | |
7735 | (easy_fp_constant): If VSX, 0.0 is an easy constant. | |
7736 | (easy_vector_constant): Add VSX support. | |
7737 | (altivec_indexed_or_indirect_operand): New predicate for | |
7738 | recognizing Altivec style memory references with AND -16. | |
7739 | ||
7740 | * config/rs6000/rs6000.c (rs6000_vector_reload): New static global | |
7741 | for vector secondary reload support. | |
87da3843 UB |
7742 | (rs6000_vector_reg_class): Delete, replacing it with |
7743 | rs6000_constraints. | |
a72c65c7 MM |
7744 | (rs6000_vsx_reg_class): Ditto. |
7745 | (rs6000_constraints): New array to hold the register classes of | |
7746 | each of the register constraints that can vary at runtime. | |
7747 | (builtin_mode_to_type): New static array for builtin function type | |
7748 | creation. | |
7749 | (builtin_hash_table): New static hash table for builtin function | |
7750 | type creation. | |
7751 | (TARGET_SECONDARY_RELOAD): Define target hook. | |
7752 | (TARGET_IRA_COVER_CLASSES): Ditto. | |
7753 | (rs6000_hard_regno_nregs_internal): If -mvsx, floating point | |
0d42d490 | 7754 | registers are 128 bits if VSX memory reference instructions are used. |
a72c65c7 MM |
7755 | (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory |
7756 | unit is being used. | |
7757 | (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global. | |
7758 | (rs6000_debug_reg_global): Move -mdebug=reg statements here. | |
7759 | Print several of the scheduling related parameters. | |
7760 | (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in | |
7761 | rs6000_constraints instead of rs6000_vector_reg_class. Move | |
7762 | -mdebug=reg code to rs6000_debug_reg_global. Add support for | |
7763 | -mvsx-align-128 debug switch. Drop testing float_p if VSX or | |
7764 | Altivec. Add VSX support. Setup for secondary reload support on | |
7765 | Altivec/VSX registers. | |
7766 | (rs6000_override_options): Make power7 set the scheduling groups | |
7767 | like the power5. Add support for new debug switches to override | |
7768 | the scheduling defaults. Temporarily disable -mcpu=power7 from | |
7769 | setting -mvsx. Add support for debug switches -malways-hint, | |
7770 | -msched-groups, and -malign-branch-targets. | |
7771 | (rs6000_buitlin_conversion): Add support for returning unsigned | |
7772 | vector conversion functions to fix regressions due to stricter | |
7773 | type checking. | |
7774 | (rs6000_builtin_mul_widen_even): Ditto. | |
7775 | (rs6000_builtin_mul_widen_odd): Ditto. | |
7776 | (rs6000_builtin_vec_perm): Ditto. | |
7777 | (rs6000_vec_const_move): On VSX, use xxlxor to clear register. | |
7778 | (rs6000_expand_vector_init): Initial VSX support for using xxlxor | |
7779 | to zero a register. | |
7780 | (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is | |
7781 | generated upstream. | |
7782 | (bdesc_3arg): Add builtins for unsigned types. Add builtins for | |
7783 | VSX types for bit operations. Changes to accomidate vector.md. | |
7784 | (bdesc_2arg): Ditto. | |
7785 | (bdesc_1arg): Ditto. | |
7786 | (struct builtin_description_predicates): Rewrite predicate | |
7787 | handling so that RTL describes the operation, instead of passing | |
7788 | the instruction to be used as a string argument. | |
7789 | (bdesc_altivec_preds): Ditto. | |
7790 | (altivec_expand_predicate_builtin): Ditto. | |
7791 | (altivec_expand_builtin): Ditto. | |
7792 | (rs6000_expand_ternop_builtin): Use a switch instead of an if | |
7793 | statement for vsldoi support. | |
0d42d490 | 7794 | (altivec_expand_ld_builtin): Change to use new names from vector.md. |
a72c65c7 MM |
7795 | (altivec_expand_st_builtin): Ditto. |
7796 | (paired_expand_builtin): Whitespace changes. | |
7797 | (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the | |
7798 | builtin_mode_to_type table for secondary reload. Call | |
7799 | builtin_function_type to build random builtin functions. | |
7800 | (altivec_init_builtins): Change to use builtin_function_type to | |
7801 | create builtin function types dynamically as we need them. | |
7802 | (builtin_hash_function): New support for hashing the tree types | |
7803 | for builtin function as we need it, rather than trying to build | |
0d42d490 | 7804 | all of the trees that we need. Add initial preliminary VSX support. |
a72c65c7 MM |
7805 | (builtin_function_type): Ditto. |
7806 | (builtin_function_eq): Ditto. | |
7807 | (builtin_hash_struct): Ditto. | |
7808 | (rs6000_init_builtins): Ditto. | |
7809 | (rs6000_common_init_builtins): Ditto. | |
7810 | (altivec_init_builtins): Ditto. | |
7811 | (rs6000_common_init_builtins): Ditto. | |
7812 | (enum reload_reg_type): New enum for simplifing reg classes. | |
7813 | (rs6000_reload_register_type): Simplify register classes into GPR, | |
0d42d490 | 7814 | Vector, and other registers. Altivec and VSX addresses in reload. |
a72c65c7 MM |
7815 | (rs6000_secondary_reload_inner): Ditto. |
7816 | (rs6000_ira_cover_classes): New target hook, that returns the | |
7817 | appropriate cover classes, based on -mvsx being used or not. | |
7818 | (rs6000_secondary_reload_class): Add VSX support. | |
7819 | (get_vec_cmp_insn): Delete, rewrite vector conditionals. | |
7820 | (get_vsel_insn): Ditto. | |
7821 | (rs6000_emit_vector_compare): Rewrite vector conditional support | |
7822 | so that where we can, we use RTL operators, instead of blindly use | |
7823 | UNSPEC. | |
7824 | (rs6000_emit_vector_select): Ditto. | |
7825 | (rs6000_emit_vector_cond_expr): Ditto. | |
0d42d490 | 7826 | (rs6000_emit_minmax): Directly generate min/max under altivec, vsx. |
a72c65c7 | 7827 | (create_TOC_reference): Add -mdebug=addr support. |
0d42d490 | 7828 | (emit_frame_save): VSX loads/stores need register indexed addressing. |
a72c65c7 MM |
7829 | |
7830 | * config/rs6000/rs6000.md: Include vector.md. | |
7831 | ||
7832 | * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md. | |
7833 | ||
7834 | * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add | |
7835 | support for V2DI, V2DF in logical, permute, select operations. | |
7836 | ||
7837 | * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug | |
7838 | switch for vsx/power7. | |
7839 | (-mvsx-scalar-memory): Ditto. | |
7840 | (-mvsx-align-128): Ditto. | |
7841 | (-mallow-movmisalign): Ditto. | |
7842 | (-mallow-df-permute): Ditto. | |
7843 | (-msched-groups): Ditto. | |
7844 | (-malways-hint): Ditto. | |
7845 | (-malign-branch-targets): Ditto. | |
f100a4a8 | 7846 | |
a72c65c7 MM |
7847 | * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target |
7848 | hook instead. | |
7849 | (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx. | |
7850 | (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx. | |
7851 | (rs6000_vector_reg_class): Delete. | |
7852 | (rs6000_vsx_reg_class): Ditto. | |
7853 | (enum rs6000_reg_class_enum): New enum for the constraints that | |
7854 | vary based on target switches. | |
7855 | (rs6000_constraints): New array to hold the register class for all | |
7856 | of the register constraints that vary based on the switches used. | |
7857 | (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions. | |
7858 | (enum rs6000_builtins): Add unsigned varients for the builtin | |
7859 | declarations returned by target hooks for expanding multiplies, | |
7860 | select, and permute operations. Add VSX builtins. | |
7861 | (enum rs6000_builtin_type_index): Add entries for VSX. | |
7862 | (V2DI_type_node): Ditto. | |
7863 | (V2DF_type_node): Ditto. | |
7864 | (unsigned_V2DI_type_node): Ditto. | |
7865 | (bool_long_type_node): Ditto. | |
7866 | (intDI_type_internal_node): Ditto. | |
7867 | (uintDI_type_internal_node): Ditto. | |
7868 | (double_type_internal_node): Ditto. | |
7869 | ||
7870 | * config/rs6000/altivec.md (whole file): Move all expanders to | |
7871 | vector.md from altivec.md. Rename insn matching functions to be | |
7872 | altivec_foo. | |
7873 | (UNSPEC_VCMP*): Delete, rewrite vector comparisons. | |
7874 | (altivec_vcmp*): Ditto. | |
7875 | (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm. | |
7876 | (VM): New iterator for moves that includes the VSX types. | |
7877 | (altivec_vperm_<mode>): Add VSX types. Add unsigned types. | |
7878 | (altivec_vperm_<mode>_uns): New, for unsigned types. | |
0d42d490 | 7879 | (altivec_vsel_*): Rewrite vector comparisons and predicate builtins. |
a72c65c7 MM |
7880 | (altivec_eq<mode>): Ditto. |
7881 | (altivec_gt<mode>): Ditto. | |
7882 | (altivec_gtu<mode>): Ditto. | |
7883 | (altivec_eqv4sf): Ditto. | |
7884 | (altivec_gev4sf): Ditto. | |
7885 | (altivec_gtv4sf): Ditto. | |
7886 | (altivec_vcmpbfp_p): Ditto. | |
7887 | ||
6d53a79f RE |
7888 | 2009-07-23 Richard Earnshaw <rearnsha@arm.com> |
7889 | ||
f100a4a8 | 7890 | * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to |
6d53a79f RE |
7891 | unsigned HWI. |
7892 | ||
33ecc126 UB |
7893 | 2009-07-23 Uros Bizjak <ubizjak@gmail.com> |
7894 | ||
7895 | PR target/40832 | |
011a3198 | 7896 | * config/i386/i386.c (output_387_ffreep): Rewrite to use |
33ecc126 UB |
7897 | ASM_SHORT instead of .word. |
7898 | * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT | |
7899 | instead of .word in asm template. | |
7900 | ||
db1a8d98 VM |
7901 | 2009-07-22 Vladimir Makarov <vmakarov@redhat.com> |
7902 | ||
7903 | PR target/37488 | |
7904 | * ira-lives.c (bb_has_abnormal_call_pred): New function. | |
7905 | (process_bb_node_lives): Use it. | |
7906 | ||
7907 | * ira.c (setup_cover_and_important_classes): Don't setup | |
7908 | ira_important_class_nums. Add cover classes to the end of | |
7909 | important classes. | |
011a3198 UB |
7910 | (cover_class_order, comp_reg_classes_func, reorder_important_classes): |
7911 | New. | |
db1a8d98 VM |
7912 | (find_reg_class_closure): Use reorder_important_classes. |
7913 | ||
7914 | * config/i386/i386.h (IRA_COVER_CLASSES): Remove. | |
7915 | ||
7916 | * config/i386/i386.c (i386_ira_cover_classes): New function. | |
7917 | (TARGET_IRA_COVER_CLASSES): Redefine. | |
7918 | ||
7919 | * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about | |
7920 | importance of order of cover classes in the array. | |
f100a4a8 | 7921 | |
cae63f88 DN |
7922 | 2009-07-22 Diego Novillo <dnovillo@google.com> |
7923 | ||
7924 | * tree-pass.h (TDF_EH): Define. | |
7925 | * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS | |
7926 | contains TDF_EH, print the EH region number holding GS. | |
7927 | * tree-dump.c (dump_options): Add "eh". | |
7928 | * doc/invoke.texi: Document it. | |
7929 | ||
61ed6392 DK |
7930 | 2009-07-22 Doug Kwan <dougkwan@google.com> |
7931 | ||
7932 | * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers. | |
7933 | ||
a8338640 MM |
7934 | 2009-07-22 Michael Matz <matz@suse.de> |
7935 | ||
7936 | PR tree-optimization/35229 | |
7937 | PR tree-optimization/39300 | |
7938 | ||
7939 | * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h. | |
7940 | (inhibit_phi_insertion): New function. | |
7941 | (insert_into_preds_of_block): Call it for REFERENCEs. | |
7942 | (init_pre): Initialize and finalize scalar evolutions. | |
7943 | * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h . | |
7944 | ||
1a66936f UB |
7945 | 2009-07-22 Uros Bizjak <ubizjak@gmail.com> |
7946 | ||
7947 | * config/i386/predicates.md (zero_extended_scalar_load_operand): | |
7948 | Use CONST_VECTOR_NUNITS to determine number of elements. | |
7949 | ||
4fe6dea8 AK |
7950 | 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com> |
7951 | ||
7952 | * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints. | |
7953 | (U, W): Constraints are now deprecated and will be removed if we | |
f100a4a8 | 7954 | run out of letters. |
4fe6dea8 AK |
7955 | * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout |
7956 | the file. | |
7957 | ("prefetch"): Add the stcmh instruction for prefetching. | |
7958 | * config/s390/s390.c (s390_symref_operand_p): Function moved. No | |
7959 | changes. | |
7960 | (s390_short_displacement): Return always true if compiling for | |
7961 | machines not providing the long displacement facility. | |
7962 | (s390_mem_constraint): Support the new constraint letter Z. | |
7963 | (s390_check_qrst_address): New function. | |
7964 | ||
072ebd49 DD |
7965 | 2009-07-21 DJ Delorie <dj@redhat.com> |
7966 | ||
7967 | * config/mep/mep.c (mep_legitimize_arg): Leave control registers | |
7968 | alone too. | |
7969 | ||
4afe7ad7 JM |
7970 | 2009-07-21 Jason Merrill <jason@redhat.com> |
7971 | ||
7972 | * c-common.c (max_tinst_depth): Increase default to 1024. | |
7973 | ||
848e6317 UB |
7974 | 2009-07-21 Uros Bizjak <ubizjak@gmail.com> |
7975 | ||
7976 | * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander. | |
7977 | (vec_unpacku_float_lo_v4si): Ditto. | |
7978 | ||
54e86f6b UB |
7979 | 2009-07-21 Uros Bizjak <ubizjak@gmail.com> |
7980 | ||
7981 | PR target/40811 | |
7982 | * config/i386/sse.md (sse2_cvtudq2ps): New expander. | |
7983 | (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS. | |
7984 | (builtin_description): Add __builtin_ia32_cvtudq2ps. | |
7985 | (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS. | |
7986 | ||
4a2b7f24 JJ |
7987 | 2009-07-21 Jakub Jelinek <jakub@redhat.com> |
7988 | ||
7989 | PR tree-optimization/40813 | |
7990 | * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before | |
7991 | it. | |
7992 | ||
a1516d08 KK |
7993 | 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org> |
7994 | ||
7995 | * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result | |
7996 | with a NOP_EXPR if needed. | |
7997 | ||
cba146eb PB |
7998 | 2009-07-21 Paul Brook <paul@codesourcery.com> |
7999 | ||
8000 | * tree-vectorizer.c (increase_alignment): Handle nested arrays. | |
8001 | Terminate debug dump with newline. | |
8002 | ||
ef8d9a0e JDA |
8003 | 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
8004 | ||
8005 | * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb. | |
8006 | Cast "1" to unsigned HOST_WIDE_INT. | |
8007 | (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit | |
8008 | deposit length to the maximum length - lsb. Extend length if | |
8009 | HOST_BITS_PER_WIDE_INT is 32. | |
8010 | ||
d48e9cea OR |
8011 | 2009-07-20 Olatunji Ruwase <tjruwase@google.com> |
8012 | ||
8013 | * cgraph.h (constant_pool_htab): New function. | |
8014 | (constant_descriptor_tree): Move from varasm.c. | |
8015 | * varasm.c (constant_pool_htab): New function. | |
8016 | (constant_descriptor_tree): Move to cgraph.h. | |
8017 | ||
9c8e65c3 OR |
8018 | 2009-07-20 Olatunji Ruwase <tjruwase@google.com> |
8019 | ||
848e6317 | 8020 | * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize(). |
9c8e65c3 | 8021 | |
3e014341 SZ |
8022 | 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com> |
8023 | ||
8024 | * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove | |
8025 | $(VARRAY_H). | |
8026 | ||
d0763469 XDL |
8027 | 2009-07-20 Xinliang David Li <davidxl@google.com> |
8028 | ||
8029 | * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check. | |
8030 | ||
752fd2a8 AN |
8031 | 2009-07-20 Adam Nemet <anemet@caviumnetworks.com> |
8032 | ||
8033 | * config/mips/mips.md (move_type): Add arith. | |
8034 | (type): Handle arith. | |
8035 | (zero_extendsidi2): Rename this into ... | |
8036 | (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS. | |
8037 | (zero_extendsidi2): New expander. | |
8038 | (*zero_extendsidi2_dext): New pattern. | |
8039 | ||
621114bc NC |
8040 | 2009-07-20 Nick Clifton <nickc@redhat.com> |
8041 | ||
8042 | * config.gcc (mips64-*-*): Add definition of tm_defines in order | |
8043 | to set MIPS_ABI_DEFAULT. | |
8044 | * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition. | |
8045 | ||
e338758d JJ |
8046 | 2009-07-20 Jakub Jelinek <jakub@redhat.com> |
8047 | ||
38027156 JJ |
8048 | * tree-object-size.c (addr_object_size): Handle unions with |
8049 | array in it as last field of structs in __bos (, 1) as __bos (, 0). | |
8050 | ||
e338758d JJ |
8051 | PR tree-optimization/40792 |
8052 | * tree.c (build_function_type_skip_args): Remove bogus assert. | |
8053 | ||
08ad1d6d | 8054 | 2009-07-20 Jan Hubicka <jh@suse.cz> |
848e6317 | 8055 | Martin Jambor <mjambor@suse.cz> |
08ad1d6d JH |
8056 | |
8057 | * cgraph.h (combined_args_to_skip): New field. | |
8058 | * cgraph.c (cgraph_create_virtual_clone): Properly handle | |
8059 | combined_args_to_skip and args_to_skip. | |
8060 | * tree-inline.c (update_clone_info): New function. | |
8061 | (tree_function_versioning): Call update_clone_info. | |
1a66936f UB |
8062 | * cgraphunit.c: (cgraph_materialize_clone): Dump materialized |
8063 | functions. | |
08ad1d6d JH |
8064 | (cgraph_materialize_all_clones): More extensive dumping, working |
8065 | with combined_args_to_skip rather than args_to_skip. | |
8066 | ||
4bbe8262 IR |
8067 | 2009-07-20 Ira Rosen <irar@il.ibm.com> |
8068 | ||
8069 | * tree-vectorizer.h (vectorizable_condition): Add parameters. | |
8070 | * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR. | |
8071 | (get_initial_def_for_reduction): Likewise. | |
8072 | (vectorizable_reduction): Skip the check of first operand in case | |
8073 | of COND_EXPR. Add check that it is outer loop vectorization if | |
f100a4a8 | 8074 | nested cycle was detected. Call vectorizable_condition() for |
4bbe8262 IR |
8075 | COND_EXPR. If reduction epilogue cannot be created do not fail for |
8076 | nested cycles (if it is not double reduction). Assert that there | |
8077 | is only one type in the loop in case of COND_EXPR. Call | |
8078 | vectorizable_condition() to vectorize COND_EXPR. | |
8079 | * tree-vect-stmts.c (vectorizable_condition): Update comment. | |
f100a4a8 | 8080 | Add parameters. Allow nested cycles if called from |
4bbe8262 IR |
8081 | vectorizable_reduction(). Use reduction vector variable if provided. |
8082 | (vect_analyze_stmt): Call vectorizable_reduction() before | |
8083 | vectorizable_condition(). | |
8084 | (vect_transform_stmt): Update call to vectorizable_condition(). | |
8085 | ||
6a799f6e | 8086 | 2009-07-20 Christian Bruel <christian.bruel@st.com> |
f100a4a8 | 8087 | |
6a799f6e CB |
8088 | * config/sh/sh.opt (-mfmovd): Resurrect and document. |
8089 | * doc/invoke.texi (-mfmovd): Likewise. | |
8090 | * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting. | |
f100a4a8 | 8091 | |
eab09a51 JH |
8092 | 2009-07-20 Jan Hubicka <jh@suse.cz> |
8093 | ||
8094 | * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs | |
8095 | when handling SSA name. | |
8096 | ||
a915ab00 JH |
8097 | 2009-07-19 Jan Hubicka <jh@suse.cz> |
8098 | ||
8099 | PR tree-optimization/40676 | |
8100 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all | |
8101 | virtual PHIs in empty BBs. | |
8102 | ||
827f4079 AN |
8103 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
8104 | ||
8105 | * combine.c (make_compound_operation) <SUBREG>: If force_to_mode | |
8106 | re-expanded the compound use gen_lowpart instead to convert to the | |
8107 | desired mode. | |
8108 | ||
f3ce1088 AN |
8109 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
8110 | ||
8111 | * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and | |
8112 | OUTER_CONST arguments. | |
8113 | <LSHIFTRT>: Use them to allow widening if the bits shifted in from | |
8114 | the new wider mode will be masked off. | |
8115 | (simplify_shift_const_1): Adjust calls to try_widen_shift_mode. | |
8116 | ||
3e63dd3a AN |
8117 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
8118 | ||
8119 | * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the | |
8120 | high-order bits are zero. | |
8121 | ||
b641d7fc AN |
8122 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
8123 | ||
8124 | * combine.c (simplify_shift_const_1): Split code to determine | |
8125 | shift_mode into ... | |
8126 | (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the | |
8127 | new bits shifted in are identical to the old sign bit. | |
8128 | ||
33922890 RG |
8129 | 2009-07-18 Richard Guenther <rguenther@suse.de> |
8130 | ||
8131 | PR c/40787 | |
8132 | * gimplify.c (gimplify_call_expr): Reject code using results from | |
8133 | functions returning void. | |
8134 | ||
1d447995 RS |
8135 | 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com> |
8136 | ||
8137 | * doc/md.texi: Document the new PowerPC "es" constraint. | |
8138 | Document that "m" can include automodified addresses on this target, | |
8139 | and explain how %U must be used. Extend the "Q" and "Z" documentation | |
8140 | to suggest "es" as well as "m". | |
8141 | * config/rs6000/constraints.md (es): New memory constraint. | |
8142 | (Q, Z): Update strings to match new documentation. | |
8143 | ||
406d1650 RS |
8144 | 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com> |
8145 | ||
8146 | * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any | |
8147 | offset from virtual_stack_vars_rtx and arg_pointer_rtx. | |
8148 | * config/rs6000/predicates.md (volatile_mem_operand): Use | |
8149 | offsettable_nonstrict_memref_p. | |
8150 | * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check. | |
8151 | (*floatunssidf2_internal): Likewise. | |
8152 | (*fix_truncdfsi2_internal): Likewise. | |
8153 | (*fix_trunctfsi2_internal): Likewise. | |
8154 | ||
a0ce0e6e AS |
8155 | 2009-07-17 Anatoly Sokolov <aesok@post.ru> |
8156 | ||
8157 | * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and | |
8158 | atmega32u2 devices. | |
8159 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). | |
8160 | ||
a406865a RG |
8161 | 2009-07-17 Richard Guenther <rguenther@suse.de> |
8162 | ||
8163 | PR c/40401 | |
8164 | * tree-pass.h (pass_diagnose_omp_blocks): Declare. | |
8165 | (pass_warn_unused_result): Likewise. | |
8166 | (TODO_set_props): Remove. | |
8167 | * omp-low.c (diagnose_omp_structured_block_errors): Change to | |
8168 | run as a pass. | |
8169 | (pass_diagnose_omp_blocks): Define. | |
8170 | * c-decl.c (pop_file_scope): Do not finalize the CU here. | |
8171 | (c_gimple_diagnostics_recursively): Remove. | |
8172 | (finish_function): Do not call it. | |
8173 | (c_write_global_declarations): Continue after errors. | |
8174 | Finalize the CU here. | |
8175 | * c-gimplify.c (c_genericize): Do not gimplify here. | |
8176 | * c-common.c (c_warn_unused_result): Move ... | |
8177 | * tree-cfg.c (do_warn_unused_result): ... here. | |
8178 | (run_warn_unused_result): New function. | |
8179 | (gate_warn_unused_result): New function. | |
8180 | (pass_warn_unused_result): New pass. | |
8181 | * c-common.h (c_warn_unused_result): Remove. | |
8182 | * flags.h (flag_warn_unused_result): Declare. | |
8183 | * c-opts.c (c_common_init_options): Enable flag_warn_unused_result. | |
8184 | * opts.c (flag_warn_unused_result): Initialize to false. | |
8185 | * toplev.c (compile_file): Add comment. | |
8186 | * omp-low.c (create_omp_child_function): Do not register | |
8187 | the function with the frontend. | |
8188 | (diagnose_omp_structured_block_errors): Prepare to be | |
8189 | called as optimization pass. | |
8190 | (gate_diagnose_omp_blocks): New function. | |
8191 | (pass_diagnose_omp_blocks): New pass. | |
8192 | * cgraph.h (cgraph_optimize): Remove. | |
8193 | (cgraph_analyze_function): Likewise. | |
8194 | * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks. | |
8195 | * cgraphunit.c (cgraph_lower_function): Lower nested functions | |
8196 | before their parents here. | |
8197 | (cgraph_finalize_function): Not here. | |
8198 | (cgraph_analyze_function): Gimplify functions here. | |
8199 | (cgraph_finalize_compilation_unit): Continue after errors. | |
8200 | Optimize the callgraph from here. | |
8201 | (cgraph_optimize): Make static. | |
8202 | * langhooks.c (write_global_declarations): Finalize the CU. | |
8203 | * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors. | |
8204 | (gimplify_function_tree): Assert we gimplify only once. | |
8205 | Set PROP_gimple_any property. | |
8206 | * tree-nested.c (gimplify_all_functions): New function. | |
8207 | (lower_nested_functions): Gimplify all nested functions. | |
8208 | * gimple.h (diagnose_omp_structured_block_errors): Remove. | |
8209 | * passes.c (init_optimization_passes): Add pass_warn_unused_result | |
8210 | and pass_diagnose_omp_blocks after gimplification. Do not | |
8211 | set TODO_set_props on all_lowering_passes. | |
8212 | (execute_one_pass): Do not handle TODO_set_props. | |
8213 | * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency. | |
8214 | (gimplify.o): Add tree-pass.h dependency. | |
8215 | * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST. | |
8216 | (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR. | |
8217 | (unsave_r): Likewise. | |
8218 | * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the | |
8219 | temporary variable. | |
8220 | ||
2e687c2c SL |
8221 | 2009-07-17 Sandra Loosemore <sandra@codesourcery.com> |
8222 | ||
8223 | * doc/service.texi (Service): Restore previously removed link, | |
8224 | which isn't broken after all. | |
8225 | ||
7763473e RG |
8226 | 2009-07-17 Richard Guenther <rguenther@suse.de> |
8227 | ||
8228 | PR tree-optimization/40321 | |
8229 | * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by | |
8230 | PHI nodes to the maximal set. | |
8231 | (make_values_for_phi): Add PHI arguments to the maximal set. | |
8232 | (execute_pre): Dump PHI_GEN and the maximal set. | |
8233 | ||
4f934809 JJ |
8234 | 2009-07-17 Jakub Jelinek <jakub@redhat.com> |
8235 | ||
8236 | PR c++/40780 | |
8237 | * gimplify.c (gimplify_conversion): Don't change non-conversions into | |
8238 | VIEW_CONVERT_EXPR. | |
8239 | ||
63a26b78 SL |
8240 | 2009-07-16 Sandra Loosemore <sandra@codesourcery.com> |
8241 | ||
8242 | * doc/extend.texi (Nested Functions): Replace broken link with | |
8243 | textual reference. | |
8244 | * doc/service.texi (Service): Remove broken link. | |
8245 | ||
3ac337c3 L |
8246 | 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> |
8247 | ||
8248 | PR bootstrap/40781 | |
8249 | * builtins.c (expand_builtin_memcmp): Use loc instead of | |
8250 | EXPR_LOCATION (exp). | |
8251 | (expand_builtin_strncmp): Likewise. | |
8252 | ||
db3927fb AH |
8253 | 2009-07-17 Aldy Hernandez <aldyh@redhat.com> |
8254 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
8255 | ||
f100a4a8 | 8256 | PR 40435 |
db3927fb AH |
8257 | * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h, |
8258 | builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c, | |
8259 | tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c, | |
8260 | c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c, | |
8261 | calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c, | |
8262 | tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c, | |
8263 | tree-inline.c, c-common.c, c-common.h, gimple.c, | |
8264 | tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c, | |
8265 | convert.c: Add location argument to fold_{unary,binary,ternary}, | |
8266 | fold_build[123], build_call_expr, build_size_arg, | |
8267 | build_fold_addr_expr, build_call_array, non_lvalue, size_diffop, | |
8268 | fold_build1_initializer, fold_build2_initializer, | |
8269 | fold_build3_initializer, fold_build_call_array, | |
8270 | fold_build_call_array_initializer, fold_single_bit_test, | |
8271 | omit_one_operand, omit_two_operands, invert_truthvalue, | |
8272 | fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref, | |
8273 | combine_comparisons, fold_builtin_*, fold_call_expr, | |
8274 | build_range_check, maybe_fold_offset_to_address, round_up, | |
8275 | round_down. | |
8276 | ||
c32097d8 JM |
8277 | 2009-07-16 Jason Merrill <jason@redhat.com> |
8278 | ||
8279 | PR libstdc++/37907 | |
8280 | * c-common.c (c_common_reswords): Add __is_standard_layout | |
8281 | and __is_trivial. | |
8282 | * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL. | |
8283 | * doc/implement-cxx.texi: New. | |
8284 | * doc/gcc.texi: Include it. | |
8285 | ||
b3c5a409 DD |
8286 | 2009-07-16 DJ Delorie <dj@redhat.com> |
8287 | ||
8288 | * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing | |
8289 | compares that may be indirectly affected by previous instructions. | |
8290 | ||
a41d064d KG |
8291 | 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
8292 | ||
8293 | * builtins.c (do_mpc_arg2): New. | |
8294 | (fold_builtin_2): Fold builtin cpow. | |
8295 | * real.h (HAVE_mpc_pow): New. | |
8296 | ||
db87b56d BM |
8297 | 2009-07-16 Bingfeng Mei <bmei@broadcom.com> |
8298 | ||
9e7c935a UB |
8299 | * modulo-sched.c (sms_schedule): stage_count <= 1 as correct |
8300 | comparison to skip unprofitable schedule | |
8301 | ||
ba0c638e SB |
8302 | 2009-07-16 Simon Baldwin <simonb@google.com> |
8303 | ||
8304 | * gcc.c (option_map): New flag -no-canonical-prefixes. | |
8305 | * (display_help): Print help text for new flag. | |
8306 | * (process_command): Move options translation and language specifics | |
8307 | and handle new flag early. Use it to set a function pointer to a | |
8308 | prefix builder. Replace make_relative_prefix calls with calls to | |
8309 | the function pointed to. Ignore new flag in regular options handling. | |
8310 | * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes. | |
8311 | ||
11af2d7b DD |
8312 | 2009-07-15 DJ Delorie <dj@redhat.com> |
8313 | ||
8314 | * config/mep/mep.md (sibcall_internal): Change register to avoid | |
8315 | argument registers. | |
8316 | (sibcall_value_internal): Likewise. | |
8317 | ||
9d2bb902 EB |
8318 | 2009-07-15 Eric Botcazou <ebotcazou@adacore.com> |
8319 | ||
8320 | PR rtl-optimization/40710 | |
8321 | * resource.c (mark_target_live_regs): Reset DF problem to LR. | |
8322 | ||
da45599c AN |
8323 | 2009-07-15 Adam Nemet <anemet@caviumnetworks.com> |
8324 | ||
8325 | * config/mips/mips.md (*extenddi_truncate<mode>, | |
8326 | *extendsi_truncate<mode>): Change type attribute to move_type | |
8327 | with shift_shift. Split out code handling exts from here ... | |
8328 | (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new | |
8329 | pattern. | |
8330 | (*extendhi_truncateqi): Change type attribute to move_type with | |
8331 | shift_shift. Split out code handling exts from here ... | |
8332 | (*extendhi_truncateqi_exts): ... to this new pattern. | |
8333 | ||
31f44cd0 | 8334 | 2009-07-15 Uros Bizjak <ubizjak@gmail.com> |
1fba7394 | 8335 | |
31f44cd0 UB |
8336 | * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction |
8337 | instead of "and" with inverted sign bit mask value. Use | |
8338 | "nonimmediate_operand" for operand 1 and operand 2 predicate. | |
8339 | Allocate registers only for operand 4 and operand 5. | |
1fba7394 | 8340 | |
b4e4232d JJ |
8341 | 2009-07-15 Jakub Jelinek <jakub@redhat.com> |
8342 | ||
8343 | PR middle-end/40747 | |
8344 | * fold-const.c (fold_cond_expr_with_comparison): When folding | |
8345 | < and <= to MIN, make sure the MIN uses the same type as the | |
8346 | comparison's operands. | |
8347 | ||
fa01135d RE |
8348 | 2009-07-15 Richard Earnshaw <rearnsha@arm.com> |
8349 | ||
8350 | * arm.md (ior_xor): New code iterator. | |
8351 | (split for ior/xor with shift and zero-extend): New split pattern. | |
8352 | * arm/predicates.md (subreg_lowpart_operator): New special predicate. | |
8353 | ||
b41e33fe RG |
8354 | 2009-07-15 Richard Guenther <rguenther@suse.de> |
8355 | ||
8356 | * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize | |
8357 | offset member. | |
8358 | ||
c9b2f286 RG |
8359 | 2009-07-15 Richard Guenther <rguenther@suse.de> |
8360 | ||
8361 | PR middle-end/40753 | |
1fba7394 | 8362 | * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases. |
c9b2f286 | 8363 | |
31d29c40 MK |
8364 | 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com> |
8365 | ||
8366 | * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to | |
8367 | handle 2.6.30 kernel. | |
8368 | ||
18e67adf DD |
8369 | 2009-07-15 DJ Delorie <dj@redhat.com> |
8370 | ||
8371 | * config/mep/mep.md (sibcall_internal): Change register to allow | |
8372 | for 24-bit addresses. | |
8373 | (sibcall_value_internal): Likewise. | |
8374 | ||
96809b41 | 8375 | 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com> |
f100a4a8 | 8376 | |
1fba7394 UB |
8377 | * doc/invoke.texi: Added descriptions of the scheduling heuristics |
8378 | that are enabled/disabled by the flags introduced by a previous patch. | |
f100a4a8 | 8379 | |
54a1e1d0 DD |
8380 | 2009-07-14 DJ Delorie <dj@redhat.com> |
8381 | ||
8382 | * config/mep/mep.md (sibcall_internal): Include non-toggling | |
8383 | non-jmp case. | |
8384 | (sibcall_value_internal): Likewise. | |
8385 | ||
2a4c0366 TG |
8386 | 2009-07-14 Taras Glek <tglek@mozilla.com> |
8387 | Rafael Espindola <espindola@google.com> | |
8388 | ||
8389 | * doc/sourcebuild.texi: Document install-plugin target. | |
8390 | * configure.ac: Added install-plugin target to language makefiles. | |
8391 | * configure: Regenerate. | |
8392 | * Makefile.in: (install-plugin): Install more headers, | |
8393 | depend on lang.install-plugin. | |
8394 | ||
2349c14b MLI |
8395 | 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8396 | ||
8397 | * tree-vrp.c (vrp_evaluate_conditional): Mark strings for | |
8398 | translation. | |
f100a4a8 | 8399 | |
a9d1723f DD |
8400 | 2009-07-14 DJ Delorie <dj@redhat.com> |
8401 | ||
8402 | * config/mep/mep.c (mep_vliw_jmp_match): New function. | |
8403 | * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it. | |
8404 | * config/mep/mep.md (sibcall_internal): Change test from | |
8405 | mep_vliw_mode_match to mep_vliw_jmp_match. | |
8406 | (sibcall_value_internal): Likewise. | |
8407 | ||
af766f2d UB |
8408 | 2009-07-14 Uros Bizjak <ubizjak@gmail.com> |
8409 | ||
8410 | * config/i386/sse.md (copysign<mode>3): New expander. | |
8411 | * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype. | |
8412 | * config/i386/i386.c (ix86_build_signbit_mask): Make public. | |
8413 | Use ix86_build_const_vector. | |
8414 | (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and | |
8415 | IX86_BUILTIN_CPYSGNPD. | |
8416 | (builtin_description): Add __builtin_ia32_copysignps and | |
8417 | __builtin_ia32_copysignpd. | |
8418 | (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN | |
8419 | and BUILT_IN_COPYSIGNF. | |
8420 | ||
b35c8160 JM |
8421 | 2009-07-13 Jason Merrill <jason@redhat.com> |
8422 | ||
8423 | * builtins.c (can_trust_pointer_alignment): New fn. | |
8424 | (get_pointer_alignment): Factor it out from here. | |
8425 | * tree.h: Declare it. | |
8426 | ||
e02e8e58 DE |
8427 | 2009-07-14 David Edelsohn <edelsohn@gnu.org> |
8428 | ||
8429 | * config/rs6000/predicates.md (offsettable_mem_operand): Test | |
8430 | RTX_AUTOINC class. | |
8431 | ||
4fdaccea DS |
8432 | 2009-07-14 Dodji Seketeli <dodji@redhat.com> |
8433 | ||
8434 | PR debug/40705 | |
8435 | PR c++/403057 | |
8436 | * dwarf2.out.c (gen_type_die_with_usage): Added comment. | |
8437 | ||
0b200b80 | 8438 | 2009-07-14 Richard Guenther <rguenther@suse.de> |
af766f2d | 8439 | Andrey Belevantsev <abel@ispras.ru> |
0b200b80 RG |
8440 | |
8441 | PR middle-end/40745 | |
8442 | * cfgexpand.c (partition_stack_vars): Do not bother to update | |
8443 | alias information when not optimizing. | |
8444 | ||
55b34b5f | 8445 | 2009-07-14 Richard Guenther <rguenther@suse.de> |
848e6317 | 8446 | Andrey Belevantsev <abel@ispras.ru> |
55b34b5f RG |
8447 | |
8448 | * tree-ssa-alias.h (refs_may_alias_p_1): Declare. | |
8449 | (pt_solution_set): Likewise. | |
8450 | * tree-ssa-alias.c (refs_may_alias_p_1): Export. | |
8451 | * tree-ssa-structalias.c (pt_solution_set): New function. | |
8452 | * final.c (rest_of_clean_state): Free SSA data structures. | |
8453 | * print-rtl.c (print_decl_name): Remove. | |
8454 | (print_mem_expr): Implement in terms of print_generic_expr. | |
8455 | * alias.c (ao_ref_from_mem): New function. | |
8456 | (rtx_refs_may_alias_p): Likewise. | |
8457 | (true_dependence): Query alias-export info. | |
8458 | (canon_true_dependence): Likewise. | |
8459 | (write_dependence_p): Likewise. | |
8460 | * tree-dfa.c (get_ref_base_and_extent): For void types leave | |
8461 | size unknown. | |
8462 | * emit-rtl.c (component_ref_for_mem_expr): Remove. | |
8463 | (mem_expr_equal_p): Use operand_equal_p. | |
8464 | (set_mem_attributes_minus_bitpos): Do not use | |
8465 | component_ref_for_mem_expr. | |
8466 | * cfgexpand.c (add_partitioned_vars_to_ptset): New function. | |
8467 | (update_alias_info_with_stack_vars): Likewise. | |
8468 | (partition_stack_vars): Call update_alias_info_with_stack_vars. | |
8469 | * tree-ssa.c (delete_tree_ssa): Do not release SSA names | |
8470 | explicitly nor clear stmt operands. | |
8471 | Free the decl-to-pointer map. | |
8472 | * tree-optimize.c (execute_free_datastructures): Do not free | |
8473 | SSA data structures here. | |
8474 | * tree-flow.h (struct gimple_df): Add decls_to_pointers member. | |
8475 | * Makefile.in (emit-rtl.o): Add pointer-set.h dependency. | |
8476 | (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H) | |
8477 | dependencies. | |
8478 | (print-rtl.o): Add $(DIAGNOSTIC_H) dependency. | |
8479 | ||
a46f0964 DD |
8480 | 2009-07-13 DJ Delorie <dj@redhat.com> |
8481 | ||
1700c2e7 DD |
8482 | * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger |
8483 | unrolling at the right iteration count. | |
8484 | ||
a46f0964 DD |
8485 | * config/mep/mep.c (mep_expand_prologue): Fix frame pointer |
8486 | calculations. | |
8487 | ||
ee4764a8 | 8488 | 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com> |
f100a4a8 | 8489 | |
af766f2d UB |
8490 | * haifa-sched.c (rank_for_schedule): Introduced flags to |
8491 | enable/disable individual scheduling heuristics. | |
8492 | * common.opt: Introduced flags to enable/disable individual | |
f100a4a8 | 8493 | heuristics in the scheduler. |
af766f2d UB |
8494 | * doc/invoke.texi: Introduced flags to enable/disable individual |
8495 | heuristics in the scheduler. | |
f100a4a8 | 8496 | |
9122666c KT |
8497 | 2009-07-13 Kai Tietz <kai.tietz@onevision.com> |
8498 | ||
8499 | * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file | |
8500 | config/i386/mingw-tls.c. | |
8501 | * config/i386/mingw-tls.c: Removed. | |
8502 | ||
2f3e235b IR |
8503 | 2009-07-13 Ira Rosen <irar@il.ibm.com> |
8504 | ||
f100a4a8 | 8505 | * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the |
2f3e235b IR |
8506 | checks access only relevant statements. |
8507 | (vectorizable_reduction): Likewise. | |
8508 | ||
f345f84a KT |
8509 | 2009-07-12 Kai Tietz <kai.tietz@onevision.com> |
8510 | ||
8511 | * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_ | |
8512 | just for 32-bit case. | |
8513 | ||
f645e9a2 JH |
8514 | 2009-07-12 Jan Hubicka <jh@suse.cz> |
8515 | ||
8516 | PR tree-optimization/40585 | |
8517 | * except.c (expand_resx_expr): When there already is resume | |
8518 | instruction, produce linked list. | |
8519 | (build_post_landing_pads): Assert that resume is empty. | |
8520 | (connect_post_landing_pads): Handle resume lists. | |
8521 | (dump_eh_tree): Dump resume list. | |
8522 | ||
06066f92 IR |
8523 | 2009-07-12 Ira Rosen <irar@il.ibm.com> |
8524 | ||
8525 | * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction | |
8526 | with additional argument. | |
7c8b1a77 | 8527 | * tree-vectorizer.h (enum vect_def_type): Add |
06066f92 IR |
8528 | vect_double_reduction_def. |
8529 | (vect_is_simple_reduction): Add argument. | |
7c8b1a77 | 8530 | * tree-vect-loop.c (vect_determine_vectorization_factor): Fix |
06066f92 IR |
8531 | indentation. |
8532 | (vect_analyze_scalar_cycles_1): Detect double reduction. Call | |
8533 | vect_is_simple_reduction with additional argument. | |
8534 | (vect_analyze_loop_operations): Handle exit phi nodes in case of | |
8535 | double reduction. | |
8536 | (reduction_code_for_scalar_code): Handle additional codes by | |
8537 | returning ERROR_MARK for them. Fix comment and indentation. | |
8538 | (vect_is_simple_reduction): Fix comment, add argument to specify | |
8539 | double reduction. Detect double reduction. | |
8540 | (get_initial_def_for_induction): Fix indentation. | |
8541 | (get_initial_def_for_reduction): Fix comment and indentation. | |
8542 | Handle double reduction. Create initial definitions that do not | |
8543 | require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases. | |
8544 | (vect_create_epilog_for_reduction): Fix comment, add argument to | |
8545 | handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in | |
8546 | epilogue result extraction. Create double reduction phi node and | |
8547 | replace relevant uses. | |
8548 | (vectorizable_reduction): Call vect_is_simple_reduction with | |
8549 | additional argument. Fix indentation. Update epilogue code treatment | |
7c8b1a77 | 8550 | according to the changes in reduction_code_for_scalar_code. Check |
06066f92 IR |
8551 | for double reduction. Call vect_create_epilog_for_reduction with |
8552 | additional argument. | |
8553 | * tree-vect-stmts.c (process_use): Handle double reduction, update | |
8554 | documentation. | |
8555 | (vect_mark_stmts_to_be_vectorized): Handle double reduction. | |
8556 | (vect_get_vec_def_for_operand): Likewise. | |
8557 | ||
b20231fe DS |
8558 | 2009-07-12 Danny Smith <dansmister@gmail.com> |
8559 | ||
8560 | * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't | |
8561 | dllexport if !TREE_PUBLIC. | |
8562 | (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC. | |
8563 | ||
97c281da AS |
8564 | 2009-07-11 Anatoly Sokolov <aesok@post.ru> |
8565 | ||
8566 | * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine. | |
8567 | (avr_extra_arch_macro) Remove declatation. | |
8568 | * config/avr/avr.c (avr_cpu_cpp_builtins): New function. | |
8569 | (avr_extra_arch_macro) Declare as static. | |
8570 | * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare. | |
8571 | ||
6b45de00 JH |
8572 | 2009-07-11 Jan Hubicka <jh@suse.cz> |
8573 | ||
8574 | PR middle-end/48388 | |
8575 | * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap. | |
8576 | ||
dd67163f JJ |
8577 | 2009-07-11 Jakub Jelinek <jakub@redhat.com> |
8578 | ||
3e3a9a6a JJ |
8579 | PR debug/40713 |
8580 | * dwarf2out.c (dw_fde_struct): Add in_std_section and | |
8581 | cold_in_std_section bits. | |
8582 | (dwarf2out_begin_prologue): Initialize them. | |
8583 | (dwarf2out_finish): Don't emit FDE range into .debug_ranges | |
8584 | if already covered by text_section or cold_text_section range. | |
8585 | ||
ae58e548 JJ |
8586 | PR rtl-optimization/40667 |
8587 | * defaults.h (MINIMUM_ALIGNMENT): Define if not defined. | |
8588 | * doc/tm.texi (MINIMUM_ALIGNMENT): Document it. | |
8589 | * config/i386/i386.h (MINIMUM_ALIGNMENT): Define. | |
8590 | * config/i386/i386.c (ix86_minimum_alignment): New function. | |
8591 | * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype. | |
8592 | * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT. | |
8593 | * emit-rtl.c (gen_reg_rtx): Likewise. | |
8594 | * function.c (assign_parms): Likewise. If nominal_type needs | |
8595 | bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment | |
8596 | rather than passed_type's alignment. | |
8597 | ||
dd67163f JJ |
8598 | PR target/40668 |
8599 | * function.c (assign_parm_setup_stack): Adjust | |
8600 | MEM_OFFSET (data->stack_parm) if promoted_mode is different | |
8601 | from nominal_mode on big endian. | |
8602 | ||
e9edda23 PB |
8603 | 2009-07-11 Paolo Bonzini <bonzini@gnu.org> |
8604 | ||
8605 | * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension. | |
8606 | ||
82e45095 DD |
8607 | 2009-07-10 DJ Delorie <dj@redhat.com> |
8608 | ||
8609 | * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify. | |
8610 | ||
98ac6510 MM |
8611 | 2009-07-10 Mark Mitchell <mark@codesourcery.com> |
8612 | ||
8613 | * config/arm/thumb2.md (thumb2_cbz): Correct computation of length | |
8614 | attribute. | |
8615 | (thumb2_cbnz): Likewise. | |
8616 | ||
b96c5923 DD |
8617 | 2009-07-10 David Daney <ddaney@caviumnetworks.com> |
8618 | ||
8619 | PR target/39079 | |
8620 | * config.gcc (supported_defaults): Add synci. | |
8621 | (with_synci): Add validation. | |
8622 | (all_defaults): Add synci. | |
8623 | * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of | |
8624 | ISA_HAS_SYNCI. | |
8625 | (synci): Same. | |
8626 | * config/mips/mips.opt (msynci): New option. | |
8627 | * config/mips/mips.c (mips_override_options): Warn on use of | |
8628 | -msynci for targets that do now support it. | |
8629 | * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for | |
8630 | msynci. | |
8631 | * gcc/doc/invoke.texi (-msynci): Document the new option. | |
8632 | * doc/install.texi (--with-synci): Document the new option. | |
8633 | ||
182e00b1 RG |
8634 | 2009-07-10 Richard Guenther <rguenther@suse.de> |
8635 | ||
8636 | PR tree-optimization/40496 | |
8637 | * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create | |
8638 | the PHI result with a compatible type. | |
8639 | ||
156f545a MLI |
8640 | 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8641 | ||
8642 | PR 25509 | |
8643 | PR 40614 | |
8644 | * c.opt (Wunused-result): New. | |
8645 | * doc/invoke.texi: Document it. | |
8646 | * c-common.c (c_warn_unused_result): Use it. | |
8647 | ||
06c43499 DD |
8648 | 2009-07-09 DJ Delorie <dj@redhat.com> |
8649 | ||
5cec9f59 DD |
8650 | * targhooks.c (default_target_can_inline_p): Rename from |
8651 | default_target_option_can_inline_p. | |
8652 | * targhooks.h (default_target_can_inline_p): Likewise. | |
8653 | * target-def.h (TARGET_CAN_INLINE_P): Rename from | |
8654 | TARGET_OPTION_CAN_INLINE_P. | |
8655 | * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise. | |
8656 | * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise. | |
8657 | (mep_target_can_inline_p): Rename from | |
8658 | mep_target_option_can_inline_p. | |
8659 | ||
8660 | PR target/40626 | |
b9263ae5 DD |
8661 | * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor |
8662 | registers used to pass vectors. | |
8663 | ||
06c43499 DD |
8664 | * config/mep/mep.c (mep_option_can_inline_p): Remove error call. |
8665 | ||
a80b0574 TT |
8666 | 2009-07-09 Tom Tromey <tromey@redhat.com> |
8667 | ||
8668 | * unwind-dw2-fde-darwin.c: Include dwarf2.h. | |
8669 | * config/mmix/mmix.c: Include dwarf2.h. | |
8670 | * config/rs6000/darwin-fallback.c: Include dwarf2.h. | |
8671 | * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h. | |
8672 | * config/sh/sh.c: Include dwarf2.h. | |
8673 | * config/i386/i386.c: Include dwarf2.h. | |
8674 | * Makefile.in (DWARF2_H): Remove 'elf'. | |
8675 | * except.c: Include dwarf2.h. | |
8676 | * unwind-dw2.c: Include dwarf2.h. | |
8677 | * dwarf2out.c: Include dwarf2.h. | |
8678 | * unwind-dw2-fde-glibc.c: Include dwarf2.h. | |
8679 | * unwind-dw2-fde.c: Include dwarf2.h. | |
8680 | * dwarf2asm.c: Include dwarf2.h. | |
8681 | ||
356c23b3 | 8682 | 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com> |
7c8b1a77 | 8683 | |
356c23b3 | 8684 | * haifa-sched.c (insn_finishes_cycle_p): New static function. |
7c8b1a77 UB |
8685 | (max_issue): Use it. |
8686 | * sched-int.h (struct sched_info: insn_finishes_block_p): New | |
8687 | scheduler hook. | |
8688 | * sched-rgn.c (rgn_insn_finishes_block_p): Implement it. | |
8689 | (region_sched_info): Update. | |
8690 | * sched-ebb.c (ebb_sched_info): Update. | |
8691 | * modulo-sched.c (sms_sched_info): Update. | |
356c23b3 MK |
8692 | * sel-sched-ir.c (sched_sel_haifa_sched_info): Update. |
8693 | ||
5223c588 MK |
8694 | 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com> |
8695 | ||
8696 | * varasm.c (build_constant_desc): Don't share RTL in pool entries. | |
8d4cf6d7 BS |
8697 | |
8698 | 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net> | |
8699 | ||
f100a4a8 | 8700 | * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. |
8d4cf6d7 | 8701 | |
b9da76de JJ |
8702 | 2009-07-09 Jakub Jelinek <jakub@redhat.com> |
8703 | ||
8704 | PR middle-end/40692 | |
8705 | * fold-const.c (fold_cond_expr_with_comparison): Don't replace | |
8706 | arg1 with arg01 if arg1 is already INTEGER_CST. | |
8707 | ||
fcaf7e12 AN |
8708 | 2009-07-08 Adam Nemet <anemet@caviumnetworks.com> |
8709 | ||
7c8b1a77 UB |
8710 | * simplify-rtx.c (simplify_binary_operation_1) <AND>: |
8711 | Transform (and (truncate)) into (truncate (and)). | |
fcaf7e12 | 8712 | |
3f36bac2 AN |
8713 | 2009-07-08 Adam Nemet <anemet@caviumnetworks.com> |
8714 | ||
8715 | * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before | |
8716 | creating LHS paradoxical subregs. Fix surrounding returns to | |
8717 | use NULL_RTX rather than 0. | |
8718 | ||
ae30c1fa DD |
8719 | 2009-07-08 DJ Delorie <dj@redhat.com> |
8720 | ||
8721 | * config/mep/mep.c: (mep_option_can_inline_p): New. | |
8722 | (TARGET_OPTION_CAN_INLINE_P): Define. | |
8723 | ||
3d78d293 MW |
8724 | 2009-07-08 Mark Wielaard <mjw@redhat.com> |
8725 | ||
8726 | PR debug/40659 | |
8727 | * dwarf2out.c (add_data_member_location_attribute): When we have | |
8728 | only a constant offset don't emit a new location description using | |
8729 | DW_OP_plus_uconst, but just add the constant with add_AT_int, when | |
8730 | dwarf_version > 2. | |
8731 | ||
ac2e563f RH |
8732 | 2009-07-08 Richard Henderson <rth@redhat.com> |
8733 | ||
8734 | PR target/38900 | |
8735 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c. | |
8736 | (enum reg_class): Add CLOBBERED_REGS. | |
8737 | (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise. | |
8738 | * config/i386/i386.c (ix86_conditional_register_usage): Moved | |
8739 | from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit. | |
8740 | (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls. | |
8741 | (ix86_expand_call): Use sibcall_insn_operand when needed. Don't | |
8742 | force 64-bit sibcalls into R11. | |
8743 | * config/i386/constraints.md (U): New constraint. | |
8744 | * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it. | |
8745 | (sibcall_1_rex64, sibcall_value_1_rex64): Likewise. | |
8746 | (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove. | |
8747 | ||
8ed77e22 SZ |
8748 | 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com> |
8749 | ||
8750 | * basic-block.h (dump_regset, debug_regset): Remove duplicate | |
8751 | prototypes. | |
8752 | * c-objc-common.h (c_initialize_diagnostics): Ditto. | |
8753 | * ebitmap.h (dump_ebitmap): Ditto. | |
8754 | * optabs.h (optab_libfunc): Ditto. | |
8755 | * tree.h (tree_expr_nonzero_warnv_p): Ditto. | |
8756 | * tree-flow.h (vect_can_force_dr_alignment_p, | |
3f36bac2 | 8757 | get_vectype_for_scalar_type): Ditto. |
8ed77e22 | 8758 | (vectorize_loops): Move prototype to ... |
3f36bac2 | 8759 | * tree-vectorizer.h: ... here. Also, adjust comment. |
8ed77e22 SZ |
8760 | (vect_set_verbosity_level): Remove duplicate prototype. |
8761 | * tree-ssa-loop.c: Include tree-vectorizer.h. | |
8762 | * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h. | |
8763 | ||
c6075b13 NC |
8764 | 2009-07-08 Nick Clifton <nickc@redhat.com> |
8765 | ||
8766 | * config/i386/unix.h (ASM_COMMENT_START): Add a space after the | |
8767 | forward slash. | |
8768 | ||
d1b5afd5 DD |
8769 | 2009-07-08 DJ Delorie <dj@redhat.com> |
8770 | ||
8771 | * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3, | |
8772 | cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1, | |
8773 | cpmovtocc_P0S_P1): Mark volatile. Note which registers are | |
8774 | written to. | |
8775 | * config/mep/intrinsics.md: Regenerated. | |
8776 | * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control | |
8777 | registers when asm() or calls are detected. | |
3f36bac2 | 8778 | |
d665b6e5 MLI |
8779 | 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8780 | ||
8781 | PR c++/31246 | |
8782 | * gimplify.c (gimplify_expr): Propagate no_warning flag when | |
8783 | gimplifying. | |
8784 | * gimple (gimple_build_call_from_tree): Likewise. | |
8785 | * tree-cfg.c (remove_useless_stmts_warn_notreached): Check | |
8786 | no_warning flag before warning. | |
3f36bac2 | 8787 | |
5e278028 MLI |
8788 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8789 | ||
8790 | * tree.c (set_expr_locus): Remove. | |
8791 | * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove. | |
8792 | * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by | |
8793 | EXPR_LOCATION. | |
8794 | * gimplify.c (internal_get_tmp_var): Likewise. | |
8795 | (gimplify_call_expr): Likewise. | |
8796 | (gimplify_one_sizepos): Likewise. | |
8797 | ||
ed3346c2 EB |
8798 | 2009-07-07 Eric Botcazou <ebotcazou@adacore.com> |
8799 | ||
8800 | PR debug/40666 | |
8801 | * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing | |
8802 | to variables for debugging purposes. | |
8803 | ||
4db19cc7 ML |
8804 | 2009-06-23 Mark Loeser <mark@halcy0n.com> |
8805 | ||
8806 | PR build/40010 | |
8807 | * Makefile.in (gcc.pod): Depend on gcc-vers.texi. | |
8808 | ||
72f90fde MLI |
8809 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8810 | ||
8811 | * pretty-print.c (pp_base_format): Remove %J. | |
8812 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
8813 | gcc_cxxdiag_char_table): Likewise. | |
8814 | (init_dynamic_diag_info): Likewise. | |
4db19cc7 | 8815 | |
dcb91ebe MLI |
8816 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8817 | ||
8818 | * pretty-print.c (pp_base_format): Remove %H. | |
8819 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
8820 | gcc_cxxdiag_char_table): Likewise. | |
8821 | (init_dynamic_diag_info): Likewise. | |
8822 | * config/mep/mep.c (mep_select_section): Likewise. | |
8823 | ||
cf400ddb DS |
8824 | 2009-07-07 Duncan Sands <baldrick@free.fr> |
8825 | ||
7c8b1a77 UB |
8826 | * final.c (pass_clean_state): Give the pass a name. |
8827 | * passes.c (pass_rest_of_compilation): Likewise. | |
8828 | * tree-optimize.c (pass_all_optimizations): Likewise. | |
cf400ddb | 8829 | |
d575725b L |
8830 | 2009-07-07 H.J. Lu <hongjiu.lu@intel.com> |
8831 | ||
8832 | * config/ia64/ia64.c (ia64_handle_model_attribute): Remove | |
8833 | an extra 'decl' for error_at. | |
8834 | ||
535536b4 JJ |
8835 | 2009-07-07 Jakub Jelinek <jakub@redhat.com> |
8836 | ||
8837 | PR middle-end/40669 | |
8838 | * tree-tailcall.c (adjust_return_value_with_ops, | |
8839 | create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary | |
8840 | if it has complex or vector type. | |
8841 | ||
f062f8f2 OH |
8842 | 2009-07-07 Olivier Hainque <hainque@adacore.com> |
8843 | ||
d575725b L |
8844 | * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak |
8845 | pthread symbols. | |
f062f8f2 | 8846 | |
cac1b0ee BS |
8847 | 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net> |
8848 | ||
8849 | * Makefile.in: added more lists of includes to PLUGIN_HEADERS. | |
8850 | ||
c5d75364 MLI |
8851 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8852 | ||
7c8b1a77 | 8853 | * cgraphunit.c: Replace %J by an explicit location. Update all calls. |
c5d75364 MLI |
8854 | * c-decl.c: Likewise. |
8855 | * function.c: Likewise. | |
8856 | * varasm.c: Likewise. | |
8857 | * tree-ssa.c: Likewise. | |
8858 | * c-common.c: Likewise. | |
8859 | * tree-cfg.c: Likewise. | |
8860 | * config/spu/spu.c: Likewise. | |
8861 | * config/ia64/ia64.c: Likewise. | |
8862 | * config/v850/v850.c: Likewise. | |
8863 | ||
b932c20b DD |
8864 | 2009-07-06 DJ Delorie <dj@redhat.com> |
8865 | ||
8866 | * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE. | |
8867 | * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make | |
8868 | unspecified accesses to control registers. | |
8869 | * config/mep/intrinsics.md: Regenerate. | |
8870 | * config/mep/intrinsics.h: Regenerate. | |
8871 | * config/mep/mep-intrin.h: Regenerate. | |
3f36bac2 | 8872 | |
fab922b1 MLI |
8873 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8874 | ||
8875 | * c-lex.c: Replace %H by an explicit location. Update all calls. | |
8876 | * c-common.c: Likewise. | |
8877 | * c-decl.c: Likewise. | |
8878 | * c-typeck.c: Likewise. | |
8879 | * fold-const.c: Likewise. | |
8880 | * gimplify.c: Likewise. | |
8881 | * stmt.c: Likewise. | |
8882 | * tree-cfg.c: Likewise. | |
8883 | * tree-ssa-loop-niter.c: Likewise. | |
8884 | * tree-vrp.c: Likewise. | |
8885 | * value-prof.c: Likewise. | |
8886 | ||
66350781 DN |
8887 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8888 | ||
8889 | * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR | |
8890 | if it has one. Handle cases where VAR does not have an | |
8891 | annotation or cfun is NULL. | |
8892 | ||
d251bfca DN |
8893 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8894 | ||
8895 | * tree.c: Include debug.h. | |
8896 | (initialize_tree_contains_struct): New. | |
8897 | (init_ttree): Call it. | |
8898 | (tree_node_structure_for_code): Factor out of ... | |
8899 | (tree_node_structure): ... here. | |
8900 | * treestruct.def (TS_PHI_NODE): Remove. | |
8901 | (TS_GIMPLE_STATEMENT): Remove. | |
8902 | ||
e923c8ea DN |
8903 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8904 | ||
7c8b1a77 | 8905 | * tree-pretty-print.c (dump_generic_node): Protect against NULL op0. |
e923c8ea DN |
8906 | (debug_tree_chain): Handle cycles. |
8907 | ||
7a61cf6f NC |
8908 | 2009-07-06 Nick Clifton <nickc@redhat.com> |
8909 | DJ Delorie <dj@redhat.com> | |
8910 | ||
8911 | * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if | |
8912 | __FMOVD_ENABLED__ is defined. | |
8913 | * config/sh/sh.h | |
8914 | (TARGET_FMOVD): Provide a default definition. | |
8915 | (MASK_FMOVD): Likewise. | |
8916 | (TARGET_CPU_CPP_BUILTINS): Define | |
8917 | __FMOVD_ENABLED__ if TARGET_FMOVD is true. | |
8918 | * config/sh/sh.md (movdf_i4): For alternative 0 use either one or | |
7c8b1a77 | 8919 | two fmov instructions depending upon whether TARGET_FMOVD is enabled. |
7a61cf6f NC |
8920 | (split for DF load from memory into register): Also handle |
8921 | MEMs which consist of REG+DISP addressing. | |
8922 | (split for DF store from register to memory): Likewise. | |
8923 | (movsf_ie): Always use single fp_mode. | |
8924 | * config/sh/sh.c (sh_override_options): Do not automatically | |
8925 | enable TARGET_MOVD for the SH2A when supporting doubles - leave | |
8926 | that to the -mfmovd command line switch. | |
8927 | (broken_move): Do not restrict fldi test to only the SH4 and SH4A. | |
8928 | (fldi_ok): Always allow. | |
8929 | * config/sh/sh.opt (mfmovd): Remove this switch. | |
8930 | * doc/invoke.texi (-mfmovd): Remove documentation of this switch. | |
8931 | ||
83f63251 R |
8932 | 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com> |
8933 | Kaz Kojima <kkojima@gcc.gnu.org> | |
8934 | ||
8935 | PR rtl-optimization/30807 | |
8936 | * postreload.c (reload_combine): For every new use of REG_SUM, | |
8937 | record the use of BASE. | |
8938 | ||
172d54e0 JH |
8939 | 2009-07-06 Jan Hubicka <jh@suse.cz> |
8940 | ||
8941 | * params.def: Revert my accidental commit at 2009-06-30. | |
8942 | ||
34097e36 ILT |
8943 | 2009-07-04 Ian Lance Taylor <iant@google.com> |
8944 | ||
8945 | PR target/40636 | |
8946 | * config/i386/msformat-c.c (mingw_format_attributes): Declare as | |
8947 | EXPORTED_CONST. | |
8948 | (mingw_format_attribute_overrides): Likewise. | |
8949 | ||
bd5b2c2d JJ |
8950 | 2009-07-04 Jakub Jelinek <jakub@redhat.com> |
8951 | ||
8952 | PR debug/40596 | |
8953 | * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried | |
8954 | don't check cfa.reg. Instead of cfa.indirect use | |
8955 | fde && fde->drap_reg != INVALID_REGNUM test. | |
8956 | ||
39ba6ab7 EB |
8957 | 2009-07-04 Eric Botcazou <ebotcazou@adacore.com> |
8958 | ||
8959 | * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG. | |
8960 | ||
54a0ac2d VM |
8961 | 2009-07-03 Vladimir Makarov <vmakarov@redhat.com> |
8962 | ||
8963 | PR target/40587 | |
7c8b1a77 | 8964 | * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out. |
3f36bac2 | 8965 | |
fae1034e RG |
8966 | 2009-07-03 Richard Guenther <rguenther@suse.de> |
8967 | ||
8968 | PR tree-optimization/40640 | |
8969 | * tree-switch-conversion.c (build_arrays): Perform arithmetic | |
8970 | in original type. | |
8971 | ||
ba8978d0 JH |
8972 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
8973 | ||
8974 | * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing | |
8975 | for size, reduce amount of inlining. | |
8976 | ||
d73fb533 RG |
8977 | 2009-07-03 Richard Guenther <rguenther@suse.de> |
8978 | ||
8979 | PR middle-end/34163 | |
7c8b1a77 UB |
8980 | * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x |
8981 | if t +- x is known to not overflow and the conversion widens the | |
8982 | operation. | |
d73fb533 RG |
8983 | * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency. |
8984 | ||
7351bcaa JH |
8985 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
8986 | ||
8987 | * ipa-pure-const.c (analyze): Update loop optimizer init. | |
8988 | * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop, | |
8989 | try_remove_empty_loop, remove_empty_loops): Remove. | |
8990 | * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove. | |
8991 | * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info | |
8992 | to mark regular loops as neccesary. | |
8993 | (degenerate_phi_p): New function. | |
8994 | (propagate_necessity, remove_dead_phis): Use it. | |
8995 | (forward_edge_to_pdom): Likewise. | |
8996 | (eliminate_unnecessary_stmts): Take care to remove uses of results of | |
8997 | virtual PHI nodes that became unreachable. | |
8998 | (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer. | |
8999 | * tree-flow.h (remove_empty_loops): Remove. | |
9000 | * passes.c (init_optimization_passes): Remove. | |
9001 | ||
5071eab7 UB |
9002 | 2009-07-03 Uros Bizjak <ubizjak@gmail.com> |
9003 | ||
9004 | * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use | |
9005 | can_create_pseudo_p. | |
9006 | (*fix_trunc<mode>_i387_1): Ditto. | |
9007 | (*floathi<mode>2_1): Ditto. | |
9008 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto. | |
9009 | (*fistdi2_1): Ditto. | |
9010 | (*fist<mode>2_1): Ditto. | |
9011 | (frndintxf2_floor): Ditto. | |
9012 | (*fist<mode>2_floor_1): Ditto. | |
9013 | (frndintxf2_ceil): Ditto. | |
9014 | (*fist<mode>2_ceil_1): Ditto. | |
9015 | (frndintxf2_trunc): Ditto. | |
9016 | (frndintxf2_mask_pm): Ditto. | |
9017 | (fxam<mode>2_i387_with_temp): Ditto. | |
9018 | * config/i386/sse.md (mulv16qi3): Ditto. | |
9019 | (*sse2_mulv4si3): Ditto. | |
9020 | (mulv2di3): Ditto. | |
9021 | (sse4_2_pcmpestr): Ditto. | |
9022 | (sse4_2_pcmpistr): Ditto. | |
9023 | ||
1fc41282 JH |
9024 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
9025 | ||
9026 | * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap. | |
9027 | (mark_stmt_necessary): Set it. | |
9028 | (mark_operand_necessary): Set it. | |
9029 | (mark_control_dependent_edges_necessary): Set it. | |
9030 | (mark_virtual_phi_result_for_renaming): New function. | |
9031 | (get_live_post_dom): New function. | |
9032 | (forward_edge_to_pdom): New function. | |
9033 | (remove_dead_stmt): Fix handling of control dependences. | |
9034 | (tree_dce_init): Init new bitmap. | |
9035 | (tree_dce_done): Free it. | |
9036 | ||
02583d3c RG |
9037 | 2009-07-02 Richard Guenther <rguenther@suse.de> |
9038 | ||
9039 | PR bootstrap/40617 | |
9040 | * tree-ssa-structalias.c (new_var_info): Initialize | |
9041 | is_restrict_var. | |
9042 | ||
3c1832c3 JH |
9043 | 2009-07-02 Jan Hubicka <jh@suse.cz> |
9044 | ||
9045 | * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is | |
9046 | local. | |
9047 | ||
92355a9c PB |
9048 | 2009-07-02 Paolo Bonzini <bonzini@gnu.org> |
9049 | ||
9050 | * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode | |
9051 | instead of recomputing it. Adjust calls. | |
9052 | (emit_store_flag): Adjust recursive calls. | |
9053 | ||
91deb937 RG |
9054 | 2009-07-02 Richard Guenther <rguenther@suse.de> |
9055 | ||
9056 | * tree-ssa-live.c (remove_unused_locals): Do not remove | |
9057 | heap variables. | |
9058 | * tree-ssa-structalias.c (handle_lhs_call): Delay setting | |
9059 | of DECL_EXTERNAL for HEAP variables. | |
9060 | (compute_points_to_sets): Set DECL_EXTERNAL for escaped | |
9061 | HEAP variables. Do not adjust RESTRICT vars. | |
9062 | (find_what_var_points_to): Nobody cares if something | |
9063 | points to READONLY. | |
9064 | ||
2011dbb0 BE |
9065 | 2009-07-02 Ben Elliston <bje@au.ibm.com> |
9066 | ||
9067 | * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move | |
9068 | pc_low and pc_high declarations to the top of the function. | |
9069 | ||
f2082f90 DD |
9070 | 2009-07-01 DJ Delorie <dj@redhat.com> |
9071 | ||
9072 | * config/mep/mep.c (mep_handle_option): Leave IVC2 control | |
9073 | registers as fixed. | |
5071eab7 | 9074 | (mep_interrupt_saved_reg): Save appropriate IVC2 control registers. |
f2082f90 DD |
9075 | * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make |
9076 | unspecified accesses to control registers. | |
9077 | * config/mep/intrinsics.md: Regenerate. | |
9078 | * config/mep/intrinsics.h: Regenerate. | |
9079 | * config/mep/mep-intrin.h: Regenerate. | |
3f36bac2 | 9080 | |
9df748c0 AG |
9081 | 2009-07-01 Anthony Green <green@moxielogic.com> |
9082 | ||
9083 | * config/moxie/moxie.c (moxie_expand_prologue): Use dec | |
9084 | instruction when possible. | |
9085 | (moxie_expand_prologue): Ditto. Also, save an instruction and | |
3f36bac2 | 9086 | some complexity by popping off of $r12 instead of $sp. |
9df748c0 AG |
9087 | * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two |
9088 | operands. | |
3f36bac2 | 9089 | |
997704f1 RH |
9090 | 2009-07-01 Richard Henderson <rth@redhat.com> |
9091 | ||
9092 | PR bootstrap/40347 | |
9093 | * function.c (reposition_prologue_and_epilogue_notes): If epilogue | |
9094 | contained no insns, reposition note before last insn. | |
9095 | ||
9f2af3ce RH |
9096 | 2009-07-01 Richard Henderson <rth@redhat.com> |
9097 | ||
9098 | PR debug/40431 | |
9099 | * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for | |
9100 | DW_CFA_def_cfa_offset and DW_CFA_def_cfa. | |
9101 | ||
d66a97e2 MM |
9102 | 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com> |
9103 | ||
9104 | PR bootstrap/40558 | |
9105 | * config/rs6000/rs6000.c (print_operand): Undo change that breaks | |
9106 | darwin9 for printing reg addresses with %y. | |
9107 | ||
479b1013 AN |
9108 | 2009-07-01 Adam Nemet <anemet@caviumnetworks.com> |
9109 | ||
9110 | * combine.c (force_to_mode): Handle TRUNCATE. Factor out | |
9111 | truncation from operands in binary operations. | |
9112 | ||
c600a155 AN |
9113 | 2009-07-01 Adam Nemet <anemet@caviumnetworks.com> |
9114 | ||
9115 | Revert: | |
9116 | 2009-01-11 Adam Nemet <anemet@caviumnetworks.com> | |
9117 | * expmed.c (store_bit_field_1): Properly truncate the paradoxical | |
9118 | subreg of op0 to the original op0. | |
9119 | ||
9120 | * expmed.c (store_bit_field_1): Use a temporary as the destination | |
9121 | instead of a paradoxical subreg when we need to truncate the result. | |
9122 | ||
a12e9a5f DD |
9123 | 2009-07-01 DJ Delorie <dj@redhat.com> |
9124 | ||
5071eab7 UB |
9125 | * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic |
9126 | names to VLIW variants. | |
a12e9a5f DD |
9127 | (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants. |
9128 | * config/mep/intrinsics.md: Regenerate. | |
9129 | * config/mep/intrinsics.h: Regenerate. | |
9130 | * config/mep/mep-intrin.h: Regenerate. | |
9131 | ||
2a5bd62a JJ |
9132 | 2009-07-01 Jakub Jelinek <jakub@redhat.com> |
9133 | ||
9134 | PR debug/40462 | |
9135 | * jump.c (returnjump_p): Revert last patch. | |
9136 | * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs. | |
9137 | ||
3232e9d8 JDA |
9138 | 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
9139 | ||
4aa7f896 JDA |
9140 | PR target/40575 |
9141 | * pa.md (casesi32p): Use jump table label to determine the offset | |
9142 | of the jump table. | |
9143 | (casesi64p): Likewise. | |
9144 | ||
5071eab7 UB |
9145 | * pa.c (forward_branch_p): Return bool type. Use instruction |
9146 | addresses when available. Assert that INSN has a jump label. | |
3232e9d8 JDA |
9147 | (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't |
9148 | have a jump label. | |
9149 | ||
14c41b9b RG |
9150 | 2009-07-01 Richard Guenther <rguenther@suse.de> |
9151 | ||
9152 | PR tree-optimization/19831 | |
9153 | * tree-ssa-dce.c (propagate_necessity): Calls to functions | |
5071eab7 | 9154 | that only act as barriers do not make any previous stores necessary. |
14c41b9b RG |
9155 | * tree-ssa-structalias.c (handle_lhs_call): Delay making |
9156 | HEAP variables global, do not add a constraint from nonlocal. | |
9157 | (find_func_aliases): Handle escapes through return statements. | |
9158 | (compute_points_to_sets): Make escaped HEAP variables global. | |
9159 | ||
1ed20a40 PB |
9160 | 2009-07-01 Paolo Bonzini <bonzini@gnu.org> |
9161 | ||
9162 | PR bootstrap/40597 | |
9163 | * expmed.c (emit_store_flag): Perform a conversion if necessary, | |
9164 | after reducing a DImode cstore to SImode. | |
9165 | ||
ce3aea35 PB |
9166 | 2009-07-01 Paolo Bonzini <bonzini@gnu.org> |
9167 | ||
9168 | * expr.c (expand_expr_real_1): Reinstate fallthrough to | |
9169 | TRUTH_ANDIF_EXPR if do_store_flag returns NULL. | |
9170 | ||
1df34d4d MR |
9171 | 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org> |
9172 | ||
9173 | * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1. | |
9174 | * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the | |
9175 | to 0. | |
9176 | * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab | |
9177 | and umod_optab if TARGET_BSD_DIVMOD. | |
9178 | * config/vax/lib1funcs.asm: New file. | |
9179 | * config/vax/t-linux: New file. | |
9180 | * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux. | |
9181 | ||
085e05ac JJ |
9182 | 2009-06-30 Jakub Jelinek <jakub@redhat.com> |
9183 | ||
5ccde5a0 JJ |
9184 | PR c++/40566 |
9185 | * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert | |
9186 | to type arguments that have void type. | |
9187 | ||
085e05ac JJ |
9188 | PR debug/40573 |
9189 | * dwarf2out.c (gen_formal_parameter_die): Call | |
9190 | equate_decl_number_to_die if node is different from origin. | |
9191 | ||
9fb374d6 AG |
9192 | 2009-06-30 Anthony Green <green@moxielogic.com> |
9193 | ||
9194 | Clean up moxie port for --enable-build-with-cxx. | |
9195 | * config/moxie/moxie.c (moxie_function_value): First two | |
9196 | parameters are const_tree, not tree. | |
9197 | * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS. | |
9198 | (REG_CLASS_NAMES): Ditto. | |
9199 | (REGNO_REG_CLASS): Ditto. | |
9200 | * config/moxie/moxie-protos.h (moxie_override_options): Declare. | |
9201 | (moxie_function_value): Fix constyness of arguments. | |
9202 | ||
f82a627c EB |
9203 | 2009-06-30 Eric Botcazou <ebotcazou@adacore.com> |
9204 | ||
9205 | * cgraphunit.c (cgraph_finalize_compilation_unit): Call | |
9206 | finalize_size_functions before further processing. | |
9207 | * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h. | |
9208 | (variable_size): Call self_referential_size on size expressions | |
9209 | that contain a PLACEHOLDER_EXPR. | |
9210 | (size_functions): New static variable. | |
9211 | (copy_self_referential_tree_r): New static function. | |
9212 | (self_referential_size): Likewise. | |
9213 | (finalize_size_functions): New global function. | |
9214 | * tree.c: Include tree-inline.h. | |
9215 | (push_without_duplicates): New static function. | |
9216 | (find_placeholder_in_expr): New global function. | |
9217 | (substitute_in_expr) <tcc_declaration>: Return the replacement object | |
9218 | on equality. | |
9219 | <tcc_expression>: Likewise. | |
9220 | <tcc_vl_exp>: If the replacement object is a constant, try to inline | |
9221 | the call in the expression. | |
9222 | * tree.h (finalize_size_functions): Declare. | |
9223 | (find_placeholder_in_expr): Likewise. | |
9224 | (FIND_PLACEHOLDER_IN_EXPR): New macro. | |
9225 | (substitute_placeholder_in_expr): Update comment. | |
9226 | * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare | |
9227 | is true. | |
9228 | (copy_tree_body_r): Likewise. | |
9229 | (copy_tree_body): New static function. | |
9230 | (maybe_inline_call_in_expr): New global function. | |
9231 | * tree-inline.h (struct copy_body_data): Add do_not_unshare field. | |
9232 | (maybe_inline_call_in_expr): Declare. | |
9233 | * Makefile.in (tree.o): Depend on TREE_INLINE_H. | |
9234 | (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and | |
9235 | GIMPLE_H. | |
9236 | ||
67635176 RG |
9237 | 2009-06-30 Richard Guenther <rguenther@suse.de> |
9238 | ||
9239 | * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always | |
9240 | continue walking. | |
9241 | (propagate_necessity): Do not mark reaching defs of stores | |
9242 | as necessary. | |
9243 | ||
2de58650 JH |
9244 | 2009-06-30 Jan Hubicka <jh@suse.cz> |
9245 | ||
9246 | * cfgloopanal.c (check_irred): Move into ... | |
9247 | (mark_irreducible_loops): ... here; return true if ireducible | |
9248 | loops was found. | |
9249 | * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h | |
9250 | (analyze_function): Try to prove loop finiteness. | |
9251 | * cfgloop.h (mark_irreducible_loops): Update prototype. | |
9252 | * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP. | |
9253 | ||
46db44cc BS |
9254 | 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net> |
9255 | ||
9256 | * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print. | |
9257 | ||
1825a1f3 IR |
9258 | 2009-06-30 Ira Rosen <irar@il.ibm.com> |
9259 | ||
9260 | PR tree-optimization/40542 | |
f100a4a8 | 9261 | * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile |
1825a1f3 IR |
9262 | types. |
9263 | ||
71d4d3eb MJ |
9264 | 2009-06-30 Martin Jambor <mjambor@suse.cz> |
9265 | ||
9266 | PR tree-optimization/40582 | |
9267 | * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather | |
9268 | than useless_type_conversion_p. | |
9269 | (generate_subtree_copies): Increment sra_stats.subtree_copies at a | |
9270 | proper place. | |
9271 | ||
f57017cd MJ |
9272 | 2009-06-30 Martin Jambor <mjambor@suse.cz> |
9273 | ||
9274 | PR middle-end/40554 | |
9275 | * tree-sra.c (sra_modify_expr): Add access->offset to start_offset. | |
9276 | ||
42bc61e0 RG |
9277 | 2009-06-30 Richard Guenther <rguenther@suse.de> |
9278 | ||
9279 | * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to | |
9280 | use ao_ref references. | |
9281 | (walk_aliased_vdefs): Likewise. | |
9282 | * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype. | |
9283 | * tree-ssa-dce.c (struct ref_data): Remove. | |
9284 | (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument. | |
9285 | (mark_aliased_reaching_defs_necessary): Adjust. | |
9286 | (mark_all_reaching_defs_necessary_1): Likewise. | |
9287 | ||
ef12ae45 PB |
9288 | 2009-06-30 Paolo Bonzini <bonzini@gnu.org> |
9289 | ||
9290 | PR boostrap/40597 | |
9291 | * expmed.c (emit_cstore): New name of emit_store_flag_1. | |
9292 | (emit_store_flag_1): Extract from emit_store_flag, adjust | |
9293 | calls to (what now is) emit_cstore. | |
9294 | (emit_store_flag): Call emit_store_flag_1 and also use it | |
9295 | for what used to be recursive calls. | |
9296 | ||
791b59e3 WG |
9297 | 2009-06-30 Wei Guozhi <carrot@google.com> |
9298 | ||
9299 | PR/40416 | |
9300 | * tree-ssa-sink.c (statement_sink_location): Stop sinking expression | |
9301 | if the target bb post dominates from bb. | |
9302 | * config/i386/i386.c (memory_address_length): Check existence of base | |
9303 | register before using it. | |
9304 | ||
7a61cf6f NC |
9305 | 2009-06-30 Nick Clifton <nickc@redhat.com> |
9306 | DJ Delorie <dj@redhat.com> | |
9307 | ||
9308 | * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if | |
9309 | __FMOVD_ENABLED__ is defined. | |
9310 | * config/sh/sh.h | |
9311 | (TARGET_FMOVD): Provide a default definition. | |
9312 | (MASK_FMOVD): Likewise. | |
9313 | (TARGET_CPU_CPP_BUILTINS): Define | |
9314 | __FMOVD_ENABLED__ if TARGET_FMOVD is true. | |
9315 | * config/sh/sh.md (movdf_i4): For alternative 0 use either one or | |
9316 | two fmov instructions depending upon whether TARGET_FMOVD is | |
9317 | enabled. | |
9318 | (split for DF load from memory into register): Also handle | |
9319 | MEMs which consist of REG+DISP addressing. | |
9320 | (split for DF store from register to memory): Likewise. | |
9321 | * config/sh/sh.opt (mfmovd): Remove this switch. | |
9322 | * doc/invoke.texi (-mfmovd): Remove documentation of this switch. | |
9323 | * config/sh/sh.c (sh_override_options): Do not automatically | |
9324 | enable TARGET_MOVD for the SH2A when supporting doubles - leave | |
9325 | that to the -mfmovd command line switch. | |
9326 | ||
9327 | * config/sh/sh.c (broken_move): Do not restrict fldi test to only | |
9328 | the SH4 and SH4A. | |
9329 | (fldi_ok): Always allow. | |
9330 | * config/sh/sh.md (movsf_ie): Always use single fp_mode. | |
9331 | ||
5a99fe3e DD |
9332 | 2009-06-29 DJ Delorie <dj@redhat.com> |
9333 | ||
9334 | * doc/install.texi (mep-x-elf): Correct chip's full name. | |
9335 | ||
ddaa3488 L |
9336 | 2009-06-29 H.J. Lu <hongjiu.lu@intel.com> |
9337 | ||
9338 | * doc/extend.texi: Fix typo. | |
9339 | ||
bbf531f0 TT |
9340 | 2009-06-29 Tom Tromey <tromey@redhat.com> |
9341 | ||
9342 | * dwarf2.h: Remove. | |
9343 | * Makefile.in (DWARF2_H): New variable. | |
9344 | (except.o): Use it. | |
9345 | (dwarf2out.o): Likewise. | |
9346 | (dwarf2asm.o): Likewise. | |
9347 | * config/i386/t-i386: Use DWARF2_H. | |
9348 | * except.c: Include elf/dwarf2.h. | |
9349 | * unwind-dw2.c: Include elf/dwarf2.h. | |
9350 | * dwarf2out.c: Include elf/dwarf2.h. | |
9351 | (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield. | |
9352 | <dtprel>: New field. | |
9353 | (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr. | |
9354 | (size_of_loc_descr): Likewise. | |
9355 | (output_loc_operands_raw): Likewise. | |
9356 | (output_loc_operands): Handle new dtprel field. | |
9357 | (loc_checksum): Update. | |
9358 | (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field. | |
9359 | * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h. | |
9360 | * unwind-dw2-fde.c: Include elf/dwarf2.h. | |
9361 | * dwarf2asm.c: Include elf/dwarf2.h. | |
9362 | * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h. | |
9363 | * config/mmix/mmix.c: Include elf/dwarf2.h. | |
9364 | * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h. | |
9365 | * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h. | |
9366 | * config/sh/sh.c: Include elf/dwarf2.h. | |
9367 | * config/i386/i386.c: Include elf/dwarf2.h. | |
9368 | ||
e2491744 DD |
9369 | 2009-06-29 DJ Delorie <dj@redhat.com> |
9370 | ||
bae38135 DD |
9371 | * config/mep/mep.h (CPP_SPEC): Remove __cop macro. |
9372 | ||
e2491744 DD |
9373 | * doc/extend.texi: Add MeP attributes and pragmas. |
9374 | * doc/invoke.text: Add MeP Options. | |
9375 | * doc/contrib.texi: Add MeP contribution. | |
9376 | * doc/md.texi: Add MeP constraints. | |
9377 | * doc/install.texi: Add MeP target. | |
9378 | ||
b52b1749 AS |
9379 | 2009-06-30 Anatoly Sokolov <aesok@post.ru> |
9380 | ||
9381 | * target.h (struct gcc_target): Add frame_pointer_required field. | |
9382 | * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New. | |
9383 | (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED. | |
9384 | * ira.c (setup_eliminable_regset): Use frame_pointer_required target | |
9385 | hook. | |
9386 | * reload1.c (update_eliminables): (Ditto.). | |
9387 | * gcc/system.h (FRAME_POINTER_REQUIRED): Poison. | |
9388 | * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation. | |
9389 | (INITIAL_FRAME_POINTER_OFFSET): (Ditto.). | |
9390 | ||
9391 | * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9392 | ||
9393 | * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9394 | * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9395 | (arm_frame_pointer_required): New function. | |
9396 | ||
9397 | * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9398 | * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9399 | (avr_frame_pointer_required_p): Declare as static. | |
9400 | * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove. | |
9401 | ||
9402 | * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9403 | * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9404 | (bfin_frame_pointer_required): Make as static, change return type | |
9405 | to bool. | |
9406 | * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove. | |
9407 | ||
9408 | * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9409 | * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9410 | (cris_frame_pointer_required): New function. | |
f100a4a8 | 9411 | |
b52b1749 AS |
9412 | * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro. |
9413 | ||
9414 | * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9415 | * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9416 | (fr30_frame_pointer_required): New function. | |
f100a4a8 | 9417 | |
b52b1749 AS |
9418 | * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro. |
9419 | * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9420 | (frv_frame_pointer_required): Make as static, change return type | |
9421 | to bool. | |
9422 | * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove. | |
9423 | ||
9424 | * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9425 | * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9426 | (ix86_frame_pointer_required): Make as static, change return type to | |
9427 | bool. | |
9428 | * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove. | |
9429 | ||
9430 | * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9431 | * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9432 | ||
9433 | * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9434 | ||
9435 | * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro. | |
f100a4a8 | 9436 | |
b52b1749 AS |
9437 | * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro. |
9438 | ||
9439 | * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9440 | * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9441 | (mips_frame_pointer_required): Make as static. | |
9442 | * config/mips/mips-protos.h (mips_frame_pointer_required): Remove. | |
f100a4a8 | 9443 | |
b52b1749 AS |
9444 | * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro. |
9445 | * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9446 | (mmix_frame_pointer_required): Mew function. | |
9447 | ||
9448 | * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9449 | * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9450 | ||
9451 | * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9452 | ||
9453 | * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9454 | ||
9455 | * config/sh/sh.h (CAN_ELIMINATE): Remove macro. | |
9456 | ||
9457 | * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9458 | (CAN_ELIMINATE): Redefine. | |
9459 | * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9460 | (sparc_frame_pointer_required): New function. | |
9461 | (sparc_can_eliminate): New function. | |
9462 | * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare. | |
9463 | ||
9464 | * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9465 | * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9466 | ||
9467 | * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9468 | * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9469 | (xtensa_frame_pointer_required): Make as static, change return type | |
9470 | to bool. | |
9471 | * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required): | |
9472 | Remove. | |
9473 | ||
5071eab7 | 9474 | 2009-06-29 Olatunji Ruwase <tjruwase@google.com> |
78bf7bd0 OR |
9475 | |
9476 | * doc/plugins.texi: Document PLUGIN_START_UNIT. | |
9477 | * toplev.c (compile_file): Call PLUGIN_START_UNIT. | |
9478 | * gcc-plugin.h (PLUGIN_START_UNIT): Added new event. | |
9479 | * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT. | |
9480 | (register_callback): Handle PLUGIN_START_UNIT. | |
9481 | (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT. | |
9482 | ||
96da8066 EB |
9483 | 2009-06-29 Eric Botcazou <ebotcazou@adacore.com> |
9484 | ||
9485 | * tree.c (process_call_operands): Propagate TREE_READONLY from the | |
9486 | operands. | |
9487 | (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P. | |
9488 | (build3_stat): Propagate TREE_READONLY for COND_EXPR. | |
9489 | ||
356ecb15 DJ |
9490 | 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com> |
9491 | ||
9492 | * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register | |
9493 | move cost. | |
9494 | ||
897eef7b UB |
9495 | 2009-06-29 Uros Bizjak <ubizjak@gmail.com> |
9496 | ||
9497 | * doc/extend.texi (Additional Floating Types): __float128 is also | |
9498 | supported on i386 targets. | |
9499 | ||
74d27244 RG |
9500 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9501 | ||
9502 | PR middle-end/14187 | |
9503 | * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict | |
9504 | flag. | |
9505 | (pt_solutions_same_restrict_base): Declare. | |
9506 | * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var | |
9507 | flag. | |
9508 | (new_var_info): Initialize is_global_var properly for SSA_NAMEs. | |
9509 | (make_constraint_from, make_copy_constraint): Move earlier. | |
9510 | (make_constraint_from_heapvar): New function. | |
9511 | (make_constraint_from_restrict): Likewise. | |
9512 | (handle_lhs_call): Use it. | |
9513 | (find_func_aliases): Use it to track conversions to restrict | |
9514 | qualified pointers. | |
9515 | (struct fieldoff): Add only_restrict_pointers flag. | |
9516 | (push_fields_onto_fieldstack): Initialize it. | |
9517 | (create_variable_info_for): Track global restrict qualified pointers. | |
9518 | (intra_create_variable_infos): Use make_constraint_from_heapvar. | |
9519 | Track restrict qualified pointer arguments. | |
9520 | (set_uids_in_ptset): Use varinfo is_global_var flag. | |
9521 | (find_what_var_points_to): Set the vars_contains_restrict flag. | |
9522 | Always create the points-to solution for sets including restrict tags. | |
9523 | (pt_solutions_same_restrict_base): New function. | |
9524 | * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict | |
9525 | qualified pointers use pt_solutions_same_restrict_base as | |
9526 | additional source for disambiguation. | |
9527 | ||
5b21f0f3 RG |
9528 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9529 | ||
9530 | PR middle-end/38212 | |
9531 | * alias.c (find_base_decl): Remove. | |
9532 | (get_deref_alias_set_1): Remove restrict handling. | |
9533 | * c-common.c (c_apply_type_quals_to_decl): Do not set | |
9534 | DECL_POINTER_ALIAS_SET. | |
9535 | * gimplify.c (find_single_pointer_decl_1): Remove. | |
9536 | (find_single_pointer_decl): Likewise. | |
9537 | (internal_get_tmp_var): Remove restrict handling. | |
9538 | (gimple_regimplify_operands): Likewise. | |
9539 | * omp-low.c (expand_omp_atomic_pipeline): Do not set | |
9540 | DECL_POINTER_ALIAS_SET. Use ref-all pointers. | |
9541 | * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET. | |
9542 | * tree.c (restrict_base_for_decl): Remove. | |
9543 | (init_ttree): Do not allocate it. | |
9544 | (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set | |
9545 | LABEL_DECL_UID for label decls. | |
9546 | (copy_node_stat): Do not copy restrict information. | |
9547 | (decl_restrict_base_lookup): Remove. | |
9548 | (decl_restrict_base_insert): Likewise. | |
9549 | (print_restrict_base_statistics): Likewise. | |
9550 | (dump_tree_statistics): Do not call print_restrict_base_statistics. | |
9551 | * tree.h (DECL_POINTER_ALIAS_SET): Remove. | |
9552 | (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise. | |
9553 | (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid. | |
9554 | (LABEL_DECL_UID): Adjust. | |
9555 | (DECL_BASED_ON_RESTRICT_P): Remove. | |
9556 | (DECL_GET_RESTRICT_BASE): Likewise. | |
9557 | (SET_DECL_RESTRICT_BASE): Likewise. | |
9558 | (struct tree_decl_with_vis): Remove based_on_restrict_p flag. | |
9559 | ||
9560 | * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers | |
9561 | instead of DECL_POINTER_ALIAS_SET. | |
9562 | * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise. | |
9563 | * config/s390/s390.c (s390_gimplify_va_arg): Likewise. | |
9564 | * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise. | |
9565 | ||
09a782eb RG |
9566 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9567 | ||
9568 | PR tree-optimization/40579 | |
9569 | * tree-vrp.c (vrp_evaluate_conditional): Bail out early if | |
9570 | the IL to simplify has constants that overflowed. | |
9571 | ||
1e9ae5ab UB |
9572 | 2009-06-28 Uros Bizjak <ubizjak@gmail.com> |
9573 | ||
9574 | PR tree-optimization/40550 | |
9575 | * tree-vect-generic.c (expand_vector_operations_1): Compute in | |
9576 | vector_compute_type only when the size of vector_compute_type is | |
9577 | less than the size of type. | |
9578 | ||
c703e618 EB |
9579 | 2009-06-28 Eric Botcazou <ebotcazou@adacore.com> |
9580 | ||
9581 | * fold-const.c (contains_label_1): Fix comments. | |
9582 | (contains_label_p): Do not walk trees multiple time. | |
9583 | ||
0948ccb2 PB |
9584 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9585 | ||
897eef7b UB |
9586 | * config/i386/i386.h (enum ix86_fpcmp_strategy): New. |
9587 | * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4, | |
9588 | cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to | |
9589 | ix86_fp_comparison_operator. | |
9590 | (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed, | |
9591 | *fp_jcc_2_sse, *fp_jcc_2_387): Delete | |
9592 | (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387, | |
9593 | *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to | |
9594 | !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call | |
9595 | to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator. | |
9596 | (related splits): Change predicate to ix86_fp_comparison_operator. | |
9597 | * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator | |
9598 | instead of ix86_fp_comparison_codes. | |
9599 | (ix86_trivial_fp_comparison_operator, | |
9600 | ix86_fp_comparison_operator): New. | |
9601 | * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New. | |
9602 | (ix86_expand_compare): Eliminate last two parameters. | |
9603 | (ix86_fp_jump_nontrivial_p): Kill. | |
9604 | * config/i386/i386.c (put_condition_code): Eliminate call to | |
9605 | ix86_fp_comparison_codes and subsequent assertion. | |
9606 | (ix86_fp_comparison_codes): Eliminate. | |
9607 | (ix86_fp_swap_condition): New. | |
9608 | (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost, | |
9609 | ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate | |
9610 | into ix86_fp_comparison_cost and ix86_fp_comparison_strategy. | |
9611 | (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy | |
9612 | and ix86_fp_swap_condition. | |
9613 | (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump. | |
9614 | Use ix86_fp_comparison_strategy. | |
9615 | (ix86_expand_compare): Likewise. Eliminate last two arguments. | |
9616 | (ix86_fp_jump_nontrivial_p): Eliminate. | |
9617 | (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust | |
9618 | call to ix86_expand_compare. | |
9619 | (ix86_split_fp_branch, ix86_expand_setcc, | |
9620 | ix86_expand_carry_flag_compare, ix86_expand_int_movcc, | |
9621 | ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump. | |
0948ccb2 | 9622 | |
accbd151 PB |
9623 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9624 | ||
897eef7b UB |
9625 | * config/arm/arm.c (arm_final_prescan_ins): Eliminate code |
9626 | related to jump_clobbers. | |
9627 | * config/arm/arm.md (conds): Remove jump_clob case. | |
9628 | (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two | |
9629 | splits): Change comparison_operator to arm_comparison_operator. | |
9630 | (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed): | |
9631 | Eliminate. | |
accbd151 | 9632 | |
45475a3f PB |
9633 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9634 | ||
897eef7b UB |
9635 | * dojump.c (do_compare_rtx_and_jump): Try swapping the |
9636 | condition for floating point modes. | |
9637 | * expmed.c (emit_store_flag_1): Move here a bigger part | |
9638 | of emit_store_flag. | |
9639 | (emit_store_flag): Try swapping the condition for floating point | |
9640 | modes. | |
9641 | * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better. | |
45475a3f | 9642 | |
495499da PB |
9643 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9644 | ||
897eef7b UB |
9645 | * expr.c (expand_expr_real_1): Just use do_store_flag. |
9646 | (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use | |
9647 | emit_store_flag_force. | |
9648 | * expmed.c (emit_store_flag_force): Copy here trick | |
9649 | previously in expand_expr_real_1. Try reversing the comparison. | |
9650 | (emit_store_flag_1): Work if target is NULL. | |
9651 | (emit_store_flag): Work if target is NULL, using the result mode | |
9652 | from the comparison. Use split_comparison, restructure final part | |
9653 | to simplify conditionals. | |
495499da | 9654 | |
337e5d98 PB |
9655 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9656 | ||
897eef7b UB |
9657 | * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump. |
9658 | * dojump.c (do_jump): Change handling of floating-point | |
9659 | ops to use just do_compare_and_jump. | |
9660 | (split_comparison): New. | |
9661 | (do_compare_rtx_and_jump): Add here logic coming previously | |
9662 | in do_jump, using split_comparison. | |
337e5d98 | 9663 | |
2ca57608 L |
9664 | 2009-06-27 H.J. Lu <hongjiu.lu@intel.com> |
9665 | ||
9666 | PR target/40489 | |
9667 | * config/ia64/ia64.c (ia64_reorg): Check NULL insn. | |
9668 | ||
8122ccf1 PB |
9669 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9670 | ||
9671 | * tree-ssa-alias.c: Fix unintentional commit. | |
9672 | ||
b9cafe60 PB |
9673 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9674 | ||
9675 | * passes.c (execute_one_pass): Fix unintentional commit. | |
9676 | ||
4c78c26b PB |
9677 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9678 | ||
2ca57608 L |
9679 | * df-problems.c (df_set_seen, df_unset_seen): Delete. |
9680 | (df_rd_local_compute, df_md_local_compute): Inline them. | |
4c78c26b | 9681 | |
2ca57608 L |
9682 | (df_md_scratch): New. |
9683 | (df_md_alloc, df_md_free): Allocate/free it. | |
9684 | (df_md_local_compute): Only include live registers in init. | |
9685 | (df_md_transfer_function): Prune the in-set computed by | |
9686 | the confluence function, and the gen-set too. | |
4c78c26b PB |
9687 | |
9688 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> | |
c6741572 PB |
9689 | |
9690 | PR rtl-optimization/26854 | |
2ca57608 L |
9691 | * timevar.def: Remove TV_DF_RU, add TV_DF_MD. |
9692 | * df-problems.c (df_rd_add_problem): Fix comment. | |
9693 | (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc, | |
9694 | df_md_simulate_artificial_defs_at_top, | |
9695 | df_md_simulate_one_insn, df_md_bb_local_compute_process_def, | |
9696 | df_md_bb_local_compute, df_md_local_compute, df_md_reset, | |
9697 | df_md_transfer_function, df_md_init, df_md_confluence_0, | |
9698 | df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump, | |
9699 | problem_MD, df_md_add_problem): New. | |
9700 | * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md, | |
9701 | df_md_get_bb_info): New. | |
1e9ae5ab | 9702 | (DF_LAST_PROBLEM_PLUS1): Adjust. |
2ca57608 L |
9703 | |
9704 | * Makefile.in (fwprop.o): Include domwalk.h. | |
9705 | * fwprop.c: Include domwalk.h. | |
9706 | (reg_defs, reg_defs_stack): New. | |
9707 | (bitmap_only_bit_between): Remove. | |
9708 | (process_defs): New. | |
9709 | (process_uses): Use reg_defs and local_md instead of | |
9710 | bitmap_only_bit_between and local_rd. | |
9711 | (single_def_use_enter_block): New, from build_single_def_use_links. | |
9712 | (single_def_use_leave_block): New. | |
9713 | (build_single_def_use_links): Remove code moved to | |
9714 | single_def_use_enter_block, invoke domwalk. | |
9715 | (use_killed_between): Adjust comment. | |
c6741572 | 9716 | |
7ff23740 PB |
9717 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9718 | ||
9719 | * bitmap.h (bitmap_ior_and_into): New. | |
9720 | * bitmap.c (bitmap_ior_and_into): New. | |
9721 | ||
ccf5c864 PB |
9722 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9723 | ||
2ca57608 L |
9724 | * domwalk.h (struct dom_walk_data): Remove all callbacks except |
9725 | before_dom_children_before_stmts and after_dom_children_after_stmts. | |
f100a4a8 | 9726 | Rename the two remaining callbacks to just before_dom_children and |
2ca57608 L |
9727 | after_dom_children. Remove other GIMPLE statement walking bits. |
9728 | * domwalk.c (walk_dominator_tree): Remove now unsupported features. | |
9729 | * graphite.c: Do not include domwalk.h. | |
9730 | * tree-into-ssa.c (interesting_blocks): New global. | |
9731 | (struct mark_def_sites_global_data): Remove it and names_to_rename. | |
9732 | (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments, | |
9733 | rewrite_update_stmt, rewrite_update_phi_arguments): Simplify | |
9734 | now that they're not domwalk callbacks. | |
9735 | (rewrite_initialize_block): Rename to... | |
9736 | (rewrite_enter_block): ... this, place after called functions. Test | |
9737 | interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments. | |
9738 | (rewrite_finalize_block): Rename to... | |
9739 | (rewrite_leave_block): ... this, place after called functions. | |
9740 | (rewrite_update_init_block): Rename to... | |
9741 | (rewrite_update_enter_block): ... this, place after called functions. | |
f100a4a8 | 9742 | Test interesting_blocks, call rewrite_update_stmt and |
2ca57608 L |
9743 | rewrite_update_phi_arguments. |
9744 | (rewrite_update_fini_block): Rename to... | |
9745 | (rewrite_leave_block): ... this, place after called functions. | |
9746 | (rewrite_blocks): Remove last argument, simplify initialization of | |
9747 | walk_data. | |
9748 | (mark_def_sites_initialize_block): Rename to... | |
9749 | (mark_def_sites_block): ... this, call mark_def_sites. | |
9750 | (mark_def_sites_blocks): Remove argument, simplify initialization of | |
9751 | walk_data. | |
9752 | (rewrite_into_ssa): Adjust for interesting_blocks_being a global. | |
9753 | (update_ssa): Likewise. | |
9754 | * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk | |
9755 | callback. | |
9756 | (tree_ssa_dominator_optimize): Simplify initialization of walk_data. | |
9757 | (dom_opt_initialize_block): Rename to... | |
9758 | (dom_opt_enter_block): ... this, place after called functions. Walk | |
9759 | statements here, inline propagate_to_outgoing_edges. | |
9760 | (dom_opt_finalize_block): Rename to... | |
9761 | (dom_opt_leave_block): ... this, place after called functions. | |
9762 | * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a | |
9763 | domwalk callback. | |
9764 | (dse_enter_block, dse_record_phi): New. | |
9765 | (dse_record_phis): Delete. | |
9766 | (dse_finalize_block): Rename to... | |
9767 | (dse_leave_block): ... this. | |
9768 | (tree_ssa_dse): Simplify initialization of walk_data. | |
9769 | * tree-ssa-loop-im.c (determine_invariantness, move_computations): | |
9770 | Adjust initialization of walk_data. | |
9771 | * tree-ssa-loop-unswitch.c: Do not include domwalk.h. | |
9772 | * tree-ssa-loop-phiopt.c (get_non_trapping): | |
9773 | Adjust initialization of walk_data. | |
9774 | * tree-ssa-loop-threadedge.c: Do not include domwalk.h. | |
9775 | * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that | |
9776 | it's not a domwalk callback. | |
9777 | (uncprop_initialize_block): Rename to... | |
9778 | (dse_enter_block): ... this, call uncprop_into_successor_phis. | |
9779 | (dse_finalize_block): Rename to... | |
9780 | (dse_leave_block): ... this. | |
9781 | (tree_ssa_uncprop): Simplify initialization of walk_data. | |
9782 | * Makefile.in: Adjust dependencies. | |
ccf5c864 | 9783 | |
75d28030 RE |
9784 | 2009-06-27 Richard Earnshaw <rearnsha@arm.com> |
9785 | ||
9786 | * arm.md (casesi): Fix test for Thumb1. | |
9787 | (thumb1_casesi_internal_pic): Likewise. | |
9788 | (thumb1_casesi_dispatch): Likewise. | |
9789 | ||
9833720d DG |
9790 | 2009-06-26 Daniel Gutson <dgutson@codesourcery.com> |
9791 | ||
9792 | * config/arm/arm-cores.def: Added core cortex-m0. | |
9793 | * config/arm/arm-tune.md: Regenerated. | |
9794 | * doc/invoke.texi: Added entry for cpu ARM Cortex-M0. | |
9795 | ||
bb7681bf DD |
9796 | 2009-06-26 DJ Delorie <dj@redhat.com> |
9797 | ||
9798 | * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything. | |
9799 | ||
9800 | * config/mep/mep.c (mep_bundle_insns): Account for the fact that | |
9801 | the scheduler doesn't tag jump insns. | |
9802 | ||
a35120a3 L |
9803 | 2009-06-26 H.J. Lu <hongjiu.lu@intel.com> |
9804 | ||
9805 | * c-decl.c (merge_decls): Re-indent. | |
9806 | ||
4b6e55df JJ |
9807 | 2009-06-26 Janis Johnson <janis187@us.ibm.com> |
9808 | ||
9809 | PR c/39902 | |
9810 | * tree.c (real_zerop, real_onep, real_twop, real_minus_onep): | |
9811 | Special-case decimal float constants. | |
9812 | ||
27dbd3ac RH |
9813 | 2009-06-26 Richard Henderson <rth@redhat.com> |
9814 | ||
9815 | * function.h (struct function): Add cannot_be_copied_reason, | |
9816 | and cannot_be_copied_set. | |
9817 | * tree-inline.c (has_label_address_in_static_1): Rename from | |
9818 | inline_forbidden_p_2; don't set inline_forbidden_reason here. | |
9819 | (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise | |
9820 | don't set inline_forbidden_reason. | |
9821 | (copy_forbidden): New function, split out of inline_forbidden_p. | |
9822 | (inline_forbidden_p_stmt): Don't check for nonlocal labels here. | |
9823 | (inline_forbidden_p): Use copy_forbidden. | |
9824 | (tree_versionable_function_p): Likewise. | |
9825 | (inlinable_function_p): Merge into tree_inlinable_function_p. | |
9826 | (tree_function_versioning): Remap cfun->nonlocal_goto_save_area. | |
9827 | * ipa-cp.c (ipcp_versionable_function_p): New function. | |
9828 | (ipcp_cloning_candidate_p): Use it. | |
9829 | (ipcp_node_modifiable_p): Likewise. | |
9830 | ||
efb303b1 OR |
9831 | 2009-06-26 Olatunji Ruwase <tjruwase@google.com> |
9832 | ||
9833 | * builtins.c (expand_builtin_alloca): Handle builtin alloca | |
9834 | that is marked not to be inlined. Remove flag_mudflap use. | |
9835 | * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements. | |
9836 | (mf_xform_statements): Mark builtin alloca calls as un-inlineable. | |
9837 | ||
947e21c1 SE |
9838 | 2009-06-26 Steve Ellcey <sje@cup.hp.com> |
9839 | ||
9840 | PR bootstrap/40338 | |
9841 | * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed. | |
9842 | * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto. | |
9843 | ||
bae4cf87 KT |
9844 | 2009-06-26 Kai Tietz <kai.tietz@onevision.com> |
9845 | ||
9846 | * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none | |
9847 | shared libgcc. | |
9848 | (__mingwthr_remove_key_dtor): Likewise. | |
9849 | ||
46aaa417 RG |
9850 | 2009-06-26 Richard Guenther <rguenther@suse.de> |
9851 | ||
1e9ae5ab | 9852 | * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling. |
46aaa417 | 9853 | |
b3c54c8f SB |
9854 | 2009-06-26 Steven Bosscher <steven@gcc.gnu.org> |
9855 | ||
9856 | PR middle-end/40525 | |
9857 | * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails, | |
9858 | try the non-cond_exec path also. | |
9859 | ||
f5e66865 JDA |
9860 | 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
9861 | ||
9862 | PR target/40468 | |
9863 | * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions. | |
9864 | (output_cbranch): Use new functions. | |
9865 | (output_lbranch, output_bb, output_bvb, output_dbra, output_movb): | |
9866 | Likewise. | |
9867 | ||
8beb65e3 MM |
9868 | 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com> |
9869 | Pat Haugen <pthaugen@us.ibm.com> | |
9870 | Revital Eres <ERES@il.ibm.com> | |
9871 | ||
d66a97e2 MM |
9872 | * config/rs6000/rs6000.c (print_operand): Correct lossage message |
9873 | for %c error. Add %x support to print VSX registers as a unified | |
9874 | register set, instead of separate float and altivec registers. | |
9875 | Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for | |
9876 | %y case, and add support for VSX pre-modify addresses. | |
9877 | (output_toc): Add assert for CONST containing an integer constant | |
9878 | in the PLUS case. | |
9879 | (rs6000_adjust_cost): Add POWER7 support. | |
9880 | (insn_must_be_first_in_group): Ditto. | |
9881 | (insn_must_be_last_in_group): Ditto. | |
9882 | (rs6000_emit_popcount): Ditto. | |
9883 | (rs6000_vector_mode_supported_p): Ditto. | |
9884 | ||
8beb65e3 MM |
9885 | * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class): |
9886 | Change some of the functions called by macros to being called | |
9887 | through a pointer, so debug functions can be inserted if | |
f100a4a8 | 9888 | -mdebug=addr or -mdebug=cost. |
8beb65e3 MM |
9889 | (rs6000_preferred_reload_class_ptr): Ditto. |
9890 | (rs6000_secondary_reload_class_ptr): Ditto. | |
9891 | (rs6000_secondary_memory_needed_ptr): Ditto. | |
9892 | (rs6000_cannot_change_mode_class_ptr): Ditto. | |
9893 | (rs6000_secondary_reload_inner): Ditto. | |
9894 | (rs6000_legitimize_reload_address): Ditto. | |
9895 | (rs6000_legitimize_reload_address_ptr): Ditto. | |
9896 | (rs6000_mode_dependent_address): Ditto. | |
9897 | (rs6000_mode_dependent_address_ptr): Ditto. | |
9898 | ||
9899 | * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New | |
9900 | function to return true if the mode allows reg + integer | |
9901 | addresses. | |
9902 | (virtual_stack_registers_memory_p): New function to return true if | |
9903 | the address refers to a virtual stack register. | |
9904 | (rs6000_legitimate_offset_address_p): Move code to say whether a | |
9905 | mode supports reg+int addressing to reg_offset_addressing_ok_p and | |
9906 | call it. | |
9907 | (rs6000_legitimate_address_p): Add checks for modes that only can | |
9908 | do reg+reg addressing. Start adding VSX support. | |
9909 | (rs6000_legitimize_reload_address): Ditto. | |
9910 | (rs6000_legitimize_address): Ditto. | |
9911 | (rs6000_debug_legitimate_address_p): New debug functions for | |
9912 | -mdebug=addr and -mdebug=cost. | |
9913 | (rs6000_debug_rtx_costs): Ditto. | |
9914 | (rs6000_debug_address_costs): Ditto. | |
9915 | (rs6000_debug_adjust_cost): Ditto. | |
9916 | (rs6000_debug_legitimize_address): Ditto. | |
9917 | (rs6000_legitimize_reload_address_ptr): Point to call normal | |
9918 | function or debug function. Make functions called via pointer | |
9919 | static. | |
9920 | (rs6000_mode_dependent_address_ptr): Ditto. | |
9921 | (rs6000_secondary_reload_class_ptr): Ditto. | |
9922 | (rs6000_hard_regno_mode_ok): Add preliminary VSX support. | |
9923 | (rs6000_emit_move): Add -mdebug=addr support. Change an abort | |
9924 | into a friendlier error. | |
9925 | (rs6000_init_builtins): Add initial VSX support. | |
9926 | (rs6000_adjust_cost): Fix some spacing issues. | |
9927 | ||
9928 | * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS. | |
9929 | (REG_CLASS_NAMES): Ditto. | |
9930 | (REG_CLASS_CONTENTS): Ditto. | |
9931 | (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a | |
9932 | pointer, to add -mdebug=addr support. | |
9933 | (CANNOT_CHANGE_MODE_CLASS): Ditto. | |
9934 | (SECONDARY_RELOAD_CLASS): Call through a pointer to add | |
9935 | -mdebug=addr support. | |
9936 | (LEGITIMIZE_RELOAD_ADDRESS): Ditto. | |
9937 | (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto. | |
9938 | (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI. | |
9939 | ||
9940 | * config/rs6000/rs6000.md (bswaphi*): Add support for swapping | |
9941 | 16-bit values. | |
9942 | (bswapsi*): Set attribute types for load/store. Add combiner | |
9943 | patterns to eliminate zero extend on 64-bit. | |
9944 | (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and | |
9945 | stdbrx if the hardware supports those instructions. | |
9946 | ||
96be7a11 ILT |
9947 | 2009-06-25 Ian Lance Taylor <iant@google.com> |
9948 | ||
9949 | * doc/invoke.texi (Option Summary): Mention -static-libstdc++. | |
9950 | (Link Options): Document -static-libstdc++. | |
9951 | ||
777a3a6a AP |
9952 | 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com> |
9953 | ||
9954 | PR target/38731 | |
9955 | * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use | |
9956 | DATA_ALIGNMENT instead. | |
9957 | ||
1cb367ae RG |
9958 | 2009-06-25 Richard Guenther <rguenther@suse.de> |
9959 | ||
9960 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate | |
9961 | indirect references against the callused/escaped solutions. | |
9962 | (call_may_clobber_ref_p_1): Likewise. | |
9963 | ||
fac52fdd MJ |
9964 | 2009-06-25 Martin Jambor <mjambor@suse.cz> |
9965 | ||
9966 | PR tree-optimization/40493 | |
9967 | * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers. | |
9968 | (enum unscalarized_data_handling): New type. | |
9969 | (handle_unscalarized_data_in_subtree): Return what has been done. | |
9970 | (load_assign_lhs_subreplacements): Handle left flushes differently. | |
9971 | (sra_modify_assign): Use unscalarized_data_handling, simplified | |
9972 | condition determining whether to remove the statement. | |
9973 | ||
3cb71167 | 9974 | 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net> |
c8aca64f EB |
9975 | |
9976 | * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile | |
9977 | excerpt - @ should be doubled for texinfo. | |
3cb71167 | 9978 | |
5a82ecd9 ILT |
9979 | 2009-06-24 Ian Lance Taylor <iant@google.com> |
9980 | ||
9981 | * config/arc/arc.c: Include "df.h". | |
9982 | (arc_attribute_table): Make static. Move higher in file. | |
9983 | (arc_address_cost): Call SMALL_INT on INTVAL, not rtx. | |
9984 | (output_shift): Initialize n later to avoid warning. | |
9985 | * config/arm/arm.c (arm_attribute_table): Make static. Move | |
9986 | higher in file. | |
9987 | * config/avr/avr.c (avr_attribute_table): Make static. Move | |
9988 | higher in file. | |
9989 | (reg_class_tab): Change array type from int to enum reg_class. | |
9990 | (avr_jump_mode): Change GET_MODE to GET_CODE when checking for | |
9991 | LABEL_REF. | |
9992 | (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and". | |
9993 | (lshrhi3_out): Likewise. | |
9994 | (class_likely_spilled_p): Change return type to bool. | |
9995 | (avr_rtx_costs): Use local code variable with enum type. | |
9996 | * config/avr/avr.md (movmemhi): Use add_reg_note. | |
9997 | (andhi3, andsi3): Don't use AS2 with "and". | |
9998 | (iorhi3, iorsi3): Don't use AS2 with "or". | |
1e9ae5ab | 9999 | * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration. |
5a82ecd9 ILT |
10000 | * config/crx/crx.c: Include "df.h". |
10001 | (crx_attribute_table): Make static. | |
10002 | * config/m32r/m32r.c: Include "df.h". | |
10003 | (m32r_attribute_table): Make static. Move higher in file. | |
10004 | (pop): Use add_reg_note. | |
10005 | (block_move_call): Change 0 to LCT_NORMAL in function call. | |
10006 | * config/m32r/m32r.md (movsi_insn): Remove unused local value. | |
10007 | * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise. | |
10008 | * config/m32r/m32r-protos.h (m32r_compute_function_type): Always | |
10009 | declare, not just when TREE_CODE is defined. | |
10010 | * config/m68hc11/m68hc11.c: Include "expr.h". | |
10011 | (m68hc11_attribute_table): Make static. Move higher in file. | |
10012 | (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in | |
10013 | function call. | |
10014 | (m68hc11_register_indirect_p): Likewise. | |
10015 | (m68hc11_function_arg_padding): Change return type to enum | |
10016 | direction. | |
10017 | (emit_move_after_reload): Use add_reg_note. | |
10018 | (m68hc11_emit_logical): Change code parameter to enum rtx_code. | |
10019 | (m68hc11_split_logical): Likewise. | |
10020 | (m68hc11_rtx_costs): Add local code_and outer_code variables with | |
10021 | enum type. | |
10022 | * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0 | |
10023 | to VOIDmode in function call. | |
10024 | * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if | |
10025 | tree is defined. | |
10026 | (m68hc11_split_logical): Update declaration. | |
10027 | (m68hc11_function_arg_padding): Update declaration. | |
10028 | * config/mcore/mcore.c (regno_reg_class): Change form array of int | |
10029 | to array of enum reg_class. | |
10030 | (mcore_attribute_table): Make static. Move higher in file. | |
10031 | (mcore_rtx_costs): Add cast to enum type. | |
10032 | * config/mcore/mcore.h (regno_reg_class): Update declaration. | |
10033 | (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning. | |
10034 | * config/sh/sh.c (sh_attribute_table): Make static. Move higher | |
10035 | in file. | |
10036 | * config/sh/predicates.md (trapping_target_operand): Rename and to | |
10037 | and_expr. | |
10038 | * config/sparc/sparc.c (sparc_attribute_table): Make static. Move | |
10039 | higher in file. | |
10040 | * config/spu/spu.c (spu_attribute_table): Make static. Move | |
10041 | higher in file. | |
10042 | * config/v850/v850.c (v850_attribute_table): Make static. Move | |
10043 | higher in file. | |
10044 | (v850_rtx_costs): Use local code with enum type. | |
10045 | (expand_epilogue): Add cast. | |
10046 | * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat. | |
10047 | ||
b4589acc TY |
10048 | 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com> |
10049 | ||
10050 | PR target/40515 | |
10051 | * doc/invoke.texi (SH Options): Document -m2a, -m2a-single, | |
10052 | -m2a-single-only and -m2a-nofpu. | |
f100a4a8 | 10053 | * config/sh/sh.opt: Document m2a generates FPU code. |
b4589acc | 10054 | |
3be639f7 AS |
10055 | 2009-06-24 Anatoly Sokolov <aesok@post.ru> |
10056 | ||
10057 | * defaults.h (CAN_ELIMINATE): Provide default. | |
10058 | * doc/tm.texi (CAN_ELIMINATE): Revise documentation. | |
10059 | * config/alpha/alpha.h (CAN_ELIMINATE): Delete. | |
10060 | * config/m32c/m32c.h (CAN_ELIMINATE): Delete. | |
10061 | * config/spu/spu.h (CAN_ELIMINATE): Delete. | |
10062 | * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete. | |
10063 | * config/moxie/moxie.h (CAN_ELIMINATE): Delete. | |
10064 | * config/cris/cris.h (CAN_ELIMINATE): Delete. | |
10065 | * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete. | |
10066 | * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete. | |
10067 | * config/mmix/mmix.h (CAN_ELIMINATE): Delete. | |
10068 | ||
b6402fc3 DD |
10069 | 2009-06-24 DJ Delorie <dj@redhat.com> |
10070 | ||
10071 | * mep-ext-cop.cpu: Fix copyright notice. | |
10072 | * mep-default: Fix copyright notice. | |
10073 | * mep-core: Fix copyright notice. | |
10074 | * mep: Fix copyright notice. | |
10075 | * mep-ivc2: Fix copyright notice. | |
10076 | * mep-c5: Fix copyright notice. | |
10077 | ||
ead1eb1d DC |
10078 | 2009-06-24 Denis Chertykov <chertykov@gmail.com> |
10079 | ||
f100a4a8 | 10080 | * doc/contrib.texi (Contributors): |
ead1eb1d | 10081 | |
fb6234e0 | 10082 | 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com> |
f100a4a8 | 10083 | |
fb6234e0 AK |
10084 | PR middle-end/40501 |
10085 | * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap | |
10086 | src and dst operands if necessary. | |
10087 | ||
7acf4da6 DD |
10088 | 2009-06-23 DJ Delorie <dj@redhat.com> |
10089 | ||
10090 | Add MeP port. | |
10091 | * config.gcc: Add mep support. | |
10092 | * recog.c: Resurrect validate_replace_rtx_subexp(). | |
10093 | * recog.h: Likewise. | |
10094 | * config/mep/: Add new port: | |
10095 | * config/mep/constraints.md: New file. | |
10096 | * config/mep/default.h: New file. | |
10097 | * config/mep/intrinsics.h: New file. | |
10098 | * config/mep/intrinsics.md: New file. | |
10099 | * config/mep/ivc2-template.h: New file. | |
10100 | * config/mep/mep-c5.cpu: New file. | |
10101 | * config/mep/mep-core.cpu: New file. | |
10102 | * config/mep/mep-default.cpu: New file. | |
10103 | * config/mep/mep-ext-cop.cpu: New file. | |
10104 | * config/mep/mep-intrin.h: New file. | |
10105 | * config/mep/mep-ivc2.cpu: New file. | |
10106 | * config/mep/mep-lib1.asm: New file. | |
10107 | * config/mep/mep-lib2.c: New file. | |
10108 | * config/mep/mep-pragma.c: New file. | |
10109 | * config/mep/mep-protos.h: New file. | |
10110 | * config/mep/mep-tramp.c: New file. | |
10111 | * config/mep/mep.c: New file. | |
10112 | * config/mep/mep.cpu: New file. | |
10113 | * config/mep/mep.h: New file. | |
10114 | * config/mep/mep.md: New file. | |
10115 | * config/mep/mep.opt: New file. | |
10116 | * config/mep/predicates.md: New file. | |
10117 | * config/mep/t-mep: New file. | |
10118 | ||
00020c16 ILT |
10119 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
10120 | ||
10121 | * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings | |
10122 | from loose_warn into c_loose_warn and from strict_warn into | |
10123 | c_strict_warn. Set and substitute warn_cxxflags. Check for | |
10124 | --enable-build-with-cxx. Set and substitute | |
10125 | ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS. | |
10126 | * Makefile.in (CXXFLAGS): New variable. | |
10127 | (C_LOOSE_WARN, C_STRICT_WARN): New variables. | |
10128 | (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if | |
10129 | the default is the same as $(STRICT_WARN). | |
10130 | (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables. | |
10131 | (CXX): New variable. | |
10132 | (COMPILER): New value if ENABLE_BUILD_WITH_CXX. | |
10133 | (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise. | |
10134 | (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise. | |
10135 | (HOST_LIBS): New variable. | |
10136 | (GCC_CFLAGS): Add $(C_LOOSE_WARN). | |
10137 | (ALL_CXXFLAGS): New variable. | |
10138 | (LIBS, BACKENDLIBS): Add $(HOST_LIBS). | |
10139 | * doc/install.texi (Configuration): Document | |
10140 | --enable-build-with-cxx, --with-stage1-ldflags, | |
10141 | --with-stage1-libs, --with-boot-ldflags, --with-boot-libs. | |
10142 | * configure: Rebuild. | |
10143 | ||
2d8b752f | 10144 | 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
9df5bfe4 | 10145 | |
2d8b752f EB |
10146 | * config/arm/arm.c (arm_override_options): Fix braces and formatting |
10147 | from previous commit. | |
9df5bfe4 | 10148 | |
73267076 ILT |
10149 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
10150 | ||
10151 | * Makefile.in ($(out_object_file)): Depend upon $(DF_H). | |
10152 | ||
9a476c9c ILT |
10153 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
10154 | ||
10155 | * reload.c (alternative_allows_const_pool_ref): Mark mem parameter | |
10156 | with ATTRIBUTE_UNUSED. | |
10157 | ||
cacf1ca8 MM |
10158 | 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com> |
10159 | Pat Haugen <pthaugen@us.ibm.com> | |
2d8b752f | 10160 | Revital Eres <eres@il.ibm.com> |
cacf1ca8 MM |
10161 | |
10162 | * config.in (HAVE_AS_POPCNTD): Add default definition. | |
10163 | (HAVE_AS_LWSYNC): Ditto. | |
10164 | ||
10165 | * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils | |
10166 | release number. | |
10167 | (gcc_cv_as_powerpc_cmpb): Ditto. | |
10168 | (gcc_cv_as_powerpc_dfp): Ditto. | |
10169 | (gcc_cv_as_powerpc_vsx): Ditto. | |
10170 | (gcc_cv_as_powerpc_popcntd): Add feature test for assembler | |
10171 | supporting the popcntd/lwsync instructions. | |
10172 | (gcc_cv_as_powerpc_lwsync): Ditto. | |
10173 | * configure: Regenerate. | |
10174 | ||
10175 | * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for | |
10176 | -mcpu=native and -mcpu=power7. | |
10177 | * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto. | |
10178 | ||
10179 | * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be | |
10180 | a variable instead of a mask to reduce the number of mask bits. | |
10181 | * config/rs6000/sysv4.opt (-mbit-align): Ditto. | |
10182 | (-mbit-word): Ditto. | |
10183 | (-mregnames): Ditto. | |
10184 | * config/rs6000/rs6000.opt (-mupdate): Ditto. | |
10185 | (-mfused-madd): Ditto. | |
10186 | ||
10187 | * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA | |
10188 | 2.06 instructions. | |
10189 | (-mvsx): New switch for VSX instructions. | |
10190 | (-misel): Move from a variable to a mask to allow it to be set by | |
10191 | -mcpu=. | |
10192 | ||
10193 | * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change | |
10194 | function declaration to an array declaration. | |
10195 | (rs6000_hard_regno_nregs): New external array declaration. | |
10196 | ||
10197 | * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md | |
10198 | files included by rs6000.md. | |
10199 | ||
10200 | * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use | |
10201 | SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch. | |
10202 | ||
10203 | * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be | |
10204 | a target mask. | |
10205 | (rs6000_debug_reg): New -mdebug= variables. | |
10206 | (rs6000_debug_addr): Ditto. | |
10207 | (rs6000_debug_cost): Ditto. | |
10208 | (rs6000_pmode): New variable to hold Pmode. | |
10209 | (rs6000_pointer_size): New variable to hold POINTER_SIZE. | |
10210 | (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS | |
10211 | calculated at compiler start. | |
10212 | (rs6000_hard_regno_nregs): Change function to an array which holds | |
10213 | HARD_REGNO_NREGS calculated at compiler start. | |
10214 | (rs6000_explicit_options): Delete isel field. | |
10215 | (rs6000_vector_unit): New array to hold which vector unit | |
10216 | supports arithmetic options for a given type. | |
10217 | (rs6000_vector_mem): New array to hold which vector unit supports | |
10218 | memory reference operations for a given type. | |
10219 | (rs6000_vector_align): New array to given the alignment of each | |
10220 | vector type. | |
10221 | (power7_cost): New basic costs for power7. | |
10222 | (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel. | |
10223 | (rs6000_hard_regno_nregs_internal): New function, moved from | |
10224 | HARD_REGNO_NREGS, to calculate the number of registers each hard | |
10225 | register takes for each type. | |
10226 | (rs6000_debug_reg_print): New function for -mdebug=reg support. | |
1e9ae5ab | 10227 | (rs6000_debug_vector_unit): New array, map rs6000_vector to string. |
cacf1ca8 MM |
10228 | (+rs6000_init_hard_regno_mode_ok): New function, move calculation |
10229 | of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector | |
10230 | unit information here so it is calculated once at compiler startup | |
10231 | time. | |
10232 | (rs6000_override_options): Make -misel a target mask. Add more | |
10233 | power7 target masks. Setup Pmode and POINTER_SIZE. Add initial | |
10234 | VSX support. Add support for -mdebug=reg, -mdebug=addr, and | |
10235 | -mdebug=cost. | |
10236 | (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL. | |
10237 | (rs6000_handle_option): Move -misel from variable to target mask. | |
10238 | (rs6000_builtin_mask_for_load): Add VSX support. | |
10239 | (rs6000_conditional_register_usage): Ditto. | |
10240 | (USE_ALTIVEC_FOR_ARG_P): Ditto. | |
10241 | (function_arg_boundary): Ditto. | |
10242 | (rs6000_expand_builtin): Ditto. | |
10243 | (def_builtin): Make abort message a little friendlier. | |
10244 | (rs6000_emit_int_cmove): Add support for 64-bit isel. | |
10245 | ||
10246 | * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the | |
10247 | assembler support the popcntd instruction instead of a vsx | |
10248 | instruction to enable power7 support. | |
10249 | (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7. | |
10250 | (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right | |
10251 | option to the assembler if -mcpu=native. | |
10252 | (ASM_CPU_NATIVE_SPEC): Ditto. | |
10253 | (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off | |
10254 | ISA 2.06 features. | |
10255 | (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue | |
10256 | the lwsync instruction. | |
10257 | (enum processor_type): Add PROCESSOR_POWER7. | |
10258 | (rs6000_debug_reg): New -mdebug= options. | |
10259 | (rs6000_debug_addr): Ditto. | |
10260 | (rs6000_debug_cost): Ditto. | |
10261 | (rs6000_isel): Delete. | |
10262 | (enum rs6000_vector): New enum to say what vector unit we have. | |
10263 | (VECTOR_UNIT_*): New macros to say which vector unit has | |
10264 | arithmetic operations for a given type. | |
10265 | (VECTOR_MEM_*): New macros to say which vector unit has memory | |
10266 | operations for a given type. | |
10267 | (TARGET_LDBRX): Whether the machine supports the ldbrx | |
10268 | instruction. | |
10269 | (TARGET_ISEL): Delete, -misel moved to be a mask. | |
10270 | (TARGET_ISEL64): New macro for 64-bit isel support. | |
10271 | (UNITS_PER_VSX_WORD): New macro. | |
10272 | (POINTER_SIZE): Move to be an external variable, rather than | |
10273 | calculating whether we are generating 32 ot 64-bit code. | |
10274 | (Pmode): Ditto. | |
10275 | (STACK_BOUNDARY): Add VSX support. | |
10276 | (LOCAL_ALIGNMENT): Ditto. | |
10277 | (SLOW_UNALIGNED_ACCESS): Ditto. | |
10278 | (VSX_REGNO_P): New macro for VSX support. | |
10279 | (VFLOAT_REGNO_P): Ditto. | |
10280 | (VINT_REGNO_P): Ditto. | |
10281 | (VLOGICAL_REGNO_P): Ditto. | |
10282 | (VSX_VECTOR_MODE): Ditto. | |
10283 | (VSX_SCALAR_MODE): Ditto. | |
10284 | (VSX_MODE): Ditto. | |
10285 | (VSX_MOVE_MODE): Ditto. | |
10286 | (VSX_REG_CLASS_P): Ditto. | |
10287 | (HARD_REGNO_NREGS): Instead of calling a function, use an array | |
10288 | lookup. | |
10289 | (UNITS_PER_SIMD_WORD): Add VSX support. | |
10290 | (MODES_TIEABLE_P): Ditto. | |
10291 | (STARTING_FRAME_OFFSET): Ditto. | |
10292 | (STACK_DYNAMIC_OFFSET): Ditto. | |
10293 | (EPILOGUE_USES): Ditto. | |
10294 | (REGNO_REG_CLASS): Move to array lookup. | |
10295 | (CLASS_MAX_NREGS): Ditto. | |
10296 | (rs6000_vector_reg_class): Add declaration. | |
10297 | (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that | |
10298 | overlap with the floating point and Altivec registers. | |
10299 | ||
10300 | * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx. | |
10301 | ||
10302 | * config/rs6000/driver-rs6000.c (asm_names): New static array to | |
10303 | give the appropriate asm switches if -mcpu=native. | |
10304 | (host_detect_local_cpu): Add support for "asm". | |
10305 | (host_detect_local_cpu): Follow GNU code guidelines for name. | |
10306 | ||
10307 | * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move | |
10308 | -mbit-word to a variable instead of being a target mask. | |
10309 | ||
10310 | * config/rs6000/sync.md (lwsync): If the assembler supports it, | |
10311 | emit the lwsync instruction instead of emitting the instruction as | |
10312 | an integer constant. | |
10313 | ||
10314 | * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from | |
10315 | fixuns_trundfsi2, move expander into rs6000.md. | |
10316 | ||
10317 | * config/rs6000/rs6000.md (cpu): Add power7. | |
10318 | (sel, *ptrsize): New mode attributes for 32/64-bit isel. | |
10319 | (logical predicate patterns): Change the single instruction | |
10320 | primitives that set CR0 to be fast_compare instead of compare. | |
10321 | (norsi*): Ditto. | |
10322 | (popcntwsi2): Add support for ISA 2.06 popcount instructions. | |
10323 | (popcntddi2): Ditto. | |
10324 | (popcount<mode>): Ditto. | |
10325 | (floating multiply/add insns): Name the floating point | |
10326 | multiply/add insns. | |
10327 | (isel_signed_<mode>): Add support for -misel on 64-bit systems. | |
10328 | (isel_unsigned_<mode>): Ditto. | |
10329 | (fixuns_trundfsi2): Move expander here from spe.md. | |
10330 | (smindi3): Define if we have -misel on 64-bit systems. | |
10331 | (smaxdi3): Ditto. | |
10332 | (umindi3): Ditto. | |
10333 | (umaxdi3): Ditto. | |
10334 | ||
59ab92d2 AS |
10335 | 2009-06-23 Anatoly Sokolov <aesok@post.ru> |
10336 | ||
10337 | * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and | |
10338 | extra_objs. | |
10339 | * config/avr/avr.c (avr_current_device): New variable. | |
10340 | (avr_arch_types, avr_mcu_types): Move to avr-deveces.c. | |
10341 | (avr_arch, mcu_type_s): Move to avr.h. | |
10342 | * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and | |
10343 | default_data_section_start fields. | |
10344 | (avr_arch): Moved from avr.c. | |
10345 | (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and | |
10346 | library_name fields. | |
10347 | (avr_current_device, avr_mcu_types, avr_arch_types, | |
10348 | avr_device_to_arch, avr_device_to_data_start, | |
10349 | avr_device_to_startfiles, avr_device_to_devicelib): Declare. | |
10350 | (EXTRA_SPEC_FUNCTIONS): Define. | |
10351 | (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker | |
10352 | options mapping. Use device_to_arch and device_to_data_start insted. | |
10353 | (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils. | |
10354 | (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove. | |
10355 | * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules. | |
10356 | * config/avr/driver-avr.c: New file. | |
10357 | * config/avr/avr-devices.c: New file. | |
10358 | ||
8593e0b6 JJ |
10359 | 2009-06-23 Jakub Jelinek <jakub@redhat.com> |
10360 | ||
7eb3f1f7 JJ |
10361 | * var-tracking.c (unshare_variable): Force initialized to |
10362 | be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit. | |
10363 | (set_variable_part): Likewise. | |
10364 | (struct variable_union_info): Remove pos_src field. | |
10365 | (vui_vec, vui_allocated): New variables. | |
10366 | (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable | |
10367 | unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l | |
10368 | == 1 use a simpler sorting algorithm. Compute pos field right | |
10369 | away, don't fill in pos_src. For dst_l == 2 avoid qsort. | |
10370 | Avoid quadratic comparison if !flag_var_tracking_uninit. | |
10371 | (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to | |
f100a4a8 | 10372 | unshare_variable unconditionally. |
7eb3f1f7 JJ |
10373 | (dataflow_set_different_2): Removed. |
10374 | (dataflow_set_different): Don't traverse second hash table. | |
10375 | (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED | |
10376 | unconditionally to var_reg_set or var_mem_set. | |
10377 | (emit_notes_in_bb): Likewise. | |
10378 | (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to | |
10379 | unshare_variable. | |
10380 | (emit_note_insn_var_location): Don't set initialized to | |
10381 | VAR_INIT_STATUS_INITIALIZED early. | |
10382 | (vt_finalize): Free vui_vec if needed, clear vui_vec and | |
10383 | vui_allocated. | |
10384 | * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb. | |
10385 | ||
8593e0b6 JJ |
10386 | * tree-object-size.c (addr_object_size): Instead of checking |
10387 | for non-NULL TREE_CHAIN of the FIELD_DECL check that there | |
10388 | are no FIELD_DECLs following it. | |
10389 | ||
fef015a8 AK |
10390 | 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com> |
10391 | ||
10392 | * tree-ssa-math-opts.c (find_bswap): Increase the search depth in | |
10393 | order to match bswaps with signed source operands. | |
10394 | ||
b6d83244 RO |
10395 | 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
10396 | ||
10397 | * sdbout.c (sdbout_one_type): Fix braces in switch. | |
10398 | ||
0bbf2ffa RG |
10399 | 2009-06-23 Richard Guenther <rguenther@suse.de> |
10400 | ||
10401 | * tree-ssa-structalias.c (struct variable_info): Add is_global_var | |
10402 | member. | |
10403 | (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly, | |
10404 | readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree, | |
10405 | var_callused, callused_tree, var_storedanything, storedanything_tree, | |
10406 | var_integer, integer_tree): Remove global variables. | |
10407 | (new_var_info): Do not pass new id, append the new var to the | |
10408 | global variable vector. | |
10409 | (do_ds_constraint): Use is_global_var member of the variable-info. | |
10410 | (new_scalar_tmp_constraint_exp): Adjust. | |
10411 | (create_function_info_for): Likewise. | |
10412 | (create_variable_info_for): Likewise. | |
10413 | (find_what_var_points_to): Remove dead code. | |
10414 | (init_base_vars): Simplify. | |
10415 | (compute_points_to_sets): Adjust. | |
10416 | ||
28a5fb2e AN |
10417 | 2009-06-22 Adam Nemet <anemet@caviumnetworks.com> |
10418 | ||
10419 | * combine.c (try_combine): Dump information about the insns we're | |
10420 | combining. | |
10421 | ||
cfb8805e AN |
10422 | 2009-06-22 Adam Nemet <anemet@caviumnetworks.com> |
10423 | ||
10424 | * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION | |
10425 | check when calling force_to_mode on TRUNCATE's operand. | |
10426 | ||
df4ba119 ILT |
10427 | 2009-06-22 Ian Lance Taylor <iant@google.com> |
10428 | ||
897eef7b | 10429 | * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog. |
df4ba119 | 10430 | |
c986683b SB |
10431 | 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> |
10432 | ||
10433 | * config/arm/arm.md (prologue_use): Set length of fake insn to 0. | |
10434 | ||
5c6927bd RW |
10435 | 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10436 | ||
10437 | * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib | |
10438 | override library linkage flags such as -static-libgcc or | |
10439 | -shared-libgcc. | |
10440 | ||
19973be2 MK |
10441 | 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com> |
10442 | ||
10443 | * config/m68k/m68k-devices.def: Add line for MCF5221x. | |
10444 | ||
7a5d2eb8 ILT |
10445 | 2009-06-22 Ian Lance Taylor <iant@google.com> |
10446 | ||
10447 | * config/linux.opt: Put mglibc ahead of muclibc. | |
10448 | ||
10449 | * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning | |
10450 | for duplicate decls. | |
10451 | ||
86e3c83a MK |
10452 | 2009-06-22 Matthias Klose <doko@ubuntu.com> |
10453 | ||
10454 | * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR). | |
10455 | ||
0a7d7dea MK |
10456 | 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> |
10457 | ||
10458 | PR objc/28050 | |
10459 | * c-parser.c (c_parser_objc_message_args): Return error_mark_node | |
10460 | instead of NULL if a parser error occurs. | |
10461 | ||
a77264d5 RO |
10462 | 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
10463 | ||
10464 | * dwarf2out.c (dwarf2_debug_hooks): Initialize | |
10465 | non-DWARF2_DEBUGGING_INFO version. | |
10466 | ||
54f549af KT |
10467 | 2009-06-22 Kai Tietz <kai.tietz@onevision.com> |
10468 | ||
34481f28 UB |
10469 | * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add |
10470 | i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file. | |
10471 | ||
10472 | * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define. | |
54f549af KT |
10473 | (LIBGCC2_TF_CEXT): Define. |
10474 | (TF_SIZE): Define. | |
10475 | ||
7cea01df RR |
10476 | 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10477 | ||
10478 | PR target/40463 | |
10479 | * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition. | |
10480 | ||
3ce14752 RR |
10481 | 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10482 | ||
34481f28 UB |
10483 | * config/arm/arm.c (arm_override_options): Disable |
10484 | -mcaller-super-interworking and -mcallee-super-interworking. | |
10485 | * doc/invoke.texi (ARM Options): Document this. | |
3ce14752 | 10486 | |
d58bc084 NS |
10487 | 2009-06-22 Nathan Sidwell <nathan@codesourcery.com> |
10488 | ||
10489 | * config/arm/arm.c (arm_print_operand): Deal with HIGH. | |
10490 | * config/arm/constraints.md (j): New constraint for movw operands. | |
10491 | (N): Remove thumb2 meaning. | |
10492 | * config/arm/arm.md (*arm_movw): Delete. | |
10493 | (*arm_movsi_insn): Use j constraint for movw instead of N constraint. | |
10494 | * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise. | |
10495 | * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise. | |
10496 | ||
ac6cb60c MJ |
10497 | 2009-06-22 Martin Jambor <mjambor@suse.cz> |
10498 | ||
10499 | PR tree-optimization/40492 | |
10500 | * tree-sra.c (sra_modify_assign): Pass zero offsets to | |
10501 | build_ref_for_offset. | |
10502 | ||
481683e1 SZ |
10503 | 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com> |
10504 | ||
10505 | * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and | |
10506 | JUMP_TABLE_DATA_P predicates where applicable. | |
10507 | * auto-inc-dec.c: Ditto. | |
10508 | * builtins.c: Ditto. | |
10509 | * caller-save.c: Ditto. | |
10510 | * calls.c: Ditto. | |
10511 | * cfgcleanup.c: Ditto. | |
10512 | * cfglayout.c: Ditto. | |
10513 | * cfgrtl.c: Ditto. | |
10514 | * combine.c: Ditto. | |
10515 | * combine-stack-adj.c: Ditto. | |
10516 | * cse.c: Ditto. | |
10517 | * cselib.c: Ditto. | |
10518 | * dbxout.c: Ditto. | |
10519 | * df-scan.c: Ditto. | |
10520 | * dse.c: Ditto. | |
10521 | * dwarf2asm.c: Ditto. | |
10522 | * dwarf2out.c: Ditto. | |
10523 | * emit-rtl.c: Ditto. | |
10524 | * except.c: Ditto. | |
10525 | * explow.c: Ditto. | |
10526 | * expmed.c: Ditto. | |
10527 | * expr.c: Ditto. | |
10528 | * final.c: Ditto. | |
10529 | * function.c: Ditto. | |
10530 | * fwprop.c: Ditto. | |
10531 | * gcse.c: Ditto. | |
10532 | * genpreds.c: Ditto. | |
10533 | * genrecog.c: Ditto. | |
10534 | * ifcvt.c: Ditto. | |
10535 | * ira-costs.c: Ditto. | |
10536 | * ira-lives.c: Ditto. | |
10537 | * jump.c: Ditto. | |
10538 | * loop-iv.c: Ditto. | |
10539 | * lower-subreg.c: Ditto. | |
10540 | * modulo-sched.c: Ditto. | |
10541 | * optabs.c: Ditto. | |
10542 | * postreload.c: Ditto. | |
10543 | * print-rtl.c: Ditto. | |
10544 | * recog.c: Ditto. | |
10545 | * reginfo.c: Ditto. | |
10546 | * regmove.c: Ditto. | |
10547 | * reload1.c: Ditto. | |
10548 | * reload.c: Ditto. | |
10549 | * reorg.c: Ditto. | |
10550 | * rtlanal.c: Ditto. | |
10551 | * rtl.c: Ditto. | |
10552 | * sched-vis.c: Ditto. | |
10553 | * sdbout.c: Ditto. | |
10554 | * sel-sched-ir.c: Ditto. | |
10555 | * simplify-rtx.c: Ditto. | |
10556 | * targhooks.c: Ditto. | |
10557 | * var-tracking.c: Ditto. | |
10558 | * vmsdbgout.c: Ditto. | |
10559 | ||
1407d6cf MK |
10560 | 2009-06-22 Matthias Klose <doko@ubuntu.com> |
10561 | ||
10562 | * Makefile.in (install-plugin): Always use DESTDIR. | |
10563 | ||
28326880 | 10564 | 2009-06-22 Olivier Hainque <hainque@adacore.com> |
f100a4a8 | 10565 | |
28326880 OH |
10566 | * config/pa/pa.c (output_call): Don't optimize post call jumps |
10567 | into return address adjustments if the call may throw. | |
10568 | ||
907dd0c7 RE |
10569 | 2009-06-21 Richard Earnshaw <rearnsha@arm.com> |
10570 | ||
10571 | * arm.c (thumb1_output_casesi): New function. | |
10572 | * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if | |
10573 | optimizing for size or PIC. | |
10574 | (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1. | |
10575 | * arm.md (UNSPEC_THUMB1_CASESI): New constant. | |
10576 | (casesi): Handle Thumb-1 when optimizing for size or PIC. | |
10577 | (thumb1_casesi_internal_pic): New expand rule. | |
10578 | (thumb1_casesi_dispatch): New pattern. | |
10579 | * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for | |
10580 | thumb-1 mode. | |
10581 | * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now | |
10582 | in the text seciton when PIC or optimizing for size. | |
10583 | * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise. | |
10584 | * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack | |
10585 | preservation properties of code. | |
10586 | (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions. | |
10587 | (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions. | |
10588 | (__gnu_thumb1_case_si): New function. | |
10589 | * t-arm (LIB1ASMSRC): Define here. | |
10590 | (LIB1ASMFUNCS): Add some common functions. | |
10591 | * t-arm-elf (LIB1ASMSRC): Delete. | |
10592 | (LIB1ASMFUNCS): Append to existing set. | |
10593 | * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10594 | * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10595 | * t-symbian (LIB1ASMFUNCS): Likewise. | |
10596 | * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10597 | * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10598 | ||
2cee1509 RG |
10599 | 2009-06-21 Richard Guenther <rguenther@suse.de> |
10600 | ||
10601 | PR tree-optimization/38729 | |
10602 | * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict | |
10603 | to loops with a single exit if -fno-expensive-optimizations. | |
10604 | ||
d24686d7 JJ |
10605 | 2009-06-21 Jakub Jelinek <jakub@redhat.com> |
10606 | ||
10607 | * var-tracking.c (struct shared_hash_def, shared_hash): New types. | |
10608 | (dataflow_set): Change vars type from htab_t to shared_hash. | |
10609 | (shared_hash_pool, empty_shared_hash): New variables. | |
10610 | (vars_clear): Removed. | |
10611 | (shared_hash_shared, shared_hash_htab, shared_hash_copy, | |
10612 | shared_hash_find_slot_unshare, shared_hash_find_slot, | |
10613 | shared_hash_find_slot_noinsert, shared_hash_find): New | |
10614 | static inlines. | |
10615 | (shared_hash_unshare, shared_hash_destroy): New functions. | |
10616 | (unshare_variable): Unshare set->vars if shared, use | |
10617 | shared_hash_htab. | |
10618 | (vars_copy): Use htab_traverse_noresize instead of htab_traverse. | |
10619 | (get_init_value, find_src_set_src, dump_dataflow_set, | |
10620 | clobber_variable_part, emit_notes_for_differences): Use | |
10621 | shared_hash_htab. | |
10622 | (dataflow_set_init): Remove second argument, set vars to | |
10623 | empty_shared_hash instead of creating a new htab. | |
10624 | (dataflow_set_clear): Call shared_hash_destroy and set vars | |
10625 | to empty_shared_hash instead of calling vars_clear. | |
10626 | (dataflow_set_copy): Don't call vars_copy, instead just share | |
10627 | the src htab with dst. | |
10628 | (variable_union): Use shared_hash_*, use initially NO_INSERT | |
10629 | lookup if set->vars is shared. Don't keep slot cleared before | |
10630 | calling unshare_variable. Unshare set->vars if needed. | |
10631 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
10632 | and var needs to be modified. | |
10633 | (variable_canonicalize): New function. | |
10634 | (dataflow_set_union): If dst->vars is empty, just share src->vars | |
10635 | with dst->vars and traverse with variable_canonicalize to canonicalize | |
10636 | and unshare what is needed. | |
10637 | (dataflow_set_different): If old_set and new_set use the same shared | |
10638 | htab, they aren't different. If number of htab elements is different, | |
10639 | htabs are different. Use shared_hash_*. | |
10640 | (dataflow_set_destroy): Call shared_hash_destroy instead of | |
10641 | htab_delete. | |
10642 | (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass | |
10643 | second argument to dataflow_set_init. | |
10644 | (vt_initialize): Likewise. Initialize shared_hash_pool and | |
10645 | empty_shared_hash, move bb in/out initialization afterwards. | |
10646 | Use variable_htab_free instead of NULL as changed_variables del hook. | |
10647 | (variable_was_changed): Change type of second argument to pointer to | |
10648 | dataflow_set. When inserting var into changed_variables, bump | |
10649 | refcount. Unshare set->vars if set is shared htab and slot needs to | |
10650 | be cleared. | |
10651 | (set_variable_part): Use shared_hash_*, use initially NO_INSERT | |
10652 | lookup if set->vars is shared. Unshare set->vars if needed. | |
10653 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
10654 | and var needs to be modified. Adjust variable_was_changed caller. | |
10655 | (delete_variable_part): Use shared_hash_*. Even ->refcount == 1 | |
10656 | vars must be unshared if set->vars is shared and var needs to be | |
10657 | modified. Adjust variable_was_changed caller. | |
10658 | (emit_note_insn_var_location): Don't pool_free var. | |
10659 | (emit_notes_for_differences_1): Initialize empty_var->refcount to 0 | |
10660 | instead of 1. | |
10661 | (vt_finalize): Call htab_delete on empty_shared_hash->htab and | |
10662 | free_alloc_pool on shared_hash_pool. | |
10663 | ||
525b459f AG |
10664 | 2009-06-20 Anthony Green <green@moxielogic.com> |
10665 | ||
10666 | * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define. | |
10667 | * config/moxie/moxie.h (LOAD_EXTEND_OP): Define. | |
10668 | ||
825be69e RG |
10669 | 2009-06-20 Richard Guenther <rguenther@suse.de> |
10670 | ||
10671 | * tree-ssa-structalias.c (find_func_aliases): For memset use | |
10672 | a constraint from NULL if we memset to zero. | |
10673 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins | |
10674 | we explicitly handle that do not read from memory. | |
10675 | (call_may_clobber_ref_p_1): Properly handle builtins that may | |
10676 | set errno. | |
10677 | ||
b14e9388 RG |
10678 | 2009-06-20 Richard Guenther <rguenther@suse.de> |
10679 | ||
10680 | PR tree-optimization/40495 | |
10681 | * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove. | |
10682 | (new_scalar_tmp_constraint_exp): New function. | |
10683 | (process_constraint): Do not create temporary decls. | |
10684 | (process_all_all_constraints): Likewise. | |
10685 | (handle_const_call): Likewise. | |
10686 | (create_function_info_for): Do not set decl. | |
10687 | ||
c885ca89 ILT |
10688 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10689 | ||
10690 | * config/rs6000/rs6000.c (rs6000_explicit_options): Make static. | |
10691 | (rs6000_attribute_table): Make static; move before use. | |
10692 | ||
6569d386 EB |
10693 | 2009-06-19 Eric Botcazou <ebotcazou@adacore.com> |
10694 | ||
10695 | * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat. | |
10696 | <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR. | |
10697 | Propagate the TREE_READONLY flag without overwriting it. | |
10698 | (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise. | |
10699 | Propagate the TREE_READONLY flag onto the result. | |
10700 | (process_call_operands): Move around. Use correct constant value. | |
10701 | ||
ce41c38b RR |
10702 | 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10703 | ||
10704 | PR target/40482 | |
897eef7b | 10705 | * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits. |
ce41c38b RR |
10706 | * config/arm/arm.md: Likewise. |
10707 | ||
96be7a11 | 10708 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
d130ae11 ILT |
10709 | |
10710 | * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK | |
10711 | to GIMPLE_ERROR_MARK. | |
10712 | ||
10713 | * c-typeck.c (build_conditional_expr): Add op1_original_type and | |
897eef7b | 10714 | op2_original_type parameters. Warn about using different enum types. |
d130ae11 ILT |
10715 | * c-parser.c (c_parser_conditional_expression): Pass original |
10716 | types to build_conditional_expr. | |
10717 | * c-tree.h (build_conditional_expr): Update declaration. | |
10718 | ||
d4aa4f4b ILT |
10719 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10720 | ||
10721 | * config/i386/i386.c (ix86_function_specific_save): Test that | |
10722 | fields match values, rather than testing the values are in a | |
10723 | certain range. | |
10724 | ||
779704e7 RG |
10725 | 2009-06-19 Richard Guenther <rguenther@suse.de> |
10726 | ||
10727 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle | |
10728 | ADDR_EXPR pointers. | |
10729 | (ptr_derefs_may_alias_p): Likewise. | |
10730 | (ptr_deref_may_alias_ref_p_1): New function. | |
10731 | (ptr_deref_may_alias_ref_p): Likewise. | |
10732 | (ref_maybe_used_by_call_p_1): Handle builtins that are not | |
10733 | covered by looking at the ESCAPED solution. | |
10734 | (call_may_clobber_ref_p_1): Likewise. | |
10735 | * tree-ssa-structalias.c (get_constraint_for_ptr_offset): | |
10736 | Handle NULL_TREE offset. Do not produce redundant constraints. | |
10737 | (process_all_all_constraints): New helper function. | |
10738 | (do_structure_copy): Use it. | |
10739 | (handle_lhs_call): Likewise. | |
10740 | (find_func_aliases): Handle some builtins with pointer arguments | |
10741 | and/or return values explicitly. | |
10742 | ||
217655da ILT |
10743 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10744 | ||
10745 | * varasm.c (const_rtx_hash_1): Remove const qualifier from shift. | |
10746 | ||
50ae5fea ILT |
10747 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10748 | ||
10749 | * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int. | |
10750 | ||
642324bb ILT |
10751 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10752 | ||
10753 | * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes. | |
10754 | * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO | |
10755 | version. | |
10756 | ||
10757 | * c-decl.c (finish_decl): If -Wc++-compat, warn about | |
10758 | uninitialized const. | |
10759 | ||
dc491a25 ILT |
10760 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10761 | ||
10762 | * dse.c (struct store_info): Rename bitmap field to bmap. Change | |
10763 | all uses. | |
10764 | ||
10765 | * c-decl.c (in_struct, struct_types): Remove. | |
10766 | (struct c_binding): Add in_struct field. | |
10767 | (c_binding_ptr): Define type, along with VEC. | |
10768 | (struct c_struct_parse_info): Define. | |
10769 | (struct_parse_info): New static variable. | |
10770 | (bind): Initialize in_struct field. | |
10771 | (start_struct): Remove enclosing_in_struct and | |
10772 | enclosing_struct_types parameters. Add | |
10773 | enclosing_struct_parse_info parameter. Change all callers. Set | |
10774 | struct_parse_info rather than in_struct and struct_types. | |
10775 | (grokfield): If -Wc++-compat and there is a symbol binding for the | |
10776 | field name, set the in_struct flag and push it on the | |
10777 | struct_parse_info->fields vector. | |
10778 | (warn_cxx_compat_finish_struct): New static function. | |
10779 | (finish_struct): Remove enclosing_in_struct and | |
10780 | enclosing_struct_types parameters. Add | |
10781 | enclosing_struct_parse_info parameter. Change all callers. Don't | |
10782 | set C_TYPE_DEFINED_IN_STRUCT here. Call | |
10783 | warn_cxx_compat_finish_struct. Free struct_parse_info and set to | |
10784 | parameter. Only push on struct_types if warn_cxx_compat. | |
10785 | (finish_enum): Only push on struct_types if warn_cxx_compat. | |
10786 | (declspecs_add_type): Add loc parameter. Change all callers. | |
10787 | Change all error calls to error_at. Pass loc, not input_location, | |
10788 | to pedwarn calls. Warn if -Wc++-compat and a typedef name is | |
10789 | defined in a struct. If -Wc++-compat and parsing a struct, record | |
10790 | that a typedef name was used. | |
10791 | * c-parser.c (c_parser_declspecs): Get location to pass to | |
10792 | declspecs_add_type. | |
10793 | (c_parser_struct_or_union_specifier): Update calls to start_struct | |
10794 | and finish_struct. | |
10795 | * c-tree.h (struct c_struct_parse_info): Declare. | |
10796 | (finish_struct, start_struct): Update declarations. | |
10797 | (declspecs_add_type): Update declaration. | |
10798 | ||
88eeff6f ILT |
10799 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10800 | ||
10801 | * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global | |
10802 | variable with an anonymous type. | |
10803 | ||
28a876a4 UB |
10804 | 2009-06-19 Uros Bizjak <ubizjak@gmail.com> |
10805 | ||
10806 | * see.c: Remove for real. | |
10807 | ||
dc6707b8 UB |
10808 | 2009-06-19 Uros Bizjak <ubizjak@gmail.com> |
10809 | ||
10810 | * optabs.h (enum optab_index): Add new OTI_significand. | |
10811 | (significand_optab): Define corresponding macro. | |
10812 | * optabs.c (init_optabs): Initialize significand_optab. | |
10813 | * genopinit.c (optabs): Implement significand_optab using | |
10814 | significand?f2 patterns. | |
10815 | * builtins.c (expand_builtin_mathfn): Handle | |
10816 | BUILT_IN_SIGNIFICAND{,F,L}. | |
10817 | (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using | |
10818 | expand_builtin_mathfn if flag_unsafe_math_optimizations is set. | |
10819 | ||
10820 | * config/i386/i386.md (significandxf2, significand<mode>2): New | |
10821 | expanders to implement significandf, significand and significandl | |
10822 | built-ins as inline x87 intrinsics. | |
10823 | ||
dd26af70 AS |
10824 | 2009-06-18 Anatoly Sokolov <aesok@post.ru> |
10825 | ||
10826 | * config/avr/avr.c (avr_override_options): Remove setting value of | |
10827 | PARAM_INLINE_CALL_COST. | |
10828 | ||
394bd84d RH |
10829 | 2009-06-18 Richard Henderson <rth@redhat.com> |
10830 | ||
10831 | PR 40488 | |
10832 | * tree-pass.h (TDF_ASMNAME): New. | |
10833 | * tree-dump.c (dump_options): Add asmname. | |
10834 | * doc/invoke.texi: Document it. | |
10835 | ||
10836 | * tree-pretty-print.c (maybe_dump_asm_name): Merge into... | |
10837 | (dump_decl_name): ...here. | |
10838 | (dump_function_name): New flags arg; mind TDF_ASMNAME. | |
10839 | (dump_generic_node): Update dump_function_name calls. | |
10840 | (print_call_name): New flags arg; update all dump calls. | |
10841 | * diagnostic.h (print_call_name): Update. | |
10842 | * gimple-pretty-print.c (dump_gimple_call): Update. | |
10843 | ||
2a457a9b L |
10844 | 2009-06-18 H.J. Lu <hongjiu.lu@intel.com> |
10845 | ||
10846 | PR target/40470 | |
10847 | * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG. | |
10848 | ||
fca5bb5c DN |
10849 | 2009-06-18 Diego Novillo <dnovillo@google.com> |
10850 | ||
10851 | * doc/plugins.texi: Document plugin_is_GPL_compatible. | |
10852 | * plugin.c (str_license): Declare. | |
10853 | (try_init_one_plugin): Assert that the symbol | |
10854 | 'plugin_is_GPL_compatible' exists. | |
10855 | ||
b6680d72 SD |
10856 | 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com> |
10857 | ||
10858 | * see.c: Remove. | |
10859 | * Makefile.in (OBJS-common): Remove see.o. | |
10860 | (see.o): Remove. | |
10861 | * common.opt (fsee): Mark as preserved for backward compatibility. | |
f100a4a8 | 10862 | * opts.c (common_handle_option): Add OPT_fsee to the backward |
b6680d72 SD |
10863 | compatibility section. |
10864 | * passes.c (init_optimization_passes, pass_see): Remove pass. | |
10865 | * timevar.def (TV_SEE): Remove. | |
10866 | * tree-pass.h (pass_see): Remove declaration. | |
10867 | * doc/invoke.texi (-fsee): Remove documentation. | |
f100a4a8 | 10868 | |
2a45675f MJ |
10869 | 2009-06-18 Martin Jambor <mjambor@suse.cz> |
10870 | ||
10871 | * tree-sra.c: Include statistics.h | |
10872 | (sra_stats): New variable. | |
10873 | (sra_initialize): Clear sra_stats. | |
10874 | (create_access_replacement): Increment sra_stats.replacements. | |
10875 | (get_access_replacement): Do not return twice. | |
10876 | (analyze_all_variable_accesses): Increment statistics counter by the | |
10877 | number of scalarized aggregates. | |
10878 | (generate_subtree_copies): Increment sra_stats.subtree_copies. | |
10879 | (sra_modify_expr): Increment sra_stats.exprs. | |
10880 | (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements. | |
10881 | (sra_modify_assign): Increment sra_stats.exprs, | |
10882 | sra_stats.separate_lhs_rhs_handling and sra_stats.deleted. | |
10883 | (perform_intra_sra): Update statistics counters. | |
10884 | * Makefile.in (tree-sra.o): Add statistics.h to dependencies. | |
10885 | ||
bdc4827b SL |
10886 | 2009-06-18 Sandra Loosemore <sandra@codesourcery.com> |
10887 | ||
10888 | * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine. | |
10889 | (arm_scalar_mode_supported_p): New function. | |
10890 | ||
d9dd51dc PB |
10891 | 2009-06-18 Paul Brook <paul@codesourcery.com> |
10892 | Sandra Loosemore <sandra@codesourcery.com> | |
10893 | ||
10894 | * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define. | |
10895 | (__extendhfsf2, __truncsfhf2): Define. | |
10896 | * config/arm/fp16.c: New file. | |
10897 | * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c. | |
10898 | * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c. | |
10899 | ||
0fd8c3ad SL |
10900 | 2009-06-18 Sandra Loosemore <sandra@codesourcery.com> |
10901 | ||
10902 | * doc/extend.texi (Half-Precision): New section. | |
10903 | * doc/invoke.texi (Option Summary): List -mfp16-format. | |
10904 | (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format. | |
10905 | * config/arm/arm.opt (mfp16-format=): New. | |
10906 | * config/arm/arm.c: Include intl.h. | |
10907 | (TARGET_INVALID_PARAMETER_TYPE): Redefine. | |
10908 | (TARGET_INVALID_RETURN_TYPE): Redefine. | |
10909 | (TARGET_PROMOTED_TYPE): Redefine. | |
10910 | (TARGET_CONVERT_TO_TYPE): Redefine. | |
10911 | (arm_fp16_format): Define. | |
10912 | (all_fpus): Add entry for neon-fp16. | |
10913 | (fp_model_for_fpu): Likewise. | |
10914 | (struct fp16_format): Declare. | |
10915 | (all_fp16_formats): Define. | |
10916 | (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic | |
10917 | functions. | |
10918 | (arm_override_options): Set arm_fp16_format. Call sorry for fp16 | |
10919 | and no ldrh. | |
10920 | (arm_legitimate_index_p): Treat HFmode like HImode. | |
10921 | (thumb1_legitimate_address_p): Make it recognize HFmode constants. | |
10922 | (coproc_secondary_reload_class): Special-case HFmode. | |
10923 | (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16. | |
10924 | (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers. | |
10925 | (arm_init_fp16_builtins): New. | |
10926 | (arm_init_builtins): Call it. | |
10927 | (arm_invalid_parameter_type): New. | |
10928 | (arm_invalid_return_type): New. | |
10929 | (arm_promoted_type): New. | |
10930 | (arm_convert_to_type). | |
10931 | (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16 | |
10932 | format. | |
10933 | (arm_emit_fp16_const): New function. | |
10934 | (arm_mangle_type): Mangle __fp16 as "Dh". | |
10935 | * config/arm/arm.h (TARGET_VFPD32): Make it know about | |
10936 | FPUTYPE_NEON_FP16. | |
10937 | (TARGET_NEON_FP16): New. | |
10938 | (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16. | |
10939 | (enum fputype): Add FPUTYPE_NEON_FP16. | |
10940 | (enum arm_fp16_format_type): Declare. | |
10941 | (arm_fp16_format): Declare. | |
10942 | (LARGEST_EXPONENT_IS_NORMAL): Define. | |
10943 | * config/arm/arm-protos.h (arm_emit_fp16_const): Declare. | |
10944 | * config/arm/arm-modes.def (HFmode): Define. | |
10945 | * config/arm/vfp.md: (*movhf_vfp): New. | |
10946 | (extendhfsf2): New. | |
10947 | (truncsfhf2): New. | |
10948 | * config/arm/arm.md: (fpu): Add neon_fp16. | |
10949 | (floatsihf2, floatdihf2): New. | |
10950 | (fix_trunchfsi2, fix_trunchfdi2): New. | |
10951 | (truncdfhf2): New. | |
10952 | (extendhfdf2): New. | |
10953 | (movhf): New. | |
10954 | (*arm32_movhf): New. | |
10955 | (*thumb1_movhf): New. | |
10956 | (consttable_2): Add check for HFmode constants. | |
10957 | (consttable_4): Handle HFmode constants. | |
10958 | ||
2c2f70e1 UB |
10959 | 2009-06-18 Uros Bizjak <ubizjak@gmail.com> |
10960 | ||
10961 | * convert.c (convert_to_integer): Convert (int)logb() into ilogb(). | |
10962 | ||
db4fa1c1 OH |
10963 | 2009-06-17 Olivier Hainque <hainque@adacore.com> |
10964 | ||
10965 | * collect2.c (main): Use CONST_CAST2 to perform char ** to | |
10966 | const char ** conversion in AIX specific section. | |
f100a4a8 | 10967 | |
6bec4135 L |
10968 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> |
10969 | ||
10970 | * config/i386/i386.c (ix86_special_builtin_type): Remove | |
10971 | UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED. | |
10972 | (bdesc_special_args): Updated. | |
10973 | (ix86_init_mmx_sse_builtins): Likewise. | |
10974 | (ix86_expand_special_args_builtin): Likewise. | |
10975 | ||
958d6d58 RH |
10976 | 2009-06-17 Richard Henderson <rth@redhat.com> |
10977 | ||
10978 | * tree-pretty-print.c (maybe_dump_asm_name): New. | |
10979 | (dump_decl_name): Use it. | |
10980 | (PRINT_FUNCTION_NAME): Merge into... | |
10981 | (dump_function_name): ... here. Use maybe_dump_asm_name. | |
10982 | ||
ed5ef2e4 CC |
10983 | 2009-06-17 Cary Coutant <ccoutant@google.com> |
10984 | ||
10985 | * dbxout.c (dbxout_source_line): Add is_stmt parameter. | |
10986 | Change caller. | |
10987 | * debug.c (struct gcc_debug_hooks): Change placeholder for | |
10988 | source_line hook. | |
10989 | (debug_nothing_int_charstar_int): Replaced by... | |
10990 | (debug_nothing_int_charstar_int_bool): ...this. | |
10991 | * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to | |
10992 | source_line prototype. | |
10993 | (debug_nothing_int_charstar_int): Replaced by... | |
10994 | (debug_nothing_int_charstar_int_bool): ...this. | |
10995 | * defaults.h (SUPPORTS_DISCRIMINATOR): New constant. | |
10996 | * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter. | |
10997 | Output is_stmt operand when necessary. | |
01a0acb7 | 10998 | * final.c (final_scan_insn): Pass is_stmt to source_line debug hook. |
ed5ef2e4 CC |
10999 | (notice_source_line): Add is_stmt parameter. |
11000 | * sdbout.c (sdbout_source_line): Add is_stmt parameter. | |
11001 | * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter. | |
11002 | Change callers. | |
11003 | * xcoffout.c (xcoffout_source_line): Add is_stmt parameter. | |
11004 | * xcoffout.h (xcoffout_source_line): Add is_stmt parameter. | |
11005 | ||
b0f43ca0 ILT |
11006 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
11007 | ||
11008 | * expr.c (struct move_by_pieces_d): Rename from move_by_pieces. | |
11009 | Change all uses. | |
11010 | (struct store_by_pieces_d): Rename from store_by_pieces. Change | |
11011 | call uses. | |
11012 | ||
23314e77 AN |
11013 | 2009-06-17 Adam Nemet <anemet@caviumnetworks.com> |
11014 | ||
11015 | * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, | |
11016 | STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions, | |
11017 | tree_strip_sign_nop_conversions and | |
11018 | tree_ssa_strip_useless_type_conversions rather than stripping | |
11019 | the operations here. | |
11020 | (tree_strip_nop_conversions, tree_strip_sign_nop_conversions): | |
11021 | Declare them. | |
11022 | * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it. | |
11023 | * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function. | |
11024 | * tree.c (tree_nop_conversion, tree_sign_nop_conversion, | |
11025 | tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New | |
11026 | functions. | |
11027 | ||
799dbb0f ME |
11028 | 2009-06-17 Michael Eager <eager@eagercon.com> |
11029 | ||
c637b0fa UB |
11030 | * config/rs6000/constraints.md (register_constraint "d"): New. |
11031 | * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2, | |
11032 | truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr, | |
11033 | *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64, | |
11034 | *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2, | |
11035 | trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3, | |
11036 | divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2, | |
11037 | fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd' | |
11038 | * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs, | |
799dbb0f ME |
11039 | __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte, |
11040 | __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw, | |
c637b0fa UB |
11041 | __fctiwz): Same. |
11042 | * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr, | |
799dbb0f ME |
11043 | *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr, |
11044 | *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2, | |
11045 | *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal, | |
c637b0fa UB |
11046 | *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt, |
11047 | fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2, | |
11048 | stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1, | |
11049 | *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64, | |
11050 | *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1, | |
11051 | trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper, | |
11052 | *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32, | |
11053 | *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2, | |
11054 | *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same. | |
799dbb0f ME |
11055 | * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint. |
11056 | ||
1469de3c ILT |
11057 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11058 | ||
11059 | * profile.c (total_num_never_executed): Don't define. | |
11060 | (compute_branch_probabilities): Don't count or print | |
11061 | num_never_executed. | |
11062 | (init_branch_prob): Don't set total_num_never_executed. | |
11063 | (end_branch_prob): Don't print total_num_never_executed. | |
11064 | ||
2cb0a60d DD |
11065 | 2009-06-17 David Daney <ddaney@caviumnetworks.com> |
11066 | ||
c637b0fa | 11067 | * jump.c (cleanup_barriers): Handle case of no insns before a barrier. |
2cb0a60d | 11068 | |
82882240 DE |
11069 | 2009-06-17 David Edelsohn <edelsohn@gnu.org> |
11070 | ||
11071 | * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode. | |
11072 | (nabstd2_fpr): Same. | |
11073 | ||
a1a65f89 SE |
11074 | 2009-06-17 Steve Ellcey <sje@cup.hp.com> |
11075 | ||
11076 | * expr.c (expand_assignment): Change complex type check. | |
11077 | ||
07ae5620 BS |
11078 | 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net> |
11079 | ||
f100a4a8 | 11080 | * doc/plugins.texi (Building GCC plugins): Added new section. |
07ae5620 | 11081 | |
5eb4df45 ILT |
11082 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
11083 | ||
11084 | * c-pch.c (get_ident): Don't set size of templ array. | |
11085 | (pch_init): Don't set size of partial_pch array. | |
11086 | ||
11087 | * c-typeck.c (digest_init): If -Wc++-compat, warn about using a | |
11088 | string constant to intialize an array whose size is the length of | |
11089 | the string. | |
11090 | ||
4d61856d RG |
11091 | 2009-06-17 Richard Guenther <rguenther@suse.de> |
11092 | ||
11093 | PR tree-optimization/40389 | |
11094 | * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case | |
11095 | to addressable types. | |
11096 | * gimple.c (walk_stmt_load_store_addr_ops): Likewise. | |
11097 | ||
3cb8677c RG |
11098 | 2009-06-17 Richard Guenther <rguenther@suse.de> |
11099 | ||
11100 | PR middle-end/40460 | |
11101 | * tree-chrec.h (build_polynomial_chrec): If we cannot determine | |
11102 | if there is no evolution of left in the loop bail out. | |
11103 | * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one | |
11104 | chrec_fold_multiply. | |
11105 | ||
a4d99c86 R |
11106 | 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com> |
11107 | Janis Johnson <janis187@us.ibm.com> | |
11108 | ||
11109 | PR target/39254 | |
11110 | * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE | |
11111 | for the symbol ref of a constant that is the source of a move | |
11112 | - nor for any other not-obvious-label-ref constants. | |
11113 | ||
8dd1bca0 OR |
11114 | 2009-06-16 Olatunji Ruwase <tjruwase@google.com> |
11115 | ||
1469de3c | 11116 | * plugin.c (position_pass): Skip newly inserted pass during list |
8dd1bca0 OR |
11117 | traversal to avoid repeated insertion. |
11118 | ||
8019538f ILT |
11119 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11120 | ||
11121 | * vec.h (VEC_stack_alloc): Define different version if | |
11122 | GATHER_STATISTICS is defined, to accept and ignore MEM_STAT. | |
11123 | (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL. | |
11124 | (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise. | |
11125 | (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise. | |
11126 | ||
7c45393e L |
11127 | 2009-06-16 H.J. Lu <hongjiu.lu@intel.com> |
11128 | ||
11129 | * config.gcc (extra_headers): Add ia32intrin.h for x86. | |
11130 | ||
11131 | * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI, | |
11132 | IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC. | |
11133 | IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI, | |
11134 | IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI. | |
11135 | (ix86_special_builtin_type): Add UINT64_FTYPE_VOID, | |
11136 | UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT, | |
c637b0fa | 11137 | INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT. |
7c45393e L |
11138 | (bdesc_special_args): Add __builtin_ia32_rdtsc and |
11139 | __builtin_ia32_rdtscp. | |
11140 | (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi, | |
11141 | __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi | |
c637b0fa | 11142 | and __builtin_ia32_rorhi. |
7c45393e L |
11143 | (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID, |
11144 | UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT, | |
c637b0fa | 11145 | INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT. |
7c45393e L |
11146 | (ix86_expand_args_builtin): Likewise. |
11147 | (ix86_expand_special_args_builtin): Likewise. | |
11148 | ||
11149 | * config/i386/i386.md (UNSPECV_RDTSCP): New. | |
11150 | (UNSPECV_RDTSC): Likewise. | |
11151 | (UNSPECV_RDPMC): Likewise. | |
c637b0fa | 11152 | (*bsr): Renamed to ... |
7c45393e | 11153 | (bsr): This |
c637b0fa | 11154 | (*bsr_rex64): Renamed to ... |
7c45393e L |
11155 | (bsr_rex64): This. |
11156 | (rdpmc): New. | |
11157 | (*rdpmc): Likewise. | |
11158 | (*rdpmc_rex64): Likewise. | |
11159 | (rdtsc): Likewise. | |
11160 | (*rdtsc): Likewise. | |
11161 | (*rdtsc_rex64): Likewise. | |
11162 | (rdtscp): Likewise. | |
11163 | (*rdtscp): Likewise. | |
11164 | (*rdtscp_rex64): Likewise. | |
11165 | ||
11166 | * config/i386/ia32intrin.h: New. | |
11167 | ||
11168 | * config/i386/x86intrin.h: Include <ia32intrin.h>. | |
11169 | ||
504b33d8 ILT |
11170 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11171 | ||
11172 | * ira-build.c (copy_info_to_removed_store_destinations): | |
11173 | Initialize parent_a. | |
11174 | ||
f9551830 ILT |
11175 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11176 | ||
11177 | * c-decl.c (grokdeclarator): Change size_varies to bool. | |
11178 | ||
c32e2175 ILT |
11179 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11180 | ||
11181 | * sel-sched.c: Make forward declarations of move_op_hooks and | |
11182 | fur_hooks explicitly extern. | |
11183 | ||
415a06c2 ILT |
11184 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11185 | ||
c637b0fa | 11186 | * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself. |
415a06c2 ILT |
11187 | * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself. |
11188 | ||
675f99c9 ILT |
11189 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11190 | ||
11191 | * resource.c (mark_referenced_resources): Change | |
11192 | include_delayed_effects parameter to bool. Change all callers. | |
11193 | (mark_end_of_function_resources): Likewise. | |
11194 | * reorg.c (insn_references_resource_p): Likewise. | |
11195 | (insn_sets_resource_p): Likewise. | |
11196 | * resource.h (mark_referenced_resources): Update declaration. | |
11197 | (mark_end_of_function_resources): Update declaration. | |
11198 | ||
a322799d DE |
11199 | 2009-06-16 David Edelsohn <edelsohn@gnu.org> |
11200 | ||
11201 | * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++. | |
11202 | ||
c58c92f5 DE |
11203 | 2009-06-16 David Edelsohn <edelsohn@gnu.org> |
11204 | ||
11205 | * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap. | |
11206 | GCC can bootstrap on AIX with GNU Binutils 2.20. | |
11207 | ||
95228603 ILT |
11208 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11209 | ||
11210 | * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H). | |
11211 | ||
9c727c9a ILT |
11212 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11213 | ||
11214 | * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static | |
11215 | inline, not extern inline. | |
11216 | (exact_log2): Likewise. | |
11217 | * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't | |
11218 | test CLZ_HWI. | |
11219 | (exact_log2): Likewise, but don't test CTZ_HWI. | |
11220 | ||
5fd8300b ILT |
11221 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11222 | ||
11223 | * bitmap.c (bitmap_clear): Don't declare as inline. | |
11224 | * gimple.c (gimplify_assign): Likewise. | |
11225 | * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise. | |
11226 | * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE. | |
11227 | (sched_scan_info): Remove duplicate definition. | |
11228 | ||
7d882b83 ILT |
11229 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
11230 | ||
11231 | * c-common.c (skip_evaluation): Don't define. | |
11232 | (c_inhibit_evaluation_warnings): Define global variable. | |
11233 | (overflow_warning): Check c_inhibit_evaluation_warnings rather | |
11234 | than skip_evaluation. | |
11235 | (convert_and_check, warn_for_div_by_zero): Likewise. | |
11236 | * c-common.h (skip_evaluation): Don't declare. | |
11237 | (c_inhibit_evaluation_warnings): Declare. | |
11238 | * c-parser.c (c_parser_typeof_specifier): Set | |
11239 | c_inhibit_evaluation_warnings rather than skip_evaluation. | |
11240 | (c_parser_conditional_expression): Likewise. | |
11241 | (c_parser_binary_expression): Likewise. | |
11242 | (c_parser_sizeof_expression): Likewise. | |
11243 | (c_parser_alignof_expression): Likewise. | |
11244 | * c-typeck.c (build_indirect_ref): Check | |
11245 | c_inhibit_evaluation_warnings rather than skip_evaluation. | |
11246 | (build_conditional_expr, build_binary_op): Likewise. | |
11247 | ||
2e407842 RG |
11248 | 2009-06-16 Richard Guenther <rguenther@suse.de> |
11249 | ||
11250 | * tree-ssa-alias.c (is_escape_site): Remove. | |
11251 | * tree-ssa-alias.h (enum escape_type): Remove. | |
11252 | (is_escape_site): Likewise. | |
11253 | * tree-ssa-structalias.c (find_func_aliases): Handle escapes | |
11254 | via casts and asms without deferring to is_escape_site. | |
11255 | ||
f2ff8872 JJ |
11256 | 2009-06-16 Jakub Jelinek <jakub@redhat.com> |
11257 | ||
11258 | PR middle-end/40446 | |
11259 | * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't | |
11260 | use gen_lowpart if op0 has complex mode. | |
11261 | ||
de70bb20 RG |
11262 | 2009-06-16 Richard Guenther <rguenther@suse.de> |
11263 | ||
11264 | * tree-ssa-structalias.c (do_ds_constraint): Stores in global | |
11265 | variables add them to ESCAPED. | |
c637b0fa | 11266 | (find_func_aliases): Do not make all indirectly stored values escaped. |
de70bb20 | 11267 | |
daa0eeb8 RAE |
11268 | 2009-06-16 Rafael Avila de Espindola <espindola@google.com> |
11269 | ||
11270 | * config/i386/winnt.c (i386_pe_encode_section_info): Update call to | |
11271 | make_decl_one_only. | |
11272 | ||
0ec19b8c MJ |
11273 | 2009-06-16 Martin Jambor <mjambor@suse.cz> |
11274 | ||
11275 | PR tree-optimization/40432 | |
11276 | * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR, | |
11277 | check whether we need to force gimple register operand. | |
11278 | ||
2b26b801 MJ |
11279 | 2009-06-16 Martin Jambor <mjambor@suse.cz> |
11280 | ||
11281 | PR tree-optimization/40413 | |
11282 | * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to | |
11283 | build_ref_for_offset. | |
11284 | (propagate_subacesses_accross_link): Fix a typo in a comment. | |
11285 | ||
7c5222ff IR |
11286 | 2009-06-16 Ira Rosen <irar@il.ibm.com> |
11287 | ||
11288 | * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction | |
11289 | with additional parameter. | |
c637b0fa | 11290 | * tree-vectorizer.h (enum vect_def_type): Add new value |
7c5222ff IR |
11291 | vect_nested_cycle. |
11292 | (enum vect_relevant): Add comments. | |
11293 | (vect_is_simple_reduction): Add new argument. | |
11294 | * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments. | |
11295 | Detect nested cycles. | |
11296 | (vect_is_simple_reduction): Update documentation, add an argument to | |
11297 | distinguish inner-loop reduction from nested cycle, detect nested | |
11298 | cycles, fix printings and indentation, don't swap operands in case | |
11299 | of nested cycle. | |
11300 | (get_initial_def_for_reduction): Handle subtraction. | |
11301 | (vect_create_epilog_for_reduction): Add new argument to specify | |
11302 | reduction variable. | |
11303 | (vect_finalize_reduction): Handle subtraction, fix comments. | |
c637b0fa | 11304 | (vectorizable_reduction): Handle nested cycles. In case of nested |
f100a4a8 | 11305 | cycle keep track of the reduction variable position. Call |
7c8b1a77 | 11306 | vect_is_simple_reduction with additional parameter. Use original |
7c5222ff IR |
11307 | statement code in reduction epilogue for nested cycle. Call |
11308 | vect_create_epilog_for_reduction with additional parameter. | |
c637b0fa UB |
11309 | * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert |
11310 | inner-loop vectorization. | |
7c5222ff IR |
11311 | (vect_recog_widen_sum_pattern): Likewise. |
11312 | * tree-vect-stmts.c (process_use): Distinguish between nested cycles | |
11313 | and reductions. | |
11314 | (vect_mark_stmts_to_be_vectorized): Likewise. | |
11315 | (vect_get_vec_def_for_operand): Handle nested cycles. | |
11316 | ||
d376d545 RW |
11317 | 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
11318 | ||
11319 | * doc/invoke.texi (Debugging Options): Fix option index entries | |
11320 | for -fdump-statistics, -frandom-seed add entries for | |
11321 | -fdump-tree-original, -fdump-tree-optimized, -frandom-seed. | |
11322 | (FRV Options): Fix entries for -mTLS, -mtls. | |
11323 | (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld. | |
11324 | (i386 and x86-64 Options): Fix entry for -mno-red-zone. | |
11325 | (M68hc1x Options): Fix @itemx for -mnominmax. | |
11326 | (MCore Options): Fix entry for -mno-lsim. | |
11327 | (MMIX Options): Fix entry for -mabi=mmixware. | |
11328 | (PDP-11 Options): Fix entry for -mbcopy-builtin. | |
11329 | ||
bd117bb6 BS |
11330 | 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net> |
11331 | ||
11332 | * doc/plugins.texi (Interacting with the GCC Garbage Collector): | |
11333 | Mention the plugin mode of gengtype. | |
c637b0fa | 11334 | * doc/gty.texi (Source Files Containing Type Information): Likewise. |
bd117bb6 BS |
11335 | * gengtype.c: Updated copyright. |
11336 | (plugin_files, nb_plugin_files) Added new static variables. | |
11337 | (measure_input_list) Care about plugin_files. | |
11338 | (write_rtx_next): Added early return in plugin mode. | |
11339 | (create_file): Updated copyright year in generated file. Added | |
11340 | asserts. | |
11341 | (oprintf): Added early return if NULL outf. | |
11342 | (get_output_file_with_visibility): Care of plugin_files. | |
11343 | (get_output_file_name): May return null. | |
11344 | (write_local): Added early return. | |
11345 | (put_mangled_filename): Ditto. | |
11346 | (finish_root_table): Added check for base_files. | |
11347 | (write_roots): Care about null when plugins. | |
11348 | (main): Added plugin mode. | |
11349 | ||
e1b7793c ILT |
11350 | 2009-06-15 Ian Lance Taylor <iant@google.com> |
11351 | ||
c637b0fa | 11352 | * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch. |
e1b7793c ILT |
11353 | * gcov.c (read_count_file): Add braces around variables declared |
11354 | before label. | |
11355 | ||
11356 | * c.opt (Wjump-misses-init): New warning. | |
11357 | * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for | |
11358 | -Wall and -Wc++-compat if not already set. | |
11359 | (c_common_post_options): Clear warn_jump_misses_init if it was not | |
11360 | set. | |
11361 | * c-decl.c (struct c_binding): Change type field to a union with | |
11362 | new label field. Make it the first field in the struct. Update | |
11363 | references to type to use u.type instead. | |
11364 | (struct c_spot_bindings): Define. | |
11365 | (struct c_goto_bindings): Define. | |
11366 | (c_goto_bindings_p): Define, along with VECs. | |
11367 | (struct c_label_vars): Define. | |
11368 | (struct c_scope): Add has_label_bindings field. | |
11369 | (bind_label, set_spot_bindings): New static functions. | |
11370 | (decl_jump_unsafe, update_spot_bindings): New static functions. | |
11371 | (update_label_decls): New static function. | |
11372 | (pop_scope): Call update_label_decls. Don't call c_end_vm_scope. | |
11373 | Update binding u.label field to shadowed field. | |
11374 | (c_binding_start_stmt_expr): New function. | |
11375 | (c_binding_end_stmt_expr): New function. | |
11376 | (pushdecl): Don't call c_begin_vm_scope. | |
11377 | (make_label): Add defining and p_label_vars parameters. Change | |
11378 | all callers. | |
11379 | (lookup_label): Correct test for whether a label has not yet been | |
11380 | defined. Call bind_label rather than bind. | |
11381 | (warn_about_goto): New static function. | |
11382 | (lookup_label_for_goto): New function. | |
11383 | (declare_label): Call bind_label rather than bind. | |
11384 | (check_earlier_gotos): New static function. | |
11385 | (define_label): Don't give errors about jumping into statement | |
11386 | expressions or scopes of variably modified types. Call | |
11387 | set_spot_bindings and check_earlier_gotos. Call bind_label | |
11388 | instead of bind. Don't set label_context_stack_se or | |
11389 | label_context_stack_vm. | |
11390 | (c_get_switch_bindings): New function. | |
11391 | (c_release_switch_bindings): New function. | |
11392 | (c_check_switch_jump_warnings): New function. | |
11393 | (start_function): Don't set label_context_stack_se or | |
11394 | label_context_stack_vm. | |
11395 | (finish_function): Likewise. | |
11396 | * c-typeck.c (label_context_stack_se): Don't define. | |
11397 | (label_context_stack_vm): Don't define. | |
11398 | (c_finish_goto_label): Call lookup_label_for_goto rather than | |
11399 | lookup_label. Don't give errors about jumping into a statement | |
11400 | expression or the scope of a variably modified type. Don't set | |
11401 | label_context_stack_se or label_context_stack_vm. | |
11402 | (struct c_switch): Remove blocked_stmt_expr and blocked_vm | |
11403 | fields. Add bindings field. | |
11404 | (c_start_case): Don't set deleted fields. Set bindings field. | |
11405 | (do_case): Rework order of tests. Don't check blocked_stmt_expr | |
11406 | or blocked_vm. Call c_check_switch_jump_warnings. | |
11407 | (c_finish_case): Don't test blocked_stmt_expr field. Call | |
11408 | c_release_switch_bindings. | |
11409 | (c_begin_stmt_expr): Don't increment blocked_stmt_expr in | |
11410 | c_switch_stack. Don't walk label_context_stack_se labels. Don't | |
11411 | set label_context_stack_se. Call c_bindings_start_stmt_expr. | |
11412 | (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in | |
11413 | c_switch_stack. Don't walk label_context_stack_se labels. Don't | |
11414 | set label_context_stack_se. Call c_bindings_end_stmt_expr. | |
11415 | (c_begin_vm_scope, c_end_vm_scope): Don't define. | |
11416 | * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define. | |
11417 | (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define. | |
11418 | (C_DECL_UNJUMPABLE_VM): Don't define. | |
11419 | (C_DECL_UNDEFINABLE_VM): Don't define. | |
11420 | (struct c_label_list): Don't define. | |
11421 | (struct c_label_context_se): Don't define. | |
11422 | (struct c_label_context_vm): Don't define. | |
11423 | (struct c_spot_bindings): Declare. | |
11424 | (c_bindings_start_stmt_expr): Declare. | |
11425 | (c_bindings_end_stmt_expr): Declare. | |
11426 | (lookup_label_for_goto): Declare. | |
11427 | (c_get_switch_bindings, c_release_switch_bindings): Declare. | |
11428 | (c_check_switch_jump_warnings): Declare. | |
11429 | (label_context_stack_se, label_context_stack_vm): Don't declare. | |
11430 | (c_finish_goto_label): Update declaration. | |
11431 | (c_begin_vm_scope, c_end_vm_scope): Don't declare. | |
11432 | * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init. | |
11433 | (Warning Options): Document -Wjump-misses-init. | |
11434 | ||
98a129b9 JJ |
11435 | 2009-06-15 Jakub Jelinek <jakub@redhat.com> |
11436 | ||
11437 | * tree-object-size.c (addr_object_size): Fix a pasto in the last | |
11438 | change. | |
11439 | ||
19751f1f RAE |
11440 | 2009-06-15 Rafael Avila de Espindola <espindola@google.com> |
11441 | ||
11442 | * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP. | |
11443 | ||
d40eb158 AH |
11444 | 2009-06-15 Aldy Hernandez <aldyh@redhat.com> |
11445 | ||
11446 | * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl. | |
11447 | ||
11448 | 2009-06-15 Aldy Hernandez <aldyh@redhat.com> | |
11449 | ||
11450 | * tree-eh.c (lower_try_finally_switch): Initialize tf_loc. | |
11451 | ||
fc26fae3 RAE |
11452 | 2009-06-15 Rafael Avila de Espindola <espindola@google.com> |
11453 | ||
11454 | * cgraphunit.c (cgraph_function_versioning,save_inline_function_body): | |
11455 | Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY. | |
11456 | * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP. | |
11457 | * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP. | |
c637b0fa UB |
11458 | * dwarf2asm.c (dw2_force_const_mem): Update call to |
11459 | make_decl_one_only. | |
fc26fae3 RAE |
11460 | * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove. |
11461 | (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP. | |
11462 | * langhooks.c (lhd_comdat_group): Remove. | |
11463 | * langhooks.h (lang_hooks_for_decls): Remove comdat_group. | |
11464 | * tree.h (DECL_COMDAT_GROUP): New. | |
11465 | (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP. | |
11466 | (tree_decl_with_vis): Add comdat_group. Remove one_only. | |
11467 | (make_decl_one_only): Change signature. | |
11468 | * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to | |
11469 | make_decl_one_only. | |
11470 | (make_decl_one_only): Change signature. | |
11471 | (default_elf_asm_named_section): Use DECL_COMDAT_GROUP. | |
11472 | ||
0eb92735 RG |
11473 | 2009-06-15 Richard Guenther <rguenther@suse.de> |
11474 | ||
11475 | PR middle-end/40439 | |
11476 | * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts. | |
11477 | ||
0ab352d5 AK |
11478 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11479 | ||
11480 | * tree-ssa-math-opts.c: Remove extra divide. | |
11481 | ||
677fbff4 AK |
11482 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11483 | ||
11484 | * config/s390/s390.md ("bswap<mode>2"): Only available on z900. | |
11485 | ||
03bd2f1a AK |
11486 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11487 | ||
11488 | * passes.c: Add bswap pass. | |
11489 | * tree-pass.h: Add pass_optimize_bswap declaration. | |
11490 | * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt. | |
11491 | Include rtl.h, expr.h and optabs.h for optab_handler check. | |
11492 | (struct symbolic_number, pass_optimize_bswap): New definition. | |
11493 | (do_shift_rotate, verify_symbolic_number_p): New functions. | |
11494 | (find_bswap_1, find_bswap, execute_optimize_bswap): New functions. | |
11495 | (gate_optimize_bswap): New function. | |
11496 | * tree.c (widest_int_cst_value): New function. | |
11497 | * tree.h (widest_int_cst_value): Prototype added. | |
11498 | ||
fb4c4640 SB |
11499 | 2009-06-14 Steven Bosscher <steven@gcc.gnu.org> |
11500 | ||
11501 | * cfgcleanup.c (old_insns_match_p): Remove code to substitute | |
11502 | REG_EQUAL/REG_EQUIV notes. | |
11503 | ||
1d24fdd9 RG |
11504 | 2009-06-14 Richard Guenther <rguenther@suse.de> |
11505 | ||
11506 | PR middle-end/40389 | |
11507 | * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call | |
11508 | has its address taken if NRV was applied and it is addressable. | |
11509 | * tree-ssa-structalias.c (get_constraint_for_address_of): New | |
11510 | function split out from ... | |
11511 | (get_constraint_for_1): ... here. | |
11512 | (handle_rhs_call): Use it to mark the return slot escaped if | |
11513 | it is addressable and NRV was applied. | |
11514 | ||
4b29c5e5 AH |
11515 | 2009-06-13 Aldy Hernandez <aldyh@redhat.com> |
11516 | ||
11517 | * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin): | |
11518 | Change first argument type to location_t. | |
11519 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same. | |
11520 | Do not set input_location. | |
11521 | Use loc instead of input_location throughout. | |
11522 | ||
e1e6dc73 RG |
11523 | 2009-06-13 Richard Guenther <rguenther@suse.de> |
11524 | ||
1d24fdd9 | 11525 | PR tree-optimization/40421 |
e1e6dc73 RG |
11526 | * tree-predcom.c (should_unroll_loop_p): Remove. |
11527 | (tree_predictive_commoning_loop): Use can_unroll_loop_p. | |
11528 | ||
8012b923 MM |
11529 | 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com> |
11530 | ||
11531 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
11532 | Add location argument. | |
11533 | ||
4c4bde29 AH |
11534 | 2009-06-13 Aldy Hernandez <aldyh@redhat.com> |
11535 | ||
11536 | * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to | |
11537 | build_decl. | |
11538 | * config/s390/s390.c (s390_build_builtin_va_list): Same. | |
11539 | (s390_gimplify_va_arg): Pass location to create_artificial_label. | |
11540 | * config/spu/spu-protos.h: Add location to | |
11541 | spu_resolve_overloaded_builtin. | |
11542 | * config/spu/spu.c (spu_build_builtin_va_list): Pass location to | |
11543 | spu_build_builtin_va_list. | |
11544 | * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location | |
11545 | argument. Pass location to build_function_call_vec. | |
11546 | * config/sh/sh.c (sh_build_builtin_va_list): Pass location to | |
11547 | build_decl. | |
11548 | (emit_fpu_switch): Same. | |
11549 | (sh_gimplify_va_arg_expr): Pass location to create_artificial_label. | |
11550 | * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location | |
11551 | to build_decl and create_artificial_label. | |
11552 | (xtensa_gimplify_va_arg_expr): Same. | |
11553 | * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same. | |
11554 | (xstormy16_gimplify_va_arg_expr): Same. | |
11555 | * config/iq2000/iq2000.c (iq2000_expand_prologue): Same. | |
11556 | * config/arm/arm.c (arm_build_builtin_va_list): Same. | |
11557 | * config/mips/mips.c (mips_build_builtin_va_list): Same. | |
11558 | (mips16_build_function_stub): Same. | |
11559 | (mips16_build_call_stub): Same. | |
11560 | ||
81beb031 RE |
11561 | 2009-06-13 Richard Earnshaw <rearnsha@arm.com> |
11562 | ||
11563 | PR target/40327 | |
11564 | * arm/constraints.md (Pa, Pb): New constraints. | |
f100a4a8 | 11565 | * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a |
81beb031 RE |
11566 | split pattern to deal with them. |
11567 | ||
98f6c600 JS |
11568 | 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de> |
11569 | ||
11570 | * doc/invoke.texi: Add missing option -Wp,OPTION in list, | |
11571 | fix index entry for -Xpreprocessor. | |
11572 | ||
71856685 AH |
11573 | 2009-06-12 Aldy Hernandez <aldyh@redhat.com> |
11574 | ||
11575 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
11576 | Add location argument to build_decl call. | |
11577 | * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same. | |
11578 | (rs6000_init_builtins): Same. | |
11579 | (spe_init_builtins): Same. | |
11580 | (rs6000_gimplify_va_arg): Add location argument to | |
11581 | create_artificial_label call. | |
11582 | ||
756b65f5 SB |
11583 | 2009-06-12 Steven Bosscher <steven@gcc.gnu.org> |
11584 | ||
11585 | * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar. | |
11586 | * combine-stack-adj.c (pass_stack_adjustments): Use it. | |
11587 | * Makefile.in: Fix GGC dependency for gcse.o. | |
11588 | ||
c2255bc4 AH |
11589 | 2009-06-12 Aldy Hernandez <aldyh@redhat.com> |
11590 | ||
11591 | * tree-pretty-print.c (dump_generic_node): Dump column numbers. | |
11592 | * gimple-pretty-print.c (dump_gimple_stmt): Same. | |
11593 | * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs | |
11594 | created. | |
11595 | * c-parser.c (c_parser_binary_expression): Use current column while | |
11596 | building binary operations. | |
11597 | * common.opt (fshow-column): Enable by default. | |
11598 | * tree-vrp.c (check_array_ref): Use warning_at. | |
11599 | (check_array_bounds): Use location from call back if expr has no | |
11600 | location. | |
11601 | * tree.h: Add location argument to maybe_fold_*. | |
11602 | * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*. | |
11603 | (maybe_fold_offset_to_array_ref): Add location argument and use it. | |
11604 | (maybe_fold_offset_to_component_ref): Same. | |
11605 | (maybe_fold_offset_to_reference): Same. | |
11606 | (maybe_fold_offset_to_address): Same. | |
11607 | (maybe_fold_stmt_indirect): Same. | |
11608 | (maybe_fold_stmt_addition): Same. | |
11609 | (fold_stmt_r): Pass location to maybe_fold_*. | |
11610 | (fold_gimple_assign): Same. | |
11611 | * c-tree.h: Add location argument to finish_decl, | |
11612 | default_function_array_conversion, store_init_value. | |
11613 | * c-decl.c (define_label): Use error_at. | |
11614 | (c_make_fname_decl): Pass location to finish_decl. | |
11615 | (finish_decl): New location argument. | |
11616 | (build_compound_literal): Pass location to store_init_value. | |
11617 | (grokdeclarator): Pass location to finish_decl. | |
11618 | (grokfield): Same. | |
11619 | * c-typeck.c (array_to_pointer_conversion): New location argument. | |
11620 | (function_to_pointer_conversion): Same. | |
11621 | (default_function_array_conversion): Same. | |
11622 | (parser_build_unary_op): Pass location to overflow_warning. | |
11623 | (parser_build_binary_op): Same. Use warning_at. | |
11624 | (build_unary_op): Pass location to array_to_pointer_conversion. | |
11625 | (build_c_cast): Pass location to digest_init. | |
11626 | (build_modify_expr): New location argument. | |
11627 | (convert_for_assignment): Same. | |
11628 | (store_init_value): Same. | |
11629 | (digest_init): Same. | |
11630 | (output_init_element): Pass location to digest_init and | |
11631 | array_to_pointer_conversion. | |
11632 | (c_finish_return): Pass location to convert_for_assignment. | |
11633 | * gimplify.c (gimplify_conversion): Pass location to | |
11634 | maybe_fold_offset_to_address. | |
11635 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location | |
11636 | to maybe_fold_stmt_addition. | |
11637 | * c-omp.c (c_finish_omp_atomic): Pass new location to | |
11638 | build_modify_expr. | |
11639 | (c_finish_omp_for): Same. | |
11640 | * c-common.c (overflow_warning): New argument. | |
11641 | * c-common.h: New argument to build_modify_expr, overflow_warning. | |
11642 | * c-parser.c (c_parser_declaration_or_fndef): Pass location to | |
11643 | finish_decl. | |
11644 | (c_parser_initializer): Pass location to | |
11645 | default_function_array_conversion. | |
11646 | (c_parser_initelt): Same. | |
11647 | (c_parser_initval): Same. | |
11648 | (c_parser_asm_operands): Same. | |
11649 | (c_parser_expr_no_commas): Same. Pass location to build_modify_expr. | |
11650 | (c_parser_conditional_expression): Same. | |
11651 | (c_parser_binary_expression): Add location info to stack. Use it. | |
11652 | (c_parser_unary_expression): Pass location to | |
11653 | default_function_array_conversion, parser_build_unary_op, | |
11654 | build_indirect_ref, c_parser_postfix_expression_after_primary. | |
11655 | (c_parser_postfix_expression_after_primary): New location argument. | |
11656 | Use it. | |
11657 | (c_parser_expression_conv): Pass location to | |
11658 | default_function_array_conversion. | |
11659 | (c_parser_expr_list): Same. | |
11660 | (c_parser_omp_atomic): Same. | |
11661 | (c_parser_omp_for_loop): Same. | |
11662 | * c-tree.h: (struct c_declarator): Add comment to id_loc. | |
11663 | (build_array_declarator): New argument. | |
11664 | * c-decl.c (build_array_declarator): Add location argument. | |
11665 | (grokdeclarator): Set id_loc for cdk_array. | |
11666 | * c-parser.c (c_parser_direct_declarator_inner): Pass location to | |
11667 | build_array_declarator. | |
11668 | * tree.c (build_omp_clause): Add location argument. | |
11669 | * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro. | |
11670 | (OMP_CLAUSE_LOCATION): New macro. | |
11671 | (struct tree_omp_clause): Add location field. | |
11672 | (build_omp_clause): Add argument. | |
11673 | * testsuite/gcc.dg/gomp/for-1.c: Fix column. | |
11674 | * cp/pt.c (tsubst_omp_for_iterator): Pass location to | |
11675 | build_omp_clause. | |
11676 | * cp/parser.c (cp_parser_omp_var_list_no_open): Same. | |
11677 | (cp_parser_omp_clause_collapse): Same. | |
11678 | (cp_parser_omp_clause_default): Same. | |
11679 | (cp_parser_omp_clause_if): Same. | |
11680 | (cp_parser_omp_clause_nowait): Same. | |
11681 | (cp_parser_omp_clause_num_threads): Same. | |
11682 | (cp_parser_omp_clause_ordered): Same. | |
11683 | (cp_parser_omp_clause_schedule): Same. | |
11684 | (cp_parser_omp_clause_untied): Same. | |
11685 | (cp_parser_omp_for_loop): Same. | |
11686 | (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses. | |
11687 | * c-tree.h (c_start_case): Add location argument. | |
11688 | (c_process_expr_stmt): Same. | |
11689 | (c_finish_goto_*): Same. | |
11690 | * tree-parloops.c (initialize_reductions): Pass location to | |
11691 | build_omp_clause. | |
11692 | (create_parallel_loop): Same. | |
11693 | * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same. | |
11694 | (gfc_trans_omp_reduction_list): Same. | |
11695 | (gfc_trans_omp_clauses): Same. | |
11696 | (gfc_trans_omp_do): Same. | |
11697 | * c-typeck.c (c_finish_goto_label): Same. | |
11698 | (c_finish_goto_ptr): New location argument. | |
11699 | (c_start_case): Same. | |
11700 | (emit_side_effect_warnings): Same. | |
11701 | (c_process_expr_stmt): Same. | |
11702 | (c_finish_stmt_expr): Same. | |
11703 | (c_finish_omp_clauses): Use error_at instead of error. | |
11704 | * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to | |
11705 | build_omp_clause. | |
11706 | * c-omp.c (c_split_parallel_clauses): New location argument. | |
11707 | * tree-nested.c (convert_nonlocal_reference_stmt): Pass location | |
11708 | to build_omp_clause. | |
11709 | (convert_local_reference_stmt): Same. | |
11710 | (convert_gimple_call): Same. | |
11711 | * c-common.h (c_split_parallel_clauses): New argument. | |
11712 | * c-parser.c (c_parser_statement_after_labels): Pass location to | |
11713 | c_finish_goto_label. | |
11714 | (c_parser_switch_statement): Pass location to c_start_case. | |
11715 | (c_parser_for_statement): Pass location to c_finish_expr_stmt, | |
11716 | and c_process_expr_stmt. | |
11717 | (c_parser_omp_variable_list): Add location argument. | |
c637b0fa | 11718 | (c_parser_omp_clause_collapse): Pass location to build_omp_clause. |
c2255bc4 AH |
11719 | (c_parser_omp_clause_default): Same. |
11720 | (c_parser_omp_clause_if): Same. | |
11721 | (c_parser_omp_clause_num_threads): Same. | |
11722 | (-c_parser_omp_clause_ordered): Same. | |
11723 | (c_parser_omp_clause_reduction): Pass location to | |
11724 | c_parser_omp_variable_list. | |
11725 | (c_parser_omp_clause_schedule): Pass location to build_omp_clause. | |
11726 | (c_parser_omp_clause_untied): Same. | |
11727 | (c_parser_omp_for_loop): Pass location to c_process_expr_stmt. | |
c637b0fa | 11728 | (c_parser_omp_parallel): Pass location to c_split_parallel_clauses. |
c2255bc4 AH |
11729 | |
11730 | * c-tree.h (check_for_loop_decls, undeclared_variable, | |
11731 | build_component_ref, build_array_ref, build_external_ref, | |
11732 | c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op, | |
11733 | build_conditional_expr, build_compound_expr, c_cast_expr, | |
11734 | build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr, | |
11735 | c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New | |
11736 | argument. | |
11737 | * c-semantics.c (build_stmt): Same. | |
11738 | (build_case_label): Same. | |
11739 | * c-decl.c (c_finish_incomplete_decl): Pass location on down. | |
11740 | (undeclared_variable): New argument. | |
11741 | (make_label): Same. | |
11742 | (lookup_label): Pass location on down. | |
11743 | (define_label): Same. | |
11744 | (finish_decl): Same. | |
11745 | (build_compound_literal): Same. | |
11746 | (finish_struct): Same. | |
11747 | (finish_function): Do not set location here. | |
11748 | (check_for_loop_decls): New argument. | |
11749 | * tree.c (save_expr): Set location. | |
11750 | (build_empty_stmt): New argument. | |
11751 | * tree.h (build_empty_stmt): New argument to build_empty_stmt. | |
11752 | (CAN_HAVE_LOCATION_P): Make sure we have a non empty node. | |
11753 | * builtins.c (gimplify_va_arg_expr): Use locations. | |
11754 | (expand_builtin_sync_operation): Same. | |
11755 | * c-typeck.c (build_component_ref): New argument. | |
11756 | (build_array_ref): Same. | |
11757 | (build_external_ref): Same. | |
11758 | (c_expr_sizeof_expr): Same. | |
11759 | (c_expr_sizeof_type): Same. | |
11760 | (parser_build_unary_op): Same. | |
11761 | (build_conditional_expr): Same. | |
11762 | (build_compound_expr): Pass location on down. | |
11763 | (build_compound_expr): New argument. | |
11764 | (build_c_cast): Same. | |
11765 | (c_cast_expr): Same. | |
11766 | (build_asm_expr): Same. | |
11767 | (c_finish_return): Same. | |
11768 | (c_process_expr_stmt): Pass location on down. | |
11769 | (c_finish_stmt_expr): New argument. | |
11770 | (push_clenaup): Same. | |
11771 | (c_finish_omp_parallel): Same. | |
11772 | (c_finish_omp_task): Same. | |
11773 | * gimplify.c (gimplify_call_expr): Pass location on down. | |
11774 | * c-omp.c (c_finish_omp_master): New argument. | |
11775 | (c_finish_omp_critical): Same. | |
11776 | (c_finish_omp_ordered): Same. | |
11777 | (c_finish_omp_barrier): Same. | |
11778 | (-c_finish_omp_taskwait): Same. | |
11779 | (c_finish_omp_atomic): Same. | |
11780 | (c_finish_omp_flush): Same. | |
11781 | * tree-inline.c (copy_tree_body_r): Pass location on down. | |
11782 | (inline_forbidden_p): Remove use of input_location. | |
11783 | * c-gimplify.c (c_build_bind_expr): New argument. | |
11784 | * c-common.c (c_common_truthvalue_conversion): Pass location on down. | |
11785 | (c_sizeof_or_alignof_type): New argument. | |
11786 | (c_alignof_expr): Same. | |
11787 | (build_va_arg): Same. | |
11788 | (c_add_case_label): Same. | |
11789 | * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr, | |
11790 | c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label, | |
11791 | c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt, | |
11792 | c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered, | |
11793 | c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush, | |
11794 | c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses): | |
11795 | New argument. | |
11796 | * stub-objc.c (objc_build_selector_expr): Same. | |
11797 | (objc_build_throw_stmt): Same. | |
11798 | * c-parser.c (c_parser_declaration_or_fndef): Pass location on down. | |
11799 | (c_parser_initelt): Same. | |
11800 | (c_parser_compound_statement): Same. | |
11801 | (c_parser_compound_statement_nostart): Same. | |
11802 | (c_parser_label): Same. | |
11803 | (c_parser_statement_after_labels): Same. | |
11804 | (c_parser_if_body): Same. | |
11805 | (c_parser_else_body): Same. | |
11806 | (c_parser_if_statement): Same. | |
11807 | (c_parser_switch_statement): Same. | |
11808 | (c_parser_while_statement): Same. | |
11809 | (c_parser_do_statement): Same. | |
11810 | (c_parser_for_statement): Same. | |
11811 | (c_parser_asm_statement): Same. | |
11812 | (c_parser_conditional_expression): Same. | |
11813 | (c_parser_binary_expression): Same. | |
11814 | (c_parser_cast_expression): Same. | |
11815 | (c_parser_unary_expression): Same. | |
11816 | (c_parser_sizeof_expression): Same. | |
11817 | (c_parser_alignof_expression): Same. | |
11818 | (c_parser_postfix_expression): Same. | |
11819 | (c_parser_expression): Same. | |
11820 | (c_parser_objc_receiver): Same. | |
11821 | (c_parser_omp_variable_list): Same. | |
11822 | (c_parser_omp_structured_block): Same. | |
11823 | (c_parser_omp_atomic): New argument. | |
11824 | (c_parser_omp_barrier): Same. | |
11825 | (c_parser_omp_critical): Same. | |
11826 | (c_parser_omp_flush): Pass location on down. | |
11827 | (c_parser_omp_for_loop): New argument. | |
11828 | (c_parser_omp_for): Same. | |
11829 | (c_parser_omp_master): Same. | |
11830 | (c_parser_omp_ordered): Same. | |
11831 | (c_parser_omp_sections_scope): Same. | |
11832 | (c_parser_omp_sections): Same. | |
11833 | (c_parser_omp_parallel): Same. | |
11834 | (c_parser_omp_single): Same. | |
11835 | (c_parser_omp_task): Same. | |
11836 | (c_parser_omp_taskwait): Pass location on down. | |
11837 | (c_parser_omp_construct): Same. | |
11838 | (c_parser_omp_threadprivate): Same. | |
11839 | * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h, | |
11840 | builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c, | |
11841 | tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c, | |
11842 | c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c, | |
11843 | c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c, | |
11844 | emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c, | |
11845 | rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h, | |
11846 | tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c, | |
11847 | config/i386/i386.c, stmt.c: | |
11848 | Add location argument to the following function definitions and/or | |
11849 | function calls: build_decl, objcp_start_struct, objcp_finish_struct, | |
11850 | start_struct, finish_struct, PUSH_FIELD, create_artificial_label, | |
11851 | cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl, | |
11852 | build_compound_literal, parser_xref_tag, resolve_overloaded_builtin, | |
11853 | do_case, c_finish_bc_stmt, build_compound_literal, | |
11854 | build_function_call. | |
11855 | * c-decl.c (build_compound_literal): Add location argument. | |
11856 | Make all diagnostic calls use location. | |
11857 | (start_struct): Same. | |
11858 | (finish_struct): Same. | |
11859 | (start_enum): Same. | |
11860 | (build_enumerator): Same. | |
11861 | (start_function): Same. | |
11862 | (grokdeclarator): Make all diagnostic calls use location. | |
11863 | (store_parm_decls_oldstyle): Same. | |
11864 | * c-typeck.c (build_function_call): Add location argument. | |
11865 | Make all diagnostic calls use location. | |
11866 | (do_case): Same. | |
11867 | (c_finish_bc_stmt): Same. | |
11868 | * tree-nested.c (get_trampoline_type): Add argument. | |
11869 | Pass location to build_decl. | |
11870 | (lookup_tramp_for_decl): Pass location to get_trampoline_type. | |
11871 | * rtl.h (RTL_LOCATION): New. | |
11872 | * c-common.c (c_add_case_label): Add location argument. | |
11873 | Make all diagnostic calls use location. | |
11874 | * c-common.h: Add location argument to make_fname_decl, do_case, | |
11875 | c_add_case_label, build_function_call, resolve_overloaded_builtin. | |
11876 | * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc. | |
11877 | Set it appropriately for every case. Pass enum_loc to start_enum | |
11878 | call. Pass value_loc first to build_enumerator. Pass enum_loc to | |
11879 | parser_xref_tag. | |
11880 | (c_parser_struct_or_union_specifier): Save location. Use it for | |
11881 | start_struct, finish_struct, and parser_xref_tag. | |
11882 | ||
3d8b2a98 ILT |
11883 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
11884 | ||
c637b0fa | 11885 | * fold-const.c (fold_unary): Rename local variable and to and_expr. |
3d8b2a98 ILT |
11886 | |
11887 | * c-opts.c (c_common_handle_option): For -Wc++-compat set | |
11888 | cpp_opts->warn_cxx_operator_names. | |
11889 | ||
737142ce AP |
11890 | 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com> |
11891 | ||
11892 | PR tree-opt/38865 | |
11893 | * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup | |
11894 | is returns NULL and OP is a VCE, look through the VCE. | |
11895 | ||
d3a0d55d ILT |
11896 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
11897 | ||
11898 | PR bootstrap/40430 | |
11899 | * collect2.c (main): Use CONST_CAST2 in code inside #if | |
11900 | LINK_ELIMINATE_DUPLICATE_LDIRECTORIES. | |
11901 | ||
f85882d8 JY |
11902 | 2009-06-12 Joey Ye <joey.ye@intel.com> |
11903 | ||
11904 | PR middle-end/39146 | |
11905 | * cfgexpand.c (get_decl_align_unit): Update | |
11906 | max_used_stack_slot_alignment with align instead of | |
11907 | stack_alignment_needed. | |
11908 | ||
11909 | * function.c (assign_stack_local_1): Update | |
11910 | max_used_stack_slot_alignment with alignment_in_bits instead | |
11911 | of stack_alignment_needed. | |
11912 | (locate_and_pad_parm): Don't update max_used_stack_slot_alignment | |
11913 | here. | |
11914 | ||
fc9f468b JJ |
11915 | 2009-06-12 Jakub Jelinek <jakub@redhat.com> |
11916 | ||
11917 | * dwarf2out.c (last_var_location_insn): New variable. | |
11918 | (dwarf2out_end_epilogue): Clear last_var_location_insn. | |
11919 | (dwarf2out_var_location): Don't record anything after last real | |
11920 | insn. Only change labels if there were any real instructions | |
11921 | in between last note and this one, or if changed sections. | |
11922 | ||
7c1db202 RH |
11923 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11924 | ||
f85882d8 | 11925 | * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER |
15cb981a RH |
11926 | note when storing the frame pointer in a register. |
11927 | (FRP): Don't redefine to nothing for epilogue. | |
11928 | (alpha_expand_epilogue): Mark register and sp restores. | |
11929 | (unicosmk_gen_dsib): Don't mark weird frame pointer adjust. | |
11930 | ||
7c1db202 RH |
11931 | * config/alpha/alpha.c (alpha_emit_setcc): Fix test for |
11932 | when gen_lowpart is needed. | |
11933 | ||
f2ae7631 RH |
11934 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11935 | ||
42755c21 RH |
11936 | * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset. |
11937 | ||
f2ae7631 RH |
11938 | * dwarf2out.c (need_data_align_sf_opcode): New. |
11939 | (div_data_align): Move earlier. | |
11940 | (def_cfa_1, reg_save): Use it. | |
11941 | ||
8ed0ce99 L |
11942 | 2009-06-11 H.J. Lu <hongjiu.lu@intel.com> |
11943 | ||
11944 | * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New. | |
11945 | (OPTION_MASK_ISA_CRC32_UNSET): Likewise. | |
11946 | (ix86_handle_option): Handle OPT_mcrc32. | |
11947 | (ix86_target_string): Add -mcrc32. | |
11948 | (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32. | |
11949 | ||
11950 | * config/i386/i386.h (TARGET_CRC32): New. | |
11951 | ||
c637b0fa | 11952 | * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32. |
8ed0ce99 L |
11953 | (sse4_2_crc32di): Likewise. |
11954 | ||
c637b0fa | 11955 | * config/i386/i386.opt (mcrc32): New. |
8ed0ce99 L |
11956 | |
11957 | * doc/invoke.texi: Document -mcrc32. | |
11958 | ||
9fd68a1f RH |
11959 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11960 | ||
8ed0ce99 | 11961 | * common.opt (gdwarf-): Accept a version number. |
9fd68a1f RH |
11962 | * doc/invoke.texi (gdwarf-): Update docs. |
11963 | * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus. | |
11964 | * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf | |
11965 | version level, and record it. | |
11966 | ||
11967 | * dwarf2.h (DW_CIE_VERSION): Remove. | |
11968 | * dwarf2out.c (DWARF_VERSION): Remove. | |
11969 | (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3. | |
11970 | (output_call_frame_info): Use CIE version 3 for dwarf3, | |
11971 | or if the return register column is out of range for version 1. | |
11972 | (dwarf_stack_op_name): Add all dwarf3 values. | |
11973 | (DEBUG_PUBTYPES_SECTION): New. | |
11974 | (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr | |
11975 | encoding change for dwarf3. | |
11976 | (output_die) [dw_val_class_die_ref]: Likewise. | |
11977 | (output_compilation_unit_header): Emit correct version for dwarf3. | |
11978 | (output_line_info): Likewise. | |
11979 | (output_pubnames): Update for DWARF_VERSION removal. | |
11980 | (output_aranges): Likewise. | |
11981 | (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3. | |
11982 | (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION. | |
11983 | (dwarf2out_finish): Likewise. | |
11984 | ||
4de8ce3b DD |
11985 | 2009-06-11 David Daney <ddaney@caviumnetworks.com> |
11986 | ||
11987 | * system.h (gcc_assert, gcc_unreachable): Revert accidental commit | |
11988 | in r148403. | |
11989 | ||
468059bc DD |
11990 | 2009-06-11 David Daney <ddaney@caviumnetworks.com> |
11991 | ||
11992 | PR c/39252 | |
11993 | * doc/extend.texi ( __builtin_unreachable): Document new builtin. | |
11994 | * builtins.c (expand_builtin_unreachable): New function. | |
11995 | (expand_builtin): Handle BUILT_IN_UNREACHABLE case. | |
11996 | * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin. | |
11997 | * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no | |
11998 | successors. | |
11999 | * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when | |
12000 | searching for missing barriers. | |
12001 | ||
b5a6e96f FXC |
12002 | 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
12003 | ||
12004 | * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov | |
12005 | when -fprofile-generate* was passed. | |
12006 | * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. | |
12007 | ||
6be6462e AG |
12008 | 2009-06-11 Anthony Green <green@moxielogic.com> |
12009 | ||
c637b0fa | 12010 | * config/moxie/moxie.md: Define length attribute for all instructions. |
6be6462e AG |
12011 | (rCC): Define. |
12012 | (*b<cond:code>): Support limited branch ranges for new PC-relative | |
12013 | branch instructions. | |
12014 | * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define. | |
12015 | ||
caaabe0a JJ |
12016 | 2009-06-11 Jakub Jelinek <jakub@redhat.com> |
12017 | ||
e5219642 JJ |
12018 | * config/i386/i386.c (min_insn_size): Use get_attr_length |
12019 | for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP. | |
12020 | For __asm return 0. | |
12021 | ||
caaabe0a JJ |
12022 | * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before |
12023 | instead of emit_insn_before. | |
12024 | ||
a567fa6a ILT |
12025 | 2009-06-10 Ian Lance Taylor <iant@google.com> |
12026 | ||
12027 | PR bootstrap/40408 | |
12028 | * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to | |
12029 | GIMPLE_SWITCH. | |
12030 | ||
6a753d5f RE |
12031 | 2009-06-10 Revital Eres <eres@il.ibm.com> |
12032 | ||
12033 | * passes.c (init_optimization_passes): Reschedule | |
12034 | predictive-commoning pass before complete unroll pass. | |
12035 | ||
a550d677 MJ |
12036 | 2009-06-10 Martin Jambor <mjambor@suse.cz> |
12037 | ||
12038 | * cgraph.c (cgraph_node_can_be_local_p): New function. | |
12039 | (cgraph_make_node_local): New function. | |
12040 | * cgraph.h (cgraph_node_can_be_local_p): Declare. | |
12041 | (cgraph_make_node_local): Declare. | |
12042 | ||
d8259b07 NF |
12043 | 2009-06-10 Nathan Froyd <froydnj@codesourcery.com> |
12044 | ||
12045 | * tree.h (tree_base): Add packed_flag and user_align fields. | |
12046 | Decrease size of spare field. | |
12047 | (TYPE_USER_ALIGN): Use user_align from tree_base. | |
12048 | (DECL_USER_ALIGN): Likewise. | |
12049 | (TYPE_PACKED): Use packed_flag from tree_base. | |
12050 | (DECL_PACKED): Likewise. | |
12051 | (tree_type): Delete packed_flag and user_align fields. Widen | |
12052 | precision field. Widen mode field and shuffle fields to align | |
12053 | mode on an 8-bit boundary. | |
12054 | (tree_decl_common): Delete decl_flag_1 and user_align fields. | |
12055 | Renumber decl_flag_* fields. Fix comments. Widen | |
12056 | decl_common_unused field. | |
c637b0fa | 12057 | (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields. |
d8259b07 NF |
12058 | (DECL_EXTERNAL): Likewise. |
12059 | (DECL_BIT_FIELD): Likewise. | |
12060 | (DECL_NONADDRESSABLE_P): Likewise. | |
12061 | (TYPE_DECL_SUPRESS_DEBUG): Likewise. | |
12062 | * config/arm/arm-modes.def (XImode): Make it an INT_MODE. | |
12063 | ||
c2569604 ILT |
12064 | 2009-06-10 Ian Lance Taylor <iant@google.com> |
12065 | ||
12066 | * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I. | |
12067 | (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P. | |
12068 | (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O. | |
12069 | (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc). | |
12070 | (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old | |
12071 | DEF_VEC_ALLOC_FUNC_P. | |
12072 | (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc). | |
12073 | (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old | |
12074 | DEF_VEC_ALLOC_FUNC_O. | |
12075 | (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc). | |
12076 | (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old | |
12077 | DEF_VEC_ALLOC_FUNC_I. | |
12078 | (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare. | |
12079 | (vec_stack_p_reserve_exact_1): Declare. | |
12080 | (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare. | |
12081 | (vec_stack_free): Declare. | |
12082 | (VEC_stack_alloc): Define. | |
12083 | (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define. | |
12084 | (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define. | |
12085 | (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define. | |
12086 | * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P | |
12087 | for void_p. | |
12088 | (stack_vecs): New static variable. | |
12089 | (vec_stack_p_reserve_exact_1): New function. | |
12090 | (vec_stack_o_reserve_1): New static function. | |
12091 | (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions. | |
12092 | (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions. | |
12093 | (vec_stack_free): New function. | |
12094 | * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK. | |
12095 | (VEC_df_ref_stack_alloc): Define. | |
12096 | (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and | |
12097 | DEF_VEC_ALLOC_P_STACK. | |
12098 | (VEC_df_mw_hardreg_ptr_stack_alloc): Define. | |
12099 | (struct df_collection_rec): Change _vec fields to VEC. Remove | |
12100 | _use fields. | |
12101 | (df_free_collection_rec): Adjust for new fields. | |
12102 | (df_insn_rescan): Use new df_collection_rec fields. | |
12103 | (df_notes_rescan, df_canonize_collection_rec): Likewise. | |
12104 | (df_ref_create_structure, df_ref_record): Likewise. | |
12105 | (df_get_conditional_uses, df_get_call_refs): Likewise. | |
12106 | (df_insn_refs_collect, df_bb_refs_collect): Likewise. | |
12107 | (df_bb_refs_record, df_record_entry_block_defs): Likewise. | |
12108 | (df_record_exit_block_uses, df_bb_verify): Likewise. | |
c637b0fa | 12109 | (df_swap_refs): Change ref_vec parameter to VEC. Change all callers. |
c2569604 ILT |
12110 | (df_sort_and_compress_refs): Change ref_vec parameter to VEC. |
12111 | Remove count parameter. Change return type to void. Change all | |
12112 | callers. | |
12113 | (df_sort_and_compress_mws): Change mw_vec parameter to VEC. | |
12114 | Remove count parameter. Change return type to void. Change all | |
12115 | callers. | |
12116 | (df_install_refs): Change old_vec parameter to VEC. Remove count | |
12117 | parameter. Change all callers. | |
12118 | (df_install_mws): Change old_vec parameter to VEC. Remove count | |
12119 | parameter. Change all callers. | |
12120 | (df_refs_verify): Change new_rec parameter to VEC. Change call | |
12121 | callers. | |
12122 | (df_mws_verify): Likewise. | |
12123 | ||
e7aae3e8 AO |
12124 | 2009-06-10 Alexandre Oliva <aoliva@redhat.com> |
12125 | ||
12126 | * gcc.c (compare_files): Cast munmap argumento to caddr_t. | |
12127 | ||
412ac8d5 L |
12128 | 2009-06-10 H.J. Lu <hongjiu.lu@intel.com> |
12129 | ||
12130 | * doc/extend.texi: Add description for __builtin_ia32_crc32di. | |
12131 | ||
cceb575c AG |
12132 | 2009-06-10 Anthony Green <green@moxielogic.com> |
12133 | ||
12134 | * config/moxie/crti.asm: New file. | |
12135 | * config/moxie/crtn.asm: New file. | |
12136 | * config/moxie/moxie.c: New file. | |
12137 | * config/moxie/moxie.h: New file. | |
12138 | * config/moxie/sfp-machine.h: New file. | |
12139 | * config/moxie/moxie-protos.h: New file. | |
12140 | * config/moxie/t-moxie: Created. | |
12141 | * config/moxie/t-moxie-softfp: Created. | |
12142 | * config/moxie/moxie.md: Created. | |
12143 | * config/moxie/constraints.md: Created. | |
12144 | * config.gcc: Add moxie support. | |
12145 | * doc/md.texi (Machine Constraints): Add moxie constraints. | |
12146 | * doc/contrib.texi (Contributors): Mention moxie port. | |
12147 | * doc/install.texi (Specific): Mention the moxie port. | |
12148 | ||
bf406687 ILT |
12149 | 2009-06-09 Ian Lance Taylor <iant@google.com> |
12150 | ||
12151 | * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if | |
12152 | compiling with C++. | |
12153 | * optabs.c (optab_table): Only use designated initializers if | |
12154 | HAVE_DESIGNATED_INITIALIZERS is defined. | |
12155 | (convert_optab_table): Likewise. | |
12156 | (init_optabs): Always call init_insn_codes if | |
12157 | HAVE_DESIGNATED_INITIALIZERS is not defined. | |
12158 | ||
744aa42f ILT |
12159 | 2009-06-09 Ian Lance Taylor <iant@google.com> |
12160 | ||
12161 | * targhooks.c (default_builtin_vectorized_function): Change fn | |
12162 | parameter to unsigned int. | |
12163 | (default_builtin_vectorized_conversion): Change code parameter to | |
12164 | unsigned int. | |
12165 | (default_builtin_reciprocal): Change fn parameter to unsigned int. | |
12166 | * targhooks.h: Update declarations. | |
12167 | * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code | |
12168 | parameter to unsigned int. | |
12169 | ||
12170 | * c-typeck.c (comptypes_check_enum_int): New static function. | |
12171 | (comptypes_internal): Add enum_and_int_p parameter. Change all | |
12172 | callers. | |
12173 | (comp_target_types): Add location parameter. Change all callers. | |
12174 | (tagged_types_tu_compatible_p): Add enum_and_int_p parameter. | |
12175 | Change all callers. | |
12176 | (function_types_compatible_p, type_lists_compatible_p): Likewise. | |
12177 | (build_conditional_expr): Add colon_loc parameter. Change all | |
12178 | callers. | |
c637b0fa | 12179 | (convert_for_assignment): Add location parameter. Change all callers. |
744aa42f ILT |
12180 | * c-parser.c (c_parser_conditional_expression): Pass location of |
12181 | colon to build_conditional_expr. | |
12182 | * c-tree.h (build_conditional_expr): Update declaration. | |
12183 | ||
bcbe3b25 SP |
12184 | 2009-06-09 Sebastian Pop <sebastian.pop@amd.com> |
12185 | ||
12186 | * graphite.c: Revert previous patch. | |
12187 | ||
dc2a6925 SP |
12188 | 2009-06-09 Sebastian Pop <sebastian.pop@amd.com> |
12189 | ||
12190 | PR bootstrap/40103 | |
12191 | * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat". | |
12192 | ||
d81f5387 GS |
12193 | 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com> |
12194 | ||
8ed0ce99 L |
12195 | * tree-ssa-loop-prefetch.c |
12196 | (loop_prefetch_arrays): Fixed a portability problem in printf format | |
12197 | string. | |
d81f5387 | 12198 | |
8056eb4f MJ |
12199 | 2009-06-09 Martin Jambor <mjambor@suse.cz> |
12200 | ||
12201 | PR tree-optimization/40351 | |
c637b0fa UB |
12202 | * tree-sra.c (propagate_subacesses_accross_link): Check that a |
12203 | refrence to a potential artifical subaccess can be constructed. | |
8056eb4f | 12204 | |
bd9a3465 KK |
12205 | 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org> |
12206 | ||
12207 | * config/sh/sh-protos.h (sh_optimization_options): Declare. | |
12208 | (sh_override_options): Likewise. | |
12209 | * config/sh/sh.c: Include params.h. | |
12210 | (sh_optimization_options): New. | |
12211 | (sh_override_options): Likewise. | |
12212 | * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options. | |
12213 | (OVERRIDE_OPTIONS): Use sh_override_options. | |
12214 | ||
8845deab JJ |
12215 | 2009-06-08 Jakub Jelinek <jakub@redhat.com> |
12216 | ||
12217 | * dwarf2out.c (emit_cfa_remember): New variable. | |
12218 | (add_fde_cfi): If emit_cfa_remember, recurse to add | |
12219 | DW_CFA_remember_state first. | |
12220 | (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state, | |
12221 | instead just set emit_cfa_remember. | |
12222 | ||
9ea81b0c JH |
12223 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
12224 | ||
12225 | PR debug/40126 | |
12226 | * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table. | |
12227 | ||
21ecdec5 JH |
12228 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
12229 | ||
12230 | PR middle-end/39834 | |
c637b0fa UB |
12231 | * cgraphunit.c (save_inline_function_body): Do not copy transform |
12232 | hooks for saved inline bodies. | |
21ecdec5 JH |
12233 | * ipa-passes.c (do_per_function): Do not add the hoks multiple times |
12234 | for given function. | |
12235 | ||
72e48218 AN |
12236 | 2009-06-08 Adam Nemet <anemet@caviumnetworks.com> |
12237 | ||
12238 | * jump.c (returnjump_p): Handle delayed branches. Add missing | |
12239 | function comment. | |
12240 | ||
6ce2002b JH |
12241 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
12242 | ||
12243 | PR middle-end/40102 | |
12244 | * cgraph.c (cgraph_create_edge_including_clones): Also asume that the | |
12245 | original node might've been modified. | |
12246 | * tree-inline.c (copy_bb): Do not assume that all clones are the same. | |
12247 | ||
eb9ed98a JJ |
12248 | 2009-06-08 Jakub Jelinek <jakub@redhat.com> |
12249 | ||
12250 | * tree-object-size.c (addr_object_size): Add OSI argument. | |
12251 | Handle also INDIRECT_REF with SSA_NAME inside of it as base address. | |
12252 | (compute_builtin_object_size, expr_object_size): Adjust callers. | |
12253 | (plus_stmt_object_size): Call addr_object_size instead of | |
12254 | compute_builtin_object_size. | |
12255 | ||
db34470d | 12256 | 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com> |
8ed0ce99 | 12257 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> |
f100a4a8 UB |
12258 | |
12259 | * tree-ssa-loop-prefetch.c | |
12260 | (gather_memory_references): Introduced a counter for the number of | |
db34470d | 12261 | memory references. |
f100a4a8 | 12262 | (anything_to_prefetch_p): Introduced a counter for the number of |
db34470d | 12263 | prefetches. |
f100a4a8 | 12264 | (is_loop_prefetching_profitable): New function with a cost model |
db34470d | 12265 | for prefetching. |
f100a4a8 | 12266 | (loop_prefetch_arrays): Use the new cost model to determine if |
db34470d | 12267 | prefetching is profitable. |
f100a4a8 | 12268 | * params.def (MIN_INSN_TO_PREFETCH_RATIO, |
db34470d | 12269 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 12270 | * params.h (MIN_INSN_TO_PREFETCH_RATIO, |
db34470d | 12271 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 12272 | * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO, |
db34470d | 12273 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 12274 | |
eb7adebc MM |
12275 | 2009-06-08 Michael Matz <matz@suse.de> |
12276 | ||
12277 | PR debug/40012 | |
eb7adebc MM |
12278 | * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all |
12279 | partitions use the same. | |
12280 | (expand_one_var): Deal with DECL_RTL sometimes begin set also | |
12281 | for basevars of SSA_NAMEs. | |
12282 | (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs, | |
12283 | to not expand them twice. | |
12284 | (gimple_expand_cfg): Clear DECL_RTL for those decls that have | |
12285 | multiple places. | |
12286 | ||
2153915d AO |
12287 | 2009-06-08 Alexandre Oliva <aoliva@redhat.com> |
12288 | ||
12289 | * common.opt (fcompare-debug=, fcompare-debug-second): New. | |
12290 | (fdump-final-insns=, gtoggle): New. | |
12291 | * doc/invoke.texi: Document them. | |
12292 | * final.c (rest_of_clean_state): Dump final insn stream. | |
12293 | * gcc.c (invoke_as): Hook in -fcompare-debug. | |
12294 | (static_spec_functions): Add compare-debug-dump-opt, | |
12295 | compare-debug-self-opt and compare-debug-auxbase-opt. | |
12296 | (compare_debug, compare_debug_second, compare_debug_opt): New. | |
12297 | (switches_debug_check, n_switches_debug_check): New. | |
12298 | (debug_auxbase_opt, debug_check_temp_file): New. | |
12299 | (process_command): Handle -fno-compare-debug, -fcompare-debug and | |
12300 | -fcompare-debug=*. | |
12301 | (do_self_spec): Handle arguments after switches. | |
12302 | (do_spec_1): Add .gk extension to temp file basenames for compare. | |
12303 | (check_live_switch): Take SWITCH_IGNORE into account, and earlier. | |
12304 | (cc1_options): Use it instead of normal auxbase computation for | |
12305 | the second compare-debug compilation. | |
12306 | (compare_files): New. | |
12307 | (main): Set up and implement compare debug mode. | |
12308 | (compare_debug_dump_opt_spec_function): New. | |
12309 | (compare_debug_self_opt_spec_function): New. | |
12310 | (compare_debug_auxbase_opt_spec_function): New. | |
12311 | * toplev.c (process_options): Handle flag_gtoggle, | |
12312 | flag_dump_final_insns. | |
12313 | * coverage.c (coverage_begin_output): Don't overwrite .gcno file | |
12314 | during -fcompare-debug-second compilation. | |
12315 | ||
cdb88468 ILT |
12316 | 2009-06-07 Ian Lance Taylor <iant@google.com> |
12317 | ||
c637b0fa | 12318 | * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr. |
cdb88468 ILT |
12319 | * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define. |
12320 | ||
12321 | * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch | |
12322 | with no default node. Change warning with %H to warning_at. | |
12323 | Don't clear warn_switch around case checking. | |
12324 | * doc/invoke.texi (Warning Options): Clarify distinction between | |
12325 | -Wswitch and -Wswitch-enum. | |
12326 | ||
4fe8e1a2 BRF |
12327 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12328 | ||
12329 | * tree-pass.h (TODO_update_ssa_any): Document internal use only. | |
12330 | ||
69952c1d BRF |
12331 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12332 | ||
12333 | * gbl-ctors.h: Add header guard. | |
12334 | ||
b2ad0284 BRF |
12335 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12336 | ||
12337 | * tree-flow.h (make_value_handle, set_value_handle, sort_vuses, | |
12338 | sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt, | |
12339 | vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses, | |
12340 | vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove | |
12341 | prototypes for removed functions. | |
12342 | (expressions_equal_p): Move to ... | |
12343 | * tree-ssa-sccvn.h: ... here and ... | |
12344 | * matrix-reorg.c: ... adjust includes. | |
12345 | ||
c3df55f9 BRF |
12346 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12347 | ||
12348 | * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output. | |
12349 | ||
b5a7159f BRF |
12350 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12351 | ||
12352 | * c-decl.c (finish_decl): Use bool for variable was_incomplete. | |
12353 | (finish_function): Remove erroneous whitespace. | |
12354 | ||
95bca6b0 BRF |
12355 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12356 | ||
2cd713a0 BRF |
12357 | * tree-cfg.c (gimple_merge_blocks): Commentary typo fix. |
12358 | (verify_stmts): Print statement who's gimple_bb is set to a wrong BB | |
249eb506 BRF |
12359 | |
12360 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | |
12361 | ||
12362 | * errors.c (internal_error): Commentary typo fix. | |
12363 | * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto. | |
12364 | * tree-ssa-pre.c: Ditto. | |
95bca6b0 | 12365 | |
2cd713a0 BRF |
12366 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
12367 | ||
12368 | * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of | |
12369 | them is supposed to hold actual statements. | |
12370 | ||
5bca4e80 ILT |
12371 | 2009-06-06 Ian Lance Taylor <iant@google.com> |
12372 | ||
12373 | * doc/extend.texi (Attribute Syntax): Document that C++ labels on | |
12374 | empty statements can now have attributes. | |
12375 | ||
47ac44d6 SZ |
12376 | 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com> |
12377 | ||
12378 | * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable. | |
12379 | * config/mips/mips.md: Ditto. | |
12380 | ||
19b905ce NF |
12381 | 2009-06-05 Nathan Froyd <froydnj@codesourcery.com> |
12382 | ||
12383 | * config/rs6000/eabi.asm (__eabi_convert): Don't define if | |
12384 | _RELOCATABLE. | |
12385 | (__eabi_uconvert): Likewise. | |
12386 | ||
16702e19 NF |
12387 | 2009-06-05 Nathan Froyd <froydnj@codesourcery.com> |
12388 | ||
12389 | * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and | |
12390 | CFI_* definitions with IN_GCC. | |
12391 | ||
a735afd1 DE |
12392 | 2009-06-05 David Edelsohn <edelsohn@gnu.org> |
12393 | ||
12394 | * xcoffout.h (xcoffout_source_line): Update prototype. | |
12395 | ||
26a347c5 KG |
12396 | 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
12397 | ||
12398 | * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use | |
12399 | mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM. | |
12400 | ||
9f706f23 JJ |
12401 | 2009-06-05 Jakub Jelinek <jakub@redhat.com> |
12402 | ||
12403 | PR middle-end/40340 | |
12404 | * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune | |
12405 | inlined_function_outer_scope_p blocks for artificial inlines | |
12406 | even at -g0/-g1. | |
12407 | * tree.c (tree_nonartificial_location): Rewrite using | |
12408 | block_nonartificial_location. | |
12409 | ||
8f439681 RE |
12410 | 2009-06-05 Revital Eres <eres@il.ibm.com> |
12411 | Leehod Baruch <leehod@il.ibm.com> | |
12412 | ||
12413 | * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF. | |
12414 | (expand_expr_real_1): Remove comment. | |
12415 | * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): | |
12416 | Vectorize misaligned access when the target supports it. | |
c637b0fa | 12417 | (vect_supportable_dr_alignment): Check for unaligned access support. |
8f439681 RE |
12418 | * tree-vect-stmts.c (vectorizable_store): Generate misaligned store |
12419 | and remove asset. | |
12420 | ||
b89f8e3c JB |
12421 | 2009-06-05 Julian Brown <julian@codesourcery.com> |
12422 | ||
12423 | * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP. | |
12424 | * config/arm/ieee754-sf.S (cmpsf2): Likewise. | |
12425 | ||
47d1f191 RG |
12426 | 2009-06-05 Richard Guenther <rguenther@suse.de> |
12427 | ||
12428 | PR bootstrap/40350 | |
12429 | * dwarf2out.c (dwarf2out_begin_function): Mark discriminator | |
12430 | as possibly unused. | |
12431 | ||
9f706f23 | 12432 | 2009-06-05 Jakub Jelinek <jakub@redhat.com> |
75707b28 JJ |
12433 | |
12434 | * config/s390/s390.c (global_not_special_regno_p): New static inline. | |
12435 | (save_gprs): Don't tell unwinder when a global register is saved. | |
12436 | (s390_emit_epilogue): Emit needed epilogue unwind info. | |
12437 | ||
90f06248 AO |
12438 | 2009-06-05 Alexandre Oliva <aoliva@redhat.com> |
12439 | ||
12440 | * dwarf2out.c (deferred_asm_name): New. | |
12441 | (add_name_and_src_coords_attributes): Defer creation of | |
12442 | DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not | |
12443 | computed yet. | |
12444 | (move_linkage_attr): New. | |
12445 | (dwarf2out_finish): Revisit deferrals and emit attributes at the | |
12446 | right place. | |
12447 | ||
c10348e5 AO |
12448 | 2009-06-05 Alexandre Oliva <aoliva@redhat.com> |
12449 | ||
12450 | * tree-nested.c (finalize_nesting_tree_1): Declare the | |
12451 | frame_decl in the binding tree. | |
12452 | ||
6c52e687 CC |
12453 | 2009-06-04 Cary Coutant <ccoutant@google.com> |
12454 | ||
12455 | * basic-block.h (struct basic_block_def): Add discriminator field. | |
12456 | * dbxout.c (dbxout_source_line): Add new parameter. Change all | |
12457 | callers. | |
12458 | * debug.c (do_nothing_debug_hooks): Add additional entry. | |
12459 | (debug_nothing_int_charstar_int): New function. | |
c637b0fa | 12460 | * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook. |
6c52e687 CC |
12461 | (debug_nothing_int_charstar_int): New declaration. |
12462 | * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write | |
12463 | discriminator value in .loc directive. | |
12464 | * final.c (last_discriminator): New variable. | |
12465 | (discriminator): New variable. | |
12466 | (final_start_function): Initialize above variables, pass current | |
12467 | discriminator to debug hook. | |
12468 | (notice_source_line): Check for discriminator change. | |
12469 | * gimple-pretty-print.c (dump_bb_header): Print discriminator value. | |
12470 | * sdbout.c (sdbout_source_line): New parameter. | |
12471 | * tree-cfg.c (struct locus_discrim_map): New structure type. | |
12472 | (discriminator_per_locus): New hash table. | |
12473 | (build_gimple_cfg): Allocate and free discriminator hash table. | |
12474 | (make_edges): Call assign_discriminator. | |
12475 | (locus_map_hash): New function. | |
12476 | (locus_map_eq): New function. | |
12477 | (next_discriminator_for_locus): New function. | |
12478 | (same_line_p): New function. | |
12479 | (assign_discriminator): New function. | |
12480 | (make_cond_expr_edges): Call assign_discriminator. | |
12481 | (make_gimple_switch_edges): Likewise. | |
12482 | (first_non_label_stmt): New function. | |
12483 | * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change | |
12484 | all callers. | |
12485 | * xcoffout.c (xcoffout_source_line): Add new parameter. | |
12486 | ||
12487 | * configure.ac (gcc_cv_as_discriminator): New configury check for | |
12488 | gas support for discriminator. | |
12489 | * configure: Regenerate. | |
12490 | * config.in: Regenerate. | |
12491 | ||
e07e020b RR |
12492 | 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
12493 | ||
12494 | * config/arm/arm.c (thumb2_legitimate_index_p): Initialize | |
12495 | val after checking for integers. | |
12496 | ||
72fa3605 UB |
12497 | 2009-06-04 Uros Bizjak <ubizjak@gmail.com> |
12498 | ||
12499 | * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from | |
12500 | X64_REGPARM_MAX. | |
12501 | (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX. | |
12502 | (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX. | |
12503 | (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX. | |
12504 | * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of | |
12505 | X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of | |
12506 | X64_SSE_REGPARM_MAX. | |
12507 | * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of | |
12508 | X64_SSE_REGPARM_MAX. | |
12509 | ||
bdde878c AO |
12510 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12511 | ||
12512 | * gcc.c (report_times_to_file): New. | |
12513 | (execute): Implement it. | |
12514 | (process_command): Support -time=. | |
12515 | * doc/invoke.texi: Document it. | |
12516 | ||
2ce59df7 AO |
12517 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12518 | ||
12519 | * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables | |
12520 | that have value exprs. | |
12521 | ||
78bd9046 AO |
12522 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12523 | ||
12524 | * dwarf2asm.c (dw2_force_const_mem): Defer creation of | |
12525 | declarations for constants until... | |
12526 | (dw2_output_indirect_constant_1): ... this point. | |
12527 | ||
e63d4106 RE |
12528 | 2009-06-04 Richard Earnshaw <rearnsha@arm.com> |
12529 | ||
12530 | PR target/10242 | |
12531 | * arm.md (arm_addsi3): Don't try to split an add with an | |
12532 | eliminable register until after reload has completed. | |
12533 | ||
6bc7bc14 ILT |
12534 | 2009-06-03 Ian Lance Taylor <iant@google.com> |
12535 | ||
12536 | * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST. | |
12537 | * genattrtab.c (write_length_unit_log): Likewise. | |
12538 | * genchecksum.c (dosum): Likewise. | |
12539 | * gengtype.c (write_rtx_next): Likewise. | |
12540 | (finish_root_table, write_roots): Likewise. | |
12541 | * gimple.c (gimple_ops_offset_): Likewise. | |
12542 | * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise. | |
12543 | * config/arc/arc.c (arc_attribute_table): Likewise. | |
12544 | * config/arm/arm.c (arm_attribute_table): Likewise. | |
12545 | * config/avr/avr.c (avr_attribute_table): Likewise. | |
12546 | * config/crx/crx.c (crx_attribute_table): Likewise. | |
12547 | * config/m32r/m32r.c (m32r_attribute_table): Likewise. | |
12548 | * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise. | |
12549 | * config/mcore/mcore.c (mcore_attribute_table): Likewise. | |
12550 | * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise. | |
12551 | * config/sh/sh.c (sh_attribute_table): Likewise. | |
12552 | * config/sparc/sparc.c (sparc_attribute_table): Likewise. | |
12553 | * config/spu/spu.c (spu_attribute_table): Likewise. | |
12554 | * config/v850/v850.c (v850_attribute_table): Likewise. | |
12555 | ||
12556 | * config/alpha/alpha.c (vms_attribute_table): Make static. | |
12557 | * config/bfin/bfin.c (bfin_attribute_table): Likewise. | |
12558 | * config/h8300/h8300.c (h8300_attribute_table): Likewise. | |
12559 | * config/mips/mips.c (mips_attribute_table): Likewise. | |
12560 | ||
12561 | * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and | |
12562 | $(SYSTEM_H). | |
12563 | (cc1-checksum.o): Likewise. | |
12564 | ||
19d892fd SE |
12565 | 2009-06-03 Steve Ellcey <sje@cup.hp.com> |
12566 | ||
12567 | * config/ia64/vect.md (*movv2sf_internal): Handle big endian case. | |
12568 | ||
679f3354 JJ |
12569 | 2009-06-03 Jakub Jelinek <jakub@redhat.com> |
12570 | ||
ff35822b JJ |
12571 | * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated |
12572 | insn if it is changing sp. Use gen_add3_insn instead of | |
12573 | conditionally gen_addsi3 and gen_adddi3. | |
12574 | (offset_below_red_zone_p): New static inline function. | |
12575 | (rs6000_emit_epilogue): Emit needed epilogue unwind info. | |
12576 | Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3. | |
12577 | * config/rs6000/ppc-asm.h: Include auto-host.h. | |
12578 | (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET, | |
12579 | CFI_RESTORE): Define. | |
12580 | * config/rs6000/crtresxgpr.asm: Add unwind info. | |
12581 | * config/rs6000/crtresxfpr.asm: Likewise. | |
12582 | * config/rs6000/crtresgpr.asm: Likewise. | |
12583 | * config/rs6000/crtresfpr.asm: Likewise. | |
12584 | * config/rs6000/crtsavgpr.asm: Likewise. | |
12585 | * config/rs6000/crtsavfpr.asm: Likewise. | |
12586 | ||
dc6707b8 UB |
12587 | * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second |
12588 | argument of DWARF2_FRAME_REG_OUT macros. | |
679f3354 | 12589 | |
2e94c12d JB |
12590 | 2009-06-03 Julian Brown <julian@codesourcery.com> |
12591 | ||
12592 | * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four | |
12593 | words or less (including TImode) in core registers. | |
12594 | ||
3111cce0 RG |
12595 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12596 | ||
12597 | PR middle-end/40328 | |
12598 | * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR. | |
12599 | ||
5e1b50f6 AB |
12600 | 2009-06-03 Andrey Belevantsev <abel@ispras.ru> |
12601 | ||
f100a4a8 | 12602 | * statistics.c (statistics_counter_event): Do not record event |
5e1b50f6 | 12603 | in pass dump if its number == -1. |
f100a4a8 | 12604 | (curr_statistics_hash): Add assert that we never get passes |
5e1b50f6 AB |
12605 | with static number == -1. |
12606 | ||
6f11d690 RG |
12607 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12608 | Andrey Belevantsev <abel@ispras.ru> | |
12609 | ||
f100a4a8 | 12610 | * cfgexpand.c (discover_nonconstant_array_refs_r): Make only |
6f11d690 RG |
12611 | non-BLKmode arrays addressable. |
12612 | ||
88961471 MK |
12613 | 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
12614 | ||
12615 | * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ... | |
12616 | * config/m68k/m68k.h: ... here. | |
88961471 | 12617 | |
9961eb45 MJ |
12618 | 2009-06-03 Martin Jambor <mjambor@suse.cz> |
12619 | ||
12620 | PR tree-optimization/40323 | |
12621 | * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single | |
12622 | assignment. | |
12623 | ||
2f2c62a0 RG |
12624 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12625 | ||
12626 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE | |
12627 | consistently. | |
12628 | ||
d6ced3b7 SZ |
12629 | 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com> |
12630 | ||
12631 | * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, | |
12632 | JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and | |
12633 | JUMP_TABLE_DATA_P where applicable. | |
12634 | * config/sh/sh.c: Ditto. | |
12635 | * config/sh/sh.h: Ditto. | |
12636 | * config/sh/sh.md: Ditto. | |
12637 | * config/sh/symbian.c: Ditto. | |
12638 | ||
f3afc8a7 UB |
12639 | 2009-06-03 Uros Bizjak <ubizjak@gmail.com> |
12640 | ||
12641 | * config/i386/driver-i386.c (describe_cache): Optimize | |
12642 | concatenation of strings. Use snprintf instead of sprintf. | |
12643 | (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native | |
12644 | target when not compiling with GCC. | |
12645 | ||
1964788a KK |
12646 | 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org> |
12647 | ||
12648 | * config/sh/sh.c: Revert last change. | |
12649 | (sh_expand_epilogue): Emit a blockage insn before the frame | |
12650 | pointer adjustment unconditionally. | |
12651 | ||
8633c315 RS |
12652 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12653 | ||
12654 | * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program". | |
12655 | * config/pa/pa-hpux10.h (LINK_SPEC): Likewise. | |
12656 | * config/pa/pa-hpux11.h (LINK_SPEC): Likewise. | |
12657 | * gcc.c (set_collect_gcc_options): Don't add -fwhole-program | |
12658 | to COLLECT_GCC_OPTIONS. | |
12659 | ||
781a1758 RS |
12660 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12661 | ||
12662 | * collect2.c (target_system_root): New variable. | |
12663 | (main): Handle --sysroot=. | |
12664 | (ignore_library): Strip the sysroot from the library path. | |
12665 | ||
dfb636dc RS |
12666 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12667 | ||
12668 | * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o. | |
12669 | (collect2.o): Depend on collect2-aix.h. | |
12670 | (collect2-aix.o): New rule. | |
12671 | * collect2-aix.h: New file. | |
12672 | * collect2-aix.c: Likewise. | |
12673 | * collect2.c: Include collect2-aix.h. Don't undefine | |
12674 | OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined. | |
12675 | Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE. | |
12676 | Use TARGET_AIX_VERSION instead of _AIX51. | |
12677 | * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define. | |
12678 | * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise. | |
12679 | * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise. | |
12680 | * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise. | |
12681 | * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise. | |
12682 | ||
51136ae8 RS |
12683 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12684 | ||
12685 | * collect2.c (ignore_library): Avoid premature post-increment | |
12686 | and null deference. | |
12687 | ||
7f142d33 RS |
12688 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12689 | ||
12690 | * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT. | |
12691 | * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the | |
12692 | !CROSS_DIRECTORY_STRUCTURE alternative and use it for | |
12693 | CROSS_DIRECTORY_STRUCTURE too. | |
12694 | (LINK_LIBG_SPEC): Likewise. | |
12695 | (LIB_SPEC): Add %R to sysroot paths. | |
12696 | * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths. | |
12697 | (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise. | |
12698 | * config/rs6000/aix51.h: As for aix43.h. | |
12699 | * config/rs6000/aix52.h: Likewise. | |
12700 | * config/rs6000/aix53.h: Likewise. | |
12701 | * config/rs6000/aix61.h: Likewise. | |
12702 | * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT) | |
12703 | to the beginning of sysroot paths. | |
12704 | ||
9e74b7d2 AO |
12705 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12706 | ||
12707 | * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and | |
12708 | INSN_LISTs that are out of the REG_NOTE range. | |
12709 | ||
a9f6ecee AO |
12710 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12711 | ||
12712 | * loop-unroll.c (struct iv_to_split): Add pointer to next. | |
12713 | (struct var_to_expand): Likewise. | |
12714 | (struct opt_info): Add head and tail for linked lists of the above. | |
12715 | (analyze_insn_to_expand_var): Initialize next. | |
12716 | (analyze_iv_to_split_insn): Likewise. | |
12717 | (analyze_insns_in_loop): Create linked lists. | |
12718 | (allocate_basic_variable): Simplify for use without hash table. | |
12719 | (insert_var_expansion_initialization): Likewise, make it type-safer. | |
12720 | (combine_var_copies_in_loop_exit): Likewise. | |
12721 | (apply_opt_in_copies): Walk lists rather than hash tables. | |
12722 | (release_var_copies): Simplified and inlined by hand into... | |
12723 | (free_opt_info): ... this function. | |
12724 | ||
69596c69 RG |
12725 | 2009-06-02 Richard Guenther <rguenther@suse.de> |
12726 | ||
12727 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE | |
12728 | for field decls. | |
12729 | ||
fe8a7779 AO |
12730 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12731 | ||
12732 | * cfgexpand.c (gimple_expand_cfg): Discard the source location | |
12733 | only for builtins that are not overridden. | |
12734 | ||
1bcca2c5 AO |
12735 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12736 | ||
12737 | * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's | |
12738 | label string. | |
12739 | ||
8588f797 AO |
12740 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12741 | ||
12742 | * df-core.c (df_ref_debug): Honor -fdump-noaddr. | |
12743 | ||
45f39d78 AO |
12744 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12745 | ||
12746 | * combine.c (move_deaths): Compare LUIDs within the same BB only. | |
12747 | ||
2aa7c49b AO |
12748 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12749 | ||
12750 | * common.opt (fdump-unnumbered-links): New. | |
12751 | * doc/invoke.texi (-fdump-unnumbered-links): Document it. | |
12752 | * print-rtl.c (flag_dump_unnumbered_links): New. | |
12753 | (print_rtx): Test it. | |
12754 | ||
55b2829b RE |
12755 | 2009-06-02 Richard Earnshaw <rearnsha@arm.com> |
12756 | ||
12757 | * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a | |
12758 | push/pop multiple to 8-byte alignment. | |
e63d4106 | 12759 | |
6c0d7021 JJ |
12760 | 2009-06-01 Jakub Jelinek <jakub@redhat.com> |
12761 | ||
0aa34d44 JJ |
12762 | * config/i386/i386.c (queued_cfa_restores): New static variable. |
12763 | (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New | |
12764 | functions. | |
12765 | (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes. | |
12766 | (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument. | |
12767 | Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note. | |
12768 | Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET | |
12769 | note unconditionally. | |
12770 | (ix86_emit_restore_regs_using_mov): Likewise. | |
12771 | (ix86_emit_restore_sse_regs_using_mov): Likewise. | |
12772 | (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass | |
12773 | it through to ix86_emit_restore_reg_using_pop. | |
12774 | (ix86_emit_leave): Add RED_OFFSET argument. Call | |
12775 | ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note | |
12776 | instead of adding REG_CFA_OFFSET note unconditionally. | |
12777 | (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to | |
12778 | the above functions. Call ix86_add_queued_cfa_restore_notes when | |
12779 | needed. | |
12780 | ||
12781 | * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true, | |
12782 | force output of the label even for dwarf2out_do_cfi_asm. | |
12783 | (add_fde_cfi): If -g2 and above and cfi might change CFA, | |
12784 | force creation of CFI label and chain DW_CFA_set_loc jumping to it | |
12785 | for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label | |
12786 | caller. | |
12787 | (dwarf2out_stack_adjust, dwarf2out_frame_debug, | |
12788 | dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust | |
12789 | dwarf2out_cfi_label callers. | |
12790 | * tree.h (dwarf2out_cfi_label): Adjust prototype. | |
12791 | * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue): | |
12792 | Adjust dwarf2out_cfi_label callers. | |
12793 | * config/vax/vax.c (vax_output_function_prologue): Likewise. | |
12794 | ||
604a6be9 JJ |
12795 | * config/i386/i386.h (struct machine_cfa_state, |
12796 | struct machine_function): Guard with ifndef USED_FOR_TARGET | |
12797 | instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS. | |
12798 | ||
df0026a7 JJ |
12799 | PR other/40024 |
12800 | * emutls.c (__emutls_get_address): Change arr->size to mean number | |
12801 | of allocated arr->data entries instead of # of slots + 1. | |
12802 | ||
6c0d7021 JJ |
12803 | PR middle-end/40316 |
12804 | * recog.c (peep2_reinit_state): New function. | |
12805 | (peephole2_init_state): Use it at the end of a basic block and also | |
12806 | when seeing a RTX_FRAME_RELATED_P insn. | |
12807 | ||
49df2fb8 SE |
12808 | 2009-06-01 Steve Ellcey <sje@cup.hp.com> |
12809 | ||
12810 | * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf, | |
12811 | fixuns_truncrfdi2): New. | |
12812 | (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts, | |
12813 | *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts, | |
12814 | *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts, | |
12815 | *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf, | |
12816 | *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts, | |
12817 | *recip_approx): Remove. | |
12818 | (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3, | |
12819 | moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr, | |
12820 | divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and | |
12821 | move to div.md. | |
12822 | * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt, | |
12823 | setf_exp_rf): New. | |
12824 | ||
67165eb3 ILT |
12825 | 2009-06-01 Ian Lance Taylor <iant@google.com> |
12826 | ||
12827 | * attribs.c (register_attribute): Use CONST_CAST. | |
12828 | * collect2.c (main): Use CONST_CAST2. | |
12829 | (scan_prog_file): Likewise. | |
12830 | * gcc.c (process_command, main): Likewise. | |
12831 | * toplev.c (toplev_main): Likewise. | |
12832 | ||
12833 | * c-typeck.c (handle_warn_cast_qual): New static function, | |
12834 | partially broken out of build_c_cast. | |
12835 | (build_c_cast): Call handle_warn_cast_qual. | |
12836 | * doc/invoke.texi (Warning Options): Document new effect of | |
12837 | -Wcast-qual. | |
12838 | ||
e74fe492 AH |
12839 | 2009-06-01 Aldy Hernandez <aldyh@redhat.com> |
12840 | ||
12841 | * diagnostic.c (diagnostic_build_prefix): Always print columns. | |
12842 | (diagnostic_report_current_module): Print columns. | |
12843 | * common.opt (flag_show_column): Enable by default. | |
12844 | ||
7eba2d1f LM |
12845 | 2009-06-01 Luis Machado <luisgpm@br.ibm.com> |
12846 | ||
12847 | * alias.c (find_base_term): Check for NULL term before returning. | |
12848 | ||
ee88d9aa MK |
12849 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12850 | ||
12851 | Revert due to PR40320: | |
ee88d9aa MK |
12852 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12853 | * calls.c (emit_library_call_value_1): Don't force_operand for move | |
12854 | and push insns. | |
12855 | ||
324c9b02 | 12856 | 2009-06-01 Olivier Hainque <hainque@adacore.com> |
40d0d9e4 | 12857 | Eric Botcazou <ebotcazou@adacore.com> |
324c9b02 OH |
12858 | |
12859 | * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is | |
12860 | to be processed as a bitfield for constructor output purposes. | |
12861 | * output.h (initializer_constant_valid_for_bitfield_p): Declare | |
12862 | new function. | |
12863 | * varasm.c (oc_local_state): New type, output_constructor | |
12864 | local state to support communication with helpers. | |
12865 | (oc_outer_state): New type, output_constructor outer state of | |
12866 | relevance in recursive calls. | |
12867 | (output_constructor_array_range): New output_constructor helper, | |
12868 | extracted code for an array range element. | |
12869 | (output_constructor_regular_field): New output_constructor helper, | |
12870 | extracted code for an element that is not a bitfield. | |
12871 | (output_constructor_bitfield): New output_constructor helper, | |
12872 | extracted code for a bitfield element. Accept an OUTER state | |
12873 | argument for recursive processing. Recurse on record or array | |
12874 | CONSTRUCTOR values, possibly past noop conversions. | |
62295314 | 12875 | (initializer_constant_valid_for_bitfield_p): New predicate. Whether |
324c9b02 OH |
12876 | VALUE is a valid constant-valued expression for use in a static |
12877 | bit-field initializer. | |
62295314 OH |
12878 | (output_constructor): Rework to use helpers. Accept and honor an |
12879 | OUTER state argument for recursive calls. Return total size. Be | |
324c9b02 OH |
12880 | prepared for nested constructors initializing bitfields. |
12881 | (output_constant): Feed OUTER in calls to output_constructor. | |
12882 | ||
0980d7fe MK |
12883 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12884 | ||
12885 | * calls.c (emit_library_call_value_1): Don't force_operand for move | |
12886 | and push insns. | |
12887 | ||
29661412 NC |
12888 | 2009-06-01 Nick Clifton <nickc@redhat.com> |
12889 | ||
12890 | * doc/invoke.texi (IA-64 Options): Fix typo. | |
12891 | ||
e9dbe7bb IR |
12892 | 2009-06-01 Ira Rosen <irar@il.ibm.com> |
12893 | ||
12894 | PR tree-optimization/39129 | |
7c8b1a77 | 12895 | * tree-vect-loop-manip.c (conservative_cost_threshold): Change the |
e9dbe7bb | 12896 | printed message. |
7c8b1a77 | 12897 | (vect_do_peeling_for_loop_bound): Use |
e9dbe7bb IR |
12898 | LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and |
12899 | LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros. | |
12900 | (vect_loop_versioning): Likewise. | |
12901 | (vect_create_cond_for_alias_checks): Fix indentation. | |
7c8b1a77 | 12902 | * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the |
e9dbe7bb IR |
12903 | macros. |
12904 | (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define. | |
12905 | (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise. | |
7c8b1a77 | 12906 | * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to |
e9dbe7bb | 12907 | "control flow in loop". |
7c8b1a77 | 12908 | (vect_estimate_min_profitable_iters): Use |
e9dbe7bb IR |
12909 | LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and |
12910 | LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros. | |
12911 | * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise. | |
12912 | (vect_create_data_ref_ptr): Don't mention array dimension in printing. | |
7c8b1a77 UB |
12913 | * tree-vect-stmts.c (vectorizable_store): Replace the check that the |
12914 | statement belongs to a group of strided accesses with the exact code | |
e9dbe7bb IR |
12915 | check. |
12916 | (vectorizable_load): Likewise. | |
12917 | * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block". | |
12918 | (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise. | |
12919 | ||
5ac69a80 GP |
12920 | 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com> |
12921 | ||
12922 | * config/freebsd-stdint.h: New file. | |
12923 | * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap. | |
12924 | Add freebsd-stdint.h to tm_file. | |
12925 | ||
54b2b460 RE |
12926 | 2009-06-01 Richard Earnshaw <rearnsha@arm.com> |
12927 | ||
12928 | * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split. | |
12929 | (thumb2_extendhidi2): Likewise. | |
12930 | ||
a7ca77cf ILT |
12931 | 2009-05-31 Ian Lance Taylor <iant@google.com> |
12932 | ||
f3afc8a7 | 12933 | * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition. |
c50d84e3 ILT |
12934 | |
12935 | 2009-05-31 Ian Lance Taylor <iant@google.com> | |
12936 | ||
f3afc8a7 | 12937 | * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H). |
a7ca77cf ILT |
12938 | (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H). |
12939 | (ipa-reference.o): Depend upon gt-ipa-reference.h. | |
12940 | ||
1aec401e JM |
12941 | 2009-05-31 Jason Merrill <jason@redhat.com> |
12942 | ||
12943 | * tree-pretty-print.c (print_call_name): Take the callee, not the | |
f3afc8a7 | 12944 | call itself. Make non-static. Use dump_function_name for functions. |
1aec401e JM |
12945 | (dump_generic_node): Adjust. |
12946 | * diagnostic.h: Declare print_call_name. | |
12947 | * gimple-pretty-print.c (dump_gimple_call): Use it. | |
12948 | ||
ed7910bb KK |
12949 | 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org> |
12950 | ||
12951 | * config/sh/sh.md (ashldi3_std): New define_expand. | |
12952 | (ashldi3): Use it. | |
12953 | ||
47ea8d4e KK |
12954 | 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org> |
12955 | ||
12956 | PR target/40313 | |
12957 | * config/sh/sh.c: Include debug.h. | |
12958 | (sh_expand_epilogue): Emit a blockage insn before the frame | |
12959 | pointer adjustment also when dwarf2out_do_frame returns true. | |
12960 | ||
405e8b49 RE |
12961 | 2009-05-31 Richard Earnshaw <rearnsha@arm.com> |
12962 | ||
12963 | * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern. | |
12964 | (thumb2_extendqidi2): New pattern. | |
12965 | ||
71ece343 IR |
12966 | 2009-05-31 Ira Rosen <irar@il.ibm.com> |
12967 | ||
12968 | * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't | |
12969 | mark phis for renaming. | |
12970 | * tree-vectorizer.c (vect_memsyms_to_rename): Remove. | |
12971 | (vectorize_loops): Don't allocate and free vect_memsyms_to_rename. | |
12972 | Call mark_sym_for_renaming. | |
12973 | * tree-vectorizer.h (vect_memsyms_to_rename): Remove. | |
f3afc8a7 UB |
12974 | * tree-vect-loop.c (vect_transform_loop): Remove |
12975 | vect_memsyms_to_rename initialization and a call to | |
12976 | mark_set_for_renaming. | |
71ece343 | 12977 | |
b3041944 JJ |
12978 | 2009-05-31 Jakub Jelinek <jakub@redhat.com> |
12979 | ||
12980 | PR middle-end/40304 | |
12981 | * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns | |
12982 | frame related even if !set_cfa && style < 0. | |
12983 | ||
a1bda0d7 KT |
12984 | 2009-05-30 Kai Tietz <kai.tietz@onevision.com> |
12985 | ||
12986 | * config/i386/mingw-tls.c: New file. | |
f3afc8a7 UB |
12987 | * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file. |
12988 | * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets | |
12989 | defining _WIN32 but not __CYGWIN__. | |
a1bda0d7 | 12990 | |
acd26225 KG |
12991 | 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
12992 | ||
12993 | * configure.ac: Add MPC support. | |
f100a4a8 UB |
12994 | |
12995 | * config.in, configure: Regenerate. | |
acd26225 | 12996 | |
cd9c1ca8 RH |
12997 | 2009-05-29 Richard Henderson <rth@redhat.com> |
12998 | ||
12999 | * cfgcleanup.c (try_crossjump_to_edge): Only skip past | |
13000 | NOTE_INSN_BASIC_BLOCK. | |
13001 | * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks. | |
13002 | Duplicate NOTE_INSN_EPILOGUE_BEG notes. | |
13003 | * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG | |
13004 | to be deleted. | |
13005 | * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield, | |
13006 | add in_use field. | |
13007 | (add_cfi): Disable check redefining cfa away from drap. | |
13008 | (lookup_cfa_1): Add remember argument; handle remember/restore. | |
13009 | (lookup_cfa): Pass remember argument. | |
13010 | (cfa_remember): New. | |
13011 | (compute_barrier_args_size_1): Remove sibcall check. | |
13012 | (dwarf2out_frame_debug_def_cfa): New. | |
13013 | (dwarf2out_frame_debug_adjust_cfa): New. | |
13014 | (dwarf2out_frame_debug_cfa_offset): New. | |
13015 | (dwarf2out_frame_debug_cfa_register): New. | |
13016 | (dwarf2out_frame_debug_cfa_restore): New. | |
13017 | (dwarf2out_frame_debug): Handle REG_CFA_* notes. | |
13018 | (dwarf2out_begin_epilogue): New. | |
13019 | (dwarf2out_frame_debug_restore_state): New. | |
13020 | (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state, | |
13021 | DW_CFA_restore_state. | |
13022 | (output_cfi_directive): Likewise. | |
13023 | (convert_cfa_to_fb_loc_list): Likewise. | |
13024 | (dw_cfi_oprnd1_desc): Handle DW_CFA_restore. | |
13025 | * dwarf2out.h: Update. | |
13026 | * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P. | |
13027 | (copy_insn_1): Early out for null. | |
13028 | * final.c (final_scan_insn): Call dwarf2out_begin_epilogue | |
13029 | and dwarf2out_frame_debug_restore_state. | |
13030 | * function.c (prologue, epilogue, sibcall_epilogue): Remove. | |
13031 | (prologue_insn_hash, epilogue_insn_hash): New. | |
13032 | (free_after_compilation): Adjust freeing accordingly. | |
13033 | (record_insns): Create hash table if needed; push insns into | |
13034 | hash instead of array. | |
13035 | (maybe_copy_epilogue_insn): New. | |
13036 | (contains): Search hash table instead of array. | |
13037 | (sibcall_epilogue_contains): Remove. | |
13038 | (thread_prologue_and_epilogue_insns): Split eh_return insns | |
13039 | and mark them as epilogues. | |
13040 | (reposition_prologue_and_epilogue_notes): Rewrite epilogue | |
13041 | scanning in terms of basic blocks. | |
13042 | * insn-notes.def (CFA_RESTORE_STATE): New. | |
13043 | * jump.c (returnjump_p_1): Accept EH_RETURN. | |
13044 | (eh_returnjump_p_1, eh_returnjump_p): New. | |
13045 | * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET, | |
13046 | CFA_REGISTER, CFA_RESTORE): New. | |
13047 | * rtl.def (EH_RETURN): New. | |
13048 | * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare. | |
13049 | ||
13050 | * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove. | |
13051 | (eh_return_internal): Use eh_return rtx; split w/ epilogue. | |
13052 | ||
13053 | * config/i386/i386.c (gen_push): Update cfa state. | |
13054 | (pro_epilogue_adjust_stack): Add set_cfa argument. When true, | |
13055 | add a CFA_ADJUST_CFA note. | |
13056 | (ix86_dwarf_handle_frame_unspec): Remove. | |
13057 | (ix86_expand_prologue): Update cfa state. | |
13058 | (ix86_emit_restore_reg_using_pop): New. | |
13059 | (ix86_emit_restore_regs_using_pop): New. | |
13060 | (ix86_emit_leave): New. | |
13061 | (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes. | |
13062 | (ix86_expand_epilogue): Add notes for unwinding the epilogue. | |
13063 | * config/i386/i386.h (struct machine_cfa_state): New. | |
13064 | (ix86_cfa_state): New. | |
13065 | * config/i386/i386.md (UNSPEC_EH_RETURN): Remove. | |
13066 | (eh_return_internal): Merge from eh_return_<mode>, | |
13067 | use eh_return rtx, split w/ epilogue. | |
13068 | ||
72b5577d ILT |
13069 | 2009-05-29 Ian Lance Taylor <iant@google.com> |
13070 | ||
13071 | * builtins.c (validate_gimple_arglist): Don't use va_arg with | |
13072 | enum type. | |
13073 | * calls.c (emit_library_call_value_1): Likewise. | |
13074 | ||
13075 | * c-typeck.c (c_build_va_arg): New function. | |
13076 | * c-tree.h (c_build_va_arg): Declare. | |
13077 | * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg | |
13078 | instead of build_va_arg. | |
13079 | ||
7a2faca1 EB |
13080 | 2009-05-29 Eric Botcazou <ebotcazou@adacore.com> |
13081 | ||
13082 | * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case. | |
13083 | (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise. | |
13084 | (ptr_difference_cost): Use affine combinations to compute it. | |
13085 | (difference_cost): Likewise. | |
13086 | (get_computation_cost_at): Compute more accurate cost for addresses | |
13087 | if the ratio is a multiplier allowed in addresses. | |
13088 | For non-addresses, consider that an additional offset or symbol is | |
13089 | added only once. | |
13090 | ||
725fd454 JJ |
13091 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
13092 | ||
a0987204 JJ |
13093 | * config/i386/i386.c (ix86_decompose_address): Avoid useless |
13094 | 0 displacement. Add 0 displacement if base is %[er]bp or %r13. | |
13095 | ||
725fd454 JJ |
13096 | * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for |
13097 | TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default. | |
13098 | (prefix_rex): For UNIT_MMX don't imply the prefix by default | |
13099 | if MODE_DI. | |
13100 | (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and | |
13101 | to 1 for TYPE_SSE{IADD1,CVT1}. | |
13102 | (prefix_vex_imm8): Removed. | |
13103 | (length_vex): Only pass 1 as second argument to | |
13104 | ix86_attr_length_vex_default if prefix_extra is 0. | |
13105 | (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT. | |
13106 | (length): For prefix vex computation use length_immediate | |
13107 | attribute instead of prefix_vex_imm8. | |
13108 | (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64, | |
13109 | addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0, | |
13110 | *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1, | |
13111 | *xorqi_cc_ext_1_rex64): Override modrm attribute to 1. | |
13112 | (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2, | |
13113 | *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit | |
13114 | a space in between the operands. | |
13115 | (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1 | |
13116 | if one operand is 0xff and the other one si, di, bp or sp. | |
13117 | (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the | |
13118 | other one si, di, bp or sp. | |
13119 | (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute. | |
13120 | (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add | |
13121 | type and mode attributes. | |
13122 | (*bsr, *bsr_rex64, *bsrhi): Add type attribute. | |
13123 | (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear | |
13124 | prefix_rep attribute and set prefix_data16 attribute iff MODE_DF. | |
13125 | (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set | |
13126 | prefix_data16 attribute iff MODE_DF. | |
13127 | (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute. | |
13128 | (fix_trunc<mode>di_sse): Set prefix_rex attribute. | |
13129 | (*adddi_4_rex64, *addsi_4): Use const128_operand instead of | |
13130 | constm128_operand in length_immediate computation. | |
13131 | (*addhi_4): Likewise. Fix mode attribute to MODE_HI. | |
13132 | (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq. | |
13133 | (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set | |
13134 | length_immediate attribute to 1. | |
13135 | (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute. | |
13136 | (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes | |
13137 | for certain alternatives. | |
13138 | (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override | |
13139 | prefix_data16 attribute if MODE_V1DF. | |
13140 | (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set | |
13141 | length_immediate to 1. | |
13142 | (set_got_rex64, set_rip_rex64): Remove length attribute, set | |
13143 | length_address to 4, set mode attribute to MODE_DI. | |
13144 | (set_got_offset_rex64): Likewise. Set length_immediate to 0. | |
13145 | (fxam<mode>2_i387): Set length attribute to 4. | |
13146 | (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow, | |
13147 | *prefetch_3dnow_rex): Override length_address attribute. | |
13148 | (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex | |
13149 | attributes. | |
13150 | * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate. | |
13151 | (constm128_operand): Removed. | |
13152 | * config/i386/i386.c (memory_address_length): For | |
13153 | disp && !index && !base in 64-bit mode account for SIB byte if | |
13154 | print_operand_address can't optimize disp32 into disp32(%rip) | |
13155 | and UNSPEC doesn't imply (%rip) addressing. Add 1 to length | |
13156 | for fs: or gs: segment. | |
13157 | (ix86_attr_length_immediate_default): When checking if shortform | |
13158 | is possible, truncate immediate to the length of the non-shortened | |
13159 | immediate. | |
13160 | (ix86_attr_length_address_default): Ignore MEM_P operands | |
13161 | with X constraint. | |
13162 | (ix86_attr_length_vex_default): Only check for DImode on | |
13163 | GENERAL_REG_P operands. | |
13164 | * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear | |
13165 | prefix_rep attribute, set prefix_data16 attribute iff MODE_DF. | |
13166 | (sse_cvttps2pi): Clear prefix_rep attribute. | |
13167 | (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16 | |
13168 | attribute. | |
13169 | (*sse2_cvttpd2dq): Don't clear prefix_rep attribute. | |
13170 | (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3, | |
13171 | *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1 | |
13172 | iff operand 2 is const_int_operand. | |
13173 | (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>, | |
13174 | sse2_shufpd_<mode>): Set length_immediate attribute to 1. | |
13175 | (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex | |
13176 | instead of vex. | |
13177 | (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear | |
13178 | prefix_data16. | |
13179 | (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set | |
13180 | prefix_data16 attribute for movlpd and movhpd instructions. | |
13181 | (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override | |
13182 | length_immediate for shufpd instruction. | |
13183 | (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute. | |
13184 | (avx_cmpp<avxmodesuffixf2c><mode>3, | |
13185 | avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3, | |
13186 | <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3, | |
13187 | avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>, | |
f3afc8a7 | 13188 | *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1. |
725fd454 JJ |
13189 | (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4. |
13190 | (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1. | |
13191 | (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override | |
13192 | prefix_data16 attribute for the first alternative to 1. | |
13193 | (*avx_loadlps): Override length_immediate for the first alternative. | |
13194 | (*vec_concatv2sf_avx): Override length_immediate and prefix_extra | |
13195 | attributes for second alternative. | |
13196 | (*vec_concatv2sf_sse4_1): Override length_immediate and | |
13197 | prefix_data16 attributes for second alternative. | |
13198 | (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>, | |
13199 | vec_extract_hi_<mode>, vec_extract_lo_v16hi, | |
13200 | vec_extract_hi_v16hi, vec_extract_lo_v32qi, | |
13201 | vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1. | |
13202 | (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set | |
13203 | prefix_data16 and length_immediate to 1. | |
13204 | (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra | |
13205 | to 1. | |
13206 | (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set | |
f3afc8a7 | 13207 | prefix_extra attribute for variants that don't have 0f prefix alone. |
725fd454 JJ |
13208 | (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1. |
13209 | (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb, | |
13210 | *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory, | |
13211 | *sse4_1_pextrd): Set length_immediate to 1. | |
13212 | (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1. | |
13213 | (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate | |
13214 | to 1. | |
13215 | (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64, | |
13216 | *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override | |
13217 | length_immediate to 1 for second alternative. | |
13218 | (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override | |
13219 | prefix_extra and length_immediate attributes for the first | |
13220 | alternative. | |
13221 | (vec_concatv2si_sse4_1): Override length_immediate to 1 for the | |
13222 | first alternative. | |
13223 | (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex | |
13224 | to 1 for the first and third alternative. | |
13225 | (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second | |
13226 | alternative. | |
13227 | (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex | |
13228 | attribute. | |
13229 | (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address | |
13230 | attribute to 0. | |
13231 | (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3, | |
13232 | *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi, | |
13233 | *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3, | |
13234 | *avx_psign<mode>3): Set prefix_extra attribute to 1. | |
13235 | (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3, | |
13236 | ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3, | |
13237 | ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3, | |
13238 | ssse3_psign<mode>3): Override prefix_rex attribute. | |
f3afc8a7 | 13239 | (*avx_palignrti): Override prefix_extra and length_immediate to 1. |
725fd454 JJ |
13240 | (ssse3_palignrti): Override length_immediate to 1. |
13241 | (ssse3_palignrdi): Override length_immediate to 1, override | |
13242 | prefix_rex attribute. | |
f3afc8a7 | 13243 | (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute. |
725fd454 JJ |
13244 | (sse4a_extrqi): Override length_immediate to 2. |
13245 | (sse4a_insertqi): Likewise. Override prefix_data16 to 0. | |
13246 | (sse4a_insertq): Override prefix_data16 to 0. | |
13247 | (avx_blendp<avxmodesuffixf2c><avxmodesuffix>, | |
13248 | avx_blendvp<avxmodesuffixf2c><avxmodesuffix>, | |
13249 | avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw, | |
13250 | *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256, | |
13251 | avx_rounds<avxmodesuffixf2c>256): Override prefix_extra | |
13252 | and length_immediate to 1. | |
13253 | (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>, | |
13254 | sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm, | |
13255 | sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri, | |
13256 | sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16 | |
13257 | and length_immediate to 1. | |
13258 | (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1. | |
13259 | (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1. | |
13260 | (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>, | |
13261 | avx_ptest256): Override prefix_extra to 1. | |
13262 | (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>): | |
13263 | Override prefix_data16 and length_immediate to 1. | |
13264 | (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi, | |
13265 | sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si, | |
13266 | sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di, | |
13267 | sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override | |
13268 | prefix_data16 to 0 and prefix_extra to 2. | |
13269 | (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1. | |
13270 | (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra | |
13271 | attribute. | |
13272 | (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3, | |
13273 | sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3): | |
13274 | Override prefix_data16 and prefix_rep to 0, length_immediate to 1 | |
13275 | and prefix_extra to 2. | |
13276 | (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override | |
13277 | prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2. | |
13278 | (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast, | |
13279 | avx_vpermilvar<mode>3, | |
13280 | avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>, | |
13281 | avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256, | |
13282 | avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>, | |
13283 | avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): | |
13284 | Override prefix_extra to 1. | |
13285 | (aeskeygenassist, pclmulqdq): Override length_immediate to 1. | |
13286 | (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3, | |
13287 | vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi, | |
13288 | vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override | |
13289 | prefix_extra and length_immediate to 1. | |
13290 | (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override | |
13291 | modrm to 0. | |
13292 | (*vec_concat<mode>_avx): Override prefix_extra and length_immediate | |
13293 | to 1 for the first alternative. | |
13294 | * config/i386/mmx.md (*mov<mode>_internal_rex64): Override | |
13295 | prefix_rep, prefix_data16 and/or prefix_rex attributes in certain | |
13296 | cases. | |
13297 | (*mov<mode>_internal_avx, *movv2sf_internal_rex64, | |
13298 | *movv2sf_internal_avx, *movv2sf_internal): Override | |
13299 | prefix_rep attribute for certain alternatives. | |
13300 | (*mov<mode>_internal): Override prefix_rep or prefix_data16 | |
13301 | attributes for certain alternatives. | |
13302 | (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex | |
13303 | attributes for certain alternatives. | |
13304 | (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3, | |
13305 | *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2, | |
13306 | mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3, | |
13307 | mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3, | |
13308 | *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw, | |
13309 | mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3, | |
13310 | mmx_pswapdv2si2): Set prefix_extra attribute to 1. | |
13311 | (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set | |
13312 | length_immediate to 1 if operand 2 is const_int_operand. | |
13313 | (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi, | |
f3afc8a7 | 13314 | *vec_extractv2si_1): Set length_immediate attribute to 1. |
725fd454 JJ |
13315 | (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if |
13316 | using old 3DNOW insn rather than SSE/3DNOW_A. | |
13317 | (mmx_emms, mmx_femms): Clear modrm attribute. | |
13318 | ||
0674b9d0 MJ |
13319 | 2009-05-29 Martin Jambor <mjambor@suse.cz> |
13320 | ||
13321 | * tree-sra.c: New implementation of SRA. | |
13322 | ||
13323 | * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed. | |
13324 | (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed. | |
13325 | (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed. | |
13326 | * params.h (SRA_MAX_STRUCTURE_SIZE): Removed. | |
13327 | (SRA_MAX_STRUCTURE_COUNT): Removed. | |
13328 | (SRA_FIELD_STRUCTURE_RATIO): Removed. | |
13329 | * doc/invoke.texi (sra-max-structure-size): Removed. | |
13330 | (sra-field-structure-ratio): Removed. | |
13331 | ||
616f21df JJ |
13332 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
13333 | ||
13334 | PR middle-end/40291 | |
13335 | * builtins.c (expand_builtin_memcmp): Convert len to sizetype | |
13336 | before expansion. | |
13337 | ||
da7ba240 AB |
13338 | 2009-05-29 Andrey Belevantsev <abel@ispras.ru> |
13339 | ||
13340 | PR rtl-optimization/40101 | |
13341 | * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative | |
13342 | seqno. Adjust comment. | |
f100a4a8 | 13343 | * sel-sched.c (find_seqno_for_bookkeeping): Assert that when |
da7ba240 AB |
13344 | inserting bookkeeping before a jump, the jump is not scheduled. |
13345 | When no positive seqno found, provide a value. Add comment. | |
13346 | ||
71dcd609 RG |
13347 | 2009-05-29 Richard Guenther <rguenther@suse.de> |
13348 | ||
13349 | * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove | |
13350 | short-cutting on the first component. | |
13351 | ||
a900ae6b JJ |
13352 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
13353 | ||
13354 | PR middle-end/39958 | |
13355 | * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE | |
13356 | for trees other than decls/types. | |
13357 | ||
821bb7f8 RG |
13358 | 2009-05-29 Richard Guenther <rguenther@suse.de> |
13359 | ||
13360 | * tree-ssa-operands.c (get_expr_operands): Do not handle | |
13361 | INDIRECT_REFs in the handled-component case. Remove | |
13362 | unused get_ref_base_and_extent case. | |
13363 | * tree-dfa.c (get_ref_base_and_extent): Avoid calling | |
13364 | tree_low_cst and host_integerp where possible. | |
13365 | * tree-ssa-structalias.c (equiv_class_label_eq): Check hash | |
13366 | codes for equivalence. | |
13367 | * dce.c (find_call_stack_args): Avoid redundant bitmap queries. | |
13368 | ||
e997fb9c DB |
13369 | 2009-05-29 David Billinghurst <billingd@gcc.gnu.org> |
13370 | ||
13371 | * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp | |
f100a4a8 | 13372 | to tmake_file for i[34567]86-*-cygwin*. |
e997fb9c | 13373 | |
58195b74 JJ |
13374 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
13375 | ||
13376 | PR target/40017 | |
13377 | * config/rs6000/rs6000-c.c (_Bool_keyword): New variable. | |
13378 | (altivec_categorize_keyword, init_vector_keywords, | |
13379 | rs6000_cpu_cpp_builtins): Define _Bool as conditional macro | |
13380 | similar to bool. | |
13381 | ||
055df276 KT |
13382 | 2009-05-29 Kai Tietz <kai.tietz@onevision.com> |
13383 | ||
13384 | * tree.c (handle_dll_attribute): Check if node is | |
13385 | of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check. | |
13386 | ||
f5939ef3 RE |
13387 | 2009-05-29 Richard Earnshaw <rearnsha@arm.com> |
13388 | ||
13389 | * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split | |
13390 | component. | |
13391 | (thumb2_zero_extendqidi2): Likewise. | |
13392 | ||
c185de40 KK |
13393 | 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org> |
13394 | ||
13395 | * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt | |
13396 | instead of gen_movrt. | |
13397 | * config/sh/sh.md (movrt): Remove. | |
13398 | ||
bf3c6caf SE |
13399 | 2009-05-28 Steve Ellcey <sje@cup.hp.com> |
13400 | ||
f3afc8a7 | 13401 | * doc/invoke.texi (IA-64 Options): |
f100a4a8 | 13402 | Add -msdata, -mfused-madd, -mno-inline-float-divide, |
bf3c6caf SE |
13403 | -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc, |
13404 | -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns, | |
13405 | -msched-prefer-non-control-spec-insns, | |
13406 | -msched-stop-bits-after-every-cycle, | |
13407 | -msched-count-spec-in-critical-path, | |
13408 | -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost | |
f3afc8a7 | 13409 | -msched-max-memory-insns-hard-limit, -msched-max-memory-insns. |
bf3c6caf SE |
13410 | Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc, |
13411 | and -msched-spec-verbose. | |
13412 | ||
8a66e987 JM |
13413 | 2009-05-28 Joseph Myers <joseph@codesourcery.com> |
13414 | ||
f3afc8a7 | 13415 | * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache. |
8a66e987 JM |
13416 | * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an |
13417 | error if used. | |
13418 | * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache. | |
13419 | ||
b45d2719 RG |
13420 | 2009-05-28 Richard Guenther <rguenther@suse.de> |
13421 | ||
13422 | * tree-ssa-alias.c (ao_ref_init): New function. | |
13423 | (ao_ref_base): Likewise. | |
13424 | (ao_ref_base_alias_set): Likewise. | |
13425 | (ao_ref_alias_set): Likewise. | |
13426 | (refs_may_alias_p_1): Change signature. | |
13427 | (refs_may_alias_p): Adjust. | |
13428 | (refs_anti_dependent_p): Likewise. | |
13429 | (refs_output_dependent_p): Likewise. | |
13430 | (call_may_clobber_ref_p_1): Change signature. | |
13431 | (call_may_clobber_ref_p): Adjust. | |
13432 | (stmt_may_clobber_ref_p_1): New function split out from ... | |
13433 | (stmt_may_clobber_ref_p): ... here. | |
13434 | (maybe_skip_until): Adjust signature. | |
13435 | (get_continuation_for_phi): Likewise. | |
13436 | (walk_non_aliased_vuses): Likewise. | |
13437 | * tree-ssa-alias.h (struct ao_ref_s): New structure type. | |
13438 | (ao_ref_init): Declare. | |
13439 | (ao_ref_base): Likewise. | |
13440 | (ao_ref_alias_set): Likewise. | |
13441 | (stmt_may_clobber_ref_p_1): Likewise. | |
13442 | (walk_non_aliased_vuses): Adjust. | |
13443 | * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function. | |
13444 | (get_ref_from_reference_ops): remove. | |
13445 | (vn_reference_lookup_2): Adjust signature. | |
13446 | (vn_reference_lookup_3): Do not re-build trees. Handle unions. | |
f3afc8a7 | 13447 | (vn_reference_lookup_pieces): Adjust signature, do not re-build trees. |
b45d2719 RG |
13448 | (vn_reference_lookup): Adjust. |
13449 | (vn_reference_insert): Likewise. | |
13450 | (vn_reference_insert_pieces): Adjust signature. | |
13451 | (visit_reference_op_call): Adjust. | |
13452 | * tree-ssa-pre.c (get_expr_type): Simplify. | |
13453 | (phi_translate_1): Adjust. | |
13454 | (compute_avail): Likewise. | |
13455 | (translate_vuse_through_block): Do not re-build trees. | |
13456 | (value_dies_in_block_x): Likewise. | |
13457 | * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set | |
13458 | fields. | |
13459 | (vn_reference_lookup_pieces): Adjust declaration. | |
13460 | (vn_reference_insert_pieces): Likewise. | |
13461 | ||
554223b6 BK |
13462 | 2009-05-28 Benjamin Kosnik <bkoz@redhat.com> |
13463 | ||
13464 | * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use | |
13465 | with checking disabled. | |
13466 | ||
233215fe DK |
13467 | 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com> |
13468 | ||
13469 | PR target/37216 | |
13470 | ||
13471 | * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and | |
13472 | macro definition for support of three-operand format aligned | |
13473 | .comm directive in assembler on cygwin/pe/mingw target OS. | |
13474 | * configure: Regenerate. | |
13475 | * config.h: Regenerate. | |
13476 | ||
13477 | * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use | |
13478 | aligned form of .comm directive if -mpe-aligned-commons is in effect. | |
13479 | * config/i386/cygming.opt (-mpe-aligned-commons): Add new option. | |
13480 | ||
13481 | * doc/invoke.texi (-mpe-aligned-commons): Document new target option. | |
13482 | * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons. | |
13483 | ||
24adb18f IR |
13484 | 2009-05-28 Ira Rosen <irar@il.ibm.com> |
13485 | ||
13486 | PR tree-optimization/40254 | |
13487 | * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account | |
13488 | in analysis of basic blocks. | |
13489 | ||
2c5bfdf7 AN |
13490 | 2009-05-28 Adam Nemet <anemet@caviumnetworks.com> |
13491 | ||
13492 | PR middle-end/33699 | |
f3afc8a7 | 13493 | * target.h (struct gcc_target): Fix indentation. Add const_anchor. |
2c5bfdf7 AN |
13494 | * target-def.h (TARGET_CONST_ANCHOR): New macro. |
13495 | (TARGET_INITIALIZER): Use it. | |
13496 | * cse.c (CHEAPER): Move it up to the other macros. | |
13497 | (insert): Rename this ... | |
13498 | (insert_with_costs): ... to this. Add cost parameters. Update | |
13499 | function comment. | |
13500 | (insert): New function. Call insert_with_costs. | |
13501 | (compute_const_anchors, insert_const_anchor, insert_const_anchors, | |
13502 | find_reg_offset_for_const, try_const_anchors): New functions. | |
13503 | (cse_insn): Call try_const_anchors. Adjust cost of src_related | |
13504 | when using a const-anchor. Call insert_const_anchors. | |
f3afc8a7 | 13505 | * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor. |
2c5bfdf7 AN |
13506 | * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR. |
13507 | ||
9e6aced0 AO |
13508 | 2009-05-28 Alexandre Oliva <aoliva@redhat.com> |
13509 | ||
13510 | * tree-inline.c (remap_decls): Enable nonlocalized variables | |
13511 | when not optimizing. | |
13512 | ||
89fbbe4e AO |
13513 | 2009-05-28 Alexandre Oliva <aoliva@redhat.com> |
13514 | ||
13515 | * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing. | |
13516 | Simplify other tests involving optimize. | |
13517 | ||
e455776a TT |
13518 | 2009-05-27 Tom Tromey <tromey@redhat.com> |
13519 | ||
13520 | * unwind-dw2.c (_Unwind_DebugHook): New function. | |
13521 | (uw_install_context): Call _Unwind_DebugHook. | |
13522 | ||
cea32bca TT |
13523 | 2009-05-27 Tom Tromey <tromey@redhat.com> |
13524 | ||
13525 | * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++ | |
13526 | ||
c607156f ILT |
13527 | 2009-05-27 Ian Lance Taylor <iant@google.com> |
13528 | ||
13529 | * Makefile.in (LINKER, LINKER_FLAGS): Define. | |
13530 | (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define. | |
13531 | (ALL_LINKERFLAGS): Define. | |
13532 | (xgcc$(exeext)): Change $(COMPILER) to $(LINKER). | |
13533 | (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise. | |
13534 | (collect2$(exeext), mips-tfile, mips-tdump): Likewise. | |
13535 | (gcov$(exeext), gcov-dump$(exeext)): Likewise. | |
13536 | (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to | |
13537 | $(LINKER_FOR_BUILD). | |
13538 | (build/gcov-iov$(build_exeext)): Likewise. | |
13539 | ||
ec0a1343 JB |
13540 | 2009-05-27 Julian Brown <julian@codesourcery.com> |
13541 | ||
13542 | * gcse.c (target.h): Include. | |
13543 | (can_assign_to_reg_without_clobbers_p): Check that the target allows | |
13544 | copy of argument to a pseudo register. | |
13545 | ||
ac80ba07 DN |
13546 | 2009-05-27 Diego Novillo <dnovillo@google.com> |
13547 | ||
13548 | * tree-ssa-live.c (dump_scope_block): Document arguments. | |
13549 | (dump_scope_blocks): Document. | |
13550 | (debug_scope_blocks): New. | |
13551 | * tree-flow.h (debug_scope_blocks): Declare. | |
13552 | ||
d1803a17 DC |
13553 | 2009-05-21 Denis Chertykov <denisc@overta.ru> |
13554 | ||
f3afc8a7 | 13555 | * doc/contrib.texi (Contributors): Add myself to the list. |
d1803a17 | 13556 | |
51fb7760 | 13557 | 2009-05-27 Olivier Hainque <hainque@adacore.com> |
ceadb728 OH |
13558 | |
13559 | * expr.c (target_align): New function. Alignment the TARGET of an | |
13560 | assignment may be assume to have. | |
13561 | (highest_pow2_factor_for_target): Use it instead of relying on | |
13562 | immediate tree attributes of TARGET, not necessarily honored when | |
13563 | intermediate bitfields are involved. | |
f100a4a8 | 13564 | |
634fa334 L |
13565 | 2009-05-27 H.J. Lu <hongjiu.lu@intel.com> |
13566 | ||
13567 | PR target/40266 | |
13568 | * config/i386/driver-i386.c (host_detect_local_cpu): Support | |
13569 | AVX, SSE4, AES, PCLMUL and POPCNT. | |
13570 | ||
65332587 DN |
13571 | 2009-05-27 Diego Novillo <dnovillo@google.com> |
13572 | ||
13573 | * tree-pretty-print.c (dump_location): New. | |
13574 | (dump_generic_node): Call it. | |
13575 | Factor code to handle BLOCK nodes ... | |
13576 | (dump_block_node): ... here. | |
13577 | ||
3e17e31d RAE |
13578 | 2009-05-27 Rafael Avila de Espindola <espindola@google.com> |
13579 | ||
f3afc8a7 UB |
13580 | * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h |
13581 | with it. | |
3e17e31d RAE |
13582 | * doc/plugins.texi: Document that gcc-plugin.h must be the first to be |
13583 | included. | |
13584 | * gcc-plugin.h: Include config.h and system.h. | |
13585 | (IN_GCC): Define if not defined. | |
13586 | ||
5e370570 HPN |
13587 | 2009-05-27 Hans-Peter Nilsson <hp@axis.com> |
13588 | ||
13589 | PR middle-end/40249 | |
13590 | * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions | |
13591 | with -fno-inline. | |
13592 | ||
d000f0d9 SZ |
13593 | 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com> |
13594 | ||
13595 | * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where | |
13596 | applicable. | |
13597 | * config/m32r/m32r.h: Ditto. | |
13598 | * config/m32r/m32r.md: Ditto. | |
13599 | * config/m32r/predicates.md: Ditto. | |
13600 | ||
82f331ff AO |
13601 | 2009-05-27 Alexandre Oliva <aoliva@redhat.com> |
13602 | ||
13603 | * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr. | |
13604 | ||
ae2392a9 BS |
13605 | 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net> |
13606 | ||
13607 | * doc/plugins.texi | |
13608 | (Loading plugins): typo. | |
13609 | (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START, | |
13610 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS. | |
13611 | (Interacting with the GCC Garbage Collector): Added new section. | |
13612 | (Giving information about a plugin): Added new section for | |
13613 | PLUGIN_INFO. | |
ae2392a9 BS |
13614 | * ggc.h (ggc_register_root_tab): Added declaration. |
13615 | * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING) | |
13616 | (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events. | |
13617 | (register_callback): Improved comment in declaration. | |
f3afc8a7 UB |
13618 | * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors. |
13619 | (extra_root_vec) Added static variable for dynamic roots registration. | |
ae2392a9 BS |
13620 | (ggc_register_root_tab) Added new routine. |
13621 | (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke | |
13622 | PLUGIN_GGC_MARKING event. | |
13623 | * ggc-zone.c: Include plugin.h. | |
13624 | (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events. | |
13625 | * ggc-page.c: Include plugin.h. | |
13626 | (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events. | |
13627 | * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START, | |
13628 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS | |
13629 | (register_callback): check lack of callbacks for | |
13630 | pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS, | |
13631 | PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END. | |
13632 | (invoke_plugin_callbacks): Handle PLUGIN_GGC_START, | |
13633 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS. | |
13634 | * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added | |
13635 | dependency on plugin.h. | |
13636 | (plugin.o): Added dependency on ggc.h... | |
13637 | ||
f0cfd3a8 RG |
13638 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13639 | ||
13640 | PR middle-end/40248 | |
13641 | Revert | |
13642 | * expr.c (expand_expr_real_1): Avoid calling do_store_flag | |
13643 | with mismatched comparison modes. | |
13644 | ||
13645 | * expr.c (expand_expr_real_1): Expand the operand of a | |
13646 | VIEW_CONVERT_EXPR in its natural mode. | |
13647 | ||
7980bfb8 ILT |
13648 | 2009-05-26 Ian Lance Taylor <iant@google.com> |
13649 | ||
13650 | * Makefile.in (COMPILER, COMPILER_FLAGS): Define. | |
13651 | (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define. | |
13652 | (ALL_COMPILERFLAGS): Define. | |
13653 | (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER). | |
13654 | (cc1-dummy$(exeext), cc1$(exeext)): Likewise. | |
13655 | (collect2$(exeext), collect2.o): Likewise. | |
13656 | (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise. | |
13657 | (gcc-options.o, version.o, prefix.o, toplev.o): Likewise. | |
13658 | ($(out_object_file), mips-tfile, mips-tdump): Likewise. | |
13659 | (libbackend.o, intl.o, cppdefault.o): Likewise. | |
13660 | (gcov$(exeext), gcov-dump$(exeext)): Likewise. | |
13661 | (build/%.o): Use $(COMPILER_FOR_BUILD). | |
13662 | (build/gen%$(build_exeext)): Likewise. | |
13663 | (build/gcov-iov$(build_exeext)): LIkewise. | |
13664 | * config/t-darwin (darwin.o): Use $(COMPILER). | |
13665 | (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise. | |
13666 | * config/t-sol2 (sol2-c.o): Likewise. | |
13667 | (sol2.o): Likewise. | |
13668 | * config/t-vxworks (vxworks.o): Likewise. | |
13669 | * config/x-darwin (host-darwin.o): Likewise. | |
13670 | * config/x-hpux (host-hpux.o): Likewise. | |
13671 | * config/x-linux (host-linux.o): Likewise. | |
13672 | * config/x-solaris (host-solaris.o): Likewise. | |
13673 | * config/alpha/x-alpha (driver-alpha.o): Likewise. | |
13674 | * config/arm/t-arm (arm-c.o): Likewise. | |
13675 | * config/arm/t-pe (pe.o): Likewise. | |
13676 | * config/arm/t-wince-pe (pe.o): Likewise. | |
13677 | * config/i386/t-cygming (winnt.o): Likewise. | |
13678 | (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise. | |
13679 | * config/i386/t-cygwin (cygwin1.o): Likewise. | |
13680 | (cygwin2.o): Likewise. | |
13681 | * config/i386/t-i386 (i386-c.o): Likewise. | |
13682 | * config/i386/t-interix (winnt.o): Likewise. | |
13683 | * config/i386/t-netware (netware.o): Likewise. | |
13684 | * config/i386/t-nwld (nwld.o): Likewise. | |
13685 | * config/i386/x-darwin (host-i386-darwin.o): Likewise. | |
13686 | * config/i386/x-i386 (driver-i386.o): Likewise. | |
13687 | * config/i386/x-cygwin (host-cygwin.o): Likewise. | |
13688 | * config/i386/x-mingw32 (host-mingw32.o): Likewise. | |
13689 | * config/ia64/t-ia64 (ia64-c.o): Likewise. | |
13690 | * config/m32c/t-m32c (m32c-pragma.o): Likewise. | |
13691 | * config/mips/x-native (driver-native.o): Likewise. | |
13692 | * config/rs6000/t-rs6000 (rs6000-c.o): Likewise. | |
13693 | * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise. | |
13694 | * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise. | |
13695 | * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise. | |
13696 | * config/score/t-score-elf (score7.o): Likewise. | |
13697 | (score3.o): Likewise. | |
13698 | * config/sh/t-sh (sh-c.o): Likewise. | |
13699 | * config/sh/t-symbian (sh-c.o): Likewise. | |
13700 | (symbian.o): Likewise. | |
13701 | * config/spu/t-spu-elf (spu-c.o): Likewise. | |
13702 | * config/v850/t-v850 (v850-c.o): Likewise. | |
13703 | * config/v850/t-v850e (v850-c.o): Likewise. | |
13704 | ||
23977d3c RG |
13705 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13706 | ||
13707 | PR tree-optimization/40122 | |
13708 | * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to | |
13709 | VECTOR_CSTs if possible. | |
13710 | (fold_gimple_assign): Likewise. | |
13711 | ||
3d62b895 RG |
13712 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13713 | ||
13714 | PR middle-end/40252 | |
13715 | * fold-const.c (fold_binary): Use the correct types for building | |
13716 | rotates. | |
13717 | ||
12346147 RG |
13718 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13719 | ||
13720 | * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove | |
13721 | redundant calls to merge_alias_info. | |
13722 | (bump_vector_ptr): Likewise. | |
13723 | * tree-ssa-copy.c (merge_alias_info): Remove. | |
13724 | (replace_exp_1): Remove call to merge_alias_info. | |
13725 | (propagate_tree_value): Likewise. | |
13726 | (fini_copy_prop): Propagate points-to info. | |
13727 | * tree-flow.h (merge_alias_info): Remove. | |
13728 | ||
807d5e6f HS |
13729 | 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com> |
13730 | ||
13731 | * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove. | |
13732 | ||
85057983 JH |
13733 | 2009-05-25 Jan Hubicka <jh@suse.cz> |
13734 | ||
13735 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
13736 | * cgraph.h (struct inline_summary): New filed self_wize, | |
13737 | size_inlining_benefit, self_time and time_inlining_benefit. | |
13738 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
13739 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
13740 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
13741 | (ipcp_update_callgraph): Do not touch function bodies. | |
13742 | * ipa-inline.c: Include except.h | |
13743 | (MAX_TIME): New constant. | |
13744 | (overall_insns): Remove. | |
13745 | (leaf_node_p): New. | |
13746 | (overall_size, max_benefit): New static variables. | |
13747 | (cgraph_estimate_time_after_inlining): New function. | |
13748 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
13749 | (cgraph_clone_inlined_nodes): Update size. | |
13750 | (cgraph_mark_inline_edge): Update size. | |
13751 | (cgraph_estimate_growth): Use size info. | |
13752 | (cgraph_check_inline_limits): Check size. | |
13753 | (cgraph_default_inline_p): Likewise. | |
13754 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
13755 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
13756 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
13757 | and times. | |
85057983 JH |
13758 | (cgraph_decide_inlining): Likewise. |
13759 | (cgraph_decide_inlining_incrementally): Likewise; honor | |
13760 | PARAM_EARLY_INLINING_INSNS. | |
13761 | (likely_eliminated_by_inlining_p): New predicate. | |
13762 | (estimate_function_body_sizes): New function. | |
13763 | (compute_inline_parameters): Use it. | |
13764 | * except.c (must_not_throw_labels): New function. | |
13765 | * except.h (must_not_throw_labels): Declare. | |
13766 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
13767 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
13768 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
13769 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
13770 | (PARAM_INLINE_CALL_COST): Remove. | |
13771 | (PARAM_EARLY_INLINING_INSNS): New. | |
13772 | ||
01df5c8a RG |
13773 | 2009-05-25 Richard Guenther <rguenther@suse.de> |
13774 | ||
13775 | PR tree-optimization/36327 | |
13776 | * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker | |
f3afc8a7 | 13777 | callback for reference translation or lookup at the point of may-defs. |
01df5c8a RG |
13778 | * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype. |
13779 | * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out | |
13780 | for union COMPONENT_REFs. | |
13781 | (vn_reference_lookup_3): New callback. Lookup from memset | |
13782 | and CONSTRUCTOR assignment, translate through struct copies. | |
13783 | (vn_reference_lookup_pieces): Make sure to not free the | |
13784 | passed operands array. Adjust walk_non_aliased_vuses call. | |
13785 | (vn_reference_lookup): Adjust walk_non_aliased_vuses call, | |
13786 | make sure we do not leak memory. | |
13787 | ||
6b8ed145 RG |
13788 | 2009-05-25 Richard Guenther <rguenther@suse.de> |
13789 | ||
13790 | * tree-ssa-alias.h (dump_points_to_solution): Declare. | |
13791 | * tree-inline.c (expand_call_inline): Reset the escaped and | |
13792 | callused solutions. | |
13793 | * tree-ssa-structalias.c (pass_build_ealias): New. | |
13794 | * tree-pass.h (pass_build_ealias): Declare. | |
f100a4a8 | 13795 | * passes.c (init_optimization_passes): Add PTA during |
6b8ed145 RG |
13796 | early optimizations. |
13797 | * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED | |
13798 | and CALLUSED solutions. | |
13799 | (dump_points_to_solution): New function, split out from ... | |
13800 | (dump_points_to_info_for): ... here. | |
13801 | * tree-parloops.c (parallelize_loops): Reset the escaped and | |
13802 | callused solutions. | |
13803 | ||
0adcf178 RO |
13804 | 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
13805 | ||
13806 | PR bootstrap/40027 | |
13807 | * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing. | |
13808 | * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define. | |
13809 | ||
12aaf609 IR |
13810 | 2009-05-25 Ira Rosen <irar@il.ibm.com> |
13811 | ||
13812 | PR tree-optimization/40238 | |
13813 | * tree-vect-stmts.c (vect_init_vector): Insert initialization | |
13814 | statements after basic block's labels. | |
f100a4a8 | 13815 | * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() |
12aaf609 IR |
13816 | to free the allocated memory. |
13817 | ||
7f9a14e3 KK |
13818 | 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org> |
13819 | ||
13820 | * gcc/config/sh/sh.c (sh_set_return_address): Mark store of | |
13821 | return address with a USE. | |
13822 | ||
b842d478 RG |
13823 | 2009-05-24 Richard Guenther <rguenther@suse.de> |
13824 | ||
13825 | PR middle-end/40233 | |
13826 | * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs | |
13827 | array type from the main variant of the inner type. | |
13828 | ||
8db7b33f JBG |
13829 | 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
13830 | ||
13831 | * config/vax/vax-protos.h (legitimate_constant_address_p): Change | |
13832 | definition to bool (from int) to un-break build. | |
13833 | (legitimate_constant_p, vax_mode_dependent_address_p): Likewise. | |
13834 | ||
cff4e50d PB |
13835 | 2009-05-24 Paolo Bonzini <bonzini@gnu.org> |
13836 | ||
13837 | * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes, | |
13838 | discard_stmt_changes): Delete. | |
13839 | * tree-ssa-operands.c (scb_stack): Delete. | |
13840 | (init_ssa_operands): Do not initialize it. | |
13841 | (fini_ssa_operands): Do not free it. | |
13842 | (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete. | |
13843 | ||
f100a4a8 | 13844 | * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with |
cff4e50d PB |
13845 | update_stmt, remove the others. Fix comments. |
13846 | * tree-dfa.c (optimize_stack_restore): Likewise. | |
13847 | * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise. | |
13848 | * tree-ssa-loop-ivopts.c (rewrite_use): Likewise. | |
13849 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise. | |
13850 | * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins): | |
13851 | Likewise. | |
13852 | * tree-ssa-propagate.c (substitute_and_fold): Likewise. | |
13853 | * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise. | |
f3afc8a7 UB |
13854 | (dom_opt_finalize_block): Likewise, adjusting access to |
13855 | stmts_to_rescan. | |
cff4e50d PB |
13856 | (optimize_stmt): Likewise, adjusting access to stmts_to_rescan. |
13857 | (stmts_to_rescan): Change item type to gimple. | |
13858 | (tree_ssa_dominator_optimize): Change type of stmts_to_rescan. | |
13859 | ||
a70d6342 IR |
13860 | 2009-05-24 Ira Rosen <irar@il.ibm.com> |
13861 | ||
13862 | * doc/passes.texi (Tree-SSA passes): Document SLP pass. | |
13863 | * tree-pass.h (pass_slp_vectorize): New pass. | |
13864 | * params.h (SLP_MAX_INSNS_IN_BB): Define. | |
13865 | * timevar.def (TV_TREE_SLP_VECTORIZATION): Define. | |
13866 | * tree-vectorizer.c (timevar.h): Include. | |
13867 | (user_vect_verbosity_level): Declare. | |
13868 | (vect_location): Fix comment. | |
13869 | (vect_set_verbosity_level): Update user_vect_verbosity_level | |
13870 | instead of vect_verbosity_level. | |
13871 | (vect_set_dump_settings): Add an argument. Ignore user defined | |
13872 | verbosity if dump flags require higher level of verbosity. Print to | |
13873 | stderr only for loop vectorization. | |
13874 | (vectorize_loops): Update call to vect_set_dump_settings. | |
13875 | (execute_vect_slp): New function. | |
13876 | (gate_vect_slp): Likewise. | |
13877 | (struct gimple_opt_pass pass_slp_vectorize): New. | |
13878 | * tree-vectorizer.h (struct _bb_vec_info): Define along macros to | |
13879 | access its members. | |
13880 | (vec_info_for_bb): New function. | |
13881 | (struct _stmt_vec_info): Add bb_vinfo and a macro for its access. | |
13882 | (VECTORIZATION_ENABLED): New macro. | |
13883 | (SLP_ENABLED, SLP_DISABLED): Likewise. | |
13884 | (vect_is_simple_use): Add bb_vec_info argument. | |
13885 | (new_stmt_vec_info, vect_analyze_data_ref_dependences, | |
13886 | vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment, | |
13887 | vect_analyze_data_ref_accesses, vect_analyze_data_refs, | |
13888 | vect_schedule_slp, vect_analyze_slp): Likewise. | |
13889 | (vect_analyze_stmt): Add slp_tree argument. | |
13890 | (find_bb_location): Declare. | |
13891 | (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise. | |
13892 | * tree-vect-loop.c (new_loop_vec_info): Adjust function calls. | |
13893 | (vect_analyze_loop_operations, vect_analyze_loop, | |
13894 | get_initial_def_for_induction, vect_create_epilog_for_reduction, | |
13895 | vect_finalize_reduction, vectorizable_reduction, | |
13896 | vectorizable_live_operation, vect_transform_loop): Likewise. | |
13897 | * tree-data-ref.c (dr_analyze_innermost): Update comment, | |
13898 | skip evolution analysis if analyzing a basic block. | |
13899 | (dr_analyze_indices): Likewise. | |
13900 | (initialize_data_dependence_relation): Skip the test whether the | |
13901 | object is invariant for basic blocks. | |
13902 | (compute_all_dependences): Skip dependence analysis for data | |
13903 | references in basic blocks. | |
13904 | (find_data_references_in_stmt): Don't fail in case of invariant | |
13905 | access in basic block. | |
13906 | (find_data_references_in_bb): New function. | |
13907 | (find_data_references_in_loop): Move code to | |
782dc37a | 13908 | find_data_references_in_bb and add a call to it. |
a70d6342 IR |
13909 | (compute_data_dependences_for_bb): New function. |
13910 | * tree-data-ref.h (compute_data_dependences_for_bb): Declare. | |
13911 | * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case | |
13912 | that STEP is 0. | |
13913 | (vect_analyze_data_ref_dependence): Check for interleaving in case of | |
13914 | unknown dependence in basic block and fail in case of dependence in | |
13915 | basic block. | |
13916 | (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data | |
13917 | dependence instances from either loop or basic block vectorization | |
13918 | info. | |
13919 | (vect_compute_data_ref_alignment): Check if it is loop vectorization | |
13920 | before calling nested_in_vect_loop_p. | |
13921 | (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data | |
13922 | dependence instances from either loop or basic block vectorization | |
13923 | info. | |
13924 | (vect_verify_datarefs_alignment): Likewise. | |
13925 | (vect_enhance_data_refs_alignment): Adjust function calls. | |
13926 | (vect_analyze_data_refs_alignment): Likewise. | |
13927 | (vect_analyze_group_access): Fix printing. Skip different checks if | |
13928 | DR_STEP is 0. Keep strided stores either in loop or basic block | |
13929 | vectorization data structure. Fix indentation. | |
13930 | (vect_analyze_data_ref_access): Fix comments, allow zero step in | |
13931 | basic blocks. | |
13932 | (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data | |
13933 | dependence instances from either loop or basic block vectorization | |
13934 | info. | |
13935 | (vect_analyze_data_refs): Update comment. Call | |
13936 | compute_data_dependences_for_bb to analyze basic blocks. | |
13937 | (vect_create_addr_base_for_vector_ref): Check for outer loop only in | |
13938 | case of loop vectorization. In case of basic block vectorization use | |
782dc37a | 13939 | data-ref itself as a base. |
a70d6342 IR |
13940 | (vect_create_data_ref_ptr): In case of basic block vectorization: |
13941 | don't advance the pointer, add new statements before the current | |
13942 | statement. Adjust function calls. | |
13943 | (vect_supportable_dr_alignment): Support only aligned accesses in | |
13944 | basic block vectorization. | |
13945 | * common.opt (ftree-slp-vectorize): New flag. | |
13946 | * tree-vect-patterns.c (widened_name_p): Adjust function calls. | |
13947 | (vect_pattern_recog_1): Likewise. | |
13948 | * tree-vect-stmts.c (process_use): Likewise. | |
13949 | (vect_init_vector): Add new statements in the beginning of the basic | |
13950 | block in case of basic block SLP. | |
13951 | (vect_get_vec_def_for_operand): Adjust function calls. | |
13952 | (vect_finish_stmt_generation): Likewise. | |
13953 | (vectorizable_call): Add assert that it is loop vectorization, adjust | |
13954 | function calls. | |
13955 | (vectorizable_conversion, vectorizable_assignment): Likewise. | |
13956 | (vectorizable_operation): In case of basic block SLP, take | |
13957 | vectorization factor from statement's type and skip the relevance | |
13958 | check. Adjust function calls. | |
13959 | (vectorizable_type_demotion): Add assert that it is loop | |
13960 | vectorization, adjust function calls. | |
13961 | (vectorizable_type_promotion): Likewise. | |
13962 | (vectorizable_store): Check for outer loop only in case of loop | |
13963 | vectorization. Adjust function calls. For basic blocks, skip the | |
13964 | relevance check and don't advance pointers. | |
13965 | (vectorizable_load): Likewise. | |
13966 | (vectorizable_condition): Add assert that it is loop vectorization, | |
13967 | adjust function calls. | |
13968 | (vect_analyze_stmt): Add argument. In case of basic block SLP, check | |
13969 | that it is not reduction, get vector type, call only supported | |
782dc37a | 13970 | functions, skip loop specific parts. |
a70d6342 IR |
13971 | (vect_transform_stmt): Check for outer loop only in case of loop |
13972 | vectorization. | |
13973 | (new_stmt_vec_info): Add new argument and initialize bb_vinfo. | |
13974 | (vect_is_simple_use): Fix comment, add new argument, fix conditions | |
13975 | for external definition. | |
13976 | * passes.c (pass_slp_vectorize): New pass. | |
13977 | * tree-vect-slp.c (find_bb_location): New function. | |
13978 | (vect_get_and_check_slp_defs): Add argument, adjust function calls, | |
13979 | check for patterns only in loops. | |
13980 | (vect_build_slp_tree): Add argument, adjust function calls, fail in | |
13981 | case of multiple types in basic block SLP. | |
13982 | (vect_mark_slp_stmts_relevant): New function. | |
13983 | (vect_supported_load_permutation_p): Fix comment. | |
13984 | (vect_analyze_slp_instance): Add argument. In case of basic block | |
13985 | SLP, take vectorization factor from statement's type, check that | |
13986 | unrolling factor is 1. Adjust function call. Save SLP instance in | |
13987 | either loop or basic block vectorization structure. Return FALSE, | |
13988 | if SLP failed. | |
13989 | (vect_analyze_slp): Add argument. Get strided stores groups from | |
13990 | either loop or basic block vectorization structure. Return FALSE | |
13991 | if basic block SLP failed. | |
13992 | (new_bb_vec_info): New function. | |
13993 | (destroy_bb_vec_info, vect_slp_analyze_node_operations, | |
13994 | vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise. | |
13995 | (vect_schedule_slp): Add argument. Get SLP instances from either | |
13996 | loop or basic block vectorization structure. Set vectorization factor | |
13997 | to be 1 for basic block SLP. | |
13998 | (vect_slp_transform_bb): New function. | |
13999 | * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define. | |
14000 | ||
0676c393 MM |
14001 | 2009-05-23 Mark Mitchell <mark@codesourcery.com> |
14002 | ||
14003 | * final.c (shorten_branches): Do not align labels for jump tables. | |
14004 | (final_scan_insn): Use JUMP_TABLE_DATA_P. | |
14005 | ||
94324dae EB |
14006 | 2009-05-23 Eric Botcazou <ebotcazou@adacore.com> |
14007 | ||
14008 | * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA. | |
14009 | Remove outdated reference to flow.c and fix nits. | |
14010 | * doc/gccint.texi: Tweak RTL description. | |
14011 | * doc/rtl.texi: Likewise. | |
14012 | ||
92bffc14 DC |
14013 | 2009-05-23 Denis Chertykov <chertykov@gmail.com> |
14014 | ||
14015 | * config/avr/avr.c: Change my email address. | |
14016 | * config/avr/avr.h: Likewise. | |
14017 | * config/avr/avr.md: Likewise. | |
14018 | * config/avr/avr-protos.h: Likewise. | |
14019 | * config/avr/libgcc.S: Likewise. | |
14020 | ||
eec9405e TS |
14021 | 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
14022 | ||
14023 | * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove. | |
14024 | (spu_split_load, spu_split_store): Change return type to int. | |
14025 | (spu_split_convert): Declare. | |
14026 | * config/spu/predicates.md (spu_mem_operand): Remove. | |
14027 | (spu_mov_operand): Update. | |
14028 | (spu_dest_operand, shiftrt_operator, extend_operator): Define. | |
14029 | * config/spu/spu.c (regno_aligned_for_load): Remove. | |
14030 | (reg_aligned_for_addr, spu_expand_load): Define. | |
14031 | (spu_expand_extv): Reimplement and handle MEM. | |
14032 | (spu_expand_insv): Handle MEM. | |
14033 | (spu_sched_reorder): Handle insn's with length 0. | |
14034 | (spu_legitimate_address_p): Reimplement. | |
14035 | (store_with_one_insn_p): Return TRUE for any mode with size | |
14036 | larger than 16 bytes. | |
14037 | (address_needs_split): Define. | |
14038 | (spu_expand_mov): Call spu_split_load and spu_split_store for MEM | |
14039 | operands. | |
14040 | (spu_convert_move): Define. | |
782dc37a | 14041 | (spu_split_load): Use spu_expand_load and change all MEM's to TImode. |
eec9405e TS |
14042 | (spu_split_store): Change all MEM's to TImode. |
14043 | (spu_init_expanders): Preallocate registers that correspond to | |
14044 | LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with | |
14045 | mark_reg_pointer. | |
14046 | (spu_split_convert): Define. | |
14047 | * config/spu/spu.md (QHSI, QHSDI): New mode iterators. | |
14048 | (_move<mode>, _movdi, _movti): Update predicate and condition. | |
14049 | (load, store): Change to define_split. | |
14050 | (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to | |
14051 | extend<mode>ti2. | |
14052 | (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define. | |
14053 | (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one | |
14054 | define_insn_and_split of lshr<mode>3. | |
14055 | (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand. | |
14056 | (<v>ashr<mode>3_imm): Define. | |
14057 | (extv, extzv, insv): Allow MEM operands. | |
14058 | (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti, | |
14059 | shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi, | |
14060 | sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine. | |
14061 | (_spu_convert2): Change to define_insn_and_split and remove the | |
14062 | corresponding define_peephole2. | |
14063 | (stack_protect_set, stack_protect_test, stack_protect_test_si): | |
14064 | Change predicates to memory_operand. | |
14065 | ||
7d31a807 MM |
14066 | 2009-05-22 Mark Mitchell <mark@codesourcery.com> |
14067 | ||
14068 | * config/arm/thumb2.md: Add 16-bit multiply instructions. | |
7d31a807 | 14069 | |
d021d274 MM |
14070 | 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
14071 | ||
14072 | PR tree-optimization/40219 | |
14073 | * tree.c (iterative_hash_expr): Make sure the builtin function is | |
14074 | a normal builtin function and not a front end or back end builtin | |
14075 | before indexing into the built_in_decls array. | |
14076 | ||
4d7a65ea RG |
14077 | 2009-05-22 Richard Guenther <rguenther@suse.de> |
14078 | ||
14079 | PR middle-end/38964 | |
14080 | * alias.c (write_dependence_p): Do not use TBAA for answering | |
14081 | anti-dependence or output-dependence. | |
782dc37a | 14082 | * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code. |
4d7a65ea RG |
14083 | (emit_pointer_definition): Remove. |
14084 | (emit_alias_warning): Likewise. | |
14085 | (find_what_var_points_to): Remove TBAA pruning code. | |
14086 | (find_what_p_points_to): Likewise. Do not warn about strict-aliasing | |
14087 | violations. | |
14088 | (compute_points_to_sets): Remove code computing the set of | |
14089 | dereferenced pointers. | |
14090 | * tree-data-ref.c (dr_may_alias_p): Properly use the split | |
14091 | oracle for querying anti and output dependencies. | |
14092 | * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying | |
14093 | if TBAA may be applied. | |
14094 | (refs_anti_dependent_p): New function. | |
14095 | (refs_output_dependent_p): Likewise. | |
14096 | * tree-ssa-alias.h (refs_anti_dependent_p): Declare. | |
14097 | (refs_output_dependent_p): Likewise. | |
14098 | * doc/tree-ssa.texi (Memory model): New section. | |
14099 | * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove. | |
14100 | * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove. | |
14101 | * cfgexpand.c (expand_gimple_basic_block): Do not handle | |
14102 | GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR. | |
14103 | * expr.c (expand_expr_real_1): Likewise. | |
14104 | * gimple-low.c (lower_stmt): Likewise. | |
14105 | * gimple-pretty-print.c (dump_gimple_stmt): Likewise. | |
14106 | (dump_gimple_cdt): Remove. | |
14107 | * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE. | |
14108 | (gimple_size): Likewise. | |
14109 | (walk_gimple_op): Likewise. | |
14110 | (is_gimple_stmt): Likewise. | |
14111 | (walk_stmt_load_store_addr_ops): Likewise. | |
14112 | (gimple_build_cdt): Remove. | |
14113 | * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove. | |
14114 | * gimple.h (gimple_cdt_new_type): Remove. | |
14115 | (gimple_cdt_new_type_ptr): Likewise. | |
14116 | (gimple_cdt_set_new_type): Likewise. | |
14117 | (gimple_cdt_location): Likewise. | |
14118 | (gimple_cdt_location_ptr): Likewise. | |
14119 | (gimple_cdt_set_location): Likewise. | |
14120 | * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR. | |
14121 | * tree-cfg.c (remove_useless_stmts_1): Do not handle | |
14122 | GIMPLE_CHANGE_DYNAMIC_TYPE. | |
14123 | (verify_types_in_gimple_stmt): Likewise. | |
14124 | * tree-inline.c (estimate_num_insns): Likewise. | |
14125 | (expand_call_inline): Do not copy DECL_NO_TBAA_P. | |
14126 | (copy_decl_to_var): Likewise. | |
14127 | (copy_result_decl_to_var): Likewise. | |
14128 | * tree-pretty-print.c (dump_generic_node): Do not handle | |
14129 | CHANGE_DYNAMIC_TYPE_EXPR. | |
14130 | * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise. | |
14131 | * tree-ssa-operands.c (get_expr_operands): Likewise. | |
14132 | * tree-ssa-structalias.c (struct variable_info): Remove | |
14133 | no_tbaa_pruning member. | |
14134 | (new_var_info): Do not set it based on DECL_NO_TBAA_P. | |
14135 | (unify_nodes): Do not copy it. | |
14136 | (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE. | |
14137 | (dump_solution_for_var): Do not dump no_tbaa_pruning state. | |
14138 | (set_uids_in_ptset): Do not check it. | |
14139 | (find_what_var_points_to): Likewise. | |
14140 | (compute_tbaa_pruning): Remove. | |
14141 | (compute_points_to_sets): Do not call it. | |
14142 | * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR. | |
14143 | * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove. | |
14144 | * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove. | |
14145 | (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise. | |
14146 | (DECL_NO_TBAA_P): Likewise. | |
14147 | (struct tree_decl_common): Move no_tbaa_flag to unused flags section. | |
14148 | * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P. | |
14149 | (expand_omp_atomic_pipeline): Do not set it. | |
14150 | * print-tree.c (print_node): Do not dump it. | |
14151 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove | |
14152 | redundant check. | |
14153 | ||
83a6ac60 VM |
14154 | 2009-05-22 Vladimir Makarov <vmakarov@redhat.com> |
14155 | ||
14156 | PR target/39856 | |
14157 | * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note | |
14158 | for clobber. | |
14159 | ||
fe2978fb MM |
14160 | 2009-05-22 Mark Mitchell <mark@codesourcery.com> |
14161 | ||
14162 | * tree.c (handle_dll_attribute): Mark dllexport'd inlines as | |
14163 | non-external. | |
14164 | ||
134ef638 BE |
14165 | 2009-05-22 Ben Elliston <bje@au.ibm.com> |
14166 | ||
14167 | * Makefile.in (bversion.h, s-bversion): New targets. | |
14168 | (TOPLEV_H): Add bversion.h. | |
14169 | * toplev.h: Include "bversion.h". | |
14170 | (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use | |
14171 | the __format__ attribute only if compiling with the same version | |
14172 | of GCC as the sources (the "build version"). | |
14173 | ||
52fc669d BE |
14174 | 2009-05-22 Ben Elliston <bje@au.ibm.com> |
14175 | ||
14176 | * c-format.c (handle_format_attribute): Fix comment typo. | |
14177 | ||
583ca921 SE |
14178 | 2009-05-21 Steve Ellcey <sje@cup.hp.com> |
14179 | ||
14180 | PR target/37846 | |
14181 | * config/ia64/ia64.opt (mfused-madd): New. | |
14182 | * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD. | |
14183 | * config/ia64/hpux.h (TARGET_DEFAULT): Ditto. | |
14184 | * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4, | |
14185 | madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4, | |
14186 | nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf, | |
14187 | msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4, | |
14188 | nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD. | |
f100a4a8 | 14189 | * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms |
583ca921 SE |
14190 | instruction if !TARGET_FUSED_MADD. |
14191 | (fpma, fpms): Remove colon from name. | |
14192 | ||
150e3929 RG |
14193 | 2009-05-22 Richard Guenther <rguenther@suse.de> |
14194 | ||
14195 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record | |
14196 | TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE. | |
14197 | * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle | |
14198 | TARGET_MEM_REF. | |
14199 | (create_expression_by_pieces): Only convert if necessary. | |
14200 | * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF. | |
14201 | * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST. | |
14202 | ||
9a2b090c AN |
14203 | 2009-05-21 Adam Nemet <anemet@caviumnetworks.com> |
14204 | ||
14205 | * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a | |
14206 | regular pattern from a template and rename it ... | |
14207 | (*extzv_truncsi_exts): ... to this. | |
14208 | ||
33b92c9d RG |
14209 | 2009-05-21 Richard Guenther <rguenther@suse.de> |
14210 | ||
14211 | * cgraph.h (struct cgraph_node): Remove inline_decl member. | |
14212 | * ipa-inline.c (cgraph_mark_inline_edge): Do not check it. | |
14213 | (cgraph_default_inline_p): Likewise. | |
14214 | (cgraph_decide_inlining_incrementally): Likewise. | |
14215 | ||
cabf85c3 L |
14216 | 2009-05-21 H.J. Lu <hongjiu.lu@intel.com> |
14217 | Uros Bizjak <ubizjak@gmail.com> | |
14218 | ||
14219 | * config/i386/cpuid.h (bit_MOVBE): New. | |
14220 | ||
14221 | * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe. | |
14222 | ||
14223 | * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New. | |
14224 | (OPTION_MASK_ISA_MOVBE_UNSET): Likewise. | |
14225 | (ix86_handle_option): Handle OPT_mmovbe. | |
14226 | (ix86_target_string): Add -mmovbe. | |
14227 | (pta_flags): Add PTA_MOVBE. | |
14228 | (processor_alias_table): Add PTA_MOVBE to "atom". | |
14229 | (override_options): Handle PTA_MOVBE. | |
14230 | ||
14231 | * config/i386/i386.h (TARGET_MOVBE): New. | |
14232 | ||
14233 | * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE. | |
14234 | (*bswapsi_movbe): New. | |
14235 | (*bswapdi_movbe): Likewise. | |
14236 | (bswapdi2): Renamed to ... | |
14237 | (*bswapdi_1): This. | |
14238 | (bswapdi2): New expander. | |
14239 | ||
14240 | * config/i386/i386.opt (mmovbe): New. | |
14241 | ||
14242 | * doc/invoke.texi: Document -mmovbe. | |
14243 | ||
9fefa0aa TG |
14244 | 2009-05-21 Taras Glek <tglek@mozilla.com> |
14245 | ||
14246 | * plugin.c (try_init_one_plugin): Updated to new plugin_init API. | |
14247 | * gcc-plugin.h (plugin_init): Updated signature. | |
14248 | * gcc-plugin.h (plugin_name_args): Moved to this header. | |
cabf85c3 L |
14249 | * doc/plugins.texi (plugin_init): Updated documention to reflect |
14250 | API change. | |
9fefa0aa TG |
14251 | * doc/plugins.texi (plugin_name_args): Added to documention. |
14252 | ||
1ea9fe56 MM |
14253 | 2009-05-21 Mark Mitchell <mark@codesourcery.com> |
14254 | ||
14255 | * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern. | |
14256 | (*mul<mode>3neg<mode>add<mode>_neon): Likewise. | |
14257 | ||
52f84254 SZ |
14258 | 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com> |
14259 | ||
14260 | * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and | |
14261 | JUMP_TABLE_DATA_P predicates where applicable. | |
14262 | * config/i386/predicates.md: Ditto. | |
14263 | * config/i386/sse.md: Ditto. | |
14264 | ||
a952487c JJ |
14265 | 2009-05-21 Jakub Jelinek <jakub@redhat.com> |
14266 | ||
93cac287 JJ |
14267 | * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For |
14268 | operand2 -128 override length_immediate attribute to 1. | |
14269 | * config/i386/predicates.md (constm128_operand): New predicate. | |
14270 | ||
a952487c JJ |
14271 | * config/i386/i386.c (memory_address_length): Handle %r12 |
14272 | the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp | |
14273 | also check REGNO. | |
14274 | (ix86_attr_length_address_default): For MODE_SI lea in 64-bit | |
14275 | mode look through optional ZERO_EXTEND and SUBREG. | |
14276 | * config/i386/i386.md (R12_REG): New define_constant. | |
14277 | (prefix_data16): For sse unit set also for MODE_TI insns. | |
14278 | (prefix_rex): For -m32 always return 0. For TYPE_IMOVX | |
14279 | insns set if operand 1 is ext_QIreg_operand. | |
14280 | (modrm): For TYPE_IMOV clear only if not MODE_DI. For | |
14281 | TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened | |
14282 | immediate. | |
14283 | (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change | |
14284 | mode from MODE_DI to MODE_SI. | |
14285 | (movdi_1_rex64): Override modrm and length_immediate attributes | |
14286 | only for movabs (TYPE_IMOV, alternative 2). | |
14287 | (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX. | |
14288 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit, | |
14289 | *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit, | |
14290 | *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit, | |
14291 | *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set | |
14292 | prefix_rex attribute if DImode. | |
14293 | (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64, | |
14294 | *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3, | |
14295 | *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3, | |
14296 | *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate | |
14297 | attribute to 1 if TYPE_ALU and operand 2 is const128_operand. | |
14298 | (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64): | |
14299 | Likewise. For TYPE_IMOV clear length_immediate attribute. | |
14300 | (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, | |
14301 | *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly, | |
14302 | *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp, | |
14303 | *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp, | |
14304 | *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU | |
14305 | or one operand TYPE_ISHIFT. | |
14306 | (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64, | |
14307 | *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit, | |
14308 | *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp, | |
14309 | *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext, | |
14310 | *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly, | |
14311 | *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp, | |
14312 | *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64, | |
14313 | *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64, | |
14314 | *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp, | |
14315 | *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext, | |
14316 | *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly, | |
14317 | *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp, | |
14318 | *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit, | |
14319 | *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp, | |
14320 | *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit, | |
14321 | *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit, | |
14322 | *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0, | |
14323 | set mode attribute, don't override length attribute. | |
14324 | (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute | |
14325 | to 1. | |
14326 | (return_internal_long): Set length attribute to 2 instead of 1. | |
14327 | (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64, | |
14328 | *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear | |
14329 | prefix_rex attribute. | |
782dc37a UB |
14330 | * config/i386/predicates.md (ext_QIreg_operand, const128_operand): |
14331 | New predicates. | |
14332 | (memory_displacement_only_operand): Always return 0 for TARGET_64BIT. | |
a952487c | 14333 | |
64af62c2 RR |
14334 | 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
14335 | ||
14336 | * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern. | |
14337 | ||
c166b898 ILT |
14338 | 2009-05-20 Ian Lance Taylor <iant@google.com> |
14339 | ||
14340 | * tree.c (build_tree_list_vec_stat): New function. | |
14341 | (ctor_to_vec): New function. | |
14342 | (build_nt_call_vec): New function. | |
14343 | (build_call_array): Change args to be a const pointer. | |
14344 | (build_call_vec): New function. | |
14345 | * tree.h (build_nt_call_vec): Declare. | |
14346 | (build_tree_list_vec_stat): Declare. | |
14347 | (build_tree_list_vec): Define. | |
14348 | (build_call_array): Update declaration. | |
14349 | (build_call_vec): Declare. | |
14350 | (ctor_to_vec): Declare. | |
14351 | * c-common.c (tree_vector_cache): New static variable. | |
14352 | (make_tree_vector): New function. | |
14353 | (release_tree_vector): New function. | |
14354 | (make_tree_vector_single): New function. | |
14355 | (make_tree_vector_copy): New function. | |
14356 | * c-common.h (tree_vector_cache, make_tree_vector): Declare. | |
14357 | (make_tree_vector_single, make_tree_vector_copy): Declare. | |
14358 | * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove. | |
14359 | (c_parser_expr_list): Don't manage cache here, instead call | |
14360 | make_tree_vector. | |
14361 | (c_parser_release_expr_list): Remove static function. | |
14362 | (c_parser_vec_to_tree_list): Remove static function. | |
14363 | (c_parser_attributes): Call build_tree_list_vec instead of | |
14364 | c_parser_vec_to_tree_list. Call release_tree_vector instead of | |
14365 | c_parser_release_expr_list. | |
14366 | (c_parser_postfix_expression_after_primary): Likewise. | |
14367 | (c_parser_objc_keywordexpr): Likewise. | |
14368 | ||
40449a90 SL |
14369 | 2009-05-20 Sandra Loosemore <sandra@codesourcery.com> |
14370 | ||
14371 | * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE, | |
14372 | TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and | |
14373 | TARGET_CONVERT_TO_TYPE. | |
14374 | * hooks.c (hook_tree_const_tree_null): Define. | |
14375 | * hooks.h (hook_tree_const_tree_null): Declare. | |
14376 | * target.h (struct gcc_target): Add invalid_parameter_type, | |
14377 | invalid_return_type, promoted_type, and convert_to_type fields. | |
14378 | * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define. | |
14379 | (TARGET_INVALID_RETURN_TYPE): Define. | |
14380 | (TARGET_PROMOTED_TYPE): Define. | |
14381 | (TARGET_CONVERT_TO_TYPE): Define. | |
14382 | (TARGET_INITIALIZER): Update for new fields. | |
14383 | * c-decl.c (grokdeclarator): Check targetm.invalid_return_type. | |
14384 | (grokparms): Check targetm.invalid_parameter_type. | |
14385 | * c-typeck.c (default_conversion): Check targetm.promoted_type. | |
14386 | * c-convert.c (convert): Check targetm.convert_to_type. | |
14387 | ||
642d97ff AN |
14388 | 2009-05-20 Adam Nemet <anemet@caviumnetworks.com> |
14389 | ||
14390 | * config/mips/mips.md (*extenddi_truncate<mode>, | |
14391 | *extendsi_truncate<mode>): Emit exts if supported. Add attribute | |
14392 | defintions. | |
14393 | (*extendhi_truncateqi): New define_insn_and_sptit. | |
14394 | ||
776248b8 JJ |
14395 | 2009-05-20 Jakub Jelinek <jakub@redhat.com> |
14396 | ||
14397 | PR middle-end/40204 | |
14398 | * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite | |
782dc37a | 14399 | recursion if build_int_cst_type returns the same INTEGER_CST as arg1. |
776248b8 | 14400 | |
d98e8686 EB |
14401 | 2009-05-20 Eric Botcazou <ebotcazou@adacore.com> |
14402 | ||
14403 | * fold-const.c (build_fold_addr_expr_with_type): Take the address of | |
14404 | the operand of VIEW_CONVERT_EXPR. | |
14405 | ||
37c50435 L |
14406 | 2009-05-20 H.J. Lu <hongjiu.lu@intel.com> |
14407 | ||
14408 | * config/i386/driver-i386.c (host_detect_local_cpu): Check | |
f3afc8a7 | 14409 | extended family and model for Intel processors. Support Intel Atom. |
37c50435 | 14410 | |
dbb6088f OH |
14411 | 2009-05-20 Olivier Hainque <hainque@adacore.com> |
14412 | ||
14413 | * gstab.h (stab_code_type): Define, to be used instead of the | |
14414 | __stab_debug_code enum, made anonymous. Add 2009 to the copyright | |
14415 | notice. | |
14416 | * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use | |
14417 | occurrences by stab_code_type. | |
14418 | * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused. | |
14419 | ||
7ec49257 MJ |
14420 | 2009-05-20 Martin Jambor <mjambor@suse.cz> |
14421 | ||
14422 | * tree-flow.h (insert_edge_copies_seq): Undeclare. | |
14423 | (sra_insert_before): Likewise. | |
14424 | (sra_insert_after): Likewise. | |
14425 | (sra_init_cache): Likewise. | |
14426 | (sra_type_can_be_decomposed_p): Likewise. | |
14427 | * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c | |
14428 | * tree-sra.c (sra_type_can_be_decomposed_p): Made static. | |
14429 | (sra_insert_before): Likewise. | |
14430 | (sra_insert_after): Likewise. | |
14431 | (sra_init_cache): Likewise. | |
14432 | (insert_edge_copies_seq): Made static and moved upwards. | |
14433 | ||
14434 | * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch | |
14435 | case. | |
14436 | ||
14437 | * tree-flow-inline.h (contains_view_convert_expr_p): New function. | |
14438 | ||
14439 | * ipa-prop.c (get_ssa_def_if_simple_copy): New function. | |
14440 | (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip | |
14441 | simple copies. | |
14442 | ||
0328ae4d RG |
14443 | 2009-05-20 Richard Guenther <rguenther@suse.de> |
14444 | ||
14445 | * expr.c (expand_expr_real_1): Avoid calling do_store_flag | |
14446 | with mismatched comparison modes. | |
14447 | ||
a7994a57 | 14448 | 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
782dc37a | 14449 | |
a7994a57 | 14450 | * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM. |
782dc37a UB |
14451 | (peephole ior (reg, int) -> mov, ior): Refactored for only ARM. |
14452 | * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic | |
14453 | with shifts for Thumb2. | |
14454 | (orsi_notsi): New for orn. | |
14455 | (*thumb_orsi_notshiftsi_si): Allow orn with shifts. | |
14456 | (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2. | |
14457 | * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2. | |
14458 | (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments. | |
14459 | Don't invert remainder for IOR. | |
f100a4a8 | 14460 | |
e36dc339 ZD |
14461 | 2009-05-19 Zdenek Dvorak <ook@ucw.cz> |
14462 | ||
14463 | PR tree-optimization/40087 | |
14464 | * tree-ssa-loop-niter.c (number_of_iterations_ne_max, | |
14465 | number_of_iterations_ne): Rename never_infinite argument. | |
14466 | (number_of_iterations_lt_to_ne, number_of_iterations_lt, | |
14467 | number_of_iterations_le): Handle pointer-type ivs when | |
14468 | exit_must_be_taken is false. | |
14469 | (number_of_iterations_cond): Do not always assume that | |
14470 | exit_must_be_taken if the control variable is a pointer. | |
14471 | ||
5cfd5d9b AP |
14472 | 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com> |
14473 | ||
14474 | * c-typeck.c (build_binary_op): Allow % on integal vectors. | |
14475 | * doc/extend.texi (Vector Extension): Document that % is allowed too. | |
14476 | ||
2f1c7156 L |
14477 | 2009-05-19 H.J. Lu <hongjiu.lu@intel.com> |
14478 | ||
14479 | * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check | |
14480 | ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN. | |
14481 | ||
7bb27074 MLI |
14482 | 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14483 | ||
14484 | PR c/40172 | |
14485 | * c.opt (Wlogical-op): Disabled by default. | |
14486 | * c-opt (c_common_post_options): Do not enable Wlogical-op with | |
14487 | Wextra. | |
14488 | * doc/invoke.texi (Wlogical-op): Likewise. | |
f100a4a8 | 14489 | |
5aefc6a0 EB |
14490 | 2009-05-19 Eric Botcazou <ebotcazou@adacore.com> |
14491 | ||
14492 | * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn | |
14493 | into CASE_CONVERT. | |
14494 | <PLUS_EXPR>: Strip useless type conversions instead of type nops. | |
14495 | Propagate the type of the first operand. | |
14496 | <ASSERT_EXPR>: Simplify. | |
14497 | (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type. | |
14498 | Rewrite using the RHS code as discriminant. | |
14499 | <NOP_EXPR>: Turn into CASE_CONVERT. | |
14500 | <PLUS_EXPR>: Propagate the type of the first operand. | |
14501 | ||
f3a83111 SE |
14502 | 2009-05-19 Steve Ellcey <sje@cup.hp.com> |
14503 | ||
14504 | * config/ia64/ia64-protos.h (ia64_dconst_0_5): New. | |
14505 | (ia64_dconst_0_375): New. | |
14506 | * config/ia64/ia64.c (ia64_override_options): Remove | |
14507 | -minline-sqrt-min-latency warning. | |
14508 | (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New. | |
14509 | (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New | |
14510 | * config/ia64/ia64.md (*sqrt_approx): Remove. | |
14511 | (sqrtsf2): Remove #if 0. | |
14512 | (sqrtsf2_internal_thr): Rewrite and move to div.md. | |
14513 | (sqrtdf): Remove assert. | |
14514 | (sqrtdf2_internal_thr): Rewrite and move to div.md. | |
14515 | (sqrtxf2): Remove #if 0. | |
14516 | (sqrtxf2_internal_thr): Rewrite and move to div.md. | |
14517 | * div.md (sqrt_approx_rf): New. | |
14518 | (sqrtsf2_internal_thr): New implementation. | |
14519 | (sqrtsf2_internal_lat): New. | |
14520 | (sqrtdf2_internal_thr: New implementation. | |
14521 | (sqrtxf2_internal): New implementation. | |
14522 | ||
1ffc7157 FXC |
14523 | 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com> |
14524 | Hans-Peter Nilsson <hp@axis.com> | |
14525 | ||
14526 | * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE) | |
14527 | (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE) | |
14528 | (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE) | |
14529 | (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE) | |
14530 | (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE) | |
14531 | (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE) | |
14532 | (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE) | |
14533 | (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE) | |
14534 | (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE) | |
14535 | (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here... | |
14536 | * c-common.c: ...from here. | |
14537 | ||
db91d9ef MLI |
14538 | 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14539 | ||
f3afc8a7 | 14540 | * c-common.c (warn_logical_operator): Remove unnecessary conditionals. |
db91d9ef | 14541 | |
bbb9d91f KG |
14542 | 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
14543 | ||
14544 | * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types. | |
14545 | ||
ce883f54 BE |
14546 | 2009-05-19 Ben Elliston <bje@au.ibm.com> |
14547 | ||
14548 | * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning | |
14549 | assignments with memcpy calls. | |
14550 | (add_fdes): Likewise. | |
14551 | (binary_search_unencoded_fdes): Likewise. | |
14552 | (linear_search_fdes): Eliminate type puns. | |
f100a4a8 | 14553 | |
377f099a RG |
14554 | 2009-05-19 Richard Guenther <rguenther@suse.de> |
14555 | ||
14556 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do | |
14557 | not falsely claim to have propagated into all uses. | |
14558 | ||
848bc769 BE |
14559 | 2009-05-19 Ben Elliston <bje@au.ibm.com> |
14560 | ||
14561 | * doc/invoke.texi (C Dialect Options): Update OpenMP specification | |
14562 | version to v3.0. | |
14563 | ||
1bb99877 KK |
14564 | 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org> |
14565 | ||
14566 | * config/sh/sh-protos.h (sh_legitimate_address_p): Remove. | |
14567 | * config/sh/sh.c (sh_legitimate_address_p): Make static. | |
14568 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14569 | * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14570 | * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS. | |
f100a4a8 | 14571 | |
82725547 DS |
14572 | 2009-05-18 Dodji Seketeli <dodji@redhat.com> |
14573 | ||
14574 | PR debug/40109 | |
14575 | * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a | |
14576 | child of the containing namespace's DIE. | |
14577 | ||
f6a1e430 AN |
14578 | 2009-05-18 Adam Nemet <anemet@caviumnetworks.com> |
14579 | ||
14580 | * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>, | |
14581 | *zero_extendhi_truncqi): Move after the zero_extend patterns. | |
14582 | (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the | |
14583 | extend patterns. | |
14584 | ||
6a90d232 L |
14585 | 2009-05-18 H.J. Lu <hongjiu.lu@intel.com> |
14586 | ||
14587 | PR target/39942 | |
14588 | * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace | |
14589 | gen_align with gen_pad. | |
14590 | (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of | |
14591 | #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN. | |
14592 | ||
14593 | * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New. | |
14594 | * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise. | |
14595 | ||
14596 | * config/i386/i386.md (align): Renamed to ... | |
14597 | (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with | |
14598 | ASM_OUTPUT_MAX_SKIP_PAD. | |
14599 | ||
c4406f74 AS |
14600 | 2009-05-18 Andreas Schwab <schwab@linux-m68k.org> |
14601 | ||
06555043 AS |
14602 | * config.gcc: Fix variable syntax. |
14603 | ||
c4406f74 AS |
14604 | PR target/39531 |
14605 | * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies | |
14606 | before calling exact_log2. | |
14607 | (output_iorsi3): Likewise. | |
14608 | (output_xorsi3): Likewise. | |
14609 | ||
99052692 KK |
14610 | 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org> |
14611 | ||
14612 | * config/sh/sh.c (expand_cbranchdi4): Use a scratch register | |
14613 | for the none zero constant operand except for EQ and NE | |
14614 | comprisons even when the first operand is R0. | |
14615 | ||
f4aa3848 AK |
14616 | 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com> |
14617 | ||
14618 | * config/s390/2064.md: Remove trailing whitespaces. | |
14619 | * config/s390/2084.md: Likewise. | |
14620 | * config/s390/constraints.md: Likewise. | |
14621 | * config/s390/fixdfdi.h: Likewise. | |
14622 | * config/s390/libgcc-glibc.ver: Likewise. | |
14623 | * config/s390/s390-modes.def: Likewise. | |
14624 | * config/s390/s390-protos.h: Likewise. | |
14625 | * config/s390/s390.c: Likewise. | |
14626 | * config/s390/s390.h: Likewise. | |
14627 | * config/s390/s390.md: Likewise. | |
14628 | * config/s390/tpf-unwind.h: Likewise. | |
14629 | ||
ab7256e4 MK |
14630 | 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com> |
14631 | ||
14632 | * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature. | |
14633 | ||
75df395f MK |
14634 | 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com> |
14635 | ||
14636 | M68K TLS support. | |
14637 | * configure.ac (m68k-*-*): Check if binutils support TLS. | |
14638 | * configure: Regenerate. | |
14639 | * config/m68k/predicates.md (symbolic_operand): Extend comment. | |
14640 | * config/m68k/constraints.md (Cu): New constraint. | |
14641 | * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove. | |
14642 | (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants. | |
14643 | (movsi): Handle TLS symbols. | |
14644 | (addsi3_5200): Handle XTLS symbols, indent. | |
14645 | * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare. | |
14646 | (m68k_tls_reference_p): Declare. | |
14647 | (m68k_legitimize_address): Declare. | |
14648 | (m68k_unwrap_symbol): Declare. | |
14649 | * config/m68k/m68k.opt (mxtls): New option. | |
14650 | * config/m68k/m68k.c (ggc.h): Include. | |
14651 | (m68k_output_dwarf_dtprel): Implement hook. | |
14652 | (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define. | |
14653 | (m68k_expand_prologue): Load GOT pointer when function needs it. | |
14654 | (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols. | |
14655 | (m68k_legitimate_constant_address_p): Same. | |
14656 | (m68k_decompose_address): Handle TLS references. | |
14657 | (m68k_get_gp): New static function. | |
14658 | (enum m68k_reloc): New contants. | |
14659 | (TLS_RELOC_P): New macro. | |
14660 | (m68k_wrap_symbol): New static function. | |
14661 | (m68k_unwrap_symbol): New function. | |
14662 | (m68k_final_prescan_insn_1): New static function. | |
14663 | (m68k_final_prescan_insn): New function. | |
14664 | (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static | |
14665 | functions. | |
14666 | (legitimize_pic_address): Handle TLS references.. | |
14667 | (m68k_tls_get_addr, m68k_get_tls_get_addr) | |
14668 | (m68k_libcall_value_in_a0_p) | |
14669 | (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp) | |
14670 | (m68k_call_m68k_read_tp): Helper variables and functions for ... | |
14671 | (m68k_legitimize_tls_address): Handle TLS references. | |
14672 | (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p): | |
14673 | New functions. | |
14674 | (m68k_legitimize_address): Handle TLS symbols. | |
14675 | (m68k_get_reloc_decoration): New static function. | |
14676 | (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and | |
14677 | UNSPEC_RELOC32. | |
14678 | (m68k_output_dwarf_dtprel): Implement hook. | |
14679 | (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32. | |
14680 | (m68k_libcall_value): Return result in A0 instead of D0 when asked by | |
14681 | m68k_call_* routines. | |
14682 | (sched_attr_op_type): Handle TLS symbols. | |
14683 | (gt-m68k.h): Include. | |
14684 | * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define. | |
14685 | (LEGITIMATE_PIC_OPERAND_P): Support TLS. | |
14686 | ||
8b75fc9b MJ |
14687 | 2009-05-18 Martin Jambor <mjambor@suse.cz> |
14688 | ||
14689 | * ipa-prop.c (ipa_check_stmt_modifications): Removed. | |
14690 | (visit_store_addr_for_mod_analysis): New function. | |
14691 | (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops. | |
14692 | (determine_cst_member_ptr): Use gimple_assign_single_p. | |
14693 | (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p. | |
14694 | (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of | |
14695 | operands. Don't check number of operands of a NOP_EXPR. | |
14696 | ||
f133d4a2 EF |
14697 | 2009-05-18 Eric Fisher <joefoxreal@gmail.com> |
14698 | ||
14699 | * doc/tree-ssa.texi (SSA Operands): Fix a mistake. | |
14700 | ||
ae8af500 L |
14701 | 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14702 | ||
14703 | PR c/40172 | |
14704 | * c-common.c (warn_logical_operator): Don't warn if one of | |
14705 | expression isn't always true or false. | |
14706 | ||
25e8fde8 KT |
14707 | 2009-05-17 Kai Tietz <kai.tietz@onevision.com> |
14708 | ||
ae8af500 L |
14709 | * config/i386/biarch32.h: New file. |
14710 | * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file. | |
25e8fde8 | 14711 | |
ef67af22 AN |
14712 | 2009-05-17 Adam Nemet <anemet@caviumnetworks.com> |
14713 | ||
14714 | * config/mips/mips.md (*zero_extend<mode>_trunchi, | |
14715 | *zero_extend<mode>_truncqi): Merge these into ... | |
14716 | (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern. | |
14717 | Name the pattern following this as *zero_extendhi_truncqi. | |
14718 | ||
e2d87023 BL |
14719 | 2009-05-16 Brad Lucier <lucier@math.purdue.edu> |
14720 | ||
14721 | PR middle-end/39301 | |
14722 | * hwint.h: Add macro HOST_WIDEST_INT_PRINT. | |
14723 | * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT. | |
14724 | (output_info): Make field HOST_WIDEST_INT. | |
14725 | (print_statistics): Use HOST_WIDEST_INT_PRINT. | |
14726 | (dump_bitmat_statistics): Same. | |
14727 | ||
428ddbf0 FXC |
14728 | 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com> |
14729 | ||
14730 | * config.gcc (use_gcc_stdint): Set to wrap. | |
14731 | * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, | |
14732 | INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, | |
14733 | UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
14734 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
14735 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
14736 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
14737 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
14738 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
14739 | ||
1ab8a8c2 JM |
14740 | 2009-05-16 Joseph Myers <joseph@codesourcery.com> |
14741 | ||
14742 | * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and | |
14743 | tune_64. | |
14744 | * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT): | |
14745 | Move definitions earlier. | |
14746 | (OPT_ARCH64, OPT_ARCH32): Define. | |
14747 | (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32 | |
14748 | and tune_64. | |
14749 | ||
70544f44 RE |
14750 | 2009-05-16 Richard Earnshaw <rearnsha@arm.com> |
14751 | ||
14752 | PR target/40153 | |
14753 | * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name | |
14754 | implies. | |
14755 | ||
6241ded1 RE |
14756 | 2009-05-16 Richard Earnshaw <rearnsha@arm.com> |
14757 | ||
14758 | * arm.md (movdi2): Copy non-reg values to DImode registers. | |
14759 | ||
a99c6711 JJ |
14760 | 2009-05-16 Jakub Jelinek <jakub@redhat.com> |
14761 | ||
40a8f07a JJ |
14762 | PR target/39942 |
14763 | * final.c (label_to_max_skip): New function. | |
14764 | (label_to_alignment): Only use LABEL_TO_ALIGNMENT if | |
14765 | CODE_LABEL_NUMBER <= max_labelno. | |
14766 | * output.h (label_to_max_skip): New prototype. | |
14767 | * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to... | |
14768 | (ix86_avoid_jump_mispredicts): ... this. Don't define if | |
14769 | ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment. | |
14770 | Handle CODE_LABELs with >= 16 byte alignment or with | |
14771 | max_skip == (1 << align) - 1. | |
14772 | (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if | |
14773 | ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. | |
14774 | ||
a99c6711 JJ |
14775 | PR target/39942 |
14776 | * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second | |
14777 | .p2align 3 if MAX_SKIP is smaller than 7. | |
14778 | * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise. | |
14779 | ||
7e5487a2 ILT |
14780 | 2009-05-15 Ian Lance Taylor <iant@google.com> |
14781 | ||
14782 | * alias.c (struct alias_set_entry_d): Rename from struct | |
14783 | alias_set_entry. Change all uses. | |
14784 | * except.c (struct call_site_record_d): Rename from struct | |
14785 | call_site_record. Change all uses. | |
14786 | * except.h (struct eh_region_d): Rename from struct eh_region. | |
14787 | Change all uses. | |
14788 | * gcse.c (struct hash_table_d): Rename from struct hash_table. | |
14789 | Change all uses. | |
14790 | * graphite.c (struct ivtype_map_elt_d): Rename fromstruct | |
14791 | ivtype_map_elt. Change all uses. | |
14792 | (struct rename_map_elt_d): Rename fromstruct rename_map_elt. | |
14793 | Change all uses. | |
14794 | (struct ifsese_d): Rename fromstruct ifsese. Change all uses. | |
14795 | * graphite.h (struct name_tree_d): Rename from struct name_tree. | |
14796 | Change all uses. | |
14797 | (struct sese_d): Rename from struct sese. Change all uses. | |
782dc37a UB |
14798 | * omega.h (struct eqn_d): Rename from struct eqn. Change all uses. |
14799 | (struct omega_pb_d): Rename from struct omega_pb. Change all uses. | |
7e5487a2 ILT |
14800 | * optabs.h (struct optab_d): Rename from struct optab. Change all |
14801 | uses. | |
14802 | (struct convert_optab_d): Rename from struct convert_optab. | |
14803 | Change all uses. | |
14804 | * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct | |
14805 | ipa_opt_pass. Change all uses. | |
14806 | * tree-predcom.c (struct dref_d): Rename from struct dref. Change | |
14807 | all uses. | |
14808 | ||
14809 | * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already | |
14810 | defined as a typedef. | |
14811 | (grokdeclarator): If -Wc++-compat, warn if a typedef is already | |
14812 | defined as a tag. | |
14813 | ||
a243fb4a MLI |
14814 | 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14815 | ||
14816 | PR 16302 | |
14817 | * fold-const.c (make_range,build_range_check,merge_ranges): Move | |
14818 | declaration to... | |
f100a4a8 | 14819 | (merge_ranges): Returns bool. |
a243fb4a MLI |
14820 | * tree.h (make_range): .. to here. |
14821 | (build_range_check): Likewise. | |
14822 | (merge_ranges): Likewise. Renamed from merge_ranges. | |
14823 | * c-typeck.c (parser_build_binary_op): Update calls to | |
14824 | warn_logical_operator. | |
14825 | * c-common.c (warn_logical_operator): Add new warning. | |
14826 | * c-common.h (warn_logical_operator): Update declaration. | |
f100a4a8 | 14827 | |
1b53c5f3 MLI |
14828 | 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14829 | ||
782dc37a | 14830 | * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional. |
f100a4a8 | 14831 | |
c128599a KG |
14832 | 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
14833 | ||
f9bab007 KG |
14834 | * doc/install.texi: Document MPC requirements, flags etc. |
14835 | ||
c128599a KG |
14836 | * builtins.c (do_mpc_arg1, fold_builtin_ccos): New. |
14837 | (fold_builtin_cexp): Ensure we get a complex REAL_TYPE. | |
14838 | Evaluate constant arguments. | |
14839 | (fold_builtin_carg): Ensure we get a complex REAL_TYPE. | |
14840 | (fold_builtin_1): Likewise, also evaluate constant arguments. | |
14841 | Remove superfluous break. | |
14842 | (do_mpc_ckconv): New. | |
14843 | * real.h: Include mpc.h. | |
14844 | * toplev.c (print_version): Output MPC version info if available. | |
14845 | ||
d33e4b70 SL |
14846 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14847 | ||
782dc37a | 14848 | * fold-const.c (fold_convert_const_real_from_real): Check for overflow. |
d33e4b70 | 14849 | |
a02ab464 L |
14850 | 2009-05-15 H.J. Lu <hongjiu.lu@intel.com> |
14851 | ||
14852 | * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p | |
14853 | only once. | |
14854 | ||
796bda22 JH |
14855 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14856 | ||
14857 | * doc/invoke.texi (max-early-inliner-iterations): New flag. | |
14858 | * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE. | |
14859 | (try_inline): Fix return value. | |
14860 | (cgraph_decide_inlining_incrementally): Honor new value. | |
14861 | (cgraph_early_inlining): Handle indirect inlining. | |
14862 | * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New. | |
14863 | ||
d88e5c37 JH |
14864 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14865 | ||
14866 | * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag. | |
14867 | * cgraphunit.c (cgraph_finalize_function): Set it. | |
14868 | (cgraph_expand_function): Use it. | |
14869 | ||
ae63687c SL |
14870 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14871 | ||
14872 | * real.c (encode_ieee_half): Define. | |
14873 | (decode_ieee_half): Define. | |
14874 | (ieee_half_format): Define. | |
14875 | (arm_half_format): Define. | |
14876 | * real.h (ieee_half_format): Declare. | |
14877 | (arm_half_format): Declare. | |
14878 | ||
1bd74ad9 SL |
14879 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14880 | ||
14881 | * optabs.c (prepare_float_lib_cmp): Test that the comparison, | |
14882 | swapped, and reversed optabs exist before trying to use them. | |
14883 | ||
dc34db56 PB |
14884 | 2009-05-15 Paul Brook <paul@codesourcery.com> |
14885 | Sandra Loosemore <sandra@codesourcery.com> | |
14886 | ||
dc34db56 PB |
14887 | * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure |
14888 | loads. Allow PRE_DEC. | |
14889 | (output_move_neon): Handle PRE_DEC. | |
14890 | (arm_print_operand): Add 'A' for neon structure loads. | |
14891 | * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype. | |
14892 | * config/arm/neon.md (neon_mov): Update comment. | |
14893 | * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand | |
14894 | calls. | |
14895 | (Um): New constraint. | |
14896 | ||
1d405d7b JH |
14897 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14898 | ||
14899 | Revert the following patch until testsuite fallout is fixed: | |
14900 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
14901 | * cgraph.h (struct inline_summary): New filed self_wize, | |
14902 | size_inlining_benefit, self_time and time_inlining_benefit. | |
14903 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
14904 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
14905 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
14906 | (ipcp_update_callgraph): Do not touch function bodies. | |
14907 | * ipa-inline.c: Include except.h | |
782dc37a | 14908 | (MAX_TIME): New constant. |
1d405d7b JH |
14909 | (overall_insns): Remove |
14910 | (overall_size, max_benefit): New static variables. | |
14911 | (cgraph_estimate_time_after_inlining): New function. | |
14912 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
14913 | (cgraph_clone_inlined_nodes): Update size. | |
14914 | (cgraph_mark_inline_edge): Update size. | |
14915 | (cgraph_estimate_growth): Use size info. | |
14916 | (cgraph_check_inline_limits): Check size. | |
14917 | (cgraph_default_inline_p): Likewise. | |
14918 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
14919 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
14920 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
14921 | and times. | |
1d405d7b | 14922 | (cgraph_decide_inlining): Likewise. |
00c5fa1b EB |
14923 | (cgraph_decide_inlining_incrementally): Likewise; honor |
14924 | PARAM_EARLY_INLINING_INSNS. | |
1d405d7b JH |
14925 | (likely_eliminated_by_inlining_p): New predicate. |
14926 | (estimate_function_body_sizes): New function. | |
14927 | (compute_inline_parameters): Use it. | |
14928 | * except.c (must_not_throw_labels): New function. | |
14929 | * except.h (must_not_throw_labels): Declare. | |
14930 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
14931 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
14932 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
14933 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
14934 | (PARAM_INLINE_CALL_COST): Remove. | |
14935 | (PARAM_EARLY_INLINING_INSNS): New. | |
14936 | ||
7ffa47ca RG |
14937 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14938 | ||
14939 | * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals, | |
14940 | not TODO_update_ssa. | |
14941 | ||
828552ed RG |
14942 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14943 | ||
14944 | PR tree-optimization/39999 | |
14945 | * gimple.h (gimple_expr_type): Use the expression type looking | |
14946 | through useless conversions. | |
14947 | * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type. | |
14948 | (vn_nary_op_insert_stmt): Likewise. | |
14949 | (simplify_binary_expression): Likewise. | |
14950 | ||
248fc9f3 RG |
14951 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14952 | ||
14953 | * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta): | |
14954 | New options, enabled by default. | |
14955 | * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta): | |
14956 | Document. | |
14957 | * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop. | |
14958 | * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop. | |
14959 | * tree-ssa-structalias.c (gate_tree_pta): New function. | |
14960 | (pass_build_alias): Use it. | |
14961 | ||
16b29cc4 JM |
14962 | 2009-05-15 Joseph Myers <joseph@codesourcery.com> |
14963 | ||
14964 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also | |
14965 | recurse on an invariant address if a conversion from a pointer | |
14966 | type to a wider integer type is involved. | |
14967 | ||
125cae84 JH |
14968 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14969 | ||
14970 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
14971 | * cgraph.h (struct inline_summary): New filed self_wize, | |
14972 | size_inlining_benefit, self_time and time_inlining_benefit. | |
14973 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
14974 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
14975 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
14976 | (ipcp_update_callgraph): Do not touch function bodies. | |
14977 | * ipa-inline.c: Include except.h | |
782dc37a | 14978 | (MAX_TIME): New constant. |
125cae84 JH |
14979 | (overall_insns): Remove |
14980 | (overall_size, max_benefit): New static variables. | |
14981 | (cgraph_estimate_time_after_inlining): New function. | |
14982 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
14983 | (cgraph_clone_inlined_nodes): Update size. | |
14984 | (cgraph_mark_inline_edge): Update size. | |
14985 | (cgraph_estimate_growth): Use size info. | |
14986 | (cgraph_check_inline_limits): Check size. | |
14987 | (cgraph_default_inline_p): Likewise. | |
14988 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
14989 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
14990 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
14991 | and times. | |
125cae84 | 14992 | (cgraph_decide_inlining): Likewise. |
00c5fa1b EB |
14993 | (cgraph_decide_inlining_incrementally): Likewise; honor |
14994 | PARAM_EARLY_INLINING_INSNS. | |
125cae84 JH |
14995 | (likely_eliminated_by_inlining_p): New predicate. |
14996 | (estimate_function_body_sizes): New function. | |
14997 | (compute_inline_parameters): Use it. | |
14998 | * except.c (must_not_throw_labels): New function. | |
14999 | * except.h (must_not_throw_labels): Declare. | |
15000 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
15001 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
15002 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
15003 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
15004 | (PARAM_INLINE_CALL_COST): Remove. | |
15005 | (PARAM_EARLY_INLINING_INSNS): New. | |
15006 | doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update. | |
15007 | (inline-call-cost): Remove. | |
15008 | (early-inlining-insns): New. | |
15009 | ||
84fb43a1 EB |
15010 | 2009-05-15 Eric Botcazou <ebotcazou@adacore.com> |
15011 | ||
15012 | * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them | |
15013 | for bounds. | |
15014 | (print_int_cst_bounds_in_octal_p): Likewise. | |
15015 | (dbxout_type): Adjust calls to above functions. Be prepared to deal | |
15016 | with subtypes. | |
15017 | * dwarf2out.c (base_type_die): Likewise. | |
15018 | (is_subrange_type): Delete. | |
15019 | (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds. | |
15020 | (modified_type_die): Call subrange_type_for_debug_p on subtypes. | |
f3afc8a7 UB |
15021 | * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it |
15022 | if the destination type is boolean. | |
84fb43a1 EB |
15023 | (build_range_check): Do not special-case subtypes. |
15024 | (fold_sign_changed_comparison): Likewise. | |
15025 | (fold_unary): Likewise. | |
15026 | * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define. | |
15027 | (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS. | |
15028 | * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds. | |
f3afc8a7 UB |
15029 | * tree.c (subrange_type_for_debug_p): New predicate based on the |
15030 | former is_subrange_type. | |
84fb43a1 EB |
15031 | * tree.h (subrange_type_for_debug_p): Declare. |
15032 | * tree-chrec.c (avoid_arithmetics_in_type_p): Delete. | |
15033 | (convert_affine_scev): Remove call to above function. | |
15034 | (chrec_convert_aggressive): Likewise. | |
15035 | * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return | |
15036 | false for conversions involving subtypes. | |
15037 | * tree-vrp.c (vrp_val_max): Do not special-case subtypes. | |
15038 | (vrp_val_min): Likewise. | |
15039 | (needs_overflow_infinity): Likewise. | |
15040 | (extract_range_from_unary_expr): Likewise. | |
15041 | ||
331d9186 PB |
15042 | 2009-05-15 Paolo Bonzini <bonzini@gnu.org> |
15043 | ||
e9351712 L |
15044 | * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS. |
15045 | * config/frv/frv.c: Likewise. | |
15046 | * config/s390/s390.c: Likewise. | |
15047 | * config/sparc/sparc.h: Likewise. | |
15048 | * config/i386/i386.h: Likewise. | |
15049 | * config/i386/i386.c: Likewise. | |
15050 | * config/crx/crx.c: Likewise. | |
15051 | * config/m68hc11/m68hc11.h: Likewise. | |
15052 | * config/iq2000/iq2000.c: Likewise. | |
15053 | * config/mn10300/mn10300.h: Likewise. | |
15054 | * config/mn10300/mn10300.c: Likewise. | |
15055 | * config/m68k/m68k.c: Likewise. | |
15056 | * config/rs6000/rs6000.c: Likewise. | |
15057 | * config/rs6000/xcoff.h: Likewise. | |
15058 | * config/rs6000/linux64.h: Likewise. | |
15059 | * config/rs6000/sysv4.h: Likewise. | |
15060 | * config/score/score3.c: Likewise. | |
15061 | * config/score/score7.c: Likewise. | |
15062 | * config/score/score.c: Likewise. | |
15063 | * config/arm/arm.md: Likewise. | |
15064 | * config/mips/mips.c: Likewise. | |
15065 | * config/mips/mips.md: Likewise. | |
15066 | * config/bfin/bfin.h: Likewise. | |
15067 | * config/pa/pa.c: Likewise. | |
15068 | * config/pa/constraints.md: Likewise. | |
15069 | ||
15070 | * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete. | |
15071 | * config/pdp11/pdp11.c (legitimate_address_p): Delete. | |
15072 | * config/pdp11/pdp11.h: Use memory_address_p instead. | |
331d9186 | 15073 | |
09639a83 ILT |
15074 | 2009-05-14 Ian Lance Taylor <iant@google.com> |
15075 | ||
15076 | * passes.c (finish_optimization_passes): Change i to int. | |
15077 | * plugin.c (plugins_active_p): Change event to int. | |
15078 | (dump_active_plugins): Likewise. | |
15079 | * reginfo.c (invalid_mode_change_p): Change to to unsigned int. | |
15080 | Add cast. | |
15081 | * tree.c (tree_range_check_failed): Change c to unsigned int. | |
15082 | (omp_clause_range_check_failed): Likewise. | |
15083 | (build_common_builtin_nodes): Change mode to int. Add cast. | |
15084 | * config/ia64/ia64.c (is_emitted): Change r to unsigned int. | |
15085 | (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise. | |
15086 | ||
15087 | * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using | |
15088 | ++ or -- with a variable of enum type. | |
15089 | ||
c04a56bf SB |
15090 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
15091 | ||
15092 | PR driver/40144 | |
15093 | * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op. | |
15094 | ||
237ee620 SB |
15095 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
15096 | ||
15097 | * store-motion.c: Do not include params.h | |
15098 | * Makefile.in: Fix dependencies for various files. | |
15099 | ||
1154c4fa SB |
15100 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
15101 | ||
15102 | * auto-inc-dec.c: Fix pass description, remove apparent | |
15103 | accidental duplication. | |
15104 | ||
61c27353 L |
15105 | 2009-05-14 H.J. Lu <hongjiu.lu@intel.com> |
15106 | ||
15107 | PR middle-end/40147 | |
15108 | * ipa-utils.h (memory_identifier_string): Moved to ... | |
15109 | * tree.h (memory_identifier_string): Here. Add GTY(()). | |
15110 | ||
c6c3dba9 PB |
15111 | 2009-05-14 Paolo Bonzini <bonzini@gnu.org> |
15112 | ||
15113 | * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this | |
15114 | in the former documentation of... | |
15115 | (GO_IF_LEGITIMATE_ADDRESS): ... this. | |
15116 | * ira-conflicts.c (get_dup_num): Use address_operand. | |
15117 | * targhooks.c (default_legitimate_address_p): New. | |
15118 | * targhooks.h (default_legitimate_address_p): New. | |
15119 | * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: | |
15120 | Call hook. | |
15121 | * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook. | |
15122 | * target.h (struct target): Add legitimate_address_p. | |
15123 | * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15124 | (TARGET_INITIALIZER): Include it. | |
15125 | ||
15126 | * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15127 | * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove. | |
15128 | * config/alpha/alpha.c (alpha_legitimate_address_p): Make static. | |
15129 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15130 | ||
15131 | * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15132 | (REG_OK_STRICT_P): Delete. | |
15133 | * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to... | |
15134 | (frv_legitimate_address_p_1): ... this. | |
15135 | * config/frv/frv.c (frv_legitimate_address_p): Forward to... | |
15136 | (frv_legitimate_address_p_1): ... the renamed old | |
15137 | frv_legitimate_address_p. | |
15138 | * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p. | |
15139 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15140 | ||
15141 | * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15142 | * config/s390/s390-protos.h (legitimate_address_p): Remove. | |
15143 | * config/s390/s390.c (legitimate_address_p): Rename to... | |
15144 | (s390_legitimate_address_p): ... this, make static. | |
15145 | (legitimize_address): Adjust call. | |
15146 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15147 | * config/s390/constraints.md ("e"): Call strict_memory_address_p. | |
15148 | ||
15149 | * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15150 | * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove. | |
15151 | * config/m32c/m32c.c (m32c_legitimate_address_p): Make static. | |
15152 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15153 | ||
15154 | * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15155 | * config/spu/spu-protos.h (spu_legitimate_address): Remove. | |
15156 | * config/spu/spu.c (spu_legitimate_address): Rename to... | |
15157 | (spu_legitimate_address_p): ... this, make static. | |
15158 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15159 | ||
15160 | * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15161 | * config/sparc/sparc-protos.h (legitimate_address_p): Remove. | |
15162 | * config/sparc/sparc.c (legitimate_address_p): Rename to... | |
15163 | (sparc_legitimate_address_p): ... this, make static and return bool. | |
15164 | (legitimize_address): Adjust call. | |
15165 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15166 | ||
15167 | * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15168 | * config/i386/i386-protos.h (legitimate_address_p): Remove. | |
15169 | * config/i386/i386.c (legitimate_address_p): Rename to... | |
15170 | (ix86_legitimate_address_p): ... this, make static. | |
15171 | (constant_address_p): Move after it, adjust call. | |
15172 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15173 | ||
15174 | * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15175 | * config/avr/avr-protos.h (legitimate_address_p): Remove. | |
15176 | * config/avr/avr.c (legitimate_address_p): Rename to... | |
15177 | (avr_legitimate_address_p): ... this, make static. | |
15178 | (legitimize_address): Adjust call. | |
15179 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15180 | ||
15181 | * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15182 | * config/crx/crx-protos.h (crx_legitimate_address_p): Remove. | |
15183 | * config/crx/crx.c (crx_legitimate_address_p): Make static. | |
15184 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15185 | ||
15186 | * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15187 | * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove. | |
15188 | * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static. | |
15189 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15190 | ||
15191 | * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15192 | * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p): | |
15193 | Remove. | |
15194 | * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): | |
15195 | Make static. | |
15196 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15197 | ||
15198 | * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15199 | * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address): | |
15200 | Remove. | |
15201 | * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address): | |
15202 | Rename to... | |
15203 | (m68hc11_legitimate_address_p): ... this, make static. | |
15204 | (go_if_legitimate_address_internal): Rename to... | |
15205 | (m68hc11_legitimate_address_p_1): ... this. | |
15206 | (legitimize_address): Adjust call. | |
15207 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15208 | ||
15209 | * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
782dc37a UB |
15210 | * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove. |
15211 | * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static. | |
c6c3dba9 PB |
15212 | (TARGET_LEGITIMATE_ADDRESS_P): New. |
15213 | ||
15214 | * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15215 | * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove. | |
15216 | * config/mn10300/mn10300.c (legitimate_address_p): Rename to... | |
15217 | (mn10300_legitimate_address_p): ... this, make static. | |
15218 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15219 | ||
15220 | * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15221 | * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove. | |
15222 | * config/m68k/m68k.c (m68k_legitimate_address_p): Make static. | |
15223 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15224 | ||
15225 | * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15226 | (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete. | |
15227 | (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above. | |
15228 | * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15229 | * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove. | |
15230 | * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to... | |
15231 | (rs6000_legitimate_address_p): ... this, make static. | |
15232 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15233 | (REG_MODE_OK_FOR_BASE_P): Delete. | |
15234 | (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P. | |
15235 | ||
15236 | * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15237 | * config/picochip/picochip-protos.h (picochip_legitimate_address_p): | |
15238 | Delete. | |
15239 | * config/picochip/picochip.c (picochip_legitimate_address_p): Make | |
15240 | static, adjust types. | |
15241 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15242 | ||
15243 | * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15244 | * config/score/score.c (score_address_p): Rename to... | |
15245 | (score_legitimate_address_p): ... this. | |
15246 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15247 | * config/score/score3.c (score3_address_p): Rename to... | |
15248 | (score3_legitimate_address_p): ... this. | |
15249 | * config/score/score7.c (score7_address_p): Rename to... | |
15250 | (score7_legitimate_address_p): ... this. | |
15251 | ||
15252 | * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS, | |
15253 | THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS, | |
15254 | GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15255 | * config/arm/arm-protos.h (thumb1_legitimate_address_p, | |
15256 | thumb2_legitimate_address_p): Delete. | |
15257 | (arm_legitimate_address_p): Rename to... | |
15258 | (arm_legitimate_address_outer_p): ... this. | |
15259 | * config/arm/constraints.md ("Uq"): Adjust call. | |
15260 | * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise. | |
f3afc8a7 UB |
15261 | * config/arm/arm.c (arm_legitimate_address_p): New, rename old one |
15262 | to... | |
c6c3dba9 | 15263 | (arm_legitimate_address_outer_p): ... this. |
f3afc8a7 UB |
15264 | (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make |
15265 | static. | |
c6c3dba9 PB |
15266 | (TARGET_LEGITIMATE_ADDRESS_P): New. |
15267 | ||
15268 | * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15269 | * config/mips/mips-protos.h (mips_legitimate_address_p): Remove. | |
15270 | * config/mips/mips.c (mips_legitimate_address_p): ... Make static. | |
15271 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15272 | ||
15273 | * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15274 | * config/vax/vax-protos.h (legitimate_address_p): Remove. | |
15275 | * config/vax/vax.c (legitimate_address_p): Rename to... | |
15276 | (vax_legitimate_address_p): ... this, make static. | |
15277 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15278 | ||
15279 | * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15280 | * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove. | |
15281 | * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static. | |
15282 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15283 | ||
15284 | * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15285 | * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove. | |
15286 | * config/mmix/mmix.c (mmix_legitimate_address): Rename to... | |
15287 | (mmix_legitimate_address_p): ... this, make static. | |
15288 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15289 | ||
15290 | * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
15291 | * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove. | |
15292 | * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static. | |
15293 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
15294 | ||
3bd0d9c8 PB |
15295 | 2009-05-14 Paolo Bonzini <bonzini@gnu.org> |
15296 | ||
15297 | * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling | |
15298 | of MODE_COMPLEX_INT. | |
15299 | ||
fe049033 RO |
15300 | 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
15301 | ||
15302 | * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to | |
15303 | LCT_NORMAL in function call. | |
15304 | * mips-tdump.c (print_file_desc): Add cast to enum type. | |
15305 | * mips-tfile.c (add_ext_symbol): Add casts to enum types. | |
15306 | (mark_stabs): Add casts to enum types. | |
15307 | (parse_stabs_common): Add casts to enum types. | |
16f7ad42 | 15308 | |
b0907a6c AN |
15309 | 2009-05-13 Adam Nemet <anemet@caviumnetworks.com> |
15310 | ||
15311 | * config/mips/mips.c (mips_print_operand) <REG, MEM, default>: | |
15312 | Check for invalid values of LETTER. | |
15313 | ||
d1c8e08a TG |
15314 | 2009-05-13 Taras Glek <tglek@mozilla.com> |
15315 | ||
f3afc8a7 UB |
15316 | * attribs.c (register_attribute): moved out attribute registration |
15317 | into register_attribute. | |
15318 | * doc/plugins.texi: Documented register_attribute and | |
15319 | PLUGIN_ATTRIBUTES. | |
16f7ad42 TG |
15320 | * gcc-plugin.h: Added forward decl for register_attribute. |
15321 | * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES. | |
15322 | * plugin.c (register_callback, invoke_plugin_callbacks): Added | |
15323 | PLUGIN_ATTRIBUTES boilerplate. | |
d1c8e08a | 15324 | |
4ed7f970 DK |
15325 | 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com> |
15326 | ||
15327 | * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration | |
15328 | values even in sentinel and empty entries. | |
15329 | (ms_printf_flag_specs): Likewise. | |
15330 | (ms_scanf_flag_specs): Likewise. | |
15331 | (ms_strftime_flag_specs): Likewise. | |
15332 | (ms_print_char_table): Likewise. | |
15333 | (ms_scan_char_table): Likewise. | |
15334 | (ms_time_char_table): Likewise. | |
15335 | ||
3d8fa148 DK |
15336 | 2009-05-13 Doug Kwan <dougkwan@google.com> |
15337 | ||
15338 | * tree-ssa-sccvn.c (compare_ops): Stabilize qsort. | |
15339 | ||
f06257d3 AN |
15340 | 2009-05-13 Adam Nemet <anemet@caviumnetworks.com> |
15341 | ||
15342 | * config/mips/mips.md (store): Add attributes for QI and HI. | |
15343 | Update comment. | |
15344 | (truncdisi2, truncdihi2, truncdiqi2): Merge these into ... | |
15345 | (truncdi<mode>2): ... this new pattern. | |
15346 | ||
fb201767 BH |
15347 | 2009-05-13 Brad Hards <bradh@kde.org> |
15348 | ||
15349 | * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi. | |
15350 | ||
c7bda60e | 15351 | 2009-05-14 Jakub Jelinek <jakub@redhat.com> |
efc3527a BE |
15352 | Ben Elliston <bje@au.ibm.com> |
15353 | ||
15354 | PR middle-end/40035 | |
15355 | * dse.c (check_mem_read_rtx): Guard against width == -1. | |
15356 | ||
ce985b43 MM |
15357 | 2009-05-13 Michael Matz <matz@suse.de> |
15358 | ||
15359 | PR middle-end/39976 | |
15360 | * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function. | |
15361 | (trivially_conflicts_p): New function. | |
15362 | (insert_backedge_copies): Use it. | |
15363 | ||
7de1d221 JJ |
15364 | 2009-05-13 Janis Johnson <janis187@us.ibm.com> |
15365 | ||
15366 | * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_. | |
15367 | (handle_stdc_pragma): Use new enum constant names. | |
15368 | (handle_pragma_float_const_decimal64): Ditto. | |
15369 | ||
bfefafc6 ILT |
15370 | 2009-05-13 Ian Lance Taylor <iant@google.com> |
15371 | ||
15372 | * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not | |
15373 | tree.def. | |
15374 | ||
286c4fcb NS |
15375 | 2009-05-13 Nathan Sidwell <nathan@codesourcery.com> |
15376 | ||
15377 | * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX. | |
15378 | * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455 | |
15379 | multilibs. | |
15380 | * config/m68k/m68k.h (FL_UCLINUX): Define. | |
15381 | ||
ebaa6ea7 JH |
15382 | 2009-05-13 Jan Hubicka <jh@suse.cz> |
15383 | ||
15384 | * options.c (gfc_post_options): -fwhole-program imply -fwhole-file. | |
15385 | ||
2b703e1a KK |
15386 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
15387 | ||
15388 | * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns | |
15389 | unless -fschedule-insns is specified. | |
15390 | ||
c3537723 KK |
15391 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
15392 | ||
15393 | PR target/39561 | |
15394 | * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set | |
15395 | TARGET_EXPAND_CBRANCHDI4. | |
15396 | * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4. | |
15397 | * config/sh/sh.opt (mexpand-cbranchdi): Remove. | |
15398 | (cmpeqdi): Fix comment. | |
15399 | ||
cdeed45a KK |
15400 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
15401 | ||
15402 | * config/sh/sh-protos.h (sh_legitimate_index_p): Declare. | |
15403 | (sh_legitimate_address_p): Likewise. | |
15404 | * config/sh/sh.c (sh_legitimate_index_p): New. | |
15405 | (sh_legitimate_address_p): Likewise. | |
15406 | * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter. | |
15407 | (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise. | |
15408 | (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove. | |
15409 | (MAYBE_BASE_REGISTER_RTX_P): New macro. | |
15410 | (MAYBE_INDEX_REGISTER_RTX_P): Likewise. | |
15411 | (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P. | |
15412 | (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P. | |
15413 | (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p. | |
15414 | (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p. | |
15415 | ||
02f0b13a JH |
15416 | 2009-05-12 Jan Hubicka <jh@suse.cz> |
15417 | ||
15418 | * tree-inline.c (estimate_operator_cost): Add operands; | |
15419 | when division happens by constant, it is cheap. | |
15420 | (estimate_num_insns): Loads and stores are not having cost of 0; | |
15421 | EH magic stuff is cheap; when computing runtime cost of switch, | |
15422 | use log2 base of amount of its cases; builtin_expect has cost of 0; | |
15423 | compute cost for moving return value of call. | |
15424 | (init_inline_once): Initialize time_based flags. | |
15425 | * tree-inline.h (eni_weights_d): Add time_based flag. | |
15426 | ||
ecb7f6de PB |
15427 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
15428 | ||
15429 | * df-core.c: Update head documentation. | |
15430 | ||
c24151ce MM |
15431 | 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com> |
15432 | ||
15433 | PR bootstrap/40118 | |
15434 | * rs6000.c (rs6000_generate_compare): Use op1b instead of | |
15435 | shadowing exisiting variable op1. | |
15436 | ||
fbdf817d UB |
15437 | 2009-05-12 Uros Bizjak <ubizjak@gmail.com> |
15438 | ||
704bf7c8 | 15439 | PR target/37179 |
fbdf817d UB |
15440 | * config/i386/driver-i386.c (processor_signatures): New enum. |
15441 | (SIG_GEODE): Move from vendor_signatures to processor_signatures. | |
15442 | (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE | |
15443 | processor signature to detect geode processor. | |
15444 | ||
5e8d1826 PB |
15445 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
15446 | ||
15447 | Revert: | |
15448 | ||
15449 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> | |
15450 | ||
15451 | * optabs.c (prepare_cmp_insn): Temporarily disable test that | |
15452 | causes spurious differences between trunk and cond-optab branch. | |
15453 | ||
f90b7a5a PB |
15454 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
15455 | ||
fbdf817d UB |
15456 | * dojump.c (compare_from_rtx): Delete. |
15457 | * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize | |
15458 | any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail | |
f90b7a5a PB |
15459 | if the comparison does not satisfy the predicate; test predicates for |
15460 | operands 2 and 3 of a cstore pattern. Don't try cstore optab | |
15461 | further if one existing pattern fails. | |
fbdf817d | 15462 | * expr.h (compare_from_rtx): Delete. |
f90b7a5a | 15463 | (prepare_operand): Declare it. |
fbdf817d | 15464 | * optabs.c: Change "lib call" to "libcall" throughout. |
f90b7a5a | 15465 | (bcc_gen_fctn, setcc_gen_code, trap_rtx, |
fbdf817d UB |
15466 | HAVE_conditional_trap, emit_cmp_insn): Delete. |
15467 | (can_compare_p): Delete cmp_optab case. | |
f90b7a5a | 15468 | (prepare_float_lib_cmp): Return an rtx and a machine mode. |
fbdf817d UB |
15469 | Accept other parameters by value. |
15470 | (prepare_operand): Make non-static. | |
15471 | (prepare_cmp_insn): Return an rtx and a machine mode. Accept | |
15472 | other parameters by value. Try to widen operands here based on | |
15473 | an optab_methods argument and looking at cbranch_optab. | |
15474 | (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening | |
15475 | loop. Use cbranch_optab directly. | |
15476 | (emit_cmp_and_jump_insns): Fix comment. Adjust call to | |
15477 | prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete | |
15478 | assertion. | |
15479 | (emit_conditional_move, emit_conditional_add): Inline what's needed | |
15480 | of compare_from_rtx, using new prepare_cmp_insn for the rest. | |
15481 | (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab | |
15482 | with COMPARE. Move cmov_optab and cstore_optab above | |
15483 | with cbranch_optab, move cmp_optab down with ucmp_optab, | |
15484 | remove tst_otpab. Do not initialize trap_rtx. | |
15485 | (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate | |
f90b7a5a PB |
15486 | for trap code. Do not check HAVE_conditional_trap. Use |
15487 | prepare_cmp_insn. Accept no predicate for operand 3. | |
fbdf817d UB |
15488 | * optabs.h (OTI_cmp): Mark as used only for libcalls. |
15489 | (OTI_ctrap, ctrap_optab): New. | |
15490 | (tst_optab): Delete. | |
15491 | (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete. | |
15492 | * ifcvt.c (find_if_header): Replace HAVE_conditional_trap | |
15493 | with lookup of ctrap_optab. | |
f3afc8a7 UB |
15494 | * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code): |
15495 | Delete. | |
fbdf817d UB |
15496 | (ctrap_optab): New. |
15497 | ||
15498 | * combine.c (combine_simplify_rtx, simplify_set): Do not | |
15499 | special case comparing against zero for cc0 machines. | |
f90b7a5a PB |
15500 | * simplify-rtx.c (simplify_binary_operation_1): Never remove |
15501 | COMPARE on cc0 machines. | |
15502 | (simplify_relational_operation): Return a new expression when | |
15503 | a COMPARE could be removed. | |
fbdf817d UB |
15504 | * final.c (final_scan_insn): Compare cc_status values |
15505 | against LHS of a (compare FOO (const_int 0)) cc0 source. | |
15506 | Also check if cc_status.value is the full compare. | |
f90b7a5a | 15507 | |
fbdf817d UB |
15508 | * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete. |
15509 | (cstoreMM4): Document. | |
f90b7a5a | 15510 | (conditional_trap): Document ctrapMM4 instead. |
fbdf817d | 15511 | (sync_compare_and_swapMM): Refer to cbranchcc4. |
f90b7a5a PB |
15512 | (Dependent Patterns): Eliminate obsolete information referring to |
15513 | the old jump optimization phase. | |
fbdf817d | 15514 | (Canonicalization): Include cbranchcc4 case, omit canonicalization |
f90b7a5a PB |
15515 | of compares with 0 on cc0 machines. |
15516 | (Jump Patterns): Refer to MODE_CC jump patterns preferably, | |
15517 | avoiding references to cc0. Remove text about storing operands | |
15518 | in cmpMM. | |
15519 | * doc/tm.texi (Condition Codes): Include blurb on different | |
15520 | condition code representations, separate into subsections for | |
15521 | CC0, MODE_CC and conditional execution. | |
15522 | ||
fbdf817d UB |
15523 | * config/alpha/alpha-protos.h (alpha_emit_conditional_branch, |
15524 | alpha_emit_setcc): Accept operands and a machine mode. | |
15525 | * config/alpha/alpha.c (alpha_emit_conditional_branch): | |
15526 | Get code/op0/op1 from operands, use machine mode argument | |
15527 | instead of alpha_compare.fp_p. Emit the branch here. | |
15528 | (alpha_emit_setcc): Likewise, and return boolean. | |
15529 | (alpha_emit_conditional_move): Likewise. Assert that | |
15530 | cmp_op_mode == cmp_mode, and simplify accordingly. | |
15531 | * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete. | |
15532 | * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete. | |
15533 | (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4): | |
15534 | Delete. | |
15535 | (stack probe test): Use cbranchdi4. | |
15536 | * config/alpha/predicates.md (alpha_cbranch_operator): New. | |
15537 | ||
f100a4a8 | 15538 | * config/arc/arc.c (gen_compare_reg): Do not emit cmp. |
fbdf817d UB |
15539 | * config/arc/arc.h (movsicc, movsfcc): Use it. |
15540 | (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove. | |
15541 | (cbranchsi4, cstoresi4): New. | |
f100a4a8 | 15542 | (cmpsi, bCC and sCC expanders): Remove. |
fbdf817d UB |
15543 | |
15544 | * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete. | |
15545 | * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete. | |
15546 | * config/arm/predicates.md (arm_comparison_operator): Only include | |
15547 | floating-point operators if there is a hardware floating-point unit. | |
15548 | * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT, | |
15549 | deferring to cbranch_cc and cstore_cc respectively. | |
15550 | (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4, | |
15551 | cbranch_cc, cstore_cc): New. | |
15552 | (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and | |
f90b7a5a | 15553 | arm_compare_op1. |
fbdf817d UB |
15554 | (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete. |
15555 | ||
15556 | * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype. | |
15557 | * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand | |
15558 | as an argument. | |
15559 | (adjust_insn_length): Adjust calls. | |
15560 | (avr_reorg): Handle (compare (foo) (const_int 0)). | |
15561 | * config/avr/avr.md (tstqi, tsthi, tstsi): Remove. | |
15562 | (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize. | |
15563 | (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity. | |
15564 | (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here. | |
15565 | (bCC): Remove. | |
15566 | (cbranchqi4, cbranchhi4, cbranchsi4): New. | |
f90b7a5a PB |
15567 | (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE. |
15568 | ||
fbdf817d UB |
15569 | * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete. |
15570 | (cbranchsi4, cstorebi4, cstoresi4): New. | |
f90b7a5a | 15571 | (movbisi): This insn is duplicate, split it to zero_extend. |
fbdf817d UB |
15572 | * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete |
15573 | (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode. | |
15574 | (bfin_optimize_loop): Use cbranch expander. | |
15575 | * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete. | |
15576 | * config/bfin/predicates.md (bfin_cbranch_operator): Rename to... | |
15577 | (bfin_bimode_comparison_operator): ... this. | |
15578 | (bfin_direct_comparison_operator): New. | |
f100a4a8 | 15579 | |
fbdf817d UB |
15580 | * config/cris/cris.c (cris_normal_notice_update_cc): Look |
15581 | inside (compare FOO (const_int 0)). | |
15582 | (cris_rtx_costs): Handle ZERO_EXTRACT. | |
15583 | * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete. | |
15584 | (*tstdi_non_v32): Fold in *cmpdi_non_v32. | |
15585 | (*tstdi_v32): Delete. | |
15586 | (*cmpdi_non_v32): Add M alternative for operand 1. | |
15587 | (cmpsi, cmp<mode>): Make private. | |
15588 | (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS | |
15589 | with COMPARE. | |
15590 | (cbranch<mode>4, cbranchdi4, cstore<mode>4): New. | |
15591 | ||
15592 | * config/crx/crx.md (cstore<mode>4, cbranchcc4): New. | |
15593 | (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete. | |
15594 | (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator. | |
f90b7a5a PB |
15595 | (cc_reg_operand): New. |
15596 | (any_cond): Delete. | |
fbdf817d UB |
15597 | * config/crx/crx.c (crx_compare_op0, crx_compare_op1, |
15598 | crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete. | |
15599 | * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete. | |
15600 | * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch, | |
15601 | crx_expand_scond): Delete. | |
15602 | ||
15603 | * config/fr30/fr30.md (cmp<mode>, bCC): Delete. | |
15604 | (cbranchsi4): New. | |
15605 | * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete | |
15606 | * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete. | |
15607 | ||
15608 | * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4, | |
15609 | cstoresi4, cstoresf4, cstoredf4): New. | |
15610 | (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove. | |
15611 | * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc): | |
15612 | Receive the entire operands array. | |
15613 | * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete. | |
15614 | * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete. | |
15615 | * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc): | |
15616 | Get test/op0/op1 from the operands array. | |
15617 | (frv_emit_cond_move): Get test/op0/op1 from the test_rtx. | |
15618 | ||
15619 | * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands. | |
15620 | (h8300_expand_store): New. | |
15621 | * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO | |
15622 | (const_int 0)). | |
15623 | (h8300_expand_branch): Emit compare here. Adjust for new arguments. | |
15624 | (h8300_expand_store): New. | |
15625 | * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE | |
15626 | or do not try to produce (set (cc0) REG). | |
15627 | (peepholes): Wrap arguments with COMPARE. Add a peephole to | |
15628 | change a compare into a move to a scratch register. Disable some | |
15629 | peepholes when comparing with zero. | |
15630 | (tstsi, tsthi, tstsi, cmpqi): Make private. | |
15631 | (cmphi): Delete. | |
15632 | (bCC, sCC): Delete. | |
15633 | (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4, | |
15634 | cstoresi4): New. | |
f90b7a5a PB |
15635 | |
15636 | * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc, | |
15637 | ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1. | |
15638 | (ix86_emit_i387_log1p): Use gen_cbranchxf4. | |
15639 | (ix86_emit_i387_log1p): Use cbranchxf2. | |
15640 | (ix86_expand_setcc): Return void. | |
15641 | * config/i386/i386-protos.h (ix86_expand_setcc): Return void. | |
15642 | * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf, | |
15643 | cmp<MODEF>, cmpcc): Remove. | |
fbdf817d UB |
15644 | (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4, |
15645 | cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4, | |
15646 | cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New. | |
f90b7a5a PB |
15647 | (sCC and bCC expanders): Remove. |
15648 | (stack_protect_test): Use cbranchcc4. | |
15649 | ||
fbdf817d UB |
15650 | * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1): |
15651 | Delete. | |
15652 | (ia64_expand_compare): Accept three rtx by reference and return void. | |
15653 | * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete. | |
15654 | (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code | |
15655 | from *expr. Update *expr with the BImode comparison to do. | |
15656 | * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf, | |
15657 | cmptf, bCC, sCC, conditional_trap): Delete. | |
f100a4a8 | 15658 | (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, |
fbdf817d UB |
15659 | cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4, |
15660 | cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4, | |
15661 | ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New. | |
15662 | * config/ia64/predicates.md (ia64_cbranch_operator): New. | |
15663 | ||
15664 | * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change | |
15665 | type of last argument. | |
15666 | * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove. | |
15667 | (gen_conditional_branch): Get code/cmp0/cmp1 from operands, | |
15668 | use machine mode argument instead of branch_type. Remove dead | |
15669 | code for floating-point comparisons. | |
15670 | * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove. | |
15671 | * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC): | |
15672 | Remove. | |
15673 | (cbranchsi4, cstoresi4): New. | |
15674 | * config/iq2000/predicates.md (reg_or_const_operand): New. | |
15675 | ||
15676 | * config/m32c/m32c.md (cbranch splitter): Use match_op_dup. | |
15677 | * config/m32c/m32c.md (any_cond, gl_cond): Delete. | |
15678 | (b<code>_op): Rewrite to... | |
15679 | (bcc_op): ... this, using match_operator. | |
15680 | (s<code>_op): Rewrite to... | |
15681 | (scc_op): ... this, using match_operator. | |
15682 | (s<code>_24_op): Rewrite to... | |
15683 | (scc_op_24): ... this, using match_operator. | |
15684 | (s<code>_<mode>): Rewrite to... | |
15685 | (cstore<mode>4): ... this, using match_operator. | |
15686 | (s<code>_<mode>_24): Rewrite to... | |
15687 | (cstore<mode>4_24): ... this, using match_operator. | |
15688 | * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare, | |
15689 | m32c_unpend_compare, m32c_expand_scc): Delete. | |
15690 | * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0, | |
15691 | m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete. | |
15692 | (m32c_expand_movcc): Change NE to EQ if necessary. | |
15693 | (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code. | |
15694 | ||
15695 | * config/m32r/m32r-protos.h (gen_cond_store): New. | |
15696 | * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete. | |
15697 | (gen_cond_store): New, from sCC patterns. | |
15698 | (m32r_expand_block_move): Use cbranchsi4. | |
15699 | * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete. | |
15700 | * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete. | |
15701 | (cbranchsi4, cstoresi4): New. | |
f100a4a8 | 15702 | |
fbdf817d UB |
15703 | * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1): |
15704 | Delete. | |
15705 | (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT. | |
f90b7a5a | 15706 | (m68hc11_notice_update_cc): Look into a compare with 0. |
fbdf817d UB |
15707 | * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1): |
15708 | Delete. | |
15709 | * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi, | |
15710 | cmphi, cmpqi, bCC): Delete. | |
15711 | (cbranchsi4, cbranchhi4, cbranchqi4): New. | |
15712 | (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used, | |
15713 | bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg | |
15714 | sets with COMPARE. | |
15715 | ||
15716 | * config/m68k/predicates.md (m68k_cstore_comparison_operator, | |
15717 | const0_operand, const1_operand, m68k_subword_comparison_operand): New. | |
15718 | * config/m68k/constraints.md (H): New. | |
15719 | * config/m68k/m68k.md (tstdi): Remove define_expand, use name for | |
15720 | the define_insn below. | |
15721 | (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete. | |
15722 | (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal, | |
15723 | *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed | |
15724 | patterns): Wrap RHS with COMPARE. | |
15725 | (tst<FP>_68881, tst<FP>_cf): Use const0_operand. | |
15726 | (*cmpdi_internal): Name this pattern. | |
15727 | (cmpdi): Change to define_insn. | |
15728 | (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4, | |
15729 | cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New. | |
15730 | (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator | |
15731 | predicate. | |
15732 | (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered, | |
15733 | sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete | |
15734 | (conditional_trap): Change to... | |
15735 | (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these. | |
15736 | (*conditional_trap): Use the ordered_comparison_operator and | |
15737 | const1_operand predicates. | |
15738 | * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete. | |
15739 | (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap. | |
15740 | (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE. | |
15741 | * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete. | |
15742 | ||
15743 | * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1, | |
15744 | mcore_modify_comparison, mcore_gen_compare_reg): Remove. | |
f100a4a8 | 15745 | (mcore_gen_compare): New. |
fbdf817d UB |
15746 | * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete. |
15747 | (mcore_modify_comparison, mcore_gen_compare_reg): Fold into... | |
15748 | (mcore_gen_compare): ... this. | |
15749 | * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove. | |
15750 | (cbranchsi4, cstoresi4): New, using mcore_gen_compare. | |
15751 | (stack probe pattern): Use cbranchsi4. | |
15752 | ||
15753 | * config/mips/predicates.md (mips_cstore_operator): New. | |
15754 | * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands. | |
15755 | * config/mips/mips.md (any_cond): Delete. | |
15756 | (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates, | |
15757 | always succeed. | |
15758 | (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2, | |
15759 | fixuns_truncsfdi2): Use cbranch patterns. | |
f100a4a8 | 15760 | (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. |
fbdf817d UB |
15761 | (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4. |
15762 | Adjust call to mips_expand_conditional_branch. | |
15763 | (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to | |
15764 | cstore<GPR:mode>4. | |
15765 | * config/mips/mips-protos.h (mips_expand_conditional_branch, | |
15766 | mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes. | |
15767 | * config/mips/mips.c (cmp_operands): Delete. | |
15768 | (mips_emit_compare): Get comparison operands from *op0/*op1. | |
15769 | (mips_expand_scc): Get code/op0/op1/target from operands. Assert | |
15770 | that it succeeds. Use op0/op1 instead of cmp_operands. | |
15771 | (mips_expand_conditional_branch, mips_expand_conditional_move, | |
15772 | mips_expand_conditional_trap): Likewise. | |
f100a4a8 | 15773 | (mips_block_move_loop): Use cbranch patterns. |
fbdf817d UB |
15774 | * config/mips/mips.h (cmp_operands): Delete. |
15775 | ||
15776 | * config/mmix/mmix.c (mmix_valid_comparison): Delete. | |
15777 | (mmix_gen_compare_reg): Just return a register in the right CC mode. | |
15778 | * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New. | |
15779 | * config/mmix/mmix.md (cmpdi, cmpdf): Remove. | |
15780 | (*cmpcc_folded): Rename to... | |
15781 | (*cmpdi_folded): this. | |
15782 | (*cmpcc): Rename to... | |
15783 | (*cmps): ... this. | |
15784 | (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg. | |
15785 | (bCC): Remove. | |
15786 | (cbranchdi4): New. | |
15787 | (cbranchdf4): New. Handle invalid comparisons here. | |
15788 | * config/mmix/predicates.md (float_comparison_operator): New. | |
15789 | ||
15790 | * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and | |
15791 | zero_extract to be cheap in (compare (zero_extract) (const_int 0). | |
15792 | * config/mn10300/mn10300.md (tst): Delete. | |
15793 | (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi): | |
15794 | Name these patterns and wrap RHS in a compare. | |
15795 | (*cmpsi): Make this pattern private. Include tst. | |
15796 | (*cmpsf): Make this pattern private. | |
15797 | (and and zero_extract cc0 set): Wrap RHS in a COMPARE. | |
15798 | (compare with zero peepholes): Likewise. | |
15799 | (bCC): Remove. | |
15800 | (cbranchsi4, cbranchsf4): New. | |
15801 | (casesi): Use cbranchsi4. | |
15802 | ||
15803 | * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1, | |
15804 | hppa_branch_type): Delete. | |
15805 | (return_addr_rtx): Use cbranchsi4. | |
15806 | (emit_bcond_fp): Accept all operands. Replace CODE with NE. | |
15807 | Emit CCFPmode comparison here. | |
15808 | (gen_cmp_fp): Delete, now part of emit_bcond_fp. | |
15809 | * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1, | |
15810 | hppa_branch_type): Delete. | |
15811 | * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete. | |
15812 | (movsicc, movdicc): Remove references to hppa_compare_op0, | |
15813 | hppa_compare_op1 and compare_from_rtx. | |
15814 | (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New. | |
15815 | (casesi): Use cbranchsi4. | |
15816 | ||
15817 | * config/pdp11/pdp11-protos.h (output_jump): Change prototype. | |
15818 | * config/pdp11/pdp11.c (output_jump): Embed opcodes here. | |
15819 | * config/pdp11/pdp11.md (register_or_const0_operand): New. | |
15820 | (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives. | |
15821 | (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete. | |
15822 | (bCC): Delete. | |
15823 | (cbranchdf4, cbranchhi4, cbranchqi4): New. | |
15824 | (*branch, *branch_inverted): New. | |
15825 | ||
15826 | * config/picochip/picochip.md (cbranchhi4): Use | |
15827 | ordered_comparison_operator. | |
15828 | (cmphi, bCC): Remove. | |
15829 | ||
15830 | * config/rs6000/predicates.md (rs6000_cbranch_operator): New. | |
15831 | (trap_comparison_operator): Delete. | |
15832 | * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND, | |
15833 | rs6000_emit_cbranch): Accept mode and operands. | |
15834 | * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1, | |
f100a4a8 | 15835 | rs6000_compare_fp_p): Delete. |
fbdf817d UB |
15836 | (rs6000_generate_compare): Accept mode and comparison. Extract code |
15837 | and op0/op1 from there. Replace references to rs6000_compare_op0 | |
15838 | and rs6000_compare_op1. | |
15839 | (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and | |
15840 | extract result from passed operands. | |
15841 | (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and | |
15842 | extract loc from passed operands. | |
15843 | (rs6000_emit_cmove): Likewise. | |
15844 | * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1, | |
15845 | rs6000_compare_fp_p): Delete. | |
15846 | * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete. | |
15847 | (cbranch<GPR>4, cbranch<FP>4): New. | |
15848 | (cstore<mode>4): New. Consolidate here all choices about when to use | |
15849 | portable or specialized sCC sequences. | |
15850 | (stack_protect_test): Use cbranchsi4. | |
15851 | (conditional_trap): Replace with ctrap<GPR>4. | |
15852 | (conditional trap insn): Replace trap_comparison_operator with | |
f100a4a8 | 15853 | ordered_comparison_operator. |
fbdf817d UB |
15854 | |
15855 | * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete. | |
15856 | (s390_emit_prologue): Use ctrap. | |
15857 | * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete. | |
15858 | * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator): | |
15859 | New predicates replacing... | |
15860 | * config/s390/s390.md (COMPARE, SCOND): ... these iterators. | |
15861 | (cmp<GPR>, cmp<FP>, cmpcc): Delete. | |
15862 | (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch. | |
15863 | (add<mode>cc): Do not use s390_compare_op0/op1. | |
15864 | (s<code>): Change to... | |
15865 | (cstore<mode>4): ... this. Do not use s390_compare_op0/op1. | |
15866 | (seq): Change to... | |
15867 | (cstorecc4): ... this. Handle EQ or NE equally. | |
15868 | (*sne): Un-privatize for use in cstorecc4. | |
15869 | (b<code>): Change to... | |
15870 | (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these. | |
15871 | (conditional_trap): Replace with... | |
15872 | (ctrap<GPR>4, ctrap<FP>4): ... these. | |
15873 | (stack_protect): Use cbranchcc4. | |
15874 | ||
15875 | * config/score/score-conv.h (cmp_op0, cmp_op1): Delete. | |
15876 | * config/score/score-protos.h (score_gen_cmp): Delete. | |
15877 | * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete. | |
15878 | (score_block_move-loop): Use cbranchsi4. | |
15879 | * config/score/score.md (cbranchsi4): New. | |
15880 | (cmpsi, bCC): Delete. | |
15881 | * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete. | |
15882 | (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1. | |
15883 | * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete. | |
15884 | (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1. | |
15885 | * config/score/score3.h (score3_gen_cmp): Delete. | |
15886 | * config/score/score7.h (score7_gen_cmp): Delete. | |
15887 | ||
15888 | * config/sh/sh-protos.h (prepare_scc_operands): Rename to... | |
15889 | (sh_emit_scc_to_t): ... this. Return void. | |
15890 | (from_compare): Rename to... | |
15891 | (sh_emit_compare_and_branch): ... this. | |
15892 | (sh_emit_compare_and_set): New. | |
15893 | (sh_expand_t_scc): Accept operands. | |
15894 | * config/sh/predicates.md (sh_float_comparison_operator): New. | |
15895 | * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete. | |
15896 | (prepare_scc_operands): Rename to... | |
15897 | (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from | |
15898 | arguments. | |
15899 | (sh_emit_cheap_store_flag): New. | |
f90b7a5a | 15900 | (sh_emit_set_t_insn): New. |
fbdf817d UB |
15901 | (from_compare): Rename to... |
15902 | (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite | |
15903 | handling of TARGET_SH2E floating point to avoid recursive call. | |
15904 | Generate branch here. | |
15905 | (sh_emit_compare_and_set): New. | |
15906 | (sh_expand_t_scc): Get op0/op1 from arguments. | |
15907 | (sh_emit_cheap_store_flag): New. | |
15908 | * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi | |
15909 | cases. | |
f90b7a5a | 15910 | (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint. |
fbdf817d UB |
15911 | (cmpsi, cmpdi, cmpsf, cmpdf): Delete. |
15912 | (movsicc, movdicc): Do nothing when it recreated operands from | |
15913 | sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to | |
15914 | prepare_scc_operands (now sh_emit_scc_to_t). | |
15915 | (udivdi3): Use cstoresi4. | |
15916 | (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq, | |
15917 | bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete. | |
15918 | (cbranchint4_media, cbranchfp4_media): New. | |
15919 | (casesi): Use cbranchdi4. | |
15920 | (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered): | |
15921 | Delete. | |
15922 | (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New. | |
15923 | (movnegt): Remove second operand. | |
15924 | (cbranchsf4, cbranchdf4): New. | |
15925 | (stack_protect): Use cbranchdi4/cbranchsi4. | |
15926 | ||
15927 | * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete. | |
15928 | (gen_compare_reg): Accept comparison, extract part of it to... | |
f100a4a8 | 15929 | (gen_compare_reg_1): ... this. |
fbdf817d UB |
15930 | (gen_compare_operator): Delete. |
15931 | (gen_v9_scc): Accept separate destination, comparison code and arms. | |
15932 | Do not use sparc_compare_op0/sparc_compare_op1. | |
15933 | (emit_scc_insn, emit_conditional_branch_insn): New. | |
15934 | (emit_v9_brxx): Make static. Remove useless assertion. | |
15935 | (sparc_emit_float_lib_cmp): Return RTL instead of calling | |
15936 | emit_cmp_insn. | |
15937 | (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4. | |
15938 | * config/sparc/sparc-protos.h (gen_compare_reg, | |
f90b7a5a PB |
15939 | sparc_emit_float_lib_cmp): Adjust prototype. |
15940 | (emit_scc_insn, emit_conditional_branch_insn): New. | |
15941 | (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete. | |
fbdf817d UB |
15942 | * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete. |
15943 | * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all | |
15944 | iterators to the top. | |
15945 | (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend, | |
15946 | snesi_special_extend, sCC, bCC, seqdi_special_trunc, | |
f90b7a5a | 15947 | snedi_special_trunc): Delete. |
fbdf817d | 15948 | (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc |
f90b7a5a | 15949 | and snedi_special_trunc. |
fbdf817d UB |
15950 | (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4, |
15951 | cbranchdi4, cbranch<F:mode>4): New. | |
15952 | (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp | |
15953 | here. Use gen_compare_reg instead of gen_compare_operator. | |
15954 | (conditional_trap): Replace with... | |
15955 | (ctrapsi4, ctrapdi4): ... this. | |
15956 | (stack_protect_test): Use cbranchcc4. | |
15957 | ||
15958 | * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second | |
15959 | argument to rtx. | |
f100a4a8 | 15960 | * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. |
fbdf817d UB |
15961 | (spu_emit_branch_or_set): Get code/op0/op1 from second argument. |
15962 | Change spu_compare_op0/op1 to op0/op1 throughout. Get target | |
15963 | from operands[0] or operands[3] depending on is_set. | |
15964 | * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove. | |
15965 | * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>, | |
15966 | cmpdf, bCC), sCC: Remove. | |
f100a4a8 | 15967 | (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, |
fbdf817d UB |
15968 | cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4, |
15969 | cstoredf4): New. | |
15970 | (mov<mode>cc): Accept ordered_comparison_operator, adjust call to | |
15971 | spu_emit_branch_or_set. | |
15972 | ||
15973 | * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch): | |
15974 | Add two arguments. | |
15975 | * config/stormy16/stormy16.h (xstormy16_compare_op0, | |
15976 | xstormy16_compare_op1): Delete. | |
15977 | * config/stormy16/stormy16.c (xstormy16_compare_op0, | |
f100a4a8 | 15978 | xstormy16_compare_op1): Delete. |
fbdf817d UB |
15979 | (xstormy16_emit_cbranch): Get op0/op1 from the new arguments. |
15980 | Adjust calls. | |
15981 | * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New. | |
15982 | (cmphi, cmpsi, bCC): Remove. | |
15983 | ||
15984 | * config/v850/v850.md (tstsi, cmpsi): Fold into... | |
15985 | (*cmpsi): ... this one. | |
15986 | (cbranchsi4, cstoresi4): New. | |
15987 | (bCC expanders): Delete. | |
15988 | (sCC insns): Fold into... | |
15989 | (*setcc): ... this one. | |
f100a4a8 | 15990 | (casesi): Do not use gen_cmpsi and gen_bgtu. |
f90b7a5a PB |
15991 | (various splits): Wrap "naked" RHS of a cc0 set with COMPARE. |
15992 | (movsicc): Simplify. | |
15993 | * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE. | |
15994 | ||
fbdf817d UB |
15995 | * config/vax/vax-protos.h (cond_name): New. |
15996 | (vax_output_conditional_branch): Remove. | |
15997 | * config/vax/vax.c (cond_name): New. | |
15998 | (vax_output_conditional_branch): Remove. | |
15999 | * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name. | |
16000 | * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove. | |
16001 | (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst. | |
16002 | (bit<VAXint>): Wrap source with (compare). | |
16003 | (b<code> and following unnamed pattern): Rename to *branch and | |
16004 | *branch_reversed. Change macroization to match_operator. | |
16005 | (cbranch<VAXint>4, cbranch<VAXfp>4): New. | |
16006 | ||
16007 | * config/xtensa/predicates.md (xtensa_cstoresi_operator): New. | |
16008 | * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch): | |
16009 | Change last argument to machine_mode. | |
16010 | (xtensa_expand_scc): Add machine_mode argument. | |
16011 | * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove. | |
16012 | (gen_conditional_move, xtensa_expand_conditional_branch, | |
16013 | xtensa_expand_scc, xtensa_expand_conditional_move): Use mode | |
16014 | instead of branch_type, fetch cmp0/cmp1/test_code from operands[]. | |
16015 | Adjust operand numbers. | |
16016 | * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type): | |
16017 | Delete. | |
16018 | * config/xtensa/xtensa.md (any_cond, any_scc): Delete. | |
16019 | (cmpsi, cmpsf, b<code>, s<code>): Delete. | |
16020 | (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New. | |
f90b7a5a | 16021 | |
16670495 PB |
16022 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
16023 | ||
16024 | * optabs.c (prepare_cmp_insn): Temporarily disable test that | |
16025 | causes spurious differences between trunk and cond-optab branch. | |
16026 | ||
4a4a4e99 AO |
16027 | 2009-05-12 Alexandre Oliva <aoliva@redhat.com> |
16028 | ||
16029 | PR target/37137 | |
16030 | * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document. | |
16031 | ||
72b9acff AO |
16032 | 2009-05-12 Alexandre Oliva <aoliva@redhat.com> |
16033 | ||
16034 | * tree.c (iterative_hash_pointer): Delete. | |
16035 | (iterative_hash_expr): Short-circuit handling of NULL pointer. | |
16036 | Hash UIDs and versions of SSA names. Don't special-case built-in | |
16037 | function declarations. | |
16038 | ||
b7dd69ac ILT |
16039 | 2009-05-11 Ian Lance Taylor <iant@google.com> |
16040 | ||
16041 | PR bootstrap/40103 | |
16042 | * graphite.c: Force -Wc++-compat to only be a warning before | |
16043 | #including "cloog/cloog.h". | |
16044 | ||
ed102b70 MJ |
16045 | 2009-05-11 Martin Jambor <mjambor@suse.cz> |
16046 | ||
16047 | * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false. | |
f100a4a8 | 16048 | |
08f1af2e JH |
16049 | 2009-05-11 Jan Hubicka <jh@suse.cz> |
16050 | ||
16051 | * tree-ssa-loop-ivcanon.c: Include target.h | |
16052 | (struct loop_size): new structure. | |
16053 | (constant_after_peeling): New predicate. | |
16054 | (tree_estimate_loop_size): New function. | |
16055 | (estimated_unrolled_size): Rewrite for new estimates. | |
16056 | (try_unroll_loop_completely): Use new estimates. | |
16057 | * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h | |
16058 | ||
a7d39bd3 AP |
16059 | 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com> |
16060 | ||
16061 | * config/spu/spu-c.c (spu_categorize_keyword): Update for recent | |
16062 | libcpp interface change. | |
16063 | (spu_macro_to_expand): Likewise. | |
16064 | ||
f5a1f0d0 PB |
16065 | 2009-05-11 Paolo Bonzini <bonzini@gnu.org> |
16066 | ||
16067 | PR tree-optimization/40026 | |
16068 | * gimplify.c (gimplify_init_constructor): Change initial conditional | |
16069 | to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after | |
16070 | optimize_compound_literals_in_ctor. | |
16071 | ||
c260f01f NS |
16072 | 2009-05-11 Nathan Sidwell <nathan@codesourcery.com> |
16073 | ||
16074 | * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx): | |
16075 | New devices. | |
16076 | * doc/invoke.texi (M680x0 Options): Document new coldfire cpus. | |
16077 | ||
df398a37 L |
16078 | 2009-05-11 H.J. Lu <hongjiu.lu@intel.com> |
16079 | ||
16080 | * tree-vect-data-refs.c (vect_analyze_group_access): Use | |
16081 | HOST_WIDE_INT for gap. | |
16082 | ||
4da39468 IR |
16083 | 2009-05-11 Ira Rosen <irar@il.ibm.com> |
16084 | ||
16085 | PR tree-optimization/40074 | |
16086 | * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into | |
16087 | account in group size and step comparison. | |
16088 | ||
4effdf02 RG |
16089 | 2009-05-11 Richard Guenther <rguenther@suse.de> |
16090 | ||
16091 | * passes.c (init_optimization_passes): Strip now incorrect comment. | |
16092 | (execute_function_todo): Do not set PROP_alias. | |
16093 | * tree-pass.h (PROP_alias): Remove. | |
16094 | * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias. | |
16095 | * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias. | |
16096 | * tree-nrv.c (pass_return_slot): Likewise. | |
16097 | * tree-object-size.c (pass_object_sizes): Likewise. | |
16098 | * tree-ssa-dom.c (pass_dominator): Likewise. | |
16099 | (pass_phi_only_cprop): Likewise. | |
16100 | * tree-ssa-dse.c (pass_dse): Likewise. | |
16101 | * tree-ssa-phiopt.c (pass_phiopt): Likewise. | |
16102 | (pass_cselim): Likewise. | |
16103 | * tree-ssa-pre.c (pass_pre): Likewise. | |
16104 | (pass_fre): Likewise. | |
16105 | * tree-ssa-reassoc.c (pass_reassoc): Likewise. | |
16106 | * tree-ssa-sink.c (pass_sink_code): Likewise. | |
16107 | * tree-stdarg.c (pass_stdarg): Likewise. | |
16108 | * tree-tailcall.c (pass_tail_calls): Likewise. | |
16109 | * tree-vrp.c (pass_vrp): Likewise. | |
16110 | ||
24b97832 ILT |
16111 | 2009-05-10 Ian Lance Taylor <iant@google.com> |
16112 | ||
16113 | * basic-block.h (enum profile_status): Break out of struct | |
16114 | control_flow_graph. | |
16115 | * cgraph.h (struct inline_summary): Break out of struct | |
16116 | cgraph_local_info. | |
16117 | * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out | |
16118 | of struct cgraph_order_sort. | |
fbdf817d | 16119 | * combine.c (enum undo_kind): New enum, broken out of struct undo. |
24b97832 ILT |
16120 | * cse.c (struct branch_path): Break out of struct |
16121 | cse_basic_block_data. | |
16122 | * except.h (enum eh_region_type): Break out of struct eh_region. | |
16123 | * gcc.c (enum add_del): Break out of struct modify_target. | |
fbdf817d | 16124 | * genrecog.c (enum decision_type): Break out of struct decision_test. |
24b97832 ILT |
16125 | * ggc-page.c (struct ggc_pch_ondisk): Break out of struct |
16126 | ggc_pch_data. | |
fbdf817d UB |
16127 | * matrix-reorg.c (struct free_info): Break out of struct matrix_info. |
16128 | * regmove.c (enum match_use): New enum, broken out of struct match. | |
24b97832 ILT |
16129 | * sched-int.h (enum post_call_group): New enum, broken out of |
16130 | struct deps. | |
16131 | (struct deps_reg): Break out of struct deps. | |
16132 | * target.h (struct asm_int_op): Break out of struct gcc_target. | |
16133 | * tree-eh.c (struct goto_queue_node): Break out of struct | |
16134 | leh_tf_state. | |
16135 | * tree-inline.h (enum copy_body_cge_which): Break out of | |
16136 | copy_body_data. | |
16137 | * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass. | |
16138 | ||
16139 | * c-decl.c (in_struct, struct_types): New static variables. | |
16140 | (pushtag): Add loc parameter. Change all callers. | |
16141 | (lookup_tag): Add ploc parameter. Change all callers. | |
16142 | (check_compound_literal_type): New function. | |
16143 | (parser_xref_tag): Add loc parameter. Change all callers. If | |
16144 | -Wc++-compat, warn about struct/union/enum types defined within a | |
16145 | struct or union. | |
16146 | (start_struct): Add enclosing_in_struct, enclosing_struct_types, | |
16147 | and loc parameters. Change all callers. Change error calls to | |
16148 | error_at, using loc. For a redefinition, if the location of the | |
16149 | original definition is known, report it. Set in_struct and | |
fbdf817d | 16150 | struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof. |
24b97832 ILT |
16151 | (finish_struct): Add new parameters enclosing_in_struct and |
16152 | enclosing_struct_types. Change all callers. Set | |
16153 | C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined | |
16154 | in the struct. If in a struct, add this struct to struct_types. | |
16155 | (start_enum): Add loc parameter. Change all callers. Use | |
16156 | error_at for errors, using loc. For a redefinition, if the | |
16157 | location of the original definition is known, report it. If in a | |
16158 | struct, add this enum type to struct_types. If -Wc++-compat warn | |
16159 | if in sizeof, typeof, or alignof. | |
fbdf817d UB |
16160 | * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat. |
16161 | (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate. | |
24b97832 ILT |
16162 | (c_parser_enum_specifier): Get enum location for start_enum. |
16163 | (c_parser_struct_or_union_specifier): Get struct location for | |
16164 | start_struct. Save in_struct and struct_types status between | |
16165 | start_struct and finish_struct. | |
16166 | (c_parser_cast_expression): Get location of cast. | |
16167 | (c_parser_alignof_expression): Get location of type. | |
16168 | (c_parser_postfix_expression): Likewise. | |
16169 | (c_parser_postfix_expression_after_paren_type): Add type_loc | |
fbdf817d UB |
16170 | parameter. Change all callers. Call check_compound_literal_type. |
16171 | Use type_loc for error about variable size type. | |
16172 | * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use | |
16173 | of an enum constant from an enum type defined in a struct or union. | |
24b97832 ILT |
16174 | (c_cast_expr): Add loc parameter. Change all callers. If |
16175 | -Wc++-compat, warn about defining a type in a cast. | |
16176 | * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define. | |
16177 | (start_enum, start_struct, finish_struct): Update declarations. | |
16178 | (parser_xref_tag, c_cast_expr): Update declarations. | |
16179 | (check_compound_literal_type): Declare. | |
16180 | ||
7a2738fa BE |
16181 | 2009-05-11 Ben Elliston <bje@au.ibm.com> |
16182 | ||
16183 | * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update | |
16184 | for recent libcpp interface change. | |
16185 | (rs6000_macro_to_expand): Likewise. | |
16186 | ||
af618949 MM |
16187 | 2009-05-10 Michael Matz <matz@suse.de> |
16188 | ||
16189 | PR target/40031 | |
16190 | * config/arm/arm.c (require_pic_register): Emit on entry edge, | |
16191 | not at entry of function. | |
16192 | ||
b7d7a473 RG |
16193 | 2009-05-10 Richard Guenther <rguenther@suse.de> |
16194 | ||
16195 | PR tree-optimization/40081 | |
16196 | Revert | |
16197 | * tree-sra.c (instantiate_element): Instantiate scalar replacements | |
16198 | using the main variant of the element type. Do not fiddle with | |
16199 | TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS. | |
16200 | ||
16201 | * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose | |
16202 | structs with volatile fields. | |
16203 | ||
078c3644 JH |
16204 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
16205 | ||
16206 | * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare. | |
fbdf817d UB |
16207 | (estimate_move_cost): Assert that it does not get called for |
16208 | VOID_TYPE_P. | |
078c3644 JH |
16209 | (estimate_num_insns): Skip VOID types in argument handling. |
16210 | (optimize_inline_calls): Delete unreachable blocks and verify that | |
16211 | callgraph is valid. | |
16212 | ||
39ff5a96 JH |
16213 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
16214 | ||
16215 | * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node. | |
16216 | * cgraph.c (cgraph_mark_address_taken_node): New function. | |
16217 | (dump_cgraph_node): Dump new flag. | |
16218 | * cgraph.h (struct cgraph_node): Add address_taken. | |
16219 | (cgraph_mark_address_taken_node): New function. | |
39ff5a96 JH |
16220 | * ipa.c (cgraph_postorder): Prioritize functions with address taken |
16221 | since new direct calls can be born. | |
16222 | ||
9a0c6187 JM |
16223 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
16224 | ||
16225 | * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in | |
16226 | tok->val.node.node. | |
16227 | ||
4b685e14 JH |
16228 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
16229 | ||
16230 | PR middle-end/40084 | |
fb0be169 EB |
16231 | * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call |
16232 | argument; rewrite. | |
4b685e14 JH |
16233 | (cgraph_update_edges_for_call_stmt): Take old_decl argument. |
16234 | * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype. | |
16235 | * tree-inline.c (copy_bb): Set frequency correctly. | |
fb0be169 EB |
16236 | (fold_marked_statements): Update call to |
16237 | cgraph_update_edges_for_call_stmt. | |
4b685e14 | 16238 | |
29d08eba JM |
16239 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
16240 | ||
16241 | * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for | |
16242 | identifiers in diagnostics. | |
16243 | * config/arm/arm.c (arm_handle_fndecl_attribute, | |
16244 | arm_handle_isr_attribute): Likewise. | |
16245 | * config/avr/avr.c (avr_handle_progmem_attribute, | |
782dc37a | 16246 | avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise. |
29d08eba JM |
16247 | * config/bfin/bfin.c (handle_int_attribute, |
16248 | bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute, | |
16249 | bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute, | |
16250 | bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute): | |
16251 | Likewise. | |
16252 | * config/darwin.c (darwin_handle_kext_attribute, | |
16253 | darwin_handle_weak_import_attribute): Likewise. | |
16254 | * config/h8300/h8300.c (h8300_handle_fndecl_attribute, | |
16255 | h8300_handle_eightbit_data_attribute, | |
16256 | h8300_handle_tiny_data_attribute): Likewise. | |
16257 | * config/i386/i386.c (ix86_handle_cconv_attribute, | |
782dc37a | 16258 | ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise. |
29d08eba JM |
16259 | * config/i386/winnt.c (ix86_handle_shared_attribute, |
16260 | ix86_handle_selectany_attribute): Likewise. | |
16261 | * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise. | |
16262 | * config/m32c/m32c.c (function_vector_handler): Likewise. | |
16263 | * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute, | |
16264 | m68hc11_handle_fntype_attribute): Likewise. | |
16265 | * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise. | |
16266 | * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise. | |
16267 | * config/mips/mips.c (mips_insert_attributes, | |
16268 | mips_merge_decl_attributes, mips_expand_builtin): Likewise. | |
16269 | * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute, | |
16270 | rs6000_handle_struct_attribute): Likewise. | |
16271 | * config/sh/sh.c (sh_insert_attributes, | |
16272 | sh_handle_resbank_handler_attribute, | |
16273 | sh_handle_interrupt_handler_attribute, | |
16274 | sh2a_handle_function_vector_handler_attribute, | |
16275 | sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute): | |
16276 | Likewise. | |
16277 | * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise. | |
16278 | * config/spu/spu.c (spu_handle_fndecl_attribute, | |
16279 | spu_handle_vector_attribute): Likewise. | |
16280 | * config/stormy16/stormy16.c | |
16281 | (xstormy16_handle_interrupt_attribute): Likewise. | |
16282 | * config/v850/v850-c.c (ghs_pragma_section): Likewise. | |
16283 | * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise. | |
16284 | ||
f41c4af3 JM |
16285 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
16286 | ||
782dc37a | 16287 | * pretty-print.h (struct pretty_print_info): Add translate_identifiers. |
f41c4af3 JM |
16288 | (pp_translate_identifiers): New. |
16289 | (pp_identifier): Only conditionally translate identifier to locale | |
16290 | character set. | |
16291 | * pretty-print.c (pp_construct): Set pp_translate_identifiers. | |
16292 | (pp_base_tree_identifier): Only conditionally translate identifier | |
16293 | to locale character set. | |
16294 | * c-pretty-print.c (M_): Define. | |
16295 | (pp_c_type_specifier, pp_c_primary_expression): Mark English | |
16296 | fragments for conditional translation with M_. | |
16297 | * tree-pretty-print.c (maybe_init_pretty_print): Disable | |
16298 | identifier translation. | |
16299 | ||
896d7dbd RG |
16300 | 2009-05-10 Richard Guenther <rguenther@suse.de> |
16301 | ||
16302 | PR tree-optimization/40081 | |
16303 | * tree-sra.c (instantiate_element): Instantiate scalar replacements | |
16304 | using the main variant of the element type. Do not fiddle with | |
16305 | TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS. | |
16306 | ||
9a23acef JH |
16307 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
16308 | ||
16309 | PR middle-end/40080 | |
16310 | * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect | |
16311 | indirect calls; verify cgraph afterwards. | |
16312 | ||
d563610d JH |
16313 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
16314 | ||
16315 | PR bootstrap/40082 | |
16316 | * ipa.c (update_inlined_to_pointer): New function. | |
16317 | (cgraph_remove_unreachable_nodes): Use it. | |
16318 | ||
f08a18d0 JH |
16319 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
16320 | ||
16321 | * tree-eh.c (struct leh_state): Remove prev_try. | |
16322 | (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do | |
16323 | not track prev_try. | |
f100a4a8 | 16324 | * except.c (gen_eh_region_cleanup, duplicate_eh_regions, |
f08a18d0 JH |
16325 | copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label, |
16326 | remove_eh_handler_and_replace, foreach_reachable_handler, | |
16327 | verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer. | |
16328 | * except.h (struct eh_region): Remove eh_region_u_cleanup. | |
16329 | (gen_eh_region_cleanup): Update prototype. | |
16330 | ||
0afd7219 JH |
16331 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
16332 | ||
16333 | PR middle-end/40043 | |
16334 | * except.c (copy_eh_region): Always set prev_try. | |
16335 | (redirect_eh_edge_to_label): Find outer try. | |
16336 | (foreach_reachable_handler): When looking for prev try | |
16337 | handle case where previous try is not going to be taken. | |
16338 | ||
ad6c0864 MM |
16339 | 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com> |
16340 | ||
16341 | PR tree-optimization/40049 | |
16342 | * tree-vect-stmts.c (vectorizable_operation): If the machine has | |
16343 | only vector/vector shifts, convert the type of the constant to the | |
16344 | appropriate type to avoid building incorrect trees, which | |
16345 | eventually have problems with garbage collection. | |
16346 | ||
c94f9067 JM |
16347 | 2009-05-08 Joseph Myers <joseph@codesourcery.com> |
16348 | ||
16349 | * fold-const.c (fold_binary): Do not fold multiplication by 1 or | |
16350 | -1 for complex floating-point types if honoring signed zeros. | |
16351 | ||
9187e02d JH |
16352 | 2009-05-08 Jan Hubicka <jh@suse.cz> |
16353 | ||
20acb8a2 EB |
16354 | * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function |
16355 | argument; handle correctly when profile is absent. | |
9187e02d JH |
16356 | (build_cgraph_edges): Update. |
16357 | (rebuild_cgraph_edges): Update. | |
20acb8a2 EB |
16358 | * cgraph.c: Do not include varray.h. |
16359 | (cgraph_set_call_stmt_including_clones): New function. | |
16360 | (cgraph_create_edge_including_clones): Likewise | |
16361 | (cgraph_update_edges_for_call_stmt_node): New static cfunction. | |
9187e02d JH |
16362 | (cgraph_update_edges_for_call_stmt): Handle clones. |
16363 | (cgraph_remove_node): Handle clone tree. | |
16364 | (cgraph_remove_node_and_inline_clones): New function. | |
16365 | (dump_cgraph_node): Dump clone tree. | |
16366 | (cgraph_clone_node): Handle clone tree. | |
20acb8a2 | 16367 | (clone_function_name): Bring here from tree-inline.c. |
9187e02d | 16368 | (cgraph_create_virtual_clone): New function. |
20acb8a2 EB |
16369 | * cgraph.h (ipa_replace_map): Move here from ipa.h. |
16370 | (cgraph_clone_info): New function. | |
9187e02d | 16371 | (strut cgraph_node): Add clone_info and new clone tree pointers. |
20acb8a2 EB |
16372 | (cgraph_remove_node_and_inline_clones, |
16373 | cgraph_set_call_stmt_including_clones, | |
16374 | cgraph_create_edge_including_clones, | |
16375 | cgraph_create_virtual_clone): Declare. | |
9187e02d JH |
16376 | (cgraph_function_versioning): Use VEC argument. |
16377 | (compute_call_stmt_bb_frequency): Update prototype. | |
16378 | (cgraph_materialize_all_clones): New function. | |
16379 | * ipa-cp.c (ipcp_update_cloned_node): Remove. | |
16380 | (ipcp_create_replace_map): Update to VECtors. | |
16381 | (ipcp_update_callgraph): Use virtual clones. | |
16382 | (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove. | |
16383 | (ipcp_update_profiling): Do not update local profiling. | |
16384 | (ipcp_insert_stage): Use VECtors and virtual clones. | |
16385 | * cgraphunit.c (verify_cgraph_node): Verify clone tree. | |
16386 | (clone_of_p): New function. | |
16387 | (cgraph_preserve_function_body_p): Use clone tree. | |
16388 | (cgraph_optimize): Materialize clones. | |
16389 | (cgraph_function_versioning): Update for VECtors. | |
16390 | (save_inline_function_body): Use clone tree. | |
20acb8a2 EB |
16391 | (cgraph_materialize_clone): New function. |
16392 | (cgraph_materialize_all_clones): Likewise. | |
9187e02d JH |
16393 | * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags. |
16394 | * ipa.c: Include gimple.h. | |
16395 | (cgraph_remove_unreachable_nodes): Use clone tree. | |
20acb8a2 EB |
16396 | * ipa-prop.c (ipa_note_param_call): Update call to |
16397 | compute_call_stmt_bb_frequencycall. | |
9187e02d | 16398 | * ipa-prop.h (ipa_replace_map): Move to cgraph.h. |
20acb8a2 | 16399 | * tree-inline.c: Do not include varray.h or gt-tree-inline.h. |
9187e02d JH |
16400 | (copy_bb): Handle updating of clone tree; add new edge when new call |
16401 | appears. | |
16402 | (expand_call_inline): Be strict about every call having edge. | |
16403 | (clone_fn_id_num, clone_function_name): Move to cgraph.c. | |
16404 | (delete_unreachable_blocks_update_callgraph): New function. | |
20acb8a2 EB |
16405 | (tree_function_versioning): Use VECtors; always remove unreachable |
16406 | blocks and fold conditionals. | |
16407 | * tree-inline.h: Do not include varray.h. | |
9187e02d JH |
16408 | (tree_function_versioning): Remove. |
16409 | * Makefile.in (GTFILES): Remove tree-inline.c | |
16410 | * passes.c (do_per_function): Do only functions having body. | |
20acb8a2 EB |
16411 | * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone |
16412 | tree. | |
9187e02d | 16413 | |
9b86d6bb L |
16414 | 2009-05-08 H.J. Lu <hongjiu.lu@intel.com> |
16415 | Andrew Morrow <acm@google.com> | |
16416 | ||
16417 | PR c/36892 | |
16418 | * c-common.c (c_common_attribute_table): Permit deprecated | |
16419 | attribute to take an optional argument. | |
16420 | (handle_deprecated_attribute): If the optional argument to | |
16421 | __attribute__((deprecated)) is not a string ignore the attribute | |
16422 | and emit a warning. | |
16423 | ||
16424 | * c-decl.c (grokdeclarator): Updated warn_deprecated_use call. | |
16425 | * c-typeck.c (build_component_ref): Likewise. | |
16426 | (build_external_ref): Likewise. | |
16427 | ||
16428 | * toplev.c (warn_deprecated_use): Add an attribute argument. | |
16429 | Emit the message associated with __attribute__((deprecated)). | |
16430 | ||
16431 | * toplev.h (warn_deprecated_use): Updated. | |
16432 | ||
16433 | * doc/extend.texi: Document new optional parameter to | |
16434 | __attribute__((deprecated)) | |
16435 | ||
82ad047f ME |
16436 | 2009-05-08 Michael Eager <eager@eagercon.com> |
16437 | ||
16438 | * config/rs6000/rs6000.md (*movdf_softfloat32): replace | |
16439 | !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT. | |
16440 | ||
788d3075 RG |
16441 | 2009-05-08 Richard Guenther <rguenther@suse.de> |
16442 | ||
16443 | PR tree-optimization/40062 | |
16444 | * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi): | |
16445 | Avoid exponential behavior. | |
16446 | ||
00952e97 PB |
16447 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
16448 | ||
16449 | PR rtl-optimization/33928 | |
16450 | PR 26854 | |
16451 | * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween, | |
16452 | process_uses, build_single_def_use_links): New. | |
16453 | (update_df): Update use_def_ref. | |
16454 | (forward_propagate_into): Use get_def_for_use instead of use-def | |
16455 | chains. | |
16456 | (fwprop_init): Call build_single_def_use_links and let it initialize | |
16457 | dataflow. | |
16458 | (fwprop_done): Free use_def_ref. | |
16459 | (fwprop_addr): Eliminate duplicate call to df_set_flags. | |
f100a4a8 | 16460 | * df-problems.c (df_rd_simulate_artificial_defs_at_top, |
00952e97 PB |
16461 | df_rd_simulate_one_insn): New. |
16462 | (df_rd_bb_local_compute_process_def): Update head comment. | |
16463 | (df_chain_create_bb): Use the new RD simulation functions. | |
f100a4a8 | 16464 | * df.h (df_rd_simulate_artificial_defs_at_top, |
00952e97 PB |
16465 | df_rd_simulate_one_insn): New. |
16466 | * opts.c (decode_options): Enable fwprop at -O1. | |
16467 | * doc/invoke.texi (-fforward-propagate): Document this. | |
16468 | ||
2ca862e9 JM |
16469 | 2009-05-08 Joseph Myers <joseph@codesourcery.com> |
16470 | ||
16471 | PR c/24581 | |
16472 | * c-typeck.c (build_binary_op): Handle arithmetic between one real | |
16473 | and one complex operand specially. | |
16474 | * tree-complex.c (some_nonzerop): Do not identify a real value as | |
16475 | zero if flag_signed_zeros. | |
16476 | ||
3e807ffc PB |
16477 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
16478 | ||
16479 | PR rtl-optimization/33928 | |
7925c06c | 16480 | * loop-invariant.c (record_use): Fix && vs. || mishap. |
3e807ffc | 16481 | |
1bfdbb29 PB |
16482 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
16483 | ||
16484 | PR rtl-optimization/33928 | |
e913423f EB |
16485 | * loop-invariant.c (struct use): Add addr_use_p. |
16486 | (struct def): Add n_addr_uses. | |
16487 | (struct invariant): Add cheap_address. | |
16488 | (create_new_invariant): Set cheap_address. | |
16489 | (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses. | |
16490 | (record_uses): Pass df_ref to record_use. | |
16491 | (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses | |
16492 | used only as such. | |
1bfdbb29 | 16493 | |
702cb2a0 KK |
16494 | 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org> |
16495 | ||
16496 | * config/sh/sh.c: Do not include c-pragma.h. | |
16497 | ||
5e8df753 AP |
16498 | 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com> |
16499 | ||
16500 | * config/spu/spu.c: Remove include of c-common.h. | |
16501 | ||
6ec637a4 JJ |
16502 | 2009-05-07 Janis Johnson <janis187@us.ibm.com> |
16503 | ||
16504 | PR c/39037 | |
16505 | * c-common.h (mark_valid_location_for_stdc_pragma, | |
16506 | valid_location_for_stdc_pragma_p, set_float_const_decimal64, | |
16507 | clear_float_const_decimal64, float_const_decimal64_p): New. | |
16508 | * c.opt (Wunsuffixed-float-constants): New. | |
16509 | * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for | |
16510 | unsuffixed float constant, handle new warning. | |
16511 | * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants. | |
16512 | * c-decl.c (c_scope): New flag float_const_decimal64. | |
16513 | (set_float_const_decimal64, clear_float_const_decimal64, | |
16514 | float_const_decimal64_p): New. | |
16515 | (push_scope): Set new flag. | |
16516 | * c-parser.c (c_parser_translation_unit): Mark when it's valid | |
16517 | to use STDC pragmas. | |
16518 | (c_parser_external_declaration): Ditto. | |
16519 | (c_parser_compound_statement_nostart): Ditto. | |
16520 | * c-pragma.c (valid_location_for_stdc_pragma, | |
16521 | mark_valid_location_for_stdc_pragma, | |
16522 | valid_location_for_stdc_pragma_p, handle_stdc_pragma, | |
16523 | handle_pragma_float_const_decimal64): New. | |
16524 | (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64. | |
16525 | * cp/semantics.c (valid_location_for_stdc_pragma_p, | |
16526 | set_float_const_decimal64, clear_float_const_decimal64, | |
16527 | float_const_decimal64_p): New dummy functions. | |
16528 | * doc/extend.texi (Decimal Float): Remove statement that the | |
16529 | pragma, and suffix for double constants, are not supported. | |
16530 | * doc/invoke.texi (Warning Options): List new option. | |
16531 | (-Wunsuffixed-float-constants): New. | |
16532 | ||
45b9b2e9 SB |
16533 | 2009-05-08 Steven Bosscher <steven@gcc.gnu.org> |
16534 | ||
16535 | * config/i386/i386.c: Do not include c-common.h. | |
16536 | ||
e71da632 MH |
16537 | 2009-05-07 Mark Heffernan <meheff@google.com> |
16538 | ||
16539 | * doc/invoke.texi (Debugging Options): Document change of debugging | |
16540 | dump location. | |
e913423f | 16541 | * opts.c (decode_options): Make dump_base_name relative to |
e71da632 MH |
16542 | aux_base_name directory. |
16543 | ||
fe4c7bc6 HS |
16544 | 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com> |
16545 | ||
16546 | * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added. | |
16547 | * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton. | |
16548 | ||
3b3e44eb RAE |
16549 | 2009-05-07 Rafael Avila de Espindola <espindola@google.com> |
16550 | ||
16551 | * Makefile.in (install-plugin): Simplify a bit. | |
16552 | ||
fac41238 PB |
16553 | 2009-05-07 Paolo Bonzini <bonzini@gnu.org> |
16554 | ||
16555 | * Makefile.in (OBJS-common): Add regcprop.o. | |
16556 | (regcprop.o): New. | |
16557 | * timevar.def (TV_CPROP_REGISTERS): New. | |
16558 | * regrename.c (regrename_optimize): Return 0. | |
16559 | (rest_of_handle_regrename): Delete. | |
16560 | (pass_rename_registers): Point to regrename_optimize. | |
f100a4a8 | 16561 | (struct value_data_entry, struct value_data, |
fac41238 PB |
16562 | kill_value_one_regno, kill_value_regno, kill_value, |
16563 | set_value_regno, init_value_data, kill_clobbered_value, | |
16564 | kill_set_value, kill_autoinc_value, copy_value, | |
16565 | mode_change_ok, maybe_mode_change, find_oldest_value_reg, | |
16566 | replace_oldest_value_reg, replace_oldest_value_addr, | |
16567 | replace_oldest_value_mem, copyprop_hardreg_forward_1, | |
16568 | debug_value_data, validate_value_data): Move... | |
16569 | * regcprop.c: ... here. | |
16570 | (rest_of_handle_cprop): Delete. | |
16571 | (pass_cprop_hardreg): Point to copyprop_hardreg_forward. | |
16572 | ||
472e0df9 JJ |
16573 | 2009-05-07 Jakub Jelinek <jakub@redhat.com> |
16574 | ||
16575 | PR middle-end/40057 | |
16576 | * dojump.c (prefer_and_bit_test): Use immed_double_const instead of | |
16577 | GEN_INT for 1 << bitnum. | |
16578 | (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of | |
16579 | build_int_cst_type. | |
16580 | ||
0d50d55a UB |
16581 | 2009-05-07 Uros Bizjak <ubizjak@gmail.com> |
16582 | ||
16583 | * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]: | |
7925c06c | 16584 | Remove wrong description of "nand" operation. |
0d50d55a | 16585 | |
22f597f1 RG |
16586 | 2009-05-06 Richard Guenther <rguenther@suse.de> |
16587 | Adam Nemet <anemet@caviumnetworks.com> | |
16588 | ||
16589 | * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the | |
16590 | comment. Add that if LHS is not a gimple register, then RHS1 has | |
16591 | to be a single object (GIMPLE_SINGLE_RHS). | |
16592 | ||
641cac0b AN |
16593 | 2009-05-06 Adam Nemet <anemet@caviumnetworks.com> |
16594 | ||
16595 | * expr.c (get_def_for_expr): Move it up in the file. | |
16596 | (store_field): When expanding a bit-field store, look at the | |
16597 | defining gimple stmt for the masking conversion. | |
16598 | ||
5a5c6435 JJ |
16599 | 2009-05-06 Janis Johnson <janis187@us.ibm.com> |
16600 | ||
16601 | PR middle-end/39986 | |
16602 | * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64, | |
16603 | decode_decimal64, encode_decimal128, decode_decimal128): Avoid | |
16604 | 32-bit memcpy into long. | |
16605 | ||
96474f36 JJ |
16606 | 2009-05-06 Jakub Jelinek <jakub@redhat.com> |
16607 | ||
16608 | * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX. | |
16609 | (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling | |
16610 | new_reg_loc_descr. | |
16611 | (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0 | |
16612 | instead of appending DW_OP_deref*. | |
16613 | ||
529ff441 MM |
16614 | 2009-05-06 Michael Matz <matz@suse.de> |
16615 | ||
16616 | PR middle-end/40021 | |
16617 | * cfgexpand.c (maybe_cleanup_end_of_block): New static function. | |
16618 | (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps. | |
16619 | ||
9419a9fd RAE |
16620 | 2009-05-06 Rafael Avila de Espindola <espindola@google.com> |
16621 | ||
16622 | * Makefile.in (install-plugin): Fix srcdir handling. | |
16623 | ||
fff1894c AB |
16624 | 2009-05-06 Andrey Belevantsev <abel@ispras.ru> |
16625 | ||
16626 | * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF | |
16627 | when processing for not_regs_needed bitmap. | |
16628 | * gimple.c (walk_stmt_load_store_addr_ops): When visiting address, | |
f100a4a8 UB |
16629 | handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while |
16630 | handling it for rhs. | |
fff1894c | 16631 | |
700ae70c L |
16632 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16633 | ||
ab3426a7 | 16634 | * config/i386/i386.md (unnamed inc/dec peephole): Use |
aa016ff7 | 16635 | optimize_insn_for_size_p instead of optimize_size. |
700ae70c L |
16636 | * config/i386/predicates.md (incdec_operand): Likewise. |
16637 | (aligned_operand): Likewise. | |
16638 | * config/i386/sse.md (divv8sf3): Likewise. | |
16639 | (sqrtv8sf2): Likewise. | |
16640 | ||
67341fb5 L |
16641 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16642 | ||
16643 | * config/i386/i386.c (ix86_build_signbit_mask): Make it static. | |
16644 | ||
16645 | * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed. | |
16646 | ||
87946f42 L |
16647 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16648 | ||
16649 | * config/i386/i386.md (*avx_<code><mode>3_finite): Replace | |
16650 | ssemodesuffixf2c with avxmodesuffixf2c. | |
16651 | ||
1202aec1 JM |
16652 | 2009-05-06 Joseph Myers <joseph@codesourcery.com> |
16653 | ||
16654 | PR c/40032 | |
aa016ff7 | 16655 | * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field. |
1202aec1 | 16656 | |
6e57a01d JJ |
16657 | 2009-05-05 Jakub Jelinek <jakub@redhat.com> |
16658 | ||
16659 | * tree.h: Remove DECL_BY_REFERENCE from private_flag comment. | |
16660 | (struct tree_base): Adjust spacing for 8 bit boundaries. | |
16661 | (struct tree_decl_common): Add decl_by_reference_flag bit. | |
16662 | (DECL_BY_REFERENCE): Adjust. | |
16663 | * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL, | |
16664 | print DECL_BY_REFERENCE bit. | |
16665 | * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change. | |
16666 | * dwarf2out.c (loc_by_reference, gen_decl_die): Check | |
16667 | DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones. | |
16668 | (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED | |
16669 | unconditionally. | |
16670 | ||
32f579f6 JJ |
16671 | PR middle-end/39666 |
16672 | * gimplify.c (gimplify_switch_expr): If case labels cover the whole | |
16673 | range of the type, but default label is missing, add it with one | |
16674 | of the existing labels instead of adding a new label for it. | |
16675 | ||
617ab743 JM |
16676 | 2009-05-05 Joseph Myers <joseph@codesourcery.com> |
16677 | ||
16678 | * dwarf.h: Remove. | |
16679 | ||
bf016de8 RAE |
16680 | 2009-05-05 Rafael Avila de Espindola <espindola@google.com> |
16681 | ||
16682 | * Makefile.in (enable_plugin, plugin_includedir): New. | |
16683 | (install): Depend on install-plugin. | |
16684 | (PLUGIN_HEADERS): New. | |
16685 | (install-plugin): New. | |
16686 | * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64. | |
16687 | ||
7f8fdb9f RG |
16688 | 2009-05-05 Richard Guenther <rguenther@suse.de> |
16689 | ||
16690 | PR tree-optimization/40022 | |
16691 | * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for | |
16692 | the only vuse. | |
16693 | (phivn_valid_p): Fix tuplification error, simplify. | |
16694 | (phiprop_insert_phi): Add dumps. | |
16695 | (propagate_with_phi): Simplify. | |
16696 | ||
8d972839 RG |
16697 | 2009-05-05 Richard Guenther <rguenther@suse.de> |
16698 | ||
16699 | PR middle-end/40023 | |
aa016ff7 | 16700 | * builtins.c (gimplify_va_arg_expr): Properly build the address. |
8d972839 | 16701 | |
66ba9b0b SZ |
16702 | 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com> |
16703 | ||
16704 | * tree.h (strip_float_extensions): Remove duplicate declaration. | |
aa016ff7 UB |
16705 | (build_low_bits_mask, debug_fold_checksum, expand_function_end, |
16706 | expand_function_start, stack_protect_prologue, stack_protect_epilogue, | |
16707 | block_ultimate_origin): Rearrange the declarations line to match the | |
16708 | comment that indicates the .c file which the functions are defined. | |
16709 | (dwarf2out_*, set_decl_rtl): Add comment. | |
16710 | (get_base_address): Adjust comment. | |
16711 | (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the | |
16712 | declarations line and add comment. | |
16713 | (is_builtin_name): Add blank after function name, for clarity. | |
66ba9b0b | 16714 | |
4f1e4960 JM |
16715 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16716 | ||
16717 | * attribs.c (decl_attributes): Use %qE for identifiers in | |
16718 | diagnostics. | |
16719 | * cgraphunit.c (verify_cgraph_node): Translate function names to | |
16720 | locale character set in diagnostics. | |
16721 | * coverage.c (get_coverage_counts): Use %qE for identifiers in | |
16722 | diagnostics. | |
16723 | * doc/invoke.texi (-finstrument-functions-exclude-function-list): | |
16724 | Document that functions are named in UTF-8. | |
16725 | * expr.c (expand_expr_real_1): Translate function names to locale | |
16726 | character set in diagnostics. | |
16727 | * gimplify.c (omp_notice_variable, omp_is_private, | |
16728 | gimplify_scan_omp_clauses): Use %qE for identifiers in | |
16729 | diagnostics. | |
16730 | * langhooks.c (lhd_print_error_function): Translate function names | |
16731 | to locale character set. | |
16732 | * langhooks.h (decl_printable_name): Document that return value is | |
16733 | in internal character set. | |
16734 | * stmt.c: Include pretty-print.h | |
16735 | (tree_conflicts_with_clobbers_p): Use %qE for identifiers in | |
16736 | diagnostics. | |
16737 | (resolve_operand_name_1): Translate named operand name to locale | |
16738 | character set. | |
16739 | * stor-layout.c (finalize_record_size): Use %qE for identifiers in | |
16740 | diagnostics. | |
16741 | * toplev.c (announce_function): Translate function names to locale | |
16742 | character set. | |
16743 | (warn_deprecated_use): Use %qE for identifiers in diagnostics. | |
16744 | (default_tree_printer): Use pp_identifier or translate identifiers | |
16745 | to locale character set. Mark "<anonymous>" for translation. | |
16746 | * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE | |
16747 | for identifiers in diagnostics. | |
16748 | * tree.c (handle_dll_attribute): Use %qE for identifiers in | |
16749 | diagnostics. | |
16750 | * varasm.c (output_constructor): Use %qE for identifiers in | |
16751 | diagnostics. | |
16752 | ||
40540e68 RAE |
16753 | 2009-05-04 Rafael Avila de Espindola <espindola@google.com> |
16754 | ||
16755 | * configure.ac: use ` ` instead of $() | |
16756 | * configure: Regenerate. | |
16757 | ||
33fc884c BE |
16758 | 2009-05-05 Ben Elliston <bje@au.ibm.com> |
16759 | ||
16760 | * config/pa/linux-atomic.c: Eliminate conditional include of | |
16761 | errno.h on non-LP64 systems to simplify build requirements. | |
16762 | ||
88388a52 JM |
16763 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16764 | ||
16765 | * c-common.c (handle_mode_attribute): Use %qE for identifiers in | |
16766 | diagnostics. | |
16767 | * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree | |
16768 | and pass value to identifier_to_locale. | |
16769 | (warn_variable_length_array): Make name a tree. | |
16770 | (grokdeclarator): Separate diagnostic texts for named and unnamed | |
16771 | declarators. Use %qE for named declarators. | |
16772 | * c-parser.c (c_lex_one_token): Use %qE for identifiers in | |
16773 | diagnostics. | |
16774 | * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for | |
16775 | identifiers in diagnostics. | |
16776 | * c-typeck.c (push_member_name, start_init): Pass identifiers to | |
16777 | identifier_to_locale. Mark "anonymous" strings for translation. | |
16778 | ||
960c5c79 ME |
16779 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16780 | ||
16781 | * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow | |
aa016ff7 | 16782 | address for DImode/DFmode only if double-precision FP regs. |
960c5c79 | 16783 | |
d083fbba ME |
16784 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16785 | ||
16786 | * config/rs6000/rs6000.c (rs6000_libcall_value): Add | |
16787 | TARGET_SINGLE_FLOAT check. | |
16788 | ||
c3ba8d32 ME |
16789 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16790 | ||
16791 | * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options. | |
16792 | ||
edce9f18 ME |
16793 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16794 | ||
16795 | * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx | |
16796 | * config/rs6000/t-xilinx: New | |
16797 | ||
506d7b68 PB |
16798 | 2009-05-04 Paolo Bonzini <bonzini@gnu.org> |
16799 | ||
e913423f | 16800 | * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation. |
506d7b68 PB |
16801 | * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete. |
16802 | * gcc/explow.c (memory_address): Use target hook. | |
16803 | * gcc/targhooks.c (default_legitimize_address): New. | |
16804 | * gcc/targhooks.h (default_legitimize_address): New. | |
16805 | * gcc/target.h (legitimize_address): New. | |
16806 | * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New. | |
16807 | (TARGET_INITIALIZER): Include it. | |
16808 | * gcc/system.h (LEGITIMIZE_ADDRESS): Poison. | |
16809 | ||
16810 | * config/bfin/bfin-protos.h (legitimize_address): Remove. | |
16811 | * config/bfin/bfin.c (legitimize_address): Remove. | |
16812 | * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove. | |
aa016ff7 UB |
16813 | * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address): |
16814 | Remove. | |
506d7b68 PB |
16815 | * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove. |
16816 | * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove. | |
16817 | ||
16818 | * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS, | |
16819 | THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete. | |
16820 | * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete. | |
16821 | * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete. | |
16822 | * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete. | |
16823 | * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete. | |
16824 | * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete. | |
16825 | * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete. | |
16826 | * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete. | |
16827 | * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete. | |
16828 | * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete. | |
16829 | * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete. | |
16830 | * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete. | |
16831 | * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete. | |
16832 | * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete. | |
16833 | * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete. | |
16834 | * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete. | |
16835 | * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete. | |
16836 | * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete. | |
16837 | * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete. | |
16838 | * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete. | |
16839 | * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete. | |
16840 | * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete. | |
16841 | ||
16842 | * gcc/config/s390/s390-protos.h (legitimize_address): Delete. | |
16843 | * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete. | |
16844 | * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete. | |
16845 | * gcc/config/i386/i386-protos.h (legitimize_address): Delete. | |
16846 | * gcc/config/avr/avr-protos.h (legitimize_address): Delete. | |
16847 | * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete. | |
16848 | * gcc/config/score/score-protos.h (score_legitimize_address): Delete. | |
16849 | * gcc/config/arm/arm-protos.h (arm_legitimize_address, | |
16850 | (thumb_legitimize_address): Delete. | |
16851 | * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete. | |
16852 | * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete. | |
16853 | * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete. | |
16854 | * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete. | |
16855 | * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete. | |
aa016ff7 UB |
16856 | * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address): |
16857 | Delete. | |
16858 | * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address): | |
16859 | Delete. | |
506d7b68 PB |
16860 | |
16861 | * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version. | |
16862 | * config/m32c/m32c.c (m32c_legitimize_address): Standardize. | |
16863 | * config/m32r/m32r.c (m32r_legitimize_address): New. | |
16864 | * config/m68k/m68k.c (m68k_legitimize_address): New. | |
16865 | * config/score/score.c (score_legitimize_address): Standardize. | |
16866 | * config/score/score3.c (score3_legitimize_address): Standardize. | |
16867 | * config/score/score3.h (score3_legitimize_address): Adjust. | |
16868 | * config/score/score7.c (score7_legitimize_address): Standardize. | |
16869 | * config/score/score7.h (score7_legitimize_address): Adjust. | |
16870 | * config/sh/sh.c (sh_legitimize_address): New. | |
16871 | * config/iq2000/iq2000.c (iq2000_legitimize_address): New. | |
16872 | ||
16873 | * gcc/config/s390/s390.c (legitimize_address): Rename to... | |
16874 | (s390_legitimize_address): ... this. | |
16875 | * gcc/config/sparc/sparc.c (legitimize_address): Rename to... | |
16876 | (sparc_legitimize_address): ... this. | |
16877 | * gcc/config/i386/i386.c (legitimize_address): Rename to... | |
16878 | (ix86_legitimize_address): ... this. | |
16879 | * gcc/config/avr/avr.c (legitimize_address): Rename to... | |
16880 | (avr_legitimize_address): ... this. | |
16881 | * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to... | |
16882 | (mn10300_legitimize_address): ... this. | |
16883 | * config/alpha/alpha.c (alpha_legitimize_address): Wrap... | |
16884 | (alpha_legitimize_address_1): ... the old alpha_legitimize_address. | |
16885 | (alpha_expand_mov): Adjust call. | |
16886 | ||
16887 | * config/frv/frv.c (frv_legitimize_address): Return x on failure. | |
16888 | * config/spu/spu.c (spu_legitimize_address): Likewise. | |
16889 | * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise. | |
16890 | * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise. | |
16891 | ||
a3af5087 JM |
16892 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16893 | ||
16894 | * intl.c (locale_encoding, locale_utf8): New. | |
16895 | (gcc_init_libintl): Initialize locale_encoding and locale_utf8. | |
16896 | * intl.h (locale_encoding, locale_utf8): Declare. | |
16897 | * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV. | |
16898 | (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale): | |
16899 | New. | |
16900 | * pretty-print.h (pp_identifier): Call identifier_to_locale on ID | |
16901 | argument. | |
16902 | (pp_tree_identifier): Define to call pp_base_tree_identifier. | |
16903 | (pp_base_tree_identifier): Declare as function. | |
16904 | (identifier_to_locale): Declare. | |
16905 | * Makefile.in (pretty-print.o): Update dependencies. | |
aa016ff7 | 16906 | * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics. |
a3af5087 | 16907 | |
ea5cd5f1 RG |
16908 | 2009-05-04 Richard Guenther <rguenther@suse.de> |
16909 | ||
16910 | PR middle-end/40015 | |
16911 | * builtins.c (fold_builtin_memory_op): Do not decay to element | |
16912 | type if the size matches the whole array. | |
16913 | ||
ddc2690a KH |
16914 | 2009-05-04 Kazu Hirata <kazu@codesourcery.com> |
16915 | ||
16916 | * expmed.c (synth_mult): When trying out a shift, pass the result | |
16917 | of a signed shift. | |
16918 | ||
ef268d34 KH |
16919 | 2009-05-04 Kazu Hirata <kazu@codesourcery.com> |
16920 | ||
16921 | * expmed.c (shiftsub_cost): Rename to shiftsub0_cost. | |
16922 | (shiftsub1_cost): New. | |
16923 | (init_expmed): Compute shiftsub1_cost. | |
16924 | (synth_mult): Optimize multiplications by constants of the form | |
16925 | -(2^^m-1) for some constant positive integer m. | |
16926 | ||
255d3827 RG |
16927 | 2009-05-03 Richard Guenther <rguenther@suse.de> |
16928 | ||
16929 | PR c/39983 | |
16930 | * c-typeck.c (array_to_pointer_conversion): Do not built | |
16931 | ADDR_EXPRs of arrays of pointer-to-element type. | |
16932 | * c-gimplify.c (c_gimplify_expr): Revert change fixing | |
16933 | up wrong ADDR_EXPRs after-the-fact. | |
16934 | * c-common.c (strict_aliasing_warning): Strip pointer | |
16935 | conversions for obtaining the original type. | |
16936 | * builtins.c (fold_builtin_memset): Handle array types. | |
16937 | (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs | |
16938 | and array types | |
16939 | ||
16c33770 RG |
16940 | 2009-05-03 Richard Guenther <rguenther@suse.de> |
16941 | ||
16942 | PR middle-end/23329 | |
16943 | * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set. | |
16944 | Do not lose casts from array types with unknown extent to array | |
16945 | types with known extent. | |
16946 | * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for | |
16947 | alias set compatibility. | |
16948 | ||
62a67c94 MLI |
16949 | 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
16950 | ||
16951 | * flags.h (extra_warnings): Delete. | |
16952 | * toplev.c (process_options): Handle Wuninitialized here. | |
16953 | * opts.c (extra_warnings): Delete. | |
16954 | (set_Wextra): Delete. | |
16955 | (common_handle_option): -Wextra can be handled automatically. | |
16956 | * c-opts.c (c_common_handle_option): Delete obsolete code. | |
16957 | (c_common_post_options): Simplify comment. | |
16958 | * common.opt (W): Add Var. | |
16959 | (Wextra): Add Var. | |
16960 | (Wuninitialized): Initialize to -1. | |
16961 | ||
8c7926c4 AN |
16962 | 2009-05-03 Adam Nemet <anemet@caviumnetworks.com> |
16963 | Richard Guenther <rguenther@suse.de> | |
16964 | ||
16965 | * expr.c (get_def_for_expr): New function. | |
16966 | (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with | |
16967 | SSA rather than trees. | |
16968 | <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of | |
16969 | TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1). | |
f100a4a8 | 16970 | |
fa5da7de JM |
16971 | 2009-05-03 Joseph Myers <joseph@codesourcery.com> |
16972 | ||
16973 | * c-common.c (reswords): Add _Imaginary. | |
16974 | * c-common.c (enum rid): Add RID_IMAGINARY. | |
16975 | ||
2ddd5020 PB |
16976 | 2009-05-03 Paolo Bonzini <bonzini@gnu.org> |
16977 | ||
16978 | * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation. | |
16979 | Patch by Richard Guenther. | |
16980 | ||
aea88c05 AS |
16981 | 2009-05-03 Anatoly Sokolov <aesok@post.ru> |
16982 | ||
16983 | * defaults.h (FRAME_POINTER_REQUIRED): Provide default. | |
16984 | * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation. | |
16985 | * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete. | |
16986 | * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete. | |
16987 | * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete. | |
16988 | * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete. | |
16989 | * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete. | |
16990 | * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete. | |
16991 | * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete. | |
16992 | * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete. | |
16993 | * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete. | |
16994 | * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete. | |
16995 | * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete. | |
16996 | * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete. | |
16997 | * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete. | |
16998 | * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete. | |
16999 | * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete. | |
17000 | * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete. | |
17001 | ||
85e59f3a RG |
17002 | 2009-05-02 Richard Guenther <rguenther@suse.de> |
17003 | ||
17004 | PR tree-optimization/39940 | |
17005 | * tree-ssa-pre.c (eliminate): Make sure we may propagate before | |
17006 | doing so. | |
17007 | ||
4636b850 RG |
17008 | 2009-05-02 Richard Guenther <rguenther@suse.de> |
17009 | ||
17010 | PR middle-end/40001 | |
17011 | * tree-ssa.c (execute_update_addresses_taken): Properly check | |
17012 | if we can mark a variable DECL_GIMPLE_REG_P. | |
17013 | * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P | |
17014 | back to the end of the function. | |
17015 | (is_gimple_reg_type): Remove complex type special casing. | |
17016 | * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P | |
17017 | if not optimizing. | |
17018 | ||
5e10cb5a BE |
17019 | 2009-05-02 Ben Elliston <bje@au.ibm.com> |
17020 | ||
17021 | * doc/collect2.texi (Collect2): Document search path behaviour | |
17022 | when configured with --with-ld. | |
17023 | ||
048bf48b JH |
17024 | 2009-05-02 Jan Hubicka <jh@suse.cz> |
17025 | ||
17026 | * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical | |
17027 | parameter; update callers. | |
aa016ff7 UB |
17028 | (coalesce_cost_edge): EH edges are costier because they needs |
17029 | splitting even if not critical and even more costier when there are | |
17030 | multiple EH predecestors. | |
048bf48b | 17031 | |
d5c5f9ab JH |
17032 | 2009-05-02 Jan Hubicka <jh@suse.cz> |
17033 | ||
17034 | * except.c (remove_eh_handler_and_replace): Handle updating after | |
17035 | removing TRY blocks. | |
17036 | ||
2ed1959a EB |
17037 | 2009-05-02 Eric Botcazou <ebotcazou@adacore.com> |
17038 | ||
17039 | * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard. | |
17040 | ||
d363a7e7 SB |
17041 | 2009-05-02 Steven Bosscher <steven@gcc.gnu.org> |
17042 | ||
17043 | * varasm.c: Do not include c-pragma.h. | |
17044 | * attribs.c: Do not incude c-common.h. | |
17045 | ||
9c3d55b4 MM |
17046 | 2009-05-01 Michael Matz <matz@suse.de> |
17047 | ||
17048 | * calls.c (initialize_argument_information): Handle SSA names like | |
17049 | decls with a non MEM_P DECL_RTL. | |
17050 | ||
ea264ca5 SB |
17051 | 2009-05-01 Steven Bosscher <steven@gcc.gnu.org> |
17052 | ||
17053 | * ipa-reference.c: Do not include c-common.h, include splay-tree.h. | |
17054 | * ipa-utils.c: Likewise. | |
17055 | * ipa-type-escape.c: Likewise. | |
17056 | * cgraphunit.c Do not include c-common.h. | |
17057 | * ipa-pure-const.c: Likewise. | |
17058 | * tree-if-conv.c: Likewise. | |
17059 | * matrix-reorg.c: Do not include c-common.h and c-tree.h. | |
17060 | * ipa-struct-reorg.c: Likewise. | |
17061 | * tree-nomudflap.c: Likewise. | |
17062 | * tree-ssa-structalias.c: Likewise. | |
17063 | ||
6c5d4d1a SB |
17064 | 2009-05-01 Steven Bosscher <steven@gcc.gnu.org> |
17065 | ||
17066 | * store-motion.c: Many cleanups to make this pass a first-class | |
17067 | citizen instead of an appendix to gcse load motion. Add TODO list | |
17068 | to make this pass faster/cleaner/better. | |
17069 | ||
17070 | (struct ls_expr): Post gcse.c-split cleanups. | |
17071 | Rename to st_expr. Rename "loads" field to "antic_stores". Rename | |
17072 | "stores" field to "avail_stores". | |
17073 | (pre_ldst_mems): Rename to store_motion_mems. | |
17074 | (pre_ldst_table): Rename to store_motion_mems_table. | |
17075 | (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users. | |
17076 | (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users. | |
17077 | (ldst_entry): Rename to st_expr_entry, update users. | |
17078 | (free_ldst_entry): Rename to free_st_expr_entry, update users. | |
17079 | (free_ldst_mems): Rename to free_store_motion_mems, update users. | |
aa016ff7 UB |
17080 | (enumerate_ldsts): Rename to enumerate_store_motion_mems, |
17081 | update caller. | |
6c5d4d1a SB |
17082 | (first_ls_expr): Rename to first_st_expr, update users. |
17083 | (next_ls_expr): Rename to next_st_expr, update users. | |
17084 | (print_ldst_list): Rename to print_store_motion_mems. Print names of | |
17085 | fields properly for store motion instead of names inherited from load | |
17086 | motion in gcse.c. | |
17087 | (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove. | |
17088 | (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we | |
17089 | are done with it. | |
17090 | ||
17091 | (ae_kill): Rename to st_kill, update users. | |
17092 | (ae_gen): Rename to st_avloc, update users. | |
17093 | (transp): Rename to st_transp, update users. | |
17094 | (pre_insert_map): Rename to st_insert_map, update users. | |
17095 | (pre_delete_map): Rename to st_delete_map, update users. | |
17096 | (insert_store, build_store_vectors, free_store_memory, | |
17097 | one_store_motion_pass): Update for abovementioned changes. | |
17098 | ||
17099 | (gcse_subst_count, gcse_create_count): Remove. | |
17100 | (one_store_motion_pass): New statistics counters "n_stores_deleted" | |
17101 | and "n_stores_created", local variables. | |
17102 | ||
17103 | (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to | |
17104 | use for_each_rtx. | |
17105 | ||
17106 | (regvec, compute_store_table_current_insn): Remove. | |
17107 | (reg_set_info, reg_clear_last_set): Remove. | |
17108 | (compute_store_table): Use DF caches instead of local dataflow | |
17109 | solvers. | |
17110 | ||
b02cec6e JM |
17111 | 2009-05-01 Joseph Myers <joseph@codesourcery.com> |
17112 | ||
17113 | * c-objc-common.c (c_tree_printer): Print identifiers with | |
17114 | pp_identifier, not pp_string. Mark "({anonymous})" for | |
17115 | translation. | |
17116 | * c-pretty-print.c (pp_c_ws_string): New. | |
17117 | (pp_c_cv_qualifier, pp_c_type_specifier, | |
17118 | pp_c_specifier_qualifier_list, pp_c_parameter_type_list, | |
17119 | pp_c_storage_class_specifier, pp_c_function_specifier, | |
17120 | pp_c_attributes, pp_c_bool_constant, pp_c_constant, | |
17121 | pp_c_primary_expression, pp_c_postfix_expression, | |
17122 | pp_c_unary_expression, pp_c_shift_expression, | |
17123 | pp_c_relational_expression, pp_c_equality_expression, | |
17124 | pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly | |
17125 | use pp_string and pp_c_ws_string in place of pp_identifier and | |
17126 | pp_c_identifier for non-identifiers. Mark English strings for | |
17127 | translation. | |
17128 | * c-pretty-print.h (pp_c_ws_string): Declare. | |
17129 | ||
cd533689 PP |
17130 | 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com> |
17131 | Roland McGrath <roland@redhat.com> | |
17132 | ||
aa016ff7 | 17133 | * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support. |
cd533689 PP |
17134 | (ENABLE_LD_BUILDID): New configuration option. |
17135 | * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID] | |
17136 | (LINK_BUILDID_SPEC): New macro. | |
17137 | (init_spec): If defined, prepend it between LINK_EH_SPEC and | |
17138 | link_spec. | |
17139 | * doc/install.texi: Document --enable-linker-build-id option. | |
17140 | * configure: Rebuild. | |
17141 | * config.in: Rebuild. | |
17142 | ||
ba6adec4 AN |
17143 | 2009-04-30 Adam Nemet <anemet@caviumnetworks.com> |
17144 | ||
17145 | * config/mips/mips.h (FRAME_GROWS_DOWNWARD, | |
17146 | MIPS_GP_SAVE_AREA_SIZE): Define new macros. | |
17147 | (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use | |
17148 | MIPS_GP_SAVE_AREA_SIZE. | |
17149 | * config/mips/mips.c (struct mips_frame_info): Update comment | |
17150 | before arg_pointer_offset and hard_frame_pointer_offset. | |
17151 | (mips_compute_frame_info): Update diagram before function: to | |
17152 | correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to | |
17153 | indicate the position of frame_pointer_rtx with -fstack-protector and | |
17154 | to show args_size. Don't allocate cprestore area for leaf functions | |
17155 | if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set | |
17156 | cprestore_size. | |
17157 | (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD. | |
17158 | ||
48f5b722 MM |
17159 | 2009-04-30 Michael Matz <matz@suse.de> |
17160 | ||
ba6adec4 AN |
17161 | PR tree-optimization/39955 |
17162 | * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs. | |
48f5b722 | 17163 | |
b65d6744 DK |
17164 | 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com> |
17165 | ||
17166 | * ira.c (setup_cover_and_important_classes): Use safe macro | |
17167 | REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint | |
17168 | directly. | |
17169 | * genpreds.c (write_tm_preds_h): Output suitable definition of | |
17170 | REG_CLASS_FOR_CONSTRAINT. | |
17171 | ||
f136c8ae RAE |
17172 | 2009-04-30 Rafael Avila de Espindola <espindola@google.com> |
17173 | ||
17174 | * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value | |
17175 | instead of an int. | |
17176 | * bitmap.c (bitmap_descriptor): Likewise. | |
17177 | * ggc-common.c (loc_descriptor): Likewise. | |
17178 | * varray.c (varray_descriptor): Likewise. | |
17179 | * vec.c (vec_descriptor): Likewise. | |
17180 | ||
43fcece8 | 17181 | 2009-04-30 Eric Botcazou <ebotcazou@adacore.com> |
35debead EB |
17182 | |
17183 | * Makefile.in (dce.o): Add $(EXCEPT_H). | |
17184 | * dce.c: Include except.h and delete redundant vector definitions. | |
17185 | (deletable_insn_p): Return false for non-call insns that can throw | |
17186 | if DF is running. | |
17187 | ||
df35c271 SB |
17188 | 2009-04-30 Steven Bosscher <steven@gcc.gnu.org> |
17189 | ||
17190 | * gcse.c (ae_gen): Remove. | |
17191 | (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p | |
17192 | and make non-static function to make it available in store-motion.c. | |
17193 | Update call sites with search-and-replace. | |
17194 | (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok, | |
17195 | extract_mentioned_regs, extract_mentioned_regs_helper, | |
17196 | find_moveable_store, compute_store_table, load_kills_store, find_loads, | |
17197 | store_killed_in_insn, store_killed_after, store_killed_before, | |
17198 | build_store_vectors, insert_insn_start_basic_block, insert-store, | |
17199 | remove_reachable_equiv_notes, replace_store_insn, delete_store, | |
17200 | free_store_memory, one_store_motion_pass, gate_rtl_store_motion, | |
17201 | execute_rtl_store_motion, pass_rtl_store_motion): Move to... | |
17202 | * store-motion.c: ...new file. Also copy data structures from gcse.c | |
17203 | and clean up to remove parts not used by store motion. | |
17204 | * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype. | |
17205 | * Makefile.in (store-motion.o): New rule. Add to OBJS-common. | |
17206 | ||
f711a87a RR |
17207 | 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
17208 | ||
17209 | PR target/38571 | |
17210 | * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb | |
17211 | when optimizing for size. | |
17212 | ||
fa5ed76e HPN |
17213 | 2009-04-30 Hans-Peter Nilsson <hp@axis.com> |
17214 | ||
17215 | * gcse.c (gcse_constant_p): Fix typo in last change. | |
17216 | ||
0acbbdb0 RAE |
17217 | 2009-04-30 Rafael Avila de Espindola <espindola@google.com> |
17218 | ||
17219 | * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined. | |
17220 | ||
82f5c05d AK |
17221 | 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com> |
17222 | ||
17223 | * gcse.c (gcse_constant_p): Make sure the constant is sharable. | |
17224 | ||
6d8f135b JW |
17225 | 2009-04-29 James E. Wilson <wilson@codesourcery.com> |
17226 | ||
17227 | * config/mips/mips.c (mips_add_offset): Use gen_int_mode for | |
17228 | CONST_HIGH_PART result. | |
17229 | ||
c21ca196 AS |
17230 | 2009-04-29 Anatoly Sokolov <aesok@post.ru> |
17231 | ||
17232 | * config/avr/avr.c (initial_elimination_offset): Rename to | |
17233 | avr_initial_elimination_offset. | |
17234 | (frame_pointer_required_p): Rename to avr_frame_pointer_required_p, | |
17235 | change return type to bool. | |
17236 | (avr_can_eliminate): New function. | |
17237 | * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate. | |
17238 | (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p. | |
17239 | (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset. | |
0d50d55a | 17240 | * config/avr/avr-protos.h (initial_elimination_offset): Rename to |
c21ca196 AS |
17241 | avr_initial_elimination_offset. |
17242 | (frame_pointer_required_p): Rename to avr_frame_pointer_required_p. | |
17243 | (avr_initial_elimination_offset): Define. | |
17244 | ||
2a34bece | 17245 | 2009-04-29 Eric Botcazou <ebotcazou@adacore.com> |
aa016ff7 | 17246 | Steven Bosscher <steven@gcc.gnu.org> |
2a34bece EB |
17247 | |
17248 | PR rtl-optimization/39938 | |
17249 | * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H). | |
17250 | * cfgrtl.c: Include insn-attr.h. | |
17251 | (rest_of_pass_free_cfg): New function. | |
17252 | (pass_free_cfg): Use rest_of_pass_free_cfg as execute function. | |
17253 | * resource.c (init_resource_info): Remove call to df_analyze. | |
17254 | ||
5dc7911e RG |
17255 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
17256 | ||
17257 | PR target/39943 | |
17258 | * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only | |
17259 | allow conversion to signed integers. | |
17260 | ||
1fe479fd RG |
17261 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
17262 | ||
17263 | * tree-cfg.c (verify_gimple_assign_binary): Allow vector | |
17264 | shifts of floating point vectors if the shift amount is | |
17265 | a constant multiple of the element size. | |
17266 | ||
8e001680 AK |
17267 | 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com> |
17268 | Michael Matz <matz@suse.de> | |
17269 | ||
17270 | PR middle-end/39927 | |
17271 | PR bootstrap/39929 | |
17272 | * tree-outof-ssa.c (emit_partition_copy): New function. | |
17273 | (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge, | |
17274 | insert_part_to_rtx_on_edge): Perform the partition base var | |
17275 | copy using emit_partition_copy. | |
17276 | (insert_value_copy_on_edge): Convert constants to the right mode. | |
17277 | (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter. | |
17278 | (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge. | |
17279 | ||
e50e3081 BS |
17280 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
17281 | ||
17282 | * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg, | |
17283 | scan backwards to try to find a constant to initialize it. | |
17284 | ||
4e5d521b BS |
17285 | * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last |
17286 | insn before the loop_end instruction, don't look past labels. | |
17287 | ||
7c90021d RG |
17288 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
17289 | ||
17290 | PR middle-end/39937 | |
17291 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not | |
17292 | loose type conversions. | |
17293 | (forward_propagate_addr_expr): Fix tuplification bug. Remove | |
17294 | stmts only if there are no uses of its definition. | |
17295 | ||
97a988bc BS |
17296 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
17297 | ||
17298 | * config/bfin/bfin.h (splitting_loops): Declare. | |
17299 | * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315): | |
17300 | Reorder bit definitions to be ascending. | |
17301 | (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros. | |
17302 | * config/bfin/bfin.c (splitting_loops): New variable. | |
17303 | (bfin_cpus): Add WA_LOAD_LCREGS as needed. | |
17304 | (struct loop_info): Remove members INIT and LOOP_INIT. | |
17305 | (bfin_optimize_loop): Don't set them. Reorder the code that generates | |
aa016ff7 UB |
17306 | the LSETUP sequence. Allow LC to be loaded from any register, but |
17307 | also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS. | |
97a988bc BS |
17308 | (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops |
17309 | set to 1. | |
17310 | * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead | |
17311 | of reload_completed. | |
aa016ff7 | 17312 | |
97a988bc BS |
17313 | From Jie Zhang: |
17314 | * config/bfin/bfin.md (movsi_insn): Refine constraints. | |
17315 | ||
0c463e16 RAE |
17316 | 2009-04-29 Rafael Avila de Espindola <espindola@google.com> |
17317 | ||
17318 | * Makefile.in (PLUGIN_VERSION_H): New. | |
17319 | (OBJS-common): Remove plugin-version.o. | |
17320 | (plugin.o): Depend on (PLUGIN_VERSION_H). | |
17321 | (plugin-version.o): Remove. | |
17322 | * configure: Regenerate | |
17323 | * configure.ac: Create plugin-version.h. | |
17324 | * gcc-plugin.h (plugin_gcc_version): Remove. | |
17325 | (plugin_default_version_check): Change signature. | |
17326 | * plugin-version.c: Remove. | |
17327 | * plugin.c: Include plugin-version.h. | |
17328 | (str_plugin_gcc_version_name): Remove. | |
17329 | (try_init_one_plugin): Pass gcc version to plugin_init. | |
17330 | (plugin_default_version_check): Both gcc and plugin versions are now | |
17331 | arguments. | |
17332 | ||
307e7eab | 17333 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
f100a4a8 | 17334 | |
307e7eab BS |
17335 | * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of |
17336 | problematic last insns. Test for TYPE_CALL rather than CALL_P. | |
aa016ff7 UB |
17337 | Remove special case testing for last insn of inner loops. Don't fail |
17338 | if the loop ends with a jump, emit an extra nop instead. | |
307e7eab | 17339 | |
c5d96723 BS |
17340 | * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of |
17341 | DREGS rather than comparing directly. Remove code that tries to | |
17342 | account for latencies. | |
17343 | ||
de0b4ad5 RG |
17344 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
17345 | ||
17346 | PR tree-optimization/39941 | |
17347 | * tree-ssa-pre.c (eliminate): Schedule update-ssa after | |
17348 | eliminating an indirect call. | |
17349 | ||
3a19701a RG |
17350 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
17351 | ||
17352 | * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue | |
17353 | parameter. Allow invariants as base if !require_lvalue. | |
17354 | (verify_gimple_assign_single): Adjust. | |
17355 | ||
a0a31d1e BS |
17356 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
17357 | ||
17358 | * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro. | |
17359 | (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts, | |
aa016ff7 UB |
17360 | ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3, |
17361 | ssubhi3, ssaddhi3_parts and sssubhi3_parts. | |
a0a31d1e BS |
17362 | (flag_mulhi3_parts): Produce a HImode output rather than trying to set |
17363 | a VEC_SELECT. | |
aa016ff7 UB |
17364 | * config/bfin/bfin.c (bfin_expand_builtin, |
17365 | case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly. | |
a0a31d1e | 17366 | |
795bd26a RG |
17367 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17368 | ||
17369 | * tree-vect-loop.c (get_initial_def_for_induction): Use | |
17370 | correct types for pointer increment. | |
17371 | ||
04be270f KG |
17372 | 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
17373 | ||
17374 | * toplev.c (print_version): Update GMP version string calculation. | |
17375 | ||
e1a3b85c EB |
17376 | 2009-04-28 Eric Botcazou <ebotcazou@adacore.com> |
17377 | ||
17378 | PR rtl-optimization/39938 | |
17379 | * resource.c (init_resource_info): Add call to df_analyze. | |
17380 | ||
8224166e UB |
17381 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17382 | ||
17383 | * config/alpha/alpha.md (usegp): Cast the result of | |
17384 | alpha_find_lo_sum_using_gp to enum attr_usegp. | |
17385 | * config/alpha/alpha.c (override_options): Remove end-of-structure | |
17386 | marker element from cpu_table. Use array size of cpu_table to handle | |
17387 | -mcpu and -mtune options. | |
17388 | (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE. | |
17389 | ||
c5f0fe67 JM |
17390 | 2009-04-28 Joseph Myers <joseph@codesourcery.com> |
17391 | ||
17392 | * config.gcc (powerpc*-*-* | rs6000-*-*): Add | |
17393 | rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64, | |
17394 | tune_32 and tune_64. | |
17395 | * doc/install.texi (--with-cpu-32, --with-cpu-64): Document | |
17396 | support on PowerPC. | |
17397 | * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ... | |
17398 | * config/rs6000/option-defaults.h: ... here. New file. | |
17399 | (OPT_64, OPT_32): Define. | |
17400 | (MASK_64BIT): Define to 0 if not already defined. | |
17401 | (OPT_ARCH64, OPT_ARCH32): Define. | |
17402 | (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32 | |
17403 | and tune_64. | |
17404 | ||
0c48a567 RR |
17405 | 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
17406 | ||
17407 | * config/arm/arm.c (arm_override_options): Emit error on using | |
17408 | fpa with AAPCS. | |
17409 | ||
f1028b9d UB |
17410 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17411 | ||
17412 | PR rtl-optimization/39914 | |
17413 | * ira-conflicts.c (ira_build_conflicts): Prohibit call used | |
17414 | registers for allocnos created from user-defined variables only | |
17415 | when not optimizing. | |
17416 | ||
e0dd989a RG |
17417 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17418 | ||
17419 | PR middle-end/39937 | |
17420 | * fold-const.c (fold_binary): Use distribute_real_division only | |
17421 | on float types. | |
17422 | ||
9a17c91d SE |
17423 | 2009-04-28 Steve Ellcey <sje@cup.hp.com> |
17424 | ||
17425 | * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and | |
17426 | add hpux-stdint.h to tm_file. | |
17427 | (hppa[12]*-*-hpux11*): Ditto. | |
17428 | (ia64*-*-hpux*): Ditto. | |
17429 | * config/hpux-stdint.h: New. | |
60839f5d | 17430 | * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set |
9a17c91d | 17431 | __STDC_EXT__ for all compiles. |
60839f5d EB |
17432 | * config/pa/pa-hpux.h: Ditto. |
17433 | * config/pa/pa-hpux10.h: Ditto. | |
17434 | * config/pa/pa-hpux11.h: Ditto. | |
9a17c91d | 17435 | |
af04e659 CM |
17436 | 2009-04-28 Catherine Moore <clm@codesourcery.com> |
17437 | ||
17438 | * debug.h (set_name): Add comment. | |
17439 | ||
04ef80ce AP |
17440 | 2009-04-28 Andrew Pinski <pinskia@gmail.com> |
17441 | ||
17442 | PR target/39929 | |
17443 | * config/darwin.c (machopic_gen_offset): Check | |
17444 | currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE. | |
17445 | * config/arm/arm.c (require_pic_register): Likewise. | |
17446 | ||
65ad77af PB |
17447 | 2009-04-28 Paolo Bonzini <bonzini@gnu.org> |
17448 | ||
8224166e UB |
17449 | * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN, |
17450 | m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES, | |
17451 | m32c_promote_prototypes): Delete. | |
65ad77af | 17452 | |
1b15a008 MM |
17453 | 2009-04-28 Michael Matz <matz@suse.de> |
17454 | ||
17455 | PR middle-end/39922 | |
17456 | * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert | |
17457 | constants. | |
17458 | ||
7569a6cc RG |
17459 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17460 | ||
f1028b9d | 17461 | * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error. |
7569a6cc | 17462 | |
ead204d9 RR |
17463 | 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
17464 | ||
17465 | * config/arm/arm-cores.def: Add support for arm1156t2f-s. | |
17466 | * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s. | |
17467 | * config/arm/arm-tune.md: Regenerate. | |
17468 | ||
f2c45f08 | 17469 | 2009-04-28 Alexander Monakov <amonakov@ispras.ru> |
60839f5d | 17470 | |
f2c45f08 AM |
17471 | * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a |
17472 | block if there are complex incoming edges. | |
17473 | (sel_merge_blocks): Remove useless assert. | |
17474 | (sel_redirect_edge_and_branch): Check that edge was redirected. | |
17475 | * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert. | |
17476 | (sel_find_rgns): Delete declaration. | |
17477 | * sel-sched.c (purge_empty_blocks): Attempt to remove first block of | |
17478 | the region when it is not a preheader. | |
17479 | ||
7a00d767 UB |
17480 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17481 | ||
17482 | PR c/39323 | |
17483 | * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h | |
17484 | ||
448ee662 RG |
17485 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17486 | ||
17487 | * tree.h (SSA_NAME_VALUE): Remove. | |
17488 | (struct tree_ssa_name): Remove value_handle member. | |
17489 | * tree-vrp.c (execute_vrp): Initialize/free the value-handle | |
17490 | array for jump threading. | |
17491 | * tree-ssa-propagate.c (ssa_prop_init): Do not initialize | |
17492 | SSA_NAME_VALUEs. | |
17493 | * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs. | |
17494 | * tree-flow.h (threadedge_initialize_values): Declare. | |
17495 | (threadedge_finalize_values): Likewise. | |
17496 | * tree-ssa-threadedge.c (ssa_name_values): New global variable. | |
17497 | (SSA_NAME_VALUE): Define. | |
17498 | (threadedge_initialize_values): New function. | |
17499 | (threadedge_finalize_values): Likewise. | |
17500 | * tree-ssa-dom.c (ssa_name_values): New global variable. | |
17501 | (SSA_NAME_VALUE): Define. | |
f1028b9d | 17502 | (tree_ssa_dominator_optimize): Initialize/free the value-handle array. |
448ee662 | 17503 | |
8644a673 IR |
17504 | 2009-04-28 Ira Rosen <irar@il.ibm.com> |
17505 | ||
17506 | * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): | |
f100a4a8 | 17507 | Use REPORT_VECTORIZED_LOCATIONS instead |
8644a673 IR |
17508 | REPORT_VECTORIZED_LOOPS. |
17509 | * tree-vectorizer.c (vect_verbosity_level): Make static. | |
17510 | (vect_loop_location): Rename to vect_location. | |
17511 | (vect_set_verbosity_level): Update comment. | |
17512 | (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS | |
17513 | and vect_location. | |
17514 | (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS | |
17515 | and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS | |
17516 | instead REPORT_UNVECTORIZED_LOOPS. | |
fbdf817d UB |
17517 | * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def |
17518 | and vect_loop_def to vect_external_def and vect_internal_def. | |
8644a673 | 17519 | (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS |
f100a4a8 | 17520 | and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and |
8644a673 IR |
17521 | REPORT_UNVECTORIZED_LOCATIONS. |
17522 | (enum vect_relevant): Update comment. Rename vect_unused_in_loop | |
f100a4a8 | 17523 | and vect_used_in_loop and to vect_unused_in_scope and |
8644a673 IR |
17524 | vect_used_in_scope. |
17525 | (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope. | |
17526 | (vect_verbosity_level): Remove declaration. | |
17527 | (vect_analyze_operations): Likewise. | |
17528 | (vect_analyze_stmt): Declare. | |
17529 | * tree-vect-loop.c (vect_determine_vectorization_factor): Use | |
17530 | REPORT_UNVECTORIZED_LOCATIONS. | |
17531 | (vect_get_loop_niters): Fix indentation. | |
17532 | (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS. | |
17533 | (vect_analyze_loop_operations): New function. | |
17534 | (vect_analyze_loop): Call vect_analyze_loop_operations instead of | |
17535 | vect_analyze_operations. | |
17536 | (vect_is_simple_reduction): Use new names. | |
17537 | (vectorizable_live_operation, vect_transform_loop): Likewise. | |
fbdf817d UB |
17538 | * tree-vect-data-refs.c (vect_check_interleaving): Add a return value |
17539 | to specify whether the data references can be a part of interleaving | |
17540 | chain. | |
8644a673 IR |
17541 | (vect_analyze_data_ref_dependence): Use new names. |
17542 | (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise. | |
17543 | (vect_create_addr_base_for_vector_ref): Remove redundant code. | |
17544 | * tree-vect-patterns.c (widened_name_p): Use new names. | |
17545 | (vect_recog_dot_prod_pattern): Likewise. | |
17546 | * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names. | |
f100a4a8 | 17547 | (process_use, vect_mark_stmts_to_be_vectorized, |
8644a673 IR |
17548 | vect_model_simple_cost, vect_model_store_cost, |
17549 | vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy, | |
17550 | vectorizable_call, vectorizable_conversion, vectorizable_assignment, | |
17551 | vectorizable_operation, vectorizable_type_demotion, | |
17552 | vectorizable_type_promotion, vectorizable_store, vectorizable_load, | |
17553 | vectorizable_condition): Likewise. | |
17554 | (vect_analyze_operations): Split into vect_analyze_loop_operations | |
17555 | and ... | |
17556 | (vect_analyze_stmt): ... new function. | |
17557 | (new_stmt_vec_info): Use new names. | |
17558 | (vect_is_simple_use): Use new names and fix comment. | |
17559 | * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names. | |
17560 | (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise. | |
17561 | ||
b91322f2 UB |
17562 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17563 | ||
17564 | PR target/39911 | |
17565 | * config/i386/i386.c (print_operand) ['Z']: Handle floating point | |
17566 | and integer modes for x87 operands. Do not ICE for unsupported size, | |
17567 | generate error instead. Generate error for unsupported operand types. | |
17568 | ['z']: Do not handle HImode memory operands specially. Warning | |
17569 | for floating-point operands. Fallthru to 'Z' for unsupported operand | |
17570 | types. Do not ICE for unsupported size, generate error instead. | |
17571 | (output_387_binary_op): Use %Z to output operands. | |
17572 | (output_fp_compare): Ditto. | |
17573 | (output_387_reg_move): Ditto. | |
17574 | ||
b2ed71b6 BE |
17575 | 2009-04-28 Ben Elliston <bje@au.ibm.com> |
17576 | ||
17577 | PR c++/35652 | |
17578 | Revert: | |
17579 | ||
17580 | 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
17581 | ||
17582 | * builtins.c (c_strlen): Do not warn here. | |
17583 | * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. | |
17584 | * c-common.c (pointer_int_sum): Take an explicit location. | |
17585 | Warn about offsets out of bounds. | |
17586 | * c-common.h (pointer_int_sum): Adjust declaration. | |
17587 | ||
81f40b79 ILT |
17588 | 2009-04-27 Ian Lance Taylor <iant@google.com> |
17589 | ||
17590 | * collect2.c (is_ctor_dtor): Change type of ret field in struct | |
17591 | names to symkind. | |
17592 | * dce.c (run_fast_df_dce): Change type of old_flags to int. | |
17593 | * df-core.c (df_set_flags): Change return type to int. Change | |
17594 | type of old_flags to int. | |
17595 | (df_clear_flags): Likewise. | |
17596 | * df-scan.c (df_def_record_1): Change 0 to VOIDmode. | |
17597 | (df_get_conditional_uses): Likewise. | |
17598 | * df.h (df_set_flags, df_clear_flags): Update declarations. | |
17599 | * dwarf2out.c (struct indirect_string_node): Change type of form | |
17600 | field to enum dwarf_form. | |
17601 | (AT_string_form): Change return type to enum dwarf_form. | |
17602 | * fixed-value.c (fixed_compare): Add cast to enum type. | |
17603 | * fwprop.c (update_df): Change 0 to VOIDmode. | |
17604 | * gensupport.c: Change 0 to UNKNOWN. | |
17605 | * gimple.h (gimple_cond_code): Add cast to enum type. | |
17606 | * haifa-sched.c (reemit_notes): Add cast to enum type. | |
17607 | * hooks.c (hook_int_void_no_regs): Remove function. | |
17608 | * hooks.h (hook_int_void_no_regs): Remove declaration. | |
17609 | * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode. | |
7a00d767 | 17610 | * predict.c (combine_predictions_for_insn): Add casts to enum type. |
81f40b79 ILT |
17611 | * real.c (real_arithmetic): Add cast to enum type. |
17612 | (real_compare): Likewise. | |
17613 | * target.h (struct gcc_target): Change return type of | |
17614 | branch_target_register_class to enum reg_class. | |
17615 | * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as | |
17616 | default_branch_target_register_class. | |
7a00d767 | 17617 | * targhooks.c (default_branch_target_register_class): New function. |
81f40b79 | 17618 | * targhooks.h (default_branch_target_register_class): Declare. |
7a00d767 | 17619 | * tree-data-ref.c (print_direction_vector): Add cast to enum type. |
81f40b79 ILT |
17620 | * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove |
17621 | cast to int. | |
17622 | * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to | |
17623 | ERROR_MARK. | |
17624 | * tree-vect-slp.c (vect_build_slp_tree): Change 0 to | |
17625 | vect_uninitialized_def. Change 0 to ERROR_MARK. | |
17626 | * tree-vect-stmts.c (supportable_widening_operation): Don't | |
17627 | initialize icode1 and icode2. | |
7a00d767 | 17628 | * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def. |
81f40b79 ILT |
17629 | * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none |
17630 | and to STD_C89. | |
17631 | (cmn_err_flag_specs): Change 0 to STD_C89. | |
17632 | (cmn_err_char_table): Likewise. | |
17633 | * config/arm/arm.c (get_arm_condition_code): Change type of code | |
17634 | to enum arm_cond_code. | |
17635 | (IWMMXT_BUILTIN): Change 0 to UNKNOWN. | |
17636 | (IWMMXT_BUILTIN2): Likewise. | |
17637 | (neon_builtin_type_bits): Don't define typedef. | |
17638 | (neon_builtin_datum): Change type of bits field to int. | |
17639 | (arm_expand_neon_args): Add cast to enum type. | |
17640 | * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to | |
17641 | TLS_MODEL_NONE. | |
17642 | * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add | |
17643 | casts to enum type. | |
17644 | * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to | |
17645 | MIPS_FP_COND_f. | |
17646 | * config/mips/mips.md (jal_macro): Return enum constant. | |
17647 | (single_insn): Likewise. | |
17648 | * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to | |
17649 | CODE_FOR_nothing. | |
17650 | * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add | |
17651 | casts to enum type. | |
17652 | * config/s390/s390.c (s390_tune_flags): Change type to int. | |
17653 | (s390_arch_flags): Likewise. | |
7a00d767 | 17654 | (s390_handle_arch_option): Change flags field of struct pta to int. |
81f40b79 ILT |
17655 | * config/s390/s390.h (s390_tune_flags): Update declaration. |
17656 | (s390_arch_flags): Likewise. | |
17657 | * config/sh/sh.c (prepare_move_operands): Compare | |
17658 | tls_symbolic_operand result with enum constant. | |
17659 | (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND. | |
17660 | (sh_expand_prologue): Add cast to enum type. | |
17661 | (sh_expand_epilogue): Likewise. | |
17662 | (tls_symbolic_operand): Change return type to enum tls_model. | |
17663 | (fpscr_set_from_mem): Add cast to enum type. | |
17664 | (legitimize_pic_address): Compare tls_symbolic_operand result with | |
17665 | enum constant. | |
17666 | (sh_target_reg_class): Change return type to enum reg_class. | |
17667 | * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to | |
17668 | PROCESSOR_xxx. | |
7a00d767 UB |
17669 | * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration. |
17670 | * config/sparc/sparc.c (sparc_override_options): Add cast to enum type. | |
81f40b79 ILT |
17671 | * config/sparc/sparc.md (empty_delay_slot): Return enum constant. |
17672 | (pic, calls_alloca, calls_eh_return, leaf_function): Likewise. | |
17673 | (delayed_branch, tls_call_delay): Likewise. | |
17674 | (eligible_for_sibcall_delay): Likewise. | |
f100a4a8 | 17675 | (eligible_for_return_delay): Likewise. |
81f40b79 ILT |
17676 | * config/spu/spu.c (expand_builtin_args): Add cast to enum type. |
17677 | (spu_expand_builtin_1): Likewise. | |
17678 | ||
17679 | * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings | |
17680 | for all types of conversions. | |
17681 | (output_init_element): Issue -Wc++-compat warning if needed when | |
17682 | initializing a bitfield with enum type. | |
17683 | * c-parser.c (c_parser_expression): Set original_type to | |
9302a061 | 17684 | original_type of right hand operand of comma operator. |
81f40b79 | 17685 | |
e4ae5e77 RW |
17686 | 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
17687 | ||
17688 | * doc/c-tree.texi (Types, Functions, Expression trees): Fix | |
17689 | grammar nits. | |
7a00d767 | 17690 | * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise. |
e4ae5e77 RW |
17691 | * doc/cpp.texi (Standard Predefined Macros) |
17692 | (Implementation-defined behavior): Likewise. | |
7a00d767 | 17693 | * doc/extend.texi (Function Attributes, Type Attributes): Likewise. |
e4ae5e77 RW |
17694 | * doc/gimple.texi (GIMPLE Exception Handling) |
17695 | (@code{GIMPLE_ASSIGN}): Likewise. | |
7a00d767 | 17696 | * doc/install.texi (Prerequisites, Configuration, Specific): Likewise. |
e4ae5e77 RW |
17697 | * doc/invoke.texi (Warning Options, Optimize Options) |
17698 | (AVR Options, Darwin Options): Likewise. | |
17699 | (Optimize Options): Reformulate -fwhole-program description. | |
17700 | * doc/loop.texi (Lambda): Likewise. | |
17701 | * doc/md.texi (Output Template, Define Constraints) | |
17702 | (Standard Names, Insn Splitting): Likewise. | |
17703 | * doc/options.texi (Option properties): Likewise. | |
17704 | * doc/passes.texi (Tree-SSA passes): Likewise. | |
17705 | * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise. | |
17706 | * doc/tm.texi (Register Classes, Old Constraints, Scalar Return) | |
17707 | (File Names and DBX): Likewise. | |
17708 | * doc/trouble.texi (Incompatibilities): Likewise. | |
17709 | ||
1883802f | 17710 | 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com> |
6e37f6d4 TS |
17711 | |
17712 | * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint | |
17713 | instruction is correct. | |
17714 | ||
1883802f | 17715 | 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com> |
5345cf68 TS |
17716 | |
17717 | Allow non-constant arguments to conversion intrinsics. | |
17718 | * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare. | |
17719 | * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New. | |
17720 | * spu.c (print_operand): Handle 'v' and 'w'. | |
17721 | (exp2_immediate_p, spu_gen_exp2): Define. | |
17722 | * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0, | |
17723 | spu_convtf_1): Update parameter descriptions. | |
7a00d767 | 17724 | * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update. |
5345cf68 TS |
17725 | * constraints.md ('v', 'w'): New. |
17726 | * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU): | |
17727 | Remove. | |
17728 | (i2f, I2F): New define_mode_attr. | |
17729 | (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2, | |
17730 | floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2, | |
17731 | fixuns_truncv4sfv4si2): Update to use mode attribute. | |
17732 | (float<mode><i2f>2_mul, float<mode><i2f>2_div, | |
17733 | fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul, | |
17734 | floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New | |
17735 | patterns for combine. | |
17736 | ||
5f39ad47 SB |
17737 | 2009-04-27 Steven Bosscher <steven@gcc.gnu.org> |
17738 | ||
17739 | * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove | |
17740 | (cprop, hoist, pre, store_motion): New debug counters. | |
17741 | * tree-pass.h (pass_tracer): Move to list of gimple passes, it | |
17742 | is not an RTL pass anymore. | |
17743 | (pass_profiling): Remove extern decl for pass removed in 2005. | |
17744 | (pass_gcse, pass_jump_bypass): Remove. | |
17745 | * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts | |
17746 | to 0 for clean state. | |
17747 | * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration. | |
17748 | * cse.c (gate_handle_cse_after_global_opts, | |
17749 | rest_of_handle_cse_after_global_opts): New functions. | |
17750 | (pass_cse_after_global_opts): New pass, does local CSE. | |
17751 | * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove. | |
17752 | (TV_CPROP): New timevar. | |
17753 | * gcse.c (flag_rerun_cse_after_global_opts): New global variable. | |
17754 | (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars. | |
17755 | (gcse_main, recompute_all_luids): Remove. | |
17756 | (compute_hash_table_work): Call max_reg_num instead of reading | |
17757 | max_gcse_regno. | |
17758 | (cprop_jump): Don't set run_jump_opt_after_gcse. | |
17759 | (constprop_register): Always allow to alter jumps. | |
17760 | (cprop_insn): Likewise. | |
17761 | (do_local_cprop): Likewise. | |
17762 | (local_cprop_pass): Likewise. Return non-zero if something changed. | |
17763 | (cprop): Remove function, fold interesting bits into one_cprop_pass. | |
17764 | (find_implicit_sets): Add note about missed optimization opportunity. | |
17765 | (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the | |
17766 | pass_rtl_cprop execute function. | |
17767 | Don't bother tracking the pass number, each pass gets its own dumpfile | |
17768 | now anyway. | |
17769 | Always allow to alter jumpsand bypass jumps. | |
17770 | (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set | |
17771 | will just find no suitable set. | |
17772 | (pre_edge_insert): Fix dumping, this function is for PRE only. | |
17773 | (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the | |
17774 | pass_rtl_pre execute function. | |
17775 | (hoist_code): Return non-zero if something changed. Keep track of | |
17776 | substitutions and insertions for statistics gathering similar to PRE. | |
17777 | (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass, | |
17778 | called from the pass_rtl_hoist execute function. Show pass statistics. | |
17779 | (compute_store_table): Use max_reg_num directly instead of using the | |
17780 | formerly global max_gcse_regno. | |
17781 | (build_store_vectors): Likewise. | |
17782 | (replace_store_insn): Fix dumping. | |
17783 | (store_motion): Rename to ... | |
17784 | (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION | |
17785 | pass, called from the pass_rtl_store_motion execute function. Keep | |
17786 | track of substitutions and insertions for statistics gathering similar | |
17787 | to PRE. | |
17788 | (bypass_jumps): Remove, fold interesting bits into ... | |
17789 | (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called | |
17790 | from the pass_rtl_cprop execute function. | |
17791 | (gate_handle_jump_bypass, rest_of_handle_jump_bypass, | |
17792 | pass_jump_bypass): Remove. | |
17793 | (gate_handle_gcse, rest_of_handle_gcse): Remove. | |
17794 | (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New. | |
17795 | (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New. | |
17796 | (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New. | |
17797 | (gate_rtl_store_motion, execute_rtl_store_motion, | |
17798 | pass_rtl_store_motion): New. | |
17799 | * common.opt: Remove flag_cse_skip_blocks, adjust documentation to | |
17800 | make it clear that -fcse-skip-blocks is a no-op for backward compat. | |
17801 | * passes.c (init_optimization_passes): Remove pass_gcse and | |
17802 | pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion, | |
17803 | and cse_after_global_opts in place of pass_gcse. Schedule cprop | |
17804 | instead of pass_jump_bypass. | |
17805 | ||
c685de4a RG |
17806 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17807 | ||
17808 | PR middle-end/39928 | |
17809 | * gimplify.c (gimplify_expr): If we are required to create | |
17810 | a temporary make sure it ends up as register. | |
17811 | ||
72d41f29 L |
17812 | 2009-04-27 H.J. Lu <hongjiu.lu@intel.com> |
17813 | ||
17814 | PR target/39903 | |
17815 | * config/i386/i386.c (construct_container): Don't call | |
17816 | gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS, | |
17817 | X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS. | |
17818 | ||
e97809c6 MM |
17819 | 2009-04-27 Michael Matz <matz@suse.de> |
17820 | ||
17821 | * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap. | |
17822 | (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT. | |
17823 | * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap. | |
17824 | (dump_replaceable_exprs): Take a bitmap. | |
17825 | * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of | |
17826 | array. | |
17827 | (expand_gimple_basic_block): Likewise. | |
17828 | * tree-ssa-ter.c (struct temp_expr_table_d): Make | |
17829 | replaceable_expressions member a bitmap. | |
17830 | (free_temp_expr_table): Pass back and deal with bitmap, not gimple*. | |
17831 | (mark_replaceable): Likewise. | |
17832 | (find_replaceable_in_bb, dump_replaceable_exprs): Likewise. | |
17833 | * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap. | |
17834 | ||
211ca15c RG |
17835 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17836 | ||
17837 | * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards. | |
17838 | (verify_stmts): Dispatch to gimple/type verification code. | |
17839 | * tree-inline.c (remap_gimple_op_r): Work around C++ FE | |
17840 | issue with call argument types. | |
17841 | ||
fca5f3d1 MM |
17842 | 2009-04-27 Michael Matz <matz@suse.de> |
17843 | ||
17844 | * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove. | |
17845 | (init_update_ssa, delete_update_ssa, update_ssa): Remove references | |
17846 | to above. | |
17847 | ||
a1fa3e79 | 17848 | 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com> |
8224166e | 17849 | Eric Botcazou <ebotcazou@adacore.com> |
a1fa3e79 EB |
17850 | |
17851 | * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up | |
17852 | a label's basic block. | |
17853 | (mark_target_live_regs): Tidy and rework obsolete comments. | |
17854 | Change back DF problem to LIVE. If a label starts a basic block, | |
17855 | assume that all registers that used to be live then still are. | |
17856 | (init_resource_info): If a label starts a basic block, set its | |
17857 | BLOCK_FOR_INSN accordingly. | |
17858 | (fini_resource_info): Undo the setting of BLOCK_FOR_INSN. | |
17859 | ||
33b223c0 RG |
17860 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17861 | ||
17862 | * tree-flow-inline.h (function_ann): Remove. | |
17863 | (get_function_ann): Likewise. | |
17864 | * tree-dfa.c (create_function_ann): Remove. | |
17865 | * tree-flow.h (struct static_var_ann_d): Remove. | |
17866 | (struct function_ann_d): Likewise. | |
17867 | (union tree_ann_d): Remove fdecl member. | |
17868 | (function_ann_t): Remove. | |
17869 | (function_ann, get_function_ann, create_function_ann): Remove | |
17870 | declarations. | |
17871 | ||
e3136fa2 UB |
17872 | 2009-04-27 Uros Bizjak <ubizjak@gmail.com> |
17873 | ||
17874 | * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code. | |
17875 | ||
f87c9042 JH |
17876 | 2009-04-27 Jan Hubicka <jh@suse.cz> |
17877 | ||
17878 | * ipa-pure-const.c (struct funct_state_d): New fields | |
17879 | state_previously_known, looping_previously_known; remove | |
17880 | state_set_in_source. | |
17881 | (analyze_function): Use new fields. | |
17882 | (propagate): Avoid assumption that state_set_in_source imply | |
17883 | nonlooping. | |
17884 | ||
17885 | * tree-ssa-loop-niter.c (finite_loop_p): New function. | |
17886 | * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it. | |
17887 | * cfgloop.h (finite_loop_p): Declare. | |
17888 | ||
33abd718 MM |
17889 | 2009-04-26 Michael Matz <matz@suse.de> |
17890 | ||
e3136fa2 | 17891 | * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members. |
33abd718 | 17892 | |
ddc34084 MM |
17893 | 2009-04-26 Michael Matz <matz@suse.de> |
17894 | ||
17895 | * tree-pass.h (pass_del_ssa, pass_mark_used_blocks, | |
17896 | pass_free_cfg_annotations, pass_free_datastructures): Remove decls. | |
17897 | * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks, | |
17898 | pass_mark_used_blocks): Remove. | |
17899 | * tree-optimize.c (pass_free_datastructures, | |
17900 | execute_free_cfg_annotations, pass_free_cfg_annotations): Remove. | |
17901 | * passes.c (init_optimization_passes): Don't call | |
17902 | pass_mark_used_blocks, remove dead code. | |
17903 | ||
1fec7ed4 L |
17904 | 2009-04-26 H.J. Lu <hongjiu.lu@intel.com> |
17905 | ||
17906 | * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED. | |
17907 | * tree-ssa-live.h (register_ssa_partition): Likewise. | |
17908 | ||
4e3825db MM |
17909 | 2009-04-26 Michael Matz <matz@suse.de> |
17910 | ||
17911 | Expand from SSA. | |
17912 | * builtins.c (fold_builtin_next_arg): Handle SSA names. | |
17913 | * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly. | |
17914 | * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful | |
f100a4a8 | 17915 | SSA names. |
4e3825db MM |
17916 | (compare_pairs): Swap cost comparison. |
17917 | (coalesce_ssa_name): Don't use change_partition_var. | |
17918 | * tree-nrv.c (struct nrv_data): Add modified member. | |
17919 | (finalize_nrv_r): Set it. | |
17920 | (tree_nrv): Use it to update statements. | |
17921 | (pass_nrv): Require PROP_ssa. | |
17922 | * tree-mudflap.c (mf_decl_cache_locals, | |
17923 | mf_build_check_statement_for): Use make_rename_temp. | |
17924 | (pass_mudflap_2): Require PROP_ssa, run ssa update at finish. | |
17925 | * alias.c (find_base_decl): Handle SSA names. | |
17926 | * emit-rtl (set_reg_attrs_for_parm): Make non-static. | |
17927 | (component_ref_for_mem_expr): Don't leak SSA names into RTL. | |
17928 | * rtl.h (set_reg_attrs_for_parm): Declare. | |
17929 | * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename | |
17930 | to "optimized", remove unused locals at finish. | |
17931 | (execute_free_datastructures): Make global, call | |
17932 | delete_tree_cfg_annotations. | |
17933 | (execute_free_cfg_annotations): Don't call | |
17934 | delete_tree_cfg_annotations. | |
17935 | ||
17936 | * ssaexpand.h: New file. | |
17937 | * expr.c (toplevel): Include ssaexpand.h. | |
e3136fa2 | 17938 | (expand_assignment): Handle SSA names the same as register variables. |
4e3825db MM |
17939 | (expand_expr_real_1): Expand SSA names. |
17940 | * cfgexpand.c (toplevel): Include ssaexpand.h. | |
17941 | (SA): New global variable. | |
17942 | (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates. | |
17943 | (SSAVAR): New macro. | |
17944 | (set_rtl): New helper function. | |
17945 | (add_stack_var): Deal with SSA names, use set_rtl. | |
17946 | (expand_one_stack_var_at): Likewise. | |
17947 | (expand_one_stack_var): Deal with SSA names. | |
17948 | (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker | |
17949 | before unique numbers. | |
17950 | (expand_stack_vars): Use set_rtl. | |
17951 | (expand_one_var): Accept SSA names, add asserts for them, feed them | |
17952 | to above subroutines. | |
17953 | (expand_used_vars): Expand all partitions (without default defs), | |
17954 | then only the local decls (ignoring those expanded already). | |
17955 | (expand_gimple_cond): Remove edges when jumpif() expands an | |
17956 | unconditional jump. | |
17957 | (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here, | |
17958 | or remove abnormal edges. Ignore insns setting the LHS of a TERed | |
17959 | SSA name. | |
17960 | (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize | |
17961 | members of SA; deal with PARM_DECL partitions here; expand | |
17962 | all PHI nodes, free tree datastructures and SA. Commit instructions | |
17963 | on edges, clear EDGE_EXECUTABLE and remove abnormal edges here. | |
17964 | (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow | |
17965 | info and statements at start, collect garbage at finish. | |
17966 | * tree-ssa-live.h (struct _var_map): Remove partition_to_var member. | |
17967 | (VAR_ANN_PARTITION) Remove. | |
17968 | (change_partition_var): Don't declare. | |
17969 | (partition_to_var): Always return SSA names. | |
17970 | (var_to_partition): Only accept SSA names. | |
17971 | (register_ssa_partition): Only check argument. | |
17972 | * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var | |
17973 | member. | |
17974 | (delete_var_map): Don't free it. | |
17975 | (var_union): Only accept SSA names, simplify. | |
17976 | (partition_view_init): Mark only useful SSA names as used. | |
17977 | (partition_view_fini): Only deal with SSA names. | |
17978 | (change_partition_var): Remove. | |
17979 | (dump_var_map): Use ssa_name instead of partition_to_var member. | |
17980 | * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL | |
17981 | basic blocks. | |
17982 | * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h. | |
17983 | (struct _elim_graph): New member const_dests; nodes member vector of | |
17984 | ints. | |
17985 | (set_location_for_edge): New static helper. | |
17986 | (create_temp): Remove. | |
17987 | (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge, | |
e3136fa2 | 17988 | insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions. |
4e3825db MM |
17989 | (new_elim_graph): Allocate const_dests member. |
17990 | (clean_elim_graph): Truncate const_dests member. | |
17991 | (delete_elim_graph): Free const_dests member. | |
17992 | (elim_graph_size): Adapt to new type of nodes member. | |
17993 | (elim_graph_add_node): Likewise. | |
17994 | (eliminate_name): Likewise. | |
17995 | (eliminate_build): Don't take basic block argument, deal only with | |
17996 | partition numbers, not variables. | |
17997 | (get_temp_reg): New static helper. | |
17998 | (elim_create): Use it, deal with RTL temporaries instead of trees. | |
17999 | (eliminate_phi): Adjust all calls to new signature. | |
18000 | (assign_vars, replace_use_variable, replace_def_variable): Remove. | |
18001 | (rewrite_trees): Only do checking. | |
18002 | (edge_leader, stmt_list, leader_has_match, leader_match): Remove. | |
18003 | (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p, | |
18004 | init_analyze_edges_for_bb, fini_analyze_edges_for_bb, | |
18005 | contains_tree_r, MAX_STMTS_IN_LATCH, | |
18006 | process_single_block_loop_latch, analyze_edges_for_bb, | |
18007 | perform_edge_inserts): Remove. | |
18008 | (expand_phi_nodes): New global function. | |
18009 | (remove_ssa_form): Take ssaexpand parameter. Don't call removed | |
18010 | functions, initialize new parameter, remember partitions having a | |
18011 | default def. | |
18012 | (finish_out_of_ssa): New global function. | |
18013 | (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form, | |
18014 | don't reset in_ssa_p here, don't disable TER when mudflap. | |
18015 | (pass_del_ssa): Remove. | |
18016 | * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and | |
18017 | partition members. | |
18018 | (execute_free_datastructures): Declare. | |
18019 | * Makefile.in (SSAEXPAND_H): New variable. | |
18020 | (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H. | |
18021 | * basic-block.h (commit_one_edge_insertion): Declare. | |
18022 | * passes.c (init_optimization_passes): Move pass_nrv and | |
18023 | pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove | |
18024 | pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations. | |
18025 | * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare. | |
18026 | (redirect_branch_edge): Deal with super block when expanding, split | |
18027 | out jump patching itself into ... | |
18028 | (patch_jump_insn): ... here, new static helper. | |
18029 | ||
17c665a9 MM |
18030 | 2009-04-26 Michael Matz <matz@suse.de> |
18031 | ||
18032 | * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate | |
18033 | beyond num_ssa_names. | |
18034 | * tree-ssa-ter.c (free_temp_expr_table): Likewise. | |
18035 | * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise. | |
18036 | ||
92061771 JJ |
18037 | 2009-04-26 Jakub Jelinek <jakub@redhat.com> |
18038 | ||
ce372372 JJ |
18039 | PR inline-asm/39543 |
18040 | * fwprop.c (forward_propagate_asm): New function. | |
18041 | (forward_propagate_and_simplify): Propagate also into __asm, if it | |
18042 | doesn't increase the number of referenced registers. | |
18043 | ||
92061771 JJ |
18044 | PR c/39889 |
18045 | * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR. | |
18046 | ||
18047 | 2009-04-26 Jakub Jelinek <jakub@redhat.com> | |
77f2a970 JJ |
18048 | |
18049 | * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call | |
18050 | note_nonlocal_vla_type for nonlocal VLAs. | |
18051 | (note_nonlocal_vla_type, note_nonlocal_block_vlas, | |
18052 | contains_remapped_vars, remap_vla_decls): New functions. | |
18053 | (convert_nonlocal_reference_stmt): If not optimizing, call | |
18054 | note_nonlocal_block_vlas on GIMPLE_BIND block vars. | |
18055 | (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified | |
18056 | if it wasn't found in var_map. | |
18057 | (finalize_nesting_tree_1): Call remap_vla_decls. If outermost | |
18058 | GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain | |
18059 | to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling | |
18060 | declare_vars. | |
18061 | * gimplify.c (nonlocal_vlas): New variable. | |
18062 | (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local | |
18063 | referenced VLAs. | |
18064 | (gimplify_body): Create and destroy nonlocal_vlas. | |
a9548ddf | 18065 | |
4561e242 JJ |
18066 | * dwarf2out.c (loc_descr_plus_const): New function. |
18067 | (build_cfa_aligned_loc, tls_mem_loc_descriptor, | |
18068 | mem_loc_descriptor, loc_descriptor_from_tree_1, | |
18069 | descr_info_loc, gen_variable_die): Use it. | |
18070 | ||
a9548ddf JJ |
18071 | * tree.h (DECL_BY_REFERENCE): Note that it is also valid for |
18072 | !TREE_STATIC VAR_DECLs. | |
18073 | * dwarf2out.c (loc_by_reference, gen_decl_die): Handle | |
18074 | DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs. | |
18075 | (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if | |
18076 | DECL_BY_REFERENCE is valid. | |
18077 | * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE | |
18078 | for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs. | |
18079 | * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl): | |
18080 | Copy DECL_BY_REFERENCE. | |
18081 | (struct nesting_copy_body_data): New type. | |
18082 | (nesting_copy_decl): New function. | |
18083 | (finalize_nesting_tree_1): Remap types of debug_var_chain variables, | |
18084 | if they have variable length. | |
18085 | ||
10555d08 MM |
18086 | 2009-04-26 Michael Matz <matz@suse.de> |
18087 | ||
18088 | * tree-sra.c (sra_build_assignment): Don't use into_ssa mode, | |
18089 | mark new temporaries for renaming. | |
18090 | ||
e11187cc JM |
18091 | 2009-04-26 Joseph Myers <joseph@codesourcery.com> |
18092 | ||
18093 | PR c/39581 | |
18094 | * c-decl.c (global_bindings_p): Return negative value. | |
18095 | (c_variable_size): New. Based on variable_size from | |
18096 | stor-layout.c. | |
18097 | (grokdeclarator): Call c_variable_size not variable_size. | |
18098 | ||
f6a51d31 UB |
18099 | 2009-04-26 Uros Bizjak <ubizjak@gmail.com> |
18100 | ||
18101 | * config/i386/i386.c (print_operand) ['z']: Fix typo. | |
18102 | ||
4b97723d KT |
18103 | 2009-04-26 Kai Tietz <kai.tietz@onevision.com> |
18104 | ||
18105 | * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): | |
18106 | Redefine it to just use mingw/include. | |
18107 | (ASM_SPEC): Rules for -m32 and -m64. | |
18108 | (LINK_SPEC): Use Likewise. | |
18109 | (SPEC_32): New define. | |
18110 | (SPEC_64): Likewise. | |
18111 | (SUB_LINK_SPEC): Likewise. | |
18112 | (MULTILIB_DEFAULTS): New define. | |
18113 | * config/i386/t-mingw-w64 (MULTILIB_OPTIONS): | |
18114 | Add multilib options. | |
18115 | (MULTILIB_DIRNAMES): Likewise. | |
18116 | (MULTILIB_OSDIRNAMES): Likewise. | |
18117 | (LIBGCC): Likewise. | |
18118 | (INSTALL_LIBGCC): Likewise. | |
18119 | ||
991d6621 JM |
18120 | 2009-04-26 Joseph Myers <joseph@codesourcery.com> |
18121 | ||
18122 | PR c/39556 | |
18123 | * c-tree.h (enum c_inline_static_type): New. | |
18124 | (record_inline_static): Declare. | |
18125 | * c-decl.c (struct c_inline_static, c_inline_statics, | |
18126 | record_inline_static, check_inline_statics): New. | |
18127 | (pop_file_scope): Call check_inline_statics. | |
18128 | (start_decl): Call record_inline_static instead of pedwarning | |
18129 | directly for static in inline function. | |
18130 | * c-typeck.c (build_external_ref): Call record_inline_static | |
18131 | instead of pedwarning directly for static referenced in inline | |
18132 | function. | |
18133 | ||
4a81774c SB |
18134 | 2009-04-26 Steven Bosscher <steven@gcc.gnu.org> |
18135 | ||
18136 | * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is | |
18137 | not new but only being rescanned. | |
18138 | * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set, | |
18139 | reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block, | |
18140 | alloc_reg_set_mem, free_reg_set_mem, record_one_set, | |
18141 | record_set_info, compute_set, grealloc): Remove. | |
18142 | (recompute_all_luids): New function. | |
18143 | (gcse_main): Don't compute sets, and don't do related memory | |
18144 | allocations/free-ing. If something changed before the end of the | |
18145 | pass, update LUIDs using recompute_all_luids. | |
18146 | (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory. | |
18147 | (free_gcse_mem): Don't free it either. | |
18148 | (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info): | |
18149 | Use the df insn LUIDs. | |
18150 | (load_killed_in_block): Likewise. | |
18151 | (compute_hash_table_work): Don't compute reg_set_in_block. | |
18152 | (compute_transp): Use DF_REG_DEF_CHAINs. | |
18153 | (local_cprop_pass): Don't use compute_sets and related functions. | |
18154 | (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass): | |
18155 | Use get_max_uid() instead of max_cuid. | |
18156 | (insert_insn_end_basic_block, pre_insert_copy_insn, | |
18157 | update_ld_motion_stores): Don't try to | |
18158 | keep reg_set tables up to date. | |
18159 | (pre_insert_copies): Use df insn LUIDs. | |
18160 | (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P. | |
18161 | (reg_set_info): Don't use extra bitmap argument. | |
18162 | (compute_store_table): Don't compute reg_set_in_block. Use DF scan | |
18163 | information to compute regs_set_in_block. | |
18164 | (free_store_memory, store_motion): Don't nullify reg_set_in_block. | |
18165 | (bypass_jumps): Don't use compute_sets and friends. | |
18166 | ||
e8f99a9d RW |
18167 | 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
18168 | ||
18169 | PR testsuite/39710 | |
18170 | * opts.c (undocumented_msg): Do not leave blank even with | |
18171 | ENABLE_CHECKING. | |
18172 | ||
6895bac8 JM |
18173 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
18174 | ||
18175 | * c-decl.c (build_enumerator): Allow values folding to integer | |
18176 | constants but not integer constant expressions with a pedwarn if | |
18177 | pedantic. | |
18178 | ||
24070fcb JM |
18179 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
18180 | ||
18181 | PR c/39582 | |
18182 | * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR | |
18183 | with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length | |
18184 | type is an integer constant. | |
18185 | ||
d6d89aa1 UB |
18186 | 2009-04-25 Uros Bizjak <ubizjak@gmail.com> |
18187 | ||
18188 | PR target/39897 | |
18189 | * config/i386/i386.c (print_operand) ['z']: Revert handling of | |
18190 | HImode operands. | |
18191 | ||
92f6fd0b JM |
18192 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
18193 | ||
18194 | PR c/39564 | |
18195 | * c-decl.c (grokdeclarator): Diagnose declarations of functions | |
18196 | with variably modified return type and no storage class | |
18197 | specifiers, except for the case of nested functions. Distinguish | |
18198 | extern declarations of functions with variably modified return | |
18199 | types from those of objects with variably modified types. | |
18200 | ||
a3710436 JH |
18201 | 2009-04-25 Jan Hubicka <jh@suse.cz> |
18202 | ||
18203 | * tree.c (list_equal_p): New function. | |
18204 | * tree.h (list_equal_p): Declare. | |
18205 | * coretypes.h (edge_def, edge, const_edge, basic_block_def | |
18206 | basic_block_def, basic_block, const_basic_block): New. | |
18207 | * tree-eh.c (make_eh_edge): EH edges are not abnormal. | |
18208 | (redirect_eh_edge): New function. | |
18209 | (make_eh_edge_update_phi): EH edges are not abnormal. | |
18210 | * except.c: Include tree-flow.h. | |
18211 | (list_match): New function. | |
18212 | (eh_region_replaceable_by_p): New function. | |
18213 | (replace_region): New function. | |
18214 | (hash_type_list): New function. | |
18215 | (hash_eh_region): New function. | |
18216 | (eh_regions_equal_p): New function. | |
18217 | (merge_peers): New function. | |
18218 | (remove_unreachable_regions): Verify EH tree when checking; | |
18219 | merge peers. | |
18220 | (copy_eh_region_1): New function. | |
18221 | (copy_eh_region): New function. | |
18222 | (push_reachable_handler): New function. | |
18223 | (build_post_landing_pads, dw2_build_landing_pads): Be ready for | |
18224 | regions without label but with live RESX. | |
18225 | * except.h (redirect_eh_edge_to_label): New. | |
18226 | * tree-flow.h (redirect_eh_edge): New. | |
18227 | * coretypes.h (edge_def, edge, const_edge, basic_block_def | |
18228 | basic_block_def, basic_block, const_basic_block): Remove. | |
18229 | * Makefile.in (except.o): Add dependency on tree-flow.h | |
18230 | * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges. | |
18231 | * basic-block.h (edge, const_edge, basic_block, const_basic_block): | |
18232 | Remove. | |
18233 | ||
3764d512 EB |
18234 | 2009-04-25 Eric Botcazou <ebotcazou@adacore.com> |
18235 | ||
18236 | PR bootstrap/39645 | |
18237 | * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE | |
18238 | on the destination of memcpy. | |
18239 | ||
1c62e8f2 PB |
18240 | 2009-04-25 Paolo Bonzini <bonzini@gnu.org> |
18241 | ||
18242 | * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P, | |
18243 | REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P, | |
18244 | REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference. | |
18245 | ||
496a4ef5 JH |
18246 | 2009-04-25 Jan Hubicka <jh@suse.cz> |
18247 | ||
18248 | * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels. | |
18249 | (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region | |
18250 | to be reached by different label than left. | |
18251 | (update_eh_edges): Update comment; remove edge_to_remove if possible | |
18252 | and return true if suceeded. | |
18253 | (cleanup_empty_eh): Accept sharing map; handle shared regions. | |
18254 | (cleanup_eh): Compute sharing map. | |
18255 | * except.c (remove_eh_handler_and_replace): Add argument if we should | |
18256 | update regions. | |
18257 | (remove_unreachable_regions): Update for label sharing. | |
18258 | (label_to_region_map): Likewise. | |
18259 | (get_next_region_sharing_label): New function. | |
18260 | (remove_eh_handler_and_replace): Add update_catch_try parameter; update | |
18261 | prev_try pointers. | |
18262 | (remove_eh_handler): Update. | |
18263 | (remove_eh_region_and_replace_by_outer_of): New function. | |
18264 | * except.h (struct eh_region): Add next_region_sharing_label. | |
18265 | (remove_eh_region_and_replace_by_outer_of, | |
18266 | get_next_region_sharing_label): Declare. | |
18267 | * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify. | |
18268 | ||
18269 | 2009-04-25 Jan Hubicka <jh@suse.cz> | |
18270 | ||
18271 | * tree-cfg.c (split_critical_edges): Split also edges where we can't | |
18272 | insert code even if they are not critical. | |
18273 | ||
18274 | 2009-04-25 Jan Hubicka <jh@suse.cz> | |
18275 | ||
18276 | * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable. | |
18277 | (gimple_can_remove_branch_p): EH edges won't remove branch by | |
18278 | redirection. | |
18279 | * tree-inline.c (update_ssa_across_abnormal_edges): Do handle | |
18280 | updating of non-abnormal EH edges. | |
18281 | * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable. | |
18282 | (gimple_can_remove_branch_p): EH edges are unremovable by redirection. | |
18283 | (split_critical_edges): Split also edges where emitting code on them | |
18284 | will lead to splitting later. | |
18285 | ||
a3a5e3d1 UB |
18286 | 2009-04-25 Uros Bizjak <ubizjak@gmail.com> |
18287 | H.J. Lu <hongjiu.lu@intel.com> | |
18288 | ||
18289 | PR target/39590 | |
18290 | * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether | |
18291 | the configured assembler supports fildq and fistpq mnemonics. | |
18292 | (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS. | |
18293 | * configure: Regenerated. | |
18294 | * config.in: Ditto. | |
18295 | ||
18296 | * config/i386/i386.c (print_operand): Handle 'Z'. | |
18297 | ['z']: Remove handling of special fild/fist suffixes. | |
18298 | (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn. | |
18299 | * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output | |
18300 | suffix of fild insn. | |
18301 | (*floatsi<mode>2_vector_mixed): Ditto. | |
18302 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto. | |
18303 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto. | |
18304 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto. | |
18305 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto. | |
18306 | * config/i386/gas.h (GAS_MNEMONICS): Remove. | |
18307 | ||
23750d7f | 18308 | 2009-04-25 Ben Elliston <bje@au.ibm.com> |
f100a4a8 | 18309 | |
23750d7f BE |
18310 | * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as |
18311 | the source of a set operation. | |
18312 | ||
e6ff3083 AS |
18313 | 2009-04-25 Anatoly Sokolov <aesok@post.ru> |
18314 | ||
18315 | * target.h (struct gcc_target): Add case_values_threshold field. | |
18316 | * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New. | |
18317 | (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD. | |
18318 | * targhooks.c (default_case_values_threshold): New function. | |
18319 | * targhooks.h (default_case_values_threshold): Declare function. | |
18320 | * stmt.c (expand_case): Use case_values_threshold target hook. | |
18321 | * expr.h (case_values_threshold): Remove declartation. | |
18322 | * expr.c (case_values_threshold): Remove function. | |
18323 | * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation. | |
18324 | ||
18325 | * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro. | |
18326 | * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro. | |
18327 | (avr_case_values_threshold): Declare as static. | |
18328 | * config/avr/avr-protos.h (avr_case_values_threshold): Remove. | |
18329 | ||
18330 | * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro. | |
18331 | * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro. | |
18332 | (mn10300_case_values_threshold): New function. | |
18333 | ||
569c72fc L |
18334 | 2009-04-24 H.J. Lu <hongjiu.lu@intel.com> |
18335 | ||
18336 | * ira.c (setup_cover_and_important_classes): Add enum cast. | |
18337 | ||
ff3cb468 VM |
18338 | 2009-04-24 Vladimir Makarov <vmakarov@redhat.com> |
18339 | ||
18340 | * genpreds.c (write_enum_constraint_num): Output definition of | |
18341 | CONSTRAINT_NUM_DEFINED_P macro. | |
18342 | * ira.c (setup_cover_and_important_classes): Use | |
18343 | CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef. | |
f100a4a8 | 18344 | |
4f7be849 DD |
18345 | 2009-04-24 DJ Delorie <dj@redhat.com> |
18346 | ||
18347 | * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test | |
18348 | __SH2A_SINGLE_ONLY__ also. | |
18349 | ||
735b94a7 SE |
18350 | 2009-04-24 Steve Ellcey <sje@cup.hp.com> |
18351 | ||
18352 | * config/ia64/ia64.md (movfs_internal): Allow flt constants. | |
18353 | (movdf_internal): Ditto. | |
18354 | * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow | |
18355 | SFmode and DFmode constants. | |
18356 | (ia64_print_operand): Add 'G' format for printing | |
18357 | floating point constants. | |
18358 | ||
77a30264 RG |
18359 | 2009-04-24 Richard Guenther <rguenther@suse.de> |
18360 | ||
18361 | * tree-vrp.c (extract_range_from_binary_expr): Handle overflow | |
18362 | from unsigned additions. | |
18363 | ||
2b6da65c JM |
18364 | 2009-04-24 Joseph Myers <joseph@codesourcery.com> |
18365 | ||
18366 | * c-typeck.c (set_init_index): Allow array designators that are | |
18367 | not integer constant expressions with a pedwarn if pedantic. | |
18368 | ||
f5a17c43 BS |
18369 | 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com> |
18370 | ||
18371 | * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is | |
18372 | zero if no overlap in nonzero bits between the operands. | |
18373 | ||
32e8bb8e ILT |
18374 | 2009-04-24 Ian Lance Taylor <iant@google.com> |
18375 | ||
18376 | * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. | |
18377 | (record_dead_and_set_regs): Likewise. | |
18378 | * df.h (struct df_mw_hardreg): Change flags field to int. | |
18379 | (struct df_base_ref): Likewise. | |
18380 | (struct df): Change changeable_flags field to int. | |
18381 | * df-scan.c (df_defs_record): Change clobber_flags to int. | |
18382 | * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum | |
18383 | constants rather than #define macros. | |
18384 | (enum dwarf_attribute, enum dwarf_location_atom): Likewise. | |
18385 | (enum dwarf_type, enum dwarf_endianity_encoding): Likewise. | |
18386 | (enum dwarf_calling_convention): Likewise. | |
18387 | (enum dwarf_line_number_x_ops): Likewise. | |
18388 | (enum dwarf_call_frame_info): Likewise. | |
18389 | (enum dwarf_source_language): Likewise. | |
18390 | * dwarf2out.c (int_loc_descriptor): Add cast to enum type. | |
18391 | (add_calling_convention_attribute): Likewise. | |
a3a5e3d1 UB |
18392 | * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type. |
18393 | (combine_comparisons): Change compcode to int. Add cast to enum type. | |
32e8bb8e ILT |
18394 | * genrecog.c (maybe_both_true_2): Change c to int. |
18395 | (write_switch): Likewise. Add cast to enum type. | |
18396 | * gimplify.c (gimplify_omp_for): Handle return values from | |
18397 | gimplify_expr using MIN rather than bitwise or. | |
18398 | (gimplify_expr): Add cast to enum type. | |
18399 | * ipa-prop.c (update_jump_functions_after_inlining): Change | |
18400 | IPA_BOTTOM to IPA_JF_UNKNOWN. | |
a3a5e3d1 UB |
18401 | * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int. |
18402 | Add casts to enum type. | |
32e8bb8e ILT |
18403 | (setup_cover_and_important_classes): Change cl to int. Add casts |
18404 | to enum type. | |
18405 | (setup_class_translate): Change cl and mode to int. | |
18406 | (ira_init_once): Change mode to int. | |
18407 | (free_register_move_costs): Likewise. | |
18408 | (setup_prohibited_mode_move_regs): Add casts to enum type. | |
18409 | * langhooks.c (add_builtin_function_common): Rework assertion that | |
18410 | value fits bitfield. | |
18411 | * mcf.c (add_fixup_edge): Change type parameter to edge_type. | |
18412 | * omega.c (omega_do_elimination): Avoid math on enum types. | |
18413 | * optabs.c (expand_vec_shift_expr): Remove casts to int. | |
18414 | * opts.c (set_debug_level): Change 2 to enum constant. Use new | |
18415 | int local to handle integral_argment value. | |
18416 | * regmove.c (try_auto_increment): Change PUT_MODE to | |
18417 | PUT_REG_NOTE_KIND. | |
18418 | * reload.c (push_secondary_reload): Add casts to enum type. | |
18419 | (secondary_reload_class, find_valid_class): Likewise. | |
18420 | * reload1.c (emit_input_reload_insns): Likewise. | |
18421 | * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise. | |
18422 | * sel-sched.c (init_hard_regs_data): Change cur_mode to int. | |
18423 | * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum | |
18424 | constant. | |
18425 | * tree.c (build_common_builtin_nodes): Add casts to enum type. | |
18426 | * tree-complex.c (complex_lattice_t): Typedef to int rather than | |
18427 | enum type. | |
18428 | (expand_complex_libcall): Add casts to enum type. | |
18429 | * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant. | |
18430 | * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code | |
18431 | with ERROR_MARK, not NUM_TREE_CODES. | |
18432 | (vect_create_epilog_for_reduction): Likewise. | |
18433 | (vectorizable_reduction): Don't initialize epiloc_reduc_code. | |
a3a5e3d1 | 18434 | When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES. |
32e8bb8e ILT |
18435 | * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to |
18436 | enum machine_mode. | |
18437 | * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to | |
18438 | vect_unused_in_loop. Change 0 to loop_vect. | |
a3a5e3d1 | 18439 | * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type. |
32e8bb8e ILT |
18440 | * var-tracking.c (get_init_value): Change return type to enum |
18441 | var_init_status. | |
18442 | * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T. | |
18443 | * config/arm/arm.c (fp_model_for_fpu): Change to array to enum | |
18444 | arm_fp_model. | |
18445 | (arm_override_options): Add casts to enum type. | |
18446 | (arm_emit_tls_decoration): Likewise. | |
18447 | * config/i386/i386.c (ix86_function_specific_restore): Add casts | |
18448 | to enum type. | |
18449 | * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise. | |
18450 | * config/ia64/ia64.c (ia64_expand_compare): Change magic to int. | |
18451 | * config/rs6000/rs6000.c (rs6000_override_options): Add casts to | |
18452 | enum type. | |
18453 | * config/s390/s390.c (code_for_builtin_64): Change to array of | |
18454 | enum insn_code. | |
18455 | (code_for_builtin_31): Likewise. | |
18456 | (s390_expand_builtin): Change code_for_builtin to enum insn_code | |
18457 | const *. | |
18458 | * config/sparc/sparc.c (sparc_override_options): Change value | |
18459 | field in struct code_model to enum cmodel. In initializer change | |
18460 | 0 to NULL and add cast to enum type. | |
18461 | ||
18462 | * c-typeck.c (build_modify_expr): Add lhs_origtype parameter. | |
18463 | Change all callers. Issue a -Wc++-compat warning using | |
18464 | lhs_origtype if necessary. | |
18465 | (convert_for_assignment): Issue -Wc++-compat warnings about | |
18466 | invalid conversions to enum type on assignment. | |
18467 | * c-common.h (build_modify_expr): Update declaration. | |
18468 | ||
ac4fc08a NC |
18469 | 2009-04-24 Nick Clifton <nickc@redhat.com> |
18470 | ||
18471 | * config/iq2000/iq2000.c (function_arg): Handle TImode values. | |
18472 | (function_arg_advance): Likewise. | |
18473 | * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the | |
18474 | 5th alternative. | |
18475 | ||
f22e891a AK |
18476 | 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com> |
18477 | ||
18478 | * config/s390/constraints.md ('I', 'J'): Fix condition. | |
18479 | ||
ad58aabe DN |
18480 | 2009-04-24 Diego Novillo <dnovillo@google.com> |
18481 | ||
18482 | * gengtype-parse.c (parse_error): Add newline after message. | |
18483 | ||
879a4a01 L |
18484 | 2009-04-24 H.J. Lu <hongjiu.lu@intel.com> |
18485 | ||
18486 | * config/i386/sse.md (avxmodesuffixs): Removed. | |
18487 | (*avx_pinsr<avxmodesuffixs>): Renamed to ... | |
18488 | (*avx_pinsr<ssevecsize>): This. | |
18489 | ||
f63426af BS |
18490 | 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com> |
18491 | ||
18492 | * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes; | |
18493 | follow chains of regs with a single definition, and allow expressions | |
18494 | that are function_invariant_p. | |
ce72fe6c | 18495 | (simple_rhs_p): Allow expressions that are function_invariant_p. |
f63426af | 18496 | |
30349c74 PB |
18497 | 2009-04-24 Paolo Bonzini <bonzini@gnu.org> |
18498 | ||
18499 | PR middle-end/39867 | |
18500 | * fold-const.c (fold_cond_expr_with_comparison): When folding | |
18501 | > and >= to MAX, make sure the MAX uses the same type as the | |
18502 | comparison's operands. | |
18503 | ||
8d8256c1 NC |
18504 | 2009-04-24 Nick Clifton <nickc@redhat.com> |
18505 | ||
18506 | * config/frv/frv.c (frv_frame_access): Do not use reg+reg | |
18507 | addressing for DImode accesses. | |
18508 | (frv_print_operand_address): Handle PLUS case. | |
a3a5e3d1 | 18509 | * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed. |
8d8256c1 | 18510 | |
6216f94e JJ |
18511 | 2009-04-24 Jakub Jelinek <jakub@redhat.com> |
18512 | ||
18513 | PR rtl-optimization/39794 | |
18514 | * alias.c (canon_true_dependence): Add x_addr argument. | |
18515 | * rtl.h (canon_true_dependence): Adjust prototype. | |
18516 | * cse.c (check_dependence): Adjust canon_true_dependence callers. | |
18517 | * cselib.c (cselib_invalidate_mem): Likewise. | |
18518 | * gcse.c (compute_transp): Likewise. | |
18519 | * dse.c (scan_reads_nospill): Likewise. | |
18520 | (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame | |
18521 | addresses pass base->val_rtx as mem_addr, for const-or-frame addresses | |
18522 | canon_base_addr of the group, plus optional offset. | |
18523 | (struct group_info): Rename canon_base_mem to | |
18524 | canon_base_addr. | |
18525 | (get_group_info): Set canon_base_addr to canon_rtx of base, not | |
18526 | canon_rtx of base_mem. | |
18527 | ||
6de7a512 PB |
18528 | 2009-04-23 Paolo Bonzini <bonzini@gnu.org> |
18529 | ||
18530 | * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue): | |
18531 | Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS. | |
18532 | ||
4a3a2376 UW |
18533 | 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
18534 | ||
18535 | * config/spu/spu-builtins.h: Delete file. | |
18536 | ||
18537 | * config/spu/spu.h (enum spu_builtin_type): Move here from | |
18538 | spu-builtins.h. | |
18539 | (struct spu_builtin_description): Likewise. Add GTY marker. | |
18540 | Do not use enum spu_function_code or enum insn_code. | |
18541 | (spu_builtins): Add extern declaration. | |
18542 | ||
18543 | * config/spu/spu.c: Do not include "spu-builtins.h". | |
18544 | (enum spu_function_code, enum spu_builtin_type_index, | |
18545 | V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node, | |
18546 | V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node, | |
18547 | unsigned_V8HI_type_node, unsigned_V4SI_type_node, | |
18548 | unsigned_V2DI_type_node): Move here from spu-builtins.h. | |
18549 | (spu_builtin_types): Make static. Add GTY marker. | |
18550 | (spu_builtins): Add extern declaration with GTY marker. | |
18551 | Include "gt-spu.h". | |
18552 | ||
18553 | * config/spu/spu-c.c: Do not include "spu-builtins.h". | |
18554 | (spu_resolve_overloaded_builtin): Do not use spu_function_code. | |
18555 | Check programmatically whether all parameters are scalar. | |
18556 | ||
18557 | * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies. | |
18558 | ||
bbaba73f EB |
18559 | 2009-04-23 Eric Botcazou <ebotcazou@adacore.com> |
18560 | ||
18561 | * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct | |
18562 | assignment from the constructor either if the target is volatile. | |
18563 | ||
ee93c1c6 DJ |
18564 | 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
18565 | ||
18566 | * config/arm/arm.md (insv): Do not share operands[0]. | |
18567 | ||
b2f21330 NS |
18568 | 2009-04-23 Nathan Sidwell <nathan@codesourcery.com> |
18569 | ||
18570 | * config/vxlib-tls.c (active_tls_threads): Delete. | |
18571 | (delete_hook_installed): New. | |
18572 | (tls_delete_hook): Don't delete the delete hook. | |
18573 | (tls_destructor): Delete it here. | |
18574 | (__gthread_set_specific): Adjust installing the delete hook. | |
18575 | (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and | |
18576 | __gthread_leave_tsd_dtor_context. | |
18577 | ||
4782dfa7 RAE |
18578 | 2009-04-23 Rafael Avila de Espindola <espindola@google.com> |
18579 | ||
18580 | * c-format.c (gcc_tdiag_char_table): Add support for %E. | |
18581 | ||
bf758008 UB |
18582 | 2009-04-23 Uros Bizjak <ubizjak@gmail.com> |
18583 | ||
18584 | * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to | |
18585 | enum type. | |
18586 | (alpha_rtx_costs): Ditto. | |
18587 | (emit_unlikely_jump): Use add_reg_note. | |
18588 | (emit_frame_store_1): Ditto. | |
18589 | (alpha_expand_prologue): Ditto. | |
18590 | (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call. | |
18591 | * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note. | |
18592 | ||
7323a100 NC |
18593 | 2009-04-23 Nick Clifton <nickc@redhat.com> |
18594 | ||
18595 | * config/v850/v850.md (epilogue): Remove suppressed code. | |
18596 | (return): Rename to return_simple and remove test of frame size. | |
18597 | * config/v850/v850.c (expand_epilogue): Rename call to gen_return | |
18598 | to gen_return_simple. | |
18599 | ||
360032ba JY |
18600 | 2009-04-22 Jing Yu <jingyu@google.com> |
18601 | ||
18602 | PR testsuite/39781 | |
18603 | * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP. | |
18604 | ||
53650abe AP |
18605 | 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com> |
18606 | ||
18607 | PR C/31499 | |
18608 | * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE | |
18609 | and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the | |
18610 | value is a VECTOR_CST, the element type is the element type of the | |
18611 | vector. | |
18612 | ||
89043e8a DD |
18613 | 2009-04-22 DJ Delorie <dj@redhat.com> |
18614 | ||
18615 | * config/m32c/m32c.h: Update GTY annotations to new syntax. | |
18616 | ||
023f059b JJ |
18617 | 2009-04-22 Jakub Jelinek <jakub@redhat.com> |
18618 | ||
18619 | * alias.c (find_base_term): Move around LO_SUM case, so that | |
18620 | CONST falls through into PLUS/MINUS handling. | |
18621 | ||
2c0eba5a JJ |
18622 | PR c/39855 |
18623 | * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing | |
18624 | into 0, use omit_one_operand. | |
18625 | ||
9a461028 BE |
18626 | 2009-04-23 Ben Elliston <bje@au.ibm.com> |
18627 | ||
18628 | * config/rs6000/linux-unwind.h (get_regs): Remove type | |
18629 | puns. Change the type of `pc' to an array of unsigned ints and | |
18630 | update all users. Constify frame24. | |
18631 | ||
653e2568 DD |
18632 | 2009-04-22 DJ Delorie <dj@redhat.com> |
18633 | ||
18634 | * config/m32c/m32c.c (m32c_special_page_vector_p): Move | |
18635 | declarations before code. | |
18636 | (current_function_special_page_vector): Likewise. | |
18637 | (m32c_expand_insv): Silence a warning. | |
18638 | ||
60839f5d | 18639 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
d1b38208 TG |
18640 | |
18641 | * alias.c: Update GTY annotations to new syntax. | |
18642 | * basic-block.h: Likewise. | |
18643 | * bitmap.h: Likewise. | |
18644 | * c-common.h: Likewise. | |
18645 | * c-decl.c: Likewise. | |
18646 | * c-parser.c: Likewise. | |
18647 | * c-pragma.c: Likewise. | |
18648 | * c-tree.h: Likewise. | |
18649 | * cfgloop.h: Likewise. | |
18650 | * cgraph.h: Likewise. | |
18651 | * config/alpha/alpha.c: Likewise. | |
18652 | * config/arm/arm.h: Likewise. | |
18653 | * config/avr/avr.h: Likewise. | |
18654 | * config/bfin/bfin.c: Likewise. | |
18655 | * config/cris/cris.c: Likewise. | |
18656 | * config/darwin.c: Likewise. | |
18657 | * config/frv/frv.c: Likewise. | |
18658 | * config/i386/i386.c: Likewise. | |
18659 | * config/i386/i386.h: Likewise. | |
18660 | * config/i386/winnt.c: Likewise. | |
18661 | * config/ia64/ia64.h: Likewise. | |
18662 | * config/iq2000/iq2000.c: Likewise. | |
18663 | * config/mips/mips.c: Likewise. | |
18664 | * config/mmix/mmix.h: Likewise. | |
18665 | * config/pa/pa.c: Likewise. | |
18666 | * config/pa/pa.h: Likewise. | |
18667 | * config/rs6000/rs6000.c: Likewise. | |
18668 | * config/s390/s390.c: Likewise. | |
18669 | * config/sparc/sparc.c: Likewise. | |
18670 | * config/xtensa/xtensa.c: Likewise. | |
18671 | * cselib.h: Likewise. | |
18672 | * dbxout.c: Likewise. | |
18673 | * dwarf2out.c: Likewise. | |
18674 | * except.c: Likewise. | |
18675 | * except.h: Likewise. | |
18676 | * fixed-value.h: Likewise. | |
18677 | * function.c: Likewise. | |
18678 | * function.h: Likewise. | |
18679 | * gimple.h: Likewise. | |
18680 | * integrate.c: Likewise. | |
18681 | * optabs.c: Likewise. | |
18682 | * output.h: Likewise. | |
18683 | * real.h: Likewise. | |
18684 | * rtl.h: Likewise. | |
18685 | * stringpool.c: Likewise. | |
18686 | * tree-data-ref.c: Likewise. | |
18687 | * tree-flow.h: Likewise. | |
18688 | * tree-scalar-evolution.c: Likewise. | |
18689 | * tree-ssa-address.c: Likewise. | |
18690 | * tree-ssa-alias.h: Likewise. | |
18691 | * tree-ssa-operands.h: Likewise. | |
18692 | * tree.c: Likewise. | |
18693 | * tree.h: Likewise. | |
18694 | * varasm.c: Likewise. | |
18695 | * varray.h: Likewise. | |
18696 | * vec.h: Likewise. | |
bf758008 | 18697 | * coretypes.h: Do not define GTY macro if it is already defined. |
d1b38208 TG |
18698 | * doc/gty.texi: Update GTY documentation to new syntax. |
18699 | * gengtype-lex.l: Enforce attribute-like syntax for GTY | |
18700 | annotations on structs. | |
18701 | * gengtype-parse.c: Likewise. | |
18702 | ||
a123d175 MH |
18703 | 2009-04-22 Mark Heffernan <meheff@google.com> |
18704 | ||
bf758008 | 18705 | * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=. |
a123d175 | 18706 | |
4c7c486a KH |
18707 | 2009-04-22 Kazu Hirata <kazu@codesourcery.com> |
18708 | ||
18709 | * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand | |
18710 | where appropriate. | |
18711 | ||
6e782a29 KH |
18712 | 2009-04-22 Kazu Hirata <kazu@codesourcery.com> |
18713 | ||
18714 | * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift | |
18715 | the same as a PLUS without a shift. Increase the cost of a | |
18716 | CONST_INT in MULT. | |
18717 | ||
38d2336a MLI |
18718 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
18719 | ||
18720 | * Makefile.in: Update dependencies. | |
bf758008 | 18721 | * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'. |
38d2336a MLI |
18722 | * errors.h: Remove bogus comment about compatibility. |
18723 | (warning): Update declaration. | |
18724 | * genautomata.c: Update all calls to warning. | |
18725 | * gimple.c: Do not include errors.h. Include toplev.h. | |
18726 | * tree-ssa-structalias.c: Do not include errors.h. | |
18727 | * omega.c: Likewise. | |
18728 | * tree-ssa-reassoc.c: Likewise. | |
18729 | * config/spu/spu-c.c: Likewise. | |
18730 | * config/spu/t-spu-elf: Update dependencies. | |
18731 | ||
aea4deba RG |
18732 | 2009-04-22 Richard Guenther <rguenther@suse.de> |
18733 | ||
18734 | PR tree-optimization/39824 | |
18735 | * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs | |
18736 | make sure the types are compatible. | |
18737 | ||
cfc93532 MLI |
18738 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
18739 | ||
18740 | PR c++/14875 | |
18741 | * c-common.c (c_parse_error): Take a token_flags parameter. | |
18742 | Use token_type for the token type instead. | |
18743 | Pass token_flags to cpp_type2name. | |
18744 | * c-common.h (c_parse_error): Update declaration. | |
18745 | * c-parser.c (c_parser_error): Pass 0 as token flags. | |
18746 | ||
8632d02a AB |
18747 | 2009-04-22 Andrey Belevantsev <abel@ispras.ru> |
18748 | ||
18749 | PR rtl-optimization/39580 | |
f100a4a8 UB |
18750 | * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. |
18751 | ||
4c33221c UW |
18752 | 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
18753 | ||
18754 | * function.c (expand_function_end): Do not emit a jump to the "naked" | |
18755 | return label for fall-through returns. | |
18756 | * except.c (sjlj_emit_function_exit): Always place the call to the | |
18757 | unregister function at the location installed by expand_function_end. | |
18758 | ||
9925bce0 RG |
18759 | 2009-04-22 Richard Guenther <rguenther@suse.de> |
18760 | ||
18761 | PR tree-optimization/39845 | |
18762 | * tree-switch-conversion.c (build_arrays): Add new referenced vars. | |
18763 | (gen_inbound_check): Likewise. | |
18764 | ||
24a40b35 NS |
18765 | 2009-04-22 Nathan Sidwell <nathan@codesourcery.com> |
18766 | ||
18767 | * gthr-vxworks.h (struct __gthread_once_t): Add alignment and | |
18768 | padding for PPC. | |
18769 | (__GTHREAD_ONCE_INIT): Adjust ppc initializer. | |
18770 | * config/vxlib.c (__gthread_once): Add race guard for PPC. | |
18771 | ||
6c34a092 PB |
18772 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18773 | ||
18774 | * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op, | |
18775 | sh_dynamicalize_shift_p, shl_and_scr_length): Truncate | |
18776 | shift counts to avoid out-of-bounds array accesses. | |
18777 | ||
baa48dfa PB |
18778 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18779 | ||
18780 | * config/sparc/sparc.h (POINTER_SIZE): Fix comment. | |
18781 | (Pmode): Move above. | |
18782 | ||
7d83f4f5 UB |
18783 | 2009-04-22 Uros Bizjak <ubizjak@gmail.com> |
18784 | ||
18785 | * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P, | |
18786 | NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of | |
18787 | GET_CODE macro. Use IN_RANGE macro where appropriate. | |
18788 | * config/alpha/alpha.h: Ditto. | |
18789 | * config/alpha/alpha.md: Ditto. | |
18790 | * config/alpha/constraints.md: Ditto. | |
18791 | * config/alpha/predicates.md: Ditto. | |
f100a4a8 | 18792 | |
3ad606bc PB |
18793 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18794 | ||
18795 | * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default. | |
18796 | * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18797 | * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18798 | * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18799 | * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18800 | * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18801 | * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18802 | * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18803 | * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18804 | * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18805 | * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18806 | * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18807 | * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18808 | * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18809 | * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18810 | * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18811 | * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18812 | * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18813 | * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18814 | * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18815 | * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18816 | * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18817 | * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18818 | * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18819 | * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18820 | * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18821 | * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18822 | ||
3cabd6d1 LB |
18823 | 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
18824 | ||
18825 | * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks | |
18826 | references from comments. | |
18827 | * cfgbuild.c: (count_basic_blocks): Delete. | |
18828 | (find_basic_blocks_1): Delete. | |
18829 | (find_basic_blocks): Delete. | |
18830 | * except.c (finish_eh_generation): Make static. Move comment from | |
7d83f4f5 | 18831 | except.h here. Remove find_basic_blocks references from comments. |
3cabd6d1 LB |
18832 | * except.h (finish_eh_generation): Delete. |
18833 | * basic-block.h (find_basic_blocks): Delete. | |
18834 | * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block. | |
18835 | ||
270d1bcd DK |
18836 | 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com> |
18837 | ||
18838 | * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs. | |
18839 | (sdbout_parms): Likewise. | |
18840 | ||
b757d36f KK |
18841 | 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org> |
18842 | ||
18843 | * config/sh/sh.c (prepare_cbranch_operands): Use | |
18844 | LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing. | |
18845 | (expand_cbranchdi4): Likewise. | |
18846 | (from_compare): Add cast to enum type. | |
18847 | (expand_cbranchsi4): Use add_reg_note. | |
18848 | (output_stack_adjust, push, pop, sh_expand_prologue): Likewise. | |
18849 | (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu. | |
18850 | (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call. | |
18851 | (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call. | |
18852 | * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE | |
18853 | instead of CODE_FOR_nothing. | |
18854 | (cbranchdi4): Likewise. Fix the order of arguments for | |
18855 | gen_rtx_fmt_ee. | |
18856 | (push_fpscr): Use add_reg_note. | |
18857 | (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4, | |
18858 | reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise. | |
f100a4a8 | 18859 | |
ad41bd84 JM |
18860 | 2009-04-21 Joseph Myers <joseph@codesourcery.com> |
18861 | ||
18862 | * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998, | |
18863 | ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002, | |
18864 | ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006, | |
18865 | ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib, | |
18866 | ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog, | |
18867 | FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4, | |
18868 | config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver, | |
18869 | config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h, | |
18870 | config/alpha/x-vms, config/arc/t-arc, | |
18871 | config/arm/README-interworking, config/arm/arm-c.c, | |
18872 | config/arm/gentune.sh, config/arm/libgcc-bpabi.ver, | |
18873 | config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp, | |
18874 | config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi, | |
18875 | config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf, | |
18876 | config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe, | |
18877 | config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver, | |
18878 | config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf, | |
18879 | config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux, | |
18880 | config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris, | |
18881 | config/cris/t-elfmulti, config/crx/t-crx, | |
18882 | config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def, | |
18883 | config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver, | |
18884 | config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh, | |
18885 | config/h8300/t-h8300, config/i386/athlon.md, | |
18886 | config/i386/darwin-libgcc.10.4.ver, | |
18887 | config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver, | |
18888 | config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc, | |
18889 | config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386, | |
18890 | config/i386/t-linux64, config/i386/t-nwld, | |
18891 | config/i386/t-rtems-i386, config/i386/t-sol2-10, | |
18892 | config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h, | |
18893 | config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver, | |
18894 | config/ia64/libgcc-ia64.ver, config/ia64/linux.h, | |
18895 | config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64, | |
18896 | config/iq2000/abi, config/iq2000/lib2extra-funcs.c, | |
18897 | config/iq2000/t-iq2000, config/libgcc-glibc.ver, | |
18898 | config/m32r/libgcc-glibc.ver, config/m32r/t-linux, | |
18899 | config/m32r/t-m32r, config/m68hc11/t-m68hc11, | |
18900 | config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs, | |
18901 | config/m68k/t-uclinux, config/mcore/t-mcore, | |
18902 | config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md, | |
18903 | config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm, | |
18904 | config/mips/crtn.asm, config/mips/irix-crti.asm, | |
18905 | config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver, | |
18906 | config/mips/mips-dsp.md, config/mips/mips-dspr2.md, | |
18907 | config/mips/mips-fixed.md, config/mips/sb1.md, | |
18908 | config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast, | |
18909 | config/mips/t-iris6, config/mips/t-isa3264, | |
18910 | config/mips/t-libgcc-mips16, config/mips/t-linux64, | |
18911 | config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems, | |
18912 | config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk, | |
18913 | config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st, | |
18914 | config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix, | |
18915 | config/mn10300/t-linux, config/mn10300/t-mn10300, | |
18916 | config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux, | |
18917 | config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11, | |
18918 | config/picochip/libgccExtras/clzsi2.asm, | |
18919 | config/picochip/t-picochip, config/rs6000/darwin-ldouble-format, | |
18920 | config/rs6000/darwin-libgcc.10.4.ver, | |
18921 | config/rs6000/darwin-libgcc.10.5.ver, | |
18922 | config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h, | |
18923 | config/rs6000/t-aix43, config/rs6000/t-aix52, | |
18924 | config/rs6000/t-darwin, config/rs6000/t-fprules, | |
18925 | config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64, | |
18926 | config/rs6000/t-lynx, config/rs6000/t-netbsd, | |
18927 | config/rs6000/t-ppccomm, config/rs6000/t-ppcendian, | |
18928 | config/rs6000/t-ppcgas, config/rs6000/t-rs6000, | |
18929 | config/rs6000/t-rtems, config/rs6000/t-spe, | |
18930 | config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver, | |
18931 | config/score/t-score-elf, config/sh/divcost-analysis, | |
18932 | config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh, | |
18933 | config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian, | |
18934 | config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h, | |
18935 | config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h, | |
18936 | config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2, | |
18937 | config/stormy16/stormy-abi, config/stormy16/t-stormy16, | |
18938 | config/t-darwin, config/t-libunwind, config/t-libunwind-elf, | |
18939 | config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver, | |
18940 | config/t-slibgcc-sld, config/t-sol2, config/t-vxworks, | |
18941 | config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850, | |
18942 | config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def, | |
18943 | gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog, | |
18944 | java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver, | |
18945 | limitx.h, version.c, xcoff.h: Add copyright and license notices. | |
18946 | * config/h8300/genmova.sh: Include copyright and license notices | |
18947 | in generated output. | |
18948 | * config/h8300/mova.md: Regenerate. | |
18949 | * doc/install.texi2html: Include word "Copyright" in copyright | |
18950 | notice and use name "Free Software Foundation, Inc.". | |
18951 | * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002, | |
18952 | ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006, | |
18953 | ChangeLog-2007, ChangeLog-2008: Correct dates. | |
18954 | ||
ca80e52b EB |
18955 | 2009-04-21 Eric Botcazou <ebotcazou@adacore.com> |
18956 | ||
18957 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build | |
18958 | NE_EXPR operations as well. | |
18959 | * c-parser.c (c_parser_condition): Do not set location information on | |
18960 | the condition. | |
18961 | (c_parser_conditional_expression): Likewise. | |
18962 | (c_parser_binary_expression): Set location information on operators. | |
18963 | * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if | |
18964 | TRUTH_NOT_EXPR has been folded. | |
18965 | * fold-const.c (fold_truth_not_expr): Copy location information from | |
18966 | the incoming expression to the outgoing one. | |
18967 | * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to | |
18968 | recursive calls on the LHS of the operator but pass that of the | |
18969 | operator to recursive calls on the RHS of the operator. Set it | |
18970 | on the COND_EXPR. | |
18971 | (shortcut_cond_expr): Set the locus of the operator on the second | |
18972 | COND_EXPR and that of the expression on the first in degenerate cases. | |
18973 | Pass the locus of the expression to calls to shortcut_cond_r. | |
18974 | Set the locus of the 'then' block on the associated jump, if any. | |
18975 | (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR. | |
18976 | (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer | |
18977 | expression to call to gimplify_boolean_expr. | |
18978 | ||
35091630 KT |
18979 | 2009-04-21 Kai Tietz <kai.tietz@onevision.com> |
18980 | ||
18981 | * config.gcc: Add additional configuration for | |
18982 | i686-w64-mingw* and x86_64-w64-mingw* triplet. | |
18983 | * config/i386/mingw-w64.h: New mingw-w64 specific header. | |
18984 | (CPP_SPEC): Redefine for allowing -municode option. | |
18985 | (STARTFILE_SPEC): Likewise. | |
18986 | * config/i386/t-mingw-w64: New. | |
18987 | * config/i386/mingw-w64.opt: New. | |
18988 | (municode): Add new target option. | |
18989 | * doc/invoke.texi (municode): Add documentation for new option. | |
18990 | ||
0267afc4 ILT |
18991 | 2009-04-21 Ian Lance Taylor <iant@google.com> |
18992 | ||
18993 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
18994 | Correct test for number of arguments. | |
18995 | * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise. | |
18996 | ||
2ba9daa7 AS |
18997 | 2009-04-21 Andreas Schwab <schwab@linux-m68k.org> |
18998 | ||
18999 | * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second | |
19000 | argument of emit_library_call. | |
19001 | ||
ad8a1ac0 RG |
19002 | 2009-04-21 Richard Guenther <rguenther@suse.de> |
19003 | ||
19004 | PR middle-end/39829 | |
19005 | * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses | |
19006 | inside VIEW_CONVERT_EXPRs. | |
19007 | ||
7156c8ab MJ |
19008 | 2009-04-21 Martin Jambor <mjambor@suse.cz> |
19009 | ||
19010 | * tree-switch-conversion.c (build_constructors): Split a long line. | |
19011 | (constructor_contains_same_values_p): New function. | |
7d83f4f5 UB |
19012 | (build_one_array): Create assigns of constants if possible, do not |
19013 | call mark_sym_for_renaming, call update_stmt. | |
7156c8ab MJ |
19014 | (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of |
19015 | make_rename_temp. Do not call mark_symbols_for_renaming, call | |
19016 | update_stmt. | |
19017 | (gen_def_assigns): Do not call mark_symbols_for_renaming or | |
19018 | find_new_referenced_vars, call update_stmt. | |
19019 | (gen_inbound_check): Use create_tmp_var and create ssa names manually | |
19020 | instead of calling make_rename_temp. Do not call | |
19021 | find_new_referenced_vars or mark_symbols_for_renaming, call | |
19022 | update_stmt. | |
19023 | ||
2970ccb3 RG |
19024 | 2009-04-21 Richard Guenther <rguenther@suse.de> |
19025 | ||
19026 | PR tree-optimization/39827 | |
7d83f4f5 | 19027 | * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range. |
2970ccb3 RG |
19028 | (tree_ssa_phiprop): Pass the correct array size. |
19029 | ||
47f402d1 UB |
19030 | 2009-04-21 Uros Bizjak <ubizjak@gmail.com> |
19031 | ||
19032 | * config/alpha/alpha.md (tune): Add cast to enum attr_tune. | |
19033 | ||
1e4ae551 MLI |
19034 | 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
19035 | ||
19036 | PR 16202 | |
19037 | * c-typeck.c (lvalue_p): Move declaration ... | |
19038 | * c-common.h (lvalue_p): ... to here. | |
19039 | * c-common.c (candidate_equal_p): New. | |
19040 | (add_tlist): Use it. | |
19041 | (merge_tlist): Use it. | |
19042 | (warn_for_collisions_1): Likewise. | |
19043 | (warning_candidate_p): Accept more candidates. | |
19044 | (verify_tree): A warning candidate can be an expression. Use | |
19045 | candidate_equal_p. | |
19046 | ||
244609a6 BE |
19047 | 2009-04-21 Ben Elliston <bje@au.ibm.com> |
19048 | ||
19049 | PR target/5267 | |
19050 | * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation | |
19051 | for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd | |
19052 | options. Remove -mcall-solaris documentation. | |
19053 | ||
9c650d90 MLI |
19054 | 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
19055 | ||
19056 | PR c++/13358 | |
19057 | * doc/invoke.texi (-Wlong-long): Update description. | |
19058 | * c-lex (interpret_integer): Only warn if there was no previous | |
19059 | overflow and -Wlong-long is enabled. | |
19060 | * c-decl.c (declspecs_add_type): Drop redundant flags. | |
19061 | * c.opt (Wlong-long): Init to -1. | |
19062 | * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long | |
19063 | and front-end warn_long_long. Wlong-long only depends on other | |
19064 | flags if it is uninitialized. | |
19065 | * c-parser.c (disable_extension_diagnostics): warn_long_long is | |
19066 | the same for CPP and FE. | |
19067 | (restore_extension_diagnostics): Likewise. | |
19068 | ||
bbbbb16a ILT |
19069 | 2009-04-20 Ian Lance Taylor <iant@google.com> |
19070 | ||
19071 | Fix enum conversions which are invalid in C++: | |
47f402d1 UB |
19072 | * auto-inc-dec.c (attempt_change): Change 0 to SET in function call. |
19073 | * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call. | |
bbbbb16a ILT |
19074 | * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call. |
19075 | * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type. | |
47f402d1 | 19076 | * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call. |
bbbbb16a | 19077 | (dbxout_parms): Likewise. |
47f402d1 | 19078 | * df-core.c (df_set_flags): Change changeable_flags parameter to int. |
bbbbb16a ILT |
19079 | (df_clear_flags): Likewise. |
19080 | * df-problems.c (df_rd_bb_local_compute_process_def): Change | |
19081 | top_flag parameter to int. | |
19082 | (df_chain_create_bb_process_use): Likewise. | |
47f402d1 UB |
19083 | (df_chain_add_problem): Change chain_flags parameter to unsigned int. |
19084 | Remove cast. | |
bbbbb16a ILT |
19085 | * df-scan.c (df_ref_create): Change ref_flags parameter to int. |
19086 | (df_ref_create_structure, df_def_record_1): Likewise. | |
19087 | (df_defs_record, df_uses_record, df_get_call_refs): Likewise. | |
19088 | (df_notes_rescan): Change 0 to VOIDmode in function call. | |
19089 | (df_get_call_refs, df_insn_refs_collect): Likewise. | |
19090 | (df_bb_regs_collect): Likewise. | |
19091 | (df_entry_block_defs_collect): Likewise. | |
19092 | (df_exit_block_uses_collect): Likewise. | |
19093 | * df.h: Update declarations. | |
19094 | * double-int.c (double_int_divmod): Add cast to enum type. | |
19095 | * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode. | |
19096 | * dwarf2out.c (new_reg_loc_descr): Add casts to enum type. | |
19097 | (based_loc_descr): Likewise. | |
19098 | (loc_descriptor_from_tree_1): Change first_op and second_op to | |
19099 | enum dwarf_location_atom. Add cast to enum type. | |
19100 | * expmed.c (init_expmed): Change 0 to SET in function call. | |
47f402d1 | 19101 | * expr.c (init_expr_target): Change 0 to VOIDmode in function call. |
bbbbb16a ILT |
19102 | (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call. |
19103 | (do_store_flag): Likewise. | |
19104 | * fixed-value.h (struct fixed_value): Change mode to enum | |
19105 | machine_mode. | |
47f402d1 | 19106 | * function.c (assign_parms): Change 0 to VOIDmode in function call. |
bbbbb16a ILT |
19107 | * genautomata.c (insert_automaton_decl): Change 1 to INSERT in |
19108 | function call. | |
19109 | (insert_insn_decl, insert_decl, insert_state): Likewise. | |
19110 | (automata_list_finish): Likewise. | |
19111 | * genrecog.c (process_define_predicate): Add cast to enum type. | |
19112 | * gensupport.c (init_predicate_table): Add cast to enum type. | |
19113 | * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in | |
19114 | function call. | |
19115 | (gimple_build_call_1, gimple_build_label): Likewise. | |
19116 | (gimple_build_goto, gimple_build_asm_1): Likewise. | |
19117 | (gimple_build_switch_1, gimple_build_cdt): Likewise. | |
47f402d1 | 19118 | * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call. |
bbbbb16a ILT |
19119 | (enum fallback): Rename from enum fallback_t. |
19120 | (fallback_t): Typedef as int. | |
19121 | * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to | |
19122 | GSI_SAME_STMT in function call. | |
19123 | * ira.c (setup_class_subset_and_memory_move_costs): Add casts to | |
19124 | enum type. | |
19125 | (setup_reg_class_relations): Likewise. | |
47f402d1 | 19126 | (setup_reg_class_nregs): Change cl to int. Add casts to enum type. |
bbbbb16a ILT |
19127 | (setup_prohibited_class_mode_regs): Add cast to enum type. |
19128 | (setup_prohibited_mode_move_regs): Likewise. | |
47f402d1 | 19129 | * ira-costs.c (record_reg_classes): Change rclass to enum reg_class. |
bbbbb16a ILT |
19130 | (record_address_regs): Change i to enum reg_class. |
19131 | * lists.c (alloc_EXPR_LIST): Add cast to enum type. | |
19132 | * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class. | |
19133 | (GET_MODE_WIDER_MODE): Cast value to enum machine_mode. | |
19134 | (GET_MODE_2XWIDER_MODE): Likewise. | |
19135 | (GET_CLASS_NARROWEST_MODE): Likewise. | |
19136 | * omp-low.c (expand_omp_for): Add cast to enum type. | |
19137 | * optabs.c (debug_optab_libfuncs): Add casts to enum type. | |
19138 | * opts.c (enable_warning_as_error): Change kind to diagostic_t. | |
19139 | * postreload.c (reload_cse_simplify_operands): Change rclass local | |
19140 | to enum reg_class. | |
19141 | * predict.c (combine_predictions_for_insn): Change best_predictor | |
19142 | and predictor to enum br_predictor. | |
19143 | (combine_predictions_for_bb): Likewise. | |
19144 | (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to | |
19145 | use SET_PREDICT_EXPR_OUTCOME. | |
47f402d1 | 19146 | * real.c (real_arithmetic): Change icode to code in function call. |
bbbbb16a ILT |
19147 | * reginfo.c (init_move_cost): Add casts to enum type. |
19148 | (init_reg_sets_1, init_fake_stack_mems): Likewise. | |
19149 | * regmove.c (regclass_compatible_p): Change class0 and class1 to | |
19150 | enum reg_class. | |
19151 | * reload.c (find_valid_class): Add casts to enum type. | |
19152 | (push_reload): Change 0 to NO_REGS in function call. | |
19153 | (find_reloads): Change this_alternative to array of enum | |
19154 | reg_class. Remove some now-unnecessary casts. | |
19155 | (make_memloc): Change 0 to VOIDmode in function call. | |
19156 | * reload1.c (reload): Change 0 to VOIDmode in function call. | |
19157 | (eliminate_regs_1, elimination_effects): Likewise. | |
19158 | (eliminate_regs_in_insn): Likewise. | |
19159 | (emit_input_reload_insns): Add cast to enum type. | |
19160 | (delete_output_reload): Change 0 to VOIDmode in function call. | |
19161 | * reorg.c (insn_sets_resource_p): Convert include_delayed_effects | |
19162 | to enum type in function call. | |
19163 | * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type. | |
19164 | (SET_PREDICT_EXPR_OUTCOME): Define. | |
47f402d1 | 19165 | * tree-dump.c (get_dump_file_info): Change phase parameter to int. |
bbbbb16a ILT |
19166 | (get_dump_file_name, dump_begin, dump_enabled_p): Likewise. |
19167 | (dump_initialized_p, dump_flag_name, dump_end): Likewise. | |
19168 | (dump_function): Likewise. | |
19169 | * tree-dump.h: Update declarations. | |
19170 | * tree-pass.h: Update declarations. | |
19171 | * varasm.c (assemble_integer): Change mclass to enum mode_class. | |
19172 | * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to | |
19173 | enum type. | |
19174 | (arm_rtx_costs_1): Correct parenthesization. | |
19175 | (arm_rtx_costs): Add casts to enum type. | |
19176 | (adjacent_mem_locations): Reverse arguments to const_ok_for_op. | |
19177 | (vfp_emit_fstmd): Use add_rg_note. | |
19178 | (emit_multi_reg_push, emit_sfm): Likewise. | |
19179 | (thumb_set_frame_pointer): Likewise. | |
19180 | (arm_expand_prologue): Likewise. | |
19181 | (arm_regno_class): Change return type to enum reg_class. | |
19182 | (thumb1_expand_prologue): Use add_reg_note. | |
19183 | * config/arm/arm-protos.h (arm_regno_class): Update declaration. | |
19184 | * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL | |
19185 | in function call. | |
19186 | * config/arm/gentune.sh: Add cast to enum type. | |
19187 | * config/arm/arm-tune.md: Rebuild. | |
19188 | * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note. | |
19189 | (ix86_split_fp_branch, predict_jump): Likewise. | |
19190 | (ix86_expand_multi_arg_builtin): Change sub_code from enum | |
19191 | insn_code to enum rtx_code. | |
19192 | (ix86_builtin_vectorized_function): Add cast to enum type. | |
19193 | * config/i386/i386.md (truncdfsf2): Change slot to enum | |
19194 | ix86_stack_slot. | |
19195 | (truncxf<mode>2, isinf<mode>2): Likewise. | |
19196 | * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to | |
19197 | enum type. | |
19198 | * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note. | |
19199 | (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise. | |
19200 | (insert_bundle_state): Change 1 to INSERT in function call. | |
19201 | (ia64_add_bundle_selector_before): Likewise. | |
19202 | * config/ia64/ia64.md (cpu attr): Add cast to enum type. | |
19203 | (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call. | |
19204 | (restore_stack_nonlocal): Likewise. | |
19205 | * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in | |
19206 | function call. | |
19207 | * config/mips/mips.c (mips_binary_cost): Change 0 to SET in | |
19208 | function call. | |
19209 | (mips_rtx_costs): Likewise. | |
19210 | (mips_override_options): Add casts to enum type. | |
19211 | * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL | |
19212 | in function call. | |
19213 | * config/pa/pa.c (legitimize_pic_address): Use add_reg_note. | |
19214 | (store_reg, set_reg_plus_d): Likewise. | |
19215 | (hppa_expand_prologue, hppa_profile_hook): Likewise. | |
19216 | * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add | |
19217 | cast to enum type. | |
19218 | (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in | |
19219 | function call. | |
19220 | (emit_unlikely_jump): Use add_reg_note. | |
19221 | (rs6000_emit_allocate_stack): Likewise. | |
19222 | (rs6000_frame_related, rs6000_emit_prologue): Likewise. | |
19223 | (output_toc): Change 1 to INSERT in function call. | |
19224 | (output_profile_hook): Change 0 to LCT_NORMAL in function call. | |
19225 | (rs6000_initialize_trampoline): Likewise. | |
19226 | (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in | |
19227 | function call. | |
19228 | * config/s390/s390.c (s390_rtx_costs): Add cast to enum type. | |
19229 | (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call. | |
19230 | (s390_expand_setmem, s390_expand_cmpmem): Likewise. | |
19231 | (save_gprs): Use add_reg_note. | |
19232 | (s390_emit_prologue): Likewise. | |
47f402d1 | 19233 | (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call. |
bbbbb16a ILT |
19234 | * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note. |
19235 | (sparc_fold_builtin): Add cast to enum type. | |
19236 | * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to | |
19237 | enum insn_code. | |
19238 | (spu_expand_prologue): Use add_reg_note. | |
47f402d1 | 19239 | (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call. |
bbbbb16a ILT |
19240 | |
19241 | 2009-04-20 Ian Lance Taylor <iant@google.com> | |
19242 | ||
19243 | * c-parser.c (c_parser_attributes): Change VEC back to tree list. | |
19244 | (c_parser_postfix_expression_after_primary): Get VEC for list of | |
19245 | arguments. Get original types of arguments. Call | |
19246 | build_function_call_vec. | |
19247 | (cached_expr_list_1, cached_expr_list_2): New static variables. | |
19248 | (c_parser_expr_list): Change return type to VEC *. Add | |
19249 | p_orig_types parameter. Change all callers. | |
19250 | (c_parser_release_expr): New static function. | |
19251 | (c_parser_vec_to_tree_list): New static function. | |
19252 | * c-typeck.c (build_function_call): Rewrite to build a VEC and | |
19253 | call build_function_call_vec. | |
19254 | (build_function_call_vec): New function, based on old | |
19255 | build_function_call. | |
19256 | (convert_arguments): Remove nargs and argarray parameters. Change | |
19257 | values to a VEC. Add origtypes parameter. | |
47f402d1 | 19258 | (build_modify_expr): Add rhs_origtype parameter. Change all callers. |
bbbbb16a ILT |
19259 | (convert_for_assignment): Add origtype parameter. Change all |
19260 | callers. If warn_cxx_compat, check for conversion to an enum | |
19261 | type when calling a function. | |
19262 | (store_init_value): Add origtype parameter. Change all callers. | |
19263 | (digest_init): Likewise. | |
19264 | (struct init_node): Add origtype field. | |
19265 | (add_pending_init): Add origtype parameter. Change all callers. | |
19266 | (output_init_element): Likewise. | |
19267 | (output_pending_init_elements): Pass origtype from init_node to | |
19268 | output_init_element. | |
f28a61ab | 19269 | (process_init_element): Pass origtype from c_expr to |
bbbbb16a ILT |
19270 | output_init_element. |
19271 | (c_finish_return): Add origtype parameter. Change all callers. | |
19272 | * c-common.c (sync_resolve_size): Change params to VEC *. Change | |
19273 | caller. | |
19274 | (sync_resolve_params): Likewise. | |
47f402d1 | 19275 | (sync_resolve_return): Change params to first_param. Change caller. |
bbbbb16a | 19276 | (resolve_overloaded_builtins): Change params to VEC *. Change |
47f402d1 | 19277 | callers. Save first parameter around call to build_function_call_vec. |
bbbbb16a ILT |
19278 | * c-decl.c (finish_decl): Add origtype parameter. Change all |
19279 | callers. Call build_function_call_vec rather than | |
19280 | build_function_call for cleanup. | |
19281 | * c-tree.h: Update declarations. | |
19282 | * c-common.h: Update declarations. | |
19283 | * stub-objc.c (objc_rewrite_function_call): Change parameter from | |
19284 | params to first_param. | |
19285 | * target.h (struct gcc_target): Change resolve_overloaded_builtin | |
19286 | params parameter from tree to void *. | |
19287 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
19288 | Change arglist parameter to have type void *, and to be a pointer | |
19289 | to a VEC. | |
19290 | * config/rs6000/rs6000-protos.h | |
19291 | (altivec_resolve_overloaded_builtin): Update declaration. | |
19292 | * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change | |
19293 | fnargs parameter to have type void *, and to be a pointer to a | |
19294 | VEC. Call build_function_call_vec instead of | |
19295 | build_function_call. | |
47f402d1 | 19296 | * config/spu/spu-protos.h (spu_expand_builtin): Update declaration. |
bbbbb16a | 19297 | |
6ff078d4 | 19298 | 2009-04-20 Joey Ye <joey.ye@intel.com> |
60839f5d | 19299 | Xuepeng Guo <xuepeng.guo@intel.com> |
6ff078d4 JY |
19300 | H.J. Lu <hongjiu.lu@intel.com> |
19301 | ||
19302 | * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count. | |
19303 | ||
19304 | * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro. | |
19305 | (IX86_LEA_PRIORITY): Likewise. | |
19306 | (distance_non_agu_define): New function. | |
19307 | (distance_agu_use): Likewise. | |
19308 | (ix86_lea_for_add_ok): Likewise. | |
19309 | (ix86_dep_by_shift_count): Likewise. | |
19310 | ||
19311 | * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we | |
19312 | should split for LEA. | |
19313 | ||
19314 | * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new | |
19315 | function. | |
19316 | (ix86_dep_by_shift_count): Likewise. | |
19317 | ||
87a5b4cc RG |
19318 | 2009-04-20 Richard Guenther <rguenther@suse.de> |
19319 | ||
19320 | * expr.c (handled_component_p): Move ... | |
19321 | * tree.h (handled_component_p): ... here. | |
19322 | * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF, | |
19323 | ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR | |
19324 | and REALPART_EXPR to be in one group. | |
19325 | ||
438c239d RG |
19326 | 2009-04-20 Richard Guenther <rguenther@suse.de> |
19327 | ||
19328 | * basic-block.h (get_all_dominated_blocks): Declare. | |
19329 | * dominance.c (get_all_dominated_blocks): New function. | |
19330 | * tree-cfg.c (get_all_dominated_blocks): Remove. | |
19331 | (remove_edge_and_dominated_blocks): Adjust. | |
19332 | * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ... | |
19333 | (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks | |
19334 | instead of recursing. | |
19335 | ||
fed5ae11 DK |
19336 | 2009-04-20 Doug Kwan <dougkwan@google.com> |
19337 | ||
19338 | * cgraph.h (cgraph_node_ptr): New type for vector functions. | |
19339 | (struct cgraph_node_set_def): New type. | |
19340 | (cgraph_node_set) New type. Also declare vector functions. | |
19341 | (struct cgraph_node_set_element_def): New type. | |
19342 | (cgraph_node_set_element): Ditto. | |
19343 | (cgraph_node_set_iterator): New iterator type. | |
19344 | (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add, | |
19345 | cgraph_node_set_remove, dump_cgraph_node_set, | |
19346 | debug_cgraph_node_set): New prototypes. | |
19347 | (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p, | |
19348 | cgraph_node_set_size): New inlines. | |
19349 | * tree-pass.h (struct cgraph_node_set_def): New decl to avoid | |
19350 | including cgraph.h. | |
19351 | (struct ipa_opt_pass): Add struct cgraph_node_set_def | |
19352 | argument to function 'write_summary'. | |
19353 | * ipa.c: Include ggc.h. | |
19354 | (hash_cgraph_node_set_element, | |
19355 | eq_cgraph_node_set_element, cgraph_node_set_new, | |
19356 | cgraph_node_set_add, cgraph_node_set_remove, | |
19357 | cgraph_node_set_find, dump_cgraph_node_set, | |
19358 | debug_cgraph_node_set): New functions. | |
19359 | * Makefile.in (ipa.o): Add dependency on GGC_H. | |
19360 | ||
c4551b28 IR |
19361 | 2009-04-20 Ira Rosen <irar@il.ibm.com> |
19362 | ||
19363 | PR tree-optimization/39675 | |
2ba9daa7 | 19364 | * tree-vect-loop.c (vect_transform_loop): Remove currently redundant |
47f402d1 UB |
19365 | check of the return code of vect_schedule_slp. Check that |
19366 | stmt_vec_info still exists for the statement, before checking its | |
19367 | vectorization type. | |
c4551b28 | 19368 | |
21a495fb MM |
19369 | 2009-04-20 Michael Matz <matz@suse.de> |
19370 | ||
19371 | * Makefile.in (generated_files): Take out $(simple_generated_c). | |
19372 | ||
8e208874 DK |
19373 | 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com> |
19374 | ||
19375 | * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long". | |
19376 | (UINTPTR_TYPE): Likewise. | |
19377 | ||
a45e580b JM |
19378 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
19379 | ||
19380 | PR c/37481 | |
19381 | * c-typeck.c (digest_init): Check for initializing an array with a | |
19382 | string literal. | |
19383 | ||
20845d35 JM |
19384 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
19385 | ||
19386 | PR c/19771 | |
19387 | * c-semantics.c (pop_stmt_list): Propagate | |
19388 | STATEMENT_LIST_HAS_LABEL to parent statement list. | |
19389 | ||
28143fdd AN |
19390 | 2009-04-19 Adam Nemet <anemet@caviumnetworks.com> |
19391 | ||
19392 | * config/mips/mips.h (mips_tune_attr): New macro. | |
19393 | * config/mips/mips.md (cpu): Use it. | |
19394 | ||
da377db9 JM |
19395 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
19396 | ||
19397 | PR c/38243 | |
19398 | * c-decl.c (shadow_tag_warned): Diagnose use of restrict when | |
19399 | declaring a tag. | |
19400 | ||
3baf459d DN |
19401 | 2009-04-19 Diego Novillo <dnovillo@google.com> |
19402 | ||
19403 | * toplev.c (compile_file): Move call to coverage_finish ... | |
19404 | * cgraphunit.c (ipa_passes): ... here. | |
19405 | Call cgraph_process_new_functions. | |
19406 | * ipa-utils.c (get_base_var): Handle CONSTRUCTOR. | |
19407 | * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H. | |
19408 | ||
b6fa5b01 JH |
19409 | 2009-04-19 Jan Hubicka <jh@suse.cz> |
19410 | ||
47f402d1 UB |
19411 | * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper |
19412 | cfun. | |
b6fa5b01 JH |
19413 | (dump_cgraph_node): Dump can throw external flag. |
19414 | * ipa-pure-const.c (propagate): Fix propagation of nothrow flags. | |
19415 | ||
ca409efd MLI |
19416 | 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
19417 | ||
19418 | PR c/32061 | |
19419 | PR c++/36954 | |
19420 | * doc/invoke.texi: Add -Wlogical-op to -Wextra. | |
19421 | * common.opt (Wlogical-op): Move from here... | |
19422 | * c.opt (Wlogical-op): ... to here. | |
19423 | * c-typeck.c (parser_build_binary_op): Update call to | |
19424 | warn_logical_operator. | |
19425 | * c-opts.c (c_common_post_options): Enable warn_logical_op with | |
19426 | extra_warnings. | |
19427 | * c-common.c (warn_logical_op): Update. | |
19428 | * c-common.h (warn_logical_op): Update declaration. | |
19429 | ||
9db4cdd3 EB |
19430 | 2009-04-19 Eric Botcazou <ebotcazou@adacore.com> |
19431 | ||
19432 | * tree.c (protected_set_expr_location): Fix formatting. | |
19433 | ||
f37acdf9 JM |
19434 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
19435 | ||
19436 | PR c/27676 | |
19437 | * c-typeck.c (readonly_warning): new. | |
19438 | (build_unary_op, build_modify_expr): Use readonly_warning for | |
19439 | storing into something readonly but not const-qualified. | |
19440 | ||
2b4b7036 JM |
19441 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
19442 | ||
19443 | PR c/22367 | |
19444 | * c-typeck.c (build_unary_op): Check for taking address of | |
19445 | expression of type void. | |
19446 | ||
3ce62965 JM |
19447 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
19448 | ||
19449 | PR c/35210 | |
19450 | * c-typeck.c (build_function_call): Check for calling a function | |
19451 | with qualified void return types. Call require_complete_type when | |
19452 | generating a trap. | |
19453 | ||
2505c5ed JH |
19454 | 2009-04-18 Jan Hubicka <jh@suse.cz> |
19455 | ||
19456 | * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt): | |
19457 | Set nothrow flag. | |
19458 | * cgraph.h (struct function): Reduce loop_nest to 30 bits; add | |
19459 | can_throw_external flag. | |
19460 | * ipa-reference.c (ipa_utils_reduced_inorder): Update call. | |
19461 | * ipa-pure-const.c (ignore_edge): New function. | |
19462 | (propagate): Compute order for NOTHROW computation; set NOTHROWs | |
19463 | only over can_throw_external edges. | |
19464 | (local_pure_const): Add nothrow flag. | |
19465 | * ipa-utils.c (searchc): Add ignore_edge callback. | |
19466 | (ipa_utils_reduced_inorder): Add ignore_edge callback. | |
19467 | * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype. | |
19468 | (set_nothrow_function_flags): Update cgraph. | |
19469 | * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode. | |
19470 | ||
2586ba4b RG |
19471 | 2009-04-18 Richard Guenther <rguenther@suse.de> |
19472 | ||
19473 | PR middle-end/39804 | |
19474 | * tree-ssa-ccp.c (fold_stmt_1): New function factored from ... | |
19475 | (fold_stmt): ... this and ... | |
19476 | (fold_stmt_inplace): ... this. | |
19477 | (fold_stmt_1): Fold references in calls and asms. | |
19478 | * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt. | |
19479 | ||
1eefab17 KH |
19480 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19481 | ||
19482 | * tree-vrp.c (ssa_name_nonzero_p): Remove. | |
19483 | * tree.h: Remove the prototype for ssa_name_nonzero_p. | |
19484 | ||
aa424b01 KH |
19485 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19486 | ||
19487 | * tree.c (function_args_count): Remove. | |
19488 | * tree.h: Remove the prototype for function_args_count. | |
19489 | ||
613a896b KH |
19490 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19491 | ||
19492 | * tree-iterator.c (expr_only): Remove. | |
19493 | * tree.h: Remove the prototype for expr_only. | |
19494 | ||
579e694c KH |
19495 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19496 | ||
19497 | * reginfo.c (cannot_change_mode_set_regs): Remove. | |
19498 | * rtl.h: Remove the prototype for cannot_change_mode_set_regs. | |
19499 | ||
ee7e3ad3 AS |
19500 | 2009-04-08 Anatoly Sokolov <aesok@post.ru> |
19501 | ||
19502 | * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check | |
19503 | whether operands 0 and 1 overlaps. | |
19504 | ||
92ef7fb1 MLI |
19505 | 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
19506 | ||
19507 | PR middle-end/36902 | |
19508 | * tree-vrp.c (check_array_ref): Pass a location_t instead of a | |
19509 | pointer. Use warning_at instead of warning. | |
19510 | (search_for_addr_array): Likewise. | |
19511 | (check_array_bounds): Likewise. | |
19512 | (check_all_array_refs): Check that the incoming edge is not in the | |
19513 | list of edges to be removed. | |
19514 | (check_all_array_refs): Avoid the temporal pointer. | |
19515 | (vrp_visit_cond_stmt): Fix typo. | |
19516 | (simplify_switch_using_ranges): Handle the case where the switch | |
19517 | index is an integer constant. | |
19518 | ||
0e097268 AN |
19519 | 2009-04-18 Adam Nemet <anemet@caviumnetworks.com> |
19520 | ||
19521 | * config/mips/mips.c (mips_final_postscan_insn): Make it static. | |
19522 | ||
c782f1dd KH |
19523 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19524 | ||
19525 | * doc/extend.texi, doc/invoke.texi: Fix typos. | |
19526 | ||
668fb0e8 CC |
19527 | 2009-04-17 Cary Coutant <ccoutant@google.com> |
19528 | ||
19529 | * tree-flow-inline.h (get_lineno): Fix inverted test. | |
19530 | ||
4d4014c1 DN |
19531 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19532 | ||
19533 | * tree-ssa-pre.c (create_expression_by_pieces): Remove | |
19534 | assertion for AVAIL_OUT. | |
19535 | ||
2984e1b6 MF |
19536 | 2009-04-17 Mike Frysinger <vapier@gentoo.org> |
19537 | ||
19538 | PR target/38627 | |
19539 | * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack. | |
19540 | * config/sh/linux-atomic.asm: Likewise. | |
19541 | ||
9994a182 DN |
19542 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19543 | ||
19544 | * except.c (debug_eh_tree): New. | |
19545 | (struct eh_region, struct eh_status): Move ... | |
19546 | * except.h: ... here. | |
19547 | (add_type_for_runtime): Declare extern. | |
19548 | (lookup_type_for_runtime): Likewise. | |
19549 | (debug_eh_tree): Declare. | |
19550 | * Makefile.in (GTFILES): List except.h before except.c | |
19551 | ||
07485407 DN |
19552 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19553 | ||
47f402d1 | 19554 | * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL. |
07485407 DN |
19555 | * cgraphunit.c (cgraph_build_static_cdtor): Likewise. |
19556 | * tree-dfa.c (find_referenced_vars_in): Factor out of ... | |
19557 | (find_vars_r): ... here. | |
19558 | * tree-flow.h (find_referenced_vars_in): Declare. | |
19559 | * tree-ssa-pre.c (create_expression_by_pieces): Assert | |
19560 | that AVAIL_OUT exists for BLOCK. | |
19561 | * Makefile.in (CGRAPH_H): Add dependency on cif-code.def | |
19562 | (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H. | |
19563 | (tree-parloops.o): Likewise. | |
19564 | ||
4e53d196 SB |
19565 | 2009-04-17 Simon Baldwin <simonb@google.com> |
19566 | ||
19567 | * toplev.c (default_tree_printer): Add handling for %E format. | |
19568 | ||
413d3aa8 DN |
19569 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19570 | ||
47f402d1 UB |
19571 | * tree-pretty-print.c (dump_generic_node): Add break after |
19572 | TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and | |
19573 | FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and | |
19574 | FUNCTION_TYPE together. Call print_struct_decl when printing | |
19575 | structures and TDF_SLIM is not given. | |
413d3aa8 DN |
19576 | (print_struct_decl): Fix logic for detecting recursion. |
19577 | ||
5a691e98 RAE |
19578 | 2009-04-17 Rafael Avila de Espindola <espindola@google.com> |
19579 | ||
19580 | PR 31567 | |
19581 | * gcc.c (create_at_file): New. | |
19582 | (compile_input_file_p): New. | |
19583 | (do_spec_1): Use @args files for %i. Use create_at_file for %o. | |
19584 | * main.c (main): Update call to toplev_main. | |
19585 | * toplev.c (toplev_main): Change signature. Call expandargv. | |
19586 | * toplev.h (toplev_main): Change signature. | |
19587 | ||
9eacf7a6 EB |
19588 | 2009-04-17 Eric Botcazou <ebotcazou@adacore.com> |
19589 | ||
19590 | * dwarf2out.c (field_byte_offset): Use the type size as the field size | |
19591 | if the latter is not constant. | |
19592 | ||
58298177 DE |
19593 | 2009-04-17 David Edelsohn <edelsohn@gnu.org> |
19594 | ||
19595 | * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing. | |
19596 | ||
5b4c43d7 EB |
19597 | 2009-04-17 Eric Botcazou <ebotcazou@adacore.com> |
19598 | ||
19599 | * dbxout.c (dbxout_block): Reinstate test on TREE_USED. | |
19600 | * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit. | |
19601 | ||
b51605c4 RG |
19602 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19603 | ||
19604 | * tree-ssa-structalias.c (get_constraint_for_component_ref): | |
19605 | Handle component references view-converting an invariant address. | |
19606 | ||
9e3be889 AN |
19607 | 2009-04-17 Adam Nemet <anemet@caviumnetworks.com> |
19608 | ||
19609 | * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS, | |
19610 | TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET, | |
19611 | TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS, | |
19612 | TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO): | |
19613 | Use @deftypevr rather than @deftypevar. | |
19614 | ||
7c3e9dc3 RG |
19615 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19616 | ||
47f402d1 | 19617 | * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification. |
7c3e9dc3 RG |
19618 | (get_prop_source_stmt): Likewise. |
19619 | (can_propagate_from): Likewise. | |
19620 | ||
aca600aa AS |
19621 | 2009-04-17 Andrew Stubbs <ams@codesourcery.com> |
19622 | ||
19623 | * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG, | |
19624 | TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19625 | (--with-multilib-list): Add default value. | |
19626 | * configure: Regenerate. | |
19627 | * Makefile.in (TM_ENDIAN_CONFIG): Define. | |
19628 | (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define. | |
19629 | * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG, | |
19630 | TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19631 | Don't add default cpu to multilib list unnecessarily, but do enable | |
19632 | the relevant compiler option.. | |
19633 | Add support for --with-multilib-list=<blank> and | |
19634 | --with-multilib-list=!<somelib> to supress unwanted multilibs. | |
19635 | * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables. | |
19636 | (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables. | |
19637 | (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and | |
19638 | TM_MULTILIB_CONFIG. | |
19639 | (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19640 | (MULTILIB_OSDIRNAMES): New variable. | |
19641 | * config/sh/t-1e: Delete file. | |
19642 | * config/sh/t-mlib-sh1: Delete file. | |
19643 | * config/sh/t-mlib-sh2: Delete file. | |
19644 | * config/sh/t-mlib-sh2a: Delete file. | |
19645 | * config/sh/t-mlib-sh2a-nofpu: Delete file. | |
19646 | * config/sh/t-mlib-sh2a-single: Delete file. | |
19647 | * config/sh/t-mlib-sh2a-single-only: Delete file. | |
19648 | * config/sh/t-mlib-sh2e: Delete file. | |
19649 | * config/sh/t-mlib-sh3e: Delete file. | |
19650 | * config/sh/t-mlib-sh4: Delete file. | |
19651 | * config/sh/t-mlib-sh4-nofpu: Delete file. | |
19652 | * config/sh/t-mlib-sh4-single: Delete file. | |
19653 | * config/sh/t-mlib-sh4-single-only: Delete file. | |
19654 | * config/sh/t-mlib-sh4a: Delete file. | |
19655 | * config/sh/t-mlib-sh4a-nofpu: Delete file. | |
19656 | * config/sh/t-mlib-sh4a-single: Delete file. | |
19657 | * config/sh/t-mlib-sh4a-single-only: Delete file. | |
19658 | * config/sh/t-mlib-sh4al: Delete file. | |
19659 | * config/sh/t-mlib-sh5-32media: Delete file. | |
19660 | * config/sh/t-mlib-sh5-32media-nofpu: Delete file. | |
19661 | * config/sh/t-mlib-sh5-64media: Delete file. | |
19662 | * config/sh/t-mlib-sh5-64media-nofpu: Delete file. | |
19663 | * config/sh/t-mlib-sh5-compact: Delete file. | |
19664 | * config/sh/t-mlib-sh5-compact-nofpu: Delete file. | |
19665 | * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS. | |
19666 | * doc/install.texi (Options specification): Add | |
19667 | --with-multilib-list and --with-endian. | |
19668 | ||
cf8aba7f RAE |
19669 | 2009-04-17 Rafael Avila de Espindola <espindola@google.com> |
19670 | ||
19671 | * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use | |
19672 | REVISION_c. | |
19673 | (OBJS-common): Add plugin-version.o. | |
19674 | (plugin-version.o): New. | |
19675 | * gcc-plugin.h (plugin_gcc_version): New. | |
19676 | (plugin_default_version_check): New. | |
19677 | (plugin_init_func, plugin_init): Add version argument. | |
19678 | * plugin-version.c: New. | |
19679 | * plugin.c (str_plugin_gcc_version_name): New. | |
19680 | (try_init_one_plugin): Read plugin_gcc_version from the plugin and | |
19681 | pass it to the init function. | |
19682 | (plugin_default_version_check): New. | |
19683 | ||
61e20b90 RG |
19684 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19685 | ||
19686 | * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA | |
19687 | for decl-vs-decl disambiguation. | |
19688 | ||
90c6fd8a AK |
19689 | 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com> |
19690 | ||
19691 | * config/s390/s390.h (s390_tune_attr): New macro definition. | |
19692 | * config/s390/s390.md (cpu attribute): Map to s390_tune_attr. | |
19693 | ||
9fe9fe04 RG |
19694 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19695 | ||
19696 | * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove. | |
19697 | (fold_stmt_r): Likewise. | |
19698 | (maybe_fold_reference): New function. | |
19699 | (fold_gimple_assign): Handle cases fold_stmt_r did. | |
19700 | (fold_stmt): Do not use fold_stmt_r. | |
19701 | (fold_stmt_inplace): Likewise. | |
19702 | ||
7e673273 RG |
19703 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19704 | ||
19705 | * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove. | |
19706 | (record_equivalences_from_stmt): Remove useless checks and | |
19707 | simplifications. | |
19708 | * tree-ssa-pre.c (eliminate): Avoid converting a constant if | |
19709 | the type is already suitable. | |
19710 | ||
fabf2749 PB |
19711 | 2009-04-17 Paolo Bonzini <bonzini@gnu.org> |
19712 | ||
19713 | * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. | |
19714 | ||
68f7b061 UB |
19715 | 2009-04-17 Uros Bizjak <ubizjak@gmail.com> |
19716 | ||
19717 | * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef. | |
19718 | (CMPtype): Define as __gcc_CMPtype. | |
19719 | ||
532bfb0a AJ |
19720 | 2009-04-17 Aurelien Jarno <aurelien@aurel32.net> |
19721 | ||
19722 | * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file | |
19723 | for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*. | |
19724 | ||
e3ac77ff RG |
19725 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19726 | ||
19727 | PR tree-optimization/39746 | |
19728 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove | |
19729 | special-casing for builtins and static variable use/def. | |
19730 | (call_may_clobber_ref_p_1): Likewise. | |
19731 | ||
7072a650 ILT |
19732 | 2009-04-16 Ian Lance Taylor <iant@google.com> |
19733 | ||
19734 | * df.h: Include "timevar.h". | |
19735 | (struct df_problem): Change tv_id field to timevar_id_t. | |
19736 | * tree-pass.h: Include "timevar.h". | |
19737 | (struct opt_pass): Change tv_id field to timevar_id_t. | |
19738 | * timevar.h (timevar_id_t): Define TV_NONE. | |
19739 | * passes.c (execute_one_ipa_transform_pass): Check for tv_id != | |
19740 | TV_NONE rather than tv_id != 0. | |
19741 | (execute_one_pass): Likewise. | |
19742 | * Makefile.in (DF_H): Add $(TIMEVAR_H). | |
19743 | (TREE_PASS_H): Define. Change all instances of tree-pass.h in | |
19744 | dependencies to $(TREE_PASS_H). | |
19745 | * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field | |
19746 | to TV_NONE. | |
19747 | (pass_branch_target_load_optimize2): Likewise. | |
19748 | * cfglayout.c (pass_into_cfg_layout_mode): Likewise. | |
19749 | (pass_outof_cfg_layout_mode): Likewise. | |
19750 | * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise. | |
19751 | (pass_rebuild_cgraph_edges): Likewise. | |
19752 | (pass_remove_cgraph_callee_edges): Likewise. | |
19753 | * df-core.c (pass_df_initialize_opt): Likewise. | |
19754 | (pass_df_initialize_no_opt): Likewise. | |
19755 | (pass_df_finish): Likewise. | |
19756 | * emit-rtl.c (pass_unshare_all_rtl): Likewise. | |
19757 | * except.c (pass_set_nothrow_function_flags): Likewise. | |
19758 | (pass_convert_to_eh_region_ranges): Likewise. | |
19759 | * final.c (pass_compute_alignments): Likewise. | |
19760 | * function.c (pass_instantiate_virtual_regs): Likewise. | |
19761 | (pass_init_function): Likewise. | |
19762 | (pass_leaf_regs): Likewise. | |
19763 | (pass_match_asm_constraints): Likewise. | |
19764 | * gimple-low.c (pass_lower_cf): Likewise. | |
19765 | (pass_mark_used_blocks): Likewise. | |
19766 | * init-regs.c (pass_initialize_regs): Likewise. | |
19767 | * integrate.c (pass_initial_value_sets): Likewise. | |
19768 | * ira.c (pass_ira): Likewise. | |
19769 | * jump.c (pass_cleanup_barriers): Likewise. | |
19770 | * omp-low.c (pass_expand_omp): Likewise. | |
19771 | (pass_lower_omp): Likewise. | |
19772 | * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise. | |
19773 | * recog.c (pass_split_all_insns): Likewise. | |
19774 | (pass_split_after_reload): Likewise. | |
19775 | (pass_split_before_regstack): Likewise. | |
19776 | (pass_split_before_sched2): Likewise. | |
19777 | (pass_split_for_shorten_branches): Likewise. | |
19778 | * reginfo.c (pass_reginfo_init): Likewise. | |
19779 | (pass_subregs_of_mode_init): Likewise. | |
19780 | (pass_subregs_of_mode_finish): Likewise. | |
19781 | * passes.c (pass_postreload): Likewise. | |
19782 | * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise. | |
19783 | * tree-cfg.c (pass_remove_useless_stmts): Likewise. | |
19784 | (pass_warn_function_return): Likewise. | |
19785 | (pass_warn_function_noreturn): Likewise. | |
19786 | * tree-complex.c (pass_lower_complex): Likewise. | |
19787 | (pass_lower_complex_O0): Likewise. | |
19788 | * tree-if-conv.c (pass_if_conversion): Likewise. | |
19789 | * tree-into-ssa.c (pass_build_ssa): Likewise. | |
19790 | * tree-mudflap.c (pass_mudflap_1): Likewise. | |
19791 | (pass_mudflap_2): Likewise. | |
19792 | * tree-nomudflap.c (pass_mudflap_1): Likewise. | |
19793 | (pass_mudflap_2): Likewise. | |
19794 | * tree-nrv.c (pass_return_slot): Likewise. | |
19795 | * tree-object-size.c (pass_object_sizes): Likewise. | |
19796 | * tree-optimize.c (pass_all_optimizations): Likewise. | |
19797 | (pass_early_local_passes): Likewise. | |
19798 | (pass_all_early_optimizations): Likewise. | |
19799 | (pass_cleanup_cfg): Likewise. | |
19800 | (pass_cleanup_cfg_post_optimizing): Likewise. | |
19801 | (pass_free_datastructures): Likewise. | |
19802 | (pass_free_cfg_annotations): Likewise. | |
19803 | (pass_fixup_cfg): Likewise. | |
19804 | (pass_init_datastructures): Likewise. | |
19805 | * tree-ssa.c (pass_early_warn_uninitialized): Likewise. | |
19806 | (pass_late_warn_uninitialized): Likewise. | |
19807 | (pass_update_address_taken): Likewise. | |
19808 | * tree-ssa-ccp.c (pass_fold_builtins): Likewise. | |
19809 | * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise. | |
19810 | (pass_cse_sincos): Likewise. | |
19811 | (pass_convert_to_rsqrt): Likewise. | |
19812 | * tree-ssa-structalias.c (pass_build_alias): Likewise. | |
19813 | * tree-stdarg.c (pass_stdarg): Likewise. | |
19814 | * tree-tailcall.c (pass_tail_recursion): Likewise. | |
19815 | (pass_tail_calls): Likewise. | |
19816 | * tree-vect-generic.c (pass_lower_vector): Likewise. | |
19817 | (pass_lower_vector_ssa): Likewise. | |
19818 | * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise. | |
19819 | ||
0051ef59 JM |
19820 | 2009-04-16 Joseph Myers <joseph@codesourcery.com> |
19821 | ||
19822 | * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in | |
19823 | XLR entry. | |
19824 | * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): | |
19825 | Handle -march=xlr. | |
19826 | * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move, | |
19827 | logical and signext. | |
19828 | ||
b3f8558a KK |
19829 | 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org> |
19830 | ||
19831 | PR target/39767 | |
19832 | * config/sh/predicates.md (arith_operand): Check if the operand | |
19833 | of TRUNCATE is a REG. | |
19834 | ||
f57597d9 KH |
19835 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19836 | ||
19837 | * cfgrtl.c (delete_insn_chain_and_edges): Remove. | |
19838 | * rtl.h: Remove the prototype for delete_insn_chain_and_edges. | |
19839 | ||
b172d063 KH |
19840 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19841 | ||
19842 | * tree-iterator.c (tsi_split_statement_list_after, | |
19843 | tsi_split_statement_list_before): Remove. | |
19844 | * tree-iterator.h: Remove the prototypes for | |
532bfb0a | 19845 | tsi_split_statement_list_after and tsi_split_statement_list_before. |
b172d063 | 19846 | |
78fe4f1f KH |
19847 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19848 | ||
19849 | * tree-ssa-propagate.c (stmt_makes_single_load): Remove. | |
19850 | * tree-ssa-propagate.h: Remove the prototype for | |
19851 | stmt_makes_single_load. | |
19852 | ||
43dd3201 KH |
19853 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19854 | ||
19855 | * emit-rtl.c (set_mem_attrs_from_reg): Remove. | |
19856 | * rtl.h: Remove the prototype for set_mem_attrs_from_reg. | |
19857 | ||
4252a4aa KH |
19858 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19859 | ||
19860 | * tree-iterator.c (EXPR_LAST_BODY): Remove. | |
19861 | ||
bfb69968 KH |
19862 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19863 | ||
19864 | * except.c (eh_region_outer_p): Remove. | |
19865 | * except.h: Remove the prototype for eh_region_outer_p. | |
19866 | ||
c7db7fa5 KH |
19867 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19868 | ||
19869 | * function.c (current_function_assembler_name): Remove. | |
19870 | * function.h: Remove the prototype for | |
19871 | current_function_assembler_name. | |
19872 | ||
efc0b2bd ILT |
19873 | 2009-04-16 Ian Lance Taylor <iant@google.com> |
19874 | ||
532bfb0a | 19875 | * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note. |
efc0b2bd ILT |
19876 | (add_reg_note): Call alloc_reg_note. |
19877 | * rtl.h (alloc_reg_note): Declare. | |
19878 | * combine.c (try_combine): Use alloc_reg_note. | |
19879 | (recog_for_combine, move_deaths): Likewise. | |
19880 | (distribute_notes): Use alloc_reg_note and add_reg_note. | |
19881 | * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note. | |
19882 | * combine-stack-adj.c (adjust_frame_related_expr): Likewise. | |
19883 | * reload1.c (eliminate_regs_1): Use alloc_reg_note. | |
19884 | ||
6080348f VM |
19885 | 2009-04-16 Vladimir Makarov <vmakarov@redhat.com> |
19886 | ||
19887 | PR rtl-optimization/39762 | |
19888 | * ira-int.h (ira_register_move_cost, ira_may_move_in_cost, | |
19889 | ira_may_move_out_cost): Add comments about way of their usage. | |
532bfb0a | 19890 | (ira_get_register_move_cost, ira_get_may_move_cost): New functions. |
2ba9daa7 | 19891 | |
6080348f VM |
19892 | * ira-conflicts.c (process_regs_for_copy): Use function |
19893 | ira_get_register_move_cost instead of global | |
19894 | ira_register_move_cost. | |
19895 | ||
19896 | * ira-color.c (update_copy_costs, calculate_allocno_spill_cost, | |
19897 | color_pass, move_spill_restore, update_curr_costs): Ditto. | |
19898 | ||
19899 | * ira-lives.c (process_single_reg_class_operands): Ditto. | |
19900 | ||
19901 | * ira-emit.c (emit_move_list): Ditto. | |
19902 | ||
19903 | * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost. | |
19904 | (record_reg_classes): Ditto. Use functions | |
19905 | ira_get_register_move_cost and ira_get_may_move_cost instead of | |
19906 | global vars ira_register_move_cost, ira_may_move_out_cost and | |
19907 | ira_may_move_in_cost. | |
19908 | (record_address_regs): Don't call ira_init_register_move_cost. | |
19909 | Use function ira_get_may_move_cost instead of global | |
19910 | ira_may_move_in_cost. | |
19911 | (process_bb_node_for_hard_reg_moves): Use function | |
532bfb0a | 19912 | ira_get_register_move_cost instead of global ira_register_move_cost. |
6080348f | 19913 | (ira_costs): Don't call ira_init_register_move_cost. |
2ba9daa7 | 19914 | |
646bea10 RG |
19915 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19916 | ||
19917 | * tree-cfg.c (verify_gimple_assign_binary): | |
19918 | Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors. | |
19919 | * ipa-struct-reorg.c (gen_size): Fold the built expressions. | |
19920 | (create_general_new_stmt): Note that this function is broken. | |
19921 | ||
02e819ff RAE |
19922 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19923 | ||
19924 | * common.opt (fhelp): Add Var(help_flag). | |
19925 | * gcc-plugin.h (plugin_info): Add help. | |
19926 | * plugin.c (plugin_name_args): Add help. | |
19927 | (register_plugin_info): Set plugin->help. | |
19928 | (print_help_one_plugin): New. | |
19929 | (print_plugins_help): New. | |
19930 | * plugin.h (print_plugins_help): New. | |
19931 | * toplev.c (toplev_main): Call print_plugins_help if needed. | |
19932 | ||
ccacdf06 RG |
19933 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19934 | ||
19935 | * gimple.c (gimple_copy): Do not clear addresses_taken bitmap. | |
19936 | (gimple_ior_addresses_taken_1): New function. | |
19937 | (gimple_ior_addresses_taken): Likewise. | |
19938 | * gimple.h (struct gimple_statement_with_ops_base): Remove | |
19939 | addresses_taken member. | |
19940 | (gimple_ior_addresses_taken): Declare. | |
19941 | (gimple_addresses_taken, gimple_addresses_taken_ptr, | |
19942 | gimple_set_addresses_taken): Remove. | |
19943 | * ipa-reference.c (mark_address): New function. | |
19944 | (scan_stmt_for_static_refs): Use it for marking addresses taken. | |
19945 | * tree-ssa-operands.c (add_to_addressable_set): Rename to ... | |
19946 | (mark_address_taken): ... this. Just set TREE_ADDRESSABLE. | |
19947 | (gimple_add_to_addresses_taken): Remove. | |
19948 | (get_tmr_operands): Call mark_address_taken. | |
19949 | (get_asm_expr_operands): Likewise. | |
19950 | (get_expr_operands): Likewise. | |
19951 | (build_ssa_operands): Do not clear the addresses_taken bitmap. | |
19952 | (free_stmt_operands): Do not free it. | |
19953 | * tree-ssa.c (delete_tree_ssa): Likewise. | |
19954 | (execute_update_addresses_taken): Use gimple_ior_addresses_taken. | |
19955 | ||
346ef3fa RG |
19956 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19957 | ||
19958 | * gimple.h (walk_stmt_load_store_addr_ops): Declare. | |
19959 | (walk_stmt_load_store_ops): Likewise. | |
19960 | * gimple.c (get_base_loadstore): New function. | |
19961 | (walk_stmt_load_store_addr_ops): Likewise. | |
19962 | (walk_stmt_load_store_ops): Likewise. | |
19963 | * ipa-pure-const.c (check_op): Simplify. | |
19964 | (check_load, check_store): New functions. | |
19965 | (check_stmt): Use walk_stmt_load_store_ops. | |
19966 | * ipa-reference.c (mark_load): Adjust signature. | |
19967 | (mark_store): Likewise. | |
19968 | (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops. | |
19969 | ||
44e9f006 RAE |
19970 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19971 | ||
19972 | * gcc-plugin.h (plugin_event): Add PLUGIN_INFO. | |
19973 | (plugin_info): New. | |
19974 | * opts.c (common_handle_option): Don't call print_version. | |
19975 | * plugin.c (plugin_name_args): Add version. | |
19976 | (register_plugin_info): New. | |
19977 | (register_callback): Handle PLUGIN_INFO. | |
19978 | (try_init_one_plugin): New. | |
19979 | (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args | |
19980 | if failed to init. | |
19981 | (finalize_one_plugin): New. | |
19982 | (finalize_plugins): New. | |
19983 | (print_one_plugin): New. | |
19984 | (print_plugins_versions): New. | |
19985 | * plugin.h (print_plugins_versions): New. | |
19986 | (finalize_plugins): New. | |
19987 | * toplev.c (compile_file): Don't call initialize_plugins. | |
19988 | (print_version): Call print_plugins_versions. | |
19989 | (toplev_main): Call initialize_plugins. Print version if needed. | |
19990 | Call finalize_plugins. | |
19991 | ||
41fd0f9b RAE |
19992 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19993 | ||
19994 | * common.opt (fversion): New. | |
19995 | * gcc.c (print_version): New. | |
19996 | (process_command): Don't print the version. Just set print_version. | |
19997 | (main): Print version. Call subprocesses if print_version and | |
19998 | verbose_flag are set. | |
19999 | * opts.c (common_handle_option): Handle OPT_fversion. | |
20000 | ||
550918ca | 20001 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
532bfb0a | 20002 | Ira Rosen <irar@il.ibm.com> |
550918ca RG |
20003 | |
20004 | PR tree-optimization/39698 | |
20005 | * tree-vect-loop.c (get_initial_def_for_reduction): Use the | |
20006 | type of the reduction variable. Only generate the def if | |
20007 | it is needed. | |
20008 | ||
20009 | * omp-low.c (expand_omp_for_generic): When converting to a pointer | |
20010 | make sure to first convert to an integer of the same precision. | |
20011 | * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain | |
20012 | the type of the evolution correctly in computing the new | |
20013 | induction variable base. | |
20014 | ||
54634841 RG |
20015 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
20016 | ||
20017 | PR middle-end/39625 | |
20018 | * tree-cfg.c (make_blocks): Split statements with to-be | |
20019 | abnormal SSA names on the lhs. | |
20020 | ||
b6fc2cdb PB |
20021 | 2009-04-16 Paolo Bonzini <bonzini@gnu.org> |
20022 | ||
20023 | * c-common.c (vector_targets_convertible_p, vector_types_convertible_p): | |
20024 | Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p. | |
20025 | * c-typeck.c (really_start_incremental_init): Likewise. | |
20026 | * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove. | |
20027 | (TARGET_INITIALIZER): Remove it. | |
20028 | * target.h (struct target): Remove vector_opaque_p. | |
20029 | * tree.c (build_opaque_vector_type): New. | |
20030 | * tree.h (TYPE_VECTOR_OPAQUE): New. | |
20031 | (build_opaque_vector_type): Declare. | |
20032 | * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove. | |
20033 | * config/rs6000/rs6000.c (build_opaque_vector_type, | |
20034 | rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove. | |
20035 | (rs6000_init_builtins): Use build_opaque_vector_type for | |
20036 | opaque_V4SI_type_node. | |
20037 | ||
a417cdd9 CM |
20038 | 2009-04-15 Catherine Moore <clm@codesourcery.com> |
20039 | ||
532bfb0a AJ |
20040 | * debug.h (set_name): Declare. |
20041 | * dwarf2out.c (dwarf2out_set_name): Declare. | |
20042 | (dwarf2_debug_hooks): Add set_name. | |
20043 | (find_AT_string): New. | |
20044 | (add_AT_string): Call find_AT_string. | |
20045 | (dwarf2out_set_name): New. | |
20046 | * cp/decl.c (grokdeclarator): Call set_name. | |
20047 | * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing. | |
20048 | * debug.c (do_nothing_debug_hooks): Likewise. | |
20049 | * dbxout.c (dbx_debug_hooks): Likewise. | |
20050 | * sdbout.c (sdb_debug_hooks): Likewise. | |
a417cdd9 | 20051 | |
60839f5d | 20052 | 2009-04-15 Michael Eager <eager@eagercon.com> |
2c5cac98 | 20053 | |
532bfb0a AJ |
20054 | * config/rs6000/rs6000.c (rs6000_function_value): Set function return |
20055 | reg for single-precision FPU. | |
20056 | * config/rs6000/rs6000.md (movsi_internal1): Only for | |
20057 | !TARGET_SINGLE_FPU. | |
20058 | (movsi_internal1_single): New. Add pattern to move SI values to/from | |
2c5cac98 ME |
20059 | single-precision FP regs. |
20060 | ||
ada39f0b RG |
20061 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
20062 | ||
20063 | * omp-low.c (lower_rec_input_clauses): Build correct address | |
20064 | expressions. | |
20065 | (expand_omp_for_generic): Fix multiplication type. | |
532bfb0a | 20066 | * tree-loop-distribution.c (build_size_arg): Build a size_t argument. |
ada39f0b RG |
20067 | (generate_memset_zero): Fix types. |
20068 | * tree-profile.c (prepare_instrumented_value): Correctly | |
20069 | widen a pointer. | |
20070 | ||
6866c6e8 ILT |
20071 | 2009-04-15 Ian Lance Taylor <iant@google.com> |
20072 | ||
20073 | * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1. | |
20074 | * c-opts.c (c_common_handle_option): For C, set warn_enum_compare | |
20075 | for -Wall and for -Wc++-compat. | |
20076 | (c_common_post_options): For C++, set warn_enum_compare if not | |
20077 | already set. | |
20078 | * c-tree.h (struct c_expr): Add field original_type. | |
20079 | (build_external_ref): Update declaration. | |
20080 | * c-parser.c (c_parser_braced_init): Set original_type. | |
20081 | (c_parser_initelt): Likewise. | |
20082 | (c_parser_expr_no_commas): Likewise. | |
20083 | (c_parser_conditional_expression): Likewise. | |
20084 | (c_parser_cast_expression): Likewise. | |
20085 | (c_parser_unary_expression): Likewise. Pull setting of | |
20086 | original_code to top of function. | |
20087 | (c_parser_sizeof_expression): Set original_type. | |
20088 | (c_parser_alignof_expression): Likewise. | |
20089 | (c_parser_postfix_expression): Likewise. Pull setting of | |
20090 | original_code to top of function. | |
532bfb0a | 20091 | (c_parser_postfix_expression_after_paren_type): Set original_type. |
6866c6e8 ILT |
20092 | (c_parser_postfix_expression_after_primary): Likewise. |
20093 | (c_parser_expression): Likewise. | |
20094 | * c-typeck.c (build_external_ref): Add type parameter. Change all | |
20095 | callers. | |
20096 | (c_expr_sizeof_expr): Set original_type field. | |
20097 | (parser_build_unary_op): Likewise. | |
20098 | (parser_build_binary_op): Likewise. Optionally warn about | |
20099 | comparisons of enums of different types. | |
20100 | (digest_init): Set original_type field. | |
20101 | (really_start_incremental_init): Likewise. | |
20102 | (push_init_level, pop_init_level): Likewise. | |
20103 | * doc/invoke.texi (Warning Options): -Wenum-compare now | |
20104 | supported in C. | |
20105 | ||
f116fecf RG |
20106 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
20107 | ||
20108 | * tree-ssa-pre.c (eliminate): When replacing a PHI node carry | |
20109 | out a necessary conversion. | |
20110 | * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to | |
20111 | names we didn't value number. | |
20112 | * tree-mudflap.c (mf_build_check_statement_for): Use correct types. | |
20113 | ||
25e20805 RG |
20114 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
20115 | ||
20116 | PR tree-optimization/39764 | |
20117 | * tree-ssa-ccp.c (get_value): Canonicalize value with | |
20118 | canonicalize_float_value. | |
20119 | ||
90cc3676 JH |
20120 | 2009-04-15 Jan Hubicka <jh@suse.cz> |
20121 | ||
20122 | * builtins.def (va_start, va_end, va_copy): Fix my previous commit. | |
20123 | Wrong version of patch. | |
20124 | ||
6d14c006 JH |
20125 | 2009-04-15 Jan Hubicka <jh@suse.cz> |
20126 | ||
20127 | * builtins.def (va_start, va_end, va_copy): Mark nothrow. | |
20128 | ||
5afaa917 NS |
20129 | 2009-04-15 Nathan Sidwell <nathan@codesourcery.com> |
20130 | ||
20131 | * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of | |
20132 | our distinct integral and vector types. | |
20133 | ||
3b482fca RAE |
20134 | 2009-04-15 Rafael Avila de Espindola <espindola@google.com> |
20135 | ||
20136 | * class.c (build_vtbl_ref_1): Remove call to assemble_external. | |
20137 | * init.c (build_vtbl_address): Remove call to assemble_external. | |
20138 | ||
6cd1d2e2 DJ |
20139 | 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
20140 | ||
20141 | * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug | |
20142 | output for other floating point modes. | |
20143 | ||
dab71827 DN |
20144 | 2009-04-14 Diego Novillo <dnovillo@google.com> |
20145 | ||
20146 | * diagnostic.c (diagnostic_report_diagnostic): Do not | |
20147 | warn about loaded plugins for DK_ERROR and DK_WARNING. | |
20148 | * c-decl.c (declspecs_add_type): Move call to | |
20149 | invoke_plugin_callbacks ... | |
20150 | * c-parser.c (c_parser_declspecs): ... here. | |
20151 | * plugin.c (dump_active_plugins): Tidy output. | |
20152 | ||
68a607d8 DN |
20153 | 2009-04-14 Diego Novillo <dnovillo@google.com> |
20154 | Le-Chun Wu <lcwu@google.com> | |
20155 | ||
20156 | * configure.ac: Add --enable-plugin support. | |
20157 | Define ENABLE_PLUGIN and PLUGINLIBS when specified. | |
20158 | * Makefile.in (PLUGIN_H): Define. | |
20159 | Export ENABLE_PLUGIN and GMPINC to site.exp. | |
20160 | Add PLUGINLIBS to link command. | |
20161 | Add/modify dependencies for plugin.o and files including plugin.h. | |
20162 | (plugin.o): New. | |
20163 | * config.in: Regenerate. | |
2ba9daa7 | 20164 | |
68a607d8 DN |
20165 | * opts.c (common_handle_option): Handle OPT_fplugin_ and |
20166 | OPT_fplugin_arg_. | |
20167 | ||
20168 | 2009-04-14 Le-Chun Wu <lcwu@google.com> | |
20169 | ||
20170 | * tree-pass.h (register_one_dump_file): Add a prototype for | |
20171 | register_one_dump_file. | |
20172 | * toplev.c (compile_file): Call initialize_plugins. | |
20173 | (do_compile): Call invoke_plugin_callbacks. | |
20174 | (toplev_main): Call invoke_plugin_callbacks. | |
20175 | * common.opt: Add -fplugin= and -fplugin-arg-. | |
20176 | * gcc-plugin.h: New public header file for plugins to include. | |
20177 | * plugin.c: New source file. | |
20178 | * plugin.h: New internal header file. | |
20179 | * passes.c (register_one_dump_file): Make it external. | |
2ba9daa7 | 20180 | |
68a607d8 DN |
20181 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks. |
20182 | ||
20183 | 2009-04-14 Diego Novillo <dnovillo@google.com> | |
20184 | ||
20185 | * doc/plugins.texi: New. | |
20186 | * doc/gccint.texi: Add reference to Plugins chapter. | |
20187 | * doc/invoke.texi: Document -fplugin and -fplugin-arg | |
20188 | * diagnostic.c (diagnostic_report_diagnostic): Warn about | |
20189 | loaded plugins, if any. | |
20190 | * timevar.def (TV_PLUGIN_INIT): Define. | |
20191 | (TV_PLUGIN_RUN): Define. | |
20192 | * plugin.c: Include timevar.h | |
20193 | (plugins_active_p): New. | |
20194 | (dump_active_plugins): New. | |
20195 | (debug_active_plugins): New. | |
20196 | ||
50617257 JM |
20197 | 2009-04-14 Joseph Myers <joseph@codesourcery.com> |
20198 | ||
20199 | * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute | |
20200 | library paths. | |
20201 | * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise. | |
20202 | ||
b32f6fff KH |
20203 | 2009-04-14 Kazu Hirata <kazu@codesourcery.com> |
20204 | ||
20205 | * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift | |
20206 | the same as a minus without a shift. | |
20207 | ||
85d04fa2 NC |
20208 | 2009-04-14 Nick Clifton <nickc@redhat.com> |
20209 | ||
20210 | * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that | |
20211 | comparisons with small integers will always produce a short | |
20212 | branch. | |
20213 | ||
e495a0c8 RAE |
20214 | 2009-04-14 Rafael Avila de Espindola <espindola@google.com> |
20215 | ||
20216 | Merge: | |
e495a0c8 RAE |
20217 | 2008-12-19 Diego Novillo <dnovillo@google.com> |
20218 | ||
532bfb0a | 20219 | * cgraph.c (dump_cgraph_node): Show memory address of NODE. |
e495a0c8 | 20220 | |
ad41bd84 | 20221 | 2009-04-14 Richard Guenther <rguenther@suse.de> |
587aa063 RG |
20222 | |
20223 | * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code | |
20224 | verification. | |
20225 | (verify_gimple_assign_binary): Likewise. Handle shifts and | |
20226 | rotates correctly. | |
20227 | (verify_gimple_phi): Print the mismatched argument position. | |
20228 | * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): | |
20229 | Fix types. | |
20230 | (vect_update_init_of_dr): Likewise. | |
20231 | * matrix-reorg.c (transform_access_sites): Do what the | |
20232 | comment suggests. | |
20233 | * omp-low.c (expand_omp_atomic_pipeline): Use the correct types. | |
20234 | ||
60839f5d | 20235 | 2009-04-13 Michael Eager <eager@eagercon.com> |
9eca1774 ME |
20236 | |
20237 | * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu: | |
20238 | _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL | |
20239 | * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi | |
2ba9daa7 | 20240 | * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file, |
9eca1774 ME |
20241 | remove duplicate config |
20242 | ||
b0e2d008 DR |
20243 | 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> |
20244 | ||
20245 | * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump | |
20246 | file_name:line_number type locator of the call site. | |
2ba9daa7 | 20247 | |
1244a8b7 VM |
20248 | 2009-04-13 Vladimir Makarov <vmakarov@redhat.com> |
20249 | ||
20250 | * genautomata.c: Put blank after comma. | |
20251 | (automaton_decls): New. | |
20252 | (struct unit_usage): Add comments to member next. | |
20253 | (store_alt_unit_usage): Keep the list ordered. | |
20254 | (unit_present_on_list_p, equal_alternatives_p): New. | |
20255 | (check_regexp_units_distribution): Check units distribution | |
20256 | correctness correctly. | |
20257 | (main): Don't write automata if error is found. Return correct | |
20258 | exit code. | |
2ba9daa7 | 20259 | |
1244a8b7 VM |
20260 | * config/m68k/cf.md (cfv4_ds): Remove. |
20261 | (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3, | |
20262 | cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds. | |
20263 | ||
20264 | * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4, | |
20265 | power4-load-ext, power4-store, power4-store-update, | |
20266 | power4-fpstore, power4-fpstore-update, power4-two, power4-three, | |
20267 | power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp, | |
20268 | power4-lmul, , power4-imul, power4-imul3, power4-sdiv, | |
20269 | power4-sqrt, power4-isync): Modify reservation to make correct | |
20270 | unit distribution to automata. | |
20271 | ||
20272 | * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store, | |
20273 | power5-store-update, power5-two, power5-three, power5-lmul, | |
20274 | power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto. | |
2ba9daa7 | 20275 | |
f7dd1864 AN |
20276 | 2009-04-13 Adam Nemet <anemet@caviumnetworks.com> |
20277 | ||
20278 | * except.c (pass_set_nothrow_function_flags): Set name and add | |
20279 | TODO_dump_func. | |
20280 | (set_nothrow_function_flags): Mention in the dump file when | |
20281 | changing a function to nothrow. | |
20282 | ||
59a1171f OS |
20283 | 2009-04-13 Ozkan Sezer <sezeroz@gmail.com> |
20284 | ||
20285 | PR/39066 | |
20286 | * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__ | |
20287 | instead of unsigned long. | |
20288 | ||
934c2060 RR |
20289 | 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
20290 | ||
f7dd1864 AN |
20291 | * config/arm/arm.c (return_used_this_function): Remove. |
20292 | (arm_output_function_prologue): Remove use of | |
934c2060 | 20293 | return_used_this_function. |
f7dd1864 | 20294 | (output_return_instruction): Replace use of |
934c2060 RR |
20295 | return_used_this_function |
20296 | by cfun->machine->return_used_this_function. | |
f7dd1864 AN |
20297 | (arm_output_epilogue): Likewise. |
20298 | (arm_output_function_epilogue): Likewise. | |
20299 | (thumb_unexpanded_epilogue): Likewise. | |
20300 | * config/arm/arm.h (struct machine_function): | |
934c2060 | 20301 | New member return_used_this_function. |
f7dd1864 | 20302 | |
ae5cc016 MM |
20303 | 2009-04-12 Mark Mitchell <mark@codesourcery.com> |
20304 | ||
20305 | * doc/install.texi: Correct description of default directory for | |
20306 | --with-gxx-include-dir. | |
20307 | ||
a0ce68df | 20308 | 2009-04-12 Eric Botcazou <ebotcazou@adacore.com> |
849d624b EB |
20309 | |
20310 | * fold-const.c (build_range_check): Properly deal with enumeral and | |
20311 | boolean base types. | |
20312 | ||
3906a4a1 SB |
20313 | 2009-04-12 Steven Bosscher <steven@gcc.gnu.org> |
20314 | ||
20315 | * doc/invoke.texi (max_gcse_passes): Remove documentation. | |
20316 | * params.def (PARAM_MAX_GCSE_PASSES): Remove. | |
20317 | * params.h (MAX_GCSE_PASSES): Remove. | |
20318 | * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2 | |
20319 | in sequence. Remove ability to run multiple passes. | |
20320 | (bypass_jumps): Report run as third CPROP pass. | |
20321 | ||
efaadb93 AN |
20322 | 2009-04-12 Adam Nemet <anemet@caviumnetworks.com> |
20323 | ||
20324 | PR middle-end/39651 | |
20325 | * except.c (can_throw_external): Look at each insn in a SEQUENCE | |
20326 | when deciding whether the whole SEQUENCE can throw. | |
20327 | ||
4c48007b UB |
20328 | 2009-04-12 Uros Bizjak <ubizjak@gmail.com> |
20329 | ||
20330 | PR target/39740 | |
20331 | * config/alpha/predicates.md (local_symbolic_operand): Return 1 for | |
20332 | offseted label references. | |
20333 | ||
b4104018 JH |
20334 | 2009-04-11 Jan Hubicka <jh@suse.cz> |
20335 | ||
20336 | * tree-ssa-pre.c (eliminate): Fix call of update_stmt. | |
20337 | ||
32848948 RG |
20338 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
20339 | ||
20340 | PR middle-end/39732 | |
20341 | * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE | |
20342 | return variables as TREE_ADDRESSABLE. | |
20343 | ||
8810712e RG |
20344 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
20345 | ||
20346 | PR tree-optimization/39713 | |
20347 | * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built | |
20348 | reference trees have SSA_NAME operands. | |
20349 | ||
fa78c0c1 RG |
20350 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
20351 | ||
20352 | PR c/39712 | |
20353 | * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched | |
20354 | address expressions. | |
20355 | ||
4d722130 DK |
20356 | 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com> |
20357 | ||
20358 | * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to | |
20359 | match changes in Cygwin 1.7 | |
20360 | (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE, | |
20361 | UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise. | |
20362 | ||
567a90f5 PB |
20363 | 2009-04-10 Paolo Bonzini <bonzini@gnu.org> |
20364 | ||
20365 | PR tree-optimization/39701 | |
20366 | * doc/invoke.texi (Optimization Options): Document change in | |
20367 | meaning and initialization of -fdelete-null-pointer-checks. | |
20368 | ||
1ad2f450 L |
20369 | 2009-04-10 H.J. Lu <hongjiu.lu@intel.com> |
20370 | ||
20371 | PR middle-end/39701 | |
20372 | * common.opt (-fdelete-null-pointer-checks): Initialize to 1. | |
20373 | ||
20374 | * opts.c (decode_options): Don't set flag_delete_null_pointer_checks | |
20375 | here. | |
20376 | ||
20377 | * doc/invoke.texi: Update -fdelete-null-pointer-checks. | |
20378 | ||
1afc5373 CF |
20379 | 2009-04-10 Chao-ying Fu <fu@mips.com> |
20380 | ||
20381 | * doc/tm.texi (Instruction Output): Document | |
20382 | TARGET_ASM_FINAL_POSTSCAN_INSN. | |
20383 | * target.h (final_postscan_insn): New field in asm_out. | |
20384 | * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define. | |
20385 | (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN. | |
20386 | * final.c (final_scan_insn): Call | |
20387 | targetm.asm_out.final_postscan_insn after outputting | |
20388 | an asm macro and a normal instruction. | |
20389 | ||
20390 | * config/mips/mips.h (FINAL_PRESCAN_INSN): New define. | |
20391 | * config/mips/mips-protos.h (mips_final_prescan_insn): Declare. | |
20392 | * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback. | |
20393 | (mips_final_prescan_insn, mips_final_postscan_insn): New functions. | |
20394 | (TARGET_ASM_FINAL_POSTSCAN_INSN): New define. | |
20395 | ||
4d35e75c PB |
20396 | 2009-04-10 Paolo Bonzini <bonzini@gnu.org> |
20397 | ||
20398 | PR middle-end/39701 | |
1ad2f450 L |
20399 | * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static |
20400 | variables as non-NULL even with -fdelete-null-pointer-checks. | |
4d35e75c | 20401 | |
62c49b83 L |
20402 | 2009-04-10 H.J. Lu <hongjiu.lu@intel.com> |
20403 | ||
20404 | * config/rs6000/darwin-vecsave.asm: Remove extra "*/". | |
20405 | ||
80558628 L |
20406 | 2009-04-09 H.J. Lu <hongjiu.lu@intel.com> |
20407 | ||
20408 | PR target/39678 | |
20409 | * config/i386/i386.c (classify_argument): Handle SCmode with | |
20410 | (bit_offset % 64) != 0. | |
20411 | ||
8c70d28b SL |
20412 | 2009-04-09 Sandra Loosemore <sandra@codesourcery.com> |
20413 | ||
20414 | * doc/invoke.texi (Optimize Options): Add cross-reference to | |
20415 | -Q --help=optimizers examples. | |
20416 | ||
e1ff19bf BE |
20417 | 2009-04-10 Ben Elliston <bje@au.ibm.com> |
20418 | ||
20419 | PR target/36800 | |
20420 | * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set | |
20421 | regalign for the reg == fpr and TDmode case. | |
20422 | ||
52daca75 DA |
20423 | 2009-04-09 David Ayers <ayers@fsfe.org> |
20424 | ||
20425 | PR objc/29200 | |
20426 | * objc/objc-act.c (warn_with_method): Remove helper function. | |
20427 | (check_duplicates): Call warning and inform directly. | |
20428 | (really_start_method): Likewise. | |
20429 | ||
b45f0e58 PB |
20430 | 2009-04-09 Paolo Bonzini <bonzini@gnu.org> |
20431 | ||
20432 | * expmed.c (expand_divmod): Always use a comparison for a division | |
20433 | by a large unsigned integer. | |
20434 | ||
1ad2f450 L |
20435 | * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls |
20436 | for things others than variables or functions as nonzero. | |
b45f0e58 | 20437 | |
748086b7 JJ |
20438 | 2009-04-09 Nick Clifton <nickc@redhat.com> |
20439 | ||
20440 | * unwind-compat.c: Change copyright header to refer to version | |
20441 | 3 of the GNU General Public License with version 3.1 of the | |
20442 | GCC Runtime Library Exception and to point readers at the | |
7a715bba | 20443 | COPYING3 and COPYING3.RUNTIME files and the FSF's license web page. |
748086b7 JJ |
20444 | * config/alpha/crtfastmath.c: Likewise. |
20445 | * config/alpha/linux-unwind.h: Likewise. | |
20446 | * config/alpha/qrnnd.asm: Likewise. | |
20447 | * config/alpha/vms-crt0-64.c: Likewise. | |
20448 | * config/alpha/vms-crt0.c: Likewise. | |
20449 | * config/alpha/vms-dwarf2.asm: Likewise. | |
20450 | * config/alpha/vms-dwarf2eh.asm: Likewise. | |
20451 | * config/alpha/vms-psxcrt0-64.c: Likewise. | |
20452 | * config/alpha/vms-psxcrt0.c: Likewise. | |
20453 | * config/alpha/vms_tramp.asm: Likewise. | |
20454 | * config/arc/initfini.c: Likewise. | |
20455 | * config/arc/lib1funcs.asm: Likewise. | |
20456 | * config/arm/bpabi-v6m.S: Likewise. | |
20457 | * config/arm/bpabi.S: Likewise. | |
20458 | * config/arm/bpabi.c: Likewise. | |
20459 | * config/arm/crti.asm: Likewise. | |
20460 | * config/arm/crtn.asm: Likewise. | |
20461 | * config/arm/ieee754-df.S: Likewise. | |
20462 | * config/arm/ieee754-sf.S: Likewise. | |
20463 | * config/arm/lib1funcs.asm: Likewise. | |
20464 | * config/arm/libunwind.S: Likewise. | |
20465 | * config/arm/linux-atomic.c: Likewise. | |
20466 | * config/arm/mmintrin.h: Likewise. | |
20467 | * config/arm/pr-support.c: Likewise. | |
20468 | * config/arm/unaligned-funcs.c: Likewise. | |
20469 | * config/arm/unwind-arm.c: Likewise. | |
20470 | * config/arm/unwind-arm.h: Likewise. | |
20471 | * config/avr/libgcc.S: Likewise. | |
20472 | * config/bfin/crti.s: Likewise. | |
20473 | * config/bfin/crtlibid.s: Likewise. | |
20474 | * config/bfin/crtn.s: Likewise. | |
20475 | * config/bfin/lib1funcs.asm: Likewise. | |
20476 | * config/bfin/linux-unwind.h: Likewise. | |
20477 | * config/cris/arit.c: Likewise. | |
20478 | * config/cris/cris_abi_symbol.c: Likewise. | |
20479 | * config/darwin-64.c: Likewise. | |
20480 | * config/darwin-crt2.c: Likewise. | |
20481 | * config/darwin-crt3.c: Likewise. | |
20482 | * config/darwin.h: Likewise. | |
20483 | * config/dbxelf.h: Likewise. | |
20484 | * config/dfp-bit.c: Likewise. | |
20485 | * config/dfp-bit.h: Likewise. | |
20486 | * config/elfos.h: Likewise. | |
20487 | * config/fixed-bit.c: Likewise. | |
20488 | * config/fixed-bit.h: Likewise. | |
20489 | * config/fp-bit.c: Likewise. | |
20490 | * config/fp-bit.h: Likewise. | |
20491 | * config/fr30/crti.asm: Likewise. | |
20492 | * config/fr30/crtn.asm: Likewise. | |
20493 | * config/fr30/lib1funcs.asm: Likewise. | |
20494 | * config/freebsd-spec.h: Likewise. | |
20495 | * config/frv/cmovd.c: Likewise. | |
20496 | * config/frv/cmovh.c: Likewise. | |
20497 | * config/frv/cmovw.c: Likewise. | |
20498 | * config/frv/frvbegin.c: Likewise. | |
20499 | * config/frv/frvend.c: Likewise. | |
20500 | * config/frv/lib1funcs.asm: Likewise. | |
20501 | * config/glibc-stdint.h: Likewise. | |
20502 | * config/h8300/clzhi2.c: Likewise. | |
20503 | * config/h8300/crti.asm: Likewise. | |
20504 | * config/h8300/crtn.asm: Likewise. | |
20505 | * config/h8300/ctzhi2.c: Likewise. | |
20506 | * config/h8300/fixunssfsi.c: Likewise. | |
20507 | * config/h8300/lib1funcs.asm: Likewise. | |
20508 | * config/h8300/parityhi2.c: Likewise. | |
20509 | * config/h8300/popcounthi2.c: Likewise. | |
20510 | * config/i386/ammintrin.h: Likewise. | |
20511 | * config/i386/att.h: Likewise. | |
20512 | * config/i386/avxintrin.h: Likewise. | |
20513 | * config/i386/biarch64.h: Likewise. | |
20514 | * config/i386/bmmintrin.h: Likewise. | |
20515 | * config/i386/cpuid.h: Likewise. | |
20516 | * config/i386/cross-stdarg.h: Likewise. | |
20517 | * config/i386/crtfastmath.c: Likewise. | |
20518 | * config/i386/crtprec.c: Likewise. | |
20519 | * config/i386/cygming-crtbegin.c: Likewise. | |
20520 | * config/i386/cygming-crtend.c: Likewise. | |
20521 | * config/i386/cygwin.asm: Likewise. | |
20522 | * config/i386/emmintrin.h: Likewise. | |
20523 | * config/i386/gmm_malloc.h: Likewise. | |
20524 | * config/i386/gthr-win32.c: Likewise. | |
20525 | * config/i386/i386.h: Likewise. | |
20526 | * config/i386/immintrin.h: Likewise. | |
20527 | * config/i386/linux-unwind.h: Likewise. | |
20528 | * config/i386/linux64.h: Likewise. | |
20529 | * config/i386/mm3dnow.h: Likewise. | |
20530 | * config/i386/mmintrin-common.h: Likewise. | |
20531 | * config/i386/mmintrin.h: Likewise. | |
20532 | * config/i386/nmmintrin.h: Likewise. | |
20533 | * config/i386/pmm_malloc.h: Likewise. | |
20534 | * config/i386/pmmintrin.h: Likewise. | |
20535 | * config/i386/smmintrin.h: Likewise. | |
20536 | * config/i386/sol2-c1.asm: Likewise. | |
20537 | * config/i386/sol2-ci.asm: Likewise. | |
20538 | * config/i386/sol2-cn.asm: Likewise. | |
20539 | * config/i386/sol2-gc1.asm: Likewise. | |
20540 | * config/i386/tmmintrin.h: Likewise. | |
20541 | * config/i386/unix.h: Likewise. | |
20542 | * config/i386/w32-unwind.h: Likewise. | |
20543 | * config/i386/wmmintrin.h: Likewise. | |
20544 | * config/i386/x86-64.h: Likewise. | |
20545 | * config/i386/x86intrin.h: Likewise. | |
20546 | * config/i386/xmmintrin.h: Likewise. | |
20547 | * config/ia64/crtbegin.asm: Likewise. | |
20548 | * config/ia64/crtend.asm: Likewise. | |
20549 | * config/ia64/crtfastmath.c: Likewise. | |
20550 | * config/ia64/crti.asm: Likewise. | |
20551 | * config/ia64/crtn.asm: Likewise. | |
20552 | * config/ia64/fde-glibc.c: Likewise. | |
20553 | * config/ia64/lib1funcs.asm: Likewise. | |
20554 | * config/ia64/linux-unwind.h: Likewise. | |
20555 | * config/ia64/quadlib.c: Likewise. | |
20556 | * config/ia64/unwind-ia64.c: Likewise. | |
20557 | * config/linux.h: Likewise. | |
20558 | * config/m32c/m32c-lib1.S: Likewise. | |
20559 | * config/m32c/m32c-lib2-trapv.c: Likewise. | |
20560 | * config/m32c/m32c-lib2.c: Likewise. | |
20561 | * config/m32r/initfini.c: Likewise. | |
20562 | * config/m68hc11/larith.asm: Likewise. | |
20563 | * config/m68hc11/m68hc11-crt0.S: Likewise. | |
20564 | * config/m68k/cf.md: Likewise. | |
20565 | * config/m68k/crti.s: Likewise. | |
20566 | * config/m68k/crtn.s: Likewise. | |
20567 | * config/m68k/lb1sf68.asm: Likewise. | |
20568 | * config/m68k/linux-unwind.h: Likewise. | |
20569 | * config/mcore/crti.asm: Likewise. | |
20570 | * config/mcore/crtn.asm: Likewise. | |
20571 | * config/mcore/lib1.asm: Likewise. | |
20572 | * config/mips/linux-unwind.h: Likewise. | |
20573 | * config/mips/loongson.h: Likewise. | |
20574 | * config/mips/mips16.S: Likewise. | |
20575 | * config/mmix/crti.asm: Likewise. | |
20576 | * config/mmix/crtn.asm: Likewise. | |
20577 | * config/pa/fptr.c: Likewise. | |
20578 | * config/pa/hpux-unwind.h: Likewise. | |
20579 | * config/pa/lib2funcs.asm: Likewise. | |
20580 | * config/pa/linux-atomic.c: Likewise. | |
20581 | * config/pa/linux-unwind.h: Likewise. | |
20582 | * config/pa/milli64.S: Likewise. | |
20583 | * config/pa/quadlib.c: Likewise. | |
20584 | * config/pa/stublib.c: Likewise. | |
20585 | * config/picochip/libgccExtras/adddi3.asm: Likewise. | |
20586 | * config/picochip/libgccExtras/ashlsi3.asm: Likewise. | |
20587 | * config/picochip/libgccExtras/ashlsi3.c: Likewise. | |
20588 | * config/picochip/libgccExtras/ashrsi3.asm: Likewise. | |
20589 | * config/picochip/libgccExtras/ashrsi3.c: Likewise. | |
20590 | * config/picochip/libgccExtras/cmpsi2.asm: Likewise. | |
20591 | * config/picochip/libgccExtras/divmod15.asm: Likewise. | |
20592 | * config/picochip/libgccExtras/divmodhi4.asm: Likewise. | |
20593 | * config/picochip/libgccExtras/divmodsi4.asm: Likewise. | |
20594 | * config/picochip/libgccExtras/longjmp.asm: Likewise. | |
20595 | * config/picochip/libgccExtras/lshrsi3.asm: Likewise. | |
20596 | * config/picochip/libgccExtras/lshrsi3.c: Likewise. | |
20597 | * config/picochip/libgccExtras/parityhi2.asm: Likewise. | |
20598 | * config/picochip/libgccExtras/popcounthi2.asm: Likewise. | |
20599 | * config/picochip/libgccExtras/setjmp.asm: Likewise. | |
20600 | * config/picochip/libgccExtras/subdi3.asm: Likewise. | |
20601 | * config/picochip/libgccExtras/ucmpsi2.asm: Likewise. | |
20602 | * config/picochip/libgccExtras/udivmodhi4.asm: Likewise. | |
20603 | * config/picochip/libgccExtras/udivmodsi4.asm: Likewise. | |
20604 | * config/rs6000/750cl.h: Likewise. | |
20605 | * config/rs6000/altivec.h: Likewise. | |
20606 | * config/rs6000/biarch64.h: Likewise. | |
20607 | * config/rs6000/crtresfpr.asm: Likewise. | |
20608 | * config/rs6000/crtresgpr.asm: Likewise. | |
20609 | * config/rs6000/crtresxfpr.asm: Likewise. | |
20610 | * config/rs6000/crtresxgpr.asm: Likewise. | |
20611 | * config/rs6000/crtsavfpr.asm: Likewise. | |
20612 | * config/rs6000/crtsavgpr.asm: Likewise. | |
20613 | * config/rs6000/darwin-asm.h: Likewise. | |
20614 | * config/rs6000/darwin-fallback.c: Likewise. | |
20615 | * config/rs6000/darwin-fpsave.asm: Likewise. | |
20616 | * config/rs6000/darwin-ldouble.c: Likewise. | |
20617 | * config/rs6000/darwin-tramp.asm: Likewise. | |
20618 | * config/rs6000/darwin-unwind.h: Likewise. | |
20619 | * config/rs6000/darwin-vecsave.asm: Likewise. | |
20620 | * config/rs6000/darwin-world.asm: Likewise. | |
20621 | * config/rs6000/e500crtres32gpr.asm: Likewise. | |
20622 | * config/rs6000/e500crtres64gpr.asm: Likewise. | |
20623 | * config/rs6000/e500crtres64gprctr.asm: Likewise. | |
20624 | * config/rs6000/e500crtrest32gpr.asm: Likewise. | |
20625 | * config/rs6000/e500crtrest64gpr.asm: Likewise. | |
20626 | * config/rs6000/e500crtresx32gpr.asm: Likewise. | |
20627 | * config/rs6000/e500crtresx64gpr.asm: Likewise. | |
20628 | * config/rs6000/e500crtsav32gpr.asm: Likewise. | |
20629 | * config/rs6000/e500crtsav64gpr.asm: Likewise. | |
20630 | * config/rs6000/e500crtsav64gprctr.asm: Likewise. | |
20631 | * config/rs6000/e500crtsavg32gpr.asm: Likewise. | |
20632 | * config/rs6000/e500crtsavg64gpr.asm: Likewise. | |
20633 | * config/rs6000/e500crtsavg64gprctr.asm: Likewise. | |
20634 | * config/rs6000/eabi-ci.asm: Likewise. | |
20635 | * config/rs6000/eabi-cn.asm: Likewise. | |
20636 | * config/rs6000/eabi.asm: Likewise. | |
20637 | * config/rs6000/linux-unwind.h: Likewise. | |
20638 | * config/rs6000/linux64.h: Likewise. | |
20639 | * config/rs6000/paired.h: Likewise. | |
20640 | * config/rs6000/paired.md: Likewise. | |
20641 | * config/rs6000/ppc64-fp.c: Likewise. | |
20642 | * config/rs6000/ppu_intrinsics.h: Likewise. | |
20643 | * config/rs6000/rs6000.h: Likewise. | |
20644 | * config/rs6000/si2vmx.h: Likewise. | |
20645 | * config/rs6000/sol-ci.asm: Likewise. | |
20646 | * config/rs6000/sol-cn.asm: Likewise. | |
20647 | * config/rs6000/spe.h: Likewise. | |
20648 | * config/rs6000/spu2vmx.h: Likewise. | |
20649 | * config/rs6000/sysv4.h: Likewise. | |
20650 | * config/rs6000/tramp.asm: Likewise. | |
20651 | * config/rs6000/vec_types.h: Likewise. | |
20652 | * config/s390/linux-unwind.h: Likewise. | |
20653 | * config/s390/tpf-unwind.h: Likewise. | |
20654 | * config/score/crti.asm: Likewise. | |
20655 | * config/score/crtn.asm: Likewise. | |
20656 | * config/sh/crt1.asm: Likewise. | |
20657 | * config/sh/crti.asm: Likewise. | |
20658 | * config/sh/crtn.asm: Likewise. | |
20659 | * config/sh/divtab-sh4-300.c: Likewise. | |
20660 | * config/sh/divtab-sh4.c: Likewise. | |
20661 | * config/sh/divtab.c: Likewise. | |
20662 | * config/sh/lib1funcs-4-300.asm: Likewise. | |
20663 | * config/sh/lib1funcs-Os-4-200.asm: Likewise. | |
20664 | * config/sh/lib1funcs.asm: Likewise. | |
20665 | * config/sh/lib1funcs.h: Likewise. | |
20666 | * config/sh/linux-atomic.asm: Likewise. | |
20667 | * config/sh/linux-unwind.h: Likewise. | |
20668 | * config/sh/shmedia.h: Likewise. | |
20669 | * config/sh/sshmedia.h: Likewise. | |
20670 | * config/sh/ushmedia.h: Likewise. | |
20671 | * config/sparc/crtfastmath.c: Likewise. | |
20672 | * config/sparc/linux-unwind.h: Likewise. | |
20673 | * config/sparc/sol2-c1.asm: Likewise. | |
20674 | * config/sparc/sol2-ci.asm: Likewise. | |
20675 | * config/sparc/sol2-cn.asm: Likewise. | |
20676 | * config/spu/divmodti4.c: Likewise. | |
20677 | * config/spu/divv2df3.c: Likewise. | |
20678 | * config/spu/float_disf.c: Likewise. | |
20679 | * config/spu/float_unsdidf.c: Likewise. | |
20680 | * config/spu/float_unsdisf.c: Likewise. | |
20681 | * config/spu/float_unssidf.c: Likewise. | |
20682 | * config/spu/mfc_multi_tag_release.c: Likewise. | |
20683 | * config/spu/mfc_multi_tag_reserve.c: Likewise. | |
20684 | * config/spu/mfc_tag_release.c: Likewise. | |
20685 | * config/spu/mfc_tag_reserve.c: Likewise. | |
20686 | * config/spu/mfc_tag_table.c: Likewise. | |
20687 | * config/spu/multi3.c: Likewise. | |
20688 | * config/spu/spu_internals.h: Likewise. | |
20689 | * config/spu/spu_intrinsics.h: Likewise. | |
20690 | * config/spu/spu_mfcio.h: Likewise. | |
20691 | * config/spu/vec_types.h: Likewise. | |
20692 | * config/spu/vmx2spu.h: Likewise. | |
20693 | * config/stormy16/stormy16-lib2.c: Likewise. | |
20694 | * config/svr4.h: Likewise. | |
20695 | * config/sync.c: Likewise. | |
20696 | * config/v850/lib1funcs.asm: Likewise. | |
20697 | * config/vxlib-tls.c: Likewise. | |
20698 | * config/vxlib.c: Likewise. | |
20699 | * config/vxworks-dummy.h: Likewise. | |
20700 | * config/xtensa/crti.asm: Likewise. | |
20701 | * config/xtensa/crtn.asm: Likewise. | |
20702 | * config/xtensa/ieee754-df.S: Likewise. | |
20703 | * config/xtensa/ieee754-sf.S: Likewise. | |
20704 | * config/xtensa/lib1funcs.asm: Likewise. | |
20705 | * config/xtensa/lib2funcs.S: Likewise. | |
20706 | * config/xtensa/linux-unwind.h: Likewise. | |
20707 | * config/xtensa/unwind-dw2-xtensa.c: Likewise. | |
20708 | * config/xtensa/unwind-dw2-xtensa.h: Likewise. | |
20709 | * coretypes.h: Likewise. | |
20710 | * crtstuff.c: Likewise. | |
20711 | * defaults.h: Likewise. | |
20712 | * dwarf2.h: Likewise. | |
20713 | * emutls.c: Likewise. | |
20714 | * gbl-ctors.h: Likewise. | |
20715 | * gcov-io.h: Likewise. | |
20716 | * ginclude/float.h: Likewise. | |
20717 | * ginclude/iso646.h: Likewise. | |
20718 | * ginclude/stdarg.h: Likewise. | |
20719 | * ginclude/stdbool.h: Likewise. | |
20720 | * ginclude/stddef.h: Likewise. | |
20721 | * ginclude/stdfix.h: Likewise. | |
20722 | * ginclude/stdint-gcc.h: Likewise. | |
20723 | * ginclude/tgmath.h: Likewise. | |
20724 | * gthr-aix.h: Likewise. | |
20725 | * gthr-dce.h: Likewise. | |
20726 | * gthr-gnat.c: Likewise. | |
20727 | * gthr-gnat.h: Likewise. | |
20728 | * gthr-lynx.h: Likewise. | |
20729 | * gthr-mipssde.h: Likewise. | |
20730 | * gthr-nks.h: Likewise. | |
20731 | * gthr-posix.c: Likewise. | |
20732 | * gthr-posix.h: Likewise. | |
20733 | * gthr-posix95.h: Likewise. | |
20734 | * gthr-rtems.h: Likewise. | |
20735 | * gthr-single.h: Likewise. | |
20736 | * gthr-solaris.h: Likewise. | |
20737 | * gthr-tpf.h: Likewise. | |
20738 | * gthr-vxworks.h: Likewise. | |
20739 | * gthr-win32.h: Likewise. | |
20740 | * gthr.h: Likewise. | |
20741 | * libgcc2.c: Likewise. | |
20742 | * libgcc2.h: Likewise. | |
20743 | * libgcov.c: Likewise. | |
20744 | * tsystem.h: Likewise. | |
20745 | * typeclass.h: Likewise. | |
20746 | * unwind-c.c: Likewise. | |
20747 | * unwind-compat.h: Likewise. | |
20748 | * unwind-dw2-fde-compat.c: Likewise. | |
20749 | * unwind-dw2-fde-darwin.c: Likewise. | |
20750 | * unwind-dw2-fde-glibc.c: Likewise. | |
20751 | * unwind-dw2-fde.c: Likewise. | |
20752 | * unwind-dw2-fde.h: Likewise. | |
20753 | * unwind-dw2.c: Likewise. | |
20754 | * unwind-dw2.h: Likewise. | |
20755 | * unwind-generic.h: Likewise. | |
20756 | * unwind-pe.h: Likewise. | |
20757 | * unwind-sjlj.c: Likewise. | |
20758 | * unwind.inc: Likewise. | |
20759 | * config/arm/neon-gen.ml: Change generated copyright header to | |
20760 | refer to version 3 of the GNU General Public License with | |
20761 | version 3.1 of the GCC Runtime Library Exception and to point | |
20762 | readers at the COPYING3 and COPYING3.RUNTIME files and the | |
20763 | FSF's license web page. | |
20764 | * config/arm/arm_neon.h: Regenerate. | |
20765 | ||
20766 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> | |
20767 | ||
20768 | * config/cris/cris.md: Change copyright header to refer to version | |
20769 | 3 of the GNU General Public License. | |
20770 | * doc/install.texi2html: Change copyright header to refer to version | |
20771 | 3 of the GNU General Public License and to point readers at the | |
20772 | COPYING3 file and the FSF's license web page. | |
20773 | * config/vax/linux.h: Likewise. | |
20774 | ||
4a77c72b PB |
20775 | 2009-04-09 Paolo Bonzini <bonzini@gnu.org> |
20776 | ||
1ad2f450 L |
20777 | * config/i386/i386.md (cmpcc): New. |
20778 | * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG. | |
20779 | (sync_compare_and_swap_cc*): Delete. | |
20780 | ||
20781 | * config/s390/s390.c (s390_compare_emitted): Remove. | |
20782 | (s390_emit_compare): Handle MODE_CC s390_compare_op0 like | |
20783 | s390_compare_emitted used to be handled. Assert that modes match. | |
20784 | (s390_emit_compare_and_swap): Use s390_emit_compare, do not | |
20785 | refer to sync_compare_and_swap_ccsi. | |
20786 | * config/s390/s390.h (s390_compare_emitted): Remove. | |
20787 | * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0 | |
20788 | instead of s390_compare_emitted. | |
20789 | (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0 | |
20790 | instead of s390_compare_emitted. | |
20791 | * config/s390/s390.md (cmpcc): New. | |
20792 | (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber | |
20793 | CC_REGNUM, do not pretend it's set. | |
20794 | (sync_compare_and_swap_cc*): Delete. | |
20795 | * config/s390/predicates.md (cc_reg_operand): New. | |
20796 | ||
20797 | * expr.c (sync_compare_and_swap_cc): Delete. | |
20798 | * optabs.h (sync_compare_and_swap_cc): Delete. | |
20799 | * optabs.c (prepare_cmp_insn): Ignore which specific CCmode | |
20800 | is being used with can_compare_p. | |
20801 | (emit_cmp_and_jump_insn_1): Likewise when looking in the optab. | |
20802 | (find_cc_set): New. | |
20803 | (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc, | |
20804 | look for a MODE_CC set instead. Use emit_store_flag. | |
20805 | (expand_compare_and_swap_loop): Likewise, with some additional | |
20806 | complication to avoid a force_reg when useless. Use | |
20807 | emit_cmp_and_jump_insns. | |
20808 | * genopinit.c (optabs): Delete sync_compare_and_swap_cc. | |
20809 | * doc/md.texi (sync_compare_and_swap_cc): Merge with | |
20810 | sync_compare_and_swap documentation. | |
4a77c72b | 20811 | |
0c0efb33 JH |
20812 | 2009-04-09 Jan Hubicka <jh@suse.cz> |
20813 | ||
20814 | * except.c (find_prev_try): Break out from .... | |
20815 | (duplicate_eh_regions): ... here; properly update prev_try pointers | |
20816 | when duplication part of tree. | |
20817 | (dump_eh_tree): Improve dumping. | |
20818 | (verify_eh_region): New. | |
20819 | (verify_eh_tree): Use it. | |
20820 | ||
22a65a54 RG |
20821 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
20822 | ||
20823 | * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC | |
20824 | &ARRAY addresses by adjusting their types and prepending | |
20825 | a conversion. | |
20826 | * tree-cfg.c (verify_gimple_assign_single): Verify that | |
20827 | addresses are correct. | |
20828 | ||
f76968e6 RG |
20829 | 2009-04-09 Richard Guenther <rguenther@suse.de> |
20830 | ||
20831 | * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant | |
20832 | indices into an array reference if possible. | |
20833 | * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars): | |
20834 | Fold POINTER_PLUS_EXPR statements with invariant address. | |
20835 | ||
c90c5fb5 AM |
20836 | 2009-04-09 Alan Modra <amodra@bigpond.net.au> |
20837 | ||
20838 | PR target/39634 | |
20839 | * config.gcc (powerpc64-*-linux*): Always build biarch. | |
20840 | ||
17cede2e JM |
20841 | 2009-04-09 Joseph Myers <joseph@codesourcery.com> |
20842 | ||
20843 | PR c/39613 | |
20844 | * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold | |
20845 | it and pedwarn if this results in an INTEGER_CST. | |
20846 | ||
a3337ea2 KG |
20847 | 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
20848 | ||
20849 | * doc/install.texi: Update minimum GMP version. Remove obsolete | |
20850 | text in MPFR section. | |
20851 | ||
ce9ba79b JJ |
20852 | 2009-04-08 Jakub Jelinek <jakub@redhat.com> |
20853 | ||
20854 | * dwarf2out.c (class_scope_p): New static inline. | |
20855 | (class_or_namespace_scope_p): Use it. | |
20856 | (gen_variable_die): Use DW_TAG_member tag for static data member | |
20857 | declarations instead of DW_TAG_variable. | |
20858 | ||
4f0ae266 JJ |
20859 | PR middle-end/39573 |
20860 | * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls | |
20861 | variables. | |
20862 | ||
d27f0ddc RG |
20863 | 2009-04-08 Richard Guenther <rguenther@suse.de> |
20864 | ||
20865 | * tree-ssa-sccvn.c (valueize_refs): Do not continue to | |
20866 | valueize random data. | |
20867 | ||
557cc596 DE |
20868 | 2009-04-08 David Edelsohn <edelsohn@gnu.org> |
20869 | ||
20870 | * config.gcc (aix tm_file): Add aix-stdint.h. | |
20871 | (aix tm clause use_gcc_stdint): Set to wrap. | |
20872 | * config/rs6000/aix-stdint.h: New file. | |
2ba9daa7 | 20873 | |
75ccc1e7 RG |
20874 | 2009-04-08 Richard Guenther <rguenther@suse.de> |
20875 | ||
20876 | PR middle-end/36291 | |
20877 | * tree-dfa.c (add_referenced_var): Do not recurse into | |
20878 | global initializers. | |
20879 | * tree-ssa-ccp.c (get_symbol_constant_value): Add newly | |
20880 | exposed variables. | |
20881 | (fold_const_aggregate_ref): Likewise. | |
20882 | ||
c6963675 PB |
20883 | 2009-04-08 Paolo Bonzini <bonzini@gnu.org> |
20884 | ||
6c44cf79 L |
20885 | * recog.c (ordered_comparison_operator): New. |
20886 | * gensupport.c (std_preds): Add it. | |
c6963675 PB |
20887 | * doc/md.texi (Machine-Independent Predicates): Document it. |
20888 | ||
6d07ad98 JH |
20889 | 2009-04-08 Jan Hubicka <jh@suse.cz> |
20890 | ||
20891 | * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging. | |
20892 | * function.h (rtl_eh): Remove exception_handler_label_map. | |
20893 | * except.c (ehl_hash, ehl_eq, add_ehl_entry, | |
20894 | remove_exception_handler_label, for_each_eh_label_1): Remove. | |
20895 | (rtl_remove_unreachable_regions): Remove. | |
20896 | (convert_from_eh_region_ranges): Do not remove unreachable regions. | |
20897 | (find_exception_handler_labels): Don't build the hashtable. | |
20898 | (maybe_remove_eh_handler): Remove. | |
20899 | (for_each_eh_label): Rewrite to walk the tree. | |
20900 | (rest_of_handle_eh): Do not cleanup cfg prior EH construction. | |
20901 | * except.h (maybe_remove_eh_handler): Remove. | |
20902 | * passes.c (init_optimization_passes): Schedule second EH cleanup | |
20903 | before out-of-ssa. | |
20904 | * cfgrtl.c (rtl_delete_block, rtl_merge_blocks, | |
20905 | cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler. | |
20906 | ||
7ddf71e3 PB |
20907 | 2009-04-08 Paolo Bonzini <bonzini@gnu.org> |
20908 | ||
20909 | * genoutput.c (validate_optab_operands): New. | |
20910 | (gen_insn, gen_expand): Call it. | |
20911 | ||
20912 | * genflags.c (gen_insn): Detect misused iterators. | |
20913 | (main): Pass line_no to gen_insn, exit with status 1 on error. | |
20914 | ||
20915 | * genextract.c (line_no): Make global. | |
20916 | (VEC_safe_set_locstr): Change assertion to error message. | |
20917 | (main): Exit with status 1 on error. | |
20918 | ||
4d84fe7c JM |
20919 | 2009-04-08 Joseph Myers <joseph@codesourcery.com> |
20920 | ||
20921 | PR c/39614 | |
20922 | PR c/39673 | |
20923 | * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR, | |
20924 | C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST, | |
20925 | EXPR_INT_CONST_OPERANDS): Remove duplicate definitions. | |
20926 | * c-convert.c (convert): Do not call fold on results of conversion | |
20927 | functions when the result is a C_MAYBE_CONST_EXPR. | |
20928 | * c-parser.c (c_parser_postfix_expression): Do not fold condition | |
20929 | of __builtin_choose_expr. | |
20930 | * c-typeck.c (remove_c_maybe_const_expr): New. | |
20931 | (build_unary_op, build_conditional_expr, build_compound_expr, | |
20932 | build_binary_op, c_objc_common_truthvalue_conversion): Call | |
20933 | remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with | |
20934 | integer operands. | |
20935 | ||
60839f5d | 20936 | 2009-04-08 Bingfeng Mei <bmei@broadcom.com> |
d1d1c602 | 20937 | |
2ba9daa7 | 20938 | * fold-const.c (const_binop): Combine two VECTOR_CST under operation |
6c44cf79 | 20939 | CODE to produce a new one. Add a prototype to use fold_convert_const |
d1d1c602 | 20940 | |
8e481a2c DS |
20941 | 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net> |
20942 | ||
20943 | PR bootstrap/39660 | |
20944 | * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't | |
20945 | mix declarations and code. | |
20946 | ||
ee618c17 BE |
20947 | 2009-04-08 Ben Elliston <bje@au.ibm.com> |
20948 | ||
20949 | * gcc.c: Replace `CC' with `GCC' throughout. | |
20950 | ||
f2a758a2 L |
20951 | 2009-04-07 H.J. Lu <hongjiu.lu@intel.com> |
20952 | ||
20953 | * doc/invoke.texi: Document Atom support. | |
20954 | ||
6ea2bd47 JM |
20955 | 2009-04-07 Jason Merrill <jason@redhat.com> |
20956 | ||
20957 | PR c++/25185 | |
20958 | * c-common.h, c-common.c: Add flag_pretty_templates. | |
20959 | * c-opts.c (c_common_handle_option): Set it. | |
20960 | * c.opt: Add -fno-pretty-templates. | |
20961 | * doc/invoke.texi (C++ Dialect Options): Likewise. | |
20962 | ||
fcb82ab0 UB |
20963 | 2009-04-07 Uros Bizjak <ubizjak@gmail.com> |
20964 | ||
20965 | * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. | |
20966 | (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ. | |
20967 | (ia64_expand_builtin): Likewise. | |
20968 | ||
dc5e7298 MJ |
20969 | 2009-04-07 Martin Jambor <mjambor@suse.cz> |
20970 | ||
20971 | * tree-ssa-alias.c (refs_may_alias_p_1): Check for | |
20972 | is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant | |
20973 | ADDR_EXPRS are include too. | |
20974 | ||
0609b355 RG |
20975 | 2009-04-07 Richard Guenther <rguenther@suse.de> |
20976 | ||
20977 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased | |
20978 | decls are only used if passes as parameters or if they are | |
20979 | local statics and the call is not to a builtin. | |
20980 | (call_may_clobber_ref_p_1): Likewise. | |
20981 | ||
d8e535fa PB |
20982 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20983 | ||
20984 | * expr.c (do_store_flag): Remove last argument. Simplify code | |
20985 | to avoid duplication of tests already done by can_compare_p. | |
20986 | (expand_expr_real_1): Adjust caller. | |
20987 | ||
c3c64f50 PB |
20988 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20989 | ||
fcb82ab0 UB |
20990 | * optabs.c (can_compare_p): Test the predicate of a |
20991 | cbranch and cstore pattern. | |
c3c64f50 | 20992 | |
9a53bc17 PB |
20993 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20994 | ||
fcb82ab0 UB |
20995 | * expr.c (convert_move): Use emit_store_flag instead of |
20996 | "emulating" it. | |
9a53bc17 | 20997 | |
67b8f1c1 PB |
20998 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20999 | ||
fcb82ab0 UB |
21000 | * config/i386/i386.c (ix86_compare_emitted): Remove. |
21001 | (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC | |
21002 | ix86_compare_op0 like ix86_compare_emitted used to be handled. | |
21003 | * config/i386/i386.h (ix86_compare_emitted): Remove. | |
21004 | * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0 | |
21005 | instead of ix86_compare_emitted. | |
21006 | * config/i386/sync.md (sync_compare_and_swap_cc): Likewise. | |
67b8f1c1 | 21007 | |
44509946 AS |
21008 | 2009-04-07 Andrew Stubbs <ams@codesourcery.com> |
21009 | ||
21010 | * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file. | |
21011 | Add t-sysroot-suffix to tmake_file. | |
21012 | * config/print-sysroot-suffix.sh: New file. | |
21013 | * config/t-sysroot-suffix: New file. | |
21014 | ||
ca22d882 BE |
21015 | 2009-04-07 Ben Elliston <bje@au.ibm.com> |
21016 | ||
21017 | * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf, | |
21018 | as the latter produces a warning when the target does not support | |
21019 | infinity. | |
21020 | ||
95aac11b BE |
21021 | 2009-04-07 Ben Elliston <bje@au.ibm.com> |
21022 | ||
21023 | * dfp.c: Replace type punning assignments with memcpy throughout. | |
21024 | * Makefile.in (dfp.o-warn): Remove. | |
2ba9daa7 | 21025 | |
633dd061 AM |
21026 | 2009-04-07 Alan Modra <amodra@bigpond.net.au> |
21027 | ||
21028 | PR target/39634 | |
21029 | * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*. | |
21030 | Include soft-fp/t-softfp after rs6000/t-linux64. | |
21031 | ||
fe0a25ec EB |
21032 | 2009-04-06 Eric Botcazou <ebotcazou@adacore.com> |
21033 | ||
21034 | * stor-layout.c (set_sizetype): Use the full precision of their | |
21035 | machine mode for bitsize types. | |
21036 | ||
0c011bc3 L |
21037 | 2009-04-06 H.J. Lu <hongjiu.lu@intel.com> |
21038 | ||
21039 | * config/i386/i386.md: Revert 2 accidental checkins. | |
21040 | ||
b6837b94 | 21041 | 2009-04-06 Joey Ye <joey.ye@intel.com> |
60839f5d | 21042 | Xuepeng Guo <xuepeng.guo@intel.com> |
b6837b94 JY |
21043 | H.J. Lu <hongjiu.lu@intel.com> |
21044 | ||
21045 | Atom pipeline model, tuning and insn selection. | |
21046 | * config.gcc (atom): Add atom config options and target. | |
21047 | ||
21048 | * config/i386/atom.md: New. | |
21049 | ||
21050 | * config/i386/i386.c (atom_cost): New cost. | |
21051 | (m_ATOM): New macro flag. | |
21052 | (initial_ix86_tune_features): Set m_ATOM. | |
21053 | (x86_accumulate_outgoing_args): Likewise. | |
21054 | (x86_arch_always_fancy_math_387): Likewise. | |
21055 | (processor_target): Add Atom cost. | |
21056 | (cpu_names): Add Atom cpu name. | |
21057 | (override_options): Set Atom ISA. | |
21058 | (ix86_issue_rate): New case PROCESSOR_ATOM. | |
21059 | (ix86_adjust_cost): Likewise. | |
21060 | ||
21061 | * config/i386/i386.h (TARGET_ATOM): New target macro. | |
21062 | (ix86_tune_indices): Add X86_TUNE_OPT_AGU. | |
21063 | (TARGET_OPT_AGU): New target option. | |
21064 | (target_cpu_default): Add TARGET_CPU_DEFAULT_atom. | |
21065 | (processor_type): Add PROCESSOR_ATOM. | |
21066 | ||
21067 | * config/i386/i386.md (cpu): Add new value "atom". | |
21068 | (use_carry, movu): New attr. | |
21069 | (atom.md): Include atom.md. | |
21070 | (adddi3_carry_rex64): Set attr "use_carry". | |
21071 | (addqi3_carry): Likewise. | |
21072 | (addhi3_carry): Likewise. | |
21073 | (addsi3_carry): Likewise. | |
21074 | (*addsi3_carry_zext): Likewise. | |
21075 | (subdi3_carry_rex64): Likewise. | |
21076 | (subqi3_carry): Likewise. | |
21077 | (subhi3_carry): Likewise. | |
21078 | (subsi3_carry): Likewise. | |
21079 | (x86_movdicc_0_m1_rex64): Likewise. | |
21080 | (*x86_movdicc_0_m1_se): Likewise. | |
21081 | (x86_movsicc_0_m1): Likewise. | |
21082 | (*x86_movsicc_0_m1_se): Likewise. | |
21083 | (*adddi_1_rex64): Emit add insn as much as possible. | |
21084 | (*addsi_1): Likewise. | |
21085 | (return_internal): Set atom_unit. | |
21086 | (return_internal_long): Likewise. | |
21087 | (return_pop_internal): Likewise. | |
21088 | (*rcpsf2_sse): Set atom_sse_attr attr. | |
21089 | (*qrt<mode>2_sse): Likewise. | |
21090 | (*prefetch_sse): Likewise. | |
21091 | ||
21092 | * config/i386/i386-c.c (ix86_target_macros_internal): New case | |
21093 | PROCESSOR_ATOM. | |
21094 | (ix86_target_macros_internal): Likewise. | |
21095 | ||
21096 | * config/i386/sse.md (cpu): Set attr "atom_sse_attr". | |
21097 | (*prefetch_sse_rex): Likewise. | |
21098 | (sse_rcpv4sf2): Likewise. | |
21099 | (sse_vmrcpv4sf2): Likewise. | |
21100 | (sse_sqrtv4sf2): Likewise. | |
21101 | (<sse>_vmsqrt<mode>2): Likewise. | |
21102 | (sse_ldmxcsr): Likewise. | |
21103 | (sse_stmxcsr): Likewise. | |
21104 | (*sse_sfence): Likewise. | |
21105 | (sse2_clflush): Likewise. | |
21106 | (*sse2_mfence): Likewise. | |
21107 | (*sse2_lfence): Likewise. | |
21108 | (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu". | |
21109 | (<sse>_movup<ssemodesuffixf2c>): Likewise. | |
21110 | (avx_movdqu<avxmodesuffix>): Likewise. | |
21111 | (avx_lddqu<avxmodesuffix>): Likewise. | |
21112 | (sse2_movntv2di): Change attr "type" to "ssemov". | |
21113 | (sse2_movntsi): Likewise. | |
21114 | (rsqrtv8sf2): Change attr "type" to "sseadd". | |
21115 | (sse3_addsubv2df3): Set attr "atom_unit". | |
21116 | (sse3_h<plusminus_insn>v4sf3): Likewise. | |
21117 | (*sse2_pmaddwd): Likewise. | |
21118 | (*vec_extractv2di_1_rex64): Likewise. | |
21119 | (*vec_extractv2di_1_avx): Likewise. | |
21120 | (sse2_psadbw): Likewise. | |
21121 | (ssse3_phaddwv8hi3): Likewise. | |
21122 | (ssse3_phaddwv4hi3): Likewise. | |
21123 | (ssse3_phadddv4si3): Likewise. | |
21124 | (ssse3_phadddv2si3): Likewise. | |
21125 | (ssse3_phaddswv8hi3): Likewise. | |
21126 | (ssse3_phaddswv4hi3): Likewise. | |
21127 | (ssse3_phsubwv8hi3): Likewise. | |
21128 | (ssse3_phsubwv4hi3): Likewise. | |
21129 | (ssse3_phsubdv4si3): Likewise. | |
21130 | (ssse3_phsubdv2si3): Likewise. | |
21131 | (ssse3_phsubswv8hi3): Likewise. | |
21132 | (ssse3_phsubswv4hi3): Likewise. | |
21133 | (ssse3_pmaddubsw128): Likewise. | |
21134 | (sse3_pmaddubsw: Likewise. | |
21135 | (ssse3_palignrti): Likewise. | |
21136 | (ssse3_palignrdi): Likewise. | |
21137 | ||
53e350d3 GP |
21138 | 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com> |
21139 | ||
21140 | * doc/install.texi (Specific): Fix two cross-references to MinGW. | |
21141 | ||
439ef907 RG |
21142 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
21143 | ||
21144 | PR tree-optimization/28868 | |
21145 | * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track | |
21146 | of which PHI results we inserted. | |
21147 | (insert_into_preds_of_block): Record inserted PHIs. | |
21148 | (eliminate): Eliminate redundant PHI nodes. | |
21149 | (init_pre): Init inserted_phi_names. | |
21150 | ||
4bad83f5 RG |
21151 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
21152 | ||
21153 | PR tree-optimization/39643 | |
21154 | * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and | |
21155 | IMAGPART_EXPRs of complex constants. | |
21156 | (execute_fold_all_builtins): If we folded a call queue | |
21157 | TODO_update_address_taken. | |
21158 | ||
570c4247 JH |
21159 | 2009-04-06 Jan Hubicka <jh@suse.cz> |
21160 | ||
21161 | PR middle-end/39659 | |
21162 | * except.c (remove_unreachable_regions): Propagate may_contain_throw | |
21163 | flag. | |
21164 | ||
a460d7a1 AS |
21165 | 2009-04-06 Andrew Stubbs <ams@codesourcery.com> |
21166 | ||
21167 | * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the | |
21168 | delay slot. | |
21169 | (ic_invalidate_array): Likewise. | |
21170 | ||
60839f5d | 21171 | 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com> |
6bdf8c2e HS |
21172 | |
21173 | * calls.c (emit_library_call_value_1): Fix a problem with parameter | |
21174 | alignment for library calls. | |
21175 | ||
7d253f6e DS |
21176 | 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net> |
21177 | ||
21178 | * config.gcc (mingw32 tm_file): Add mingw-stdint.h. | |
21179 | (mingw32 tm clause use_gcc_stdint): Set to wrap. | |
21180 | * config/i386/mingw-stdint.h: New file. | |
21181 | ||
941c3614 RB |
21182 | 2009-04-05 Richard Guenther <rguenther@suse.de> |
21183 | ||
21184 | PR tree-optimization/39648 | |
21185 | * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around | |
21186 | our &A vs. &A[0] IL deficiencies. | |
21187 | ||
12633413 JH |
21188 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
21189 | ||
941c3614 RB |
21190 | * except.c (sjlj_find_directly_reachable_regions): Be ready for |
21191 | removed toplevel regions. | |
12633413 JH |
21192 | (sjlj_mark_call_sites): Likewise. |
21193 | ||
bb2aaded DK |
21194 | 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com> |
21195 | ||
21196 | * config.gcc (cygwin tm_file): Add cygwin-stdint.h. | |
21197 | (cygwin tm clause use_gcc_stdint): Set to wrap. | |
21198 | * config/i386/cygwin-stdint.h: New file. | |
21199 | ||
86290011 RG |
21200 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
21201 | ||
21202 | * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency. | |
21203 | * tree-ssa-copy.c (init_copy_prop): Do not propagate through | |
21204 | single-argument PHIs if we are in loop-closed SSA form. | |
21205 | * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards | |
21206 | for the pre-condition. | |
21207 | (slpeel_tree_peel_loop_to_edge): Likewise. | |
21208 | (vect_build_loop_niters): Take an optional sequence to append stmts. | |
21209 | (vect_generate_tmps_on_preheader): Likewise. | |
21210 | (vect_do_peeling_for_loop_bound): Take extra guards for the | |
21211 | pre-condition. | |
21212 | (vect_do_peeling_for_alignment): Adjust. Unconditionally apply | |
21213 | the cost model check. | |
21214 | (vect_loop_versioning): Take stmt and stmt list to put pre-condition | |
7a715bba | 21215 | guards if we are going to peel. Do not apply versioning in that case. |
86290011 RG |
21216 | * tree-vectorizer.h (vect_loop_versioning): Adjust declaration. |
21217 | (vect_do_peeling_for_loop_bound): Likewise. | |
21218 | * tree-vect-loop.c (vect_transform_loop): If we are peeling for | |
21219 | loop bound only record extra pre-conditions, do not apply loop | |
21220 | versioning. | |
21221 | ||
5eeeac64 RG |
21222 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
21223 | ||
21224 | * tree-ssa-operands.c (pop_stmt_changes): Remove automatic | |
21225 | renaming code. | |
21226 | ||
1ff7d06b JH |
21227 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
21228 | ||
21229 | * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use | |
21230 | last_basic_block for size of bb->index indexed array. | |
21231 | * bt-load.c (compute_defs_uses_and_gen, compute_kill, | |
21232 | compute_out, link_btr_uses, build_btr_def_use_webs, | |
21233 | build_btr_def_use_webs, migrate_btr_defs): Likewise. | |
21234 | ||
14925fcd JH |
21235 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
21236 | ||
21237 | * except.c (remove_eh_handler_and_replace): Break out from ... | |
21238 | (remove_eh_handler): ... here. | |
21239 | (bring_to_root): New function. | |
21240 | (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime | |
21241 | handled ones, bring others to root of tree. | |
21242 | ||
4e6d1743 JH |
21243 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
21244 | ||
4cb735f7 JH |
21245 | * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully. |
21246 | (all_phis_safe_to_merge): New function. | |
21247 | (update_info): New structure. | |
21248 | (make_eh_edge_and_update_phi, update_eh_edges): New functions. | |
21249 | (cleanup_empty_eh): Update SSA if possible. | |
4e6d1743 | 21250 | |
c6803d43 RG |
21251 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
21252 | ||
21253 | * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs. | |
21254 | * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0. | |
21255 | (append_vuse): Likewise. | |
21256 | ||
54f5943c JJ |
21257 | 2009-04-04 Jakub Jelinek <jakub@redhat.com> |
21258 | ||
21259 | * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value. | |
21260 | * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED | |
21261 | instead of REG_UNSAVED for DW_CFA_undefined. | |
21262 | (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED. | |
21263 | (uw_update_context): If RA column is REG_UNDEFINED, mark it as | |
21264 | outermost frame. | |
21265 | ||
aad2bccb RE |
21266 | 2009-04-04 Richard Earnshaw <rearnsha@arm.com> |
21267 | ||
21268 | PR target/39501 | |
21269 | * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT. | |
aad2bccb | 21270 | |
aa7069aa RG |
21271 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
21272 | ||
21273 | PR tree-optimization/8781 | |
21274 | PR tree-optimization/37892 | |
21275 | * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare. | |
21276 | * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function. | |
21277 | (valueize_refs): Call it for *& valueizations. | |
21278 | (shared_reference_ops_from_ref): Rename to ... | |
21279 | (valueize_shared_reference_ops_from_ref): ... this and valueize. | |
21280 | (shared_reference_ops_from_call): Rename to ... | |
21281 | (valueize_shared_reference_ops_from_call): ... this and valueize. | |
21282 | (vn_reference_lookup): Update. | |
21283 | (visit_reference_op_call): Likewise. | |
21284 | * tree-ssa-pre.c (phi_translate_1): Fold *&. | |
21285 | (eliminate): Value-replace the call address in call statements. | |
21286 | ||
cd15ad3e RG |
21287 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
21288 | ||
21289 | PR tree-optimization/39636 | |
21290 | * tree-ssa-forwprop.c | |
21291 | (forward_propagate_addr_into_variable_array_index): Check for | |
21292 | GIMPLE_ASSIGN before accessing the rhs code. | |
21293 | ||
462f3262 JM |
21294 | 2009-04-03 Jason Merrill <jason@redhat.com> |
21295 | ||
21296 | * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. | |
21297 | ||
6adb807e SE |
21298 | 2009-04-03 Steve Ellcey <sje@cup.hp.com> |
21299 | ||
21300 | * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2, | |
21301 | truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2, | |
21302 | fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2, | |
21303 | floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2, | |
21304 | fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal, | |
21305 | smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf, | |
21306 | divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal, | |
21307 | umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2, | |
21308 | *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4, | |
21309 | *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr, | |
21310 | adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2, | |
21311 | smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc, | |
21312 | *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf, | |
21313 | *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3, | |
21314 | sqrtxf2, sqrtxf2_internal_thr, *recip_approx): | |
21315 | Use fr_reg_or_fp01_operand instead of fr_register_operand | |
21316 | ||
21317 | * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2, | |
21318 | recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat, | |
21319 | divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto. | |
21320 | ||
174b3107 VM |
21321 | 2009-04-03 Vladimir Makarov <vmakarov@redhat.com> |
21322 | ||
b844e5d8 L |
21323 | PR rtl-optimization/39607 |
21324 | PR rtl-optimization/39631 | |
7a715bba UB |
21325 | |
21326 | Revert: | |
2ba9daa7 | 21327 | |
174b3107 VM |
21328 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
21329 | * reload.c (push_reload, find_dummy_reload): Use df_get_live_out | |
21330 | instead of DF_LR_OUT. | |
21331 | * ira-lives.c (process_bb_node_lives): Ditto. | |
21332 | * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in} | |
21333 | instead of DF_LR_{OUT,IN}. | |
21334 | * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto. | |
21335 | * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto. | |
21336 | ||
535b544a SB |
21337 | 2009-04-03 Steven Bosscher <steven@gcc.gnu.org> |
21338 | ||
21339 | * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp. | |
21340 | (execute_lower_omp): Always run but take the short way out if -fopenmp | |
21341 | is not given. | |
21342 | (gate_lower_omp): Remove, forcing the pass manager to always run the | |
21343 | pass and always set PROP_gimple_lomp. | |
21344 | (pass_lower_omp): Remove gate function. | |
21345 | * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide | |
21346 | PROP_trees. Instead, require it. | |
21347 | * ipa-cp.c (pass_ipa_cp): Likewise. | |
21348 | * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg. | |
21349 | (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem. | |
21350 | * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg | |
21351 | and PROP_gimple_leh. | |
21352 | ||
5006671f RG |
21353 | 2009-04-03 Richard Guenther <rguenther@suse.de> |
21354 | ||
21355 | PR middle-end/13146 | |
21356 | PR tree-optimization/23940 | |
21357 | PR tree-optimization/33237 | |
21358 | PR middle-end/33974 | |
21359 | PR middle-end/34093 | |
21360 | PR tree-optimization/36201 | |
21361 | PR tree-optimization/36230 | |
21362 | PR tree-optimization/38049 | |
21363 | PR tree-optimization/38207 | |
21364 | PR tree-optimization/38230 | |
21365 | PR tree-optimization/38301 | |
21366 | PR tree-optimization/38585 | |
21367 | PR middle-end/38895 | |
21368 | PR tree-optimization/38985 | |
21369 | PR tree-optimization/39299 | |
21370 | * tree-ssa-structalias.h: Remove. | |
21371 | * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p. | |
21372 | (NULL_DEF_OPERAND_P): Make of type def_operand_p. | |
21373 | (struct vuse_element_d): Remove. | |
21374 | (struct vuse_vec_d): Likewise. | |
21375 | (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC, | |
21376 | VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR, | |
21377 | SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR, | |
21378 | VUSE_ELEMENT_VAR): Likewise. | |
21379 | (struct voptype_d): Likewise. | |
21380 | (NUM_VOP_FREE_BUCKETS): Likewise. | |
21381 | (struct ssa_operands): Remove vop_free_buckets and mpt_table fields. | |
21382 | (struct stmt_operands_d): Remove. | |
21383 | (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT, | |
21384 | VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP, | |
21385 | VDEF_NUM, VDEF_VECT): Likewise. | |
21386 | (copy_virtual_operands): Remove. | |
21387 | (operand_build_cmp): Likewise. | |
21388 | (create_ssa_artificial_load_stmt): Likewise. | |
21389 | (enum ssa_op_iter_type): Remove ssa_op_iter_vdef. | |
21390 | (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm | |
21391 | vuse_index and mayuse_index members. Pack and move done and iter_type | |
21392 | members to the front. | |
21393 | (SSA_OP_VMAYUSE): Remove. | |
21394 | (SSA_OP_VIRTUAL_USES): Adjust. | |
21395 | (FOR_EACH_SSA_VDEF_OPERAND): Remove. | |
21396 | (unlink_stmt_vdef): Declare. | |
21397 | (add_to_addressable_set): Remove. | |
21398 | * tree-vrp.c (stmt_interesting_for_vrp): Adjust. | |
21399 | (vrp_visit_stmt): Likewise. | |
21400 | * doc/tree-ssa.texi (Alias analysis): Update. | |
21401 | * doc/invoke.texi (max-aliased-vops): Remove docs. | |
21402 | (avg-aliased-vops): Likewise. | |
21403 | * tree-into-ssa.c (syms_to_rename): Remove. | |
21404 | (need_to_update_vops_p): Likewise. | |
21405 | (need_to_initialize_update_ssa_p): Rename to ... | |
21406 | (update_ssa_initialized_fn): ... this. Track function we are | |
21407 | initialized for. | |
21408 | (symbol_marked_for_renaming): Simplify. | |
21409 | (add_new_name_mapping): Do not set need_to_update_vops_p. | |
21410 | (dump_currdefs): Use SYMS_TO_RENAME. | |
21411 | (rewrite_update_stmt): Always walk all uses/defs. | |
21412 | (dump_update_ssa): Adjust. | |
21413 | (init_update_ssa): Take function argument. Track what we are | |
21414 | initialized for. | |
21415 | (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn. | |
21416 | (create_new_def_for): Initialize for cfun, assert we are initialized | |
21417 | for cfun. | |
21418 | (mark_sym_for_renaming): Simplify. | |
21419 | (mark_set_for_renaming): Do not initialize update-ssa. | |
21420 | (need_ssa_update_p): Simplify. Take function argument. | |
21421 | (name_mappings_registered_p): Assert we ask for the correct function. | |
21422 | (name_registered_for_update_p): Likewise. | |
21423 | (ssa_names_to_replace): Likewise. | |
21424 | (release_ssa_name_after_update_ssa): Likewise. | |
21425 | (update_ssa): Likewise. Use SYMS_TO_RENAME. | |
21426 | (dump_decl_set): Do not print a newline. | |
21427 | (debug_decl_set): Do it here. | |
21428 | (dump_update_ssa): And here. | |
21429 | * tree-ssa-loop-im.c (move_computations): Adjust. | |
21430 | (movement_possibility): Likewise. | |
21431 | (determine_max_movement): Likewise. | |
21432 | (gather_mem_refs_stmt): Likewise. | |
21433 | * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG | |
21434 | or NAME_MEMORY_TAG. | |
21435 | * tree-complex.c (update_all_vops): Remove. | |
21436 | (expand_complex_move): Adjust. | |
21437 | * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE. | |
21438 | Simplify test for memory referencing statement. Exclude | |
21439 | non-invariant ADDR_EXPRs. | |
21440 | * tree-pretty-print.c (dump_generic_node): Do not handle memory tags. | |
21441 | * tree-loop-distribution.c (generate_memset_zero): Adjust. | |
21442 | (rdg_flag_uses): Likewise. | |
21443 | * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag | |
21444 | related code. | |
21445 | (tree_optimize_tail_calls_1): Also split the | |
21446 | edge from the entry block if we have degenerate PHI nodes in | |
21447 | the first basic block. | |
21448 | * tree.c (init_ttree): Remove memory-tag related code. | |
21449 | (tree_code_size): Likewise. | |
21450 | (tree_node_structure): Likewise. | |
21451 | (build7_stat): Re-write to be build6_stat. | |
21452 | * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove. | |
21453 | (SSA_VAR_P): Adjust. | |
21454 | (struct tree_memory_tag): Remove. | |
21455 | (struct tree_memory_partition_tag): Likewise. | |
21456 | (union tree_node): Adjust. | |
21457 | (build7): Re-write to be build6. | |
21458 | * tree-pass.h (pass_reset_cc_flags): Remove. | |
21459 | (TODO_update_address_taken): New flag. | |
21460 | (pass_simple_dse): Remove. | |
21461 | * ipa-cp.c (ipcp_update_callgraph): Update SSA form. | |
21462 | * params.h (MAX_ALIASED_VOPS): Remove. | |
21463 | (AVG_ALIASED_VOPS): Likewise. | |
21464 | * omp-low.c (expand_omp_taskreg): Update SSA form. | |
21465 | * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs | |
21466 | aliases the lhs in a copy stmt. | |
21467 | * tree-ssa-dse.c (struct address_walk_data): Remove. | |
21468 | (memory_ssa_name_same): Likewise. | |
21469 | (memory_address_same): Likewise. | |
21470 | (get_kill_of_stmt_lhs): Likewise. | |
21471 | (dse_possible_dead_store_p): Simplify, use the oracle. Handle | |
21472 | unused stores. Look through PHI nodes into post-dominated regions. | |
21473 | (dse_optimize_stmt): Simplify. Properly remove stores. | |
21474 | (tree_ssa_dse): Compute dominators. | |
21475 | (execute_simple_dse): Remove. | |
21476 | (pass_simple_dse): Likewise. | |
21477 | * ipa-reference.c (scan_stmt_for_static_refs): Open-code | |
21478 | gimple_loaded_syms and gimple_stored_syms computation. | |
21479 | * toplev.c (dump_memory_report): Dump alias and pta stats. | |
21480 | * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify. | |
21481 | (vn_reference_eq): Likewise. | |
21482 | (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec, | |
21483 | copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt, | |
21484 | valueize_vuses): Remove. | |
21485 | (get_def_ref_stmt_vuses): Simplify. Rename to ... | |
21486 | (get_def_ref_stmt_vuse): ... this. | |
21487 | (vn_reference_lookup_2): New function. | |
21488 | (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for | |
21489 | walking equivalent vuses. Simplify. | |
21490 | (vn_reference_lookup): Likewise. | |
21491 | (vn_reference_insert): Likewise. | |
21492 | (vn_reference_insert_pieces): Likewise. | |
21493 | (visit_reference_op_call): Simplify. | |
21494 | (visit_reference_op_load): Likewise. | |
21495 | (visit_reference_op_store): Likewise. | |
21496 | (init_scc_vn): Remove shared_lookup_vuses initialization. | |
21497 | (free_scc_vn): Remove shared_lookup_vuses freeing. | |
21498 | (sort_vuses, sort_vuses_heap): Remove. | |
21499 | (get_ref_from_reference_ops): Export. | |
21500 | * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses | |
21501 | vector with single vuse pointer. | |
21502 | (vn_reference_lookup_pieces, vn_reference_lookup, | |
21503 | vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes. | |
21504 | (shared_vuses_from_stmt): Remove. | |
21505 | (get_ref_from_reference_ops): Declare. | |
21506 | * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust. | |
21507 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove | |
21508 | memory-tag related code. | |
21509 | * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code. | |
21510 | (likely_value): Add comment, skip static-chain of call statements. | |
21511 | (surely_varying_stmt_p): Adjust. | |
21512 | (gimplify_and_update_call_from_tree): Likewise. | |
21513 | (execute_fold_all_builtins): Do not rebuild alias info. | |
21514 | (gimplify_and_update_call_from_tree): Properly update VOPs. | |
21515 | * tree-ssa-loop-ivopts.c (get_ref_tag): Remove. | |
21516 | (copy_ref_info): Remove memory-tag related code. | |
21517 | * tree-call-cdce.c (tree_call_cdce): Rename the VOP. | |
21518 | * ipa-pure-const.c (check_decl): Remove memory-tag related code. | |
21519 | (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms | |
21520 | computation. | |
21521 | * tree-ssa-dom.c (gimple_p): Remove typedef. | |
21522 | (eliminate_redundant_computations): Adjust. | |
21523 | (record_equivalences_from_stmt): Likewise. | |
21524 | (avail_expr_hash): Likewise. | |
21525 | (avail_expr_eq): Likewise. | |
7a715bba | 21526 | * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs. |
5006671f RG |
21527 | (stmt_makes_single_load): Likewise. |
21528 | (stmt_makes_single_store): Likewise. | |
21529 | * tree-ssa-alias.c: Rewrite completely. | |
21530 | (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats, | |
21531 | debug_mem_sym_stats, dump_mem_sym_stats_for_var, | |
21532 | debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt, | |
21533 | delete_mem_ref_stats, create_tag_raw, dump_points_to_info, | |
21534 | dump_may_aliases_for, debug_may_aliases_for, new_type_alias): | |
21535 | Remove public functions. | |
21536 | (pass_reset_cc_flags): Remove. | |
21537 | (pass_build_alias): Move ... | |
21538 | * tree-ssa-structalias.c (pass_build_alias): ... here. | |
21539 | * tree-ssa-alias.c (may_be_aliased): Move ... | |
21540 | * tree-flow-inline.h (may_be_aliased): ... here. | |
21541 | tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs, | |
21542 | count_uses_and_derefs): Move ... | |
21543 | * gimple.c: ... here. | |
21544 | * gimple.h (count_uses_and_derefs): Declare. | |
21545 | * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p, | |
21546 | ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p, | |
21547 | same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p, | |
21548 | indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p, | |
21549 | ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p, | |
21550 | call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until, | |
21551 | get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs): | |
21552 | New functions. | |
21553 | * tree-dfa.c (refs_may_alias_p): Move ... | |
21554 | * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend. | |
21555 | * tree-ssa-alias.h: New file. | |
21556 | * tree-ssa-sink.c (is_hidden_global_store): Adjust. | |
21557 | (statement_sink_location): Likewise. | |
21558 | * opts.c (decode_options): Do not adjust max-aliased-vops or | |
21559 | avg-aliased-vops values. | |
21560 | * timevar.def (TV_TREE_MAY_ALIAS): Remove. | |
21561 | (TV_CALL_CLOBBER): Likewise. | |
21562 | (TV_FLOW_SENSITIVE): Likewise. | |
21563 | (TV_FLOW_INSENSITIVE): Likewise. | |
21564 | (TV_MEMORY_PARTITIONING): Likewise. | |
21565 | (TV_ALIAS_STMT_WALK): New timevar. | |
21566 | * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust. | |
21567 | * tree-ssa-address.c (create_mem_ref_raw): Use build6. | |
21568 | (get_address_description): Remove memory-tag related code. | |
21569 | * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust. | |
21570 | * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove. | |
21571 | * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs | |
21572 | and immediate uses in statements. Document. | |
21573 | * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust. | |
21574 | (dump_symbols): Remove. | |
21575 | (dump_gimple_mem_ops): Do not dump loaded or stored syms. | |
21576 | * alias.c (get_deref_alias_set): New function split out from ... | |
21577 | (get_alias_set): ... here. | |
21578 | * alias.h (get_deref_alias_set): Declare. | |
21579 | * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused | |
21580 | type parameter. Remove restrict pointer handling. Create a | |
21581 | ref-all pointer in case type-based alias sets do not conflict. | |
21582 | (vect_analyze_data_refs): Remove SMT related code. | |
21583 | * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert. | |
21584 | (vectorizable_load): Likewise. | |
21585 | * tree-data-ref.h (struct dr_alias): Remove symbol_tag field. | |
21586 | (DR_SYMBOL_TAG, DR_VOPS): Remove. | |
21587 | * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle. | |
21588 | Ignore vops and SMTs. | |
21589 | (dr_analyze_alias): Likewise.. | |
21590 | (free_data_ref): Likewise. | |
21591 | (create_data_ref): Likewise. | |
21592 | (analyze_all_data_dependences): Likewise. | |
21593 | (get_references_in_stmt): Adjust. | |
21594 | * tree-flow-inline.h (gimple_aliases_computed_p, | |
21595 | gimple_addressable_vars, gimple_call_clobbered_vars, | |
21596 | gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition, | |
21597 | factoring_name_p, mark_call_clobbered, clear_call_clobbered, | |
21598 | compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag, | |
21599 | gimple_mem_ref_stats): Remove. | |
21600 | (gimple_vop): New function. | |
21601 | (op_iter_next_use): Remove vuses and mayuses cases. | |
21602 | (op_iter_next_def): Remove vdefs case. | |
21603 | (op_iter_next_tree): Remove vuses, mayuses and vdefs cases. | |
21604 | (clear_and_done_ssa_iter): Do not set removed fields. | |
21605 | (op_iter_init): Likewise. Skip vuse and/or vdef if requested. | |
21606 | Assert we are not iterating over vuses or vdefs if not also | |
21607 | iterating over uses or defs. | |
21608 | (op_iter_init_use): Likewise. | |
21609 | (op_iter_init_def): Likewise. | |
21610 | (op_iter_next_vdef): Remove. | |
21611 | (op_iter_next_mustdef): Likewise. | |
21612 | (op_iter_init_vdef): Likewise. | |
21613 | (compare_ssa_operands_equal): Likewise. | |
21614 | (link_use_stmts_after): Handle vuse operand. | |
21615 | (is_call_used): Use is_call_clobbered. | |
21616 | (is_call_clobbered): Global variables are always call clobbered, | |
21617 | query the call-clobbers bitmap. | |
21618 | (mark_call_clobbered): Ignore global variables. | |
21619 | (clear_call_clobbered): Likewise. | |
21620 | * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust | |
21621 | virtual operands sanity check. | |
21622 | * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG): | |
21623 | Remove. | |
21624 | (TARGET_MEM_REF): Remove TMR_TAG operand. | |
21625 | * tree-dfa.c (add_referenced_var): Initialize call-clobber state. | |
21626 | Remove call-clobber related code. | |
21627 | (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag. | |
21628 | (dump_variable): Do not dump SMTs, memory stats, may-aliases or | |
21629 | partitions or escape reason. | |
21630 | (get_single_def_stmt, get_single_def_stmt_from_phi, | |
21631 | get_single_def_stmt_with_phi): Remove. | |
21632 | (dump_referenced_vars): Tidy. | |
21633 | (get_ref_base_and_extent): Allow bare decls. | |
21634 | (collect_dfa_stats): Adjust. | |
21635 | * graphite.c (rename_variables_in_stmt): Adjust. | |
21636 | (graphite_copy_stmts_from_block): Likewise. | |
21637 | (translate_clast): Likewise. | |
21638 | * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap. | |
21639 | (EXPR_DIES): New. | |
21640 | (translate_vuse_through_block): Use the oracle. | |
21641 | (phi_translate_1): Adjust. | |
21642 | (value_dies_in_block_x): Use the oracle. Cache the outcome | |
21643 | in EXPR_DIES. | |
21644 | (valid_in_sets): Check if the VUSE for | |
21645 | a REFERENCE is available. | |
21646 | (eliminate): Do not remove stmts during elimination, | |
21647 | instead queue and remove them afterwards. | |
21648 | (do_pre): Do not rebuild alias info. | |
21649 | (pass_pre): Run TODO_rebuild_alias before PRE. | |
21650 | * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code. | |
21651 | * tree-sra.c (sra_walk_function): Use gimple_references_memory_p. | |
21652 | (mark_all_v_defs_stmt): Remove. | |
21653 | (mark_all_v_defs_seq): Adjust. | |
21654 | (sra_replace): Likewise. | |
21655 | (scalarize_use): Likewise. | |
21656 | (scalarize_copy): Likewise. | |
21657 | (scalarize_init): Likewise. | |
21658 | (scalarize_ldst): Likewise. | |
21659 | (todoflags): Remove. | |
21660 | (tree_sra): Do not rebuild alias info. | |
21661 | (tree_sra_early): Adjust. | |
21662 | (pass_sra): Run TODO_update_address_taken before SRA. | |
21663 | * tree-predcom.c (set_alias_info): Remove. | |
21664 | (prepare_initializers_chain): Do not call it. | |
21665 | (mark_virtual_ops_for_renaming): Adjust. | |
21666 | (mark_virtual_ops_for_renaming_list): Remove. | |
21667 | (initialize_root_vars): Adjust. | |
21668 | (initialize_root_vars_lm): Likewise. | |
21669 | (prepare_initializers_chain): Likewise. | |
21670 | * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code. | |
21671 | (may_propagate_copy_into_stmt): Likewise. | |
21672 | (merge_alias_info): Do nothing for now. | |
21673 | (propagate_tree_value_into_stmt): Adjust. | |
21674 | (stmt_may_generate_copy): Likewise. | |
21675 | * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do | |
21676 | not mark symbols for renaming. | |
21677 | (forward_propagate_addr_expr): Match up push/pop_stmt_changes | |
21678 | with the same statement, make sure to update the new pointed-to one. | |
21679 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy | |
21680 | call statements, do not mark symbols for renaming. | |
21681 | (mark_operand_necessary): Dump something. | |
21682 | (ref_may_be_aliased): New function. | |
21683 | (mark_aliased_reaching_defs_necessary_1): New helper function. | |
21684 | (mark_aliased_reaching_defs_necessary): Likewise. | |
21685 | (mark_all_reaching_defs_necessary_1): Likewise. | |
21686 | (mark_all_reaching_defs_necessary): Likewise. | |
21687 | (propagate_necessity): Do not process virtual PHIs. For | |
21688 | non-aliased loads mark all reaching definitions as necessary. | |
21689 | For aliased loads and stores mark the immediate dominating | |
21690 | aliased clobbers as necessary. | |
21691 | (visited): New global static. | |
21692 | (perform_tree_ssa_dce): Free visited bitmap after propagating | |
21693 | necessity. | |
21694 | (remove_dead_phis): Perform simple dead virtual PHI removal. | |
21695 | (remove_dead_stmt): Properly unlink virtual operands when | |
21696 | removing stores. | |
21697 | (eliminate_unnecessary_stmts): Schedule PHI removal after | |
21698 | stmt removal. | |
21699 | * tree-ssa-ter.c (is_replaceable_p): Adjust. | |
21700 | (process_replaceable): Likewise. | |
21701 | (find_replaceable_in_bb): Likewise. | |
21702 | * tree-ssa.c (verify_ssa_name): Verify all VOPs are | |
21703 | based on the single gimple vop. | |
21704 | (verify_flow_insensitive_alias_info): Remove. | |
21705 | (verify_flow_sensitive_alias_info): Likewise. | |
21706 | (verify_call_clobbering): Likewise. | |
21707 | (verify_memory_partitions): Likewise. | |
21708 | (verify_alias_info): Likewise. | |
21709 | (verify_ssa): Adjust.. | |
21710 | (execute_update_addresses_taken): Export. Update SSA | |
21711 | manually. Optimize only when optimizing. Use a local bitmap. | |
21712 | (pass_update_address_taken): Remove TODO_update_ssa, add | |
21713 | TODO_dump_func. | |
21714 | (pass_update_address_taken): Just use TODO_update_address_taken. | |
21715 | (init_tree_ssa): Do not initialize addressable_vars. | |
21716 | (verify_ssa): Verify new VUSE / VDEF properties. | |
21717 | Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT. | |
21718 | Do not call verify_alias_info. | |
21719 | (delete_tree_ssa): Clear the VUSE, VDEF operands. | |
21720 | Do not free the loaded and stored syms bitmaps. Reset the escaped | |
21721 | and callused solutions. Do not free addressable_vars. | |
21722 | Remove memory-tag related code. | |
21723 | (warn_uninitialized_var): Aliases are always available. | |
21724 | * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust. | |
21725 | * lambda-code.c (can_put_in_inner_loop): Adjust. | |
21726 | (can_put_after_inner_loop): Likewise. | |
21727 | (perfect_nestify): Likewise. | |
21728 | * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust. | |
21729 | (vect_gen_widened_results_half): Remove CALL_EXPR handling. | |
21730 | (vectorizable_conversion): Do not mark symbols for renaming. | |
21731 | * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF. | |
21732 | (expand_call_inline): Unlink the calls virtual operands before | |
21733 | replacing it. | |
21734 | (tree_function_versioning): Do not call update_ssa if we are not | |
21735 | updating clones. Simplify. | |
21736 | * tree-ssa-phiprop.c (phivn_valid_p): Adjust. | |
21737 | (propagate_with_phi): Likewise.. | |
21738 | * tree-outof-ssa.c (create_temp): Remove memory tag and call | |
21739 | clobber code. Assert we are not aliased or global. | |
21740 | * tree-flow.h: Include tree-ssa-alias.h | |
21741 | (enum escape_type): Remove. | |
21742 | (struct mem_sym_stats_d): Likewise. | |
21743 | (struct mem_ref_stats_d): Likewise. | |
21744 | (struct gimple_df): Add vop member. Remove global_var, | |
21745 | call_clobbered_vars, call_used_vars, addressable_vars, | |
21746 | aliases_compted_p and mem_ref_stats members. Add syms_to_rename, | |
21747 | escaped and callused members. | |
21748 | (struct ptr_info_def): Remove all members, add points-to solution | |
21749 | member pt. | |
21750 | (struct var_ann_d): Remove in_vuse_list, in_vdef_list, | |
21751 | call_clobbered, escape_mask, mpt and symbol_mem_tag members. | |
21752 | * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h. | |
21753 | (tree-ssa-structalias.o): Remove tree-ssa-structalias.h. | |
21754 | (tree-ssa-alias.o): Likewise. | |
21755 | (toplev.o): Add tree-ssa-alias.h | |
21756 | (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h. | |
21757 | * gimple.c (gimple_set_bb): Fix off-by-one error. | |
21758 | (is_gimple_reg): Do not handle memory tags. | |
21759 | (gimple_copy): Also copy virtual operands. | |
21760 | Delay updating the statement. Do not reset loaded and stored syms. | |
21761 | (gimple_set_stored_syms): Remove. | |
21762 | (gimple_set_loaded_syms): Likewise. | |
21763 | (gimple_call_copy_skip_args): Copy the virtual operands | |
21764 | and mark the new statement modified. | |
21765 | * tree-ssa-structalias.c (may_alias_p): Remove. | |
21766 | (set_uids_in_ptset): Take the alias set to prune with as | |
21767 | parameter. Fold in the alias test of may_alias_p. | |
21768 | (compute_points_to_sets): Compute whether a ptr is dereferenced | |
21769 | in a local sbitmap. | |
21770 | (process_constraint): Deal with &ANYTHING on the lhs, reject all | |
21771 | other ADDRESSOF constraints on the lhs. | |
21772 | (get_constraint_for_component_ref): Assert that we don't get | |
21773 | ADDRESSOF constraints from the base of the reference. | |
21774 | Properly generate UNKNOWN_OFFSET for DEREF if needed. | |
21775 | (struct variable_info): Remove collapsed_to member. | |
21776 | (get_varinfo_fc): Remove. | |
21777 | (new_var_info): Do not set collapsed_to. | |
21778 | (dump_constraint): Do not follow cycles. | |
21779 | (dump_constraint_graph): Likewise. | |
21780 | (build_pred_graph): Likewise. | |
21781 | (build_succ_graph): Likewise. | |
21782 | (rewrite_constraints): Likewise. | |
21783 | (do_simple_structure_copy): Remove. | |
21784 | (do_rhs_deref_structure_copy): Remove. | |
21785 | (do_lhs_deref_structure_copy): Remove. | |
21786 | (collapse_rest_of_var): Remove. | |
21787 | (do_structure_copy): Re-implement. | |
21788 | (pta_stats): New global variable. | |
21789 | (dump_pta_stats): New function. | |
21790 | (struct constraint_expr): Make offset signed. | |
21791 | (UNKNOWN_OFFSET): Define special value. | |
21792 | (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN. | |
21793 | (solution_set_expand): New helper function split out from ... | |
21794 | (do_sd_constraint): ... here. | |
21795 | (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets. | |
21796 | (do_ds_constraint): Likewise. | |
21797 | (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED | |
21798 | and CALLUSED = *CALLUSED. | |
21799 | (set_union_with_increment): Make inc argument signed. | |
21800 | (type_safe): Remove. | |
21801 | (get_constraint_for_ptr_offset): Handle unknown and negative | |
21802 | constant offsets. | |
21803 | (first_vi_for_offset): Handle offsets before start. Bail | |
21804 | out early for offsets beyond the variable extent. | |
21805 | (first_or_preceding_vi_for_offset): New function. | |
21806 | (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint. | |
21807 | Together with ESCAPED = *ESCAPED this properly computes reachability. | |
21808 | (find_what_var_points_to): New function. | |
21809 | (find_what_p_points_to): Implement in terms of find_what_var_points_to. | |
21810 | (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global, | |
21811 | pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1, | |
21812 | pt_solutions_intersect): New functions. | |
21813 | (compute_call_used_vars): Remove. | |
21814 | (compute_may_aliases): New main entry into PTA computation. | |
21815 | * gimple.h (gimple_p): New typedef. | |
21816 | (struct gimple_statement_base): Remove references_memory_p. | |
21817 | (struct gimple_statement_with_memory_ops_base): Remove | |
21818 | vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse | |
21819 | members. | |
21820 | (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops, | |
21821 | gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms, | |
21822 | gimple_set_references_memory): Remove. | |
21823 | (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef, | |
21824 | gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef): | |
21825 | New functions. | |
21826 | * tree-cfg.c (move_block_to_fn): Fix off-by-one error. | |
21827 | (verify_expr): Allow RESULT_DECL. | |
21828 | (gimple_duplicate_bb): Do not copy virtual operands. | |
21829 | (gimple_duplicate_sese_region): Adjust. | |
21830 | (gimple_duplicate_sese_tail): Likewise. | |
21831 | (mark_virtual_ops_in_region): Remove. | |
21832 | (move_sese_region_to_fn): Do not call it. | |
21833 | * passes.c (init_optimization_passes): Remove pass_reset_cc_flags | |
21834 | and pass_simple_dse. | |
21835 | (execute_function_todo): Handle TODO_update_address_taken, | |
21836 | call execute_update_addresses_taken for TODO_rebuild_alias. | |
21837 | (execute_todo): Adjust. | |
21838 | (execute_one_pass): Init dump files early. | |
21839 | * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars | |
21840 | call-clobbered. | |
21841 | (create_general_new_stmt): Clear vops. | |
21842 | * tree-ssa-reassoc.c (get_rank): Adjust. | |
21843 | * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark | |
21844 | symbols for renaming. | |
21845 | * params.def (PARAM_MAX_ALIASED_VOPS): Remove. | |
21846 | (PARAM_AVG_ALIASED_VOPS): Likewise. | |
21847 | * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME. | |
21848 | (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps. | |
7a715bba | 21849 | * tree-ssa-operands.c: Simplify for new virtual operand representation. |
5006671f RG |
21850 | (operand_build_cmp, copy_virtual_operands, |
21851 | create_ssa_artificial_load_stmt, add_to_addressable_set, | |
21852 | gimple_add_to_addresses_taken): Remove public functions. | |
21853 | (unlink_stmt_vdef): New function. | |
21854 | ||
457d1d00 AM |
21855 | 2009-04-03 Alan Modra <amodra@bigpond.net.au> |
21856 | ||
21857 | * config.gcc (powerpc-*-linux*): Merge variants. | |
21858 | ||
e19da24c | 21859 | 2009-04-02 Chao-ying Fu <fu@mips.com> |
60839f5d | 21860 | James Grosbach <james.grosbach@microchip.com> |
e19da24c CF |
21861 | |
21862 | * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc, | |
21863 | num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset, | |
21864 | cop0_sp_offset. | |
21865 | (machine_function): Add interrupt_handler_p, use_shadow_register_set_p, | |
21866 | keep_interrupts_masked_p, use_debug_exception_return_p. | |
21867 | (mips_attribute_table): Add interrupt, use_shadow_register_set, | |
21868 | keep_interrupts_masked, use_debug_exception_return. | |
21869 | (mips_interrupt_type_p, mips_use_shadow_register_set_p, | |
21870 | mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p): | |
21871 | New functions. | |
21872 | (mips_function_ok_for_sibcall): Return false for interrupt handlers. | |
21873 | (mips_print_operand): Process COP0 registers to print $0 .. $31 | |
21874 | correctly for GAS to process. | |
21875 | (mips_interrupt_extra_call_saved_reg_p): New function. | |
21876 | (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check | |
21877 | extra registers. | |
21878 | (mips_cfun_might_clobber_call_saved_reg_p): Likewise. | |
21879 | (mips_compute_frame_info): Add supports for interrupt context that | |
21880 | includes doubleword accumulators and COP0 registers. | |
21881 | (mips_for_each_saved_acc): New function. | |
21882 | (mips_for_each_saved_gpr_and_fpr): Change the function name from | |
21883 | mips_for_each_saved_reg. | |
21884 | (mips_save_reg): Save accumulators. | |
21885 | (mips_kernel_reg_p): A new for_each_rtx callback. | |
21886 | (mips_expand_prologue): Support interrupt handlers. | |
21887 | (mips_restore_reg): Restore accumulators. | |
21888 | (mips_expand_epilogue): Support interrupt handlers. | |
21889 | (mips_can_use_return_insn): Return false for interrupt handlers. | |
21890 | (mips_epilogue_uses): New function. | |
21891 | * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI, | |
21892 | UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC. | |
21893 | (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr, | |
21894 | cop0_move): New instructions. | |
21895 | * config/mips/mips-protos.h (mips_epilogue_uses): Declare. | |
21896 | * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New | |
21897 | defines. | |
21898 | (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM): | |
21899 | New defines. | |
21900 | (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines. | |
21901 | (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For | |
21902 | interrupt handlers, we use K0 as the temporary register. | |
21903 | (EPILOGUE_USES): Change to a function call. | |
21904 | * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt | |
21905 | handlers, we use K0 as the temporary register. | |
2ba9daa7 | 21906 | |
e19da24c CF |
21907 | * doc/extend.texi (Function Attributes): Document interrupt, |
21908 | use_shadow_register_set, keep_interrupts_masked, | |
21909 | use_debug_exception_return for MIPS attributes. | |
21910 | ||
aa1ca044 AM |
21911 | 2009-04-03 Alan Modra <amodra@bigpond.net.au> |
21912 | ||
21913 | * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file. | |
21914 | Remove a number of t-files from tmake_file. | |
21915 | * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype. | |
21916 | * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define. | |
21917 | * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set | |
21918 | target_prototype, not TARGET_PROTOTYPE. | |
21919 | (LINK_OS_GNU_SPEC): Define. | |
21920 | * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S | |
21921 | and darwin-ldoubdle.c. | |
21922 | ||
14fdc613 MM |
21923 | 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com> |
21924 | ||
21925 | PR driver/39293 | |
21926 | * gcc.c (save_temps_flag): Add support for -save-temps=obj. | |
21927 | (cpp_options): Ditto. | |
21928 | (default_compilers): Ditto. | |
21929 | (display_help): Ditto. | |
21930 | (process_command): Ditto. | |
21931 | (do_spec_1): Ditto. | |
21932 | (set_input): Use lbasename instead of duplicate code. | |
21933 | (save_temps_prefix): New static for -save-temps=obj. | |
21934 | (save_temps_length): Ditto. | |
2ba9daa7 | 21935 | |
14fdc613 MM |
21936 | * doc/invoke.texi (-save-temps=obj): Document new variant to |
21937 | -save-temps switch. | |
21938 | ||
d3aa398e JL |
21939 | 2009-04-02 Jeff Law <law@redhat.com> |
21940 | ||
21941 | * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" | |
21942 | variable. | |
21943 | ||
83f0ccb8 L |
21944 | 2009-04-02 H.J. Lu <hongjiu.lu@intel.com> |
21945 | ||
21946 | * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2. | |
21947 | * configure: Regenerated. | |
21948 | ||
dcb6e951 RAE |
21949 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21950 | ||
21951 | * c-decl.c (merge_decls): Make sure newdecl and olddecl don't | |
21952 | share the argument list. | |
21953 | ||
d85478c2 RAE |
21954 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21955 | ||
21956 | Merge | |
21957 | ||
21958 | 2009-02-12 Diego Novillo <dnovillo@google.com> | |
21959 | ||
83f0ccb8 L |
21960 | * varpool.c (debug_varpool): New. |
21961 | * cgraph.h (debug_varpool): Declare. | |
d85478c2 | 21962 | |
34f42a49 JH |
21963 | 2009-04-02 Jan Hubicka <jh@suse.cz> |
21964 | ||
21965 | * passes.c (init_optimization_passes): Remove two copies of ehcleanup | |
21966 | pass. | |
21967 | ||
a4747b4a L |
21968 | 2009-04-02 H.J. Lu <hongjiu.lu@intel.com> |
21969 | ||
21970 | * config/i386/i386.c (ix86_abi): Move initialization to ... | |
21971 | (override_options): Here. | |
21972 | ||
63a9de54 CB |
21973 | 2009-04-02 Christian Bruel <christian.bruel@st.com> |
21974 | ||
21975 | * config/sh/sh.c (sh_dwarf_register_span): New function. | |
21976 | (TARGET_DWARF_REGISTER_SPAN): Define. | |
21977 | * config/sh/sh-protos.h (sh_dwarf_register_span): Declare. | |
2ba9daa7 | 21978 | |
2f0fa28e IR |
21979 | 2009-04-02 Ira Rosen <irar@il.ibm.com> |
21980 | ||
21981 | PR tree-optimization/39595 | |
2ba9daa7 | 21982 | * tree-vect-slp.c (vect_build_slp_tree): Check that the size of |
2f0fa28e IR |
21983 | interleaved loads group is not greater than the SLP group size. |
21984 | ||
bbf7ce11 RAE |
21985 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21986 | ||
21987 | * builtins.c (is_builtin_name): New. | |
21988 | (called_as_built_in): Use is_builtin_name. | |
21989 | * tree.h (is_builtin_name): New. | |
21990 | * varasm.c (incorporeal_function_p): Use is_builtin_name | |
21991 | ||
47e4dfcf AS |
21992 | 2009-04-02 Andrew Stubbs <ams@codesourcery.com> |
21993 | ||
21994 | * config/sh/linux-unwind.h: Disable when inhibit_libc is defined. | |
21995 | ||
d0940d56 DS |
21996 | 2009-04-02 Dodji Seketeli <dodji@redhat.com> |
21997 | ||
21998 | PR c++/26693 | |
532bfb0a | 21999 | * c-decl.c (clone_underlying_type): Move this ... |
d0940d56 DS |
22000 | * c-common.c (set_underlying_type): ... here. |
22001 | Also, make sure the function properly sets TYPE_STUB_DECL() on | |
22002 | the newly created typedef variant type. | |
22003 | * c-common.h (is_typedef_decl, set_underlying_type): Declare ... | |
7a715bba UB |
22004 | * c-common.c (is_typedef_decl, set_underlying_type): ... new entry |
22005 | points. | |
d0940d56 | 22006 | |
bf1cbdc6 RG |
22007 | 2009-04-02 Richard Guenther <rguenther@suse.de> |
22008 | ||
22009 | PR tree-optimization/37221 | |
22010 | * tree-flow.h (degenerate_phi_result): Declare. | |
22011 | * tree-ssa-dom.c (degenerate_phi_result): Export. | |
22012 | * tree-scalar-evolution.c (analyze_initial_condition): If | |
22013 | the initial condition is defined by a degenerate PHI node | |
22014 | use the degenerate value. | |
22015 | ||
87cfb32c EB |
22016 | 2009-04-01 Eric Botcazou <ebotcazou@adacore.com> |
22017 | ||
22018 | PR rtl-optimization/39588 | |
22019 | * combine.c (merge_outer_ops): Do not set the constant when this | |
22020 | is not necessary. | |
22021 | (simplify_shift_const_1): Do not modify it either in this case. | |
22022 | ||
bbb6eae8 SB |
22023 | 2009-04-01 Steven Bosscher <steven@gcc.gnu.org> |
22024 | ||
22025 | * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1 | |
22026 | tuning is deprecated if -mtune value is set to an Itanium1 variant. | |
22027 | ||
839a3b8a JJ |
22028 | 2009-04-01 Janis Johnson <janis187@us.ibm.com> |
22029 | ||
22030 | PR c/29027 | |
22031 | * c-lex.c (interpret_float): Default (no suffix) is double. | |
22032 | ||
667e8acb XDL |
22033 | 2009-04-1 Xinliang David Li <davidxl@google.com> |
22034 | ||
22035 | * config/i386/i386.c (legitimate_constant_p): Recognize | |
22036 | all one vector constant. | |
22037 | ||
60839f5d | 22038 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22039 | |
60839f5d | 22040 | * config/vax/vax.c: Add #includes to silence warnings. |
c4e75102 MT |
22041 | Change #include order to silence two warnings. |
22042 | ||
60839f5d | 22043 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22044 | |
60839f5d | 22045 | * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit. |
c4e75102 MT |
22046 | (ASM_SPEC): Pass -k to the assembler for PIC code. |
22047 | ||
60839f5d | 22048 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22049 | |
60839f5d EB |
22050 | * config.gcc: Add vax-*-linux* to the switch. |
22051 | * config/vax/linux.h: New file. (TARGET_VERSION, | |
c4e75102 MT |
22052 | TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define. |
22053 | ||
60839f5d | 22054 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22055 | |
60839f5d | 22056 | * config/vax/vax.c (vax_output_int_move, adjacent_operands_p): |
c4e75102 | 22057 | Use predicate macros instead of GET_CODE() == foo. |
60839f5d | 22058 | * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3, |
c4e75102 MT |
22059 | ashlsi3, rotrsi3, <unnamed>): Likewise. |
22060 | ||
60839f5d | 22061 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22062 | |
60839f5d | 22063 | * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi, |
c4e75102 | 22064 | jbbccihi, jbbccisi): Remova trailing whitespace. |
60839f5d EB |
22065 | * config/vax/constraints.md: Likewise. |
22066 | * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise. | |
22067 | * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise. | |
22068 | * config/vax/predicates.md: Likewise. | |
22069 | * config/vax/vax.c (print_operand_address, vax_output_int_move, | |
c4e75102 | 22070 | vax_expand_addsub_di_operands, adjacent_operands_p): Likewise. |
60839f5d EB |
22071 | * config/vax/vax.h: Likewise. |
22072 | * config/vax/vax.md (nonlocal_goto): Likewise. | |
c4e75102 | 22073 | |
60839f5d | 22074 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22075 | |
60839f5d | 22076 | * config/vax/vax.c (vax_float_literal, vax_output_int_move) |
c4e75102 MT |
22077 | (indirectable_address_p, adjacent_operands_p): Add spaces around |
22078 | braces. | |
60839f5d | 22079 | * config/vax/vax-protos.h (adjacent_operands_p): Likewise. |
c4e75102 | 22080 | |
60839f5d | 22081 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22082 | |
60839f5d | 22083 | * config/vax/vax.c (legitimate_constant_address_p, |
c4e75102 MT |
22084 | legitimate_constant_p, indirectable_address_p, nonindexed_address_p, |
22085 | index_term_p, reg_plus_index_p, legitimate_address_p, | |
22086 | vax_mode_dependent_address_p): Update comments to match functions | |
22087 | modified by the recent int->bool conversion. | |
22088 | ||
60839f5d | 22089 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22090 | |
60839f5d EB |
22091 | * config/vax/builtins.md: Update copyright message. |
22092 | * config/vax/constraints.md: Likewise. | |
22093 | * config/vax/netbsd-elf.h: Likewise. | |
22094 | * config/vax/predicates.md: Likewise. | |
22095 | * config/vax/vax-protos.h: Likewise. | |
22096 | * config/vax/vax.c: Likewise. | |
22097 | * config/vax/vax.h: Likewise. | |
22098 | * config/vax/vax.md: Likewise. | |
22099 | * config/vax/vax.opt: Likewise. | |
c4e75102 | 22100 | |
60839f5d | 22101 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 22102 | |
60839f5d | 22103 | * config/vax/builtins.md (ffssi2, ffssi2_internal, |
c4e75102 | 22104 | sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention. |
60839f5d EB |
22105 | * config/vax/constraints.md (B, R): Likewise. |
22106 | * config/vax/predicates.md (external_memory_operand, | |
c4e75102 | 22107 | nonimmediate_addsub_di_operand): Likewise. |
60839f5d EB |
22108 | * config/vax/vax.c (vax_output_int_add): Likewise. |
22109 | * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value, | |
c4e75102 MT |
22110 | untyped_call): Likewise. |
22111 | ||
60839f5d | 22112 | 2009-04-01 Matt Thomas <matt@3am-software.com> |
c4e75102 | 22113 | |
7a715bba UB |
22114 | * config/vax/predicates.md: New file. |
22115 | (symbolic_operand, local_symbolic_operand, external_symbolic_operand, | |
c4e75102 MT |
22116 | external_const_operand, nonsymbolic_operand, external_memory_operand, |
22117 | indirect_memory_operand, indexed_memory_operand, | |
22118 | illegal_blk_memory_operand, illegal_addsub_di_memory_operand, | |
22119 | nonimmediate_addsub_di_operand, general_addsub_di_operand): New | |
22120 | predicate. | |
7a715bba UB |
22121 | * config/vax/constraints.md: New file. |
22122 | (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T): | |
22123 | New constraint. | |
22124 | * config/vax/builtins.md: New file. | |
22125 | (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi, | |
22126 | jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi, | |
22127 | jbbccisi): Define. | |
c4e75102 MT |
22128 | * config/vax/vax.opt (mqmath): Add option. |
22129 | * config/vax/vax.md (isfx): Extend with DI. | |
22130 | (VAXintQH, VAXintQHSD): Define. | |
22131 | (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2, | |
22132 | mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>, | |
22133 | and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2, | |
22134 | one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints. | |
22135 | (movdi): Update constraints and use vax_output_int_move(). | |
22136 | (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg, | |
22137 | movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym, | |
22138 | pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>, | |
22139 | nonlocal_goto): New. | |
22140 | (mov<mode>): Extend accepted operand types. | |
22141 | (subdi3_old): Rename from subdi3, change update constraints and use | |
22142 | a new implementation. | |
60839f5d | 22143 | * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space. |
c4e75102 MT |
22144 | (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS, |
22145 | MOVE_RATIO, CLEAR_RATIO): Define. | |
22146 | (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P, | |
22147 | CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete. | |
22148 | (PRINT_OPERAND): Redefine using a function instead of inlined code. | |
60839f5d | 22149 | * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define. |
c4e75102 MT |
22150 | (split_quadword_operands): Make static and really allow variable |
22151 | splitting. | |
22152 | (print_operand_address): Update for PIC generation. | |
22153 | (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract, | |
22154 | indexable_address_p, fixup_mathdi_operand, | |
22155 | vax_expand_addsub_di_operands, adjacent_operands_p): New. | |
22156 | (vax_float_literal, legitimate_constant_p, | |
22157 | indirectable_constant_address_p, index_term_p, | |
22158 | reg_plus_index_p): Return bool instead of int. | |
22159 | (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT | |
22160 | where needed. | |
22161 | (vax_output_int_move, vax_output_int_add): Extend to allow PIC | |
22162 | generation. | |
22163 | (vax_output_conditional_branch): Indent. | |
22164 | (legitimate_constant_address_p, indirectable_constant_address_p, | |
22165 | indirectable_address_p, nonindexed_address_p, legitimate_address_p, | |
22166 | vax_mode_dependent_address_p): Return bool instead of int, update for | |
22167 | PIC generation. | |
22168 | * config/vax/vax-protos.h (legitimate_constant_address_p, | |
22169 | legitimate_constant_p, legitimate_address_p, | |
22170 | vax_mode_dependent_address_p): Change declaration to bool. | |
22171 | (legitimate_pic_operand_p, adjacent_operands_p, print_operand, | |
22172 | vax_expand_addsub_di_operands, vax_output_int_subtract, | |
22173 | vax_output_movmemsi): Declare. | |
22174 | (split_quadword_operands, vax_float_literal): Delete declaration. | |
22175 | * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define. | |
22176 | * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS, | |
22177 | VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT, | |
22178 | ASM_OUTPUT_DWARF_PCREL): Define. | |
22179 | (ASM_SPEC): Change definition to allow PIC generation. | |
22180 | ||
9332c6eb L |
22181 | 2009-04-01 Steve Ellcey <sje@cup.hp.com> |
22182 | ||
22183 | * doc/sourcebuild.texi: Update front-end requirements. | |
22184 | ||
d93e052c JJ |
22185 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
22186 | ||
22187 | PR target/39226 | |
22188 | * config/rs6000/rs6000.md (andsi3_internal5_nomc, | |
22189 | anddi3_internal2_nomc, anddi3_internal3_nomc): Removed. | |
22190 | (booldi3_internal3): Use boolean_or_operator instead of | |
22191 | boolean_operator. | |
22192 | ||
6ccb2a4a JM |
22193 | 2009-04-01 Joseph Myers <joseph@codesourcery.com> |
22194 | ||
22195 | PR c/39605 | |
22196 | * c-decl.c (grokdeclarator): Pedwarn for file-scope array | |
22197 | declarator whose size is not an integer constant expression but | |
22198 | folds to an integer constant, then treat it as a constant | |
22199 | subsequently. | |
22200 | ||
299b87f8 RG |
22201 | 2009-04-01 Richard Guenther <rguenther@suse.de> |
22202 | ||
22203 | * fold-const.c (fold_plusminus_mult_expr): Do not fold | |
22204 | i * 4 + 2 to (i * 2 + 1) * 2. | |
22205 | ||
b85eb797 JJ |
22206 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
22207 | ||
22208 | PR c/37772 | |
22209 | * c-parser.c (c_parser_asm_statement): Skip until close paren and | |
22210 | return if c_parser_asm_string_literal returned NULL. | |
22211 | ||
235e1fe8 NC |
22212 | 2009-04-01 Nick Clifton <nickc@redhat.com> |
22213 | ||
22214 | * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not | |
22215 | already defined. | |
22216 | * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c. | |
22217 | * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the | |
22218 | other typedefs to avoid conflicts with libgcc2.c. Define labels | |
22219 | to gain 16-bit bit-manipulation functions from libgcc2.c and then | |
22220 | include it. | |
22221 | * config/m32c/m32c-lib2-trapv.c: New file. Define labels | |
22222 | to gain 16-bit trapping arithmetic functions from libgcc2.c and | |
22223 | then include it. | |
22224 | ||
d6868399 RAE |
22225 | 2009-04-01 Rafael Avila de Espindola <espindola@google.com> |
22226 | ||
7a715bba UB |
22227 | * varasm.c (default_function_rodata_section): Declare DOT as |
22228 | const char*. | |
d6868399 | 22229 | |
73d21f56 | 22230 | 2009-04-01 Kai Tietz <kai.tietz@onevision.com> |
60839f5d | 22231 | Andrey Galkin <agalkin@hypercom.com> |
73d21f56 KT |
22232 | |
22233 | PR/39492 | |
22234 | * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): | |
22235 | Make object_name unique for each process. | |
22236 | ||
03742a9b JJ |
22237 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
22238 | ||
22239 | PR other/39591 | |
22240 | * omp-low.c (remove_exit_barrier): Don't optimize if there are any | |
22241 | addressable variables in the parallel that could go out of scope while | |
22242 | running queued tasks. | |
22243 | ||
4223ff5f AS |
22244 | 2009-04-01 Anatoly Sokolov <aesok@post.ru> |
22245 | ||
22246 | * config/avr/avr.h (avr_case_values_threshold): Remove declaration. | |
22247 | (CASE_VALUES_THRESHOLD): Redefine. | |
22248 | * config/avr/avr.c (avr_override_options): Remove initialization of | |
22249 | avr_case_values_threshold variable. | |
22250 | (avr_case_values_threshold): Remove variable. Add new function. | |
22251 | * config/avr/avr-protos.h (avr_case_values_threshold): Declare. | |
22252 | * config/avr/avr.opt (mno-tablejump): Remove option. | |
22253 | * doc/invoke.texi (AVR Options): Remove -mno-tablejump. | |
22254 | ||
e893f6f3 DD |
22255 | 2009-04-01 DJ Delorie <dj@redhat.com> |
22256 | ||
22257 | * varasm.c (default_function_rodata_section): Don't assume | |
22258 | anything about where the first '.' in the section name is. | |
22259 | ||
b246d100 AM |
22260 | 2009-04-01 Alan Modra <amodra@bigpond.net.au> |
22261 | ||
22262 | * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant | |
22263 | rs6000_emit_stack_tie. | |
22264 | ||
d3e37a9e ILT |
22265 | 2009-03-31 Ian Lance Taylor <iant@google.com> |
22266 | ||
22267 | * tree-eh.c (tree_remove_unreachable_handlers): Compare | |
22268 | gimple_code with GIMPLE_RESX, not RESX. | |
22269 | ||
c1b61fca JM |
22270 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
22271 | ||
22272 | * c-common.c (c_get_ident): New. | |
7a715bba | 22273 | (c_common_nodes_and_builtins): Call it for type names that may be NULL. |
c1b61fca | 22274 | |
c2d2ad48 BE |
22275 | 2009-04-01 Ben Elliston <bje@au.ibm.com> |
22276 | ||
22277 | * config/rs6000/sysv4.opt (msdata): Improve option description. | |
22278 | ||
13d1a6e7 SE |
22279 | 2009-03-31 Steve Ellcey <sje@cup.hp.com> |
22280 | ||
22281 | * config/ia64/ia64.md (divsf3_internal_lat): Remove. | |
22282 | (divdf3_internal_lat): Remove. | |
22283 | (divxf3_internal_lat): Remove. | |
22284 | (divxf3_internal_thr): Remove. | |
22285 | (divxf): Use divxf3_internal. | |
22286 | * config/ia64/div.md (divsf3_internal_lat): New. | |
22287 | (divdf3_internal_lat): New. | |
22288 | (divxf3_internal): New. | |
22289 | ||
207bf79d JM |
22290 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
22291 | ||
22292 | PR c/448 | |
22293 | * Makefile.in (USE_GCC_STDINT): Define. | |
22294 | (stmp-int-hdrs): Install stdint.h if applicable. | |
22295 | * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE | |
22296 | if known. | |
22297 | (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known. | |
22298 | (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE, | |
22299 | UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE, | |
22300 | INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
22301 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
22302 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
22303 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
22304 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
22305 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
22306 | (c_common_nodes_and_builtins): Initialize | |
22307 | underlying_wchar_type_node. Do not initialize | |
22308 | signed_wchar_type_node or unsigned_wchar_type_node. Initialize | |
22309 | nodes for new types. | |
22310 | (c_stddef_cpp_builtins): Define macros for new types. | |
22311 | * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE): | |
22312 | Remove. | |
22313 | (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE, | |
22314 | CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE, | |
22315 | CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE, | |
22316 | CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE, | |
22317 | CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE, | |
22318 | CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE, | |
22319 | CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE, | |
22320 | CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE, | |
22321 | CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define. | |
22322 | (signed_wchar_type_node, unsigned_wchar_type_node): Remove. | |
22323 | (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node, | |
22324 | int16_type_node, int32_type_node, int64_type_node, | |
22325 | uint8_type_node, uint16_type_node, c_uint32_type_node, | |
22326 | c_uint64_type_node, int_least8_type_node, int_least16_type_node, | |
22327 | int_least32_type_node, int_least64_type_node, | |
22328 | uint_least8_type_node, uint_least16_type_node, | |
22329 | uint_least32_type_node, uint_least64_type_node, | |
22330 | int_fast8_type_node, int_fast16_type_node, int_fast32_type_node, | |
22331 | int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node, | |
22332 | uint_fast32_type_node, uint_fast64_type_node, intptr_type_node, | |
22333 | uintptr_type_node): Define. | |
22334 | * c-cppbuiltin.c (builtin_define_constants, | |
22335 | builtin_define_type_minmax): New. | |
22336 | (builtin_define_stdint_macros): Define more macros. | |
22337 | (c_cpp_builtins): Define more limit macros. | |
22338 | (type_suffix): New. | |
22339 | (builtin_define_type_max): Define in terms of | |
22340 | builtin_define_type_minmax. Remove is_long parameter. All | |
22341 | callers changed. | |
22342 | * config.gcc (use_gcc_stdint): Define. | |
22343 | (tm_file): Add glibc-stdint.h for targets using glibc or uClibc. | |
22344 | Add newlib-stdint.h for generic targets. | |
22345 | * config/glibc-stdint.h, config/newlib-stdint.h, | |
22346 | ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New. | |
22347 | * config/m32c/m32c.h (UINTPTR_TYPE): Define. | |
22348 | * config/score/score.h (UINTPTR_TYPE): Define. | |
22349 | * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, | |
22350 | INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, | |
22351 | UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
22352 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
22353 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
22354 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
22355 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
22356 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
22357 | * config/spu/spu.h (STDINT_LONG32): Define. | |
22358 | * configure.ac (use_gcc_stdint): Substitute. | |
22359 | * configure: Regenerate. | |
22360 | * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__, | |
22361 | __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__, | |
22362 | __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__, | |
22363 | __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__, | |
22364 | __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__, | |
22365 | __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__, | |
22366 | __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__, | |
22367 | __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__, | |
22368 | __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__, | |
22369 | __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__, | |
22370 | __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__, | |
22371 | __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__, | |
22372 | __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__, | |
22373 | __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__, | |
22374 | __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__, | |
22375 | __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__, | |
22376 | __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__, | |
22377 | __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__, | |
22378 | __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__, | |
22379 | __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C, | |
22380 | __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document. | |
22381 | * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, | |
22382 | INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE, | |
22383 | INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
22384 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
22385 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
22386 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
22387 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
22388 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document. | |
22389 | ||
ed853664 BS |
22390 | 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com> |
22391 | ||
22392 | * loop-iv.c (suitable_set_for_replacement): Renamed from | |
22393 | simplify_using_assignment; changed to return bool and to accept new | |
22394 | args DEST and SRC. Return true iff we find a source/destination pair | |
22395 | that can be used to make a replacement, and fill SRC and DEST if so. | |
22396 | Remove arg ALTERED. Don't deal with altered regs here. All callers | |
22397 | changed. | |
22398 | (simplify_using_initial_values): Deal with altered regs here and track | |
22399 | more precisely the effect they have on the validity of our expression. | |
22400 | ||
1569e190 BS |
22401 | * loop-iv.c (simplify_using_condition): A condition of the form |
22402 | (EQ REG CONST) can be used to simply make a substitution. | |
22403 | (simplify_using_initial_values): Keep track of conditions we have seen | |
22404 | and keep using them to simplify new expressions, while applying the | |
22405 | same substitutions to them as to the expression. | |
22406 | ||
1d1eb80c BS |
22407 | * simplify-rtx.c (simplify_relational_operation_1): Simplify |
22408 | (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with | |
22409 | GEU/LTU reversed. | |
22410 | ||
28af33b0 BS |
22411 | * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers |
22412 | changed. Use this when trying to improve the upper bound. | |
22413 | Generate the comparison by using simplify_gen_relational. | |
22414 | ||
b30321cd BS |
22415 | * loop-iv.c (simple_rhs_p): Allow more kinds of expressions. |
22416 | ||
60081874 BS |
22417 | * loop-iv.c (replace_single_def_regs, replace_in_expr): New static |
22418 | functions. | |
2ba9daa7 | 22419 | (simplify_using_assignment, simplify_using_initial_values): Call |
60081874 BS |
22420 | replace_in_expr to make replacements. Call replace_single_def_regs |
22421 | once on the initial version of the expression. | |
22422 | ||
bebc6e07 RR |
22423 | 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
22424 | ||
fcb82ab0 | 22425 | PR target/27237 |
bebc6e07 | 22426 | * doc/invoke.texi (ARM Options): Update documentation for -mthumb. |
2ba9daa7 | 22427 | |
6b12efe9 RG |
22428 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
22429 | ||
22430 | PR middle-end/31029 | |
22431 | * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for | |
22432 | equality comparisons. Fold C - X CMP X if C % 2 == 1. | |
22433 | ||
108f6c2f RG |
22434 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
22435 | ||
22436 | * tree.h (div_if_zero_remainder): Declare. | |
22437 | * fold-const.c (div_if_zero_remainder): Export. | |
22438 | * tree-ssa-forwprop.c | |
22439 | (forward_propagate_addr_into_variable_array_index): Handle | |
22440 | constant array index addition outside of the variable index. | |
22441 | ||
8f612190 JM |
22442 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
22443 | ||
22444 | PR target/39592 | |
22445 | * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed | |
22446 | define_splits, floatunssi<mode>2): Require x87 conversions from | |
22447 | DImode to be permitted. | |
22448 | ||
47580d22 JM |
22449 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
22450 | ||
22451 | PR preprocessor/15638 | |
22452 | * c-common.c (c_cpp_error): Handle CPP_DL_FATAL. | |
22453 | ||
ba4d8f9d RG |
22454 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
22455 | ||
22456 | PR middle-end/23401 | |
22457 | PR middle-end/27810 | |
22458 | * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove. | |
22459 | (struct tree_decl_with_vis): Remove gimple_formal_temp member. | |
22460 | * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to | |
22461 | a separate statement. | |
22462 | * gimplify.c (pop_gimplify_context): Remove formal temp handling. | |
22463 | (lookup_tmp_var): Likewise. | |
22464 | (is_gimple_formal_tmp_or_call_rhs): Remove. | |
22465 | (is_gimple_reg_or_call_rhs): Rename to ... | |
22466 | (is_gimple_reg_rhs_or_call): ... this. | |
22467 | (is_gimple_mem_or_call_rhs): Rename to ... | |
22468 | (is_gimple_mem_rhs_or_call): ... this. | |
22469 | (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set | |
22470 | DECL_GIMPLE_REG_P only if is_formal is true. | |
22471 | (gimplify_compound_lval): Use is_gimple_reg. Remove workaround | |
22472 | for non-proper post-modify expression gimplification. | |
22473 | (gimplify_self_mod_expr): For post-modify expressions gimplify | |
22474 | the lvalue to a minimal lvalue. | |
22475 | (rhs_predicate_for): Remove formal temp case. | |
22476 | (gimplify_modify_expr_rhs): Likewise. | |
22477 | (gimplify_addr_expr): Use is_gimple_reg. | |
22478 | (gimplify_expr): Remove formal temp cases. | |
22479 | (gimple_regimplify_operands): Likewise. | |
22480 | * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR | |
22481 | and FILTER_EXPR like constants. | |
22482 | * gimple.c (walk_gimple_op): Fix val_only initialization, use | |
22483 | is_gimple_reg. | |
22484 | (is_gimple_formal_tmp_rhs): Remove. | |
22485 | (is_gimple_reg_rhs): Remove special casing. | |
22486 | (is_gimple_mem_rhs): Fix. | |
22487 | (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier. | |
22488 | (is_gimple_formal_tmp_var): Remove. | |
22489 | (is_gimple_formal_tmp_reg): Likewise. | |
22490 | (is_gimple_min_lval): Allow invariant component ref parts. | |
22491 | * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var, | |
22492 | is_gimple_formal_tmp_reg): Remove declarations. | |
22493 | * tree-cfg.c (verify_expr): Verify that variables with address | |
22494 | taken do not have DECL_GIMPLE_REG_P set. | |
22495 | * tree-mudflap.c (mf_build_check_statement_for): Use | |
22496 | force_gimple_operand instead of gimplify_expr. | |
22497 | ||
8de9b877 AZ |
22498 | 2009-03-31 Ayal Zaks <zaks@il.ibm.com> |
22499 | ||
22500 | * modulo-sched.c (sms_schedule_by_order): Pass the actual | |
22501 | schedulable rows to compute_split_row. | |
22502 | ||
b5e3caf2 BE |
22503 | 2009-03-31 Ben Elliston <bje@au.ibm.com> |
22504 | ||
22505 | PR target/31635 | |
22506 | * config/rs6000/rs6000.c (rs6000_handle_option): Handle | |
22507 | OPT_mvrsave. | |
22508 | ||
9752c4ad AM |
22509 | 2009-03-31 Alan Modra <amodra@bigpond.net.au> |
22510 | ||
22511 | * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers. | |
22512 | * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check. | |
22513 | * configure: Regenerate. | |
22514 | * config.in: Regenerate. | |
22515 | * config/rs6000/rs6000.opt (mtls-markers): Add. | |
22516 | * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define. | |
22517 | * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter. | |
22518 | (tls_ld_aix, tls_ld_sysv): Likewise. | |
22519 | (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns. | |
22520 | (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise. | |
22521 | ||
b597d1b6 AM |
22522 | 2009-03-31 Alan Modra <amodra@bigpond.net.au> |
22523 | ||
22524 | * config/spu/spu.c (spu_expand_prologue): Delete redundant code. | |
22525 | ||
a203a221 JH |
22526 | 2009-03-30 Jan Hubicka <jh@suse.cz> |
22527 | ||
b597d1b6 AM |
22528 | * tree-eh.c (make_eh_edges): Set probability 100% to first edge |
22529 | out of RESX. | |
22530 | (tree_remove_unreachable_handlers): Cleanup EH predecestor | |
22531 | detection and label handling. | |
a203a221 | 22532 | |
5b0c0b2c VM |
22533 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
22534 | ||
22535 | * ira-int.h (ira_allocno): Rename left_conflicts_num to | |
22536 | left_conflicts_size. | |
22537 | (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to | |
22538 | ALLOCNO_LEFT_CONFLICTS_SIZE. | |
22539 | ||
22540 | * ira-color.c (allocno_spill_priority, push_allocno_to_stack, | |
22541 | remove_allocno_from_bucket_and_push, | |
22542 | allocno_spill_priority_compare, push_allocnos_to_stack, | |
22543 | setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE | |
22544 | instead of ALLOCNO_LEFT_CONFLICTS_NUM. | |
22545 | (setup_allocno_left_conflicts_num): Ditto. Rename to | |
22546 | setup_allocno_left_conflicts_size. | |
22547 | (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE | |
22548 | instead of ALLOCNO_LEFT_CONFLICTS_NUM and | |
22549 | setup_allocno_left_conflicts_size instead of | |
22550 | setup_allocno_left_conflicts_num. | |
22551 | ||
22552 | * ira-build.c (ira_create_allocno): Use | |
22553 | ALLOCNO_LEFT_CONFLICTS_SIZE instead of | |
22554 | ALLOCNO_LEFT_CONFLICTS_NUM. | |
2ba9daa7 | 22555 | |
9a48a93f VM |
22556 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
22557 | ||
22558 | * reload.c (push_reload, find_dummy_reload): Use df_get_live_out | |
22559 | instead of DF_LR_OUT. | |
22560 | ||
22561 | * ira-lives.c (process_bb_node_lives): Ditto. | |
22562 | ||
22563 | * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in} | |
22564 | instead of DF_LR_{OUT,IN}. | |
22565 | ||
22566 | * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto. | |
22567 | ||
22568 | * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto. | |
22569 | ||
4c936d4f JH |
22570 | 2009-03-30 Jan Hubicka <jh@suse.cz> |
22571 | ||
22572 | * except.c (label_to_region_map): Fix thinko. | |
22573 | ||
f4d9f129 SE |
22574 | 2009-03-30 Steve Ellcey <sje@cup.hp.com> |
22575 | ||
22576 | PR middle-end/38237 | |
22577 | * tree.h (tree_find_value): New declaration. | |
22578 | * tree.c (tree_find_value): New function. | |
22579 | * varasm.c (assemble_external): Avoid duplicate entries on lists. | |
22580 | ||
b3f27c15 JJ |
22581 | 2009-03-30 Jakub Jelinek <jakub@redhat.com> |
22582 | ||
22583 | PR debug/39563 | |
22584 | * c-decl.c (struct c_binding): Add locus field. | |
22585 | (bind): Add locus argument, set locus field from it. | |
22586 | (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL, | |
22587 | add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS. | |
22588 | (push_file_scope, pushtag, pushdecl, pushdecl_top_level, | |
22589 | implicitly_declare, undeclared_variable, lookup_label, | |
22590 | declare_label, c_make_fname_decl, c_builtin_function, | |
22591 | c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust | |
22592 | bind callers. | |
22593 | ||
ad41bd84 | 22594 | 2009-03-30 H.J. Lu <hongjiu.lu@intel.com> |
680e8a00 L |
22595 | |
22596 | PR target/38781 | |
22597 | * config/i386/i386.c (classify_argument): Check total size of | |
22598 | structure. | |
22599 | ||
133f9369 MJ |
22600 | 2009-03-30 Martin Jambor <mjambor@suse.cz> |
22601 | ||
22602 | * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST, | |
22603 | IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN, | |
22604 | IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH | |
22605 | respectively. | |
22606 | ||
22607 | * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if | |
22608 | seen_variable_array_ref while also traversing a union. | |
22609 | ||
22610 | * tree-inline.c (optimize_inline_calls): Do not call | |
22611 | cgraph_node_remove_callees. | |
22612 | * cgraphbuild.c (remove_cgraph_callee_edges): New function. | |
22613 | (pass_remove_cgraph_callee_edges): New variable. | |
22614 | * passes.c (init_optimization_passes): Add | |
22615 | pass_remove_cgraph_callee_edges after early inlining and before all | |
22616 | late intraprocedural passes. | |
22617 | ||
22618 | * omp-low.c (expand_omp_taskreg): Always set current_function_decl. | |
22619 | ||
1190f2eb PB |
22620 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22621 | ||
22622 | * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis): | |
22623 | Fix typos in names. | |
22624 | ||
fedc1775 PB |
22625 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22626 | ||
fcb82ab0 UB |
22627 | * combine.c (simplify_comparison): Use have_insn_for. |
22628 | * dojump.c (do_jump): Likewise. | |
fedc1775 | 22629 | |
65c5ae8b PB |
22630 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22631 | ||
22632 | * config/sparc/sparc.c (sparc_compare_emitted): Remove. | |
22633 | (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC | |
22634 | sparc_compare_op0 like sparc_compare_emitted used to be handled. | |
22635 | (sparc_expand_compare_and_swap_12): Set sparc_compare_op0 | |
22636 | instead of sparc_compare_emitted. | |
22637 | * config/sparc/sparc.h (sparc_compare_emitted): Remove. | |
22638 | * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0 | |
22639 | instead of sparc_compare_emitted. | |
22640 | ||
d25aa7ab PB |
22641 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22642 | ||
22643 | * bb-reorder.c (partition_hot_cold_basic_blocks): Do not | |
22644 | enter/exit cfglayout mode. | |
22645 | (pass_partition_block): Require it. | |
22646 | * combine.c (find_single_use, reg_dead_at_p): Use CFG. | |
22647 | (combine_instructions): Track basic blocks instead of labels. | |
22648 | (update_cfg_for_uncondjump): New. | |
22649 | (try_combine): Use it. Update jumps after rescanning. | |
22650 | (pass_combine): Require PROP_cfglayout. | |
22651 | * passes.c (pass_outof_cfg_layout_mode): Move after regmove. | |
22652 | ||
9c9e26f5 PB |
22653 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22654 | ||
fcb82ab0 UB |
22655 | * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): |
22656 | Provide/destroy PROP_cfglayout respectively. | |
22657 | * gcse.c (pass_jump_bypass, pass_gcse): Require it. | |
22658 | * tree-pass.h (PROP_cfglayout): New. | |
9c9e26f5 | 22659 | |
28ddeea1 PB |
22660 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22661 | ||
22662 | * fold-const.c (const_binop, fold_convert_const_real_from_fixed, | |
22663 | fold_convert_const_fixed_from_fixed, | |
22664 | fold_convert_const_fixed_from_int, | |
22665 | fold_convert_const_fixed_from_real, fold_negate_const): Do not | |
22666 | set TREE_CONSTANT_OVERFLOW. | |
22667 | * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW. | |
22668 | * tree.h (TREE_CONSTANT_OVERFLOW): Delete. | |
22669 | ||
ebfd146a IR |
22670 | 2009-03-30 Ira Rosen <irar@il.ibm.com> |
22671 | ||
22672 | * tree-vect-loop-manip.c: New file. | |
22673 | * tree-vectorizer.c: Update documentation and included files. | |
22674 | (vect_loop_location): Make extern. | |
22675 | (rename_use_op): Move to tree-vect-loop-manip.c | |
2ba9daa7 AS |
22676 | (rename_variables_in_bb, rename_variables_in_loop, |
22677 | slpeel_update_phis_for_duplicate_loop, | |
ebfd146a IR |
22678 | slpeel_update_phi_nodes_for_guard1, |
22679 | slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes, | |
22680 | slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard, | |
22681 | slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling, | |
2ba9daa7 | 22682 | set_prologue_iterations, slpeel_tree_peel_loop_to_edge, |
ebfd146a IR |
22683 | find_loop_location): Likewise. |
22684 | (new_stmt_vec_info): Move to tree-vect-stmts.c. | |
22685 | (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info, | |
22686 | get_vectype_for_scalar_type, vect_is_simple_use, | |
22687 | supportable_widening_operation, supportable_narrowing_operation): | |
22688 | Likewise. | |
22689 | (bb_in_loop_p): Move to tree-vect-loop.c. | |
2ba9daa7 AS |
22690 | (new_loop_vec_info, destroy_loop_vec_info, |
22691 | reduction_code_for_scalar_code, report_vect_op, | |
ebfd146a IR |
22692 | vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise. |
22693 | (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c. | |
22694 | (vect_supportable_dr_alignment): Likewise. | |
22695 | * tree-vectorizer.h (tree-data-ref.h): Include. | |
22696 | (vect_loop_location): Declare. | |
22697 | Reorganize function declarations according to the new file structure. | |
22698 | * tree-vect-loop.c: New file. | |
2ba9daa7 | 22699 | * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, |
ebfd146a IR |
22700 | tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c. |
22701 | * tree-vect-data-refs.c: New file. | |
22702 | * tree-vect-patterns.c (timevar.h): Don't include. | |
22703 | * tree-vect-stmts.c: New file. | |
2ba9daa7 | 22704 | * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, |
ebfd146a | 22705 | tree-vect-slp.c, tree-vect-loop.c. |
2ba9daa7 AS |
22706 | * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and |
22707 | tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, | |
ebfd146a IR |
22708 | tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o. |
22709 | (tree-vect-analyze.o): Remove. | |
22710 | (tree-vect-transform.o): Likewise. | |
22711 | (tree-vect-data-refs.o): Add rule. | |
2ba9daa7 | 22712 | (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, |
ebfd146a IR |
22713 | tree-vect-slp.o): Likewise. |
22714 | (tree-vect-patterns.o): Remove redundant dependencies. | |
22715 | (tree-vectorizer.o): Likewise. | |
22716 | * tree-vect-slp.c: New file. | |
22717 | ||
40a1cfba RW |
22718 | 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
22719 | ||
22720 | * optc-gen.awk: Warn if an option flag has multiple different | |
22721 | help strings. | |
22722 | ||
a9a7a9a2 SP |
22723 | 2009-03-30 Sebastian Pop <sebastian.pop@amd.com> |
22724 | ||
22725 | * doc/invoke.texi (-floop-interchange, -floop-strip-mine, | |
22726 | -floop-block): Document dependences on PPL, CLooG and Graphite. | |
22727 | ||
8ce94e44 JM |
22728 | 2009-03-30 Joseph Myers <joseph@codesourcery.com> |
22729 | ||
22730 | PR rtl-optimization/323 | |
22731 | * c-common.c (c_fully_fold, convert_and_check, | |
22732 | c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR. | |
22733 | (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR. | |
22734 | * c-common.def (EXCESS_PRECISION_EXPR): New. | |
22735 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
22736 | constants with enough digits for long double. | |
22737 | * c-lex.c (interpret_float): Interpret constant with excess | |
22738 | precision where appropriate. | |
22739 | * c-opts.c (c_common_post_options): Set | |
22740 | flag_excess_precision_cmdline. Give an error for | |
22741 | -fexcess-precision=standard for C++ for processors where the | |
22742 | option is significant. | |
22743 | * c-parser.c (c_parser_conditional_expression): Handle excess | |
22744 | precision in condition. | |
22745 | * c-typeck.c (convert_arguments): Handle arguments with excess | |
22746 | precision. | |
22747 | (build_unary_op): Move excess precision outside operation. | |
22748 | (build_conditional_expr): Likewise. | |
22749 | (build_compound_expr): Likewise. | |
22750 | (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR. | |
22751 | (build_modify_expr): Handle excess precision in RHS. | |
22752 | (convert_for_assignment): Handle excess precision in converted | |
22753 | value. | |
22754 | (digest_init, output_init_element, process_init_element): Handle | |
22755 | excess precision in initializer. | |
22756 | (c_finish_return): Handle excess precision in return value. | |
22757 | (build_binary_op): Handle excess precision in operands and add | |
22758 | excess precision as needed for operation. | |
22759 | * common.opt (-fexcess-precision=): New option. | |
22760 | * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New. | |
22761 | * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2): | |
22762 | For standard excess precision, output explicit conversion to and | |
22763 | truncation from XFmode. | |
22764 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_1, | |
22765 | *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp, | |
22766 | *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed | |
22767 | define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed | |
22768 | define_splits, *floatunssi<mode>2_1, two unnamed define_splits, | |
22769 | floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3, | |
22770 | divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387, | |
22771 | *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387, | |
22772 | *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed | |
22773 | define_splits, sqrt<mode>2): Disable where appropriate for | |
22774 | standard excess precision. | |
22775 | * convert.c (convert_to_real): Do not shorten arithmetic to type | |
22776 | for which excess precision would be used. | |
22777 | * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define. | |
22778 | * doc/invoke.texi (-fexcess-precision=): Document option. | |
22779 | (-mfpmath=): Correct index entry. | |
22780 | * flags.h (enum excess_precision, flag_excess_precision_cmdline, | |
22781 | flag_excess_precision): New. | |
22782 | * langhooks.c (lhd_post_options): Set | |
22783 | flag_excess_precision_cmdline. | |
22784 | * opts.c (common_handle_option): Handle -fexcess-precision=. | |
22785 | * toplev.c (flag_excess_precision_cmdline, flag_excess_precision, | |
22786 | init_excess_precision): New. | |
22787 | (lang_dependent_init_target): Call init_excess_precision. | |
22788 | * tree.c (excess_precision_type): New. | |
22789 | * tree.h (excess_precision_type): Declare. | |
22790 | ||
1e57bf47 JM |
22791 | 2009-03-30 Joseph Myers <joseph@codesourcery.com> |
22792 | ||
22793 | PR c/35235 | |
22794 | * c-typeck.c (build_component_ref): Do not copy qualifiers from | |
22795 | non-lvalue to component. | |
22796 | ||
148e4216 JM |
22797 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
22798 | ||
22799 | PR preprocessor/34695 | |
22800 | * Makefile.in (c-opts.o): Depend on c-tree.h. | |
22801 | * c-common.c: Move down include of diagnostic.h. | |
22802 | (done_lexing, c_cpp_error): New. | |
22803 | * c-common.h (done_lexing): Declare. | |
22804 | * c-decl.c (c_write_global_declarations): Don't check cpp_errors | |
22805 | (parse_in). | |
22806 | * c-opts.c: Include c-tree.h. | |
22807 | (c_common_init_options): Set preprocessor error callback. | |
22808 | (c_common_handle_option): Do not set preprocessor | |
22809 | inhibit_warnings, warnings_are_errors, warn_system_headers, | |
22810 | pedantic_errors or inhibit_warnings flags. | |
22811 | (c_common_post_options): Do not check cpp_errors (parse_in). | |
22812 | (c_common_finish): Do not output dependencies if there were | |
22813 | errors. Do not check return value of cpp_finish. | |
22814 | * c-ppoutput.c (pp_file_change): Set input_location. | |
22815 | * c-tree.h (c_cpp_error): Declare. | |
22816 | * diagnostic.c (diagnostic_set_info_translated): Also initialize | |
22817 | override_column. | |
22818 | (diagnostic_build_prefix): Check override_column. | |
22819 | * diagnostic.h (diagnostic_info): Add override_column field. | |
22820 | (diagnostic_override_column): Define. | |
22821 | ||
2ec5deb5 PB |
22822 | 2009-03-28 Paolo Bonzini <bonzini@gnu.org> |
22823 | ||
ba20e309 UB |
22824 | * c-common.c (c_expand_expr, c_staticp): Remove. |
22825 | * c-common.def (COMPOUND_LITERAL_EXPR): Delete. | |
22826 | * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL, | |
22827 | COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove. | |
22828 | * c-gimplify.c (gimplify_compound_literal_expr, | |
22829 | optimize_compound_literals_in_ctor): Remove. | |
22830 | (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling. | |
22831 | * c-objc-common.h (LANG_HOOKS_STATICP): Remove. | |
22832 | * c-semantics.c (emit_local_var): Remove. | |
22833 | ||
22834 | * langhooks-def.h (lhd_expand_expr): Remove. | |
22835 | * langhooks.c (lhd_expand_expr): Remove. | |
22836 | * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR. | |
22837 | ||
22838 | * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR | |
22839 | handling from c-semantics.c; don't call into langhook. | |
22840 | (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees. | |
22841 | * gimplify.c (gimplify_compound_literal_expr, | |
22842 | optimize_compound_literals_in_ctor): Move from c-gimplify.c. | |
22843 | (gimplify_init_constructor): Call optimize_compound_literals_in_ctor. | |
22844 | (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR | |
22845 | as was done in c-gimplify.c. | |
22846 | * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp. | |
22847 | * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR): | |
22848 | Move from c-common.h. | |
22849 | * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def. | |
2ec5deb5 PB |
22850 | |
22851 | * tree.c (staticp): Do not call langhook. | |
22852 | * langhooks.c (lhd_staticp): Delete. | |
22853 | * langhooks-def.h (lhd_staticp): Delete prototype. | |
22854 | (LANG_HOOKS_STATICP): Delete. | |
22855 | (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP. | |
22856 | ||
ba20e309 UB |
22857 | * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs |
22858 | instead of DECL_STMTs. | |
2ec5deb5 | 22859 | |
928c19bb JM |
22860 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
22861 | ||
22862 | PR c/456 | |
22863 | PR c/5675 | |
22864 | PR c/19976 | |
22865 | PR c/29116 | |
22866 | PR c/31871 | |
22867 | PR c/35198 | |
22868 | * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in | |
22869 | void_type_node. | |
22870 | (fold_call_expr): Return a NOP_EXPR from folding rather than the | |
22871 | contained expression. | |
ba20e309 | 22872 | * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New. |
928c19bb JM |
22873 | (c_common_truthvalue_conversion): Use c_save_expr. Do not fold |
22874 | conditional expressions for C. | |
22875 | (decl_constant_value_for_optimization): Move from | |
ba20e309 | 22876 | decl_constant_value_for_broken_optimization in c-typeck.c. Check |
928c19bb JM |
22877 | whether optimizing and that the expression is a VAR_DECL not of |
22878 | array type instead of doing such checks in the caller. Do not | |
22879 | check pedantic. Call gcc_unreachable for C++. | |
22880 | * c-common.def (C_MAYBE_CONST_EXPR): New. | |
22881 | * c-common.h (c_fully_fold, c_save_expr, | |
22882 | decl_constant_value_for_optimization): New prototypes. | |
22883 | (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR, | |
22884 | C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST, | |
22885 | EXPR_INT_CONST_OPERANDS): Define. | |
22886 | * c-convert.c (convert): Strip nops from expression. | |
22887 | * c-decl.c (groktypename): Take extra parameters expr and | |
22888 | expr_const_operands. Update call to grokdeclarator. | |
22889 | (start_decl): Update call to grokdeclarator. Add statement for | |
22890 | expressions used in type of decl. | |
22891 | (grokparm): Update call to grokdeclarator. | |
22892 | (push_parm_decl): Update call to grokdeclarator. | |
22893 | (build_compound_literal): Add parameter non_const and build a | |
22894 | C_MAYBE_COSNT_EXPR if applicable. | |
22895 | (grokdeclarator): Take extra parameters expr and | |
22896 | expr_const_operands. Track expressions used in declaration | |
22897 | specifiers and declarators. Fold array sizes and track whether | |
22898 | they are constant expressions and whether they are integer | |
22899 | constant expressions. | |
22900 | (parser_xref_tag): Set expr and expr_const_operands fields in | |
22901 | return value. | |
22902 | (grokfield): Update call to grokdeclarator. | |
22903 | (start_function): Update call to grokdeclarator. | |
22904 | (build_null_declspecs): Set expr and expr_const_operands fields in | |
22905 | return value. | |
22906 | (declspecs_add_type): Handle expressions in typeof specifiers. | |
22907 | * c-parser.c (c_parser_declspecs): Set expr and | |
22908 | expr_const_operands fields for declaration specifiers. | |
22909 | (c_parser_enum_specifier): Likewise. | |
22910 | (c_parser_struct_or_union_specifier): Likewise. | |
22911 | (c_parser_typeof_specifier): Likewise. Update call to | |
22912 | groktypename. Fold expression as needed. Return expressions with | |
22913 | type instead of adding statements. | |
22914 | (c_parser_attributes): Update calls to c_parser_expr_list. | |
22915 | (c_parser_statement_after_labels): Fold expression before passing | |
22916 | to objc_build_throw_stmt. | |
22917 | (c_parser_condition): Fold expression. | |
22918 | (c_parser_asm_operands): Fold expression. | |
22919 | (c_parser_conditional_expression): Use c_save_expr. Update call | |
22920 | to build_conditional_expr. | |
22921 | (c_parser_alignof_expression): Update call to groktypename. | |
22922 | (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as | |
22923 | original_code. Fold expression argument of va_arg. Create | |
22924 | C_MAYBE_CONST_EXPR to preserve side effects of expressions in type | |
22925 | argument to va_arg. Update calls to groktypename. Fold array | |
22926 | index for offsetof. Verify that first argument to | |
22927 | __builtin_choose_expr has integer type. | |
22928 | (c_parser_postfix_expression_after_paren_type): Update calls to | |
22929 | groktypename and build_compound_literal. Handle expressions with | |
22930 | side effects in type name. | |
22931 | (c_parser_postfix_expression_after_primary): Update call to | |
22932 | c_parser_expr_list. Set original_code for calls to | |
22933 | __builtin_constant_p. | |
22934 | (c_parser_expr_list): Take extra parameter fold_p. Fold | |
22935 | expressions if requested. | |
22936 | (c_parser_objc_type_name): Update call to groktypename. | |
22937 | (c_parser_objc_synchronized_statement): Fold expression. | |
22938 | (c_parser_objc_receiver): Fold expression. | |
22939 | (c_parser_objc_keywordexpr): Update call to c_parser_expr_list. | |
22940 | (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule, | |
22941 | c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions. | |
22942 | * c-tree.h (CONSTRUCTOR_NON_CONST): Define. | |
22943 | (struct c_typespec): Add elements expr and expr_const_operands. | |
22944 | (struct c_declspecs): Add elements expr and expr_const_operands. | |
22945 | (groktypename, build_conditional_expr, build_compound_literal): | |
22946 | Update prototypes. | |
22947 | (in_late_binary_op): Declare. | |
22948 | * c-typeck.c (note_integer_operands): New function. | |
22949 | (in_late_binary_op): New variable. | |
22950 | (decl_constant_value_for_broken_optimization): Move to c-common.c | |
22951 | and rename to decl_constant_value_for_optimization. | |
22952 | (default_function_array_conversion): Do not strip nops. | |
22953 | (default_conversion): Do not call | |
22954 | decl_constant_value_for_broken_optimization. | |
22955 | (build_array_ref): Do not fold result. | |
22956 | (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for | |
22957 | result when operand is a VLA. | |
22958 | (c_expr_sizeof_type): Update call to groktypename. Handle | |
22959 | expressions included in type name. Use C_MAYBE_CONST_EXPR for | |
22960 | result when operand names a VLA type. | |
22961 | (build_function_call): Update call to build_compound_literal. | |
22962 | Only fold result for calls to __builtin_* functions. Strip | |
22963 | NOP_EXPR from INTEGER_CST returned from such functions. Fold | |
22964 | the function designator. | |
22965 | (convert_arguments): Fold arguments. Update call to | |
22966 | convert_for_assignment. | |
22967 | (build_unary_op): Handle increment and decrement of | |
22968 | C_MAYBE_CONST_EXPR. Move lvalue checks for increment and | |
22969 | decrement earlier. Fold operand of increment and decrement. | |
22970 | Handle address of C_MAYBE_CONST_EXPR. Only fold expression being | |
22971 | built for integer operand. Wrap returns that are INTEGER_CSTs | |
22972 | without being integer constant expressions or that have integer | |
22973 | constant operands without being INTEGER_CSTs. | |
22974 | (lvalue_p): Handle C_MAYBE_CONST_EXPR. | |
22975 | (build_conditional_expr): Add operand ifexp_bcp. Track whether | |
22976 | result is an integer constant expression or can be used in | |
22977 | unevaluated parts of one and avoid folding and wrap as | |
22978 | appropriate. Fold operands before possibly doing -Wsign-compare | |
22979 | warnings. | |
22980 | (build_compound_expr): Wrap result for C99 if operands can be used | |
22981 | in integer constant expressions. | |
22982 | (build_c_cast): Update call to digest_init. Do not ignore | |
22983 | overflow from casting floating-point constants to integers. Wrap | |
22984 | results that could be confused with integer constant expressions, | |
22985 | null pointer constants or floating-point constants. | |
22986 | (c_cast_expr): Update call to groktypename. Handle expressions | |
22987 | included in type name. | |
22988 | (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold | |
22989 | lhs inside possible SAVE_EXPR. Fold RHS before assignment. | |
22990 | Update calls to convert_for_assignment. | |
22991 | (convert_for_assignment): Take new parameter | |
22992 | null_pointer_constant. Do not strip nops or call | |
22993 | decl_constant_value_for_broken_optimization. Set | |
22994 | in_late_binary_op for conversions to boolean. | |
22995 | (store_init_value): Update call to digest_init. | |
22996 | (digest_init): Take new parameter null_pointer_constant. Do not | |
22997 | call decl_constant_value_for_broken_optimization. pedwarn for | |
22998 | initializers not constant expressions. Update calls to | |
22999 | convert_for_assignment. | |
23000 | (constructor_nonconst): New. | |
23001 | (struct constructor_stack): Add nonconst element. | |
23002 | (really_start_incremental_init, push_init_level, pop_init_level): | |
23003 | Handle constructor_nonconst and nonconst element. | |
23004 | (set_init_index): Call constant_expression_warning for array | |
23005 | designators. | |
23006 | (output_init_element): Fold value. Set constructor_nonconst as | |
23007 | applicable. pedwarn for initializers not constant expressions. | |
23008 | Update call to digest_init. Call constant_expression_warning | |
23009 | where constant initializers are required. | |
23010 | (process_init_element): Use c_save_expr. | |
23011 | (c_finish_goto_ptr): Fold expression. | |
23012 | (c_finish_return): Fold return value. Update call to | |
23013 | convert_for_assignment. | |
23014 | (c_start_case): Fold switch expression. | |
23015 | (c_process_expr_stmt): Fold expression. | |
23016 | (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to | |
ba20e309 | 23017 | ensure statement expression is not evaluated in constant expression. |
928c19bb JM |
23018 | (build_binary_op): Track whether results are integer constant |
23019 | expressions or may occur in such, disable folding and wrap results | |
23020 | as applicable. Fold operands for -Wsign-compare warnings unless | |
23021 | in_late_binary_op. | |
23022 | (c_objc_common_truthvalue_conversion): Handle results folded to | |
23023 | integer constants that are not integer constant expressions. | |
23024 | * doc/extend.texi: Document when typeof operands are evaluated, | |
23025 | that condition of __builtin_choose_expr is an integer constant | |
23026 | expression, and more about use of __builtin_constant_p in | |
23027 | initializers. | |
23028 | ||
5babbcc0 RG |
23029 | 2009-03-29 Richard Guenther <rguenther@suse.de> |
23030 | ||
23031 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly | |
23032 | propagate addresses of array references. | |
23033 | ||
0340f2ba SB |
23034 | 2009-03-29 Steven Bosscher <steven@gcc.gnu.org> |
23035 | ||
23036 | * regmove.c (perhaps_ends_bb_p): Remove. | |
23037 | (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block | |
23038 | from INSN and check that the main loop stays within that basic block. | |
23039 | (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise. | |
23040 | (regmove_forward_pass): Split out from regmove_optimize. Use | |
23041 | FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream. | |
23042 | (regmove_backward_pass): Split out from regmove_optimize. Use | |
23043 | FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE. | |
23044 | (regmove_optimize): Simplify. | |
23045 | ||
eeae74a1 L |
23046 | 2009-03-29 H.J. Lu <hongjiu.lu@intel.com> |
23047 | ||
23048 | PR target/39545 | |
23049 | * config/i386/i386.c (classify_argument): Ignore flexible array | |
23050 | member in struct and warn ABI change. | |
23051 | ||
a24078b2 L |
23052 | 2009-03-29 H.J. Lu <hongjiu.lu@intel.com> |
23053 | ||
23054 | * config/i386/i386-protos.h (ix86_agi_dependent): New. | |
23055 | ||
23056 | * config/i386/i386.c (ix86_agi_dependent): Rewrite. | |
23057 | (ix86_adjust_cost): Updated. | |
23058 | ||
a8da523f JH |
23059 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
23060 | ||
23061 | PR middle-end/28850 | |
23062 | * tree-pass.h (pass_cleanup_eh): New function. | |
23063 | (remove_unreachable_regions): Break code handling RTL | |
23064 | to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW | |
23065 | that can not be reached by runtime. | |
23066 | (can_be_reached_by_runtime): New function. | |
23067 | (label_to_region_map): New function. | |
23068 | (num_eh_regions): New function. | |
23069 | (rtl_remove_unreachable_regions): New function. | |
23070 | (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions. | |
23071 | (remove_eh_region): New function. | |
23072 | * except.h: Include sbitmap and vecprim. | |
23073 | (remove_eh_region, remove_unreachable_regions, label_to_region_map, | |
23074 | num_eh_regions): Declare. | |
23075 | * passes.c (init_optimization_passes): Schedule cleanup_eh. | |
ba20e309 | 23076 | * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it. |
a8da523f JH |
23077 | * tree-eh.c (tree_remove_unreachable_handlers): New function. |
23078 | (tree_empty_eh_handler_p): New function. | |
23079 | (cleanup_empty_eh): New function. | |
23080 | (cleanup_eh): New function. | |
23081 | (pass_cleanup_eh): New function. | |
23082 | ||
98f358e5 JH |
23083 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
23084 | ||
23085 | * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready | |
23086 | for removed regions. | |
23087 | ||
13a9fa44 JH |
23088 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
23089 | ||
23090 | * except.c (dump_eh_tree): Dump all datastructures. | |
23091 | ||
e38cf733 JH |
23092 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
23093 | ||
23094 | * except.c (duplicate_eh_regions_0): Handle AKA bitmap. | |
23095 | (duplicate_eh_regions_1): Likewise. | |
23096 | (duplicate_eh_regions): Likewise; cleanup code gorwing the region | |
23097 | vector; call EH verification. | |
23098 | (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1): | |
23099 | Be ready for region being removed. | |
23100 | ||
12802c2b JH |
23101 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
23102 | ||
23103 | * bitmap.c (bitmap_last_set_bit): New function. | |
23104 | * bitmap.h (bitmap_last_set_bit): Declare. | |
23105 | ||
4ea80a41 DA |
23106 | 2009-03-29 David Ayers <ayers@fsfe.org> |
23107 | ||
23108 | PR objc/27377 | |
23109 | * c-typeck.c (build_conditional_expr): Emit ObjC warnings | |
23110 | by calling objc_compare_types and surpress warnings about | |
23111 | incompatible C pointers that are compatible ObjC pointers. | |
2ba9daa7 | 23112 | |
4ea80a41 | 23113 | 2009-03-29 Adam Nemet <anemet@caviumnetworks.com> |
3dc9eaa6 AN |
23114 | |
23115 | * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't | |
23116 | call initialize_inline_failed. | |
23117 | (initialize_inline_failed): Move it from here ... | |
23118 | * cgraph.c (initialize_inline_failed): ... to here. | |
23119 | (cgraph_create_edge): Call initialize_inline_failed rather than | |
23120 | setting inline_failed directly. | |
23121 | ||
7fb0ee07 BE |
23122 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
23123 | ||
23124 | PR target/32542 | |
23125 | * sysv4.opt (msdata): Improve comment. | |
23126 | * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given. | |
23127 | * sysv4.h (SVR4_ASM_SPEC): Likewise. | |
23128 | ||
0be77bf2 BE |
23129 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
23130 | ||
23131 | PR target/30451 | |
23132 | * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of | |
23133 | load and store attributes. | |
23134 | ||
593812b6 BE |
23135 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
23136 | ||
23137 | * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ. | |
23138 | (ix86_init_builtins): Add built-in function __builtin_huge_valq. | |
23139 | (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ. | |
23140 | * doc/extend.texi (X86 Built-in Functions): Add index entries for | |
23141 | __builtin_infq and __builtin_huge_valq. | |
23142 | ||
8272d11d AS |
23143 | 2009-03-28 Anatoly Sokolov <aesok@post.ru> |
23144 | ||
23145 | * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and | |
23146 | atmega8m1 devices. | |
23147 | * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). | |
23148 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.) | |
23149 | ||
74fe548b XDL |
23150 | 2009-03-28 Xinliang David Li <davidxl@google.com> |
23151 | ||
2ba9daa7 | 23152 | * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. |
74fe548b XDL |
23153 | (do_dbg_cnt): New function. |
23154 | ||
33977f81 JH |
23155 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23156 | ||
23157 | Merge from pretty-ipa: | |
23158 | ||
23159 | 2009-03-27 Jan Hubicka <jh@suse.cz> | |
ba20e309 | 23160 | |
33977f81 JH |
23161 | * cgraph.c (dump_cgraph_node): Add replace output flag by process. |
23162 | * tree-pass.h (function_called_by_processed_nodes_p): Declare. | |
23163 | * passes.c (function_called_by_processed_nodes_p): New. | |
23164 | * ipa-pure-const.c (check_call): Fix handling of operands. | |
23165 | (analyze_function): Dump debug output for skipped bodies. | |
23166 | (local_pure_const): Use function_called_by_processed_nodes_p. | |
23167 | * dwarf2out.c (reference_to_unused): Use output. | |
23168 | * passes.c (do_per_function_toporder): Likewise. | |
23169 | ||
23170 | 2008-11-12 Jan Hubicka <jh@suse.cz> | |
23171 | ||
23172 | * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare. | |
23173 | * ipa-pure-const.c (funct_state_d): Add can throw field; make | |
23174 | state_set_in_source enum | |
23175 | (check_decl): Ignore memory tags; do not set fake looping flags; | |
23176 | dump diagnostics. | |
23177 | (check_operand, check_tree, check_rhs_var, check_lhs_var, | |
23178 | get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove. | |
23179 | (check_call, analyze_function): Rewrite. | |
23180 | (check_stmt): New. | |
23181 | (add_new_function): Update call of analyze_function. | |
23182 | (generate_summary): Add call of analyze_function. | |
23183 | (propagate): Propagate can_throw; handle state_set_in_source correctly. | |
23184 | (local_pure_const): New function. | |
23185 | (pass_local_pure_const): New pass. | |
23186 | * ipa-inline.c (inline_transform): Set after_inlining. | |
23187 | * tree-eh.c (stmt_can_throw_external): New. | |
23188 | * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining; | |
23189 | work with aliasing built. | |
23190 | * tree-flow.h (stmt_can_throw_external): New. | |
23191 | * passes.c (init_optimization_passes): Schedule fixup_cfg pass early; | |
23192 | and local pure/const pass in early and late optimization queue. | |
ba20e309 | 23193 | |
617f3897 MJ |
23194 | 2009-03-28 Martin Jambor <mjambor@suse.cz> |
23195 | ||
23196 | * fold-const.c (get_pointer_modulus_and_residue): New parameter | |
23197 | allow_func_align. | |
23198 | (fold_binary): Allow function decl aligment consideration is the | |
23199 | second argument is integer constant one. | |
23200 | * tree-ssa-forwprop.c (simplify_bitwise_and): New function. | |
23201 | (tree_ssa_forward_propagate_single_use_vars): Handle assing statements | |
23202 | with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and. | |
23203 | ||
fe89fbc5 JH |
23204 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23205 | ||
23206 | * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow | |
23207 | * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls. | |
23208 | * function.h (rtl_data): Add nothrow flag. | |
23209 | * except.c (set_nothrow_function_flags): Use crtl->nothrow; | |
23210 | set DECL_NOTHROW for AVAILABLE functions. | |
23211 | ||
574872ff JJ |
23212 | 2009-03-28 Jakub Jelinek <jakub@redhat.com> |
23213 | ||
b3bf8855 JJ |
23214 | * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro |
23215 | following vector keyword has expansion starting with pixel or bool | |
23216 | keyword, expand vector to __vector and pixel or bool to __pixel or | |
23217 | __bool. | |
23218 | ||
574872ff JJ |
23219 | PR c++/39554 |
23220 | * opts.c (warning_disallowed_functions, warn_disallowed_functions, | |
23221 | warn_if_disallowed_function_p): Removed. | |
23222 | (common_handle_option): Don't handle OPT_Wdisallowed_function_list_. | |
23223 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't call | |
23224 | warning_if_disallowed_function_p. | |
23225 | * flags.h (warn_if_disallowed_function_p, | |
23226 | warn_disallowed_functions): Removed. | |
23227 | * common.opt (Wdisallowed-function-list=): Removed. | |
23228 | * doc/invoke.texi (-Wdisallowed-function-list=): Removed. | |
23229 | ||
b005da11 RG |
23230 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23231 | ||
23232 | PR tree-optimization/38723 | |
23233 | * tree-ssa-pre.c (compute_avail): Add all default definitions to | |
23234 | the entry block. | |
23235 | ||
1de812a6 JH |
23236 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23237 | ||
23238 | * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed | |
23239 | test introduced by my previous patch. | |
23240 | ||
fbb789d4 RG |
23241 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23242 | ||
23243 | * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave | |
23244 | the PHIs value undefined. | |
23245 | ||
6f1873a1 JH |
23246 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23247 | ||
23248 | * tree-pass.h (pass_fixup_cfg): New pass. | |
23249 | * ipa-inline.c (inline_transform): Set | |
23250 | always_inline_functions_inlined/after_inlining. | |
23251 | * tree-optimize.c (execute_fixup_cfg): Do not set them here. | |
23252 | (pass_fixup_cfg): New pass. | |
23253 | * passes.c (init_optimization_passes): Add fixup_cfg. | |
23254 | ||
17021bc8 RG |
23255 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23256 | ||
23257 | PR tree-optimization/38458 | |
23258 | * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first | |
23259 | argument use the arguments copy-of value. | |
23260 | ||
e8114fba RG |
23261 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23262 | ||
23263 | PR tree-optimization/38180 | |
23264 | * tree-ssa-ccp.c (get_default_value): Simplify. | |
23265 | (likely_value): Likewise. | |
23266 | (surely_varying_stmt_p): Properly handle VOP case. | |
23267 | (ccp_initialize): Likewise. | |
23268 | (ccp_fold): Handle propagating through *&. | |
23269 | (fold_const_aggregate_ref): Also handle decls. | |
23270 | ||
257eb6e3 JH |
23271 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23272 | ||
23273 | * cgraph.c (dump_cgraph_node): Add replace output flag by process. | |
23274 | * cgraph.h (cgraph_node): Likewise. | |
23275 | * cgraphunit.c (cgraph_process_new_functions): Set process flag. | |
23276 | (cgraph_reset_node): Use process flag. | |
23277 | (cgraph_mark_functions_to_output): Likewise. | |
23278 | (cgraph_expand_function): Likewise. | |
23279 | (cgraph_expand_all_functions): Likewise. | |
23280 | (cgraph_output_in_order): Likewise. | |
23281 | * dwarf2out.c (reference_to_unused): Likewise. | |
23282 | * passes.c do_per_function_toporder): Likewise. | |
23283 | ||
61a05df1 JH |
23284 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23285 | ||
23286 | Bring from lto-branch: | |
ba20e309 | 23287 | |
61a05df1 JH |
23288 | 2008-09-03 Doug Kwan <dougkwan@google.com> |
23289 | ||
23290 | * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t | |
23291 | enums instead of reason strings. | |
23292 | * cgraph.c (cgraph_create_edge): Same. | |
23293 | (cgraph_inline_failed_string): New function. | |
23294 | * cgraph.h (cgraph_inline_failed_t): New enum type. | |
23295 | (cgraph_inline_failed_string): New prototype. | |
23296 | (struct cgraph_edge): Change type of INLINED_FAILED from constant | |
23297 | char pointer to cgraph_inline_failed_t. | |
23298 | (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t. | |
23299 | (cgraph_default_inline_p): Ditto. | |
60839f5d | 23300 | * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON |
61a05df1 JH |
23301 | to cgraph_inline_failed_t pointer. |
23302 | * cif-code.def: New file. | |
23303 | * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a | |
23304 | reason string. | |
23305 | (cgraph_check_inline_limits): Change type of REASON to pointer to | |
23306 | cgraph_inline_failed_t. Replace reason strings with enums. | |
23307 | (cgraph_default_inline_p): Ditto. | |
23308 | (cgraph_recursive_inlining_p): Ditto. | |
23309 | (update_caller_keys): Change type of FAILED_REASON to | |
23310 | cgraph_inline_failed_t. | |
23311 | (cgraph_set_inline_failed): Change type of REASON to pointer to | |
23312 | cgraph_inline_failed_t. Call cgraph_inline_failed_string to | |
23313 | convert enums to strings for text output. | |
23314 | (cgraph_decide_inlining_of_small_function): Change FAILED_REASON | |
23315 | to be of type cgraph_inline_failed_t. Replace reason strings with | |
23316 | enums. Call cgraph_inline_failed_string to covert enums | |
23317 | to strings for text output. | |
23318 | (cgraph_decide_inlining): Replace reason strings with enums. | |
23319 | (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON | |
23320 | to cgraph_inline_failed_t type. Call cgraph_inline_failed_string | |
23321 | for text output. | |
23322 | * tree-inline.c (expand_call_inline): Change type of REASON | |
23323 | to cgraph_inline_failed_t. Replace reason strings with enums. | |
23324 | Call cgraph_inline_failed_string for text output. | |
23325 | * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies. | |
23326 | (cgraph.o): Ditto. | |
23327 | ||
144e8aac JH |
23328 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23329 | ||
23330 | * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node, | |
23331 | cgraph_clone_node): Remove master clone handling. | |
23332 | (cgraph_is_master_clone, cgraph_master_clone): Remove. | |
23333 | * cgraph.h (master_clone): Remove. | |
23334 | (cgraph_is_master_clone, cgraph_master_clone): Remove. | |
23335 | * ipa-type-escape.c (type_escape_execute): Remove use of master clone. | |
23336 | (tree-ssa-structalias.c (ipa_pta_execute): Likewise. | |
23337 | ||
4a371c8d JH |
23338 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23339 | ||
23340 | * cgraph.c (cgraph_function_body_availability): Functions declared | |
23341 | inline are always safe to assume that it is not going to be replaced. | |
23342 | ||
6cdb0ee3 RG |
23343 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23344 | ||
23345 | PR tree-optimization/38513 | |
23346 | * tree-ssa-pre.c (eliminate): Remove redundant stores. | |
23347 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle | |
23348 | EXC_PTR_EXPR and FILTER_EXPR. | |
23349 | (get_ref_from_reference_ops): Likewise. | |
23350 | ||
8ca1fd76 RG |
23351 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23352 | ||
23353 | PR tree-optimization/38968 | |
23354 | * tree-vect-analyze.c (vect_compute_data_ref_alignment): | |
23355 | Use FLOOR_MOD_EXPR to compute misalignment. | |
23356 | ||
a254e44d RG |
23357 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
23358 | ||
23359 | PR tree-optimization/37795 | |
23360 | * tree.h (combine_comparisons): Declare. | |
23361 | * fold-const.c (combine_comparisons): Export. | |
23362 | * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive | |
23363 | comparisons. | |
23364 | (ifcombine_iforif): Use combine_comparisons. | |
23365 | ||
a8ee227c JH |
23366 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
23367 | ||
23368 | * tree-eh.c (inlinable_call_p): New function. | |
23369 | (make_eh_edges): Use it. | |
23370 | (verify_eh_edges): Use it. | |
23371 | (stmt_can_throw_external, stmt_can_throw_internal): Use it. | |
23372 | * except.c (reachable_next_level): Add inlinable_function argument | |
23373 | (sjlj_find_directly_reachable_regions): Update. | |
23374 | (add_reachable_handler): Do not set saw_any_handlers. | |
23375 | (reachable_next_level): Handle MUST_NOT_THROW more curefully. | |
23376 | (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1): | |
23377 | Add new inlinable call parameter. | |
23378 | (can_throw_internal, can_throw_external): Update. | |
23379 | * except.h (can_throw_internal_1, can_throw_external_1, | |
23380 | foreach_reachable_handler): Update declaration. | |
23381 | ||
52c0e446 JM |
23382 | 2009-03-28 Joseph Myers <joseph@codesourcery.com> |
23383 | ||
23384 | * config/arm/t-arm-coff, config/h8300/coff.h, | |
23385 | config/i386/i386-aout.h, config/i386/i386-coff.h, | |
23386 | config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h, | |
23387 | config/pdp11/2bsd.h, config/rs6000/aix41.h, | |
23388 | config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h, | |
23389 | fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c, | |
23390 | scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h, | |
23391 | sys-types.h: Remove. | |
23392 | * Makefile.in: Remove protoize and fixproto support and references | |
23393 | in comments. | |
23394 | (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO, | |
23395 | PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES): | |
23396 | Remove. | |
23397 | (ALL_HOST_OBJS): Remove $(PROTO_OBJS). | |
23398 | (MOSTLYCLEANFILES): Remove protoize$(exeext) and | |
23399 | unprotoize$(exeext). | |
23400 | (rest.encap): Don't depend on $(STMP_FIXPROTO) | |
23401 | (.PHONY): Don't depend on proto. | |
23402 | (libgcc-support): Don't depend on $(STMP_FIXPROTO). | |
23403 | (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext), | |
23404 | protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple, | |
23405 | deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext), | |
23406 | build/gen-protos.o, build/scan.o, xsys-protos.h, | |
23407 | build/fix-header$(build_exeext), build/fix-header.o, | |
23408 | build/scan-decls.o, fixhdr.ready, stmp-fixproto, | |
23409 | stmp-install-fixproto): Remove. | |
23410 | (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X, | |
23411 | SYSCALLS.c or fixproto files. | |
23412 | (install-common): Don't install protoize. | |
23413 | (install-headers-tar, install-headers-cpio, install-headers-cp): | |
23414 | Don't depend on $(STMP_FIXPROTO). | |
23415 | (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't | |
23416 | install fixproto files or write out fixproto settings. | |
23417 | (uninstall): Don't uninstall protoize. | |
23418 | * config.gcc (use_fixproto): Remove. | |
23419 | (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*, | |
23420 | i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd, | |
23421 | rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove. | |
23422 | * config/m32r/t-linux (STMP_FIXPROTO): Remove. | |
23423 | * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code. | |
23424 | * config/mips/t-iris (FIXPROTO_DEFINES): Remove. | |
23425 | * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove. | |
23426 | * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code. | |
23427 | * config/t-svr4 (FIXPROTO_DEFINES): Remove. | |
23428 | * config/t-vxworks (STMP_FIXPROTO): Remove. | |
23429 | * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T, | |
23430 | STMP_FIXPROTO): Remove. | |
23431 | * config.in, configure: Regenerate. | |
23432 | * crtstuff.c (gid_t, uid_t): Don't undefine. | |
23433 | * doc/install.texi: Change m68k-coff to m68k-elf in example. | |
23434 | (arm-*-coff, arm-*-aout: Remove target entries. | |
23435 | (*-ibm-aix*): Mention removal of support for AIX 4.2 and older. | |
23436 | Remove mention of AIX 4.1. | |
23437 | (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*. | |
23438 | * doc/invoke.texi (Running Protoize): Remove. | |
23439 | * doc/trouble.texi (Actual Bugs): Remove mention of fixproto. | |
23440 | (Protoize Caveats): Remove. | |
23441 | * tsystem.h: Update comments on headers assumed to exist. | |
23442 | ||
20a07f44 VM |
23443 | 2009-03-27 Vladimir Makarov <vmakarov@redhat.com> |
23444 | ||
23445 | * genautomata.c: Add a new year to the copyright. Add a new | |
23446 | reference. | |
23447 | (struct insn_reserv_decl): Add comments for member bypass_list. | |
23448 | (find_bypass): Remove. | |
23449 | (insert_bypass): New. | |
23450 | (process_decls): Use insert_bypass. | |
23451 | (output_internal_insn_latency_func): Output all bypasses with the | |
23452 | same input insn in one switch case. | |
23453 | ||
23454 | * rtl.def (define_bypass): Describe bypass choice. | |
23455 | * doc/md.texi (define_bypass): Ditto. | |
23456 | ||
3a0d06c1 RB |
23457 | 2009-03-27 Richard Guenther <rguenther@suse.de> |
23458 | ||
23459 | * gimplify.c (mark_addressable): Export. | |
23460 | * tree-flow.h (mark_addressable): Declare. | |
23461 | * tree-ssa-loop-manip.c (create_iv): Mark the base addressable. | |
23462 | * tree-ssa.c (verify_phi_args): Verify that address taken | |
23463 | variables have TREE_ADDRESSABLE set. | |
23464 | ||
23465 | 2009-03-27 Richard Guenther <rguenther@suse.de> | |
23466 | ||
23467 | * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ... | |
23468 | (build_fold_addr_expr_with_type): ... this. Remove in_fold handling. | |
23469 | Do not mark decls TREE_ADDRESSABLE. | |
23470 | (build_fold_addr_expr): Adjust. | |
23471 | (fold_addr_expr): Remove. | |
23472 | (fold_unary): Use build_fold_addr_expr. | |
23473 | (fold_comparison): Likewise. | |
23474 | (split_address_to_core_and_offset): Likewise. | |
23475 | * coverage.c (tree_coverage_counter_addr): Mark the array decl | |
23476 | TREE_ADDRESSABLE. | |
23477 | * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs. | |
23478 | (gimplify_modify_expr_to_memcpy): Mark source and destination | |
23479 | addressable. | |
23480 | * omp-low.c (create_omp_child_function): Mark the object decl | |
23481 | TREE_ADDRESSABLE. | |
23482 | (lower_rec_input_clauses): Mark the var we take the address of | |
23483 | TREE_ADDRESSABLE. | |
23484 | (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE. | |
23485 | ||
2ac26e15 L |
23486 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23487 | ||
23488 | PR middle-end/39315 | |
23489 | * cfgexpand.c (expand_one_stack_var_at): Change alignment | |
23490 | limit to MAX_SUPPORTED_STACK_ALIGNMENT. | |
23491 | ||
472c7fbd RG |
23492 | 2009-03-27 Richard Guenther <rguenther@suse.de> |
23493 | ||
23494 | PR tree-optimization/39120 | |
23495 | * tree-ssa-structalias.c (handle_rhs_call): Fill out return | |
23496 | constraints. | |
23497 | (handle_lhs_call): Process return constraints. Add escape | |
23498 | constraints if necessary. | |
23499 | (handle_const_call): Fill out return constraints. Make nested | |
23500 | case more precise. Avoid consttmp if possible. | |
23501 | (handle_pure_call): Fill out return constraints. Avoid | |
23502 | callused if possible. | |
23503 | (find_func_aliases): Simplify call handling. | |
23504 | ||
23505 | 2009-03-27 Richard Guenther <rguenther@suse.de> | |
23506 | ||
23507 | PR tree-optimization/39120 | |
23508 | * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED | |
23509 | as a representative. | |
23510 | (solve_graph): Do propagate CALLUSED. | |
23511 | (handle_pure_call): Use a scalar constraint from CALLUSED for | |
23512 | the return value. | |
23513 | (find_what_p_points_to): CALLUSED shall not appear in poins-to | |
23514 | solutions. | |
23515 | ||
d9223014 L |
23516 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23517 | ||
23518 | PR c/39323 | |
23519 | * c-common.c (handle_aligned_attribute): Properly check alignment | |
23520 | overflow. Use (1U << i) instead of (1 << i). | |
23521 | ||
ba20e309 | 23522 | * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align. |
d9223014 L |
23523 | |
23524 | * expr.h (get_mem_align_offset): Updated. | |
23525 | ||
23526 | * tree.h (tree_decl_common): Change align to "unsigned int" and | |
23527 | move it before pointer_alias_set. | |
23528 | ||
689b689c L |
23529 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23530 | Jakub Jelinek <jakub@redhat.com> | |
23531 | ||
23532 | PR target/38034 | |
23533 | * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input | |
23534 | gr_register_operand with gr_reg_or_0_operand. | |
23535 | (cmpxchg_rel_di): Likewise. | |
23536 | (sync_lock_test_and_set<mode>): Likewise. | |
23537 | ||
c619e982 L |
23538 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23539 | ||
23540 | * jump.c (rtx_renumbered_equal_p): Use subreg_get_info. | |
23541 | (true_regnum): Likewise. | |
23542 | ||
23543 | * rtlanal.c (subreg_info): Moved to ... | |
23544 | * rtl.h (subreg_info): Here. New. | |
23545 | (subreg_get_info): New. | |
23546 | ||
23547 | * rtlanal.c (subreg_get_info): Make it extern. | |
23548 | ||
51212b32 L |
23549 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23550 | ||
23551 | PR target/39472 | |
23552 | * config/i386/i386.c (ix86_abi): New. | |
23553 | (override_options): Handle -mabi=. | |
ba20e309 | 23554 | (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi. |
51212b32 L |
23555 | (ix86_call_abi_override): Likewise. |
23556 | (init_cumulative_args): Likewise. | |
23557 | (function_arg_advance): Likewise. | |
23558 | (function_arg_64): Likewise. | |
23559 | (function_arg): Likewise. | |
23560 | (ix86_pass_by_reference): Likewise. | |
23561 | (ix86_function_value_regno_p): Likewise. | |
23562 | (ix86_build_builtin_va_list_abi): Likewise. | |
23563 | (setup_incoming_varargs_64): Likewise. | |
23564 | (is_va_list_char_pointer): Likewise. | |
23565 | (ix86_init_machine_status): Likewise. | |
ba20e309 | 23566 | (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi. |
51212b32 L |
23567 | (ix86_function_type_abi): Return enum calling_abi. Rewrite |
23568 | for 64bit. Replace DEFAULT_ABI with ix86_abi. | |
ba20e309 | 23569 | (ix86_function_abi): Make it static and return enum calling_abi. |
51212b32 L |
23570 | (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI |
23571 | with ix86_abi. | |
23572 | (ix86_fn_abi_va_list): Updated. | |
23573 | ||
23574 | * config/i386/i386.h (ix86_abi): New. | |
23575 | (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi. | |
23576 | (CONDITIONAL_REGISTER_USAGE): Likewise. | |
23577 | (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi. | |
23578 | (machine_function): Likewise. | |
23579 | ||
23580 | * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI | |
23581 | with ix86_abi. | |
23582 | * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise. | |
23583 | (STACK_BOUNDARY): Likewise. | |
23584 | * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise. | |
23585 | ||
23586 | * config/i386/i386.opt (mabi=): New. | |
23587 | ||
23588 | * config/i386/i386-protos.h (ix86_cfun_abi): Changed to | |
23589 | return enum calling_abi. | |
23590 | (ix86_function_type_abi): Likewise. | |
23591 | (ix86_function_abi): Removed. | |
23592 | ||
23593 | * doc/invoke.texi: Document -mabi= option for x86. | |
23594 | ||
7338ea63 KG |
23595 | 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
23596 | ||
23597 | * builtins.c (real_dconstp): Delete. | |
23598 | (fold_builtin_logarithm): Remove inaccurate log(e) special case. | |
23599 | ||
68599f33 DS |
23600 | 2009-03-27 Dodji Seketeli <dodji@redhat.com> |
23601 | Jakub Jelinek <jakub@redhat.com> | |
23602 | ||
23603 | PR debug/37959 | |
23604 | * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute. | |
23605 | (gen_subprogram_die): When a function is explicit, generate the | |
23606 | DW_AT_explicit attribute. | |
23607 | * langhooks.h (struct lang_hooks_for_decls): Add | |
23608 | function_decl_explicit_p langhook. | |
23609 | * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define. | |
23610 | (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P. | |
23611 | ||
9f5e9983 JJ |
23612 | 2009-03-27 Jakub Jelinek <jakub@redhat.com> |
23613 | ||
64d7685c JJ |
23614 | * builtins.c (fold_builtin_memory_op): Optimize memmove |
23615 | into memcpy if we can prove source and destination don't overlap. | |
23616 | ||
9f5e9983 JJ |
23617 | * tree-inline.c: Include gt-tree-inline.h. |
23618 | (clone_fn_id_num): New variable. | |
23619 | (clone_function_name): New function. | |
23620 | (tree_function_versioning): Use it. | |
23621 | * Makefile.in (GTFILES): Add tree-inline.c. | |
23622 | ||
e54d52a8 MM |
23623 | 2009-03-27 Mark Mitchell <mark@codesourcery.com> |
23624 | ||
23625 | * BASE-VER: Change to 4.5.0. | |
23626 | ||
e9d51dc6 XDL |
23627 | 2009-03-27 Xinliang David Li <davidxl@google.com> |
23628 | ||
23629 | PR tree-optimization/39557 | |
23630 | * tree-ssa.c (warn_uninitialized_vars): free postdom info. | |
23631 | ||
4577cea1 XDL |
23632 | 2009-03-27 Xinliang David Li <davidxl@google.com> |
23633 | ||
23634 | PR tree-optimization/39548 | |
2ba9daa7 | 23635 | * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy |
4577cea1 XDL |
23636 | candidate check. |
23637 | ||
0f7464f4 L |
23638 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23639 | ||
23640 | * c-common.c (pointer_int_sum): Use %wd on return from | |
23641 | tree_low_cst. | |
23642 | ||
a8847a7f L |
23643 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23644 | ||
23645 | * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC | |
23646 | on return from tree_low_cst. | |
23647 | ||
b0957daf AP |
23648 | 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com> |
23649 | ||
23650 | PR c++/36799 | |
ba20e309 UB |
23651 | * ginclude/stdarg.h (va_copy): Define also for |
23652 | __GXX_EXPERIMENTAL_CXX0X__. | |
b0957daf | 23653 | |
a5f805df MLI |
23654 | 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
23655 | ||
23656 | PR c++/35652 | |
23657 | * builtins.h (c_strlen): Do not warn here. | |
23658 | * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. | |
23659 | * c-common.c (pointer_int_sum): Take an explicit location. | |
23660 | Warn about offsets out of bounds. | |
23661 | * c-common.h (pointer_int_sum): Adjust declaration. | |
23662 | ||
6f401211 RW |
23663 | 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23664 | ||
a5f805df MLI |
23665 | * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo |
23666 | markup glitch. | |
6f401211 | 23667 | |
5a59b39e JJ |
23668 | 2009-03-26 Jakub Jelinek <jakub@redhat.com> |
23669 | ||
23670 | PR c++/39554 | |
23671 | * opts.c (warn_if_disallowed_function_p): Don't assume | |
23672 | get_callee_fndecl must return non-NULL. | |
23673 | ||
d5f89b53 VM |
23674 | 2009-03-26 Vladimir Makarov <vmakarov@redhat.com> |
23675 | ||
23676 | PR rtl-optimization/39522 | |
23677 | * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too | |
23678 | when reg_reloaded_valid is set. | |
23679 | ||
61238a79 UW |
23680 | 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23681 | ||
23682 | * config/spu/divv2df3.c: New file. | |
23683 | * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it. | |
23684 | (DPBIT_FUNCS): Filter out _div_df. | |
23685 | ||
03f8829b BS |
23686 | 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com> |
23687 | ||
23688 | * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before | |
23689 | a jump insn, count that jump in the distance to the loop start. | |
23690 | ||
9fdcdc74 KK |
23691 | 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org> |
23692 | ||
23693 | PR target/39523 | |
23694 | * config/sh/sh.c (calc_live_regs): Fix condition for global | |
23695 | registers except PIC_OFFSET_TABLE_REGNUM. | |
23696 | ||
46994828 KT |
23697 | 2009-03-25 Kai Tietz <kai.tietz@onevision.com> |
23698 | ||
23699 | PR/39518 | |
23700 | * doc/invoke.texi (-mconsole): New. | |
23701 | (-mcygwin): New. | |
23702 | (-mno-cygwin): New. | |
23703 | (-mdll): New. | |
23704 | (-mnop-fun-dllimport): New. | |
23705 | (-mthread): New. | |
23706 | (-mwin32): New. | |
23707 | (-mwindows): New. | |
23708 | (sub section "i386 and x86-64 Windows Options"): New. | |
23709 | ||
60839f5d | 23710 | 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org> |
370017b4 RC |
23711 | |
23712 | * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC. | |
23713 | * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS. | |
23714 | ||
ae560440 RG |
23715 | 2009-03-25 Richard Guenther <rguenther@suse.de> |
23716 | ||
23717 | PR middle-end/39497 | |
23718 | * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead | |
23719 | of -Wno-error. | |
23720 | ||
cd510f15 AM |
23721 | 2009-03-25 Andrey Belevantsev <abel@ispras.ru> |
23722 | ||
23723 | * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when | |
23724 | neither of haifa/selective schedulers are working. | |
23725 | ||
44ab0f0e RW |
23726 | 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23727 | ||
23728 | * doc/invoke.texi (Debugging Options): Fix description of | |
23729 | -fno-merge-debug-strings. | |
23730 | ||
ad9646c7 HPN |
23731 | 2009-03-24 Hans-Peter Nilsson <hp@axis.com> |
23732 | ||
e6142656 HPN |
23733 | * config/cris/libgcc.ver: New version-script. |
23734 | * config/cris/t-linux (SHLIB_MAPFILES): Use it. | |
23735 | ||
ad9646c7 HPN |
23736 | * configure.ac <GAS features, nop mnemonic>: Add pattern |
23737 | crisv32-*-* for "nop". | |
ba20e309 | 23738 | <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32. |
ad9646c7 HPN |
23739 | * configure: Regenerate. |
23740 | ||
09ac4473 IR |
23741 | 2009-03-24 Ira Rosen <irar@il.ibm.com> |
23742 | ||
23743 | PR tree-optimization/39529 | |
23744 | * tree-vect-transform.c (vect_create_data_ref_ptr): Call | |
23745 | mark_sym_for_renaming for the tag copied to the new vector | |
23746 | pointer. | |
23747 | ||
d94a427e AL |
23748 | 2009-03-24 Arthur Loiret <aloiret@debian.org> |
23749 | ||
ba20e309 | 23750 | * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha. |
d94a427e AL |
23751 | * config/alpha/linux.h (host_detect_local_cpu): Declare, add to |
23752 | EXTRA_SPEC_FUNCTIONS. | |
23753 | (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros. | |
23754 | * config/alpha/driver-alpha.c, config/alpha/x-alpha: New. | |
23755 | * doc/invoke.texi (DEC Alpha Options): Document 'native' value for | |
23756 | -march and -mtune options. | |
23757 | ||
60839f5d | 23758 | 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org> |
722d07aa RC |
23759 | |
23760 | * config/m68k/t-rtems: Add m5329 multilib. | |
23761 | ||
603f5959 DS |
23762 | 2009-03-24 Dodji Seketeli <dodji@redhat.com> |
23763 | Jakub Jelinek <jakub@redhat.com> | |
23764 | ||
23765 | PR debug/39524 | |
23766 | * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration | |
23767 | nodes. | |
23768 | ||
c5cdb03f JJ |
23769 | 2009-03-23 Jakub Jelinek <jakub@redhat.com> |
23770 | ||
23771 | PR c/39495 | |
23772 | * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression | |
23773 | instead of c_parser_expression_conv, if original_code isn't one of the | |
23774 | 4 allowed comparison codes, fail. | |
23775 | ||
3691626c RG |
23776 | 2009-03-23 Richard Guenther <rguenther@suse.de> |
23777 | ||
23778 | * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts. | |
23779 | * tree.h (struct tree_type): Likewise. | |
23780 | * reload.h (struct insn_chain): Likewise. | |
23781 | * dwarf2out.c (struct dw_loc_descr_struct): Likewise. | |
23782 | * function.h (struct function): Likewise. | |
23783 | * tree-ssa-structalias.c (struct equiv_class_label): Likewise. | |
23784 | ||
88ccb72a JJ |
23785 | 2009-03-23 Jakub Jelinek <jakub@redhat.com> |
23786 | ||
23787 | PR tree-optimization/39516 | |
23788 | * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable. | |
23789 | ||
60839f5d | 23790 | 2009-03-23 Bingfeng Mei <bmei@broadcom.com> |
a583a67e | 23791 | |
2ba9daa7 | 23792 | * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint |
a583a67e BM |
23793 | should be set true if BITS_PER_WORD of target is bigger than 32 |
23794 | ||
f82162f8 HPN |
23795 | 2009-03-22 Hans-Peter Nilsson <hp@axis.com> |
23796 | ||
23797 | * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): | |
23798 | Translate -B-options to -rpath-link. Correct existing | |
23799 | rpath-link and conditionalize on !nostdlib. | |
23800 | ||
048fd785 RW |
23801 | 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23802 | ||
23803 | * doc/extend.texi (Function Attributes, Variable Attributes): | |
23804 | Fix typos. | |
23805 | * doc/invoke.texi (Debugging Options, Optimize Options) | |
23806 | (i386 and x86-64 Options, MCore Options): Likewise. | |
23807 | ||
6e75c1a9 JJ |
23808 | 2009-03-20 Jakub Jelinek <jakub@redhat.com> |
23809 | ||
23810 | PR debug/37890 | |
23811 | * dwarf2out.c (gen_namespace_die): Add context_die argument and use | |
23812 | it for block local namespace aliases. | |
23813 | (gen_decl_die): Pass context_die to gen_namespace_die. | |
23814 | ||
ea1199ee JJ |
23815 | 2009-03-19 Jakub Jelinek <jakub@redhat.com> |
23816 | ||
23817 | PR c/39495 | |
23818 | * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s | |
23819 | minimum or maximum value. | |
23820 | ||
58929c10 AO |
23821 | 2009-03-19 Alexandre Oliva <aoliva@redhat.com> |
23822 | ||
23823 | * reginfo.c (globalize_reg): Recompute derived reg sets. | |
23824 | ||
60839f5d | 23825 | 2009-03-19 Ozkan Sezer <sezeroz@gmail.com> |
234952b3 OS |
23826 | |
23827 | PR target/39063 | |
23828 | * libgcc2.c (mprotect): Do not use signed arguments for | |
23829 | VirtualProtect, use DWORD arguments. Also fix the 'may | |
23830 | be used uninitialized' warning for the np variable. | |
23831 | ||
f57c2f04 JJ |
23832 | 2009-03-19 Jakub Jelinek <jakub@redhat.com> |
23833 | ||
23834 | PR target/39496 | |
23835 | * config/i386/i386.c (ix86_function_regparm): Don't optimize local | |
23836 | functions using regparm calling conventions when not optimizing. | |
23837 | (ix86_function_sseregparm): Similarly for sseregparm calling | |
23838 | conventions. | |
23839 | ||
9e517d61 LF |
23840 | 2009-03-19 Li Feng <nemokingdom@gmail.com> |
23841 | ||
23842 | PR middle-end/39500 | |
23843 | * tree-data-ref.c (analyze_subscript_affine_affine): There is no | |
23844 | dependence if the first conflict is after niter iterations. | |
23845 | ||
8ef20026 HPN |
23846 | 2009-03-19 Hans-Peter Nilsson <hp@axis.com> |
23847 | ||
23848 | PR middle-end/38609 | |
23849 | * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all | |
23850 | functions with dynamic stack-pointer adjustments. | |
23851 | ||
64e4a1a6 BE |
23852 | 2009-03-19 Ben Elliston <bje@au.ibm.com> |
23853 | ||
23854 | * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data | |
23855 | option; change to -msdata=data. | |
23856 | ||
9a0f3e86 RW |
23857 | 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23858 | ||
23859 | * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, | |
23860 | and -fopenmp. | |
23861 | ||
09bc5979 EB |
23862 | 2009-03-18 Eric Botcazou <ebotcazou@adacore.com> |
23863 | ||
23864 | PR target/35180 | |
23865 | * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output. | |
23866 | ||
332459cd SL |
23867 | 2009-03-18 Sandra Loosemore <sandra@codesourcery.com> |
23868 | ||
23869 | * doc/invoke.texi (Code Gen Options): Expand discussion of | |
23870 | -fno-common. | |
23871 | ||
8f5929e1 JJ |
23872 | 2009-03-18 Jakub Jelinek <jakub@redhat.com> |
23873 | ||
23874 | * dse.c (struct group_info): Reorder fields for 64-bit hosts. | |
23875 | * matrix-reorg.c (struct matrix_info): Likewise. | |
23876 | * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise. | |
23877 | * rtl.h (struct mem_attrs): Likewise. | |
23878 | * df.h (struct df): Likewise. | |
23879 | * tree-data-ref.h (struct data_dependence_relation): Likewise. | |
23880 | * ira-int.h (struct ira_allocno): Likewise. | |
23881 | * df-scan.c (struct df_collection_rec): Likewise. | |
23882 | * ira.c (struct equivalence): Likewise. | |
23883 | * function.c (struct temp_slot): Likewise. | |
23884 | * cfgloop.h (struct loop): Likewise. | |
23885 | ||
d130d647 JJ |
23886 | PR debug/39485 |
23887 | * function.c (use_register_for_decl): When not optimizing, disregard | |
23888 | register keyword for variables with types containing methods. | |
23889 | ||
9968d233 SP |
23890 | 2009-03-18 Sebastian Pop <sebastian.pop@amd.com> |
23891 | ||
23892 | PR middle-end/39447 | |
23893 | * graphite.c (exclude_component_ref): Renamed contains_component_ref_p. | |
23894 | (is_simple_operand): Call contains_component_ref_p before calling data | |
23895 | reference analysis that would fail on COMPONENT_REFs. | |
23896 | ||
23897 | * tree-vrp.c (search_for_addr_array): Fix formatting. | |
23898 | ||
69484bfd RG |
23899 | 2009-03-18 Richard Guenther <rguenther@suse.de> |
23900 | ||
23901 | * tree-vect-transform.c (vect_loop_versioning): Fold the | |
23902 | generated comparisons. | |
23903 | * tree-vectorizer.c (set_prologue_iterations): Likewise. | |
23904 | (slpeel_tree_peel_loop_to_edge): Likewise. | |
23905 | ||
66811228 RW |
23906 | 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23907 | ||
0631b69f RW |
23908 | PR middle-end/37805 |
23909 | * opts.c (print_specific_help): In addition to `undocumented', | |
23910 | accept `separate' and `joined' flags if passed alone. Describe | |
23911 | output by the first matched one of those. | |
23912 | (common_handle_option): Skip over empty strings. | |
23913 | * gcc.c (display_help): Fix help string for `--help='. | |
23914 | * doc/invoke.texi (Option Summary, Overall Options): With | |
23915 | `--help=', classes and qualifiers can both be repeated, but | |
23916 | only the latter can be negated. One should not pass only | |
23917 | negated qualifiers. Fix markup and examples. | |
23918 | ||
66811228 RW |
23919 | Revert |
23920 | 2008-10-14 Jakub Jelinek <jakub@redhat.com> | |
23921 | PR middle-end/37805 | |
23922 | * opts.c (common_handle_option): Don't ICE on -fhelp=joined | |
23923 | and -fhelp=separate. | |
23924 | ||
3c072c6b JY |
23925 | 2009-03-17 Jing Yu <jingyu@google.com> |
23926 | ||
23927 | PR middle-end/39378 | |
80c65208 JY |
23928 | * function.h (struct rtl_data): Move is_thunk from here... |
23929 | (struct function): ...to here. | |
23930 | * cp/method.c (use_thunk): Change is_thunk from crtl to cfun. | |
3c072c6b JY |
23931 | * varasm.c (assemble_start_function): Change is_thunk from crtl to |
23932 | cfun. | |
80c65208 JY |
23933 | * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to |
23934 | cfun. | |
23935 | (alpha_does_function_need_gp, alpha_start_function): Likewise. | |
23936 | (alpha_output_function_end_prologue): Likewise. | |
23937 | (alpha_end_function, alpha_output_mi_thunk_osf): Likewise. | |
23938 | * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise. | |
23939 | (rs6000_output_function_epilogue): Likewise. | |
23940 | * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise. | |
3c072c6b | 23941 | |
9ade279b UB |
23942 | 2009-03-17 Uros Bizjak <ubizjak@gmail.com> |
23943 | ||
23944 | PR target/39482 | |
23945 | * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers | |
23946 | from different units in a single alternative. | |
23947 | (*truncdfsf_i387): Ditto. | |
23948 | (*truncxfsf2_mixed): Ditto. | |
23949 | (*truncxfdf2_mixed): Ditto. | |
23950 | ||
16e60c17 JJ |
23951 | 2009-03-17 Jakub Jelinek <jakub@redhat.com> |
23952 | ||
98381eb4 JJ |
23953 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow |
23954 | non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL. | |
23955 | ||
df5deb18 JJ |
23956 | PR debug/39474 |
23957 | * tree-ssa-live.c (remove_unused_locals): Don't remove local | |
23958 | unused non-artificial variables when not optimizing. | |
23959 | ||
a3f596ba JJ |
23960 | PR debug/39471 |
23961 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit | |
23962 | DW_TAG_imported_module even if decl is IMPORTED_DECL with | |
23963 | NAMESPACE_DECL in its DECL_INITIAL. | |
23964 | ||
6b2b8871 JJ |
23965 | PR middle-end/39443 |
23966 | * optabs.c (set_user_assembler_libfunc): New function. | |
23967 | * expr.h (set_user_assembler_libfunc): New prototype. | |
23968 | * c-common.c: Include libfuncs.h. | |
23969 | (set_builtin_user_assembler_name): Call set_user_assembler_libfunc | |
23970 | for memcmp, memset, memcpy, memmove and abort. | |
23971 | * Makefile.in (c-common.o): Depend on libfuncs.h. | |
23972 | ||
16e60c17 JJ |
23973 | PR debug/39412 |
23974 | * dwarf2out.c (gen_inlined_enumeration_type_die, | |
23975 | gen_inlined_structure_type_die, gen_inlined_union_type_die, | |
23976 | gen_tagged_type_instantiation_die): Removed. | |
23977 | (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin | |
23978 | do nothing. | |
23979 | ||
4d936aca JJ |
23980 | 2009-03-17 Janis Johnson <janis187@us.ibm.com> |
23981 | ||
23982 | PR testsuite/38526 | |
23983 | * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment | |
23984 | its use. | |
23985 | (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest. | |
23986 | (check-parallel-%): Ditto. | |
23987 | (check-consistency): Ditto. | |
23988 | ||
4e9b2e50 KT |
23989 | 2009-03-17 Kai Tietz <kai.tietz@onevision.com> |
23990 | ||
23991 | * ipa-struct-reorg.c (create_general_new_stmt): Initialize | |
23992 | local variable rhs by NULL_TREE. | |
23993 | ||
21440b2d L |
23994 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> |
23995 | ||
23996 | PR target/39477 | |
9ade279b | 23997 | * doc/extend.texi: Correct register behavior for regparm on Intel 386. |
21440b2d | 23998 | |
d8905c6a L |
23999 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> |
24000 | ||
24001 | PR target/39476 | |
9ade279b | 24002 | * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit. |
d8905c6a L |
24003 | |
24004 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> | |
435a61d3 L |
24005 | |
24006 | PR target/39473 | |
24007 | * config/i386/i386.c (ix86_expand_call): Check extra clobbers | |
24008 | for ms->sysv ABI calls only in 64bit mode. | |
24009 | ||
24010 | * config/i386/i386.md (untyped_call): Support 32bit. | |
24011 | ||
cdcabece L |
24012 | 2009-03-16 H.J. Lu <hongjiu.lu@intel.com> |
24013 | ||
24014 | * doc/extend.texi: Replace x86_65 with x86_64. | |
24015 | ||
97b4ba9f JJ |
24016 | 2009-03-16 Jakub Jelinek <jakub@redhat.com> |
24017 | ||
24018 | PR tree-optimization/39455 | |
24019 | * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types | |
24020 | mismatches for POINTER_TYPE_P (type). | |
24021 | (number_of_iterations_le): Likewise. | |
24022 | ||
60839f5d | 24023 | 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
83c191e1 HS |
24024 | |
24025 | * config/picochip/picochip.c: Removed profiling support. | |
24026 | * config/picochip/picochip.md: Removed profiling instruction. | |
24027 | * config/picochip/picochip.h: Removed profiling builtin. | |
24028 | ||
f38095f3 JM |
24029 | 2009-03-16 Joseph Myers <joseph@codesourcery.com> |
24030 | ||
24031 | * doc/install.texi (--with-host-libstdcxx): Document. | |
24032 | ||
2cb4817b AS |
24033 | 2009-03-14 Anatoly Sokolov <aesok@post.ru> |
24034 | ||
24035 | PR target/34299 | |
24036 | * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for | |
24037 | generate a warning if the function name does not begin with | |
24038 | "__vector" and the function has either the 'signal' or 'interrupt' | |
24039 | attribute, from here to ... | |
24040 | (avr_declare_function_name): ...here. New function. | |
24041 | * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine. | |
24042 | * config/avr/avr-protos.h (avr_declare_function_name): Declare. | |
24043 | ||
39b2ac74 JJ |
24044 | 2009-03-14 Jakub Jelinek <jakub@redhat.com> |
24045 | ||
24046 | PR bootstrap/39454 | |
24047 | * cse.c (fold_rtx): Don't modify original const_arg1 when | |
24048 | canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a | |
24049 | separate variable instead. | |
24050 | * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything | |
24051 | from out of range shift counts. | |
24052 | (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly. | |
24053 | ||
ad41bd84 | 24054 | 2009-03-13 Catherine Moore <clm@codesourcery.com> |
f7a82dee | 24055 | |
60839f5d | 24056 | * config/i386/x-mingw32 (host-mingw32.o): Replace |
f7a82dee CM |
24057 | diagnostic.h with $(DIAGNOSTIC_H). |
24058 | ||
ad41bd84 | 24059 | 2009-03-12 Jakub Jelinek <jakub@redhat.com> |
03a18198 JJ |
24060 | |
24061 | PR target/39431 | |
24062 | * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New | |
24063 | predicate. | |
24064 | * config/i386/sync.md (sync_compare_and_swap<mode>, | |
24065 | sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check | |
24066 | if operands[1] is cmpxchg8b_pic_memory_operand, if not force address | |
24067 | into a register. | |
24068 | (sync_double_compare_and_swapdi_pic, | |
24069 | sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be | |
24070 | cmpxchg8b_pic_memory_operand instead of just memory_operand. | |
24071 | ||
122c59c7 L |
24072 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
24073 | ||
24074 | PR target/39445 | |
9ade279b | 24075 | * config/i386/i386.c (ix86_expand_push): Don't set memory alignment. |
122c59c7 | 24076 | |
cec8874f L |
24077 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
24078 | ||
24079 | PR target/39327 | |
24080 | * config/i386/sse.md (avx_addsubv8sf3): Correct item bits. | |
24081 | (avx_addsubv4df3): Likewise. | |
24082 | (*avx_addsubv4sf3): Likewise. | |
24083 | (sse3_addsubv4sf3): Likewise. | |
24084 | ||
bbb52802 L |
24085 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
24086 | ||
24087 | PR target/38824 | |
9ade279b | 24088 | * config/i386/i386.md: Compare REGNO on the new peephole2 patterns. |
bbb52802 | 24089 | |
a812fb07 VM |
24090 | 2009-03-12 Vladimir Makarov <vmakarov@redhat.com> |
24091 | ||
24092 | PR debug/39432 | |
24093 | * ira-int.h (struct allocno): Fix comment for calls_crossed_num. | |
24094 | * ira-conflicts.c (ira_build_conflicts): Prohibit call used | |
24095 | registers for allocnos created from user-defined variables. | |
24096 | ||
4caab5ba UW |
24097 | 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24098 | ||
24099 | PR target/39181 | |
24100 | * config/spu/spu.c (spu_expand_mov): Handle invalid subregs | |
24101 | of non-integer mode as well. | |
24102 | ||
498e51ca AN |
24103 | 2009-03-11 Adam Nemet <anemet@caviumnetworks.com> |
24104 | ||
24105 | * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P | |
24106 | for functions for which the parameter types are unknown. | |
24107 | ||
9bfaf89d JJ |
24108 | 2009-03-11 Jakub Jelinek <jakub@redhat.com> |
24109 | ||
24110 | PR target/39137 | |
9ade279b | 24111 | * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro. |
9bfaf89d JJ |
24112 | * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined. |
24113 | * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define. | |
24114 | * config/i386/i386.c (ix86_local_alignment): For | |
24115 | -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for | |
24116 | long long variables on the stack to avoid dynamic realignment. | |
24117 | Allow the first argument to be a decl rather than type. | |
24118 | * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document. | |
24119 | ||
18a3bdcb NC |
24120 | 2009-03-11 Nick Clifton <nickc@redhat.com> |
24121 | ||
24122 | PR target/5362 | |
40190a76 NC |
24123 | * config/mcore/mcore.opt: Remove deprecated m4align and m8align |
24124 | options. | |
24125 | Add description to mno-lsim option. | |
24126 | * config/mcore/mcore.h: Remove comment about deprecated m4align | |
24127 | option. | |
24128 | (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN. | |
24129 | * doc/invoke.texi: Add description of mno-lsim and | |
24130 | mstack-increment options. | |
24131 | ||
18a3bdcb NC |
24132 | * config/fr30/fr30.opt: Document the -mno-lsim option. |
24133 | * doc/invoke.texi: Add descriptions of the FR30's -msmall-model | |
24134 | and -mno-lsim options. | |
24135 | ||
dc215785 UW |
24136 | 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24137 | ||
24138 | * fold-const.c (fold_comparison): Only call fold_inf_compare | |
24139 | if the mode supports infinities. | |
24140 | ||
7716876b JM |
24141 | 2009-03-11 Jason Merrill <jason@redhat.com> |
24142 | ||
24143 | PR debug/39086 | |
24144 | * tree-nrv.c (tree_nrv): Don't do this optimization if the front | |
24145 | end already did. Notice GIMPLE_CALL modifications of the result. | |
24146 | Don't copy debug information from an ignored decl or a decl from | |
24147 | another function. | |
24148 | ||
ddef83d2 RG |
24149 | 2009-03-10 Richard Guenther <rguenther@suse.de> |
24150 | Nathan Froyd <froydnj@codesourcery.com> | |
24151 | ||
24152 | PR middle-end/37850 | |
9ade279b | 24153 | * libgcc2.c (__mulMODE3): Use explicit assignments to form the result. |
ddef83d2 RG |
24154 | (__divMODE3): Likewise. |
24155 | ||
9a9ba8d9 JJ |
24156 | 2009-03-09 Jakub Jelinek <jakub@redhat.com> |
24157 | ||
24158 | PR tree-optimization/39394 | |
24159 | * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and | |
24160 | DECL_SIZE_UNIT of variable length FIELD_DECLs. | |
24161 | ||
929b7fc3 AK |
24162 | 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
24163 | ||
24164 | * recog.c (verfiy_changes): Disallow renaming of hard regs in | |
24165 | inline asms for register asm ("") declarations. | |
24166 | ||
1803581d EB |
24167 | 2009-03-09 Eric Botcazou <ebotcazou@adacore.com> |
24168 | ||
24169 | * fold-const.c (fold_unary): Fix comment. | |
24170 | ||
8454d27e JH |
24171 | 2009-03-07 Jan Hubicka <jh@suse.cz> |
24172 | ||
24173 | PR target/39361 | |
969a5433 JJ |
24174 | * tree-inline.c (setup_one_parameter): Do replacement of const |
24175 | argument by constant in SSA form. | |
8454d27e | 24176 | |
3a695389 UW |
24177 | 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24178 | ||
24179 | PR middle-end/38028 | |
24180 | * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to | |
24181 | determine alignment passed to assign_stack_local. | |
24182 | (assign_parms_unsplit_complex): Likewise. | |
24183 | * except.c (sjlj_build_landing_pads): Likewise. | |
24184 | ||
9f0e7885 JJ |
24185 | 2009-03-06 Jakub Jelinek <jakub@redhat.com> |
24186 | ||
65401a0b JJ |
24187 | PR middle-end/39360 |
24188 | * tree-flow.h (add_referenced_var): Return bool instead of void. | |
24189 | * tree-dfa.c (add_referenced_var): Return result of | |
24190 | referenced_var_check_and_insert call. | |
24191 | * tree-inline.c (expand_call_inline): Call add_referenced_var instead | |
24192 | of referenced_var_check_and_insert. | |
24193 | ||
9f0e7885 | 24194 | PR debug/39372 |
9ade279b | 24195 | * dwarf2out.c (add_abstract_origin_attribute): Return origin_die. |
9f0e7885 JJ |
24196 | (gen_variable_die): Emit DW_AT_location on abstract static variable's |
24197 | DIE, don't emit it if abstract origin already has it. | |
24198 | * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any | |
24199 | BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless. | |
24200 | ||
3b664bd1 JBG |
24201 | 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
24202 | ||
ba20e309 | 24203 | * genpreds.c (needs_variable): Fix parentheses at variable name |
3b664bd1 JBG |
24204 | detection. |
24205 | (write_tm_constrs_h): Indent generated code. | |
24206 | ||
d8f8ca80 RR |
24207 | 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
24208 | ||
24209 | * doc/extend.texi (Function Attributes): Add documentation | |
24210 | for isr attributes. | |
24211 | ||
6c3d550c JJ |
24212 | 2009-03-06 Jakub Jelinek <jakub@redhat.com> |
24213 | ||
24214 | PR debug/39387 | |
24215 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL | |
24216 | take locus from its DECL_SOURCE_LOCATION instead of input_location. | |
24217 | ||
f9e96751 BS |
24218 | 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com> |
24219 | ||
24220 | * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark | |
24221 | the loop as bad. | |
24222 | ||
ee0ee7e2 JJ |
24223 | 2009-03-05 Jakub Jelinek <jakub@redhat.com> |
24224 | ||
24225 | PR debug/39379 | |
24226 | * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs | |
24227 | with blocks containing IMPORTED_DECLs in BLOCK_VARS. | |
24228 | ||
6c6094f1 UB |
24229 | 2009-03-05 Uros Bizjak <ubizjak@gmail.com> |
24230 | ||
24231 | * config/i386/i386.md (R8_REG, R9_REG): New constants. | |
24232 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named | |
24233 | constants instead of magic numbers. | |
24234 | (HARD_REGNO_CALLER_SAVE_MODE): Ditto. | |
24235 | (QI_REG_P): Ditto. | |
24236 | * config/i386/i386.c (x86_64_int_parameter_registers): Ditto. | |
24237 | (x86_64_ms_abi_int_parameter_registers): Ditto. | |
24238 | (x86_64_int_return_registers): Ditto. | |
09f8a8d3 | 24239 | (ix86_maybe_switch_abi): Ditto. |
6c6094f1 UB |
24240 | (ix86_expand_call): Ditto for clobbered_registers array. |
24241 | (ix86_hard_regno_mode_ok): Ditto. | |
24242 | (x86_extended_QIreg_mentioned_p): Ditto. | |
24243 | ||
b267bd41 R |
24244 | 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com> |
24245 | ||
6c6094f1 | 24246 | PR tree-optimization/39349 |
1f3ad3f0 R |
24247 | * cse.c (cse_insn): Fix loop to stop at VOIDmode. |
24248 | ||
b267bd41 R |
24249 | * combine.c (gen_lowpart_for_combine): Use omode when generating |
24250 | clobber. | |
24251 | ||
1242bc9d R |
24252 | 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com> |
24253 | ||
6c6094f1 | 24254 | PR rtl-optimization/39235 |
1242bc9d R |
24255 | * loop-iv.c (get_simple_loop_desc): Use XCNEW. |
24256 | ||
48f03606 ZD |
24257 | 2009-03-04 Zdenek Dvorak <ook@ucw.cz> |
24258 | ||
24259 | * graphite.c (nb_reductions_in_loop): Update simple_iv arguments. | |
24260 | ||
b505e785 RG |
24261 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
24262 | ||
24263 | PR tree-optimization/39362 | |
24264 | * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs | |
24265 | that occur in abnormal PHIs should be varying. | |
24266 | ||
f017bf5e ZD |
24267 | 2009-03-04 Zdenek Dvorak <ook@ucw.cz> |
24268 | ||
24269 | * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): | |
24270 | Extend comments. | |
24271 | (simple_iv): Take loop as an argument instead of statement. | |
24272 | * tree-scalar-evolution.h (simple_iv): Declaration changed. | |
24273 | * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls | |
24274 | to simple_iv. | |
24275 | * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev): | |
24276 | Ditto. | |
24277 | * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto. | |
24278 | * matrix-reorg.c (analyze_transpose): Ditto. | |
24279 | * tree-data-ref.c (dr_analyze_innermost): Ditto. | |
24280 | * tree-vect-analyze.c (vect_analyze_data_refs): Ditto. | |
24281 | * tree-predcom.c (ref_at_iteration): Ditto. | |
24282 | * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto. | |
24283 | ||
6a66f28e RG |
24284 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
24285 | ||
24286 | PR tree-optimization/39358 | |
24287 | * tree-ssa-structalias.c (do_sd_constraint): Fix check for | |
24288 | escaped_id and callused_id. | |
24289 | (solve_graph): Likewise. | |
24290 | ||
57e454ee RG |
24291 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
24292 | ||
24293 | PR tree-optimization/39339 | |
24294 | * tree-sra.c (try_instantiate_multiple_fields): Make it | |
24295 | no longer ICE on the above. | |
24296 | ||
a6fe9ed4 JM |
24297 | 2009-03-03 Joseph Myers <joseph@codesourcery.com> |
24298 | ||
24299 | * emit-rtl.c (adjust_address_1): Reduce offset to a signed value | |
24300 | that fits within Pmode. | |
24301 | ||
dc672951 SE |
24302 | 2009-03-03 Steve Ellcey <sje@cup.hp.com> |
24303 | ||
24304 | PR middle-end/10109 | |
24305 | * tm.texi (LIBCALL_VALUE): Update description. | |
24306 | ||
8b9d598f SE |
24307 | 2009-03-03 Steve Ellcey <sje@cup.hp.com> |
24308 | ||
24309 | PR middle-end/34443 | |
24310 | * doc/extend.texi (section): Update description. | |
24311 | ||
13e4e36e L |
24312 | 2009-03-03 H.J. Lu <hongjiu.lu@intel.com> |
24313 | ||
24314 | PR middle-end/39345 | |
24315 | * tree-inline.c (remapped_type): New. | |
24316 | (can_be_nonlocal): Call remapped_type instead of remap_type. | |
24317 | ||
067dd3c9 JJ |
24318 | 2009-03-03 Jakub Jelinek <jakub@redhat.com> |
24319 | ||
24320 | PR fortran/39354 | |
24321 | * gimplify.c (goa_stabilize_expr): Handle tcc_comparison, | |
24322 | TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
24323 | ||
9bd9f738 RG |
24324 | 2009-03-03 Richard Guenther <rguenther@suse.de> |
24325 | ||
24326 | PR middle-end/39272 | |
24327 | * tree.c (tree_nonartificial_location): New function. | |
24328 | * tree.h (tree_nonartificial_location): Declare. | |
24329 | * builtins.c (expand_builtin_memory_chk): Provide location | |
24330 | of the call location for artificial function pieces. | |
24331 | (maybe_emit_chk_warning): Likewise. | |
24332 | (maybe_emit_sprintf_chk_warning): Likewise. | |
24333 | (maybe_emit_free_warning): Likewise. | |
24334 | * expr.c (expand_expr_real_1): Likewise. | |
24335 | ||
f07049c8 JJ |
24336 | 2009-03-03 Jakub Jelinek <jakub@redhat.com> |
24337 | ||
24338 | PR tree-optimization/39343 | |
24339 | * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if | |
24340 | COMPONENT_REF t has ARRAY_TYPE. | |
24341 | ||
7d4fba4a SP |
24342 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> |
24343 | ||
24344 | PR middle-end/39335 | |
24345 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
24346 | when the type precision of the induction variable should be | |
24347 | larger than the type precision of nit. | |
24348 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
24349 | * graphite.c (graphite_loop_normal_form): Same. | |
24350 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
24351 | ||
78168632 UB |
24352 | 2009-03-02 Uros Bizjak <ubizjak@gmail.com> |
24353 | ||
24354 | * config/i386/i386.md (ST?_REG, MM?_REG): New constants. | |
24355 | (*call_1_rex64_ms_sysv): Use named constants instead of magic | |
6c6094f1 | 24356 | numbers to describe clobbered registers. |
78168632 | 24357 | (*call_value_0_rex64_ms_sysv): Ditto. |
6c6094f1 UB |
24358 | * config/i386/mmx.md (mmx_emms): Ditto. |
24359 | (mmx_femms): Ditto. | |
78168632 | 24360 | |
63553059 RS |
24361 | 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com> |
24362 | ||
24363 | * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling | |
24364 | of ABI_64. | |
24365 | ||
500a1f85 UW |
24366 | 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24367 | ||
24368 | * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define. | |
24369 | (spu_section_type_flags): New function. | |
24370 | ||
962aae34 UB |
24371 | 2009-03-02 Uros Bizjak <ubizjak@gmail.com> |
24372 | ||
24373 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy | |
24374 | reg_class_contents of FLOAT_REGS into a temporary. | |
24375 | ||
6dfb529c | 24376 | 2009-03-02 Richard Guenther <rguenther@suse.de> |
962aae34 | 24377 | Ira Rosen <irar@il.ibm.com> |
6dfb529c RG |
24378 | |
24379 | PR tree-optimization/39318 | |
24380 | * tree-vect-transform.c (vectorizable_call): Transfer the EH region | |
24381 | information to the vectorized statement. | |
24382 | ||
6b5629db UB |
24383 | 2009-03-01 Uros Bizjak <ubizjak@gmail.com> |
24384 | ||
434426d2 UB |
24385 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i" |
24386 | variable. Use defined names instead of magic constants for REX SSE | |
24387 | registers. | |
6b5629db | 24388 | |
14e5b285 RG |
24389 | 2009-03-01 Richard Guenther <rguenther@suse.de> |
24390 | ||
24391 | PR tree-optimization/39331 | |
24392 | * omp-low.c (lower_send_shared_vars): Do not receive new | |
24393 | values for the reference of DECL_BY_REFERENCE parms or results. | |
24394 | ||
526d73ab JH |
24395 | 2009-03-01 Jan Hubicka <jh@suse.cz> |
24396 | ||
24397 | PR debug/39267 | |
24398 | * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS, | |
24399 | BLOCK_NONLOCALIZED_VAR): New macros. | |
24400 | (tree_block): Add nonlocalized_vars. | |
f4ea99bd EB |
24401 | * dwarf2out.c (gen_formal_parameter_die, gen_variable_die, |
24402 | gen_decl_die): Add origin argument. Allow generation of die with | |
24403 | origin at hand only. | |
526d73ab | 24404 | (gen_member_die, gen_type_die_with_usage, force_decl_die, |
f4ea99bd EB |
24405 | declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use |
24406 | of gen_*. | |
526d73ab JH |
24407 | (gen_block_die): Fix checking for unused blocks. |
24408 | (process_scope_var): Break out from .... ; work with origins only. | |
24409 | (decls_for_scope) ... here; process nonlocalized list. | |
24410 | (dwarf2out_ignore_block): Look for nonlocalized vars. | |
f4ea99bd EB |
24411 | * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized |
24412 | vars. | |
526d73ab JH |
24413 | (dump_scope_block): Dump them. |
24414 | * tree-inline.c (remap_decls): Handle nonlocalized vars. | |
24415 | (remap_block): Likewise. | |
24416 | (can_be_nonlocal): New predicate. | |
24417 | (copy_bind_expr, copy_gimple_bind): Update use of remap_block. | |
24418 | ||
7a9d3fe8 RW |
24419 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
24420 | ||
24421 | * configure: Regenerate. | |
24422 | ||
b3cdf3cb RW |
24423 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
24424 | ||
a16d1645 | 24425 | * optc-gen.awk: No need to duplicate option flags twice. |
9ade279b | 24426 | Reuse help texts for duplicate options which do not have any. |
a16d1645 | 24427 | |
1156c176 RW |
24428 | * gcc.c (display_help): Document --version. |
24429 | ||
033505fc RW |
24430 | * gcc.c (main): If print_help_list and verbose_flag, ensure |
24431 | driver output comes before subprocess output. | |
24432 | ||
4d077054 RW |
24433 | * optc-gen.awk: Assign all remaining fields to help string, |
24434 | space-separated, for multi-line help in *.opt. | |
24435 | ||
a072f1cf RW |
24436 | * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only. |
24437 | -Wno-pedantic-ms-format is for MinGW targets only. | |
24438 | ||
b3cdf3cb RW |
24439 | * doc/options.texi (Option file format): Fix bad indentation, |
24440 | restoring dropped sentence. | |
24441 | ||
a3aadcc5 JH |
24442 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
24443 | ||
24444 | * tree-inline.c (tree_function_versioning): Output debug info. | |
24445 | ||
1cf5abb3 JH |
24446 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
24447 | ||
24448 | PR debug/39267 | |
24449 | * tree-inline.c (setup_one_parameter): Do not copy propagate | |
24450 | arguments when not optimizing. | |
24451 | ||
c4d3f42f L |
24452 | 2009-02-28 H.J. Lu <hongjiu.lu@intel.com> |
24453 | ||
24454 | PR target/39327 | |
24455 | * config/i386/sse.md (avx_addsubv8sf3): Correct item bits. | |
24456 | (avx_addsubv4df3): Likewise. | |
24457 | (*avx_addsubv4sf3): Likewise. | |
24458 | (sse3_addsubv4sf3): Likewise. | |
24459 | (*avx_addsubv2df3): Likewise. | |
24460 | (sse3_addsubv2df3): Likewise. | |
24461 | (avx_unpckhps256): Correct item selectors. | |
24462 | (avx_unpcklps256): Likewise. | |
24463 | (avx_unpckhpd256): Likewise. | |
24464 | (avx_unpcklpd256): Likewise. | |
24465 | ||
eb50f5f4 JH |
24466 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
24467 | ||
24468 | * tree-inline.c (expand_call_inline): Avoid duplicate declarations of | |
24469 | static vars. | |
24470 | (copy_arguments_for_versioning): If var is declared don't declare it. | |
24471 | (tree_function_versioning): First setup substitutions and then copy | |
24472 | args. | |
24473 | ||
26140130 JH |
24474 | 2009-02-27 Jan Hubicka <jh@suse.cz> |
24475 | ||
24476 | PR debug/39267 | |
24477 | * cgraph.h (varpool_output_debug_info): Remove. | |
24478 | * cgraphunit.c (varpool_output_debug_info): Remove. | |
24479 | * dwarf2out.c (deferred_locations_struct): New struct | |
24480 | (deferred_locations): New type. | |
24481 | (deferred_locations_list): New static var. | |
24482 | (deffer_location): New function. | |
24483 | (gen_variable_die): Use it. | |
24484 | (decls_for_scope): Output info on local static vars. | |
24485 | (dwarf2out_finish): Process deferred locations. | |
24486 | * varpool.c (varpool_output_debug_info): Remove. | |
24487 | ||
cff7525f JH |
24488 | 2009-02-27 Jan Hubicka <jh@suse.cz> |
24489 | ||
24490 | PR debug/39267 | |
24491 | * tree.h (TREE_PROTECTED): Fix comment. | |
24492 | (BLOCK_HANDLER_BLOCK): Remove. | |
24493 | (struct tree_block): Remove handler_block add body_block. | |
24494 | (inlined_function_outer_scope_p): New. | |
24495 | (is_body_block): Remove. | |
24496 | * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK. | |
24497 | * dwarf2out.c (is_inlined_entry_point): Remove. | |
24498 | (add_high_low_attributes): Use inlined_function_outer_scope_p. | |
f10a1c6c EB |
24499 | (gen_block_die): Use is_inlined_entry_point check. Remove body block |
24500 | code. | |
cff7525f JH |
24501 | * langhooks.h (struct lang_hooks): Remove no_bodu_blocks. |
24502 | * gimplify.c (gimplify_expr): Gimplify body blocks. | |
f10a1c6c EB |
24503 | * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper |
24504 | block with multiple subblocks. | |
cff7525f JH |
24505 | (dump_scope_block): Prettier output; dump more flags and info. |
24506 | (dump_scope_blocks): New. | |
24507 | (remove_unused_locals): Use dump_scope_blocks. | |
24508 | * tree-flow.h (dump_scope_blocks): Declare. | |
24509 | * tree-cfg.c (execute_build_cfg): Dump scope blocks. | |
24510 | * stmt.c (is_body_block): Remove. | |
24511 | * tree-inline.c (remap_block): Copy BODY_BLOCK info. | |
24512 | * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove. | |
24513 | ||
c20993b9 SP |
24514 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> |
24515 | ||
24516 | PR middle-end/39308 | |
2ba9daa7 | 24517 | * graphite.c (graphite_loop_normal_form): Do not call |
c20993b9 SP |
24518 | number_of_iterations_exit from a gcc_assert. |
24519 | ||
e3cba5e5 AK |
24520 | 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
24521 | ||
60839f5d | 24522 | * config/s390/s390.c (s390_swap_cmp): Look for conditional |
e3cba5e5 AK |
24523 | jumps if COND is NULL. |
24524 | (find_cond_jump): New function. | |
24525 | (s390_z10_optimize_cmp): Handling for reg-reg compares added. | |
60839f5d | 24526 | * config/s390/s390.md: Remove z10_cobra attribute value. |
e3cba5e5 | 24527 | |
9dadeeb8 UB |
24528 | 2009-02-26 Uros Bizjak <ubizjak@gmail.com> |
24529 | ||
24530 | * config/alpha/alpha.h (alpha_expand_mov): Return false if | |
24531 | force_const_mem returns NULL_RTX. | |
24532 | ||
625d3251 EB |
24533 | 2009-02-26 Jan Hubicka <jh@suse.cz> |
24534 | ||
24535 | PR debug/39267 | |
24536 | * cgraph.h (varpool_output_debug_info): Remove. | |
24537 | * cgraphunit.c (varpool_output_debug_info): Remove. | |
24538 | * dwarf2out.c (deferred_locations_struct): New struct | |
24539 | (deferred_locations): New type. | |
24540 | (deferred_locations_list): New static var. | |
24541 | (deffer_location): New function. | |
24542 | (gen_variable_die): Use it. | |
24543 | (decls_for_scope): Output info on local static vars. | |
24544 | (dwarf2out_finish): Process deferred locations. | |
24545 | * varpool.c (varpool_output_debug_info): Remove. | |
24546 | ||
38432148 | 24547 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
8592acaf L |
24548 | |
24549 | PR rtl-optimization/39241 | |
24550 | * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls | |
24551 | to subreg_offset_representable_p. | |
24552 | ||
62d049cf PB |
24553 | 2009-02-25 Paolo Bonzini <bonzini@gnu.org> |
24554 | ||
24555 | * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass | |
24556 | execute function prototype. Get f and nregs from max_reg_num | |
24557 | and get_insns. Remove the first backward pass as it's dead, | |
24558 | guard the forward pass by flag_expensive_optimizations. | |
24559 | (rest_of_handle_regmove): Delete. | |
24560 | (pass_regmove): Replace it with regmove_optimize. | |
24561 | ||
f618d33e MJ |
24562 | 2009-02-25 Martin Jambor <mjambor@suse.cz> |
24563 | ||
24564 | PR tree-optimization/39259 | |
24565 | * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and | |
6c6094f1 | 24566 | calls_alloca function flags. |
f618d33e MJ |
24567 | (copy_bb): Set calls_setjmp and alls_alloca function flags if such |
24568 | calls are detected. | |
24569 | ||
c8a05f7c PB |
24570 | 2009-02-25 Paolo Bonzini <bonzini@gnu.org> |
24571 | ||
24572 | * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones, | |
24573 | flags_set_1_rtx, flags_set_1_set): Delete. | |
24574 | (regmove_optimize): Do not call mark_flags_life_zones. | |
24575 | ||
6d2538f5 JB |
24576 | 2009-02-24 Julian Brown <julian@codesourcery.com> |
24577 | ||
24578 | PR target/35965 | |
24579 | * config/arm/arm.c (require_pic_register): Only set | |
24580 | cfun->machine->pic_reg once per function. | |
24581 | ||
a2fa6772 SL |
24582 | 2009-02-24 Sandra Loosemore <sandra@codesourcery.com> |
24583 | ||
24584 | * doc/invoke.texi (Link Options): Document an easier way to pass | |
9dadeeb8 | 24585 | options that take arguments to the GNU linker using -Xlinker and -Wl. |
a2fa6772 | 24586 | |
5472de36 SE |
24587 | 2009-02-24 Steve Ellcey <sje@cup.hp.com> |
24588 | ||
24589 | PR target/33785 | |
24590 | * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description. | |
24591 | ||
844216f3 RG |
24592 | 2009-02-24 Richard Guenther <rguenther@suse.de> |
24593 | ||
24594 | PR debug/39285 | |
24595 | * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs. | |
24596 | ||
71adbef3 | 24597 | 2009-02-24 Richard Guenther <rguenther@suse.de> |
8592acaf | 24598 | Zdenek Dvorak <ook@ucw.cz> |
71adbef3 RG |
24599 | |
24600 | PR tree-optimization/39233 | |
24601 | * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers | |
24602 | from converting them to a generic type. | |
24603 | ||
f1a558e0 SP |
24604 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> |
24605 | ||
24606 | PR tree-optimization/39260 | |
24607 | * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block | |
24608 | contains a condition with a real type. | |
24609 | (build_scop_conditions_1): Conditions are always last_stmt of a bb. | |
24610 | ||
d8028f2c JM |
24611 | 2009-02-23 Jason Merrill <jason@redhat.com> |
24612 | ||
24613 | PR c++/38880 | |
24614 | * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check | |
24615 | narrowing_initializer_constant_valid_p. | |
2ba9daa7 | 24616 | (narrowing_initializer_constant_valid_p): Don't return |
d8028f2c JM |
24617 | null_pointer_node for adding a pointer to itself. |
24618 | ||
9283b513 JH |
24619 | 2009-02-23 Jan Hubicka <jh@suse.cz> |
24620 | ||
24621 | PR c/12245 | |
9dadeeb8 UB |
24622 | * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when |
24623 | resizing. | |
9283b513 | 24624 | |
61e04322 JH |
24625 | 2009-02-23 Jan Hubicka <jh@suse.cz> |
24626 | ||
9dadeeb8 UB |
24627 | PR tree-optimization/37709 |
24628 | * tree.c (block_ultimate_origin): Move here from dwarf2out. | |
24629 | * tree.h (block_ultimate_origin): Declare. | |
24630 | * dwarf2out.c (block_ultimate_origin): Move to tree.c | |
61e04322 JH |
24631 | * tree-ssa-live.c (remove_unused_scope_block_p): |
24632 | Eliminate blocks containig no instructions nor live variables nor | |
24633 | nested blocks. | |
24634 | (dump_scope_block): New function. | |
24635 | (remove_unused_locals): Enable removal of dead blocks by default; | |
9dadeeb8 | 24636 | enable dumping at TDF_DETAILS. |
61e04322 | 24637 | |
38432148 | 24638 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
5339d3ea L |
24639 | |
24640 | * config/i386/i386.c (classify_argument): Don't allow COImode | |
24641 | and OImode. | |
24642 | (function_arg_advance_32): Don't allow OImode. | |
24643 | (function_arg_32): Likewise. | |
24644 | (function_value_32): Likewise. | |
24645 | (return_in_memory_32): Likewise. | |
24646 | (function_arg_64): Remove OImode comment. | |
24647 | ||
38432148 | 24648 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
f161e158 L |
24649 | |
24650 | PR target/39261 | |
24651 | * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use | |
24652 | ix86_expand_vector_set for V4DImode in 64bit mode only. | |
24653 | (ix86_expand_vector_init_one_var): Likewise. | |
24654 | ||
dcd739a6 SP |
24655 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> |
24656 | ||
24657 | * graphite.c (graphite_trans_loop_block): Adjust tile size to 51. | |
24658 | ||
6c3b938d RS |
24659 | 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com> |
24660 | ||
8e361f23 | 24661 | PR bootstrap/39257 |
6c3b938d RS |
24662 | * loop-iv.c: Revert last change. |
24663 | * emit-rtl.c: Likewise. | |
24664 | ||
38432148 | 24665 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
4c64d3dd L |
24666 | |
24667 | PR target/39256 | |
24668 | * config/i386/i386.c (type_natural_mode): Remove an extra | |
24669 | space in the warning message. | |
24670 | (function_value_32): Handle 32-byte vector modes. | |
24671 | (return_in_memory_32): Likewise. | |
24672 | ||
2ec62529 RS |
24673 | 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com> |
24674 | ||
24675 | * loop-iv.c (truncate_value): New function. | |
24676 | (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead | |
24677 | of lowpart_subreg. | |
24678 | (lowpart_subreg): Move to... | |
24679 | * emit-rtl.c: ...here. | |
24680 | ||
ecb8c3cc | 24681 | 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net> |
f814e489 | 24682 | |
ecb8c3cc DS |
24683 | * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert |
24684 | accidental and undocumented change at revision 140860. | |
24685 | ||
ae46a823 JM |
24686 | 2009-02-21 Joseph Myers <joseph@codesourcery.com> |
24687 | ||
24688 | * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to | |
24689 | take gimple_seq * arguments. | |
24690 | (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to | |
24691 | types_compatible_p langhook. | |
24692 | ||
07d8efe3 | 24693 | 2009-02-20 Mark Mitchell <mark@codesourcery.com> |
f814e489 | 24694 | Joseph Myers <joseph@codesourcery.com> |
07d8efe3 MM |
24695 | |
24696 | * config/arm/arm.c (arm_builtin_va_list): New function. | |
24697 | (arm_expand_builtin_va_start): Likewise. | |
24698 | (arm_gimplify_va_arg_expr): Likewise. | |
24699 | (TARGET_BUILD_BUILTIN_VA_LIST): Define. | |
24700 | (TARGET_BUILD_BUILTIN_VA_START): Likewise. | |
24701 | (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise. | |
24702 | (va_list_type): New variable. | |
24703 | (arm_mangle_type): Mangle va_list_type appropriately. | |
24704 | ||
b1fb9f56 JJ |
24705 | 2009-02-20 Jakub Jelinek <jakub@redhat.com> |
24706 | ||
24707 | PR middle-end/39157 | |
24708 | * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H). | |
24709 | * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define. | |
24710 | * params.def (loop-invariant-max-bbs-in-loop): New parameter. | |
24711 | * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop | |
24712 | parameter to 1000 for -O1 by default. | |
24713 | * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new | |
24714 | parameter. | |
24715 | * loop-invariant.c: Include params.h. | |
24716 | (move_loop_invariants): Don't call move_single_loop_invariants on | |
24717 | very large loops. | |
24718 | ||
5bc0807c JM |
24719 | 2009-02-20 Jaka Mocnik <jaka@xlab.si> |
24720 | ||
24721 | * calls.c (emit_library_call_value_1): Use slot_offset instead of | |
24722 | offset when calculating bounds for indexing stack_usage_map. Fixes | |
24723 | a buffer overflow with certain target setups. | |
24724 | ||
c69cd1f5 JJ |
24725 | 2009-02-20 Jakub Jelinek <jakub@redhat.com> |
24726 | ||
24727 | PR target/39240 | |
24728 | * calls.c (expand_call): Clear try_tail_call if caller and callee | |
24729 | disagree in promotion of function return value. | |
24730 | ||
09812622 JJ |
24731 | 2009-02-19 Jakub Jelinek <jakub@redhat.com> |
24732 | ||
24733 | PR target/39175 | |
24734 | * c-common.c (c_determine_visibility): If visibility changed and | |
24735 | DECL_RTL has been already set, call make_decl_rtl to update symbol | |
24736 | flags. | |
24737 | ||
68017cb4 L |
24738 | 2009-02-19 H.J. Lu <hongjiu.lu@intel.com> |
24739 | ||
24740 | PR c++/39188 | |
24741 | * varasm.c (assemble_variable): Don't check DECL_NAME when | |
24742 | globalizing a variable. | |
24743 | ||
ab4194da JM |
24744 | 2009-02-19 Joseph Myers <joseph@codesourcery.com> |
24745 | ||
24746 | PR c/38483 | |
24747 | * builtins.c (gimplify_va_arg_expr): Evaluate the va_list | |
24748 | expression before any __builtin_trap call. | |
24749 | * c-typeck.c (build_function_call): Convert and check function | |
24750 | arguments before generating a call to a trap. Evaluate the | |
24751 | function arguments before the trap. | |
24752 | ||
6b67572e UB |
24753 | 2009-02-19 Uros Bizjak <ubizjak@gmail.com> |
24754 | ||
24755 | PR target/39228 | |
24756 | * config/i386/i386.md (isinfxf2): Split from isinf<mode>2. | |
24757 | (UNSPEC_FXAM_MEM): New unspec. | |
24758 | (fxam<mode>2_i387_with_temp): New insn and split pattern. | |
24759 | (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through | |
24760 | memory using fxam<mode>2_i387_with_temp to remove excess precision. | |
24761 | ||
9e39dba6 RG |
24762 | 2009-02-19 Richard Guenther <rguenther@suse.de> |
24763 | ||
24764 | PR tree-optimization/39207 | |
24765 | PR tree-optimization/39074 | |
24766 | * tree-ssa-structalias.c (storedanything_id, var_storedanything, | |
24767 | storedanything_tree): New. | |
24768 | (do_ds_constraint): Simplify ANYTHING shortcutting. Update | |
6b67572e | 24769 | the STOREDANYTHING solution if the lhs solution contains ANYTHING. |
9e39dba6 RG |
24770 | (build_succ_graph): Add edges from STOREDANYTHING to all |
24771 | non-direct nodes. | |
24772 | (init_base_vars): Initialize STOREDANYTHING. | |
24773 | (compute_points_to_sets): Free substitution info after | |
24774 | building the succ graph. | |
24775 | (ipa_pta_execute): Likewise. | |
24776 | ||
24777 | * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers | |
24778 | field. | |
24779 | (do_ds_constraint): Do not add to special var or non-pointer | |
24780 | field solutions. | |
24781 | (type_could_have_pointers): Split out from ... | |
24782 | (could_have_pointers): ... here. For arrays use the element type. | |
24783 | (create_variable_info_for): Initialize may_have_pointers. | |
24784 | (new_var_info): Likewise. | |
24785 | (handle_lhs_call): Make the HEAP variable unknown-sized. | |
24786 | (intra_create_variable_infos): Use a type with pointers for | |
24787 | PARM_NOALIAS, make it unknown-sized. | |
24788 | ||
fd7b2603 L |
24789 | 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> |
24790 | ||
24791 | PR target/39224 | |
6b67572e | 24792 | * config/i386/i386.c (ix86_return_in_memory): Properly check ABI. |
fd7b2603 | 24793 | |
98b80692 JM |
24794 | 2009-02-18 Jason Merrill <jason@redhat.com> |
24795 | ||
24796 | PR target/39179 | |
24797 | * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero | |
24798 | value if DECL_EXTERNAL. | |
24799 | * tree-sra.c (sra_walk_gimple_assign): Likewise. | |
24800 | * target.h (gcc_target::binds_local_p): Clarify "module". | |
24801 | * tree.h (TREE_PUBLIC): Clarify "module". | |
24802 | ||
0705d3f4 L |
24803 | 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com> |
24804 | ||
24805 | PR target/38891 | |
24806 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of | |
24807 | initialization for MS_ABI prior to the hunk of !TARGET_MMX. | |
24808 | ||
bce08d50 L |
24809 | 2009-02-17 H.J. Lu <hongjiu.lu@intel.com> |
24810 | ||
24811 | PR target/39082 | |
24812 | * c.opt (Wabi): Support C and ObjC. | |
24813 | (Wpsabi): New. | |
24814 | ||
24815 | * c-opts.c (c_common_handle_option): Handle OPT_Wabi. | |
24816 | ||
24817 | * config/i386/i386.c (classify_argument): Warn once about the ABI | |
24818 | change when passing union with long double. | |
24819 | ||
24820 | * doc/invoke.texi: Update -Wabi for warning psABI changes. | |
24821 | ||
5600f233 JM |
24822 | 2009-02-18 Joseph Myers <joseph@codesourcery.com> |
24823 | ||
24824 | PR c/35447 | |
24825 | * c-parser.c (c_parser_compound_statement): Always enter and leave | |
24826 | a scope. | |
24827 | ||
8cd01fe6 JDA |
24828 | 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24829 | ||
24830 | PR target/34587 | |
24831 | * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define. | |
24832 | ||
418df9d7 JJ |
24833 | 2009-02-18 Jakub Jelinek <jakub@redhat.com> |
24834 | ||
24835 | PR tree-optimization/36922 | |
24836 | * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR. | |
24837 | * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1): | |
24838 | Likewise. | |
24839 | ||
082d2ebb RS |
24840 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24841 | ||
24842 | * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm | |
24843 | to 0 for EABI64. | |
24844 | ||
17de576c RS |
24845 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24846 | ||
24847 | * config/mips/mips.md (type): Reclassify lui_movf as "unknown". | |
24848 | ||
6d8d5435 RS |
24849 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24850 | ||
24851 | * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid | |
24852 | tree sharing. | |
24853 | ||
e69ff910 RB |
24854 | 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com> |
24855 | Richard Sandiford <rdsandiford@googlemail.com> | |
24856 | ||
24857 | * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete. | |
24858 | * config/mips/loongson.md (reduc_uplus_<mode>): Rename to... | |
24859 | (loongson_biadd): ...this. | |
24860 | ||
6b24ee26 RG |
24861 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24862 | ||
24863 | PR tree-optimization/39202 | |
24864 | * tree-ssa-structalias.c (do_structure_copy): Before collapsing | |
24865 | a var make sure to follow existing collapses. | |
24866 | ||
91ab2c86 RG |
24867 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24868 | ||
24869 | PR middle-end/39214 | |
24870 | * langhooks.c (lhd_print_error_function): Check for NULL block. | |
24871 | ||
73a63870 RG |
24872 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24873 | ||
24874 | PR tree-optimization/39204 | |
24875 | * tree-ssa-pre.c (phi_translate_1): Lookup the value-number | |
24876 | of the PHI arg. | |
24877 | ||
0e08f686 UB |
24878 | 2009-02-17 Uros Bizjak <ubizjak@gmail.com> |
24879 | ||
24880 | * config/soft-fp/double.h: Update from glibc CVS. | |
24881 | ||
a60b7ddb RG |
24882 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24883 | ||
24884 | PR tree-optimization/39207 | |
24885 | * tree-ssa-structalias.c (find_what_p_points_to): Do not emit | |
24886 | strict-aliasing warnings for pointers pointing to NULL. | |
24887 | ||
a47e20fd JM |
24888 | 2009-02-16 Joseph Myers <joseph@codesourcery.com> |
24889 | ||
24890 | PR c/35446 | |
24891 | * c-parser.c (c_parser_braced_init): Call pop_init_level when | |
24892 | skipping until next close brace. | |
24893 | ||
50aab7dc L |
24894 | 2009-02-16 H.J. Lu <hongjiu.lu@intel.com> |
24895 | ||
24896 | PR target/37049 | |
24897 | * config/i386/i386.c (ix86_expand_push): Set memory alignment | |
24898 | to function argument boundary. | |
24899 | ||
68e53db0 HS |
24900 | 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
24901 | ||
24902 | * config/picochip/picochip.md (lea_add): Allow any nonimmediate | |
24903 | in the lea_add. Reload eventually constraints it properly. | |
0d50d55a | 24904 | * config/picochip/constraints.md: Remove the target constraint |
68e53db0 HS |
24905 | "b", since it is not needed anymore. |
24906 | ||
09e361bb JJ |
24907 | 2009-02-16 Jakub Jelinek <jakub@redhat.com> |
24908 | ||
24909 | * gthr-dce.h: Uglify function parameter and local variable names. | |
24910 | * gthr-gnat.h: Likewise. | |
24911 | * gthr-mipssde.h: Likewise. | |
24912 | * gthr-nks.h: Likewise. | |
24913 | * gthr-posix95.h: Likewise. | |
24914 | * gthr-posix.h: Likewise. | |
24915 | * gthr-rtems.h: Likewise. | |
24916 | * gthr-single.h: Likewise. | |
24917 | * gthr-solaris.h: Likewise. | |
24918 | * gthr-tpf.h: Likewise. | |
24919 | * gthr-vxworks.h: Likewise. | |
24920 | * gthr-win32.h: Likewise. | |
24921 | ||
47f5a48f L |
24922 | 2009-02-15 H.J. Lu <hongjiu.lu@intel.com> |
24923 | ||
24924 | PR target/39196 | |
24925 | * config/i386/i386.md: Restrict the new peephole2 to move | |
24926 | between MMX/SSE registers. | |
24927 | ||
68c9ab45 RG |
24928 | 2009-02-15 Richard Guenther <rguenther@suse.de> |
24929 | ||
24930 | Revert | |
24931 | 2009-02-13 Richard Guenther <rguenther@suse.de> | |
24932 | ||
24933 | * configure.ac: Enable LFS. | |
24934 | * configure: Re-generate. | |
24935 | * config.in: Likewise. | |
24936 | ||
d7815554 UW |
24937 | 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24938 | ||
24939 | * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw, | |
24940 | spu_srqwbyte, spu_srqwbytebc): Define. | |
24941 | * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw, | |
24942 | spu_srqwbyte, spu_srqwbytebc): New overloaded builtins. | |
24943 | * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>", | |
24944 | "shrqby_<mode>"): New insn-and-split patterns. | |
24945 | * config/spu/spu.c (expand_builtin_args): Determine and return | |
24946 | number of operands using spu_builtin_description data. | |
24947 | (spu_expand_builtin_1): Use it. | |
24948 | ||
c208436c SE |
24949 | 2009-02-13 Steve Ellcey <sje@cup.hp.com> |
24950 | ||
24951 | PR target/38056 | |
24952 | * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check | |
24953 | TARGET_CONST_GP. | |
24954 | ||
c2e7ba7e L |
24955 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24956 | ||
24957 | PR target/39149 | |
24958 | * config/i386/i386.c (override_options): Correct warning | |
6c6094f1 | 24959 | messages for -malign-loops, -malign-jumps and -malign-functions. |
c2e7ba7e | 24960 | |
72f4e3a7 L |
24961 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24962 | ||
24963 | PR target/39152 | |
24964 | * config/i386/i386.md: Restrict the new peephole2 to move | |
24965 | between the general purpose registers. | |
24966 | ||
53f648e2 L |
24967 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24968 | ||
24969 | PR target/39162 | |
24970 | * config/i386/i386.c (type_natural_mode): Add a new argument. | |
6b67572e | 24971 | Return the original mode and warn ABI change if vector size is 32byte. |
53f648e2 L |
24972 | (function_arg_advance): Updated. |
24973 | (function_arg): Likewise. | |
24974 | (ix86_function_value): Likewise. | |
24975 | (ix86_return_in_memory): Likewise. | |
24976 | (ix86_sol10_return_in_memory): Likewise. | |
24977 | (ix86_gimplify_va_arg): Likewise. | |
24978 | (function_arg_32): Don't warn ABX ABI change here. | |
24979 | (function_arg_64): Likewise. | |
24980 | ||
38432148 | 24981 | 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com> |
b1c92d54 BS |
24982 | |
24983 | * loop-iv.c (implies_p): In the final case, test that operands 0 | |
24984 | of the two comparisons match. | |
24985 | ||
dd2139e7 BS |
24986 | * config/bfin/bfin.c (find_prev_insn_start): New function. |
24987 | (bfin_optimize_loop): Use it in some cases instead of PREV_INSN. | |
24988 | (find_next_insn_start): Move. | |
24989 | ||
601b3e1a RG |
24990 | 2009-02-13 Richard Guenther <rguenther@suse.de> |
24991 | ||
24992 | * configure.ac: Enable LFS. | |
24993 | * configure: Re-generate. | |
24994 | * config.in: Likewise. | |
24995 | ||
f007042e JM |
24996 | 2009-02-13 Joseph Myers <joseph@codesourcery.com> |
24997 | ||
24998 | PR c/35444 | |
24999 | * c-parser.c (c_parser_parms_list_declarator): Discard pending | |
25000 | sizes on syntax error after some arguments have been parsed. | |
25001 | ||
3f238e8b JJ |
25002 | 2009-02-12 Jakub Jelinek <jakub@redhat.com> |
25003 | ||
25004 | * doc/invoke.texi (-fira): Remove. | |
25005 | ||
328e13b7 L |
25006 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> |
25007 | ||
25008 | * caller-save.c: Replace regclass.c with reginfo.c in comments. | |
25009 | * recog.c: Likewise. | |
25010 | * rtl.h: Likewise. | |
25011 | ||
c252db20 L |
25012 | 2009-02-12 Uros Bizjak <ubizjak@gmail.com> |
25013 | ||
25014 | * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2. | |
25015 | (umul_ppmm): Likewise. | |
25016 | (count_leading_zeros): Likewise. | |
25017 | (count_trailing_zeros): Likewise. | |
25018 | (UMUL_TIME): Likewise. | |
25019 | ||
25020 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> | |
25021 | ||
ba181049 UB |
25022 | * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and |
25023 | soft-fp/t-softfp to tmake_file. | |
c252db20 L |
25024 | |
25025 | * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New. | |
ba181049 UB |
25026 | (ia64_expand_compare): Use HPUX library for TFmode only for HPUX. |
25027 | (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ, | |
25028 | IA64_BUILTIN_INFQ]: New. | |
c252db20 L |
25029 | (ia64_init_builtins): Initialize __builtin_infq, |
25030 | __builtin_fabsq and __builtin_copysignq if not HPUX. | |
25031 | (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ, | |
25032 | IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ. | |
25033 | ||
25034 | * config/ia64/lib1funcs.asm (__divtf3): Define only if | |
25035 | SHARED is defined. | |
25036 | (__fixtfti): Likewise. | |
25037 | (__fixunstfti): Likewise. | |
25038 | (__floattitf): Likewise. | |
25039 | ||
25040 | * config/ia64/libgcc-glibc.ver: New. | |
25041 | * config/ia64/t-fprules-softfp: Likewise. | |
25042 | * config/ia64/sfp-machine.h: Likewise. | |
25043 | ||
25044 | * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New. | |
25045 | (LIBGCC2_TF_CEXT): Likewise. | |
25046 | (TF_SIZE): Likewise. | |
25047 | (TARGET_INIT_LIBFUNCS): Likewise. | |
25048 | ||
ba181049 | 25049 | * config/ia64/t-glibc (SHLINB_MAPFILES): |
6b67572e | 25050 | Add $(srcdir)/config/ia64/libgcc-glibc.ver. |
c252db20 | 25051 | |
f13eae6a L |
25052 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> |
25053 | ||
25054 | * config/i386/i386.c (construct_container): Rewrite processing | |
25055 | BLKmode with X86_64_SSE_CLASS. | |
25056 | ||
12019aec L |
25057 | 2009-02-12 Paolo Bonzini <bonzini@gnu.org> |
25058 | ||
25059 | PR target/39152 | |
25060 | * config/i386/i386.md: Replace simplify_replace_rtx with | |
25061 | replace_rtx in the new peephole2. | |
25062 | ||
28c11eb3 NS |
25063 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
25064 | ||
25065 | * doc/invoke.texi (Optimize Options): Stop claiming inlining and | |
25066 | loop unrolling do not happen at -O2. | |
25067 | ||
c7b94907 MM |
25068 | 2009-02-12 Michael Matz <matz@suse.de> |
25069 | ||
25070 | * gcc.c (ASM_DEBUG_SPEC): Check for -g0. | |
25071 | ||
61e98967 JJ |
25072 | 2009-02-12 Jakub Jelinek <jakub@redhat.com> |
25073 | ||
25074 | * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die | |
25075 | for -g3. | |
25076 | ||
a2a237b5 BE |
25077 | 2009-02-12 Ben Elliston <bje@au.ibm.com> |
25078 | ||
25079 | * config/rs6000/rs6000.md (allocate_stack): Use _stack form of | |
25080 | patterns when updating the back chain. Missed in the 2009-02-10 | |
25081 | change. | |
25082 | ||
853eda8d JJ |
25083 | 2009-02-11 Janis Johnson <janis187@us.ibm.com> |
25084 | ||
25085 | * doc/extend.texi (Decimal Floating Types): Update identifier of | |
25086 | draft TR and list of missing support. | |
25087 | ||
3ad6b266 JJ |
25088 | 2009-02-11 Jakub Jelinek <jakub@redhat.com> |
25089 | ||
25090 | PR middle-end/39154 | |
25091 | * gimplify.c (omp_notice_variable): If adding GOVD_SEEN | |
25092 | bit to variable length decl's flags, add it also to its | |
25093 | pointer replacement variable. | |
25094 | ||
b058b753 UB |
25095 | 2009-02-11 Uros Bizjak <ubizjak@gmail.com> |
25096 | Jakub Jelinek <jakub@redhat.com> | |
25097 | ||
25098 | PR target/39118 | |
25099 | * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant. | |
25100 | (memory_blockage): New expander. | |
25101 | (*memory_blockage): New insn pattern. | |
25102 | * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage | |
25103 | instead of general blockage at the end of function prologue when | |
25104 | frame pointer is used to access red zone area. Do not emit blockage | |
25105 | when profiling, it is emitted in generic code. | |
25106 | (ix86_expand_epilogue): Emit memory_blockage at the beginning of | |
25107 | function epilogue when frame pointer is used to access red zone area. | |
25108 | ||
bab64f23 PB |
25109 | 2009-02-11 Paolo Bonzini <bonzini@gnu.org> |
25110 | ||
0ce6dcfa | 25111 | PR target/38824 |
bab64f23 PB |
25112 | * config/i386/i386.md: Add two new peephole2 to avoid mov followed |
25113 | by arithmetic with memory operands. | |
25114 | * config/i386/predicates.md (commutative_operator): New. | |
25115 | ||
8fd94bda JJ |
25116 | 2009-02-10 Janis Johnson <janis187@us.ibm.com> |
25117 | ||
25118 | * doc/extend.texi (Fixed-Point Types): Break long paragraphs into | |
25119 | bulleted lists. | |
25120 | ||
794511d2 EB |
25121 | 2009-02-10 Eric Botcazou <ebotcazou@adacore.com> |
25122 | ||
25123 | * alias.h (record_alias_subset): Declare. | |
25124 | * alias.c (record_alias_subset): Make global. | |
25125 | ||
6da7fc87 NC |
25126 | 2009-02-10 Nick Clifton <nickc@redhat.com> |
25127 | ||
25128 | * tree-parloops.c: Change license to GPLv3. | |
25129 | * ipa-struct-reorg.c: Change license to GPLv3. | |
25130 | * ipa-struct-reorg.h: Change license to GPLv3. | |
25131 | ||
a03813c8 SE |
25132 | 2009-02-10 Steve Ellcey <sje@cup.hp.com> |
25133 | ||
25134 | PR c/39084 | |
25135 | * c-decl.c (start_struct): Return NULL on error. | |
25136 | ||
fc3103e7 JJ |
25137 | 2009-02-10 Jakub Jelinek <jakub@redhat.com> |
25138 | ||
9b43d37b JJ |
25139 | PR middle-end/39124 |
25140 | * cfgloopmanip.c (remove_path): Call remove_bbs after | |
25141 | cancel_loop_tree, not before it. | |
25142 | ||
fc3103e7 | 25143 | PR target/39139 |
b058b753 | 25144 | * function.h (struct function): Add has_local_explicit_reg_vars bit. |
fc3103e7 JJ |
25145 | * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER |
25146 | VAR_DECLs were seen. | |
25147 | * tree-ssa-live.c (remove_unused_locals): Recompute | |
25148 | cfun->has_local_explicit_reg_vars. | |
25149 | * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode | |
25150 | copies or clearings if cfun->has_local_explicit_reg_vars. | |
25151 | ||
dbf9ee15 UB |
25152 | 2009-02-10 Uros Bizjak <ubizjak@gmail.com> |
25153 | ||
25154 | PR target/39118 | |
25155 | * config/i386/i386.c (expand_prologue): Emit blockage at the end | |
25156 | of function prologue when frame pointer is used to access | |
25157 | red zone area. | |
25158 | ||
bdec4dc7 RG |
25159 | 2009-02-10 Richard Guenther <rguenther@suse.de> |
25160 | ||
25161 | PR middle-end/39127 | |
25162 | * gimplify.c (gimple_regimplify_operands): Always look if | |
25163 | we need to create a temporary. | |
25164 | ||
7cae94fc RG |
25165 | 2009-02-10 Richard Guenther <rguenther@suse.de> |
25166 | ||
25167 | PR tree-optimization/39132 | |
25168 | * tree-loop-distribution.c (todo): New global var. | |
25169 | (generate_memset_zero): Trigger TODO_rebuild_alias. | |
25170 | (tree_loop_distribution): Return todo. | |
25171 | ||
a8800687 L |
25172 | 2009-02-10 H.J. Lu <hongjiu.lu@intel.com> |
25173 | ||
25174 | PR target/39119 | |
25175 | * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS. | |
25176 | (x86_64_reg_class_name): Removed. | |
25177 | (classify_argument): Return 0 if bytes > 32. Return 0 if the | |
25178 | first one isn't X86_64_SSE_CLASS or any other ones aren't | |
25179 | X86_64_SSEUP_CLASS when size > 16bytes. Don't turn | |
25180 | X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one | |
25181 | is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS | |
25182 | and 3 X86_64_SSEUP_CLASS. | |
25183 | (construct_container): Remove X86_64_AVX_CLASS. Handle 4 | |
25184 | registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS. | |
25185 | ||
d4bacef0 BE |
25186 | 2009-02-10 Ben Elliston <bje@au.ibm.com> |
25187 | ||
25188 | * config/rs6000/rs6000.md (allocate_stack): Always use an update | |
25189 | form instruction to update the stack back chain word, even if the | |
25190 | user has disabled the generation of update instructions. | |
25191 | (movdi_<mode>_update_stack): New. | |
25192 | (movsi_update_stack): Likewise. | |
25193 | * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise, | |
25194 | always use an update form instruction to update the stack back | |
25195 | chain word. | |
25196 | ||
01d7d2f3 SP |
25197 | 2009-02-09 Sebastian Pop <sebastian.pop@amd.com> |
25198 | ||
25199 | PR middle-end/38953 | |
b058b753 UB |
25200 | * graphite.c (if_region_set_false_region): After moving a region in |
25201 | the false branch of a condition, remove the empty dummy basic block. | |
01d7d2f3 SP |
25202 | (gloog): Remove wrong fix for PR38953. |
25203 | ||
e41e2ab4 UW |
25204 | 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
25205 | ||
25206 | * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code | |
25207 | generation due to implicit sign extension. | |
25208 | ||
4bb07c5d EB |
25209 | 2009-02-09 Eric Botcazou <ebotcazou@adacore.com> |
25210 | ||
25211 | PR middle-end/38981 | |
25212 | * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs | |
25213 | at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST. | |
25214 | ||
f060a261 RG |
25215 | 2009-02-09 Richard Guenther <rguenther@suse.de> |
25216 | ||
25217 | PR middle-end/35202 | |
25218 | * convert.c (convert_to_real): Disable (float)fn((double)x) | |
25219 | to fnf(x) conversion if errno differences may occur and | |
25220 | -fmath-errno is set. | |
25221 | ||
5a7e237c AS |
25222 | 2009-02-07 Anatoly Sokolov <aesok@post.ru> |
25223 | ||
25224 | * config/avr/avr.c (avr_mcu_t): Add ata6289 device. | |
25225 | * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). | |
25226 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). | |
25227 | ||
feab5a67 JM |
25228 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
25229 | ||
25230 | PR c/35434 | |
25231 | * c-common.c (handle_alias_attribute): Disallow attribute for | |
25232 | anything not a FUNCTION_DECL or VAR_DECL. | |
25233 | ||
90ef2296 JJ |
25234 | 2009-02-06 Janis Johnson <janis187@us.ibm.com> |
25235 | ||
25236 | PR c/39035 | |
25237 | * real.c (do_compare): Special-case compare of zero against | |
25238 | decimal float value. | |
25239 | ||
1de2c900 JM |
25240 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
25241 | ||
25242 | PR c/36432 | |
25243 | * c-decl.c (grokdeclarator): Don't treat [] declarators in fields | |
25244 | as indicating flexible array members unless the field itself is | |
25245 | being declarared as the incomplete array. | |
25246 | ||
e901811a JH |
25247 | 2009-02-06 Jan Hubicka <jh@suse.cz> |
25248 | ||
25249 | PR tree-optimization/38844 | |
25250 | * ipa-inline.c (try_inline): Stop inlining recursion when edge | |
25251 | is already inlined. | |
25252 | ||
3cfa762b RG |
25253 | 2009-02-06 Richard Guenther <rguenther@suse.de> |
25254 | ||
25255 | PR middle-end/38977 | |
25256 | * tree-cfg.c (need_fake_edge_p): Force a fake edge for | |
25257 | fork because we may expand it as __gcov_fork. | |
25258 | ||
8506528c NC |
25259 | 2009-02-06 Nick Clifton <nickc@redhat.com> |
25260 | ||
dbf9ee15 | 25261 | * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero. |
8506528c | 25262 | |
85169114 PB |
25263 | 2009-02-06 Paolo Bonzini <bonzini@gnu.org> |
25264 | ||
25265 | PR tree-optimization/35659 | |
25266 | * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq | |
25267 | vn_phi_eq): Shortcut if hashcode does not match. | |
25268 | (vn_reference_op_compute_hash): Do not call iterative_hash_expr for | |
25269 | NULL operands. | |
25270 | * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available, | |
25271 | and avoid iterative_hash_expr. | |
25272 | (FOR_EACH_VALUE_ID_IN_SET): New. | |
25273 | (value_id_compare): Remove. | |
25274 | (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to | |
25275 | sort expressions by value id. | |
25276 | ||
6d39673d KK |
25277 | 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org> |
25278 | ||
25279 | PR target/38991 | |
25280 | * config/sh/predicates.md (general_movsrc_operand): Don't check | |
25281 | the subreg of system registers here. | |
25282 | ||
e6e1c050 JJ |
25283 | 2009-02-05 Jakub Jelinek <jakub@redhat.com> |
25284 | ||
25285 | PR c++/39106 | |
25286 | * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P | |
25287 | on the copied decl. | |
25288 | ||
65a74b5d PB |
25289 | 2009-02-05 Paolo Bonzini <bonzini@gnu.org> |
25290 | ||
25291 | PR rtl-optimization/39110 | |
25292 | * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned | |
25293 | addresses, not aligned ones. | |
25294 | ||
08e14b2a DB |
25295 | 2009-02-05 Daniel Berlin <dberlin@dberlin.org> |
25296 | Richard Guenther <rguenther@suse.de> | |
25297 | ||
25298 | PR tree-optimization/39100 | |
25299 | * tree-ssa-structalias.c (do_ds_constraint): Actually do what the | |
25300 | comment says and add edges. | |
25301 | ||
5006381c JM |
25302 | 2009-02-05 Joseph Myers <joseph@codesourcery.com> |
25303 | ||
25304 | PR c/35435 | |
25305 | * c-common.c (handle_tls_model_attribute): Ignore attribute for | |
25306 | non-VAR_DECLs without checking DECL_THREAD_LOCAL_P. | |
25307 | ||
2ba9daa7 | 25308 | 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de> |
b0789219 TG |
25309 | |
25310 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
25311 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
25312 | register_bb_in_sese, new_sese, free_sese): Moved. | |
25313 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
25314 | outermost_loop_in_scop, build_scop_iteration_domain, | |
25315 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
25316 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
25317 | Use loop_in_sese_p instead of loop_in_scop_p. | |
25318 | (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B. | |
25319 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B. | |
25320 | (scopdet_basic_block_info): Fix bug in scop detection. | |
25321 | (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
25322 | eq_loop_to_cloog_loop): Remove. | |
25323 | (nb_loops_around_loop_in_scop, nb_loop | |
25324 | ref_nb_loops): Moved here... | |
25325 | * graphite.h (ref_nb_loops): ... from here. | |
25326 | (struct scop): Remove bbs_b bitmap and loop2cloog_loop. | |
25327 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
25328 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
b0789219 | 25329 | |
48e8382e PB |
25330 | 2009-02-04 Paolo Bonzini <bonzini@gnu.org> |
25331 | Hans-Peter Nilsson <hp@axis.com> | |
25332 | ||
25333 | PR rtl-optimization/37889 | |
25334 | * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments. | |
25335 | Move offset handling from PLUS to before the switch. Use new | |
25336 | arguments when considering SYMBOL_REFs too. | |
25337 | (rtx_addr_can_trap_p): Pass dummy offset and size. | |
25338 | (enum may_trap_p_flags): Remove. | |
25339 | (may_trap_p_1): Pass size from MEM_SIZE. | |
25340 | ||
25341 | PR rtl-optimization/38921 | |
25342 | * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p. | |
25343 | * rtl.h (may_trap_after_code_motion_p): Delete prototype. | |
25344 | * rtlanal.c (may_trap_after_code_motion_p): Delete. | |
25345 | (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags. | |
25346 | ||
69349ea5 L |
25347 | 2009-02-04 H.J. Lu <hongjiu.lu@intel.com> |
25348 | ||
25349 | AVX Programming Reference (January, 2009) | |
25350 | * config/i386/sse.md (*vpclmulqdq): New. | |
25351 | ||
b545e411 JJ |
25352 | 2009-02-04 Jakub Jelinek <jakub@redhat.com> |
25353 | ||
25354 | PR tree-optimization/38977 | |
25355 | PR gcov-profile/38292 | |
bf9b2cc9 | 25356 | * calls.c (special_function_p): Disregard __builtin_ prefix. |
b545e411 | 25357 | |
5b43bf05 HS |
25358 | 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com> |
25359 | ||
25360 | * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow | |
25361 | non-indexable addresses even before reload. | |
25362 | ||
062c4bb3 JM |
25363 | 2009-02-03 Joseph Myers <joseph@codesourcery.com> |
25364 | ||
25365 | PR c/29129 | |
25366 | * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators | |
25367 | as having variable size. Do not give an error for unnamed | |
25368 | parameters with [*] declarators. Give a warning for type names | |
25369 | with [*] declarators and mark them as variable size. | |
25370 | * c-parser.c (c_parser_sizeof_expression): Do not give an error | |
25371 | for sizeof applied to [*] type names. | |
25372 | ||
6175f578 AP |
25373 | 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com> |
25374 | ||
25375 | PR C++/36607 | |
25376 | * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE. | |
25377 | ||
d4f4bc84 JJ |
25378 | 2009-02-03 Jakub Jelinek <jakub@redhat.com> |
25379 | ||
25380 | * gcc.c (process_command): Update copyright notice dates. | |
25381 | * gcov.c (print_version): Likewise. | |
25382 | * gcov-dump.c (print_version): Likewise. | |
25383 | * mips-tfile.c (main): Likewise. | |
25384 | * mips-tdump.c (main): Likewise. | |
25385 | ||
f6294de7 JM |
25386 | 2009-02-03 Joseph Myers <joseph@codesourcery.com> |
25387 | ||
25388 | PR c/35433 | |
25389 | * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT | |
25390 | for composite type involving a zero-length array type. | |
25391 | ||
754ccf7c JJ |
25392 | 2009-02-03 Jakub Jelinek <jakub@redhat.com> |
25393 | ||
70f16287 JJ |
25394 | PR target/35318 |
25395 | * function.c (match_asm_constraints_1): Skip over | |
25396 | initial optional % in the constraint. | |
25397 | ||
754ccf7c JJ |
25398 | PR inline-asm/39059 |
25399 | * c-parser.c (c_parser_postfix_expression): If fixed point is not | |
25400 | supported, don't accept FIXED_CSTs. | |
25401 | * c-decl.c (finish_declspecs): Error if fixed point is not supported | |
25402 | and _Sat is used without _Fract/_Accum. Set specs->type to | |
25403 | integer_type_node for cts_fract/cts_accum if fixed point is not | |
25404 | supported. | |
25405 | ||
965fdadf CM |
25406 | 2009-02-02 Catherine Moore <clm@codesourcery.com> |
25407 | ||
dbf9ee15 | 25408 | * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls. |
965fdadf | 25409 | |
2e8a796f RS |
25410 | 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com> |
25411 | ||
25412 | * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro. | |
25413 | (ABI_HAS_64BIT_SYMBOLS): Use it. | |
25414 | (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS. | |
25415 | ||
e0079468 PB |
25416 | 2009-02-02 Paul Brook <paul@codesourcery.com> |
25417 | ||
25418 | * config/arm/arm.md (arm_addsi3): Add r/r/k alternative. | |
25419 | ||
eca72963 JJ |
25420 | 2009-02-02 Jakub Jelinek <jakub@redhat.com> |
25421 | ||
25422 | PR inline-asm/39058 | |
25423 | * recog.h (asm_operand_ok): Add constraints argument. | |
25424 | * recog.c (asm_operand_ok): Likewise. If it is set, for digits | |
25425 | recurse on matching constraint. | |
25426 | (check_asm_operands): Pass constraints as 3rd argument to | |
25427 | asm_operand_ok. Don't look up matching constraint here. | |
25428 | * stmt.c (expand_asm_operands): Pass NULL as 3rd argument | |
25429 | to asm_operand_ok. | |
25430 | ||
b5bde9ff BE |
25431 | 2009-02-02 Ben Elliston <bje@au.ibm.com> |
25432 | ||
25433 | * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and | |
25434 | TARGET_NARROW_VOLATILE_BITFIELD macro names. | |
25435 | ||
30f3e427 JDA |
25436 | 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
25437 | ||
be7659ba JDA |
25438 | * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker |
25439 | information. Remove some obsolete information. Reorganize. | |
25440 | ||
30f3e427 JDA |
25441 | * config/pa/fptr.c: Revert license to GPL 2. |
25442 | * config/pa/milli64.S: Likewise. | |
25443 | ||
3cbfaf98 DK |
25444 | 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com> |
25445 | ||
25446 | PR target/38904 | |
25447 | * mkmap-flat.awk (END): Use pe_dll command-line arg to pass | |
25448 | LIBRARY name in, instead of hard-coding it. | |
25449 | * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an | |
25450 | extra target make frag to tmake_files according to EH model. | |
25451 | (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise. | |
25452 | * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target | |
25453 | frags that define makefile variable EH_MODEL appropriately. | |
25454 | * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment. | |
25455 | * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or | |
25456 | to "-sjlj" according to type of EH configured. | |
25457 | (LIBGCC_SONAME): Concatenate it to shared library base name. | |
25458 | * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or | |
25459 | to "_sjlj" according to type of EH configured. | |
25460 | (LIBGCC_SONAME): Concatenate it to shared library base name. | |
25461 | * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL. | |
25462 | (SHLIB_LINK): Add missing semicolon to if-else construct. | |
25463 | (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as | |
25464 | string value of "pe_dll" command-line option. | |
25465 | * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper. | |
25466 | (SHLIB_SONAME): Use it when overriding t-cygming default. | |
25467 | (SHLIB_IMPLIB): Override t-cygming default. | |
25468 | (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as | |
25469 | string value of "pe_dll" command-line option. | |
25470 | ||
8d0b6068 DK |
25471 | 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com> |
25472 | ||
25473 | PR target/38952 | |
25474 | * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New. | |
bf9b2cc9 | 25475 | (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it. |
8d0b6068 | 25476 | |
14c28276 RG |
25477 | 2009-01-31 Richard Guenther <rguenther@suse.de> |
25478 | ||
25479 | PR tree-optimization/38937 | |
25480 | * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut | |
25481 | computing the transitive closure. | |
25482 | ||
5f4d82c2 RG |
25483 | 2009-01-30 Richard Guenther <rguenther@suse.de> |
25484 | ||
25485 | PR tree-optimization/39041 | |
25486 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): | |
25487 | Propagate variable indices only if the types match for this stmt. | |
25488 | ||
d0728ae0 JJ |
25489 | 2009-01-30 Jakub Jelinek <jakub@redhat.com> |
25490 | ||
25491 | PR target/39013 | |
25492 | * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared | |
25493 | inline but never defined. | |
25494 | ||
6b67572e | 25495 | 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com> |
9fec758d WG |
25496 | |
25497 | * config/s390/s390.md (*insv<mode>_reg_extimm): Removed. | |
25498 | (*insv_h_di_reg_extimm): New insn. | |
25499 | (*insv_l<mode>_reg_extimm): New insn. | |
25500 | ||
25501 | 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com> | |
9e8be1e4 HS |
25502 | |
25503 | * config/picochip/picochip.c (flag_conserve_stack): set | |
25504 | PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under | |
25505 | fconserve-stack. Reduce call-overhead used by inliner. | |
25506 | ||
9fec758d | 25507 | 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com> |
df9198ab HS |
25508 | |
25509 | PR/38157 | |
25510 | * common.opt (flag_conserve_stack): Initialised to zero. | |
25511 | ||
7f1c539c KT |
25512 | 2009-01-30 Kai Tietz <kai.tietz@onevision.com> |
25513 | ||
25514 | PR/39002 | |
25515 | * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs. | |
25516 | (ix86_expand_epilogue): Take nsseregs in account to use proper restore | |
25517 | method. | |
25518 | ||
3631be48 L |
25519 | 2009-01-29 H.J. Lu <hongjiu.lu@intel.com> |
25520 | ||
25521 | * ira-color.c (allocno_reload_assign): Update comments. | |
25522 | * regmove.c (regmove_optimize): Likewise. | |
25523 | ||
25524 | * ra.h: Removed. | |
25525 | ||
416ac4d4 RM |
25526 | 2009-01-29 Robert Millan <rmh@aybabtu.com> |
25527 | ||
60839f5d EB |
25528 | * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu). |
25529 | * config/i386/kopensolaris-gnu.h: New file. Undefine | |
416ac4d4 | 25530 | `MD_UNWIND_SUPPORT'. |
60839f5d | 25531 | * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h). |
416ac4d4 | 25532 | |
d5e54bc1 KH |
25533 | 2009-01-29 Kazu Hirata <kazu@codesourcery.com> |
25534 | ||
25535 | PR tree-optimization/39007 | |
25536 | * tree-loop-distribution.c (generate_builtin): Use | |
25537 | recompute_dominator to compute the immediate dominator of the | |
25538 | basic block just after the loop. | |
25539 | ||
38432148 | 25540 | 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
e9e077fa RO |
25541 | |
25542 | * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA] | |
25543 | (ASM_OUTPUT_DWARF_PCREL): Define. | |
25544 | ||
38432148 | 25545 | 2009-01-29 Vladimir Makarov <vmakarov@redhat.com> |
2af2dbdc VM |
25546 | |
25547 | * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. | |
25548 | * doc/passes.texi: Remove entries about regclass, local-alloc, and | |
25549 | global. Modify entries about regmove and IRA. | |
25550 | ||
25551 | * ra-conflict.c: Remove the file. | |
25552 | ||
25553 | * reload.c (push_reload, find_dummy_reload): Remove flag_ira. | |
25554 | ||
25555 | * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove. | |
25556 | (pass_regclass_init): Rename to pass_reginfo_init. | |
25557 | ||
25558 | * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira. | |
25559 | ||
25560 | * toplev.h (flag_ira): Remove. | |
25561 | ||
25562 | * caller-save.c (setup_save_areas): Remove flag_ira. | |
25563 | ||
bf9b2cc9 | 25564 | * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto. |
2af2dbdc VM |
25565 | |
25566 | * global.c: Remove the file. | |
25567 | ||
ba20e309 | 25568 | * opts.c (decode_options): Remove flag_ira. |
2af2dbdc VM |
25569 | |
25570 | * hard-reg-set.h (losing_caller_save_reg_set): Remove. | |
25571 | ||
25572 | * regmove.c: Modify file description. | |
25573 | (find_use_as_address, try_auto_increment): Define them only if | |
25574 | AUTO_INC_DEC is defined. | |
25575 | (replacement_quality, replace_in_call_usage, fixup_match_1, | |
25576 | stable_and_no_regs_but_for_p): Remove. | |
25577 | (reg_set_in_bb): Make it static. | |
25578 | (regmove_optimize): Remove flag_ira and code which worked for | |
25579 | !flag_ira. | |
25580 | ||
25581 | * local-alloc.c: Remove the file. | |
25582 | ||
25583 | * common.opt (fira): Remove. | |
25584 | ||
25585 | * ira.c: Include except.h. | |
25586 | (eliminable_regset): Move from global.c. | |
25587 | (mark_elimination): Ditto. Remove flag_ira. | |
25588 | (reg_renumber, struct equivalence, reg_equiv, equiv_mem, | |
25589 | equiv_mem_modified, validate_equiv_mem_from_store, | |
25590 | validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p, | |
25591 | contains_replace_regs, memref_referenced_p, memref_used_between_p, | |
25592 | no_equiv, recorded_label_ref): Move from local-alloc.c. | |
25593 | (update_equiv_regs): Ditto. Make it static. | |
25594 | (print_insn_chain, print_insn_chains): Move it from global.c. | |
bf9b2cc9 | 25595 | (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira. |
2af2dbdc VM |
25596 | (build_insn_chain): Ditto. Make it static. |
25597 | (ra_init_live_subregs): Move from ra-conflict.c. Make it static. | |
25598 | Rename to init_live_subregs. | |
25599 | (gate_ira): Remove flag_ira. | |
25600 | ||
25601 | * regclass.c: Rename reginfo.c. Change file description. | |
25602 | (FORBIDDEN_INC_DEC_CLASSES): Remove. | |
dbf9ee15 | 25603 | (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove. |
2af2dbdc VM |
25604 | (init_reg_sets_1): Remove code for evaluation of |
25605 | reg_class_superclasses and losing_caller_save_reg_set. | |
25606 | (init_regs): Remove init_reg_autoinc. | |
25607 | (struct costs, costs, init_cost, ok_for_index_p_nonstrict, | |
25608 | ok_for_base_p_nonstrict): Remove. | |
bf9b2cc9 | 25609 | (regclass_init): Rename to reginfo_init. Don't initialize init_cost. |
2af2dbdc VM |
25610 | (pass_regclass_init): Rename to pass_reginfo_init. Modify |
25611 | corresponding entries. | |
25612 | (dump_regclass, record_operand_costs, scan_one_insn, | |
25613 | init_reg_autoinc, regclass, record_reg_classes, copy_cost, | |
25614 | record_address_regs, auto_inc_dec_reg_p): Remove. | |
25615 | (gt-regclass.h): Rename to gt-reginfo.h. | |
25616 | ||
25617 | * rtl.h (dump_global_regs, retry_global_alloc, | |
bf9b2cc9 | 25618 | build_insn_chain, dump_local_alloc, update_equiv_regs): Remove. |
2af2dbdc VM |
25619 | |
25620 | * Makefile.in (RA_H): Remove. | |
25621 | (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o. | |
25622 | Rename regclass.o to reginfo.o. | |
25623 | (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to | |
25624 | gt-reginfo.h. | |
25625 | (global.o, local-alloc.o, ra-conflict.o): Remove entries. | |
25626 | (GTFILES): Rename regclass.c to reginfo.c. | |
25627 | ||
25628 | * passes.c (init_optimization_passes): Remove pass_local_alloc and | |
bf9b2cc9 | 25629 | pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init. |
2af2dbdc VM |
25630 | |
25631 | * reload1.c (compute_use_by_pseudos, reload, count_pseudo, | |
25632 | count_spilled_pseudo, find_reg, alter_reg, delete_output_reload): | |
25633 | Remove flag_ira. | |
6b67572e | 25634 | (finish_spills): Ditto. Remove code for !flag_ira. |
2ba9daa7 | 25635 | |
c95b2534 | 25636 | 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com> |
00b251a0 KZ |
25637 | |
25638 | PR middle-end/35854 | |
25639 | * doc/invoke.texi (rtl debug options): Complete rewrite. | |
25640 | * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec" | |
25641 | to auto_inc_dec". | |
25642 | * mode-switching.c (pass_mode_switching): Rename pass from | |
25643 | "mode-sw" to "mode_sw". | |
25644 | * except.c (pass_convert_to_eh_ranges): Rename pass from | |
25645 | "eh-ranges" to "eh_ranges". | |
25646 | * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg" | |
25647 | to "subreg1". | |
2ba9daa7 AS |
25648 | |
25649 | ||
72a54528 AM |
25650 | 2009-01-29 Andrey Belevantsev <abel@ispras.ru> |
25651 | Alexander Monakov <amonakov@ispras.ru> | |
25652 | ||
25653 | PR middle-end/38857 | |
25654 | * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard | |
25655 | register. | |
25656 | (move_exprs_to_boundary): Change return type and pass through | |
25657 | should_move from move_op. Relax assert. Update usage ... | |
25658 | (schedule_expr_on_boundary): ... here. Use should_move instead of | |
25659 | cant_move. | |
25660 | (move_op_orig_expr_found): Indicate that insn was disconnected from | |
25661 | stream. | |
25662 | (code_motion_process_successors): Do not call after_merge_succs | |
25663 | callback if original expression was not found when traversing any of | |
25664 | the branches. | |
25665 | (code_motion_path_driver): Change return type. Update prototype. | |
25666 | (move_op): Update comment. Add a new parameter (should_move). Update | |
25667 | prototype. Set *should_move based on indication provided by | |
25668 | move_op_orig_expr_found. | |
25669 | ||
001b9eb6 PH |
25670 | 2009-01-28 Pat Haugen <pthaugen@us.ibm.com> |
25671 | ||
25672 | * doc/invoke.texi (avoid-indexed-addresses): Document new option. | |
25673 | * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare. | |
25674 | * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option. | |
25675 | * config/rs6000/rs6000.c (rs6000_override_options): Default | |
25676 | avoid-indexed-addresses on for Power6, off for everything else. | |
25677 | (avoiding_indexed_address_p): New function. | |
25678 | (rs6000_legitimize_address): Use it. | |
25679 | (rs6000_legitimate_address): Likewise. | |
25680 | * config/rs6000/rs6000.md (movXX_updateX): Likewise | |
25681 | ||
59dc4898 KH |
25682 | 2009-01-28 Kazu Hirata <kazu@codesourcery.com> |
25683 | ||
25684 | PR tree-optimization/38997 | |
25685 | * tree-loop-distribution.c (generate_memset_zero): Use | |
25686 | POINTER_PLUS_EXPR for a pointer addition. | |
25687 | ||
07da44ab AK |
25688 | 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com> |
25689 | ||
25690 | * config/s390/s390.md (bswap<mode>2): New pattern added. | |
25691 | ||
cdc15d23 WG |
25692 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25693 | ||
25694 | * config/s390/s390.md (*tls_load_31): Added type attribute. | |
25695 | ||
d46f24b6 WG |
25696 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25697 | ||
25698 | * config/s390/s390.md: Fix a few comments. | |
25699 | ||
729e750f WG |
25700 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25701 | ||
25702 | * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute. | |
25703 | (*tm<mode>_full): Fixed z10prop attribute. | |
25704 | (*tst<mode>_extimm): Fixed z10prop attribute. | |
25705 | (*tst<mode>_cconly_extimm): Fixed z10prop attribute. | |
25706 | (*tstqiCCT_cconly): Fixed z10prop attribute. | |
25707 | (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute. | |
25708 | (*movsi_larl): Fixed z10prop attribute. | |
25709 | (*movsi_zarch): Fixed z10prop attribute. | |
25710 | (*movsi_eas): Fixed z10prop attribute. | |
25711 | (*movhi): Fixed z10prop attribute. | |
25712 | (*movqi): Fixed z10prop attribute. | |
25713 | (*movstrictqi): Fixed z10prop attribute. | |
25714 | (*mov<mode>): Fixed z10prop attribute. | |
25715 | (*movcc): Fixed z10prop attribute. | |
25716 | (*sethighpartdi_64): Fixed z10prop attribute. | |
25717 | (*zero_extendhi<mode>2_z10): Fixed z10prop attribute. | |
25718 | (*negdi2_sign_cc): Fixed z10prop attribute. | |
25719 | (*negdi2_sign): Fixed z10prop attribute. | |
25720 | (*absdi2_sign_cc): Fixed z10prop attribute. | |
25721 | (*absdi2_sign): Fixed z10prop attribute. | |
25722 | (*negabsdi2_sign_cc): Fixed z10prop attribute. | |
25723 | (*negabsdi2_sign): Fixed z10prop attribute. | |
25724 | (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute. | |
25725 | (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute. | |
25726 | (doloop_si64): Fixed z10prop attribute. | |
25727 | (doloop_si31): Fixed z10prop attribute. | |
25728 | (doloop_long): Fixed z10prop attribute. | |
25729 | (indirect_jump): Fixed z10prop attribute. | |
25730 | (nop): Fixed z10prop attribute. | |
25731 | (main_base_64): Fixed z10prop attribute. | |
25732 | (reload_base_64): Fixed z10prop attribute. | |
25733 | ||
c7789bfb JJ |
25734 | 2009-01-28 Jakub Jelinek <jakub@redhat.com> |
25735 | ||
25736 | PR rtl-optimization/38740 | |
6b67572e UB |
25737 | * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling |
25738 | if !optimize. | |
c7789bfb JJ |
25739 | * config/mips/mips.c (mips_reorg): Likewise. |
25740 | ||
de081cfd RG |
25741 | 2009-01-28 Richard Guenther <rguenther@suse.de> |
25742 | ||
25743 | PR tree-optimization/38926 | |
25744 | * tree-ssa-pre.c (add_to_value): Assert we add only expressions | |
25745 | with the correct value id to a value. | |
25746 | (do_regular_insertion): Use the value number of edoubleprime | |
25747 | for the value number of the expr. | |
25748 | ||
25749 | Revert | |
25750 | 2008-08-21 Richard Guenther <rguenther@suse.de> | |
bf9b2cc9 | 25751 | |
d748c406 UB |
25752 | * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting |
25753 | a PHI ask VN if it is already available. | |
25754 | * tree-ssa-sccvn.h (vn_phi_lookup): Declare. | |
25755 | * tree-ssa-sccvn.c (vn_phi_lookup): Export. | |
de081cfd | 25756 | |
a9d386a1 JJ |
25757 | 2009-01-28 Jakub Jelinek <jakub@redhat.com> |
25758 | ||
25759 | PR middle-end/38934 | |
25760 | * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR | |
25761 | set to varying whenever max has TREE_OVERFLOW set, similarly | |
25762 | for GE_EXPR and GT_EXPR and TREE_OVERFLOW min. | |
25763 | ||
97a170cd RG |
25764 | 2009-01-28 Richard Guenther <rguenther@suse.de> |
25765 | ||
25766 | PR middle-end/38908 | |
25767 | * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly | |
25768 | uninitialized aggregate uses in call arguments. | |
25769 | ||
89ebafc6 PB |
25770 | 2009-01-28 Paolo Bonzini <bonzini@gnu.org> |
25771 | ||
25772 | PR tree-optimization/38984 | |
25773 | * tree-ssa-structalias.c (get_constraints_for_1): Do not use | |
25774 | the nothing_id variable if -fno-delete-null-pointer-checks. | |
25775 | ||
bef3c57b UB |
25776 | 2009-01-28 Uros Bizjak <ubizjak@gmail.com> |
25777 | ||
25778 | PR target/38988 | |
25779 | * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref. | |
25780 | (set_got_offset_rex64): Ditto. | |
25781 | ||
0c6390fa L |
25782 | 2009-01-27 H.J. Lu <hongjiu.lu@intel.com> |
25783 | ||
25784 | PR target/38941 | |
25785 | * doc/extend.texi: Improve local variable with asm reg. | |
25786 | ||
bee6fa6d AN |
25787 | 2009-01-27 Adam Nemet <anemet@caviumnetworks.com> |
25788 | ||
25789 | * c.opt (Wpacked-bitfield-compat): Change init value to -1. | |
25790 | * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat | |
25791 | was not supplied then set warn_packed_bitfield_compat to the | |
25792 | default value of 1. | |
25793 | * stor-layout.c (place_field): Check warn_packed_bitfield_compat | |
25794 | against 1. | |
25795 | ||
b5c3dfbb RG |
25796 | 2009-01-27 Richard Guenther <rguenther@suse.de> |
25797 | ||
25798 | PR tree-optimization/38503 | |
25799 | * cfgexpand.c (expand_gimple_basic_block): Ignore | |
25800 | GIMPLE_CHANGE_DYNAMIC_TYPE during expansion. | |
25801 | * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune | |
25802 | variables that cannot have TBAA applied. | |
25803 | (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE | |
25804 | statements. | |
25805 | ||
d748c406 | 25806 | 2009-01-27 Uros Bizjak <ubizjak@gmail.com> |
576de5cb UB |
25807 | |
25808 | PR middle-end/38969 | |
25809 | * calls.c (initialize_argument_information): Do not wrap complex | |
25810 | arguments in SAVE_EXPR. | |
25811 | ||
9112bb38 AT |
25812 | 2009-01-26 Andreas Tobler <a.tobler@schweiz.org> |
25813 | ||
25814 | * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo. | |
5efb79fc | 25815 | (INSTALL_LIBGCC): Revert typo commit. |
9112bb38 | 25816 | |
4757704f RG |
25817 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25818 | ||
25819 | PR tree-optimization/38745 | |
25820 | * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL | |
25821 | from special handling. | |
25822 | ||
e3e6cff4 RG |
25823 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25824 | ||
25825 | PR tree-optimization/38745 | |
25826 | * tree-ssa.c (execute_update_addresses_taken): Do not include | |
25827 | variables that cannot possibly be a register in not_reg_needs. | |
25828 | Do not clear TREE_ADDRESSABLE on vars that may not become | |
25829 | registers. | |
25830 | * tree-ssa.c (update_alias_info_1): Include those in the set | |
25831 | of addressable vars. | |
25832 | ||
dc874b53 RG |
25833 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25834 | ||
25835 | PR middle-end/38851 | |
25836 | * Makefile.in (tree-ssa-dse.o): Add langhooks.h. | |
25837 | * tree-ssa-dse.c: Include langhooks.h | |
25838 | (execute_simple_dse): Remove stores with zero size. | |
25839 | ||
849421a3 JJ |
25840 | 2009-01-24 Jakub Jelinek <jakub@redhat.com> |
25841 | ||
25842 | PR c/38957 | |
25843 | * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way | |
25844 | as PLUS_EXPR. | |
25845 | ||
82f70421 JB |
25846 | 2009-01-24 Julian Brown <julian@codesourcery.com> |
25847 | ||
25848 | * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add | |
25849 | config/arm/linux-atomic.c. | |
25850 | * config/arm/linux-atomic.c: New. | |
25851 | ||
863412d6 EB |
25852 | 2009-01-24 Eric Botcazou <ebotcazou@adacore.com> |
25853 | ||
25854 | * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete. | |
25855 | * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise. | |
25856 | * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise. | |
25857 | ||
8c684300 L |
25858 | 2009-01-24 H.J. Lu <hongjiu.lu@intel.com> |
25859 | ||
25860 | PR c/38938 | |
93f1527a | 25861 | * c-opts.c (c_common_handle_option): Update warn_pointer_sign |
8c684300 L |
25862 | properly. |
25863 | ||
b840fb02 SP |
25864 | 2009-01-24 Sebastian Pop <sebastian.pop@amd.com> |
25865 | ||
25866 | PR tree-optimization/38953 | |
25867 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
25868 | (scop_adjust_phis_for_liveouts): Initialize false_i to zero. | |
25869 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
25870 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
25871 | changed the CFG. | |
25872 | ||
ecee559f PB |
25873 | 2009-01-24 Paul Brook <paul@codesourcery.com> |
25874 | ||
25875 | * config/arm/neon.md (neon_type): Move to arm.md. | |
25876 | (neon_mov<VSTRUCT>): Add neon_type attribute. | |
25877 | * config/arm/arm.md (neon_type): Move to here. | |
25878 | (conds): Add "unconditioal" and use as default for NEON insns. | |
25879 | ||
61ad0914 BE |
25880 | 2009-01-24 Ben Elliston <bje@au.ibm.com> |
25881 | ||
25882 | * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from | |
25883 | void *' warning from -Wc++-compat. | |
25884 | * Makefile.in (dominance.o-warn): Remove. | |
25885 | ||
38432148 | 25886 | 2009-01-23 Paolo Bonzini <bonzini@gnu.org> |
9bacafeb PB |
25887 | |
25888 | PR tree-optimization/38932 | |
25889 | * fold-const.c (fold_unary_ignore_overflow): New. | |
25890 | * tree.h (fold_unary_ignore_overflow): Declare. | |
25891 | * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow. | |
25892 | * tree-ssa-sccvn.c (visit_reference_op_load, | |
25893 | simplify_unary_expression): Likewise. | |
25894 | ||
2cd36c22 AN |
25895 | 2009-01-22 Adam Nemet <anemet@caviumnetworks.com> |
25896 | ||
25897 | * c-decl.c (finish_struct): Move code to set DECL_PACKED after | |
25898 | DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields | |
25899 | regardless of their type. | |
25900 | * c-common.c (handle_packed_attribute): Don't ignore packed on | |
25901 | bitfields. | |
25902 | * c.opt (Wpacked-bitfield-compat): New warning option. | |
25903 | * stor-layout.c (place_field): Warn if offset of a field changed. | |
25904 | * doc/extend.texi (packed): Mention the ABI change. | |
25905 | * doc/invoke.texi (-Wpacked-bitfield-compat): Document. | |
25906 | (Warning Options): Add it to the list. | |
25907 | ||
e4e624ab L |
25908 | 2009-01-22 H.J. Lu <hongjiu.lu@intel.com> |
25909 | ||
25910 | * c-opts.c (c_common_post_options): Fix a typo in comments. | |
25911 | ||
d0ea0759 SE |
25912 | 2009-01-22 Steve Ellcey <sje@cup.hp.com> |
25913 | ||
25914 | PR middle-end/38615 | |
25915 | * gimplify.c (gimplify_init_constructor): Fix promotion of const | |
25916 | variables to static. | |
25917 | * doc/invoke.texi (-fmerge-all-constants): Update description. | |
25918 | ||
87673f84 UB |
25919 | 2009-01-22 Uros Bizjak <ubizjak@gmail.com> |
25920 | ||
25921 | PR target/38931 | |
25922 | * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2. | |
25923 | (*movdi_1_rex64): Use type "mmx" for alternative 5. | |
25924 | ||
96339268 RE |
25925 | 2009-01-22 Richard Earnshaw <rearnsha@arm.com> |
25926 | ||
25927 | * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to | |
25928 | a word boundary. | |
25929 | (LOCAL_ALIGNMENT): Similarly. | |
25930 | ||
442dc742 | 25931 | 2009-01-22 Mark Shinwell <shinwell@codesourcery.com> |
87673f84 | 25932 | Joseph Myers <joseph@codesourcery.com> |
442dc742 MS |
25933 | |
25934 | * config/arm/arm.c (all_architectures): Add iWMMXt2 entry. | |
25935 | * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2. | |
25936 | * config/arm/arm-tune.md: Regenerate. | |
25937 | * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and | |
25938 | -march=iwmmxt2. | |
25939 | ||
9b34732e MS |
25940 | 2009-01-22 Mark Shinwell <shinwell@codesourcery.com> |
25941 | ||
25942 | * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI | |
25943 | version number to five. | |
25944 | ||
03c2a308 DS |
25945 | 2009-01-22 Dodji Seketeli <dodji@redhat.com> |
25946 | ||
25947 | PR c++/38930 | |
ba20e309 | 25948 | * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes. |
03c2a308 DS |
25949 | * c-common.c (set_underlying_type): Likewise. |
25950 | (is_typedef_decl ): Likewise | |
25951 | * tree.h: Likewise | |
25952 | (set_underlying_type): Likewise. | |
25953 | (is_typedef_type): Likewise. | |
25954 | ||
1240d76e VM |
25955 | 2009-01-21 Vladimir Makarov <vmakarov@redhat.com> |
25956 | ||
25957 | PR middle-end/38587 | |
25958 | * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos | |
25959 | crossing setjmps. | |
25960 | ||
b8a1087d DK |
25961 | 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com> |
25962 | ||
25963 | PR bootstrap/37660 | |
25964 | * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro. | |
25965 | (LIBGCC_SPEC): Don't define. | |
25966 | (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC. | |
25967 | ||
435da628 UB |
25968 | 2009-01-21 Uros Bizjak <ubizjak@gmail.com> |
25969 | ||
25970 | PR rtl-optimization/38879 | |
25971 | * alias.c (base_alias_check): Unaligned access via AND address can | |
25972 | alias all surrounding object types except those with sizes equal | |
25973 | or wider than the size of unaligned access. | |
25974 | ||
d597b3ce DS |
25975 | 2009-01-21 Dodji Seketeli <dodji@redhat.com> |
25976 | ||
25977 | PR c++/26693 | |
ba20e309 | 25978 | * c-decl.c (clone_underlying_type): Move this ... |
d597b3ce | 25979 | * c-common.c (set_underlying_type): ... here. |
435da628 | 25980 | Also, make sure the function properly sets TYPE_STUB_DECL() on |
d597b3ce DS |
25981 | the newly created typedef variant type. |
25982 | (is_typedef_decl ): New entry point. | |
25983 | * tree.h: Added a new member member_types_needing_access_check to | |
25984 | struct tree_decl_non_common. | |
25985 | (set_underlying_type): New entry point. | |
25986 | (is_typedef_type): Likewise. | |
25987 | ||
71a6fe66 BM |
25988 | 2009-01-21 Bingfeng Mei <bmei@broadcom.com> |
25989 | ||
25990 | * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p): | |
25991 | Check whether two instructions have memory references that | |
25992 | belong to conflicting alias sets. walk_mems_1 and walk_mems_2 | |
25993 | are helper functions for traversing. | |
25994 | * alias.h (insn_alias_sets_confilict_p): New prototypes. | |
25995 | * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p | |
25996 | not to draw dependency edge for instructions with non-conflicting | |
25997 | alias sets. | |
25998 | ||
5a248274 JM |
25999 | 2009-01-20 Joseph Myers <joseph@codesourcery.com> |
26000 | ||
26001 | PR other/38758 | |
6b67572e UB |
26002 | * longlong.h: Update copyright years. Use soft-fp license notice. |
26003 | Sync __clz_tab declaration with glibc. | |
5a248274 | 26004 | |
4b84f3de SE |
26005 | 2009-01-20 Steve Ellcey <sje@cup.hp.com> |
26006 | ||
26007 | PR target/30687 | |
26008 | * doc/extend.texi (syscall_linkage): New. | |
26009 | (version_id): Modify. | |
26010 | ||
37348bf1 | 26011 | 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com> |
435da628 | 26012 | Richard Guenther <rguenther@suse.de> |
37348bf1 AP |
26013 | |
26014 | PR tree-optimization/38747 | |
26015 | PR tree-optimization/38748 | |
26016 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE | |
26017 | conversion if the base address is an indirect reference and the | |
26018 | aliasing sets could cause issues. | |
26019 | ||
d0a58904 SP |
26020 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> |
26021 | ||
2ba9daa7 | 26022 | * common.opt (fgraphite, fgraphite-identity): Add comment for |
d0a58904 SP |
26023 | explaining why these options are not documented. |
26024 | ||
71e7afb2 SP |
26025 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> |
26026 | ||
26027 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
26028 | gimple_call_lhs is NULL. | |
26029 | ||
38432148 | 26030 | 2009-01-20 Paolo Bonzini <bonzini@gnu.org> |
09efeca1 PB |
26031 | |
26032 | PR target/38868 | |
26033 | * emit-rtl.c (adjust_address_1): Make sure memref is never | |
26034 | overwritten. | |
26035 | ||
cbb8dee3 BE |
26036 | 2009-01-20 Ben Elliston <bje@au.ibm.com> |
26037 | ||
26038 | * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove | |
435da628 | 26039 | const qualifier from arg parameter. Remove unnecessary cast to char *. |
cbb8dee3 BE |
26040 | * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove |
26041 | const qualifier from arg 2. | |
26042 | ||
72c66596 IS |
26043 | 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> |
26044 | ||
435da628 | 26045 | * config/darwin.h: Add static-libgfortran to LINK_SPEC. |
72c66596 | 26046 | |
f68211cd VM |
26047 | 2009-01-19 Vladimir Makarov <vmakarov@redhat.com> |
26048 | ||
26049 | PR c/38869 | |
26050 | * rtl.h (reinit_regs): New prototype. | |
26051 | * regclass.c: Include ira.h. | |
26052 | (reinit_regs): New. | |
26053 | * Makefile.in (regclass.o): Add ira.h. | |
26054 | * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs. | |
26055 | ||
6e4f1168 L |
26056 | 2009-01-18 H.J. Lu <hongjiu.lu@intel.com> |
26057 | ||
26058 | PR target/38736 | |
26059 | * c-common.c (handle_aligned_attribute): Use | |
26060 | ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for | |
26061 | default alignment value. | |
26062 | ||
26063 | * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__. | |
26064 | ||
26065 | * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New. | |
26066 | * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise. | |
26067 | ||
26068 | * doc/extend.texi: Update __attribute__ ((aligned)). Document | |
26069 | __BIGGEST_ALIGNMENT__. | |
26070 | ||
26071 | * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE. | |
26072 | ||
890065bf RG |
26073 | 2009-01-18 Richard Guenther <rguenther@suse.de> |
26074 | ||
26075 | PR tree-optimization/38819 | |
26076 | * tree-flow.h (operation_could_trap_helper_p): Declare. | |
26077 | * tree-eh.c (operation_could_trap_helper_p): Export. | |
26078 | * tree-ssa-sccvn.h (vn_nary_may_trap): Declare. | |
26079 | * tree-ssa-sccvn.c (vn_nary_may_trap): New function. | |
26080 | * tree-ssa-pre.c (insert_into_preds_of_block): Check if we | |
26081 | are about to insert a possibly trapping instruction and fail | |
26082 | in this case. | |
26083 | ||
a729d731 AS |
26084 | 2009-01-18 Andreas Schwab <schwab@suse.de> |
26085 | ||
26086 | * doc/install.texi (Configuration): Remove obsolete paragraph | |
26087 | about use of --with-gnu-ld with --with-gnu-as. | |
26088 | ||
a640c13b KH |
26089 | 2009-01-18 Kazu Hirata <kazu@codesourcery.com> |
26090 | ||
26091 | * doc/extend.texi, doc/gimple.texi, doc/invoke.texi, | |
26092 | doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos. | |
26093 | Follow spelling conventions. | |
26094 | ||
dba2cc0c BE |
26095 | 2009-01-18 Ben Elliston <bje@au.ibm.com> |
26096 | ||
26097 | * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate | |
26098 | C++ warning about implicit conversion from void * to struct | |
26099 | bitmap_head_def *. | |
26100 | (bitmap_obstack_free): Likewise for bitmap_element *. | |
bc127c63 | 26101 | * Makefile.in (bitmap.o-warn): Remove. |
dba2cc0c | 26102 | |
2207a498 DK |
26103 | 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com> |
26104 | ||
26105 | * Makefile.in (BACKENDLIBS): Reorder to match dependencies. | |
26106 | ||
8137e465 SP |
26107 | 2009-01-17 Sebastian Pop <sebastian.pop@amd.com> |
26108 | Tobias Grosser <tobi.grosser@amd.com> | |
26109 | ||
26110 | * graphite.c (graphite_trans_scop_block): Do not block single | |
26111 | nested loops. | |
26112 | ||
5be1c58c AO |
26113 | 2009-01-16 Alexandre Oliva <aoliva@redhat.com> |
26114 | ||
26115 | * ebitmap.h (ebitmap_iter_init): Initialize all fields. | |
26116 | * ipa-struct-reorg.c (gen_struct_type): Replace known-true | |
26117 | test with assertion. | |
26118 | ||
786ce82d RG |
26119 | 2009-01-16 Richard Guenther <rguenther@suse.de> |
26120 | ||
26121 | PR tree-optimization/38835 | |
26122 | PR middle-end/36227 | |
26123 | * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT) | |
26124 | and INT + PTR -> (INT)(PTR p+ INT) folding. | |
26125 | * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR. | |
26126 | ||
c1cb09ad AN |
26127 | 2009-01-16 Adam Nemet <anemet@caviumnetworks.com> |
26128 | ||
26129 | PR target/38554 | |
26130 | * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift | |
26131 | the subreg from a lowpart subreg if it is also casting the value. | |
26132 | ||
bcab4e19 SP |
26133 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> |
26134 | Tobias Grosser <tobi.grosser@amd.com> | |
26135 | ||
26136 | * graphite.c (compare_prefix_loops): New. | |
26137 | (build_scop_canonical_schedules): Rewritten. | |
26138 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
26139 | after build_scop_iteration_domain. | |
26140 | ||
0b040072 SP |
26141 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> |
26142 | Tobias Grosser <tobi.grosser@amd.com> | |
26143 | ||
2ba9daa7 | 26144 | * graphite.c (add_conditions_to_domain): Add the loops to |
0b040072 SP |
26145 | the dimension of the iteration domain. Do copy the domain |
26146 | only when it exists. | |
26147 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
26148 | (add_conditions_to_constraints): New. | |
26149 | (can_generate_code_stmt, can_generate_code): Removed. | |
26150 | (gloog): Do not call can_generate_code. | |
26151 | (graphite_transform_loops): Call add_conditions_to_constraints | |
26152 | after building the iteration domain. | |
26153 | ||
56c6a499 JJ |
26154 | 2009-01-16 Jakub Jelinek <jakub@redhat.com> |
26155 | ||
26156 | PR tree-optimization/38789 | |
26157 | * tree-ssa-threadedge.c | |
26158 | (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to | |
26159 | __builtin_constant_p. | |
26160 | ||
c95b2534 | 26161 | 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com> |
cd3f1729 KZ |
26162 | |
26163 | * dce.c (delete_unmarked_insns): Reversed the order that insns are | |
26164 | examined before deleting them. | |
2ba9daa7 | 26165 | |
c433cb14 RE |
26166 | 2009-01-16 Richard Earnshaw <rearnsha@arm.com> |
26167 | ||
26168 | * function.c (aggregate_value_p): Correctly extract the function | |
26169 | type from CALL_EXPR_FN lookup. | |
26170 | ||
c95b2534 | 26171 | 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
27d62fa4 HS |
26172 | |
26173 | * config/picochip/picochip.c (picochip_override_options): Revert | |
26174 | CFI asm flag disable commited previously. | |
26175 | ||
c77bb78f SP |
26176 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> |
26177 | Tobias Grosser <tobi.grosser@amd.com> | |
26178 | Jan Sjodin <jan.sjodin@amd.com> | |
26179 | ||
26180 | * graphite.c (scan_tree_for_params): On substractions negate | |
26181 | all the coefficients of the term. | |
26182 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
26183 | of more than two operands. | |
26184 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
26185 | (get_vdef_before_scop): Handle also the case of default definitions. | |
26186 | ||
574af2d6 RS |
26187 | 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com> |
26188 | ||
26189 | * caller-save.c (add_used_regs_1, add_used_regs): New functions. | |
26190 | (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes. | |
26191 | Also use them when walking CALL_INSN_FUNCTION_USAGE. | |
26192 | ||
e939805b L |
26193 | 2009-01-15 H.J. Lu <hongjiu.lu@intel.com> |
26194 | Joey Ye <joey.ye@intel.com> | |
26195 | ||
26196 | PR middle-end/37843 | |
26197 | * cfgexpand.c (expand_stack_alignment): Don't update stack | |
26198 | boundary nor check incoming stack boundary here. | |
26199 | (gimple_expand_cfg): Update stack boundary and check incoming | |
26200 | stack boundary here. | |
26201 | ||
c95b2534 | 26202 | 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com> |
750900db | 26203 | |
435da628 | 26204 | * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments. |
2ba9daa7 | 26205 | |
0196c95e JJ |
26206 | 2009-01-14 Jakub Jelinek <jakub@redhat.com> |
26207 | ||
26208 | PR rtl-optimization/38245 | |
26209 | * calls.c (expand_call): Add stack arguments to | |
26210 | CALL_INSN_FUNCTION_USAGE even for pure calls (when | |
26211 | ACCUMULATE_OUTGOING_ARGS) and even for args partially passed | |
26212 | in regs and partially in memory or BLKmode arguments. | |
26213 | (emit_library_call_value_1): Add stack arguments to | |
26214 | CALL_INSN_FUNCTION_USAGE even for pure calls (when | |
26215 | ACCUMULATE_OUTGOING_ARGS). | |
26216 | * dce.c: Include tm_p.h. | |
26217 | (find_call_stack_args): New function. | |
26218 | (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES | |
26219 | argument. | |
26220 | (mark_insn): Call find_call_stack_args for CALL_Ps. | |
26221 | (prescan_insns_for_dce): Walk insns backwards in bb rather than | |
26222 | forwards. Allocate and free arg_stores bitmap if needed, pass it | |
26223 | down to deletable_insn_p, don't mark stores set in arg_stores | |
26224 | bitmap, clear the bitmap at the beginning of each bb. | |
26225 | * Makefile.in (dce.o): Depend on $(TM_P_H). | |
26226 | ||
6df6bcfa MM |
26227 | 2009-01-14 Michael Meissner <gnu@the-meissners.org> |
26228 | ||
26229 | PR target/22599 | |
435da628 UB |
26230 | * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f' |
26231 | to make sure the insn is a conditional test (bug 22599). Reformat a | |
26232 | few long lines. | |
6df6bcfa | 26233 | |
765ec70c SP |
26234 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> |
26235 | ||
26236 | PR middle-end/38431 | |
26237 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
26238 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
26239 | (gloog): Do not call cleanup_tree_cfg. | |
2ba9daa7 | 26240 | (graphite_transform_loops): Call cleanup_tree_cfg after all |
765ec70c SP |
26241 | scops have been code generated. |
26242 | ||
7de2b688 BS |
26243 | 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net> |
26244 | * doc/gty.texi (Invoking the garbage collector): Added new node | |
26245 | and section documenting ggc_collect. | |
26246 | ||
10bd6c5c RG |
26247 | 2009-01-14 Richard Guenther <rguenther@suse.de> |
26248 | ||
26249 | PR tree-optimization/38826 | |
26250 | PR middle-end/38477 | |
26251 | * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer | |
26252 | initialization notes only if we actually emitted a warning. | |
26253 | (intra_create_variable_infos): Add constraints for a result decl | |
26254 | that is passed by hidden reference. | |
26255 | (build_pred_graph): Mark all related variables non-direct on | |
26256 | address-taking. | |
26257 | ||
9c7c70ee NC |
26258 | 2009-01-14 Nick Clifton <nickc@redhat.com> |
26259 | ||
26260 | * ira-conflicts.c: Include addresses.h for the definition of | |
26261 | base_reg_class. | |
435da628 UB |
26262 | (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS. |
26263 | * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h. | |
9c7c70ee | 26264 | |
cf0c2a60 VM |
26265 | 2009-01-13 Vladimir Makarov <vmakarov@redhat.com> |
26266 | ||
26267 | PR target/38811 | |
26268 | * Makefile.in (ira-lives.o): Add except.h. | |
26269 | ||
26270 | * ira-lives.c: Include except.h. | |
26271 | (process_bb_node_lives): Process can_throw_internal. | |
26272 | ||
d3302fd3 JJ |
26273 | 2009-01-13 Jakub Jelinek <jakub@redhat.com> |
26274 | ||
26275 | PR rtl-optimization/38774 | |
26276 | * combine.c (simplify_set): When undoing cc_use change, don't do | |
26277 | PUT_CODE on the newly created comparison, but instead put back the | |
26278 | old comparison. | |
26279 | ||
7ab23fd0 JM |
26280 | 2009-01-13 Joseph Myers <joseph@codesourcery.com> |
26281 | ||
26282 | * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march | |
26283 | values. Remove duplicate arm8 entry. | |
26284 | ||
f9344488 SP |
26285 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> |
26286 | ||
26287 | PR tree-optimization/38786 | |
26288 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from | |
26289 | the SSA_NAME case of expand_scalar_variables_expr. | |
26290 | Set the type of an expression to the type of its assign statement. | |
26291 | (expand_scalar_variables_expr): Also gather the scalar computation | |
26292 | used to index the memory access. Do not pass loop_p. | |
26293 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
26294 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
bef3c57b UB |
26295 | the gimple_stmt_iterator where it inserts new code. |
26296 | Do not pass loop_p. | |
f9344488 SP |
26297 | (copy_bb_and_scalar_dependences): Do not pass loop_p. |
26298 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
26299 | ||
2d8bb84d SP |
26300 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> |
26301 | ||
26302 | * graphite.h (debug_value): Removed. | |
26303 | * graphite.c (debug_value): Removed. | |
26304 | ||
ff128632 RE |
26305 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> |
26306 | ||
435da628 UB |
26307 | * config/arm/arm.c (output_move_double): Don't synthesize thumb-2 |
26308 | ldrd/strd with two 32-bit instructions. | |
ff128632 | 26309 | |
d5a0a47b RE |
26310 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> |
26311 | ||
435da628 UB |
26312 | * config/arm/arm.c (struct processors): Pass for speed down into |
26313 | cost helper functions. | |
d5a0a47b RE |
26314 | (const_ok_for_op): Handle COMPARE and inequality nodes. |
26315 | (arm_rtx_costs_1): Rewrite. | |
26316 | (arm_size_rtx_costs): Update prototype. | |
26317 | (arm_rtx_costs): Pass speed down to helper functions. | |
26318 | (arm_slowmul_rtx_costs): Rework cost calculations. | |
26319 | (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise. | |
26320 | (arm_9e_rtx_costs): Likewise. | |
26321 | ||
26d5bf5b UB |
26322 | 2009-01-13 Uros Bizjak <ubizjak@gmail.com> |
26323 | ||
26324 | * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit | |
435da628 | 26325 | relocations of local symbols wider than UNITS_PER_WORD are not valid. |
26d5bf5b UB |
26326 | (alpha_legitimize_address): Do not split local symbols wider than |
26327 | UNITS_PER_WORD into HIGH/LO_SUM parts. | |
26328 | ||
5d14e3d5 DS |
26329 | 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net> |
26330 | ||
26331 | PR bootstrap/38580 | |
26332 | * gcc.c (process_command): Replace call to execvp with calls | |
26333 | to pex_one and exit. | |
26334 | ||
33faafca AS |
26335 | 2009-01-03 Anatoly Sokolov <aesok@post.ru> |
26336 | ||
26337 | PR target/29141 | |
26338 | * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm. | |
26339 | * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add | |
26340 | variant for devices with 3-byte PC. | |
ba20e309 | 26341 | (__tablejump_elpm__): New. |
33faafca | 26342 | |
634b5df5 JJ |
26343 | 2009-01-12 Jakub Jelinek <jakub@redhat.com> |
26344 | ||
26345 | PR c/32041 | |
26346 | * c-parser.c (c_parser_postfix_expression): Allow `->' in | |
26347 | offsetof member-designator, handle it as `[0].'. | |
26348 | ||
2842bb86 JDA |
26349 | 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
26350 | ||
26351 | * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk | |
26352 | function when not using named sections on targets with named sections | |
26353 | if branch distance is less than 262132. | |
26354 | ||
76ee70f6 RE |
26355 | 2009-01-12 Richard Earnshaw <rearnsha@arm.com> |
26356 | ||
26357 | * combine.c (combine_instructions): Recompute | |
26358 | optimize_this_for_speed_p for each BB in the main combine loop. | |
26359 | ||
f56e675d TB |
26360 | 2009-01-12 Tomas Bily <tbily@suse.cz> |
26361 | ||
26362 | PR middlend/38385 | |
26d5bf5b UB |
26363 | * tree-loop-distribution.c (prop_phis): New function. |
26364 | (generate_builtin): Call prop_phis. | |
f56e675d | 26365 | |
c2152239 JJ |
26366 | 2009-01-12 Jakub Jelinek <jakub@redhat.com> |
26367 | ||
26368 | PR tree-optimization/38807 | |
26369 | * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at | |
26370 | gimple_visited_p unless stmt is GIMPLE_ASSIGN. | |
26371 | ||
0e510b3e AN |
26372 | 2009-01-11 Adam Nemet <anemet@caviumnetworks.com> |
26373 | ||
26374 | * expmed.c (store_bit_field_1): Properly truncate the paradoxical | |
26375 | subreg of op0 to the original op0. | |
26376 | ||
c95b2534 | 26377 | 2009-01-11 Laurent GUERBY <laurent@guerby.net> |
10270471 LG |
26378 | |
26379 | * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc. | |
2ba9daa7 | 26380 | |
53a7ff9a MS |
26381 | 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de> |
26382 | ||
26383 | PR debug/7055 | |
60839f5d | 26384 | * mips-tfile.c (parse_def): Fix parsing of def strings |
53a7ff9a MS |
26385 | starting with digits. |
26386 | ||
b3a796bc JJ |
26387 | 2009-01-10 Jakub Jelinek <jakub@redhat.com> |
26388 | ||
26389 | PR target/38695 | |
26390 | * config/arm/arm.c (arm_is_long_call_p): Don't call | |
26391 | arm_function_in_section_p if decl isn't a FUNCTION_DECL. | |
26392 | ||
b21b850e SB |
26393 | 2009-01-09 Steven Bosscher <steven@gcc.gnu.org> |
26394 | ||
26395 | * regrename.c (regrename_optimize): Fix dumping. | |
26396 | (find_oldest_value_reg): Preserve REG_POINTER. | |
26397 | (copy_hardreg_forward_1): Likewise. | |
26398 | ||
e0e10d3a DN |
26399 | 2009-01-09 Diego Novillo <dnovillo@google.com> |
26400 | ||
bf9b2cc9 | 26401 | * gimple.h (struct gimple_statement_base) <uid>: Document |
e0e10d3a DN |
26402 | the restrictions on its use. |
26403 | (gimple_uid): Tidy. | |
26404 | (gimple_set_uid): Tidy. | |
26405 | ||
c9da2ae8 JJ |
26406 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
26407 | ||
26408 | * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add | |
26409 | zero guard even if align_bytes != 0 and count is smaller than | |
26410 | size_needed. | |
26411 | ||
38432148 | 26412 | 2009-01-09 Vladimir Makarov <vmakarov@redhat.com> |
a174c19c VM |
26413 | |
26414 | PR rtl-optimization/38495 | |
26d5bf5b | 26415 | * ira-emit.c (print_move_list, ira_debug_move_list): New functions. |
a174c19c VM |
26416 | (add_range_and_copies_from_move_list): Print all added ranges. |
26417 | Add ranges to memory optimized destination. | |
26418 | ||
260fda3d JJ |
26419 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
26420 | ||
6f6278ad JJ |
26421 | PR target/38686 |
26422 | PR target/38708 | |
26423 | * config/i386/i386.c (override_options): Reject | |
26424 | -mstringop-strategy=rep_8byte with -m32. | |
26425 | (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed | |
26426 | to 1. Do count comparison against epilogue_size_needed at compile | |
26427 | time even when count_exp was constant forced into register. For | |
26428 | size_needed don't jump to epilogue, instead just avoid aligning | |
26429 | and invoke the body algorithm. If need_zero_guard, add zero guard | |
26430 | even if count is non-zero, but smaller than size_needed + number of | |
26431 | bytes that could be stored for alignment. | |
26432 | (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed | |
26433 | to 1. If need_zero_guard, add zero guard even if count is non-zero, | |
26434 | but smaller than size_needed + number of bytes that could be stored | |
26435 | for alignment. Compare size_needed with epilogue_size_needed instead | |
26436 | of desired_align - align, don't adjust size_needed, pass | |
26437 | epilogue_size_needed to the epilogue expanders. | |
26438 | ||
260fda3d | 26439 | PR c/35742 |
26d5bf5b | 26440 | * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR. |
260fda3d | 26441 | |
67b846fa JDA |
26442 | 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
26443 | ||
26444 | * pa.c (last_address): Change to unsigned. | |
26445 | (update_total_code_bytes): Change argument to unsigned. Don't | |
26446 | check if insn addresses are set. | |
26447 | (pa_output_function_epilogue): Set last_address to UINT_MAX if insn | |
26448 | addresses are not set. | |
26449 | (pa_asm_output_mi_thunk): Handle wrap when updating last_address. | |
26450 | ||
91c82473 NC |
26451 | 2009-01-09 Nick Clifton <nickc@redhat.com> |
26452 | ||
26453 | * config/sh/symbian.c: Replace uses of DECL_INLINE with | |
26454 | DECL_DECLARED_INLINE_P. | |
26455 | ||
4017e262 JJ |
26456 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
26457 | ||
0a49e5c2 JJ |
26458 | PR middle-end/38347 |
26459 | * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of | |
26460 | GET_MODE (op0) in operand_subword_force calls. | |
26461 | ||
4017e262 JJ |
26462 | PR middle-end/38771 |
26463 | * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR, | |
26464 | fold_convert arg0 operands to TREE_TYPE (op0) first. | |
26465 | ||
7cd06356 VM |
26466 | 2009-01-08 Vladimir Makarov <vmakarov@redhat.com> |
26467 | ||
26468 | * params.def (ira-max-conflict-table-size): Decrease default value | |
26469 | to 1000. | |
26470 | ||
96867bbd JJ |
26471 | 2009-01-08 Jakub Jelinek <jakub@redhat.com> |
26472 | ||
26473 | PR tree-optimization/37031 | |
26474 | * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy | |
26475 | on parameter_set. | |
26476 | (build_access_matrix): Reserve correct size for AM_MATRIX vector, | |
26477 | allocate it using gc instead of heap, use VEC_quick_push instead of | |
26478 | VEC_safe_push. | |
26479 | * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc | |
26480 | instead of heap, use VEC_quick_push instead of VEC_safe_push. | |
26481 | * tree-data-ref.h (struct access_matrix): Change matrix to gc | |
26482 | allocated vector from heap allocated. | |
26483 | * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector. | |
26484 | * tree-loop-linear.c (linear_transform_loops): Allocate nest | |
26485 | vector only after perfect_loop_nest_depth call. | |
26486 | ||
68f61c3d SP |
26487 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> |
26488 | Jan Sjodin <jan.sjodin@amd.com> | |
26489 | ||
26490 | PR tree-optimization/38559 | |
26491 | * graphite.c (debug_value, copy_constraint, | |
26492 | swap_constraint_variables, scale_constraint_variable, ): New. | |
26493 | (get_lower_bound, get_upper_bound): Removed. | |
26494 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
26495 | only for constant number of iterations. Fully copy upper and | |
26496 | lower bound constraints, not only the constant part of them. | |
26497 | * graphite.h (debug_value): Declared. | |
26498 | ||
82567e33 IR |
26499 | 2009-01-08 Ira Rosen <irar@il.ibm.com> |
26500 | ||
26501 | PR tree-optimization/37194 | |
26502 | * tree-vect-transform.c (vect_estimate_min_profitable_iters): | |
2ba9daa7 | 26503 | Don't add the cost of cost model guard in prologue to scalar |
82567e33 IR |
26504 | outside cost in case of known number of iterations. |
26505 | ||
7da13f1d NF |
26506 | 2009-01-07 Nathan Froyd <froydnj@codesourcery.com> |
26507 | Alan Modra <amodra@bigpond.net.au> | |
26508 | ||
26509 | * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for | |
26510 | non-word-aligned REG+CONST addressing. | |
26511 | ||
c0f64575 UB |
26512 | 2009-01-07 Uros Bizjak <ubizjak@gmail.com> |
26513 | ||
26514 | PR target/38706 | |
26515 | * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call | |
26516 | free_after_compilation when outputting a thunk. | |
26517 | (alpha_output_mi_thunk_osf): Assert that we are processing a thunk. | |
26518 | Do not call free_after_compilation here. | |
26519 | ||
301b6a4e UB |
26520 | 2009-01-07 Uros Bizjak <ubizjak@gmail.com> |
26521 | ||
26522 | * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE. | |
301b6a4e UB |
26523 | (ix86_valid_target_attribute_inner_p): Ditto. |
26524 | ||
6a114766 JS |
26525 | 2009-01-07 Jan Sjodin <jan.sjodin@amd.com> |
26526 | ||
26527 | PR tree-optimization/38492 | |
26528 | PR tree-optimization/38498 | |
26529 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
26530 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
26531 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
26532 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
26533 | (graphite_loop_normal_form): Use gcc_assert. | |
26534 | (scan_tree_for_params): Use CASE_CONVERT. | |
26535 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
26536 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
26537 | Use gcc_assert. Discard scops that contain unhandled cases. | |
26538 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
26539 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
26540 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
26541 | recompute it wrongly. | |
26542 | (graphite_trans_bb_block): Same. | |
26543 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
26544 | (graphite_trans_scop_block): Do not print that the loop has been | |
26545 | blocked. | |
26546 | (graphite_transform_loops): Do not handle scops that contain condition | |
26547 | scalar phi nodes. | |
26548 | ||
65b82caa L |
26549 | 2009-01-07 H.J. Lu <hongjiu.lu@intel.com> |
26550 | ||
26551 | AVX Programming Reference (December, 2008) | |
26552 | * config/i386/avxintrin.h (_mm256_stream_si256): New. | |
26553 | (_mm256_stream_pd): Likewise. | |
26554 | (_mm256_stream_ps): Likewise. | |
26555 | ||
26556 | * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256, | |
26557 | IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256. | |
26558 | (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI. | |
26559 | (bdesc_special_args): Add __builtin_ia32_movntdq256, | |
26560 | __builtin_ia32_movntpd256 and __builtin_ia32_movntps256. | |
26561 | (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI. | |
26562 | (ix86_expand_special_args_builtin): Likewise. | |
26563 | ||
26564 | * config/i386/sse.md (AVXMODEDI): New. | |
26565 | (avx_movnt<mode>): Likewise. | |
26566 | (avx_movnt<mode>): Likewise. | |
26567 | (<sse>_movnt<mode>): Remove AVX support. | |
26568 | (sse2_movntv2di): Likewise. | |
26569 | ||
cef158f9 RG |
26570 | 2009-01-07 Richard Guenther <rguenther@suse.de> |
26571 | ||
26572 | PR middle-end/38751 | |
26573 | * fold-const.c (extract_muldiv): Remove obsolete comment. | |
26574 | (fold_plusminus_mult_expr): Undo MINUS_EXPR | |
26575 | to PLUS_EXPR canonicalization for the canonicalization. | |
26576 | ||
246cb5be GP |
26577 | 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com> |
26578 | ||
26579 | * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit | |
26580 | hosted cross-compilers generating less efficient code. | |
26581 | ||
84b9b872 RS |
26582 | 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com> |
26583 | ||
26584 | * function.h (rtl_data): Add a dbr_scheduled_p field. | |
26585 | * reorg.c (dbr_schedule): Set it. | |
26586 | (gate_handle_delay_slots): Check it. | |
26587 | * config/mips/mips.c (mips_base_delayed_branch): Delete. | |
26588 | (mips_reorg): Check flag_delayed_branch instead of | |
26589 | mips_base_delayed_branch. | |
26590 | (mips_override_options): Don't set mips_base_delayed_branch | |
26591 | or flag_delayed_branch. | |
26592 | ||
ace984c8 RS |
26593 | 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com> |
26594 | ||
26595 | PR rtl-optimization/38426. | |
26596 | * ira.c (ira): Set current_function_is_leaf earlier. | |
26597 | ||
7ad7809b JJ |
26598 | 2009-01-06 Jakub Jelinek <jakub@redhat.com> |
26599 | ||
26600 | PR rtl-optimization/38722 | |
26601 | * combine.c (try_combine): Don't modify PATTERN (i3) and notes | |
26602 | too early, only set a flag and modify after last possible | |
26603 | undo_all point. | |
26604 | ||
c52ec948 JJ |
26605 | 2009-01-06 Janis Johnson <janis187@us.ibm.com> |
26606 | ||
26607 | PR c/34252 | |
26608 | * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN. | |
26609 | * real.c (decimal_single_format): Correct values of emin and emax. | |
26610 | (decimal_double_format): Ditto. | |
26611 | (decimal_quad_format): Ditto. | |
26612 | * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust | |
26613 | computation of DECnn_MIN and DECnn_MAX for corrected values of | |
26614 | emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of | |
26615 | __DECnn_MIN__, and adjust its computation for the corrected value | |
26616 | of emin. | |
26617 | ||
300240e1 JH |
26618 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
26619 | ||
26620 | PR target/38744 | |
435da628 | 26621 | * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE. |
300240e1 | 26622 | |
271c069e GP |
26623 | 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com> |
26624 | ||
26625 | * doc/contrib.texi (Contributors): Slightly adjust the end note. | |
26626 | Add Robert Clark to the list of testers. | |
26627 | ||
64e4c301 | 26628 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26629 | Kai Tietz <kai.tietz@onevision.com> |
64e4c301 | 26630 | |
435da628 UB |
26631 | * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers. |
26632 | * config/i386/i386.c (ix86_expand_call): Add clobbers. | |
64e4c301 | 26633 | |
7650b83e | 26634 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26635 | Kai Tietz <kai.tietz@onevision.com> |
7650b83e | 26636 | |
435da628 UB |
26637 | * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used |
26638 | for w64 ABI. | |
26639 | * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs. | |
7650b83e JH |
26640 | (ix86_nsaved_regs): Count only general purpose regs. |
26641 | (ix86_nsaved_sseregs): New. | |
26642 | (ix86_compute_frame_layout): Update nsseregs; set preferred alignment | |
26643 | to 16 for w64; compute padding and size of sse reg save area. | |
301b6a4e UB |
26644 | (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only |
26645 | general purpose regs. | |
7650b83e JH |
26646 | (ix86_emit_save_sse_regs_using_mov): New. |
26647 | (ix86_expand_prologue): Save SSE regs if needed. | |
26648 | (ix86_emit_restore_regs_using_mov): Use only general purpose regs. | |
26649 | (ix86_emit_restore_sse_regs_using_mov): New. | |
26650 | (ix86_expand_epilogue): Save SSE regs if needed. | |
26651 | ||
9aa5c1b2 | 26652 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26653 | Kai Tietz <kai.tietz@onevision.com> |
9aa5c1b2 | 26654 | |
435da628 UB |
26655 | * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI |
26656 | * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI | |
26657 | functions when accumulate outgoing args is off. | |
9aa5c1b2 | 26658 | |
f7556aae L |
26659 | 2009-01-06 H.J. Lu <hongjiu.lu@intel.com> |
26660 | ||
26661 | PR bootstrap/38742 | |
26662 | * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING | |
26663 | before using pseudos_have_intersected_live_ranges_p. | |
26664 | ||
26665 | * ira-int.h (ira_assert): Always define. | |
26666 | ||
e47b7d04 L |
26667 | 2009-01-06 H.J. Lu <hongjiu.lu@intel.com> |
26668 | ||
26669 | AVX Programming Reference (December, 2008) | |
26670 | * config/i386/avxintrin.h (_mm_permute2_pd): Removed. | |
26671 | (_mm256_permute2_pd): Likewise. | |
26672 | (_mm_permute2_ps): Likewise. | |
26673 | (_mm256_permute2_ps): Likewise. | |
26674 | * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise. | |
26675 | * config/i386/sse.md (avx_vpermil2<mode>3): Likewise. | |
26676 | ||
26677 | * config/i386/i386.c (ix86_builtins): Remove | |
26678 | IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS, | |
26679 | IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256. | |
26680 | (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT, | |
26681 | V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT | |
26682 | and V2DF_FTYPE_V2DF_V2DF_V2DI_INT. | |
26683 | (bdesc_args): Remove __builtin_ia32_vpermil2pd, | |
26684 | __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and | |
26685 | __builtin_ia32_vpermil2ps256. | |
26686 | (ix86_init_mmx_sse_builtins): Updated. | |
26687 | (ix86_expand_args_builtin): Likewise. | |
26688 | ||
44b86471 JDA |
26689 | 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
26690 | ||
e47b7d04 L |
26691 | * pa.c (output_call): Relocate non-jump insns in the delay slot of |
26692 | long absolute calls when generating PA 2.0 code. | |
44b86471 | 26693 | |
311aab06 VM |
26694 | 2009-01-05 Vladimir Makarov <vmakarov@redhat.com> |
26695 | ||
26696 | PR rtl-optimization/38583 | |
26697 | * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro. | |
26698 | ||
26699 | * params.def (ira-max-conflict-table-size): New. | |
26700 | ||
26701 | * doc/invoke.texi (ira-max-conflict-table-size): Decribe. | |
2ba9daa7 | 26702 | |
311aab06 | 26703 | * ira.h (ira_conflicts_p): New external definition. |
2ba9daa7 | 26704 | |
311aab06 VM |
26705 | * ira-conflicts.c (build_conflict_bit_table): Do not build too big |
26706 | table. Report this. Return result of building. | |
26707 | (ira_build_conflicts): Use ira_conflicts_p. Check result of | |
26708 | building conflict table. | |
26709 | ||
301b6a4e | 26710 | * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num. |
311aab06 | 26711 | (ira_color): Use ira_conflicts_p. |
2ba9daa7 | 26712 | |
311aab06 VM |
26713 | * global.c: Include ira.h. |
26714 | (pseudo_for_reload_consideration_p, build_insn_chain): Use | |
26715 | ira_conflicts_p. | |
26716 | ||
26717 | * Makefile.in (global.o): Add ira.h. | |
2ba9daa7 | 26718 | |
311aab06 VM |
26719 | * ira-build.c (mark_all_loops_for_removal, |
26720 | propagate_some_info_from_allocno): New. | |
26721 | (remove_unnecessary_allocnos): Call | |
26722 | propagate_some_info_from_allocno. | |
26723 | (remove_low_level_allocnos): New. | |
26724 | (remove_unnecessary_regions): Add parameter. Call | |
26725 | mark_all_loops_for_removal and remove_low_level_allocnos. Pass | |
26726 | parameter to remove_unnecessary_regions. | |
26727 | (ira_build): Remove all regions but root if the conflict table was | |
26728 | not built. Update conflict hard regs for allocnos crossing calls. | |
26729 | ||
26730 | * ira.c (ira_conflicts_p): New global. | |
26731 | (ira): Define and use ira_conflicts_p. | |
26732 | ||
26733 | * reload1.c (compute_use_by_pseudos, reload, count_pseudo, | |
26734 | count_spilled_pseudo, find_reg, alter_reg, finish_spills, | |
301b6a4e | 26735 | emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p. |
2ba9daa7 | 26736 | |
5641785f BE |
26737 | 2009-01-06 Ben Elliston <bje@au.ibm.com> |
26738 | ||
26739 | * gengtype-lex.l (YY_NO_INPUT): Define. | |
26740 | ||
e4e5261f AP |
26741 | 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com> |
26742 | ||
26743 | PR c/34911 | |
5641785f BE |
26744 | * c-common.c (handle_vector_size_attribute): Also reject |
26745 | BOOLEAN_TYPE types. | |
e4e5261f | 26746 | |
7b10257f SP |
26747 | 2009-01-05 Sebastian Pop <sebastian.pop@amd.com> |
26748 | ||
26749 | PR tree-optimization/38492 | |
26750 | * graphite.c (rename_map_elt, debug_rename_elt, | |
301b6a4e UB |
26751 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, |
26752 | rename_map_elt_info, eq_rename_map_elts, | |
26753 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
7b10257f SP |
26754 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. |
26755 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
26756 | (sese_build_livein_liveouts): New. | |
26757 | (new_sese, free_sese): New. | |
26758 | (new_scop): Call new_sese. | |
26759 | (free_scop): Call free_sese. | |
26760 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
26761 | (register_old_new_names): Renamed register_old_and_new_names. | |
26762 | (register_scop_liveout_renames, add_loop_exit_phis, | |
26763 | insert_loop_close_phis, struct igp, | |
26764 | default_liveout_before_guard, add_guard_exit_phis, | |
26765 | insert_guard_phis, copy_renames): New. | |
26766 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
26767 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
26768 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
26769 | (scop_adjust_phis_for_liveouts): New. | |
26770 | (gloog): Call scop_adjust_phis_for_liveouts. | |
26771 | ||
26772 | * graphite.h (struct sese): Documented. Added fields liveout, | |
301b6a4e | 26773 | num_ver and livein. |
7b10257f SP |
26774 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. |
26775 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
26776 | (struct scop): Added field liveout_renames. | |
26777 | (SCOP_LIVEOUT_RENAMES): New. | |
26778 | ||
9761fcc7 HJ |
26779 | 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com> |
26780 | ||
26781 | PR tree-optimization/38510 | |
26782 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
26783 | (translate_clast): Call recompute_all_dominators before | |
26784 | graphite_verify. | |
26785 | (gloog): Call recompute_all_dominators before graphite_verify. | |
26786 | ||
26787 | 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com> | |
c95b2534 | 26788 | Jan Sjodin <jan.sjodin@amd.com> |
9761fcc7 HJ |
26789 | |
26790 | PR tree-optimization/38500 | |
26791 | * graphite.c (create_sese_edges): Call fix_loop_structure after | |
26792 | splitting blocks. | |
26793 | ||
c95b2534 | 26794 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
48a01864 JS |
26795 | |
26796 | * config.gcc: Add m32r*-*-rtems*. | |
26797 | * config/m32r/rtems.h: New file. | |
26798 | ||
fc0cd180 BE |
26799 | 2009-01-05 Ben Elliston <bje@au.ibm.com> |
26800 | ||
26801 | * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. | |
26802 | (.po.pox): Likewise. | |
26803 | (po/gcc.pot): Likewise. | |
26804 | ||
3106d8e5 DM |
26805 | 2009-01-04 David S. Miller <davem@davemloft.net> |
26806 | ||
26807 | * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete. | |
26808 | (STARTING_FRAME_OFFSET): Always set to zero. | |
26809 | ||
0009b473 RS |
26810 | 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com> |
26811 | ||
26812 | * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary. | |
26813 | * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of | |
26814 | fixed-point types, and vectors of the same. | |
26815 | ||
4f24c6d6 RS |
26816 | 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com> |
26817 | ||
26818 | * config/mips/sync.md (*mb_barrier): Rename to... | |
26819 | (*memory_barrier): ...this. | |
26820 | ||
1df48f5c JW |
26821 | 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com> |
26822 | ||
26823 | * doc/extend.texi (Function Attributes): Move @cindex after @item | |
eefe5da0 | 26824 | for 'artificial' and 'flatten'. Fix grammar for 'externally_visible' |
1df48f5c JW |
26825 | and put in alphabetical order. Fix 'target' name and put in order. |
26826 | * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix | |
26827 | typos. | |
26828 | ||
1a8c13b3 UB |
26829 | 2009-01-04 Uros Bizjak <ubizjak@gmail.com> |
26830 | ||
26831 | * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB. | |
26832 | (memory_barrier): Expand as unspec instead of unspec_volatile. | |
26833 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26834 | (*memory_barrier): Define as unspec instead of unspec_volatile. | |
26835 | Use (match_dup 0) as input operand. | |
26836 | ||
26837 | * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR. | |
26838 | * config/sparc/sync.md (memory_barrier): Expand as unspec instead of | |
26839 | unspec_volatile. Remove mem:BLK from insn operands. Use Pmode | |
26840 | scratch register. Remove operand 1. | |
26841 | (*stbar): Define as unspec instead of unspec_volatile. | |
26842 | Use (match_dup 0) as input operand, remove (const_int 8). | |
26843 | (*membar): Define as unspec instead of unspec_volatile. | |
26844 | Use (match_dup 0) as input operand, remove input operand 2. | |
26845 | ||
26846 | * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW. | |
26847 | (memory_barrier): Expand as unspec instead of unspec_volatile. | |
26848 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26849 | (*memory_barrier): Define as unspec instead of unspec_volatile. | |
26850 | Use (match_dup 0) as input operand. | |
26851 | ||
26852 | * config/ia64/sync.md (memory_barrier): Redefine as expander pattern. | |
26853 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26854 | Set volatile flag on operand 0. | |
26855 | (*memory_barrier): New insn pattern. | |
26856 | ||
26857 | * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from | |
26858 | insn operands. | |
26859 | (*memory_barrier): Use (match_dup 0) as input operand. | |
26860 | ||
26861 | * config/mips/sync.md (memory_barrier): Redefine as expander pattern. | |
26862 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26863 | Set volatile flag on operand 0. | |
301b6a4e | 26864 | (*mb_internal): New insn pattern. |
1a8c13b3 UB |
26865 | |
26866 | * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal. | |
26867 | ||
fb0703f7 SB |
26868 | 2009-01-04 Steven Bosscher <steven@gcc.gnu.org> |
26869 | ||
26870 | PR middle-end/38586 | |
26871 | * function.c (struct temp_slot): Move to the section of the file | |
26872 | that deals with temp slots. Remove field 'address'. | |
26873 | (temp_slot_address_table): New hash table of address -> temp slot. | |
26874 | (struct temp_slot_address_entry): New struct, items for the table. | |
26875 | (temp_slot_address_compute_hash, temp_slot_address_hash, | |
26876 | temp_slot_address_eq, insert_temp_slot_address): Support functions | |
26877 | for the new table. | |
26878 | (find_temp_slot_from_address): Rewrite to use the new hash table. | |
26879 | (remove_unused_temp_slot_addresses): Remove addresses of temp | |
26880 | slots that have been made available. | |
26881 | (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse, | |
26882 | worker function for remove_unused_temp_slot_addresses. | |
26883 | (assign_stack_temp_for_type): Don't clear the temp slot address list. | |
26884 | Add the temp slot address to the address -> temp slot map. | |
26885 | (update_temp_slot_address): Update via insert_temp_slot_address. | |
26886 | (free_temp_slots): Call remove_unused_temp_slot_addresses. | |
26887 | (pop_temp_slots): Likewise. | |
26888 | (init_temp_slots): Allocate the address -> temp slot map, or empty | |
26889 | the map if it is already allocated. | |
26890 | (prepare_function_start): Initialize temp slot processing. | |
26891 | ||
b5a430f3 SB |
26892 | 2009-01-04 Steven Bosscher <steven@gcc.gnu.org> |
26893 | ||
26894 | PR middle-end/38584 | |
26895 | * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate: | |
26896 | Calculate the size of all stack vars assuming no packing of stack | |
26897 | vars will happen, replacing a quadratic algorithm with a linear one. | |
26898 | ||
5d560619 JJ |
26899 | 2009-01-03 Jakub Jelinek <jakub@redhat.com> |
26900 | ||
26901 | PR target/38707 | |
26902 | * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn | |
26903 | can't be used. | |
26904 | ||
953a7caa DN |
26905 | 2009-01-03 Diego Novillo <dnovillo@google.com> |
26906 | ||
26907 | * doc/contrib.texi: Update contributions. | |
26908 | ||
5f26a230 JJ |
26909 | 2009-01-03 Jakub Jelinek <jakub@redhat.com> |
26910 | ||
493aa551 JJ |
26911 | PR c++/38705 |
26912 | * builtins.c (fold_builtin_memory_op): Give up if either operand | |
26913 | is volatile. Set srctype or desttype to non-qualified version | |
26914 | of the other type. | |
26915 | ||
5f26a230 JJ |
26916 | PR c/38700 |
26917 | * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs | |
26918 | and FUNCTION_DECLs. | |
26919 | ||
c95b2534 | 26920 | 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com> |
fafe34f9 KZ |
26921 | |
26922 | PR rtl-optimization/35805 | |
26923 | * df-problems.c (df_lr_finalize): Add recursive call to resolve lr | |
26924 | problem if fast dce is able to remove any instructions. | |
26925 | * dce.c (dce_process_block): Fix dump message. | |
2ba9daa7 | 26926 | |
0b355794 MM |
26927 | 2009-01-02 Mark Mitchell <mark@codesourcery.com> |
26928 | ||
26929 | PR 33649 | |
26930 | * tree-ssa-pre.c (compute_antic): Correct loop bounds. | |
26931 | ||
0cf0d02b JJ |
26932 | 2009-01-02 Jakub Jelinek <jakub@redhat.com> |
26933 | ||
26934 | PR middle-end/38690 | |
26935 | * tree-flow.h (op_code_prio, op_prio): New prototypes. | |
26936 | * tree-pretty-print.c (op_code_prio): New function. | |
26937 | (op_prio): No longer static. Use op_code_prio. | |
26938 | * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs): | |
26939 | Use op_prio and op_code_prio to determine if () should be | |
26940 | printed around operand(s) or not. | |
26941 | ||
26942 | * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs, | |
26943 | dump_gimple_call, dump_gimple_switch, dump_gimple_cond, | |
26944 | dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi, | |
26945 | dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use | |
26946 | pp_character instead of pp_string for single letter printing. | |
26947 | ||
e3606f3b RS |
26948 | 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
26949 | ||
26950 | * doc/extend.texi: Fix '#pragma GCC option' typo. | |
26951 | ||
c95b2534 | 26952 | 2009-01-02 Richard Guenther <rguenther@suse.de> |
00f39bd5 | 26953 | |
a5f061dc RG |
26954 | * doc/install.texi (--enable-checking): Mention different |
26955 | default for stage1. | |
26956 | (--enable-stage1-checking): Document. | |
00f39bd5 | 26957 | |
26de0bcb AP |
26958 | 2009-01-01 Andrew Pinski <pinskia@gmail.com> |
26959 | ||
26960 | PR middle-end/30142 | |
26961 | * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR | |
26962 | case to be an error. | |
26963 | ||
7a7d8fab BE |
26964 | 2009-01-02 Ben Elliston <bje@au.ibm.com> |
26965 | ||
26966 | * config/fp-bit.h (pack_d): Constify argument. | |
26967 | * config/fp-bit.c (makenan): Constify return type. Remove casts. | |
26968 | (isnan): Constify argument. | |
26969 | (isinf): Likewise. | |
26970 | (iszero): Likewise. | |
26971 | (pack_d): Likewise. | |
26972 | (_fpadd_parts): Constify return type. | |
26973 | (_fpmul_parts): Likewise. | |
26974 | (_fpdiv_parts): Likewise. | |
26975 | ||
b295aee2 JJ |
26976 | 2009-01-01 Jakub Jelinek <jakub@redhat.com> |
26977 | ||
26978 | PR c/36489 | |
26979 | * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only | |
26980 | warn about overwriting initializer with side-effects or | |
26981 | -Woverride-init if !IMPLICIT. | |
26982 | (output_init_element): Likewise. Pass IMPLICIT down to | |
26983 | add_pending_init. | |
26984 | (process_init_element): Add IMPLICIT argument. Pass it down | |
26985 | to output_init_element. | |
26986 | (push_init_element, pop_init_level, set_designator): Adjust | |
26987 | process_init_element callers. | |
26988 | (set_nonincremental_init, set_nonincremental_init_from_string): | |
26989 | Adjust add_pending_init callers. | |
26990 | (output_pending_init_elements): Adjust output_init_element callers. | |
26991 | * c-tree.h (process_init_element): Adjust prototype. | |
26992 | * c-parser.c (c_parser_initelt, c_parser_initval): Adjust | |
26993 | process_init_element callers. | |
ad41bd84 JM |
26994 | |
26995 | \f | |
26996 | Copyright (C) 2009 Free Software Foundation, Inc. | |
26997 | ||
26998 | Copying and distribution of this file, with or without modification, | |
26999 | are permitted in any medium without royalty provided the copyright | |
27000 | notice and this notice are preserved. |