gcse.c (execute_rtl_cprop, [...]): Do not add the DF_NOTE problem.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
2
3         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
4         Do not add the DF_NOTE problem.
5         * store-motion.c (execute_rtl_store_motion): Likewise.
6
7 2010-01-07  Martin Jambor  <mjambor@suse.cz>
8
9         PR tree-optimization/42157
10         * tree-sra.c (compare_access_positions): Stabilize sort if both
11         accesses have integer types, return zero immediately if they are the
12         same.
13
14 2010-01-06  Richard Henderson  <rth@redhat.com>
15
16         PR middle-end/41883
17         * haifa-sched.c (add_to_note_list): Merge into ...
18         (concat_note_lists): ... here, and ...
19         (unlink_other_notes, rm_other_notes): Merge into...
20         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
21         NOTE_INSN_EPILOGUE_BEG.  
22
23 2010-01-06  Richard Guenther  <rguenther@suse.de>
24
25         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
26         not inline regular functions into always-inline functions.
27
28 2010-01-06  Nick Clifton  <nickc@redhat.com>
29
30         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
31         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
32         used together.
33         (OVERRIDE_OPTIONS): Delete.
34         (OPTIMIZATION_OPTIONS): Define.
35         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
36         * config/rx/rx.c (rx_handle_option): Issue an error message if
37         -mcpu=rx200 and -fpu are used together.
38         (rx_set_optimization_options): New function.  Issue an error
39         message if an optimization attribute attempts to reset the FPU/
40         math optimization pairing.
41         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
42         * config/rx/rx.opt: Set the default to 32-bit doubles.
43         * config/rx/t-rx: Add multilibs for -nofpu option.
44         * doc/invoke.texi: Update documentation of RX options.
45
46 2010-01-06  Richard Guenther  <rguenther@suse.de>
47
48         * tree-ssa-pre.c (name_to_id): New global.
49         (alloc_expression_id): Simplify SSA name handling.
50         (lookup_expression_id): Likewise.
51         (init_pre): Zero name_to_id.
52         (fini_pre): Free it.
53
54 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
55
56         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
57
58 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
59
60         PR target/42542
61         * config/i386/sse.md (smaxv2di3): New.
62         (umaxv2di3): Likewise.
63         (sminv2di3): Likewise.
64         (uminv2di3): Likewise.
65
66 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
67
68         PR target/42564
69         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
70         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
71         (legitimize_tls_address): Likewise.
72         (sparc_tls_referenced_p): Likewise.
73         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
74         and adjust calls to legitimize_pic_address.
75         (legitimate_constant_p) Use sparc_tls_referenced_p.
76         (legitimate_pic_operand_p): Likewise.
77         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
78         (sparc_tls_symbol_ref_1): Delete.
79         (sparc_tls_referenced_p): Make static, recognize specific patterns.
80         (legitimize_tls_address): Make static, handle CONST patterns.
81         (legitimize_pic_address): Make static, remove unused parameter and
82         adjust recursive calls.
83         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
84         and adjust call to legitimize_pic_address.
85         (sparc_output_mi_thunk): Likewise.
86
87 2010-01-05  Paolo Bonzini  <bonzinI@gnu.rg>
88             H.J. Lu  <hongjiu.lu@intel.com>
89
90         PR target/42542
91         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
92         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
93         operands to make them signed.
94
95         Revert:
96         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
97
98         PR target/42542
99         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
100         GTU to GT for V4SI and V2DI.
101
102         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
103         (umin<mode>3): Removed.
104         (uminv8hi3): New.
105         (uminv4si3): Likewise.
106
107 2010-01-05  Martin Jambor  <mjambor@suse.cz>
108
109         PR tree-optimization/42462
110         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
111         current_function_decl to helper functions and macros.
112
113 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
114
115         PR bootstrap/41771
116         * flags.h: Don't include real.h.
117         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
118         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
119         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
120         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
121         * dominance.c: Update copyright.
122         * gimple.c (walk_gimple_op): Remove inline.
123         * tree-ssa-reassoc.c: Include real.h.
124         * Makefile.in (FLAGS_H): Remove $(REAL_H).
125         (tree-ssa-reassoc.o): Depend on $(REAL_H).
126
127 2010-01-05  Nick Clifton  <nickc@redhat.com>
128
129         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
130         register to push into the stack frame when the accumulator has to
131         be saved during interrupts.
132
133 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
134
135         * doc/invoke.texi: Remove the documentation about option
136         -Wunreachable-code.
137         * common.opt (Wunreachable-code):  Preserved for backward
138         compatibility.
139         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
140         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
141         the backward compatibility flag section.
142
143 2010-01-05  Richard Guenther  <rguenther@suse.de>
144
145         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
146
147 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
148
149         PR other/42611
150         * cfgexpand.c (expand_one_var): Diagnose too large variables.
151
152         PR tree-optimization/42508
153         * tree-sra.c (convert_callers): Check for recursive call
154         by comparing cgraph nodes instead of decls.
155         (modify_function): Call ipa_modify_formal_parameters also
156         on all same_body aliases.
157
158         * cgraphunit.c (cgraph_materialize_all_clones): Compare
159         cgraph nodes when checking for same_body aliases.
160
161 2010-01-05  Richard Guenther  <rguenther@suse.de>
162
163         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
164         allocation and lookup.
165         (get_or_alloc_expr_for_constant): Likewise.
166         (phi_translate): Sink allocation.
167
168 2010-01-04  Richard Guenther  <rguenther@suse.de>
169
170         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
171         a new entry only if needed.
172         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
173         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
174         hashtable lookup.
175         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
176         the result array.
177         (phi_translate): Handle CONSTANTs early.
178
179 2010-01-04  Martin Jambor  <mjambor@suse.cz>
180
181         PR tree-optimization/42398
182         * tree-sra.c (struct access): Removed flag grp_different_types.
183         (dump_access): Do not dump the removed flag.
184         (sort_and_splice_var_accesses): Do not set the removed flag.
185         (sra_modify_expr): Check for type compatibility directly.
186
187 2010-01-04  Martin Jambor  <mjambor@suse.cz>
188
189         PR tree-optimization/42366
190         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
191         edges with variable number of parameters.
192         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
193         flag instead of asserting it.
194         (ipa_read_node_info): Read uses_analysis_done flag.
195
196 2010-01-04  Richard Guenther  <rguenther@suse.de>
197
198         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
199         iterative_hash_* as intended.
200         (vn_reference_compute_hash): Likewise.  Simplify hashing
201         SSA names.
202         (vn_reference_lookup_2): Likewise.
203         (vn_nary_op_compute_hash): Likewise.
204         (vn_phi_compute_hash): Likewise.
205         (expressions_equal_p): Remove strange code.
206         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
207         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
208         (bitmap_insert_into_set_1): Take value-id as parameter.
209         (add_to_value): Pass it.
210         (bitmap_insert_into_set): Likewise.
211         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
212
213 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
214
215         PR driver/42442
216         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
217         (do_self_spec): For switches with SWITCH_IGNORE set set also
218         SWITCH_IGNORE_PERMANENTLY.
219         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
220         of SWITCH_IGNORE.
221
222 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
223
224         * lto-streamer-out.c (output_unreferenced_globals): Output the full
225         tree of an unreferenced global var.
226
227 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
228
229         PR target/42542
230         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
231         GTU to GT for V4SI and V2DI.
232
233         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
234         (umin<mode>3): Removed.
235         (uminv8hi3): New.
236         (uminv4si3): Likewise.
237
238 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
239
240         PR lto/42581
241         * collect2.c (main): Turn on trace in collect2 if -v is passed
242         to gcc with LTO.
243
244 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
245
246         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
247         description of expression operand.
248
249 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
250
251         * configure.ac: Add install-html to target_list for Make-hooks.
252         * configure: Regenerate.
253         * fortran/Make-lang.in (F95_HTMLFILES): New.
254         (fortran.html): Use it.
255         (fortran.install-html): New.
256         * Makefile.in (install-html): Add lang.install-html.
257         * java/Make-lang.in (JAVA_HTMLFILES): New.
258         (java.html): Use it.
259         (java.install-html): New.
260         * objc/Make-lang.in (objc.install-html): New.
261         * objcp/Make-lang.in (obj-c++.install-html): New.
262         * cp/Make-lang.in (c++.install-html): New.
263         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
264         * lto/Make-lang.in (lto.install-html): New.
265
266 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
267
268         PR lto/42520
269         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
270
271 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
272
273         PR rtl-optimization/41862
274         * store-motion.c (store_killed_in_insn, compute_store_table,
275         remove_reachable_equiv_notes, replace_store_insn,
276         build_store_vectors): Ignore all DEBUG_INSNs.
277
278 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
279
280         PR lto/41564
281         * common.opt: Add dumpdir.
282
283         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
284         isn't specified.
285         (option_map): Add --dumpdir.
286
287         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
288
289         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
290
291         * opts.c (decode_options): Try dump_dir_name first if
292         dump_base_name isn't an absolute path.
293         (common_handle_option): Handle OPT_dumpdir.
294
295         * toplev.c (dump_dir_name): New.
296         (print_switch_values): Also ignore -dumpdir.
297
298         * toplev.h (dump_dir_name): New.
299
300 2010-01-03  Richard Guenther  <rguenther@suse.de>
301
302         PR tree-optimization/42589
303         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
304         double-word expansion of bswap32.
305
306 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
307
308         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
309         with BLOCK_FOR_INSN.
310         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
311         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
312         noce_process_if_block): Likewise.
313         * gcse.c (compute_local_properties, insert_expr_in_table,
314         insert_set_in_table, canon_list_insert, find_avail_set,
315         pre_insert_copy_insn): Likewise.
316
317         * basic-block.h (BLOCK_NUM): Move from here...
318         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
319
320 2010-01-03  Richard Guenther  <rguenther@suse.de>
321
322         PR tree-optimization/42438
323         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
324         contains_may_not_return_call flag.
325         (BB_MAY_NOTRETURN): New.
326         (valid_in_sets): Trapping nary operations are not valid
327         in blocks that may not return.
328         (insert_into_preds_of_block): Remove check for trapping
329         expressions.
330         (compute_avail): Compute also BB_MAY_NOTRETURN.
331
332 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
333
334         * doc/invoke.texi: Add 2010 to copyright years.
335
336 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
337
338         * config/sparc/sparc.c: Fix formatting nits.
339
340 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
341             Alexander Monakov  <amonakov@ispras.ru>
342
343         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
344
345 2010-01-02  Richard Guenther  <rguenther@suse.de>
346
347         PR middle-end/42577
348         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
349         (simplify_switch_using_ranges): Mark to be removed edges
350         as non-executable.
351
352 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
353
354         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
355
356         * collect2.c (scan_libraries): Add missing argument in call to
357         scan_prog_file.
358
359 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
360
361         PR target/42448
362         * config/alpha/predicates.md (aligned_memory_operand): Return false
363         for CQImode.
364         (unaligned_memory_operand): Return true for CQImode.
365         * config/alpha/alpha.c (get_aligned_mem): Assert that location
366         doesn not cross aligned SImode word boundary.
367
368 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
369
370         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
371         Remove.
372         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
373         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
374
375 2010-01-02  Richard Guenther  <rguenther@suse.de>
376
377         PR lto/41597
378         * toplev.c (compile_file): Emit LTO marker properly.  Change
379         it to __gnu_lto_v1.
380         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
381
382 2010-01-01  Richard Guenther  <rguenther@suse.de>
383
384         PR debug/42455
385         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
386
387 2010-01-01  Richard Guenther  <rguenther@suse.de>
388
389         PR c/42570
390         * c-decl.c (grokdeclarator): For zero-size arrays force
391         structural equality checks as layout_type does.
392
393 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
394
395         * builtins.c: Update copyright to 2010.
396
397 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
398
399         PR lto/42531
400         * lto-streamer-out.c (produce_asm): Revert the last change.
401         (copy_function): Likewise.
402
403         * lto-streamer.c (lto_get_section_name): Skip any leading
404         asterisk in name.
405
406 2010-01-01  Richard Guenther  <rguenther@suse.de>
407
408         PR middle-end/42559
409         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
410         for LABEL_DECLs.
411
412 \f
413 Copyright (C) 2010 Free Software Foundation, Inc.
414
415 Copying and distribution of this file, with or without modification,
416 are permitted in any medium without royalty provided the copyright
417 notice and this notice are preserved.