OSDN Git Service

370fb4582694b2f91357d7eb79e8830087ab25b4
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-01-04  Richard Guenther  <rguenther@suse.de>
2
3         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
4         a new entry only if needed.
5         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
6         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
7         hashtable lookup.
8         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
9         the result array.
10         (phi_translate): Handle CONSTANTs early.
11
12 2010-01-04  Martin Jambor  <mjambor@suse.cz>
13
14         PR tree-optimization/42398
15         * tree-sra.c (struct access): Removed flag grp_different_types.
16         (dump_access): Do not dump the removed flag.
17         (sort_and_splice_var_accesses): Do not set the removed flag.
18         (sra_modify_expr): Check for type compatibility directly.
19
20 2010-01-04  Martin Jambor  <mjambor@suse.cz>
21
22         PR tree-optimization/42366
23         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24         edges with variable number of parameters.
25         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
26         flag instead of asserting it.
27         (ipa_read_node_info): Read uses_analysis_done flag.
28
29 2010-01-04  Richard Guenther  <rguenther@suse.de>
30
31         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
32         iterative_hash_* as intended.
33         (vn_reference_compute_hash): Likewise.  Simplify hashing
34         SSA names.
35         (vn_reference_lookup_2): Likewise.
36         (vn_nary_op_compute_hash): Likewise.
37         (vn_phi_compute_hash): Likewise.
38         (expressions_equal_p): Remove strange code.
39         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
40         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
41         (bitmap_insert_into_set_1): Take value-id as parameter.
42         (add_to_value): Pass it.
43         (bitmap_insert_into_set): Likewise.
44         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
45
46 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
47
48         PR driver/42442
49         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
50         (do_self_spec): For switches with SWITCH_IGNORE set set also
51         SWITCH_IGNORE_PERMANENTLY.
52         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
53         of SWITCH_IGNORE.
54
55 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
56
57         * lto-streamer-out.c (output_unreferenced_globals): Output the full
58         tree of an unreferenced global var.
59
60 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
61
62         PR target/42542
63         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
64         GTU to GT for V4SI and V2DI.
65
66         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
67         (umin<mode>3): Removed.
68         (uminv8hi3): New.
69         (uminv4si3): Likewise.
70
71 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
72
73         PR lto/42581
74         * collect2.c (main): Turn on trace in collect2 if -v is passed
75         to gcc with LTO.
76
77 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
78
79         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
80         description of expression operand.
81
82 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
83
84         * configure.ac: Add install-html to target_list for Make-hooks.
85         * configure: Regenerate.
86         * fortran/Make-lang.in (F95_HTMLFILES): New.
87         (fortran.html): Use it.
88         (fortran.install-html): New.
89         * Makefile.in (install-html): Add lang.install-html.
90         * java/Make-lang.in (JAVA_HTMLFILES): New.
91         (java.html): Use it.
92         (java.install-html): New.
93         * objc/Make-lang.in (objc.install-html): New.
94         * objcp/Make-lang.in (obj-c++.install-html): New.
95         * cp/Make-lang.in (c++.install-html): New.
96         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
97         * lto/Make-lang.in (lto.install-html): New.
98
99 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
100
101         PR lto/42520
102         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
103
104 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
105
106         PR rtl-optimization/41862
107         * store-motion.c (store_killed_in_insn, compute_store_table,
108         remove_reachable_equiv_notes, replace_store_insn,
109         build_store_vectors): Ignore all DEBUG_INSNs.
110
111 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
112
113         PR lto/41564
114         * common.opt: Add dumpdir.
115
116         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
117         isn't specified.
118         (option_map): Add --dumpdir.
119
120         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
121
122         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
123
124         * opts.c (decode_options): Try dump_dir_name first if
125         dump_base_name isn't an absolute path.
126         (common_handle_option): Handle OPT_dumpdir.
127
128         * toplev.c (dump_dir_name): New.
129         (print_switch_values): Also ignore -dumpdir.
130
131         * toplev.h (dump_dir_name): New.
132
133 2010-01-03  Richard Guenther  <rguenther@suse.de>
134
135         PR tree-optimization/42589
136         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
137         double-word expansion of bswap32.
138
139 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
140
141         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
142         with BLOCK_FOR_INSN.
143         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
144         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
145         noce_process_if_block): Likewise.
146         * gcse.c (compute_local_properties, insert_expr_in_table,
147         insert_set_in_table, canon_list_insert, find_avail_set,
148         pre_insert_copy_insn): Likewise.
149
150         * basic-block.h (BLOCK_NUM): Move from here...
151         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
152
153 2010-01-03  Richard Guenther  <rguenther@suse.de>
154
155         PR tree-optimization/42438
156         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
157         contains_may_not_return_call flag.
158         (BB_MAY_NOTRETURN): New.
159         (valid_in_sets): Trapping nary operations are not valid
160         in blocks that may not return.
161         (insert_into_preds_of_block): Remove check for trapping
162         expressions.
163         (compute_avail): Compute also BB_MAY_NOTRETURN.
164
165 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
166
167         * doc/invoke.texi: Add 2010 to copyright years.
168
169 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
170
171         * config/sparc/sparc.c: Fix formatting nits.
172
173 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
174             Alexander Monakov  <amonakov@ispras.ru>
175
176         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
177
178 2010-01-02  Richard Guenther  <rguenther@suse.de>
179
180         PR middle-end/42577
181         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
182         (simplify_switch_using_ranges): Mark to be removed edges
183         as non-executable.
184
185 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
186
187         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
188
189         * collect2.c (scan_libraries): Add missing argument in call to
190         scan_prog_file.
191
192 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
193
194         PR target/42448
195         * config/alpha/predicates.md (aligned_memory_operand): Return false
196         for CQImode.
197         (unaligned_memory_operand): Return true for CQImode.
198         * config/alpha/alpha.c (get_aligned_mem): Assert that location
199         doesn not cross aligned SImode word boundary.
200
201 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
202
203         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
204         Remove.
205         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
206         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
207
208 2010-01-02  Richard Guenther  <rguenther@suse.de>
209
210         PR lto/41597
211         * toplev.c (compile_file): Emit LTO marker properly.  Change
212         it to __gnu_lto_v1.
213         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
214
215 2010-01-01  Richard Guenther  <rguenther@suse.de>
216
217         PR debug/42455
218         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
219
220 2010-01-01  Richard Guenther  <rguenther@suse.de>
221
222         PR c/42570
223         * c-decl.c (grokdeclarator): For zero-size arrays force
224         structural equality checks as layout_type does.
225
226 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * builtins.c: Update copyright to 2010.
229
230 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
231
232         PR lto/42531
233         * lto-streamer-out.c (produce_asm): Revert the last change.
234         (copy_function): Likewise.
235
236         * lto-streamer.c (lto_get_section_name): Skip any leading
237         asterisk in name.
238
239 2010-01-01  Richard Guenther  <rguenther@suse.de>
240
241         PR middle-end/42559
242         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
243         for LABEL_DECLs.
244
245 \f
246 Copyright (C) 2010 Free Software Foundation, Inc.
247
248 Copying and distribution of this file, with or without modification,
249 are permitted in any medium without royalty provided the copyright
250 notice and this notice are preserved.