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