OSDN Git Service

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