OSDN Git Service

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