OSDN Git Service

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