OSDN Git Service

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