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