]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
avx-recip-vec.c: New test.
[gcc.git] / gcc / ChangeLog
CommitLineData
eab880cf
UB
12011-11-14 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/i386/sse.md (round<mode>2_sfix): New expander.
4 (round<mode>2_vec_pack_sfix): Ditto.
5 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
6 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
7 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
8 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
9 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
10 * config/i386/i386.c (ix86_builtins): Add
11 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
12 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
13 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
14 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
15 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
16 __builtin_ia32_roundps_az_sfix{,256} descriptions.
17 (ix86_expand_sse_round_vec_pack_sfix): New.
18 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
19 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
20 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
21 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
22 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
23 (ix86_builtin_vectorized_function): Handle
24 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
25 BUILT_IN_{I,L,LL}ROUND{,F}
26
ac99ebf5
JH
272011-11-14 Jan Hubicka <jh@suse.cz>
28
29 PR middle-end/50598
30 * cgraph.h (varpool_externally_visible_p): Declare.
31 (varpool_add_new_variable): Declare.
32 * tree-emultls.c (get_emutls_init_templ_addr,
33 new_emutls_decl): Use varpool_add_new_variable.
34 * ipa.c (varpool_externally_visible_p): Export.
35 * varpool.c (varpool_add_new_variable): New function.
36
38877e98
ZM
372011-11-14 Zolotukhin Michael <michael.v.zolotukhin@gmail.com>
38 Jan Hubicka <jh@suse.cz>
39
eab880cf
UB
40 * config/i386/i386.h (processor_costs): Add second dimension to
41 stringop_algs array.
42 * config/i386/i386.c (cost models): Initialize second dimension of
43 stringop_algs arrays.
38877e98
ZM
44 (core_cost): New costs based on generic64 costs with updated stringop
45 values.
eab880cf
UB
46 (promote_duplicated_reg): Add support for vector modes, add
47 declaration.
48 (promote_duplicated_reg_to_size): Likewise.
38877e98 49 (processor_target): Set core costs for core variants.
eab880cf
UB
50 (expand_set_or_movmem_via_loop_with_iter): New function.
51 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
52 different loops, produced by this function.
53 (emit_strset): New function.
54 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
55 use SSE-moves where possible.
56 (expand_setmem_epilogue): Likewise.
57 (expand_movmem_prologue): Likewise for prologue.
58 (expand_setmem_prologue): Likewise.
59 (expand_constant_movmem_prologue): Likewise.
60 (expand_constant_setmem_prologue): Likewise.
61 (decide_alg): Add new argument align_unknown. Fix algorithm of
62 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
63 (decide_alignment): Update desired alignment according to chosen move
64 mode.
65 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
66 (ix86_expand_setmem): Likewise.
67 (ix86_slow_unaligned_access): Implementation of new hook
68 slow_unaligned_access.
69 * config/i386/i386.md (strset): Enable half-SSE moves.
70 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
71 (vec_dupv2di): Add expand for vec_dupv2di.
38877e98 72
f8acdd3c
DA
732011-11-14 Dimitrios Apostolou <jimis@gmx.net>
74
75 PR bootstrap/51094
76 PR middle-end/51116
77 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
78 * varasm.c (default_elf_internal_label): Remove.
79
fe860eb5
KT
802011-11-14 Kai Tietz <ktietz@redhat.com>
81
eab880cf 82 * gcov.c (generate_results): Add missing semicolon and correct indent.
fe860eb5 83
df11cc78
IR
842011-11-14 Ira Rosen <ira.rosen@linaro.org>
85
86 PR bootstrap/51112
87 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
88
51c02798
MX
892011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
90
91 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
92 to @pxref{Function Attributes}.
93
f36348b3
OE
942011-11-13 Oleg Endo <oleg.endo@t-online.de>
95
96 PR target/50694
97 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
98 New macros.
eab880cf
UB
99 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
100 taking the default configuration into account.
f36348b3 101
d559a95c
JW
1022011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
103
104 * doc/install.texi (Specific): Fix anchor for
105 x86_64-*-solaris2.1[0-9]*.
106
1bec9caa
NS
1072011-11-13 Nathan Sidwell <nathan@acm.org>
108
109 * gcov.c (source_prefix, source_length): New globals.
110 (flag_relative_only): Likewise.
111 (print_usage, options, process_args): Update.
112 (generate_results): Use coverage.name, check
113 flag_relative_only. Adjust messages.
114 (find_source): Check source_prefix.
115 (output_lines): Use coverage.name, adjust messages.
116 * doc/gcov.texi (Invoking Gcov): Document new options.
117
d0ad58f9
JM
1182011-11-12 Jason Merrill <jason@redhat.com>
119
120 PR c++/51060
121 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
122 (gimplify_modify_expr): Don't try to simplify it.
123
123cd463
DA
1242011-11-12 Dimitrios Apostolou <jimis@gmx.net>
125
c9febe15
DA
126 PR bootstrap/51094
127 * config/elfos.h (STRING_ASM_OP): Define.
128 * varasm.c (default_elf_asm_output_limited_string): Use it.
129
123cd463
DA
130 PR bootstrap/51094
131 * gcc/configure.ac: Check for stpcpy declaration.
132 * system.h: Declare it if not.
133 * config.in, configure: Regenerate.
134
33a55f29
RH
1352011-11-12 Richard Henderson <rth@redhat.com>
136
eab880cf 137 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
17fd74dd
RH
138 nonimmediate_operand for the destination.
139 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
140
f0409b19
RH
141 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
142 don't pass the target to expand_atomic_compare_and_swap.
143 (expand_builtin_atomic_compare_exchange): Likewise.
144
dab37c68
RH
145 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
146 * config/sh/sh.c (sh_init_sync_libfuncs): New.
147
33a55f29
RH
148 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
149 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
150 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
151
220c688a
IS
1522011-11-12 Iain Sandoe <iains@gcc.gnu.org>
153
154 PR target/45233
155 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
156 Only expand a symbol ref. into an access when the entity is defined
157 in the TU.
158
c481ae7f
JH
1592011-11-12 Jan Hubicka <jh@suse.cz>
160
161 PR bootstrap/50822
162 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
163
eeabee0a
NS
1642011-11-12 Nathan Sidwell <nathan@acm.org>
165
166 * gcov.c (struct name_map): New.
167 (names, n_names, a_names): New global vars.
168 (print_usage): Adjust usage.
169 (generate_results): Canonicalize main file name.
170 (release_structures): Adjust.
171 (name_search, name_sort): New callbacks.
172 (find_source): Look for and create a canonical name.
173 (canonicalize_name): New.
174 (make_gcov_file_name): Reimplement and fix mangling.
175 (mangle_name): New.
176 * doc/gcov.texi: Update documentation about path preservation.
177
49db0ca8
DM
1782011-11-11 David S. Miller <davem@davemloft.net>
179
180 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
181 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
182
22d8712a
JJ
1832011-11-11 Jakub Jelinek <jakub@redhat.com>
184
292b4434
JJ
185 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
186 New prototype.
187 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
188 function.
189 (ix86_expand_epilogue): Use it.
190 * config/i386/i386.md (return, simple_return): Call it in the
191 expanders.
192
bad25453
JJ
193 PR tree-optimization/51091
194 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
195 rhs also in the va_list_simple_ptr case.
196
dd34c087
JJ
197 PR tree-optimization/51058
198 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
199 (vect_schedule_slp): Call it.
200 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
201 don't replace scalar calls with setting of their lhs to zero here.
202
22d8712a
JJ
203 PR tree-optimization/51074
204 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
205 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
206 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
207 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
208 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
209 CONSTRUCTOR operands.
210 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
211 expressions.
212 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
213 to 0 .. 2 * elements - 1.
214
05409788
RH
2152011-11-11 Richard Henderson <rth@redhat.com>
216
217 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
218 (dump_gimple_omp_atomic_store): Likewise.
219 * optabs.c (can_atomic_exchange_p): New.
220 * optabs.h (can_atomic_exchange_p): Declare.
221 * omp-low.c (expand_omp_atomic_load): Implement.
222 (expand_omp_atomic_store): Likewise.
223 (expand_omp_atomic): Update for new arguments to load/store.
224
ba5c3b24
EB
2252011-11-11 Eric Botcazou <ebotcazou@adacore.com>
226
227 * cprop.c: Adjust outdated comments throughout.
228 (hash_scan_set): Rename PAT parameter into SET.
229 (cprop_pavloc): Rename into...
230 (cprop_avloc): ...this.
231 (cprop_absaltered): Rename into...
232 (cprop_kill): ...this.
233 (alloc_cprop_mem): Adjust for above renaming.
234 (free_cprop_mem): Likewise.
235 (compute_cprop_data): Likewise.
236 (compute_local_properties): Rename TRANSP parameter into KILL and
237 adjust throughout. Rework comments.
238 (try_replace_reg): Fix long line.
239 (cprop_jump): Likewise.
240 (constprop_register): Fix prototype and take INSN last.
241 (cprop_insn): Adjust calls to above function. Fix long lines.
242 (bypass_block): Likewise.
243 (one_cprop_pass): Likewise.
244
13ced9bb
UB
2452011-11-11 Uros Bizjak <ubizjak@gmail.com>
246
247 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
248 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
249
9a993383
JM
2502011-11-11 Jason Merrill <jason@redhat.com>
251
252 * varasm.c (default_elf_asm_output_limited_string): #ifdef
253 ELF_ASCII_ESCAPES.
254 (default_elf_asm_output_ascii): Likewise.
255
5da6a383
UB
2562011-11-11 Uros Bizjak <ubizjak@gmail.com>
257
258 PR target/50762
259 * config/i386/constraints.md (j): New address constraint.
260 * config/i386/predicates.md (lea_address_operand): Redefine as
261 special predicate.
262 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
263 (*lea_4_zext): Ditto.
264
2b38137d
DM
2652011-11-11 David S. Miller <davem@davemloft.net>
266
267 Revert
268 2011-11-05 David S. Miller <davem@davemloft.net>
269
ba5c3b24
EB
270 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
271 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
272 (*zero_extend_v8qi_<P:mode>_insn,
273 *zero_extend_v4hi_<P:mode>_insn): New insns.
274 * config/sparc/sparc.c (vector_init_move_words,
275 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
276 sparc_expand_vector_init_vis1): New functions.
277 (vector_init_bshuffle): Rewrite to handle more cases and make use
278 of locs[] array prepared by vector_init_prepare_elts.
279 (vector_init_fpmerge, vector_init_faligndata): Delete.
280 (sparc_expand_vector_init): Rewrite using new infrastructure.
281
d3cfd39e
JJ
2822011-11-11 Jakub Jelinek <jakub@redhat.com>
283
ca3e7c9f
JJ
284 * opts-common.c (generate_canonical_option): Free opt_text
285 it it has been allocated here and not stored anywhere.
286
d3cfd39e
JJ
287 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
288 vector.
289 (vect_create_new_slp_node): Don't allocate node before checking stmt
290 type.
291 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
292 free def_stmts vectors and additionally free oprnd_info.
293 (vect_build_slp_tree): Adjust callers. Call it even if
294 stop_recursion. If vect_create_new_slp_node or
295 vect_build_slp_tree fails, properly handle freeing memory.
296 If it succeeded, clear def_stmts in oprnd_info.
297
926706f8
EB
2982011-11-11 Dimitrios Apostolou <jimis@gmx.net>
299
300 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
301 multiple lines for readability.
302 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
303 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
304 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
305 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
306 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
307 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
308 fprintf.
309 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
310 serving as fast replacements for fprintf integer to string conversions.
311 (sprint_ul_rev): Internal helper for the above.
312 (output_addr_const) <CONST_INT>: Don't use fprintf.
313 * varasm.c: Fix some whitespace inconsistencies.
314 (default_elf_asm_output_limited_string): New.
315 (default_elf_asm_output_ascii): Likewise.
316 (default_elf_internal_label): Likewise.
317 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
318 stpcpy instead of sprintf.
5e3929ed 319 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
926706f8 320 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
5e3929ed 321 STRING_LIMIT macros.
926706f8
EB
322 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
323 provide the same functionality.
324 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
5e3929ed 325
1aabd05e
AM
3262011-11-10 Andrew MacLeod <amacleod@redhat.com>
327
328 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
329
d660c35e
AM
3302011-11-10 Andrew MacLeod <amacleod@redhat.com>
331
332 PR middle-end/51038
333 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
334 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
335 (expand_builtin): Add cases for test_and_set and clear.
336 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
337 (BUILT_IN_ATOMIC_CLEAR): New.
338
c68b1bc7
JM
3392011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
340
341 PR debug/50983
342 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
343 value in the current line table.
344
1ce1b792
NS
3452011-11-10 Nathan Sidwell <nathan@acm.org>
346
347 * gcov.c (struct function_info): Make src an index, not a pointer.
348 (struct source_info): Remove index and next source fields.
349 (fn_end): New static var.
350 (sources_index): Remove.
351 (sources): Now a pointer to an array, not a list.
352 (n_sources, a_sources): New.
353 (process_file): Adjust for changes to read_graph_file. Insert
354 functions into source lists and check line numbers here.
355 (generate_results): Only allocate lines for sources with
356 contents. Adjust for source array.
357 (release_structures): Likewise.
358 (find_source): Return source index, adjust for source array.
359 (read_graph_file): Return function list. Don't insert into source
360 lists here.
361 (read_count_file): Take list of functions.
362 (solve_flow_graph): Reverse the arc lists here.
363 (add_line_counts): Adjust for source array.
364
ea17de23
JJ
3652011-11-10 Jakub Jelinek <jakub@redhat.com>
366
367 PR middle-end/51077
368 * tree-object-size.c (addr_object_size): Check TREE_CODE of
369 MEM_REF's operand rather than code of the MEM_REF itself.
370
154b68db
AM
3712011-11-10 Andrew MacLeod <amacleod@redhat.com>
372
373 PR rtl-optimization/51040
1ce1b792
NS
374 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
375 be AND followed by NOT.
154b68db
AM
376 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
377 should be AND followed by NOT.
154b68db 378
03989f55
JJ
3792011-11-10 Jakub Jelinek <jakub@redhat.com>
380
c8bf99b4
JJ
381 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
382 use &(P)->base even if P is NULL.
383
03989f55
JJ
384 PR rtl-optimization/51023
385 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
386 val_signbit_known_clear_p for signed comparison narrowing
387 optimization. Don't check for non-VOIDmode, use
388 HWI_COMPUTABLE_MODE_P macro.
389 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
390 Optimize even when const_op is equal to GET_MODE_MASK (mode),
391 don't optimize if const_op is negative.
392
4da80bfb
RG
3932011-11-10 Richard Guenther <rguenther@suse.de>
394
395 PR tree-optimization/51042
396 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
397 self-referential expressions. Refactor code to avoid duplication.
398
c07a8cb3
RG
3992011-11-10 Richard Guenther <rguenther@suse.de>
400
401 PR tree-optimization/51070
402 * tree-loop-distribution.c (generate_builtin): Do not replace
403 the loop with a builtin if the partition contains statements which
404 results are used outside of the loop.
405 (pass_loop_distribution): Verify and collect.
406
98dd3b73
RG
4072011-11-10 Richard Guenther <rguenther@suse.de>
408
409 PR tree-optimization/51030
410 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
411 (value_replacement): Use it to handle trivial non-empty
412 intermediate blocks.
413
723afc44
RG
4142011-11-10 Richard Guenther <rguenther@suse.de>
415
416 PR middle-end/51071
417 * gimple.c (gimple_has_side_effects): Remove checking code
418 that doesn't belong here.
419
bac430c9
IR
4202011-11-10 Ira Rosen <ira.rosen@linaro.org>
421
422 PR tree-optimization/51058
423 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
424
78048b1c
JJ
4252011-11-10 Jakub Jelinek <jakub@redhat.com>
426
427 PR tree-optimization/51000
428 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
429 a pattern stmt for a bool store, adjust DR_STMT too.
430 Don't handle bool conversions to single bit precision lhs.
431 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
432 stmt, remove its related stmt and free its stmt_vinfo.
433 (free_stmt_vec_info): Free also pattern stmt's vinfo and
434 pattern def stmt's vinfo.
435 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
436 free pattern stmt's vinfo here.
437 (vect_transform_loop): When calling vect_remove_stores,
438 do gsi_next first and don't call gsi_remove. If not strided
439 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
440
0ff0609d
JJ
4412011-11-09 Jakub Jelinek <jakub@redhat.com>
442
d3e472a3
JJ
443 PR target/50911
444 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
445 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
446 to V4SFmode.
447
0ff0609d
JJ
448 * function.h (requires_stack_frame_p): New prototype.
449 * function.c (requires_stack_frame_p): No longer static.
450 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
451 stack_realign_fp was just a conservative guess for a function
452 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
453 and stack realignment.
454
9b5e84de
PC
4552011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
456
457 PR preprocessor/51061
458 * incpath.c (merge_include_chains): Make sure to not pass null
459 pointers to free_path.
460
6d96d7ff
PC
4612011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
462
463 * doc/invoke.texi ([Option Summary, C++ Language Options]):
464 Add -Wzero-as-null-pointer-constant.
465
f5024b4a
MGD
4662011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
467
468 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
469 * config/arm/arm-tables.opt: Regenerate.
470 * config/arm/arm-tune.md: Likewise.
471 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
472 * doc/invoke.texi: Document -mcpu=cortex-a7.
473
26833b3d
RG
4742011-11-09 Richard Guenther <rguenther@suse.de>
475
476 Revert
477 2011-11-09 Richard Guenther <rguenther@suse.de>
478
479 * tree-cfg.c (verify_gimple_call): Verify that
480 gimple_call_cannot_inline_p is returning a conservative
481 correct result according to gimple_check_call_matching_types.
482
03cb5f39
RG
4832011-11-09 Richard Guenther <rguenther@suse.de>
484
485 PR tree-optimization/51039
486 * tree-cfg.c (verify_gimple_call): Verify that
487 gimple_call_cannot_inline_p is returning a conservative
488 correct result according to gimple_check_call_matching_types.
489 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
490 code dealing with un-inlinablility.
491 * gimple-streamer-in.c (input_gimple_stmt): Update the
492 non-inlinable flag.
493
c4ac6e94
RG
4942011-11-09 Richard Guenther <rguenther@suse.de>
495
496 PR tree-optimization/51039
497 * tree-inline.c (setup_one_parameter): Always perform a
498 valid gimple type change.
499 (declare_return_variable): Likewise.
500
69d3d957
JJ
5012011-11-09 Jakub Jelinek <jakub@redhat.com>
502
503 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
504 vconduv4sfv4si): New patterns.
505 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
506 different dest_mode from comparison mode.
507
c5bdb340
RG
5082011-11-09 Richard Guenther <rguenther@suse.de>
509
510 * gimple-fold.c (canonicalize_constructor_val): Mark
511 address-taken variables addressable.
512
9b858c88
IR
5132011-11-09 Ira Rosen <ira.rosen@linaro.org>
514
515 PR tree-optimization/51015
516 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
517 vectype to be set for pattern def stmts.
518
ffe14686
AM
5192011-11-09 Alan Modra <amodra@gmail.com>
520
521 * function.c (bb_active_p): Delete.
522 (dup_block_and_redirect, active_insn_between): New functions.
523 (convert_jumps_to_returns, emit_return_for_exit): New functions,
524 split out from..
525 (thread_prologue_and_epilogue_insns): ..here. Delete
526 shadowing variables. Don't do prologue register clobber tests
527 when shrink wrapping already failed. Delete all last_bb_active
528 code. Instead compute tail block candidates for duplicating
529 exit path. Remove these from antic set. Duplicate tails when
530 reached from both blocks needing a prologue/epilogue and
531 blocks not needing such.
532 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
533 HAVE_simple_return.
534 * bb-reorder.c (get_uncond_jump_length): Make global.
535 * bb-reorder.h (get_uncond_jump_length): Declare.
536 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
537 (rtl_split_edge): Likewise. Warning fix.
538 (rtl_duplicate_bb): New function.
539 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
540 * Makefile.in (function.o): Update dependencies.
541
86fc3d06
UW
5422011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
543 Georg-Johann Lay <avr@gjlay.de>
544
545 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
546 argument.
547 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
548 * doc/tm.texi: Regenerate.
549
550 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
551 space argument.
552 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
553 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
554 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
555 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
556 argument.
557 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
558 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
559 (avr_regno_mode_code_ok_for_base_p): Ditto.
560 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
561 (avr_regno_mode_code_ok_for_base_p): Ditto.
562 (avr_reg_ok_for_addr_p): Pass AS down to
563 avr_regno_mode_code_ok_for_base_p.
564
565 * addresses.h (base_reg_class): Add address space argument.
566 Pass to MODE_CODE_BASE_REG_CLASS.
567 (ok_for_base_p_1): Add address space argument. Pass to
568 REGNO_MODE_CODE_OK_FOR_BASE_P.
569 (regno_ok_for_base_p): Add address space argument. Pass to
570 ok_for_base_p_1.
571
572 * regrename.c (scan_rtx_address): Add address space argument.
573 Pass address space to regno_ok_for_base_p and base_reg_class.
574 Update recursive calls.
575 (scan_rtx): Pass address space to scan_rtx_address.
576 (build_def_use): Likewise.
577 * regcprop.c (replace_oldest_value_addr): Add address space
578 argument. Pass to regno_ok_for_base_p and base_reg_class.
579 Update recursive calls.
580 (replace_oldest_value_mem): Pass address space to
581 replace_oldest_value_addr.
582 (copyprop_hardreg_forward_1): Likewise.
583
584 * reload.c (find_reloads_address_1): Add address space argument.
585 Pass address space to base_reg_class and regno_ok_for_base_p.
586 Update recursive calls.
587 (find_reloads_address): Pass address space to base_reg_class,
588 regno_ok_for_base_p, and find_reloads_address_1.
589 (find_reloads): Pass address space to base_reg_class.
590 (find_reloads_subreg_address): Likewise.
591
592 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
593 (ok_for_base_p_nonstrict): Add address space argument. Pass to
594 ok_for_base_p_1.
595 (record_address_regs): Add address space argument. Pass to
596 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
597 (record_operand_costs): Pass address space to record_address_regs.
598 (scan_one_insn): Likewise.
599
600 * caller-save.c (init_caller_save): Update call to base_reg_class.
601 * ira-conflicts.c (ira_build_conflicts): Likewise.
602 * reload1.c (maybe_fix_stack_asms): Likewise.
603
47598145
MM
6042011-11-08 Michael Matz <matz@suse.de>
605
606 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
607
608 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
609
610 * tree.h (TREE_CLOBBER_P): New macro.
611 * gimple.h (gimple_clobber_p): New inline function.
612 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
613 that go out of scope and live in memory.
614 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
615 for constructors.
616 * cfgexpand.c (decl_to_stack_part): New static variable.
617 (add_stack_var): Allocate it, and remember mapping.
618 (fini_vars_expansion): Deallocate it.
619 (stack_var_conflict_p): Add early outs.
620 (visit_op, visit_conflict, add_scope_conflicts_1,
621 add_scope_conflicts): New static functions.
622 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
623 (expand_used_vars): Add scope conflicts.
624 (expand_gimple_stmt_1): Expand clobbers to nothing.
625 (expand_debug_expr): Ditto.
626
627 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
628 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
629 refer to otherwise unused locals.
630 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
631 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
632 SSA names aren't necessary.
5da6a383 633 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
47598145
MM
634 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
635 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
636 any known value.
637 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
638 don't zero-initialize something.
639 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
640 clobber RHS, we don't want PHI nodes with those.
641
8ebe5133
JJ
6422011-11-08 Jakub Jelinek <jakub@redhat.com>
643
644 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
645 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
646
f2906a8e
RG
6472011-11-08 Richard Guenther <rguenther@suse.de>
648
649 PR tree-optimization/51012
650 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
651 non-inlinable state.
652 * cgraph.c (cgraph_make_edge_direct): Likewise.
653
fabe6a9a
EB
6542011-11-08 Eric Botcazou <ebotcazou@adacore.com>
655
656 PR rtl-optimization/47698
657 * ifcvt.c (noce_operand_ok): Move around comment.
658
a456676f
RG
6592011-11-08 Richard Guenther <rguenther@suse.de>
660
661 PR lto/50999
662 * lto-opts.c (append_to_collect_gcc_options): Split out from...
663 (lto_write_options): ... here. Prepend frontend specific flags.
664
190c2236
JJ
6652011-11-08 Jakub Jelinek <jakub@redhat.com>
666
5d54daac
JJ
667 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
668 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
669
190c2236
JJ
670 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
671 Handle vectorization of SLP calls.
672 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
673 (vect_transform_stmt): Adjust vectorizable_call caller, remove
674 assertion.
675 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
676 with op_idx 3.
677 (vect_build_slp_tree): Allow CALL_EXPR.
678
4835617e
RG
6792011-11-08 Richard Guenther <rguenther@suse.de>
680
681 * gimple-fold.c (canonicalize_constructor_val): Make sure
682 we have referenced vars setup before adding to them.
683
0a35513e
AH
6842011-11-07 Richard Henderson <rth@redhat.com>
685 Aldy Hernandez <aldyh@redhat.com>
686 Andrew MacLeod <amacleod@redhat.com>
687 Torvald Riegel <triegel@redhat.com>
688
689 Merged from transactional-memory.
690
691 * gtm-builtins.def: New file.
692 * trans-mem.c: New file.
693 * trans-mem.h: New file.
694
5da6a383 695 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
0a35513e
AH
696
697 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
698 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
699 ix86_builtin_tm_load, ix86_builtin_tm_store,
700 ix86_init_tm_builtins): New.
701 (ix86_init_builtins): Initialize TM builtins.
702 (struct ix86_attribute_table): Add "*tm regparm".
703 * config/i386/i386-builtin-types.def (PV2SI): Define.
704 (PCV2SI): Define.
705 Define V2SI_FTYPE_PCV2SI.
706 Define V4SF_FTYPE_PCV4SF.
707 Define V8SF_FTYPE_PCV8SF.
708 Define VOID_PV2SI_V2SI.
709
710 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
711 tm-max-aggregate-size.
712 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
713 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
714 * doc/tm.texi: Regenerate.
715
716 * attribs.c (apply_tm_attr): New.
717 (init_attributes): Allow '*' prefix for overrides.
718 (register_attribute): Likewise.
719 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
720 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
721 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
722 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
723 ATTR_TMPURE_NOTHROW_LIST): New.
724 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
725 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
726 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
727 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
728 * builtins.def: Include gtm-builtins.def. Add comments regarding
729 transactional memory synchronization.
730 (DEF_TM_BUILTIN): New.
731 * c-parser.c (struct c_parser): Add in_transaction.
732 (c_parser_transaction, c_parser_transaction_expression,
733 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
734 (c_parser_attribute_any_word): Split out from c_parser_attributes.
735 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
736 (c_parser_unary_expression): Same.
737 * c-tree.h (c_finish_transaction): Declare.
738 * c-typeck.c (c_finish_transaction): New.
739 (build_function_call_vec): Call tm_malloc_replacement.
740 * calls.c (is_tm_builtin): New.
741 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
742 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
743 * cfgexpand.c (expand_call_stmt): Call
744 mark_transaction_restart_calls.
745 (gimple_expand_cfg): Free the tm_restart map.
746 (mark_transaction_restart_calls): New.
747 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
748 * cgraph.c (dump_cgraph_node): Handle tm_clone.
749 * cgraph.h (struct cgraph_node): Add tm_clone field.
750 (decl_is_tm_clone): New.
751 (struct cgraph_local_info): Add tm_may_enter_irr.
752 (cgraph_copy_node_for_versioning): Declare.
753 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
754 copy analyzed from old version.
755 * combine.c (distribute_notes): Handle REG_TM notes.
756 * common.opt: Add -fgnu-tm.
757 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
758 (__do_global_dtors_aux): Deregister clone table.
759 (frame_dummy): Register clone table.
760 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
761 body.
762 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
763 GIMPLE_TRANSACTION.
764 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
765 * gimple-pretty-print.c: Include trans-mem.h.
766 (dump_gimple_fmt): Add %x.
767 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
768 (dump_gimple_eh_else, dump_gimple_transaction): New.
769 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
770 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
771 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
772 field.
773 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
774 (walk_gimple_stmt): Initialize and honor removed_stmt.
775 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
776 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
777 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
778 * gimple.h (struct gimple_statement_eh_else,
779 gimple_statement_transaction, GTMA_*): New.
780 (gimple_statement_d): Add gimple_statement_eh_else and
781 gimple_transaction.
782 (gimple_build_eh_else, gimple_build_transaction,
783 gimple_fold_call, diagnose_tm_safe_errors): Declare.
784 (get_call_expr_in): Remove prototype.
785 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
786 (gimple_eh_else_n_body, gimple_eh_else_e_body,
787 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
788 gimple_transaction_body, gimple_transaction_label,
789 gimple_transaction_label_ptr, gimple_transaction_subcode,
790 gimple_transaction_set_body, gimple_transaction_set_label,
791 gimple_transaction_set_subcode): New.
792 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
793 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
794 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
795 (gimplify_transaction): New.
796 (gimplify_expr): Handle TRANSACTION_EXPR.
797 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
798 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
799 TM pure functions.
800 * Makefile.in: Add trans-mem.o and dependencies.
801 (BUILTINS_DEF): Add gtm-builtins.def.
802 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
803 (GTFILES): Add trans-mem.c.
804 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
805 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
806 get_tm_clone_pair): Declare.
807 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
808 * passes.c (init_optimization_passes): Place transactional memory
809 passes.
810 * print-tree.c (print_node): Dump tm-clone.
811 * recog.c (peep2_attempt): Handle REG_TM.
812 * reg-notes.def (TM): New.
813 * rtlanal.c (alloc_reg_note): Handle REG_TM.
814 * target.def (builtin_tm_load, builtin_tm_store): New.
815 * targhooks.c (default_builtin_tm_load_store): New.
816 * targhooks.h (default_builtin_tm_load_store): Declare.
817 * timevar.def (TV_TRANS_MEM): New.
818 * toplev.c (compile_file): Call finish_tm_clone_pairs.
819 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
820 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
821 writes into the statements to update labels.
822 (is_ctrl_altering_stmt): Add TM ending statements. Handle
823 GIMPLE_TRANSACTION.
824 (verify_gimple_transaction): New.
825 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
826 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
827 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
828 (dump_function_to_file): Display [tm-clone] if applicable.
829 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
830 (struct_ptr_hash): Same.
831 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
832 (replace_goto_queue_1): Likewise.
833 (get_eh_else): New.
834 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
835 (lower_try_finally_nofallthru): Likewise.
836 (lower_try_finally_onedest): Likewise.
837 (lower_try_finally_copy): Likewise.
838 (lower_try_finally_switch): Likewise.
839 (lower_try_finally): Likewise.
840 (decide_copy_try_finally): Likewise.
841 (lower_eh_constructs_2): Likewise.
842 (refactor_eh_r): Likewise.
843 * tree-flow.h (struct gimple_df): Add tm_restart field.
844 Define tm_restart_node.
845 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
846 (estimate_num_insns): Likewise.
847 (init_inline_once): Init tm_cost.
848 * tree-inline.h (struct eni_weights_d): Add tm_cost.
849 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
850 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
851 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
852 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
853 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
854 Add support for TM vector loads. Add support for TM logging builtins.
855 (call_may_clobber_ref_p_1): Add support for vector stores.
856 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
857 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
858 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
859 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
860 (local_define_builtin): Handle ECF_TM_PURE.
861 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
862 * tree.def (TRANSACTION_EXPR): New.
863 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
864 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
865 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
866 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
867 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
868 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
869 (struct tree_function_decl): Add tm_clone_flag.
870 (struct_ptr_eq, struct_ptr_hash): New.
871 (apply_tm_attr): Declare.
872 (is_tm_safe_or_pure): New.
873 (build_tm_abort_call, is_tm_safe, is_tm_pure,
874 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
875 tm_malloc_replacement): Declare.
876 * varasm.c (tm_clone_hash): New.
877 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
878 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
879 (struct tm_alias_pair): New. Declare VEC types for object.
880
cedb4a1a
RH
8812011-11-07 Richard Henderson <rth@redhat.com>
882
883 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
884 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
885 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
886 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
887 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
888 rename from the direct_optab_index enum.
889 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
890 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
891 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
892 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
893 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
894 from the optab_table, not the direct_optab_table.
895 (init_sync_libfuncs): Declare.
896 (can_compare_and_swap_p): Update parameters.
897 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
898 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
899 test for the legacy compare-and-swap libcall.
900 (expand_atomic_exchange): Use the legacy test-and-set libcall.
901 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
902 (struct atomic_op_functions): Update for optab type changes.
903 (maybe_emit_op): Likewise.
904 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
905 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
906 to can_compare_and_swap_p.
907 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
908 (expand_omp_atomic_pipeline): Likewise.
909 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
910 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
911 optabs.
912 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
913
c8694a80
JJ
9142011-11-07 Jakub Jelinek <jakub@redhat.com>
915
916 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
917 * config/i386/i386.c (enum ix86_builtins): Add
918 IX86_BUILTIN_VEC_PACK_SFIX256.
919 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
920 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
921 (ix86_builtin_vectorized_function): Also vectorize lrint using
922 256-bit vectors for -mavx.
923
06cadf63
AS
9242011-11-07 Anatoly Sokolov <aesok@post.ru>
925
926 * config/cris/constraints.md: New file.
927 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
928 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
929 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
930 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
931 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
932 * config/cris/cris.c: Incule "tm-constrs.h".
933 (cris_print_operand): Use satisfies_constraint_O.
934 (cris_normal_notice_update_cc, cris_rtx_costs): Use
935 satisfies_constraint_I.
936 (cris_address_cost): Use satisfies_constraint_L.
937 * config/cris/cris.md: Include "constraints.md".
938 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
939 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
940 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
941 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
942 *extop<mode>si_swap_side): Use satisfies_constraint_N and
943 satisfies_constraint_J.
944 (moversideqi movemsideqi mover2side peephole2): Use
945 satisfies_constraint_N and satisfies_constraint_J.
946 (andu peephole2): Use satisfies_constraint_I and
947 satisfies_constraint_O.
948
bfd08c89
UB
9492011-11-07 Uros Bizjak <ubizjak@gmail.com>
950
951 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
952 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
953
6ff336b4
AM
9542011-11-07 Andrew MacLeod <amacleod@redhat.com>
955
956 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
957 SWITCHABLE_TARGET can change the values during compilation.
bfd08c89 958 (expand_atomic_fetch_op): Handle parameter change ripples for
6ff336b4
AM
959 get_atomic_op_for_code call.
960
0669295b
AM
9612011-11-07 Andrew MacLeod <amacleod@redhat.com>
962
963 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
964 __atomic_store.
965 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
966 only when originated from that builtin.
967 (expand_atomic_store): Expand to __sync_lock_release when originated
968 from that builtin.
969 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
970 expand_atomic_exchange call originated from here.
971 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
972 call originated from here.
973 (expand_builtin_atomic_exchange): Add origination flag.
974 (expand_builtin_atomic_store): Add origination flag.
bfd08c89 975 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
0669295b
AM
976 parameters to indicate implementation fall back options.
977
0098895f
GJL
9782011-11-07 Georg-Johann Lay <avr@gjlay.de>
979
980 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
981 now, not only CONST_INT and CONST_DOUBLE.
982 (output_movqi): Use output_reload_in_const.
983 (output_reload_inhi): Ditto.
984 (output_reload_insisf): Move assertion to output_reload_in_const.
985 (avr_out_reload_inpsi): Ditto.
986
5366b186
NS
9872011-11-07 Nathan Sidwell <nathan@acm.org>
988
989 * gcov.c (object_summary): Replace with ...
990 (object_runs): ... this.
991 (process_file): Remove functions with no data.
992 (generate_results): Ignore files with no lines.
993 (release_function): New helper, broken out of ...
994 (release_structures): ... here. Use it.
995 (read_count_file): Adjust for new data file format.
996 (output_lines): Use object_runs.
997 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
998 (struct gcov_ctr_info): Move definition.
999 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
1000 trailing array.
1001 (struct gcov_info): Add merge function array, remove mask and
1002 counts. Trailing array is array of pointers to function info.
1003 * coverage.c (struct function_list): Replace counter numbers with
1004 counter arrays. Add fndecl field. GTYify.
1005 (counts_entry): Remove chain workspace.
1006 (functions_head): GTYify.
1007 (prg_n_ctrs): Remove.
1008 (fn_v_ctrs): New.
1009 (tree_ctr_tables): Remove.
1010 (read_counts_file): Cope with blank entries and expect program
1011 summaries before functions. Don't warn on missing entries.
1012 (coverage_counter_alloc): Allocate individual function arrays.
1013 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
1014 for individual function arrays.
1015 (coverage_end_function): GTYify function list object. Finalize
1016 function's counter arrays.
1017 (build_var): New. Create a counter-related variable with
1018 appropriate linkage.
1019 (build_fn_info_type): Adjust for new runtime structure.
1020 (build_fn_info_value): Rename to ...
1021 (build_fn_info): ... here. Build new format data.
1022 (build_ctr_info_type, build_ctr_info_value): Remove.
1023 (build_info_type): New. Build new format data structure.
1024 (build_info): Adjust for new format data.
1025 (create_coverage): Likewise.
1026 * gcov-dump.c (tag_function): Recognize placeholders.
1027
8b42d3de
GJL
10282011-11-07 Georg-Johann Lay <avr@gjlay.de>
1029
1030 * config/avr/constraints.md (Cm2): New constraint for int -2.
1031 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
1032 (*negqihi2): New insn.
1033
7b4d5595
L
10342011-11-07 H.J. Lu <hongjiu.lu@intel.com>
1035
1036 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
5da6a383 1037 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
7b4d5595 1038
aec7ae7d
JJ
10392011-11-07 Jakub Jelinek <jakub@redhat.com>
1040
da80a646
JJ
1041 * config/i386/i386.c (ix86_expand_builtin): If gather mask
1042 argument is known to have all high bits set, pass pc_rtx as
1043 second argument to the expander instead of op0.
1044 * config/i386/sse.md (*avx2_gathersi<mode>_2,
1045 *avx2_gatherdi<mode>_2): New patterns.
1046 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
1047 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
1048 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
1049 _mm256_set1_pd.
1050
aec7ae7d
JJ
1051 PR tree-optimization/50789
1052 * tree-vect-stmts.c (process_use): Add force argument, avoid
1053 exist_non_indexing_operands_for_use_p check if true.
1054 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
1055 STMT_VINFO_GATHER_P.
1056 (gen_perm_mask): New function.
1057 (perm_mask_for_reverse): Use it.
1058 (reverse_vec_element): Rename to...
1059 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
1060 generalize for any permutations.
1061 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
1062 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
1063 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
1064 * doc/tm.texi: Regenerate.
1065 * tree-data-ref.c (initialize_data_dependence_relation,
1066 compute_self_dependence): No longer static.
1067 * tree-data-ref.h (initialize_data_dependence_relation,
1068 compute_self_dependence): New prototypes.
1069 * tree-vect-data-refs.c (vect_check_gather): New function.
5da6a383 1070 (vect_analyze_data_refs): Detect possible gather load data refs.
aec7ae7d
JJ
1071 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
1072 (STMT_VINFO_GATHER_P): Define.
1073 (vect_check_gather): New prototype.
1074 * config/i386/i386-builtin-types.def: Add types for alternate
1075 gather builtins.
1076 * config/i386/sse.md (AVXMODE48P_DI): Remove.
1077 (VEC_GATHER_MODE): Rename mode_attr to...
1078 (VEC_GATHER_IDXSI): ... this.
1079 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
1080 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
1081 instead of <VEC_GATHER_MODE>.
1082 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
5da6a383 1083 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
aec7ae7d
JJ
1084 on src and mask operands.
1085 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
1086 instead of AVXMODE48P_DI.
1087 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
1088 * config/i386/i386.c (enum ix86_builtins): Add
1089 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
1090 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
1091 (ix86_init_mmx_sse_builtins): Create those builtins.
1092 (ix86_expand_builtin): Handle those builtins and adjust expansions
1093 of other gather builtins.
1094 (ix86_vectorize_builtin_gather): New function.
1095 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
1096
6f2cc91c
UB
10972011-11-07 Uros Bizjak <ubizjak@gmail.com>
1098
5da6a383 1099 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
6f2cc91c 1100
c750e768
TG
11012011-11-07 Tristan Gingold <gingold@adacore.com>
1102
1103 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
1104 * config/vms/t-vms: Add vms-c.o rule.
1105 * config/vms/vms-c.c: New file.
1106 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
1107 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
1108
ba89fcb6
TG
11092011-11-07 Tristan Gingold <gingold@adacore.com>
1110
1111 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
1112 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
1113 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
1114 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
1115 (SUBTARGET_OS_CPP_BUILTINS): Define.
1116 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
1117 (MASK_RETURN_ADDR): Define in 64 bit mode.
1118 * config/ia64/vms.h: Likewise.
1119 * config/vms/vms.h: New file.
1120 * config/vms/vms64.h: New file.
1121 * config/alpha/vms64.h: Removed.
1122 * config/ia64/vms64.h: Removed.
1123 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
1124 Adjust for above change.
1125
51e674b7
UB
11262011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
1127
1128 PR target/50962
1129 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
1130 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
1131 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
1132 (movdi_internal_rex64): Likewise.
1133
11342011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
b3242a4c
SO
1135
1136 PR rtl-optimization/47698
fabe6a9a 1137 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
b3242a4c 1138
f7a57cdc
TG
11392011-11-07 Tristan Gingold <gingold@adacore.com>
1140
1141 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
1142 New function.
1143 (TARGET_OPTION_INIT_STRUCT): Define.
1144 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
1145 (TARGET_MAX_ANCHOR_OFFSET)
1146 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
1147
e97764b8 11482011-11-06 Quentin Neill <quentin.neill@amd.com>
c0baa6dc 1149
e97764b8 1150 Fix r180999, update ChangeLog
c0baa6dc 1151 * config.gcc: Add f16cintrin.h.
6f2cc91c 1152 * config/i386/f16cintrin.h: Add missing endif.
c0baa6dc 1153
e36c5271
SH
11542011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
1155
1156 * config.gcc (arm*-*-rtemseabi*): New target.
1157 * config/arm/rtems-eabi.h: New.
1158 * config/arm/t-rtems-eabi: New.
1159
6e25d659
DM
11602011-11-06 David S. Miller <davem@davemloft.net>
1161
1162 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
1163 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
1164 *zero_extend_v8qi_<P:mode>_insn,
1165 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
1166 and vec_duplicate instead of using an UNSPEC.
1167
d85087f6
AM
11682011-11-07 Alan Modra <amodra@gmail.com>
1169
1170 PR target/30282
1171 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
1172 blockage for ABI_V4.
1173
c5219bb0
DK
11742011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
1175
1176 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
1177 libgcj version bump.
1178 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1179
43c8a043
EB
11802011-11-06 Eric Botcazou <ebotcazou@adacore.com>
1181
1182 * gcse.c: Adjust outdated comments throughout.
1183 (struct mem_conflict_info): New structure.
1184 (mems_conflict_for_gcse_p): Use it to communicate with caller.
1185 (load_killed_in_block_p): Pass it to note_stores.
1186 (hash_expr): Remove superfluous line break.
1187 (hash_scan_set): Rename PAT parameter into SET.
1188 (hash_scan_insn): Reorder cases.
1189 (canon_list_insert): Fix long line.
1190 (edge_list): Delete.
1191 (prune_expressions): Rename E local variable into EXPR.
1192 (compute_pre_data): Return struct edge_list * object.
1193 (pre_expr_reaches_here_p_work): Fix formatting.
1194 (process_insert_insn): Move around comment.
1195 (pre_edge_insert): Fix long line.
1196 (pre_insert_copies): Likewise.
1197 (gcse_emit_move_after): Swap SRC and DEST parameters.
1198 (pre_delete): Adjust call to gcse_emit_move_after.
1199 (pre_gcse): Take struct edge_list * parameter. Fix long line.
1200 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
1201 Use a local list of edges.
1202 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
1203 (pre_ldst_expr_hash): Fix long line.
1204 (free_ldst_mems): Rename into...
1205 (free_ld_motion_mems): ...this.
1206 (first_ls_expr): Delete.
1207 (next_ls_expr): Likewise.
1208 (print_ldst_list): Do not use above two functions.
1209 (simple_mem): Adjust interface.
1210 (compute_ld_motion_mems): Fix formatting.
1211 (update_ld_motion_stores): Reuse local variable.
1212
d19fa6b5
JM
12132011-11-06 Joseph Myers <joseph@codesourcery.com>
1214
1215 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
1216 specifiers.
1217 (build_null_declspecs): Initialize align_log and alignas_p fields.
1218 (declspecs_add_alignas): New.
1219 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
1220 (c_parser_declspecs): Handle _Alignas specifiers.
1221 (c_parser_alignas_specifier): New.
1222 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
1223 Diagnose _Alignof (expression).
6f2cc91c 1224 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
d19fa6b5
JM
1225 (declspecs_add_alignas): Declare.
1226 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
1227 * ginclude/stdalign.h: New.
1228 * Makefile.in (USER_H): Add stdalign.h.
1229
9e582b1d 12302011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
9e582b1d
JR
1231
1232 * regset.h (fixed_reg_set_regset): Declare.
1233 * dse.c: Include regset.h .
1234 (struct insn_info): Add member fixed_regs_live.
1235 (note_add_store_info): New typedef.
1236 (note_add_store): New function.
6f2cc91c 1237 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
9e582b1d
JR
1238 Use gen_add3_insn / gen_move_insn.
1239 Check new insn for unwanted clobbers before emitting it.
1240 (check_for_inc_dec): Rename to...
1241 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
1242 parameter. Changed all callers in file.
1243 (check_for_inc_dec, copy_fixed_regs): New functions.
1244 (scan_insn): Set fixed_regs_live field of insn_info.
1245 * rtl.h (check_for_inc_dec): Update prototype.
1246 * postreload.c (reload_cse_simplify): Take new signature of
1247 check_ind_dec into account.
1248 * reginfo.c (fixed_reg_set_regset): New variable.
1249 (init_reg_sets_1): Initialize it.
1250
4a7ab00c
JJ
12512011-11-06 Jakub Jelinek <jakub@redhat.com>
1252
1253 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
1254 any user labels.
1255
50bbeefb
JDA
12562011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1257
1258 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
1259 Remove dependence of declaration and target define on definition of
1260 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
1261
86951993
AM
12622011-11-06 Andrew Macleod <amacleod@redhat.com>
1263 Richard Henderson <rth@redhat.com>
1264 Aldy Hernandez <aldyh@redhat.com>
1265
1266 Merged from cxx-mem-model.
1267
1268 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
1269 * coretypes.h (enum memmodel): New. enumerated memory model type.
1270 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
1271 * genopinit,c (optabs): Add atomic direct optab handlers.
1272 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
1273 * builtin-types.def (BT_CONST_VOLATILE_PTR,
1274 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
1275 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
1276 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
1277 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
1278 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
1279 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
1280 * expr.h (expand_atomic_*): Add prototypes.
1281 (expand_{bool,val}_compare_and_swap): Remove prototypes.
1282 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
1283 parameters.
1284 * common.opt (Winvalid-memory-model): New warning flag.
1285 (finline-atomics): New. Flag to disable atomic inlining.
1286 * params.h (ALLOW_LOAD_DATA_RACES): New.
1287 (ALLOW_PACKED_LOAD_DATA_RACES): New.
1288 (ALLOW_PACKED_STORE_DATA_RACES): New.
1289 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
1290 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
1291 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
1292 * builtins.c (is_builtin_name): Handle __atomic.
1293 (get_memmodel): New. Extract memory model.
1294 (expand_expr_force_mode): New. Factor out common code for ensuring an
1295 integer argument is in the proper mode.
1296 (expand_builtin_sync_operation): Remove ignore param. Always call
1297 expand_atomic_fetch_op instead of the old expanders.
1298 (expand_builtin_compare_and_swap,
1299 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
1300 call atomic expanders instead of sync expanders.
1301 (expand_builtin_sync_lock_release): Call atomic_store expander.
1302 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
1303 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
1304 (expand_builtin_atomic_exchange): New.
1305 (fold_builtin_atomic_always_lock_free,
1306 expand_builtin_atomic_always_lock_free,
1307 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
1308 New.
1309 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
1310 expand_builtin_atomic_signal_fence): New.
1311 (expand_builtin_mem_signal_fence): New.
1312 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
1313 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
1314 * optabs.h (DOI_atomic_*): Define new atomics.
1315 (atomic_*_optab): Define.
1316 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
1317 prototypes.
1318 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
1319 (expand_sync_lock_test_and_set): Remove.
1320 (expand_atomic_load, expand_atomic_store): New.
d85087f6 1321 (expand_atomic_exchange): New.
86951993
AM
1322 (expand_atomic_compare_and_swap): New. Implements
1323 atomic_compare_exchange via compare and swap.
1324 (struct atomic_op_functions): Opcode table struct for fetch ops.
1325 (get_atomic_op_for_code): New. Return an opcode table entry.
1326 (maybe_emit_op): New. Try to emit a fetch op.
1327 (expand_atomic_fetch_op): New.
1328 (expand_val_compare_and_swap_1): Remove.
1329 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
1330 (expand_atomic_compare_and_swap): Rename from
1331 expand_atomic_compare_exchange. Rewrite to return both success and
1332 oldval return values; expand via both atomic and sync optabs.
1333 (can_compare_and_swap_p): New.
1334 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
1335 (maybe_gen_insn): Handle 7 and 8 operands.
1336 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
1337 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
1338 builtins instead of __sync builtins.
1339 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
1340 * doc/extend.texi: Document __atomic built-in functions.
1341 * doc/invoke.texi: Document data race parameters.
1342 * doc/md.texi: Document atomic patterns.
1343 * config/i386/i386.md (UNSPEC_MOVA): New.
1344 (UNSPECV_CMPXCHG): Split into ...
1345 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
1346 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
1347 * config/i386/sync.md (ATOMIC): New mode iterator.
1348 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
1349 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
1350 (mem_thread_fence): Rename from memory_barrier.
1351 Handle the added memory model parameter.
1352 (mfence_nosse): Rename from memory_barrier_nosse.
1353 (sync_compare_and_swap<CASMODE>): Split into ...
1354 (atomic_compare_and_swap<SWI124>): this and ...
1355 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
1356 (atomic_compare_and_swap_single<SWI>): Rename from
1357 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
1358 (atomic_compare_and_swap_double<DCASMODE>): Rename from
1359 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
1360 (*atomic_compare_and_swap_doubledi_pic): Rename from
1361 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
1362 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
1363 model parameter.
1364 (*atomic_fetch_add_cmp<SWI>): Similarly.
1365 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
1366 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
1367 (sync_lock_test_and_set<SWI>): Merge with ...
1368 (atomic_exchange<SWI>): ... this.
1369
a7a296ab
RG
13702011-11-6 Richard Guenther <rguenther@suse.de>
1371
5da6a383 1372 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
a7a296ab 1373
f7e531cf
IR
13742011-11-06 Ira Rosen <ira.rosen@linaro.org>
1375
1376 * tree-vectorizer.h (vectorizable_condition): Add argument.
1377 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
1378 in SLP. Update calls to vectorizable_condition.
1379 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
1380 the arguments. Pass it to vect_is_simple_use_1.
1381 (vectorizable_condition): Add slp_node to the arguments. Support
1382 vectorization of basic blocks. Fail for reduction in SLP. Update
1383 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
1384 call vect_get_slp_defs to get vector operands.
1385 (vect_analyze_stmt): Update calls to vectorizable_condition.
1386 (vect_transform_stmt): Likewise.
1387 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
1388 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
1389 def stmts.
1390 (vect_build_slp_tree): Handle COND_EXPR.
1391 (vect_analyze_slp_instance): Push pattern statements to root node.
1392 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
1393
79cad86d
DM
13942011-11-05 David S. Miller <davem@davemloft.net>
1395
1396 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
1397 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
1398 (*zero_extend_v8qi_<P:mode>_insn,
1399 *zero_extend_v4hi_<P:mode>_insn): New insns.
1400 * config/sparc/sparc.c (vector_init_move_words,
1401 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
1402 sparc_expand_vector_init_vis1): New functions.
1403 (vector_init_bshuffle): Rewrite to handle more cases and make use
1404 of locs[] array prepared by vector_init_prepare_elts.
1405 (vector_init_fpmerge, vector_init_faligndata): Delete.
1406 (sparc_expand_vector_init): Rewrite using new infrastructure.
1407
feeeff5c
JR
14082011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
1409
1410 * config.gcc (epiphany-*-*): New architecture.
1411 (epiphany-*-elf): New configuration.
1412 * config/epiphany, common/config/epiphany : New directories.
1413 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
1414 (interrupt attribute): Add Epiphany.
1415 (long_call, short_call attribute): Add Epiphany.
1416 * doc/invoke.texi (Options): Add Epiphany options.
1417 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
1418 * doc/install.texi (Options specification):
1419 Add --with-stack-offset=@var{num} description.
1420 (host/target specific issues): Add epiphany-*-elf.
1421 * doc/contrib.texi (Contributors): Mention Epiphany port.
1422
5619e52c
JJ
14232011-11-05 Jakub Jelinek <jakub@redhat.com>
1424
1425 PR tree-optimization/50693
1426 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
1427 non-forced user labels.
1428 (gimple_merge_blocks): Turn non-forced user labels into
1429 debug bind stmt with the label as first operand and reset value.
1430 (gimple_duplicate_bb): Don't duplicate label debug stmts.
1431 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1432 * final.c (final_scan_insn): Likewise.
1433 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
1434 * var-tracking.c (debug_label_num): New variable.
1435 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
1436 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
1437 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
1438 NOTE_INSN_DELETED_DEBUG_LABEL.
1439 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
1440 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
1441 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
1442 * gengtype.c (adjust_field_rtx_def): Likewise.
1443 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
1444 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
1445 if their are at the end of function and nop hasn't been emitted.
1446 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
1447
8eee318f
GJL
14482011-11-05 Georg-Johann Lay <avr@gjlay.de>
1449
1450 PR rtl-optimization/50448
1451 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
1452 appear in SET_DEST.
1453
da103f5a 14542011-11-05 Peter Dufault <dufault@hda.com>,
08f2c4db 1455 Sebastian Huber <sebastian.huber@embedded-brains.de>
da103f5a
PD
1456
1457 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1458 Extend rs6000_spe handling.
1459
bce15ee8
RC
14602011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
1461
1462 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
1463 Remove -mcpu=601 multilib.
1464 Remove -Dmpc8260 multilib.
1465 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
79cad86d 1466 on E500 targets.
bce15ee8 1467
87ca01b7
QN
14682011-11-05 Quentin Neill <quentin.neill@amd.com>
1469
1470 Piledriver f16cintrin.h fix.
1471 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
e97764b8
QN
1472 * config/i386/immintrin.h: Include f16cintrin.h.
1473 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
1474
87ca01b7 1475
cf9e9959
EB
14762011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1477
1478 PR c++/50608
1479 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
1480 to fold_offsetof.
1481 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
1482
14832011-11-04 Alan Modra <amodra@gmail.com>
c62c5441
AM
1484
1485 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
1486 * print-rtl.c (print_rtx): Don't segfault on negative regno.
1487
cf9e9959 14882011-11-04 David S. Miller <davem@davemloft.net>
7a83e5bc
DM
1489
1490 PR target/49965
1491 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
1492 fact that sparc_emit_float_lib_cmp modifies the comparison in
1493 operands[1].
1494
08f2c4db 14952011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
4ce7e3a9
RC
1496
1497 * config/lm32/t-rtems: New.
1498 * config.gcc (lm32-*-rtems*): Add t-rtems.
1499
a5c037e2
EB
15002011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1501
1502 PR target/50979
1503 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
1504
e98925f6
JL
15052011-11-04 Jiangning Liu <jiangning.liu@arm.com>
1506
1507 PR rtl-optimization/38644
1508 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
1509 for epilogue having stack adjustment.
1510
e4fe948a
GJL
15112011-11-04 Georg-Johann Lay <avr@gjlay.de>
1512
1513 PR target/50931
1514 * config/avr/avr-modes.def: New file defining PSImode.
1515 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
1516 __UINT24_MAX__): New built-in defines.
1517 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
1518 ashlpsi, ashrpsi, lshrpsi.
267e9707 1519 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
e4fe948a
GJL
1520 (MOVMODE): New mode iterator.
1521 (movpsi): New expander.
1522 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
1523 (*reload_inpsi, *movpsi): New insns.
1524 (*reload_inpsi): New RTL peephole.
1525 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
1526 *addpsi3_sign_extend.hi): New insns.
1527 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
1528 *subpsi3_sign_extend.hi): New insns.
1529 (divmodpsi4, udivmodpsi4): New define insn-and-split.
1530 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
1531 (andpsi3, iorpsi3, xorpsi3): New insns.
1532 (*rotlpsi2.1, *rotlpsi2.23): New insns.
1533 (*rotw<mode>): Insn condition only allow even-sized modes.
1534 (*rotb<mode>): Insn condition allows odd-sized modes.
1535 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
1536 (negpsi2, one_cmplpsi2): New insns.
1537 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
1538 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
1539 insn-and-splits.
1540 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
1541 (cbranchpsi4): New expander.
1542 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
1543 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
1544 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
1545 avr_out_reload_inpsi): New prototypes.
1546
1547 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
1548 (avr_scalar_mode_supported_p): ...this new static function.
1549 (avr_asm_len): Always return "".
1550 (avr_out_load_psi, avr_out_store_psi): New static functions.
1551 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
1552 (avr_out_tstpsi): New function.
1553 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
1554 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
1555 (avr_simplify_comparison_p): Ditto.
1556 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
1557 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
1558 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
1559 (avr_rtx_costs_1): Report PSI costs.
1560 (avr_libcall_value): Handle odd-sized parameters.
1561 (avr_init_builtin_int24): New static function to define built-in
1562 24-bit types __int24 and __uint24.
1563 (avr_init_builtins): Use it.
7a83e5bc 1564
e4fe948a 15652011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
79598127
TD
1566
1567 PR target/50989
1568 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
1569 support for VFP floating point model.
1570
872b942a
TG
15712011-11-04 Tristan Gingold <gingold@adacore.com>
1572
1573 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
1574
ba65ae42
IR
15752011-11-04 Ira Rosen <ira.rosen@linaro.org>
1576
1577 Unrevert:
1578 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
1579
1580 PR tree-optimization/50730
1581 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
1582 analysis if encountered unsupported data-ref.
1583
4a00c761
JJ
15842011-11-04 Jakub Jelinek <jakub@redhat.com>
1585
635c6321
JJ
1586 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
1587 function.
1588 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
1589 New prototype.
1590 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
1591 For floatunsv8siv8sf2 require TARGET_AVX2.
1592
2f2da9e9
JJ
1593 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
1594 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
1595 signalling comparison instead of non-signalling. Store into
1596 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
1597 subtracted and 0 otherwise.
1598 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
1599 Adjust prototype.
1600 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
1601 already for TARGET_SSE2. Xor in vector initialized by
1602 ix86_expand_adjust_ufix_to_sfix_si at the end.
1603 (vec_pack_ufix_trunc_<mode>): Likewise.
1604
4a00c761
JJ
1605 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
1606 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
1607 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
1608 vectorizable_type_demotion and vectorizable_type_promotion did.
1609 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
1610 is {,un}signed {char,short}.
1611 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
1612 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
1613 Push vec_dest back to the vec_dsts vector at the end.
1614 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
1615 one step. Removed multi_step_cvt, vec_dsts, slp_node and
1616 prev_stmt_info arguments, add vec_dest argument. Push always
1617 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
1618 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
1619 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
1620 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
1621 vectorizable_type_promotion. Call vectorizable_conversion even
1622 for SLP bb vectorization.
1623 (vect_transform_stmt): Call vectorizable_conversion instead of
1624 vectorizable_type_demotion and vectorizable_type_promotion.
1625 (supportable_widening_operation): Clear *multi_step_cvt first,
1626 simplify c1/c2 computation, free *interm_types vector on failure.
1627 (supportable_narrowing_operation): Clear *multi_step_cvt first,
1628 free *interm_types vector on failure, handle multi-step
1629 FIX_TRUNC_EXPR.
1630
735f469b
TG
16312011-11-04 Tristan Gingold <gingold@adacore.com>
1632
1633 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
1634 argument. Conditionally generate crash debug info. Adjust
1635 for alpha_funcs_tree removal.
1636 (machine_function): Add links field.
1637 (alpha_start_function): Conditionally generate crash debug info.
1638 (alpha_end_function): Adjust call to alpha_write_linkage.
1639 (alpha_funcs): Remove.
1640 (links_kind): Remove.
1641 (alpha_links): Remove num, target and lkind field. Add func field.
1642 (alpha_links_tree): Remove.
1643 (alpha_funcs_tree): Remove.
1644 (alpha_need_linkage): Remove.
1645 (alpha_use_linkage): Change prototype. Adjust.
1646 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
1647 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
1648 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
1649 (alpha_need_linkage): Remove.
1650 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
1651 Adjust calls to alpha_need_linkage.
1652
95d93adb
UB
16532011-11-03 Uros Bizjak <ubizjak@gmail.com>
1654
1655 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
1656
177b1d35
UB
16572011-11-03 Uros Bizjak <ubizjak@gmail.com>
1658
1659 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
1660 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
1661 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
1662
e04d8a63
RO
16632011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1664
1665 PR target/50978
1666 * config/arm/t-bpabi: New file.
1667 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
1668 arm*-*-linux-*eabi.
1669 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
1670 arm*-*-uclinux*eabi.
1671 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
1672 for arm*-*-eabi*.
1673
e9411247
MM
16742011-11-03 Michael Matz <matz@suse.de>
1675
1676 PR bootstrap/50857
1677 * configure.ac: Check for -fno-exceptions -fno-rtti.
1678 * configure: Regenerate.
1679 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
1680 (ALL_CXXFLAGS): Use it.
1681
af8d2409
UB
16822011-11-03 Uros Bizjak <ubizjak@gmail.com>
1683
1684 * config/i386/i386.md: Use {} for multi-line preparation statements.
1685
12e55ac7
EB
16862011-11-03 Eric Botcazou <ebotcazou@adacore.com>
1687
1688 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
1689 (movtf_insn_sp32): ...this.
1690 (movtf_insn_sp64_no_fpu): Consolidate into...
1691 (movtf_insn_sp64): ...this.
1692 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
1693 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
1694
2acb1a01
TG
16952011-11-03 Tristan Gingold <gingold@adacore.com>
1696
1697 * config/vms/vms.c (vms_patch_builtins): Fix typo.
1698
52a35ef7
RG
16992011-11-03 Richard Guenther <rguenther@suse.de>
1700
1701 PR lto/44965
1702 * lto-opts.c: Re-implement.
1703 * lto-streamer.h (lto_register_user_option): Remove.
1704 (lto_read_file_options): Likewise.
1705 (lto_reissue_options): Likewise.
1706 (lto_clear_user_options): Likewise.
1707 (lto_clear_file_options): Likewise.
1708 * opts-global.c (post_handling_callback): Remove.
1709 (set_default_handlers): Do not set post_handling_callback.
1710 (decode_options): Remove LTO specific code.
1711 * lto-wrapper.c (merge_and_complain): New function.
1712 (run_gcc): Read all input file options and
1713 prepend a merged set before the linker driver options.
1714 * gcc.c (driver_post_handling_callback): Remove.
1715 (set_option_handlers): Do not set post_handling_callback.
1716 * opts-common.c (handle_option): Do not call post_handling_callback.
1717 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
1718
fa66fc02
RG
17192011-11-03 Richard Guenther <rguenther@suse.de>
1720
1721 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
1722
290ebcb7
MJ
17232011-11-03 Martin Jambor <mjambor@suse.cz>
1724
1725 * ipa-prop.c (type_change_info): New fields offset, object,
1726 known_current_type and multiple_types_encountered.
1727 (extr_type_from_vtbl_ptr_store): New function.
1728 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
e9411247 1729 the result is different from the previous one.
290ebcb7
MJ
1730 (detect_type_change): Renamed to detect_type_change_1. New parameter
1731 comp_type. Set up new fields in tci, build known type jump
1732 functions if the new type can be identified.
1733 (detect_type_change): New function.
1734 * tree.h (DECL_CONTEXT): Comment new use.
1735
969d578c
RG
17362011-11-03 Richard Guenther <rguenther@suse.de>
1737
1738 PR lto/48217
1739 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
1740 decode an encoded literal '.
1741
4f44e38a
TG
17422011-11-03 Tristan Gingold <gingold@adacore.com>
1743
1744 * collect2.c (main): Add support of -f (response file) on AIX.
1745
d092494c
IR
17462011-11-03 Ira Rosen <ira.rosen@linaro.org>
1747
1748 PR tree-optimization/50912
1749 * tree-vectorizer.h (slp_void_p): New.
1750 (struct _slp_tree): Replace left and right with children. Update
1751 documentation.
1752 (struct _slp_oprnd_info): New.
1753 (vect_get_vec_defs): Declare.
1754 (vect_get_slp_defs): Update arguments.
1755 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
1756 vect_get_vec_defs instead of vect_get_slp_defs.
1757 (vectorizable_reduction): Likewise.
1758 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
1759 Update call to vect_get_slp_defs.
1760 (vectorizable_conversion): Update call to vect_get_vec_defs.
1761 (vectorizable_assignment, vectorizable_shift,
1762 vectorizable_operation): Likewise.
1763 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
1764 vect_get_slp_defs.
1765 (vectorizable_type_promotion, vectorizable_store): Likewise.
1766 (vect_analyze_stmt): Fix typo.
1767 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
1768 (vect_print_slp_tree, vect_mark_slp_stmts,
1769 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1770 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1771 vect_schedule_slp_instance): Likewise.
1772 (vect_create_new_slp_node): New.
1773 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
1774 (vect_get_and_check_slp_defs): Pass information about defs using
1775 oprnds_info, allow any number of operands.
1776 (vect_build_slp_tree): Likewise. Update calls to
1777 vect_get_and_check_slp_defs. Fix comments.
1778 (vect_analyze_slp_instance): Move node creation to
1779 vect_create_new_slp_node.
1780 (vect_get_slp_defs): Allow any number of operands.
1781
d8c866e5
PB
17822011-11-02 Peter Bergner <bergner@vnet.ibm.com>
1783 Iain Sandoe <iains@gcc.gnu.org>
1784
1785 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
1786 (get_ppc476_thunk_name): Use it.
1787 (rs6000_code_end): Likewise.
1788 (macho_branch_islands): Fix typo.
1789
25339f10
JM
17902011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1791 Jason Merrill <jason@redhat.com>
1792
1793 PR c++/50810
1794 * configure.ac: Add -Wno-narrowing to warning options.
1795 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1796
19e5fa42
EB
17972011-11-02 Eric Botcazou <ebotcazou@adacore.com>
1798
1799 PR target/50945
1800 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
1801 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
1802 (movdf_insn_sp64): Likewise.
1803 (DFmode splitter): Do not test TARGET_FPU.
1804 (movtf_insn_sp32): Reindent constraints.
1805 (movtf_insn_sp32_no_fpu): Likewise.
1806 (movtf_insn_sp64): Likewise.
1807 (movtf_insn_sp64_hq): Likewise.
1808 (movtf_insn_sp64_no_fpu): Likewise.
1809
2d4e2a68
PC
18102011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1811
1812 PR c++/50956
1813 * builtins.c (fold_builtin_memchr): Fix cast.
1814
67266ebb
TJ
18152011-11-02 Teresa Johnson <tejohnson@google.com>
1816
1817 * config/i386/predicates.md (promotable_binary_operator): Add minus
1818 to the list of promotable operators.
1819
5d1c8e77
RO
18202011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1821
1822 * gthr-single.h, gthr.h: Move to ../libgcc.
1823 * gthr-aix.h: Move to ../libgcc/config/rs6000.
1824 * gthr-dce.h: Move to ../libgcc/config/pa.
1825 * gthr-lynx.h: Move to ../libgcc/config.
1826 * gthr-mipssde.h: Move to ../libgcc/config/mips.
1827 * gthr-posix.h: Move to ../libgcc/config.
1828 * gthr-rtems.h: Likewise.
1829 * gthr-tpf.h: Move to ../libgcc/config/s390.
1830 * gthr-vxworks.h: Move to ../libgcc/config.
1831 * gthr-win32.h: Move to ../libgcc/config/i386.
1832 * configure.ac (gthread_flags): Remove
1833 (gthr-default.h): Don't create.
1834 (thread_file): Don't substitute.
1835 * configure: Regenerate.
1836 * Makefile.in (GCC_THREAD_FILE): Remove.
1837 (GTHREAD_FLAGS): Remove.
1838 (libgcc.mvars): Remove GTHREAD_FLAGS.
1839 * config/t-vxworks (EXTRA_HEADERS): Remove.
1840
852b75ed
RO
18412011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842 Paolo Bonzini <bonzini@gnu.org>
1843
af8d2409 1844 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
852b75ed
RO
1845 * configure: Regenerate.
1846 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
1847 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
1848 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
1849 (clean): Remove libgcc_tm.h
1850 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
1851 * config.gcc (libgcc_tm_file): Remove.
1852 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
1853 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
1854 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
1855 (avr-*-rtems*): Likewise.
1856 (avr-*-*): Likewise.
1857 (frv-*-elf): Likewise.
1858 (frv-*-*linux*): Likewise.
1859 (h8300-*-rtems*): Likewise.
1860 (h8300-*-elf*): Likewise.
1861 (i[34567]86-*-darwin*): Likewise.
1862 (x86_64-*-darwin*): Likewise.
1863 (rx-*-elf*): Likewise.
1864 (tic6x-*-elf): Likewise.
1865 (tic6x-*-uclinux): Likewise.
1866 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
1867
f9989b51
RO
18682011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1869
1870 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
1871 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
1872 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
1873 (INCLUDES_FOR_TARGET): Remove.
1874 (LIBGCC2_CFLAGS): Don't export.
1875 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
1876 Remove.
1877 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
1878 (libgcc.mvars): Likewise.
1879 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
1880 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
1881 TARGET_LIBGCC2_CFLAGS.
1882 Emit GTHREAD_FLAGS.
1883 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
1884 * config/darwin-64.c: Move to ../libgcc/config.
1885 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
1886 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
1887 config/udivmodsi4.c: Move to ../libgcc/config.
1888 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
1889 * config/memcmp.c, config/memcpy.c, config/memmove.c,
1890 config/memset.c: Move to ../libgcc/config.
1891 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
1892 * config/t-freebsd: Remove.
1893 * config/t-freebsd-thread: Move to ../libgcc/config.
1894 * config/t-libgcc-pic: Move to ../libgcc/config.
1895 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
1896 * config/t-linux: Remove.
1897 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
af8d2409 1898 Remove.
f9989b51
RO
1899 * config/t-openbsd-thread: Move to ../libgcc/config.
1900 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
1901 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
1902 * config/t-svr4: Remove.
1903 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
1904 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
1905 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
1906 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
1907 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
af8d2409 1908 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
f9989b51
RO
1909 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
1910 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
1911 config/arm/fp16.c, config/arm/linux-atomic.c,
1912 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
1913 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
1914 (TARGET_LIBGCC2_CFLAGS): Remove.
1915 * config/arm/t-bpabi, config/arm/t-linux: Remove.
1916 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
1917 (LIB2FUNCS_STATIC_EXTRA): Remove.
1918 * config/arm/t-netbsd: Remove.
1919 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
1920 (TARGET_LIBGCC2_CFLAGS): Remove.
1921 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
1922 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
1923 (TARGET_LIBGCC2_CFLAGS): Remove.
1924 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
1925 (LIBGCC, INSTALL_LIBGCC): Remove.
1926 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
1927 * config/bfin/t-bfin-linux: Likewise.
1928 * config/bfin/t-bfin-uclinux: Likewise.
1929 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1930 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1931 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1932 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
af8d2409 1933 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
f9989b51
RO
1934 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
1935 * config/cris/arit.c: Move to ../libgcc/config/cris.
1936 * config/cris/cris_abi_symbol.c: Remove.
1937 * config/cris/cris.h: Remove obsolete comment.
1938 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
1939 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
1940 ($(LIB2FUNCS_EXTRA)): Remove.
1941 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
1942 (LIBGCC): Remove.
1943 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1944 * config/fr30/t-fr30: Remove.
1945 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
1946 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
1947 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
1948 to ../libgcc/config/frv.
1949 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1950 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
1951 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
1952 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1953 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
1954 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
1955 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
1956 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
1957 (LIBGCC, INSTALL_LIBGCC): Remove.
1958 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
1959 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
1960 * config/i386/t-cygwin: Remove.
1961 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1962 (LIB2FUNCS_EXCLUDE): Remove.
1963 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
1964 (LIBGCC, INSTALL_LIBGCC): Remove.
1965 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
1966 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
1967 * config/i386/t-mingw-w32: Likewise.
1968 * config/i386/t-mingw-w64: Likewise.
1969 * config/i386/t-openbsd: Likewise.
1970 * config/i386/t-nto: Remove.
1971 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
1972 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
1973 (quadlib.c): Remove.
1974 * config/ia64/t-ia64: Remove comment.
1975 * config/iq2000/lib2extra-funcs.c: Move to
1976 ../libgcc/config/iq2000/lib2funcs.c.
1977 * config/iq2000/t-iq2000: Remove.
1978 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
1979 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
1980 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
1981 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
1982 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1983 (INSTALL_LIBGCC): Remove.
1984 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
1985 * config/m68k/t-floatlib: Remove.
1986 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
1987 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
1988 Fix typo.
1989 (LIBGCC, INSTALL_LIBGCC): Remove.
1990 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
1991 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
1992 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
1993 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1994 (INSTALL_LIBGCC): Remove.
1995 * config/mips/t-isa3264: Likewise.
1996 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
1997 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
1998 (INSTALL_LIBGCC): Remove.
1999 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
2000 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
2001 (INSTALL_LIBGCC): Remove.
2002 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
2003 (LIB2FUNCS_STATIC_EXTRA): Remove.
2004 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
2005 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
2006 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
2007 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
2008 ../libgcc/config/pa.
2009 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
2010 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
2011 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
2012 * config/pa/t-linux, config/pa/t-linux64: Remove.
2013 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
2014 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
2015 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
2016 Remove.
2017 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
2018 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
2019 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
2020 * config/rs6000/crtresfpr.asm: Move to
2021 ../libgcc/config/rs6000/crtresfpr.S.
2022 * config/rs6000/crtresgpr.asm: Move to
2023 ../libgcc/config/rs6000/crtresgpr.S.
2024 * config/rs6000/crtresxfpr.asm: Move to
2025 ../libgcc/config/rs6000/crtresxfpr.S.
2026 * config/rs6000/crtresxgpr.asm: Move to
2027 ../libgcc/config/rs6000/crtresxgpr.S.
2028 * config/rs6000/crtsavfpr.asm: Move to
2029 ../libgcc/config/rs6000/crtsavfpr.S.
2030 * config/rs6000/crtsavgpr.asm: Move to
2031 ../libgcc/config/rs6000/crtsavgpr.S.
2032 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
2033 * config/rs6000/darwin-fpsave.asm: Move to
2034 ../libgcc/config/rs6000/darwin-fpsave.S.
2035 * config/rs6000/darwin-gpsave.asm: Move to
2036 ../libgcc/config/rs6000/darwin-gpsave.S.
2037 * config/rs6000/darwin-tramp.asm: Move to
2038 ../libgcc/config/rs6000/darwin-tramp.S.
2039 * config/rs6000/darwin-vecsave.asm: Move to
2040 ../libgcc/config/rs6000/darwin-vecsave.S.
2041 * config/rs6000/darwin-world.asm: Move to
2042 ../libgcc/config/rs6000/darwin-world.S.
2043 * config/rs6000/e500crtres32gpr.asm: Move to
2044 ../libgcc/config/rs6000/e500crtres32gpr.S.
2045 * config/rs6000/e500crtres64gpr.asm: Move to
2046 ../libgcc/config/rs6000/e500crtres64gpr.S.
2047 * config/rs6000/e500crtres64gprctr.asm: Move to
2048 ../libgcc/config/rs6000/e500crtres64gprctr.S.
2049 * config/rs6000/e500crtrest32gpr.asm: Move to
2050 ../libgcc/config/rs6000/e500crtrest32gpr.S.
2051 * config/rs6000/e500crtrest64gpr.asm: Move to
2052 ../libgcc/config/rs6000/e500crtrest64gpr.S.
2053 * config/rs6000/e500crtresx32gpr.asm: Move to
2054 ../libgcc/config/rs6000/e500crtresx32gpr.S.
2055 * config/rs6000/e500crtresx64gpr.asm: Move to
2056 ../libgcc/config/rs6000/e500crtresx64gpr.S.
2057 * config/rs6000/e500crtsav32gpr.asm: Move to
2058 ../libgcc/config/rs6000/e500crtsav32gpr.S.
2059 * config/rs6000/e500crtsav64gpr.asm: Move to
2060 ../libgcc/config/rs6000/e500crtsav64gpr.S.
2061 * config/rs6000/e500crtsav64gprctr.asm: Move to
2062 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
2063 * config/rs6000/e500crtsavg32gpr.asm: Move to
2064 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
2065 * config/rs6000/e500crtsavg64gpr.asm: Move to
2066 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
2067 * config/rs6000/e500crtsavg64gprctr.asm: Move to
2068 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
2069 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
2070 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
2071 (TARGET_LIBGCC2_CFLAGS): Remove.
2072 * config/rs6000/t-aix52: Likewise.
2073 * config/rs6000/t-darwin: Remove.
2074 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
2075 (LIB2FUNCS_EXTRA): Remove.
2076 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
2077 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
2078 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
2079 (INSTALL_LIBGCC): Remove.
2080 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
2081 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
2082 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
2083 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
af8d2409
UB
2084 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
2085 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
f9989b51
RO
2086 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
2087 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
2088 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
2089 * config/rs6000/t-vxworks: Remove comment.
2090 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
2091 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
2092 * config/sh/linux-atomic.asm: Move to
2093 ../libgcc/config/sh/linux-atomic.S.
2094 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
2095 * config/sh/t-netbsd: Remove.
2096 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
2097 Remove.
2098 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
2099 * config/sparc/t-leon: Likewise.
2100 * config/sparc/t-leon3: Likewise.
2101 * config/sparc/t-linux64: Likewise.
2102 * config/sparc/t-netbsd64: Fix typo.
2103 Remove comment.
2104 * config/spu/divmodti4.c, config/spu/divv2df3.c,
2105 config/spu/float_disf.c, config/spu/float_unsdidf.c,
2106 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
2107 config/spu/mfc_multi_tag_release.c,
2108 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
2109 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
2110 config/spu/multi3.c: Move to ../libgcc/config/spu.
2111 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
2112 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
2113 (INSTALL_LIBGCC): Remove.
2114 * config/stormy16/stormy16-lib2.c: Move to
2115 ../libgcc/config/stormy16/lib2.c.
2116 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
2117 ../libgcc/config/stormy16/ashlsi3.c.
2118 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
2119 ../libgcc/config/stormy16/ashrsi3.c.
2120 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
2121 ../libgcc/config/stormy16/clzhi2.c.
2122 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
2123 ../libgcc/config/stormy16/cmpsi2.c.
2124 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
2125 ../libgcc/config/stormy16/ctzhi2.c.
2126 * config/stormy16/stormy16-lib2-divsi3.c: Move to
2127 ../libgcc/config/stormy16/divsi3.c.
2128 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
2129 ../libgcc/config/stormy16/ffshi2.c.
2130 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
2131 ../libgcc/config/stormy16/lshrsi3.c.
2132 * config/stormy16/stormy16-lib2-modsi3.c: Move to
2133 ../libgcc/config/stormy16/modsi3.c.
2134 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
2135 ../libgcc/config/stormy16/parityhi2.c.
2136 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
2137 ../libgcc/config/stormy16/popcounthi2.c.
2138 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
2139 ../libgcc/config/stormy16/ucmpsi2.c.
2140 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
2141 ../libgcc/config/stormy16/udivmodsi4.c.
2142 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
2143 ../libgcc/config/stormy16/udivsi3.c.
2144 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
2145 ../libgcc/config/stormy16/umodsi3.c.
2146 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
2147 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
2148 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
2149 * config/xtensa/t-elf: Remove.
2150 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
2151 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
2152 from tmake_file.
2153 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2154 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
2155 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
2156 (*-*-openbsd*): Likewise.
2157 Remove t-openbsd-thread for posix threads.
af8d2409 2158 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
f9989b51
RO
2159 (alpha*-*-freebsd*): Likewise.
2160 (alpha*-*-netbsd*): Likewise.
2161 (alpha*-*-openbsd*): Likewise.
2162 (alpha64-dec-*vms*): Likewise.
2163 (alpha*-dec-*vms*): Likewise.
2164 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
2165 (arm*-*-linux*): Remove t-linux from tmake_file.
2166 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
2167 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
2168 arm*-*-uclinux*eabi.
2169 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
2170 tmake_file for arm*-*-eabi*.
2171 (fr30-*-elf): Remove tmake_file.
2172 (hppa*64*-*-linux*): Remove tmake_file.
2173 (hppa*-*-linux*): Likewise.
2174 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
2175 tmake_file.
2176 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
2177 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
2178 tmake_file.
2179 (i[34567]86-*-elf*): Remove tmake_file.
2180 (x86_64-*-elf*): Likewise.
2181 (i[34567]86-*-nto-qnx*): Likewise.
2182 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
2183 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
2184 from tmake_file if using win32 threads.
2185 (iq2000*-*-elf*): Remove tmake-file.
2186 (microblaze*-linux*): Likewise.
2187 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
2188 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
2189 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
2190 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
2191 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
2192 (xtensa*-*-elf*): Remove tmake_file.
2193
45b86625
RO
21942011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2195
2196 * Makefile.in (LIB1ASMSRC): Don't export.
2197 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
2198 * config/arm/arm.c: Update lib1funcs.asm filename.
2199 * config/arm/linux-eabi.h: Likewise.
2200 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
2201 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
2202 ../libgcc/config/arm.
2203 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
2204 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2205 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
2206 * config/arm/t-bpabi: Likewise.
2207 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2208 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
2209 * config/arm/t-strongarm-elf: Likewise.
2210 * config/arm/t-symbian: Likewise.
2211 * config/arm/t-vxworks: Likewise.
2212 * config/arm/t-wince-pe: Likewise.
2213 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
2214 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
af8d2409 2215 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
45b86625
RO
2216 * config/bfin/t-bfin: Remove.
2217 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2218 * config/bfin/t-bfin-linux: Likewise.
2219 * config/bfin/t-bfin-uclinux: Likewise.
af8d2409 2220 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
45b86625 2221 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
af8d2409 2222 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
45b86625 2223 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
af8d2409 2224 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
45b86625
RO
2225 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2226 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
2227 * config/h8300/lib1funcs.asm: Move to
2228 ../libgcc/config/h8300/lib1funcs.S.
2229 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2230 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
2231 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2232 * config/i386/t-interix: Likewise.
af8d2409 2233 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
45b86625
RO
2234 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
2235 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2236 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
2237 * config/m32c/m32c.c: Update m32c-lib1.S filename.
2238 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
2239 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2240 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
2241 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
2242 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
2243 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
2244 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2245 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
2246 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2247 * config/mips/mips16.S: Move to ../libgcc/config/mips.
2248 * config/mips/t-libgcc-mips16: Remove.
2249 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
2250 * config/pa/milli64.S: Move to ../libgcc/config/pa.
2251 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2252 * config/pa/t-linux64: Likewise.
2253 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
2254 ../libgcc/config/picochip/lib1funcs.S.
2255 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
2256 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
2257 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
2258 * config/sh/sh.h: Update lib1funcs.asm filename.
2259 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
2260 * config/sh/t-netbsd: Likewise.
2261 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
2262 Remove.
2263 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
2264 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
2265 * config/sparc/lb1spl.asm: Remove.
2266 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2267 * config/sparc/t-leon: Likewise.
2268 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
2269 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
2270 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
2271 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
2272 * config/vax/t-linux: Remove.
2273 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
2274 ../libgcc/config/xtensa.
2275 * config/xtensa/lib1funcs.asm: Move to
2276 ../libgcc/config/xtensa/lib1funcs.S.
2277 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
2278 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
2279 (bfin*-*): Likewise.
2280 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
2281 mips/t-libgcc-mips16 from tmake_file.
2282 (mips*-*-linux*): Likewise.
2283 (mips*-sde-elf*): Likewise.
2284 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
2285 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
2286 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
2287 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
2288 (mips-*-elf*, mipsel-*-elf*): Likewise.
2289 (mips64-*-elf*, mips64el-*-elf*): Likewise.
2290 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
2291 (mips*-*-rtems*): Likewise.
2292 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
2293 (vax-*-linux*): Remove vax/t-linux from tmake_file.
2294
5f73c6cc
RO
22952011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2296
2297 * config.gcc (extra_parts): Remove.
2298 (*-*-freebsd*): Remove extra_parts.
2299 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
2300 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
2301 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
2302 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
2303 *-*-netbsdelf[2-9]*.
2304 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
2305 (alpha*-*-linux*): Remove extra_parts.
2306 (alpha*-*-freebsd*): Likewise.
2307 (bfin*-linux-uclibc*): Likewise.
2308 (fr30-*-elf): Likewise.
2309 (moxie-*-elf): Likewise.
2310 (moxie-*-uclinux*): Likewise.
2311 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
2312 (h8300-*-elf*): Likewise.
2313 (hppa*64*-*-hpux11*): Remove extra_parts.
2314 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
2315 tmake_file.
2316 (x86_64-*-elf*): Likewise.
2317 (i[34567]86-*-freebsd*): Remove tmake_file.
2318 (x86_64-*-freebsd*): Likewise.
2319 (x86_64-*-netbsd*): Likewise.
2320 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
2321 t-libc-ok from tmake_file.
2322 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2323 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
af8d2409
UB
2324 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
2325 tmake_file.
5f73c6cc
RO
2326 Remove extra_parts.
2327 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2328 Remove i386/t-crtstuff from tmake_file.
2329 (i[34567]86-*-lynxos*): Likewise.
2330 Remove extra_parts.
2331 (ia64*-*-elf*): Remove extra_parts.
2332 (ia64*-*-freebsd*): Likewise.
2333 (ia64*-*-linux*): Likewise.
2334 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
2335 (m32r-*-elf*): Remove extra_parts.
2336 (m32rle-*-elf*): Likewise.
2337 (m32r-*-rtems*): Likewise.
2338 (m68k-*-elf*, fido-*-elf*): Likewise.
2339 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
2340 (m68k-*-rtems*): Remove extra_parts.
2341 (mep-*-*): Likewise.
2342 (microblaze*-linux*): Likewise.
2343 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
2344 (mips*-*-linux*): Likewise.
2345 (powerpc-*-lynxos*): Likewise.
2346 (s390x-ibm-tpf*): Likewise.
2347 (score-*-elf): Likewise.
2348 Remove tmake_file.
2349 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
2350 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
2351 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
2352 Remove sh/t-superh from tmake_file for sh*-superh-elf.
2353 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
2354 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
2355 (sh-wrs-vxworks): Likewise.
2356 (sparc-*-linux*): Remove extra_parts.
2357 (sparc64-*-linux*): Likewise.
2358 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
2359 (xstormy16-*-elf): Likewise.
2360 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
2361 (am33_2.0-*-linux*): Remove extra_parts.
2362 * configure.ac (extra_parts): Don't substitute.
2363 * configure: Regenerate.
2364 * crtstuff.c: Move to ../libgcc.
2365 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
2366 (EXTRA_PARTS): Remove.
2367 (CRTSTUFF_T_CFLAGS): Remove.
2368 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
2369 (GCC_EXTRA_PARTS): Remove.
2370 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
2371 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
2372 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
2373 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
2374 ($(T)crtbeginT.o): Remove.
2375 * config/alpha/t-vms (EXTRA_PARTS): Remove.
2376 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
2377 * config/alpha/vms-dwarf2.asm: Move to
2378 ../libgcc/config/alpha/vms-dwarf2.S.
2379 * config/alpha/vms-dwarf2eh.asm: Move to
2380 ../libgcc/config/alpha/vms-dwarf2eh.S.
2381 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
2382 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
2383 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
2384 ($(T)crti.o, $(T)crtn.o): Remove.
2385 * config/arm/t-linux: Remove comment.
2386 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
2387 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
2388 ($(T)crti.o, $(T)crtn.o): Remove.
2389 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
2390 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
2391 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
2392 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
2393 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
2394 ($(T)crti.o, $(T)crtn.o): Remove.
2395 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
2396 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
2397 (EXTRA_MULTILIB_PARTS): Remove.
2398 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
2399 EXTRA_MULTILIB_PARTS): Remove.
2400 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
2401 ($(T)crtlibid.o): Remove.
2402 (EXTRA_MULTILIB_PARTS): Remove.
2403 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
2404 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
2405 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
2406 (EXTRA_MULTILIB_PARTS): Remove.
2407 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2408 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
2409 CRTSTUFF_T_CFLAGS_S): Remove.
2410 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
2411 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2412 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
2413 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
2414 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
2415 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
2416 ../libgcc/config/frv.
2417 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
2418 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
2419 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2420 (CRTSTUFF_T_CFLAGS): Remove.
2421 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
2422 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
2423 * config/h8300/t-elf: Remove.
2424 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
2425 Move to ../libgcc/config/i386.
2426 * config/i386/t-crtstuff: Remove.
2427 * config/i386/t-i386elf: Remove.
2428 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2429 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
af8d2409
UB
2430 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
2431 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
5f73c6cc
RO
2432 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
2433 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
2434 * config/ia64/t-vms: Remove.
2435 * config/ia64/vms-crtinit.asm: Move to
2436 ../libgcc/config/ia64/vms-crtinit.S.
2437 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
2438 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
2439 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2440 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
2441 ($(T)crtinit.o, $(T)crtfini.o): Remove.
2442 (m32rx, m32r2): Remove.
2443 (EXTRA_MULTILIB_PARTS): Remove.
2444 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
2445 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
2446 * config/m68k/t-crtstuff: Remove.
2447 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2448 * config/m68k/t-m68kelf: Remove.
2449 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
2450 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
2451 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
2452 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
2453 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2454 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
2455 (EXTRA_MULTILIB_PARTS): Remove.
2456 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
2457 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
2458 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
2459 EXTRA_PARTS): Remove.
2460 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
2461 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
2462 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
2463 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
2464 ($(T)crti.o, $(T)crtn.o): Remove.
2465 (EXTRA_MULTILIB_PARTS): Remove.
2466 * config/mips/t-isa3264: Likewise.
2467 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
2468 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
2469 (CRTSTUFF_T_CFLAGS): Remove.
2470 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
2471 ($(T)crti.o, $(T)crtn.o): Remove.
2472 (EXTRA_MULTILIB_PARTS): Remove.
2473 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
2474 Remove.
2475 ($(T)crti.o, $(T)crtn.o): Remove.
2476 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
2477 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
2478 (EXTRA_MULTILIB_PARTS): Remove.
2479 ($(T)crti.o, $(T)crtn.o): Remove.
2480 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
2481 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
2482 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
2483 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
2484 * config/pa/stublib.c: Move to libgcc/config/pa.
2485 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2486 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
2487 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2488 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2489 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2490 ($(T)libgcc_stub.a): Remove.
2491 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
2492 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
2493 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
2494 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
2495 ($(T)libgcc_stub.a): Remove.
2496 * config/rs6000/eabi-cn.asm: Move to
2497 ../../../libgcc/config/rs6000/eabi-cn.S.
2498 * config/rs6000/eabi-ci.asm: Move to
2499 ../../../libgcc/config/rs6000/eabi-ci.S.
2500 * config/rs6000/sol-ci.asm: Move to
2501 ../../../libgcc/config/rs6000/sol-ci.S.
2502 * config/rs6000/sol-cn.asm: Move to
2503 ../../../libgcc/config/rs6000/sol-cn.S.
2504 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
2505 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2506 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
2507 Remove.
2508 (EXTRA_MULTILIB_PARTS): Remove.
2509 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
2510 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
2511 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
af8d2409 2512 ($(T)ncrtn$(objext)): Remove.
5f73c6cc
RO
2513 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
2514 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2515 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
2516 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
2517 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
2518 * config/score/t-score-elf: Remove.
2519 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
2520 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
2521 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
2522 * config/sh/lib1funcs-4-300.asm: Move to
2523 ../../../libgcc/config/sh/lib1funcs-4-300.S.
2524 * config/sh/lib1funcs-Os-4-200.asm: Move to
2525 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
2526 * config/sh/t-elf: Remove.
2527 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
2528 * config/sh/t-linux64: Remove.
2529 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
2530 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
2531 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
2532 ($(T)ic_invalidate_array_4-100.o)
2533 ($(T)libic_invalidate_array_4-100.a)
2534 ($(T)ic_invalidate_array_4-200.o)
2535 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
2536 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
2537 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
2538 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
2539 ($(T)libgcc-4-300.a): Remove.
2540 * config/sh/t-superh: Remove.
2541 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2542 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
2543 * config/spu/cache.S: Move to ../libgcc/config/spu.
2544 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
2545 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
2546 (EXTRA_MULTILIB_PARTS): Remove.
2547 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
2548 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
2549 ($(T)cache64k.o, $(T)cache128k.o): Remove.
2550 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
2551 * config/t-libc-ok: Remove.
2552 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
2553 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
2554 * config/t-netbsd: Remove.
2555 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
2556 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
2557 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
2558 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
2559 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
2560 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
2561 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
af8d2409 2562 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
5f73c6cc
RO
2563 (EXTRA_MULTILIB_PARTS): Remove.
2564 * config/xtensa/t-linux: Remove.
2565 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
2566
695c51d4
UB
25672011-11-02 Uros Bizjak <ubizjak@gmail.com>
2568
2569 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
2570 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
2571
b040f2be
RO
25722011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2573
2574 PR translation/45116
2575 * Makefile.in (slibdir): Remove, don't export.
2576 (SHLIB_NM_FLAGS): Remove.
2577 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
2578 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
2579 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
2580 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
2581 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
2582 (gccspec.o): Likewise.
2583 (installdirs): Don't create $(DESTDIR)$(slibdir).
2584 * configure.ac (slibdir): Remove.
2585 * configure: Regenerate.
2586 * libgcc-libsystem.ver: Move to ../libgcc/config.
2587 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
2588 * config/libgcc-glibc.ver: Move to ../libgcc/config.
2589 * config/t-libunwind (SHLIB_LC): Remove.
2590 * config/t-linux (SHLIB_MAPFILES): Remove.
2591 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
2592 * config/t-slibgcc-elf-ver: Remove.
2593 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
2594 ../libgcc/config.
2595 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
2596 to ../libgcc/config/alpha.
2597 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2598 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
2599 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
2600 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
2601 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
2602 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
2603 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
2604 * config/arm/t-symbian (SHLIB_LC): Remove.
2605 * config/bfin/libgcc-bfin.ver: Move to
2606 ../libgcc/config/bfin/libgcc-glibc.ver.
2607 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
2608 * config/c6x/libgcc-c6xeabi.ver: Move to
2609 ../libgcc/config/c6x/libgcc-eabi.ver.
2610 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
2611 * config/cris/libgcc.ver: Move to
2612 ../libgcc/config/cris/libgcc-glibc.ver.
2613 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
2614 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
2615 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
2616 * config/i386/darwin-libgcc.10.4.ver: Move to
2617 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
2618 * config/i386/darwin-libgcc.10.5.ver: Move to
2619 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
2620 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
2621 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
2622 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
2623 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
695c51d4 2624 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
b040f2be
RO
2625 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
2626 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
2627 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
2628 ../libgcc/config/i386.
2629 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
2630 ../libgcc/config/i386.
2631 * config/i386/t-linux: Move to ../libgcc/config/i386.
2632 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
2633 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
2634 * config/i386/t-mingw-w64: Likewise.
2635 * config/i386/t-mingw32: Remove.
2636 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
2637 to ../libgcc/config/ia64.
2638 * config/ia64/t-glibc: Remove.
2639 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
2640 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
2641 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
2642 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
2643 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
2644 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
2645 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
2646 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
2647 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
2648 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
2649 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
2650 Move to ../libgcc/config/pa.
2651 * config/rs6000/darwin-libgcc.10.4.ver: Move to
2652 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
2653 * config/rs6000/darwin-libgcc.10.5.ver: Move to
2654 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
2655 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
2656 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
2657 * config/rs6000/t-aix52: Likewise.
2658 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
2659 ../libgcc/config/sh.
2660 * config/sparc/libgcc-sparc-glibc.ver: Move to
2661 ../libgcc/config/sparc/libgcc-glibc.ver.
2662 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
2663 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
2664 * config/xtensa/libgcc-xtensa.ver: Move to
2665 ../libgcc/config/xtensa/libgcc-glibc.ver.
2666 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
2667 t-slibgcc in tmake_file.
2668 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
2669 *-*-freebsd[34].* with pthreads.
2670 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
2671 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
2672 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
2673 (*-*-netbsd*): Likewise.
2674 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
2675 (*-*-*vms*): Add t-slibgcc to tmake_file.
2676 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
2677 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
2678 tmake_file.
2679 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
2680 arm*-*-linux-*eabi.
2681 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
2682 tmake_file.
2683 (crisv32-*-linux*, cris-*-linux*): Likewise.
2684 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
2685 pa/t-slibgcc-dwarf-ver from tmake_file.
2686 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
2687 tmake_file.
2688 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
2689 (hppa*64*-*-hpux11*): Likewise.
2690 (hppa[12]*-*-hpux11*): Likewise.
2691 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
2692 tmake_file.
2693 (x86_64-*-darwin*): Likewise.
2694 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
2695 Add t-slibgcc to tmake_file.
2696 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2697 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
2698 i[34567]86-w64-*.
2699 Remove i386/t-mingw-pthread from tmake_file.
2700 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
2701 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
2702 (ia64-hp-*vms*): Likewise.
2703 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
2704 tmake_file.
2705 (m32rle-*-linux*): Likewise.
2706 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
2707 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
2708 t-slibgcc-nolc-override from tmake_file.
2709 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
2710 tmake_file.
2711 (powerpc-*-darwin*): Likewise.
2712 (powerpc64-*-darwin*): Likewise.
2713 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
2714 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2715 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
2716 t-slibgcc to tmake_file.
2717 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
2718 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
2719 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
2720 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
2721 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
2722 (sparc64-*-linux*): Likewise.
2723 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
2724 tmake_file.
2725 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2726 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
2727 from tmake_file.
2728
98f4fb34
RG
27292011-11-02 Richard Guenther <rguenther@suse.de>
2730
2731 PR tree-optimization/50902
2732 * tree-vect-stmts.c (vectorizable_load): Properly convert
2733 an invariant initializer element.
2734
e021c122
RG
27352010-11-02 Richard Guenther <rguenther@suse.de>
2736
2737 PR tree-optimization/50890
2738 * gimple.h (gimple_fold_call): Remove.
2739 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
2740 (gimple_fold_call): ... here. Make static. Update the
2741 cannot-inline flag on direct calls.
2742 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
2743 from the statements to the edges.
2744
5743331e
ILT
27452011-11-01 Ian Lance Taylor <iant@google.com>
2746
2747 * godump.c (struct macro_hash_value): Define.
2748 (macro_hash_hashval): New static function.
2749 (macro_hash_eq, macro_hash_del): New static functions.
2750 (go_define): Use macro_hash_value to store values in macro_hash.
2751 Replace an old value on a redefinition. Don't print anything to
2752 go_dump_file.
2753 (go_undef): Delete the entry from the hash table.
2754 (go_output_typedef): For an enum, use macro_hash_value, and don't
2755 print anything to go_dump_file.
2756 (go_print_macro): New static function.
2757 (go_finish): Traverse macro_hash with go_print_macro.
695c51d4 2758 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
5743331e 2759
1834883a
AM
27602011-11-02 Alan Modra <amodra@gmail.com>
2761
2762 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
2763
89401152
PC
27642011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2765
2766 PR c++/44277
2767 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
2768
f4496f0f
AS
27692011-11-01 Andrew Stubbs <ams@codesourcery.com>
2770
2771 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
2772
c2a89641
UB
27732011-11-01 Uros Bizjak <ubizjak@gmail.com>
2774
2775 * config/i386/i386.md (splitters for int-float conversion): Use
a8b5c4e8 2776 SUBREG_REG on SUBREGs in splitter constraints.
c2a89641 2777
6bf39801
JJ
27782011-11-01 Jakub Jelinek <jakub@redhat.com>
2779
2780 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
2781 prototype.
2782 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
2783 function.
c2a89641 2784 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
6bf39801
JJ
2785 (ssepackfltmode): New mode attr.
2786 (vec_pack_ufix_trunc_<mode>): New expander.
2787
c2a89641 27882011-11-01 Uros Bizjak <ubizjak@gmail.com>
8d1788f2 2789
c2a89641 2790 PR target/50940
8d1788f2 2791 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
af8d2409 2792 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
8d1788f2 2793
be26142a
PB
27942011-11-01 Peter Bergner <bergner@vnet.ibm.com>
2795
2796 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
2797 * config/rs6000/476.h: New file.
2798 * config/rs6000/476.opt: Likewise.
2799 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
2800 (SET_TARGET_LINK_STACK): Likewise.
2801 (TARGET_ASM_CODE_END): Define.
2802 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
2803 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
2804 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
2805 code if TARGET_LINK_STACK.
2806 (rs6000_emit_load_toc_table): Likewise.
2807 (output_function_profiler): Likewise
2808 (macho_branch_islands): Likewise
2809 (machopic_output_stub): Likewise
2810 (get_ppc476_thunk_name): New function.
2811 (rs6000_code_end): Likewise.
2812 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
2813 Convert to a define_expand.
2814 (load_toc_v4_PIC_1_normal): New define_insn.
2815 (load_toc_v4_PIC_1_476): Likewise.
2816 (load_toc_v4_PIC_1b_normal): Likewise.
2817 (load_toc_v4_PIC_1b_476): Likewise.
2818
f1f59bc7
GJL
28192011-11-01 Georg-Johann Lay <avr@gjlay.de>
2820
2821 PR target/50910
2822 * config/avr/avr.opt (-mbranch-cost=): New option.
2823 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
2824 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
2825 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
c2a89641 2826 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
f1f59bc7
GJL
2827 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
2828
a31895d7
TV
28292011-11-01 Tom de Vries <tom@codesourcery.com>
2830
2831 PR tree-optimization/50908
2832 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
2833 before update_vuses, test for 1 predecessor rather than two.
2834 (delete_block_update_dominator_info): New function, part of it factored
2835 out of ...
2836 (replace_block_by): Use delete_block_update_dominator_info. Call
2837 update_vuses after deleting bb1 and updating dominator info, instead of
2838 before.
2839
1f9ed162
DM
28402011-11-01 David S. Miller <davem@davemloft.net>
2841
0182eb8a
DM
2842 * config/sparc/sparc.c (vector_init_faligndata): New function.
2843 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
2844
1f9ed162
DM
2845 * config/sparc/sparc.c (sparc_expand_vcond): New function.
2846 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
2847 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
2848 (vconduv8qiv8qi): Likewise.
2849
5a9fbcf1
AO
28502011-11-01 Alexandre Oliva <aoliva@redhat.com>
2851
2852 PR debug/50869
2853 * cselib.c (cfa_base_preserved_regno): Initialize.
2854 (cselib_expand_value_rtx_1): Don't expand it.
2855 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
2856 Check it's only zero if result is NULL.
2857
406d683e
JJ
28582011-11-01 Jakub Jelinek <jakub@redhat.com>
2859
03e0010d
JJ
2860 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
2861 expander.
2862
406d683e
JJ
2863 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
2864 (sseintvecmodelower): New mode iterator.
2865 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
2866 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2867 (floatunsv4siv4sf2): Macroize into...
2868 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
2869
82a59502
DM
28702011-10-31 David S. Miller <davem@davemloft.net>
2871
015e8b63
DM
2872 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
2873
82a59502
DM
2874 * dwarf2out.c (cached_next_real_insn): New.
2875 (dwarf2out_end_epilogue): Set it to NULL_RTX.
2876 (dwarf2out_var_location): Remove cached_next_real_insn local static.
2877
788a2908
RH
28782011-10-31 Richard Henderson <rth@redhat.com>
2879
2880 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
2881 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
2882 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
2883 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
2884 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
2885 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
2886 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
2887 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
2888 * config/i386/i386.md (splitters for int-float conversion): Likewise.
2889 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
2890 (bdesc_args): Likewise.
2891 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
2892 (ix86_vectorize_builtin_conversion): Remove.
2893 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
2894
fdb0e1b4
MJ
28952011-10-31 Martin Jambor <mjambor@suse.cz>
2896
2897 * ipa-prop.c (mark_modified): Moved up in the file.
2898 (is_parm_modified_before_call): Renamed to
2899 is_parm_modified_before_stmt, moved up in the file.
2900 (load_from_unmodified_param): New function.
2901 (compute_complex_assign_jump_func): Also attempt to create pass
2902 through jump functions for values loaded from (addressable)
2903 parameters.
2904
aa948027
JJ
29052011-10-31 Jakub Jelinek <jakub@redhat.com>
2906
2907 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
2908 in a loop and has different type from op0, cast it to op0's type
2909 before the loop first. For slp give up. Don't crash if op1_vectype
2910 is NULL.
2911
2062f77b
PB
29122011-10-31 Paul Brook <paul@codesourcery.com>
2913
2914 * cgraphunit.c: Don't mark clones as static constructors.
2915
41bd49ea
DE
29162011-10-31 David Edelsohn <dje.gcc@gmail.com>
2917
2918 * gcc-ar: Do not include stdio.h.
2919
29202011-10-31 Diego Novillo <dnovillo@google.com>
875b35b4
DN
2921
2922 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
2923 TYPE_ADDR_SPACE.
2924 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
2925 TYPE_ADDR_SPACE.
2926
ea2fa341
DM
29272011-10-30 David S. Miller <davem@davemloft.net>
2928
f6b29aeb
DM
2929 * config/sparc/sparc.c (vector_init_bshuffle): New function.
2930 (vector_init_fpmerge): New function.
2931 (sparc_expand_vector_init): Use them to improve non-const cases.
2932
ea2fa341
DM
2933 * dwarf2out.c (dwarf2out_var_location): When processing several
2934 consecutive location notes, cache the result of next_real_insn().
2935
da957891
UB
29362011-10-30 Uros Bizjak <ubizjak@gmail.com>
2937
2938 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
2939 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
2940 (vec_dupv4sf): Remove expander.
2941 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
2942 (vec_dupv2df): Remove expander.
2943 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
2944 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
2945 (*vec_dupv4si): Merge *vec_dupv4si_avx.
2946 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
2947
9db8f45d
DP
29482011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
2949
2950 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
2951 * optabs.c (supportable_convert_operation): New function.
2952 * optabs.h (supportable_convert_operation): New prototype.
2953 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
2954 behavior for NONE modifier case.
2955 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
2956
732a0ad3
JJ
29572011-10-30 Jakub Jelinek <jakub@redhat.com>
2958
2959 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
2960 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
2961 function.
2962 (vect_vect_recog_func_ptrs): Add it.
2963
dbeee829
DM
29642011-10-30 David S. Miller <davem@davemloft.net>
2965
2966 * reorg.c (label_before_next_insn): New function.
2967 (relax_delay_slots): Use it instead of prev_label.
2968 * rtl.h (prev_label): Delete declaration.
2969 * emit-rtl.c (prev_label): Remove.
2970
cc1efdff
RE
29712011-10-30 Revital Eres <revital.eres@linaro.org>
2972
2973 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
2974 as BB_DISABLE_SCHEDULE.
2975 (mark_loop_unsched): New function.
2976 (sms_schedule): Call it.
2977
ae9d61ab
JDA
29782011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2979
2980 PR target/50617
2981 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
2982 (cmpib_comparison_operator): Likewise.
2983 (following_cal, output_and, output_ior, output_move_double,
2984 output_fp_move_double, output_block_move, output_block_clear,
2985 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
2986 output_movb, output_parallel_movb, output_parallel_addb, output_call,
2987 output_indirect_call, output_millicode_call, output_mul_insn,
2988 output_div_insn, output_mod_insn, singlemove_string,
2989 output_arg_descriptor, output_global_address, print_operand,
2990 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
2991 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
2992 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
2993 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
2994 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
2995 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
2996 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
2997 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
2998 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
2999 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
3000 exported functions and variables with "pa_".
3001 * config/pa/predicates.md: Likewise.
3002 * config/pa/pa64-hpux.h: likewise.
3003 * config/pa/som.h: Likewise.
3004 * config/pa/elf.h: Likewise.
3005 * config/pa/pa64-linux.h: Likewise.
3006 * config/pa/pa.md: Likewise.
3007 * config/pa/pa.c: Likewise.
3008 * config/pa/pa-linux.h: Likewise.
3009 * config/pa/pa.h: Likewise.
3010 * config/pa/constraints.md: Likewise.
3011
b99f906a
UB
30122011-10-29 Uros Bizjak <ubizjak@gmail.com>
3013
3014 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
3015 Update all uses.
3016 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
3017 * config/i386/i386.c: Update all uses.
3018
f327a48e
UB
30192011-10-29 Uros Bizjak <ubizjak@gmail.com>
3020
3021 * config/i386/i386.md (lshlv16qi3): Remove expander.
3022 (lshrv16qi3): New expander.
3023 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
3024 using any_shiftrt code iterator. Cleanup.
3025 (ashlv16qi3): Cleanup.
3026 (ashrv2di3): Ditto.
3027
9a201645
JDA
30282011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3029
3030 PR target/50691
f327a48e
UB
3031 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
3032 references.
9a201645
JDA
3033 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
3034 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
3035
d702f362
GJL
30362011-10-29 Georg-Johann Lay <avr@gjlay.de>
3037
3038 PR target/50887
3039 * config/avr/avr.opt (-maccumulate-args): New option.
3040 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
3041 avr_starting_frame_offset.
3042 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
3043 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
3044 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
3045 (UNSPECV_WRITE_SP): New constant.
3046 (*addhi3_sp_R): Rewrite to...
3047 (*addhi3_sp): ...this new insn.
3048 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
3049 (movhi_sp_r): ...this new insn.
3050 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
3051 (avr_starting_frame_offset): New.
3052 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
3053 (avr_starting_frame_offset): New function.
3054 (avr_outgoing_args_size): New static function.
3055 (avr_initial_elimination_offset): Use it.
3056 (avr_simple_epilogue): Use it.
3057 (avr_asm_function_end_prologue): Use it.
3058 (expand_epilogue): Use it.
3059 (expand_prologue): Use it. Break out code to...
3060 (avr_prologue_setup_frame): ...this new static function.
3061 (avr_can_eliminate): Allow eliminating to frame pointer if there
3062 is one.
3063 (avr_frame_pointer_required_p): Use frame pointer if target has a
3064 nonlocal label.
3065 * config/avr/constraints.md (R): Remove.
3066 (Csp): New constraint.
3067 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
3068
7a59e22a
AK
30692011-10-29 Andi Kleen <ak@linux.intel.com>
3070
3071 * gcc-ar.c (target_machine): Add.
3072
a08160c3
AS
30732011-10-29 Anatoly Sokolov <aesok@post.ru>
3074
3075 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
3076 cris_constant_index_p, cris_base_p, cris_index_p,
3077 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
3078 cris_legitimate_address_p): New functions.
3079 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3080 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
3081 from rtx to const_rtx.
3082 (cris_print_operand_address, cris_address_cost,
3083 cris_side_effect_mode_ok): Use
3084 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3085 cris_biap_index_p and cris_bdap_index_p.
3086 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
3087 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
3088 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3089 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
3090 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
3091 cris_biap_index_p and cris_bdap_index_p.
3092 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
3093 cris_base_p.
3094 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
3095 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
3096 prototype.
3097 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
3098
3bc50163
AK
30992011-10-21 Andi Kleen <ak@linux.intel.com>
3100
3101 * ggc-page (PAGE_ALIGN): Add.
3102 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
3103 Replace ROUND_UP with PAGE_ALIGN.
3104
25f0ea81
AK
31052011-10-20 Andi Kleen <ak@linux.intel.com>
3106
3107 * ggc-page (alloc_anon): Add check argument.
3108 (alloc_page): Add fallback to 1 page allocation.
3109 Adjust alloc_anon calls to new argument.
3110
d33ef9a5
AK
31112011-10-18 Andi Kleen <ak@linux.intel.com>
3112
3113 * ggc-page (release_pages): First free large continuous
3114 chunks in the madvise path.
3115
bf72b009
AK
31162011-10-18 Andi Kleen <ak@linux.intel.com>
3117
3118 * ggc-page.c (alloc_pages): Always round up entry_size.
3119
b6b89215
AK
31202011-10-19 Andi Kleen <ak@linux.intel.com>
3121
3122 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
3123 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
3124 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
f327a48e 3125 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
b6b89215
AK
3126 (install): Depend on install-gcc-ar.
3127 (install-gcc-ar): Add.
3128 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
3129 * gcc-ar.c: Add new file.
3130
4356b75d
PH
31312011-10-28 Pat Haugen <pthaugen@us.ibm.com>
3132
3133 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
3134 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
3135 type for V2DF.
3136 (VStype_div): Use vector types for V2DF/V4SF.
3137 (VStype_sqrt): Use *sqrt types.
3138 (VS_spdp_type): Change type to vecdouble.
3139 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
3140 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
3141 vsx_xvcvspuxds): Likewise.
3142 (*vsx_fms<mode>4): Set type via <VStype_mul>.
3143 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
3144 <VStype_simple>.
3145 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
3146 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
3147 power7-dsqrt): Correct insn latency.
3148 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
3149 (power7-veccmp): Delete.
3150 (power7-vecfloat): Correct latency/dispatch/VSU values.
3151 (define_bypass "power7-vecfloat"): Correct latency and types.
3152 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
3153 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
3154
c4ab64c6
UB
31552011-10-28 Uros Bizjak <ubizjak@gmail.com>
3156
3157 * config/i386/i386.md (shift_insn): Rename code attribute from
3158 shiftrt_insn. Also handle ashift RTX.
3159 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
1162730f 3160 (vshift): New code attribute.
c4ab64c6 3161 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
1162730f
UB
3162 (any_lshift): Move and rename code iterator from ...
3163 * config/i386/sse.md (lshift): ... here.
c4ab64c6
UB
3164 (lshift_insn): Remove code attribute.
3165 (lshift): Remove code attribute.
3166 (vlshr<mode>3): Use lshiftrt RTX.
1162730f
UB
3167 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
3168 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
c4ab64c6
UB
3169 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
3170 any_lshift code iterator. Update asm template.
1162730f
UB
3171 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
3172 usign any_lshift code iterator.
3173 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
3174 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
c4ab64c6
UB
3175 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
3176
f89d6e77
GJL
31772011-10-28 Georg-Johann Lay <avr@gjlay.de>
3178
3179 PR target/49313
3180 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
3181 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
3182 to the libgcc insn.
3183 (*parityqihi2): Same for 8-bit parity.
3184
b27df4bb
JB
31852011-10-28 Julian Brown <julian@codesourcery.com>
3186
3187 PR rtl-optimization/47918
b27df4bb
JB
3188 * reload1.c (set_initial_label_offsets): Use initial offsets
3189 for labels on the nonlocal_goto_handler_labels chain.
3190
e0f19b55
IS
31912011-10-28 Iain Sandoe <iains@gcc.gnu.org>
3192
c4ab64c6 3193 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
e0f19b55
IS
3194 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
3195 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
3196 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
3197 config/t-darwin.
3198 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
3199 (GP_SAVE_INLINE): Likewise.
3200 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3201 RESTORE_FP_SUFFIX): Set to empty strings.
3202 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
3203 (debug_stack_info): Print savres_strategy.
3204 (rs6000_savres_routine_name): Implement for Darwin.
3205 (rs6000_make_savres_rtx): Adjust used register for Darwin.
3206 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
3207 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
3208 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
3209 * config/rs6000/darwin-gpsave.asm: New file.
3210
ee3b466d
JJ
32112011-10-28 Jakub Jelinek <jakub@redhat.com>
3212
3213 * config/i386/sse.md (VI4SD_AVX2): Removed.
3214 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
3215 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
3216 Add another expander using VI48_128 iterator for
3217 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
3218 for TARGET_AVX2.
3219 (vlshr<mode>3): Likewise. Change register_operand predicate to
3220 nonimmediate_operand on last operand in the VI12_128 expander.
3221 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
3222 (vashrv4si3, vashrv8si3): New expanders.
3223 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
3224 avx2_<lshift>vv2di): Removed.
3225 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
3226 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
3227 iterator. Simplify pattern.
3228
ef6f874e
RG
32292010-10-28 Richard Guenther <rguenther@suse.de>
3230
3231 PR driver/50876
3232 * lto-wrapper.c (get_options_from_collect_gcc_options):
3233 Properly count arguments.
3234 (run_gcc): Use an obstack to collect argv, properly separate
3235 switches and their arguments.
3236
cede2577
JJ
32372011-10-28 Jakub Jelinek <jakub@redhat.com>
3238
3239 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
3240 vector mode from vectype's mode.
3241
d303c992
CLT
32422011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
3243
3244 PR rtl-optimization/49720
3245 * simplify-rtx.c (simplify_relational_operation_1): Detect
3246 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
3247 simplifies to (eq/ne x (cst2 - cst1))" case.
3248
26689420
DM
32492011-10-27 David S. Miller <davem@davemloft.net>
3250
1864ee35
DM
3251 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
3252 (*snedi_zero): Likewise.
3253 (*snedi_zero_trunc): Likewise.
3254 (snedi_special_vis3): New expander.
3255 (*snedi_zero_vis3): New insn.
3256 (*snedi_zero_trunc_vis3): Likewise.
3257 (*sltu_insn_vis3): Likewise.
3258 (*sltu_insn_vis3_trunc): Likewise.
3259 (addxc): Likewise.
3260 (*addxc_trunc_sp64_vis3): Likewise.
3261 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
3262 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
3263 sequences on DImode values.
3264
0a940828
DM
3265 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
3266 constraint.
3267
26689420
DM
3268 * regcprop.c (copyprop_hardreg_forward_1): Reject the
3269 transformation when we narrow the mode on big endian.
3270
32cac6f1
JJ
32712011-10-27 Jakub Jelinek <jakub@redhat.com>
3272
1ee48839
JJ
3273 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
3274 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
3275 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
3276
32cac6f1
JJ
3277 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
3278 overrides for -masm=intel memory.
3279 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
3280 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
3281 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
3282 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
3283 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
3284 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
3285 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
3286
c419671c
MJ
32872011-10-27 Martin Jambor <mjambor@suse.cz>
3288
3289 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
3290 to parm_ainfo.
3291 (ipa_compute_jump_functions_for_edge): Likewise.
3292 (ipa_compute_jump_functions): Likewise.
3293 (ipa_analyze_indirect_call_uses): Likewise.
3294 (ipa_analyze_call_uses): Likewise.
3295 (ipa_analyze_params_uses): Likewise.
3296 (ipa_analyze_node): Likewise.
3297
a92aa31d
UB
32982011-10-27 Uros Bizjak <ubizjak@gmail.com>
3299
3300 PR target/50875
c4ab64c6 3301 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
a92aa31d
UB
3302 constraints. Change alternative 1 to "x,m,1".
3303
b3c3685a
JJ
33042011-10-27 Jakub Jelinek <jakub@redhat.com>
3305
16fe2c09
JJ
3306 * Makefile.in (build/gencheck.o): Depend on tree.def and
3307 c-family/c-common.def.
3308
b3c3685a
JJ
3309 * tree-ssa-strlen.c: Include expr.h.
3310 (get_stridx): Don't use c_strlen, instead use string_constant
3311 and compute string length from it.
3312 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
3313
2286a26f
EB
33142011-10-27 Eric Botcazou <ebotcazou@adacore.com>
3315
3316 PR rtl-optimization/46603
3317 PR bootstrap/50879
3318 * reload.c (push_reload): In the out case, restore previous behavior
3319 for subregs that don't have word mode.
3320
859ed2a7
ILT
33212011-10-27 Ian Lance Taylor <iant@google.com>
3322
3323 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
a92aa31d 3324 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
859ed2a7
ILT
3325 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
3326 defined.
3327
4cb110fb
RH
33282011-10-27 Richard Henderson <rth@redhat.com>
3329
3330 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
3331 selector. Save the qimode constant selector for later use by the
3332 qimode vec_perm pattern.
3333
ed80f859
BS
33342011-10-27 Bernd Schmidt <bernds@codesourcery.com>
3335
3336 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
3337 to unit_req_factor to the right enum type.
3338 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
3339 hwloop_optimize): Remove unused variables.
3340
362235e9
RG
33412010-10-27 Richard Guenther <rguenther@suse.de>
3342
3343 PR middle-end/50731
3344 * tree-vect-generic.c (do_binop): Handle scalar operands.
3345
424c8389
UB
33462011-08-27 Uros Bizjak <ubizjak@gmail.com>
3347
3348 PR target/37191
3349 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
3350 from different units in a single alternative.
3351
bf84f42d
DM
33522011-10-26 David S. Miller <davem@davemloft.net>
3353
78968b76
DM
3354 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
3355 if we're comparing DImode and comparison is other than EQ or NE.
3356
9aa6a9b5
DM
3357 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
3358 LEU/LTU/GEU/GTU is attempted.
3359 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
3360 and split.
3361 (*neg_seqsi_sign_extend): Likewise.
3362 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
3363 *neg_sgeu_extend_sp64): New insns.
3364
bf84f42d
DM
3365 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
3366 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
3367 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
3368 (*mov<I:mode>_cc_reg_sp64): Likewise.
3369 (*movsf_cc_v9): Likewise.
3370 (*movsf_cc_reg_sp64): Likewise.
3371 (*movdf_cc_v9): Likewise.
3372 (*movdf_cc_reg_sp64): Likewise.
3373 (*movtf_cc_hq_v9): Likewise.
3374 (*movtf_cc_reg_hq_sp64): Likewise.
3375 (*movtf_cc_v9): Likewise.
3376 (*movtf_cc_reg_sp64): Likewise.
3377 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
3378 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
3379
d9d09ca2
EB
33802011-10-26 Eric Botcazou <ebotcazou@adacore.com>
3381
3382 * reload.c (reload_inner_reg_of_subreg): Change type of return value
3383 and type of OUTPUT parameter to bool and adjust. Document MODE and
3384 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
3385 and improve associated comment.
3386 (push_reload): Clarify and update comments about reloading of subregs.
3387 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
3388 for the reloading of subregs in the out case as well.
3389
bfd5f9f5
AO
33902011-10-26 Alexandre Oliva <aoliva@redhat.com>
3391
3392 PR debug/50826
3393 * var-tracking.c (rtx_debug_expr_p): New.
3394 (use_type): Don't use debug exprs to track non-VTA variables.
3395
1cc17820
JL
33962011-10-26 Jeff Law <law@redhat.com>
3397
3398 * doc/invoke.texi (sink-frequency-threshold): Document.
3399 * tree-ssa-sink.c: Include params.h.
3400 (select_best_block): New function.
3401 (statement_sink_location): Use it.
3402 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
3403
d9d09ca2 34042011-10-26 Iain Sandoe <iains@gcc.gnu.org>
b20577ea
IS
3405
3406 PR target/48108
3407 * config/darwin.c (top level): Amend comments concerning LTO output.
3408 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
3409 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
3410 (LTO_NAMES_SECTION): Rename.
3411 (darwin_asm_named_section): Record LTO section counts and switches
3412 in a vec of darwin_lto_section_e.
3413 (darwin_file_start): Remove unused code.
3414 (darwin_file_end): Put an LTO section termination label. Handle
3415 output of the wrapped LTO sections, index and names table.
3416
d44b26bd
AM
34172011-10-26 Alan Modra <amodra@gmail.com>
3418
3419 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
3420 declaration.
3421 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
3422 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
3423 simple_return in pattern, emit instruction, and set jump_label.
3424 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
3425 simple_return rather than return.
3426 (emit_cfa_restores): New function.
3427 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
3428 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
3429 when using out-of-line gpr restore. Add missing LR and FP regs
3430 cfa_restores for out-of-line fpr restore. Consolidate code setting
3431 up cfa_restores. Formatting. Use LR_REGNO define.
3432 (rs6000_output_mi_thunk): Use simple_return rather than return.
3433 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
3434 (return_internal*): Likewise.
3435 (any_return, return_pred, return_str): New iterators.
3436 (return, conditional return insns): Provide both return and
3437 simple_return variants.
3438 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
3439 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
3440 Move r11 and r0 later to suit shrink-wrapping.
3441
4559db79
RG
34422011-10-26 Richard Guenther <rguenther@suse.de>
3443
3444 * lto-wrapper.c (run_gcc): Properly init/free obstack.
3445
e43451aa
JJ
34462011-10-26 Jakub Jelinek <jakub@redhat.com>
3447
3448 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
3449 * config/i386/predicates.md (vsib_address_operand,
3450 vsib_mem_operator): New predicates.
3451 * config/i386/i386.c (ix86_print_operand_address): Handle
3452 UNSPEC_VSIBADDR addresses.
3453 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
3454 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
3455 UNSPEC_VSIBADDR address.
3456 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
3457 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
3458
9e1d5f49
TV
34592011-10-26 Tom de Vries <tom@codesourcery.com>
3460
3461 PR tree-optimization/50763
3462 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
3463 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
3464
f31c0018
RG
34652011-10-26 Richard Guenther <rguenther@suse.de>
3466
3467 PR lto/41844
424c8389 3468 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
f31c0018
RG
3469 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
3470 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
3471 (run_gcc): Use it. Filter out language specific options.
3472
fd444648
AT
34732011-10-26 Andreas Tobler <andreast@fgznet.ch>
3474
3475 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
3476 32-bit target does.
3477
f891a4ac
PC
34782011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
3479
0a9ef972 3480 PR driver/46617
f891a4ac
PC
3481 * gcc.c (main): Fix fatal_error string for translation.
3482
8d686507
ILT
34832011-10-25 Ian Lance Taylor <iant@google.com>
3484
3485 * tree-eh.c (do_return_redirection): Remove return_value_p
3486 parameter. Change all callers.
3487 (lower_try_finally_nofallthru): Remove local return_val.
3488 (lower_try_finally_onedest): Likewise.
3489 (lower_try_finally_copy): Likewise.
3490 (lower_try_finally_switch): Likewise.
3491
d7115452
L
34922011-10-25 H.J. Lu <hongjiu.lu@intel.com>
3493
3494 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
3495 remove "&& !TARGET_64BIT"
3496 (*mmx_maskmovq_rex): Removed.
3497
95d17cbf
EB
34982011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3499
3500 PR rtl-optimization/46603
3501 * reload.c (push_reload): In the out case, reload the subreg as well
3502 as the reg if it has word mode.
3503
6ea685b8
EB
35042011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3505
3506 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
3507 suppress debug info for the parent type.
3508
55504c7c
EB
35092011-10-25 Eric Botcazou <ebotcazou@adacore.com>
3510
3511 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
3512
c3962b13
RH
35132011-10-25 Richard Henderson <rth@redhat.com>
3514
152a50a9
RH
3515 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
3516 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
3517
45815441
RH
3518 * config/rs6000/altivec.md (vec_extract_evenv8hi,
3519 vec_extract_evenv16qi, vec_extract_oddv4si,
3520 vec_extract_oddv4sf): Remove.
3521
c3a5818e
RH
3522 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
3523 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
3524 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3525 vec_interleave_highv4sf, vec_interleave_lowv4sf,
3526 vec_interleave_highv4si, vec_interleave_lowv4si,
3527 vec_interleave_highv8hi, vec_interleave_lowv8hi,
3528 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
3529
a6b3dfde
RH
3530 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
3531 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
3532 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
3533 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
3534 vec_interleave_low_optab, vec_extract_even_optab,
3535 vec_extract_odd_optab with expand_vec_perm.
3536 (can_vec_perm_for_code_p): New.
3537 * optabs.h: Update.
3538 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
3539 fallback via can_vec_perm_for_code_p.
3540 (vect_strided_load_supported): Likewise.
3541 * tree-vect-generic.c (expand_vector_operations_1): Never lower
3542 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
3543 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
3544
22e4dee7
RH
3545 * target.def (vec_perm_const_ok): Change parameters to mode and
3546 array of indicies.
3547 * doc/tm.texi: Rebuild.
3548 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
3549 parameters to mode and array of indicies.
3550 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
3551 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
3552 Change parameters to mode and array of indicies.
3553 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
3554 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
3555 parameters to mode and rtx inputs. Try lowering to QImode
3556 vec_perm_const before trying fully variable permutation.
3557 * optabs.h: Update decls.
3558 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
3559 VECTOR_CST to pass to can_vec_perm_p.
3560 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
3561 from int pointer to unsigned char pointer.
3562 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
3563 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
3564
c3962b13
RH
3565 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
3566 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
3567 VEC_INTERLEAVE_LOW_EXPR): Likewise.
3568
55504c7c 35692011-10-25 Mike Stump <mikestump@comcast.net>
601b6520
MS
3570
3571 * reload.c (regno_clobbered_p): Fix typo.
3572
55504c7c 35732011-10-25 Dodji Seketeli <dodji@redhat.com>
84756fd4 3574
a92aa31d
UB
3575 * input.c (expand_location): Rewrite using linemap_resolve_location
3576 and linemap_expand_location. Add a comment.
84756fd4 3577
ab0ef706
JJ
35782011-10-25 Jakub Jelinek <jakub@redhat.com>
3579
3580 PR tree-optimization/50596
3581 * tree-vect-stmts.c (vect_mark_relevant): Only use
3582 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
3583 (vectorizable_store): If is_pattern_stmt_p look through
3584 VIEW_CONVERT_EXPR on lhs.
3585 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
3586 Use unsigned type instead of signed.
3587 (vect_recog_bool_pattern): Optimize also stores into bool memory in
3588 addition to casts from bool to integral types.
3589 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
3590 created, don't create it again.
3591
db854378
KT
35922011-10-25 Kai Tietz <ktietz@redhat.com>
3593
3594 * config/i386/i386.c (ix86_frame_pointer_required): Require
3595 frame-pointer, if setjmp is used for 32-bit ms-abi.
3596
ce835863
MM
35972011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3598
3599 * builtins.c (set_builtin_user_assembler_name): Remove extra
3600 newline added in October 11th, 2011 change.
3601
1b43bc82
DM
36022011-10-24 David S. Miller <davem@davemloft.net>
3603
ae5f5715
DM
3604 * config/sparc/little-endian.opt: Delete.
3605 * config.gcc: Remove references to config/sparc/little-endian.opt
3606 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
3607 * config/sparc/linux64.h: Delete references to -mlittle-endian.
3608 * config/sparc/netbsd-elf.h: Likewise.
3609 * config/sparc/openbsd64.h: Likewise.
3610 * config/sparc/sparc.h: Likewise.
3611 * config/sparc/sp64-elf.h: Likewise and delete overrides for
3612 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3613 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
3614 to MASK_LITTLE_ENDIAN.
3615 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
3616
424c8389
UB
3617 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
3618 Only use D, Y, and Z constraints in vector insns.
cca3f03d 3619
1b43bc82
DM
3620 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
3621 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
3622 called *movsi_insn.
3623 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
3624 into *movdi_insn_sp32.
3625 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
3626 one pattern called *movdi_insn_sp64.
3627 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
3628 Consolidate into one pattern called *movsf_insn.
3629 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
3630 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
3631 into *movdf_insn_sp32.
3632 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
3633 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
3634 *movdf_insn_sp64.
3635 (*zero_extendsidi2_insn_sp64_novis3,
3636 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
3637 called *zero_extendsidi2_insn_sp64.
3638 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
3639 Consolidate into one pattern named *sign_extendsidi2_insn.
3640 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
3641 Consolidate into one pattern named *mov<VM32:mode>_insn.
3642 (*mov<VM64:mode>_insn_sp64_novis3,
3643 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
3644 named *mov<VM64:mode>_insn_sp64.
3645 (*mov<VM64:mode>_insn_sp32_novis3,
3646 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
3647 named *mov<VM64:mode>_insn_sp32.
3648
93a90db6
AK
36492011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3650
3651 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
3652 (zero_length_string): Change assertion to accept strinfo without
3653 length but with stmt instead.
3654 Set the endptr pointer also if starting a new chain.
3655 (adjust_related_strinfos): Ignore strinfos marked for delayed
3656 length computation.
3657 (handle_builtin_strcpy): Mark earlier strinfo elements also for
3658 delayed length computation.
3659
3f6a1bb1
GJL
36602011-10-24 Georg-Johann Lay <avr@gjlay.de>
3661
3662 PR target/50820
3663 Port from 4.6 branch r180379
3664 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
3665 handling and indirect jump/calls on devices > 128k.
3666
3d33d151
AS
36672011-10-24 Anatoly Sokolov <aesok@post.ru>
3668 Georg-Johann Lay <avr@gjlay.de>
3669
3670 PR target/49824
3671 * doc/extend.texi (Declaring Attributes of Functions):
3672 Document OS_main and OS_task attributes.
3673 (Specifying Attributes of Variables): Move up
3674 subsection "AVR Variable Attributes" as of alphabetical order.
3675
7b7b1813
RG
36762011-10-24 Richard Guenther <rguenther@suse.de>
3677
3678 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
3679 to vector element type.
3680 (vectorizable_assignment): Bail out for non-mode-precision operations.
3681 (vectorizable_shift): Likewise.
3682 (vectorizable_operation): Likewise.
3683 (vectorizable_type_demotion): Likewise.
3684 (vectorizable_type_promotion): Likewise.
3685 (vectorizable_store): Handle non-mode-precision stores.
3686 (vectorizable_load): Handle non-mode-precision loads.
3687 (get_vectype_for_scalar_type_and_size): Return a vector type
3688 for non-mode-precision integers.
3689 * tree-vect-loop.c (vectorizable_reduction): Bail out for
3690 non-mode-precision reductions.
3691
695074be
JB
36922011-10-24 Julian Brown <julian@codesourcery.com>
3693
3694 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
424c8389 3695 setting CC_REVERSED for FP comparisons.
695074be 3696
0a500dd3
RG
36972011-10-24 Richard Guenther <rguenther@suse.de>
3698
3699 PR tree-optimization/50838
3700 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
3701 a MEM_REF base if we change it.
3702
9f02e6a5
BS
37032011-10-24 Bernd Schmidt <bernds@codesourcery.com>
3704
3705 PR bootstrap/50836
3706 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
3707
eec8a31a
BS
3708 PR rtl-optimization/50833
3709 * function.c (thread_prologue_and_epilogue_insns): Expect the
3710 return insn optimization only if optimize.
3711
d2111e2f
GJL
37122011-10-24 Georg-Johann Lay <avr@gjlay.de>
3713
3714 * config/avr/avr.c: Break long lines.
3715 Define target hooks on the fly if applicable.
3716 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
3717 overridden later.
3718 (targetm): Move definition to end of file.
3719 (avr_can_eliminate): Make static on the fly.
3720 (avr_frame_pointer_required_p): Ditto.
3721 (avr_hard_regno_scratch_ok): Ditto.
3722 (avr_builtin_setjmp_frame_value): Make static on the fly.
3723 Indent according to coding rules.
3724 (avr_case_values_threshold): Ditto.
3725 (avr_attribute_table): Move down.
3726
02b76a8d
IR
37272011-10-24 Ira Rosen <ira.rosen@linaro.org>
3728
3729 PR tree-optimization/50730
3730 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
3731 analysis if encountered unsupported data-ref.
3732
5a53588f
DM
37332011-10-23 David S. Miller <davem@davemloft.net>
3734
d377a5fb
DM
3735 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
3736 cpu adjustment.
3737 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
3738 append -mcpu=v9 when -mv8plus is given.
3739
bb12a72a
DM
3740 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
3741 between float and non-float regs when VIS3.
3742 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
3743 use a restore when the source is a float register.
3744 (sparc_split_regreg_legitimate): When VIS3 allow moves between
3745 float and integer regs.
3746 (sparc_register_move_cost): Adjust to account for VIS3 moves.
3747 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
424c8389 3748 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
bb12a72a
DM
3749 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
3750 float and integer regs we sometimes need a FP_REGS class
3751 intermediate move to satisfy the reload. When this happens
3752 specify an extra cost of 2.
424c8389 3753 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
bb12a72a
DM
3754 (*movdi_insn_sp32_v9): Likewise.
3755 (*movdi_insn_sp64): Likewise.
3756 (*movsf_insn): Likewise.
3757 (*movdf_insn_sp32_v9): Likewise.
3758 (*movdf_insn_sp64): Likewise.
3759 (*zero_extendsidi2_insn_sp64): Likewise.
3760 (*sign_extendsidi2_insn): Likewise.
3761 (*movsi_insn_vis3): New insn.
3762 (*movdi_insn_sp32_v9_vis3): New insn.
3763 (*movdi_insn_sp64_vis3): New insn.
3764 (*movsf_insn_vis3): New insn.
3765 (*movdf_insn_sp32_v9_vis3): New insn.
3766 (*movdf_insn_sp64_vis3): New insn.
3767 (*zero_extendsidi2_insn_sp64_vis3): New insn.
3768 (*sign_extendsidi2_insn_vis3): New insn.
3769 (TFmode reg/reg split): Make sure both REG operands are float.
3770 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
3771 easy constant to integer reg alternatives.
3772 (*mov<VM64:mode>_insn_sp64): Likewise.
3773 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
3774 (*mov<VM32:mode>_insn_vis3): New insn.
3775 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
3776 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
a92aa31d 3777 (VM64 reg<-->reg split): New splitter for 32-bit.
bb12a72a 3778
424c8389 3779 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
b1fc9f8b
DM
3780 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
3781 Declare it.
3782 * config/sparc/sparc.md (DImode reg/reg split): Use it.
3783 (DFmode reg/reg split): Likewise.
3784
1255f800
DM
3785 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
3786 generating fzero and fone instructions.
3787 (DImode const_int --> reg splitter): Only trigger for integer regs.
3788
4d1a8838
DM
3789 * config/sparc/predicates.md (input_operand): Disallow vector
3790 constants other than 0 and -1.
3791 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
3792 NO_REGS for vector constants other than 0 and -1.
3793
5a53588f
DM
3794 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
3795 SPARC_INT_REG_P): Define.
3796 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
3797 (REGNO_OK_FOR_INDEX_P): Likewise.
3798 * config/sparc/sparc.c (gen_df_reg): Likewise.
3799 (eligible_for_return_delay): Likewise.
3800 (eligible_for_sibcall_delay): Likewise.
3801 (sparc_legitimate_address_p): Likewise.
3802 (emit_save_or_restore_regs): Likewise.
3803 (registers_ok_for_ldd_peep): Likewise.
3804 * config/spac/sparc.md (DI mode splitters): Likewise.
3805 (SF mode const splitters): Likewise.
3806 (DF mode splitters): Likewise.
3807 (32-bit DI mode logical op splitters): Likewise.
3808
0bcf216b
PC
38092011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3810
3811 PR c++/50841
3812 Revert:
3813 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3814
3815 PR c++/50810
3816 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
3817
0d459eae
UB
38182011-10-23 Uros Bizjak <ubizjak@gmail.com>
3819
3820 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
3821 (VI248_256): Remove mode iterator.
3822 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
3823 instead of gen_avx2_lshlv4di3.
3824 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
3825 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
3826
7b45b87f
UB
38272011-10-23 Uros Bizjak <ubizjak@gmail.com>
3828
3829 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
3830 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
3831 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
3832 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
3833 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
3834 iterator. Use sseintprefix mode attribute.
3835 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
3836 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
3837 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
3838 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
3839 iterator. Use sseintprefix mode attribute.
3840 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
3841 attributes.
3842 (*avx2_gatherdi<mode>): Ditto.
3843 (*avx2_gatherdi<mode>256): Ditto.
3844 (VI48_AVX2): Remove mode iterator.
3845 (gthrlastfp): Remove mode attribute.
3846
263734e1
PC
38472011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3848
3849 PR c++/50810
3850 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
3851
4cbdcd40
TV
38522011-10-23 Tom de Vries <tom@codesourcery.com>
3853
3854 PR tree-optimization/50763
a92aa31d
UB
3855 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
3856 out of ...
4cbdcd40
TV
3857 (same_succ_flush_bbs): Use same_succ_flush_bb.
3858 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
3859 release_last_vdef and delete_basic_block.
3860 (unlink_virtual_phi): New function.
3861 (update_vuses): Add and use vuse1_phi_args argument. Set var to
a92aa31d
UB
3862 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
3863 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
3864 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
3865 to limit replacement of uses. Propagate phi argument for phis with a
3866 single argument.
4cbdcd40 3867 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
a92aa31d
UB
3868 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
3869 vuse1_phi_args as argument to call to update_vuses. Call
3870 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
3871 CDI_DOMINATORS info.
4cbdcd40
TV
3872 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
3873 call to free_dominance_info. Only call calculate_dominance_info once.
3874
4db183a2
EB
38752011-10-23 Eric Botcazou <ebotcazou@adacore.com>
3876
3877 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
3878
3879 PR tree-optimization/44683
3880 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
3881 we can be sure that there are no signed zeros involved.
3882
d621a5fb
JH
38832011-10-23 Jan Hubicka <jh@suse.cz>
3884
3885 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
3886
fe646a69
UB
38872011-10-23 Uros Bizjak <ubizjak@gmail.com>
3888
3889 PR target/50788
7b45b87f 3890 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
fe646a69
UB
3891 Remove (match_dup 0).
3892 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
3893 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
3894 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
3895 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
3896 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
3897 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
3898
5bfdb7d8
IR
38992011-10-23 Ira Rosen <ira.rosen@linaro.org>
3900
3901 PR tree-optimization/50819
3902 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
3903 the last argument.
3904 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
3905 vect_analyze_data_ref_dependences.
3906 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
3907 the last argument. Check load-after-store dependence for unknown
3908 dependencies in basic blocks.
3909 (vect_analyze_data_ref_dependences): Update call to
3910 vect_analyze_data_ref_dependences.
3911 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
3912 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
3913 (vect_slp_analyze_bb_1): Update call to
3914 vect_analyze_data_ref_dependences. Don't call
3915 vect_bb_vectorizable_with_dependencies.
3916
9dc98917
DM
39172011-10-22 David S. Miller <davem@davemloft.net>
3918
3919 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
3920 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
3921 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
3922 (sparc_secondary_reload): New function.
3923
f0237267
DM
3924 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
3925 (struct processor_costs): Move from here..
3926 * config/sparc/sparc.c (struct processor_costs): To here.
3927 (sparc_costs): Mark static.
3928
89b925a6
DM
3929 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
3930 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
3931 Get rid of declarations.
3932
74b388c3
PB
39332011-10-21 Paul Brook <paul@codesourcery.com>
3934
3935 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
3936 c6x_asm_init_sections): New functions.
fe646a69 3937 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
74b388c3 3938
9956ad4d
JJ
39392011-10-21 Jakub Jelinek <jakub@redhat.com>
3940
3941 PR target/50813
3942 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
3943 V4DImode and V8SImode for !TARGET_AVX2.
3944
f561ef0f
BS
39452011-10-21 Bernd Schmidt <bernds@codesourcery.com>
3946
3947 PR bootstrap/50825
3948 * sched-deps.c (add_dependence): If not doing predication, promote
3949 REG_DEP_CONTROL to REG_DEP_ANTI.
3950
c1a330ef
GJL
39512011-10-21 Georg-Johann Lay <avr@gjlay.de>
3952
3953 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
3954 instead of X to avr_legitimize_reload_address.
3955 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
3956 first argument's type from rtx to rtx*.
3957 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
3958 Pass PX to push_reload instead of &X. Change log messages for
3959 better distinction.
3960
9200b302
RS
39612011-10-21 Roland Stigge <stigge@antcom.de>
3962
3963 PR translation/47064
3964 * params.def: Fix typo "compilatoin" -> "compilation".
3965
2c9b39ef
L
39662011-10-21 H.J. Lu <hongjiu.lu@intel.com>
3967 Kirill Yukhin <kirill.yukhin@intel.com>
3968
d25f2fb9 3969 PR target/50740
2c9b39ef
L
3970 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
3971 if max_level allows that.
3972
e2724e63
BS
39732011-10-21 Bernd Schmidt <bernds@codesourcery.com>
3974
3975 * reg-notes.def (DEP_CONTROL): New.
3976 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
3977 not doing speculation.
3978 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
3979 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
3980 * function.c (record_hard_reg_sets, record_hard_reg_uses,
3981 record_hard_reg_uses_1): Remove; move to rtlanal.c.
3982 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
3983 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
3984 (MUST_RECOMPUTE_SPEC_P): New macro.
3985 (real_insn_for_shadow): New function.
3986 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
3987 toggle_cancelled_flags): New static functions.
3988 (schedule_insn): Relax an assert to only check for empty hard back
3989 dependencies. Skip cancelled dependencies. Call
3990 check_clobbered_conditions.
3991 (copy_insn_list): Remove function, renamed moved to lists.c.
3992 (save_backtrack_point): Use new spelling copy_INSN_LIST.
3993 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
3994 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
3995 (estimate_insn_tick): Ignore cancelled dependencies.
3996 (haifa_speculate_insn): Move declaration.
3997 (try_ready): Move code into recompute_todo_spec and call it. Tweak
3998 some asserts. Ensure predicated patterns are restored if necessary.
3999 Dump DEP_CONTROL flag.
4000 (haifa_change_pattern): Merge with sched_change_pattern.
4001 (sched_change_pattern): Remove function.
4002 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
4003 uses changed to simply not test NON_FLUSH_JUMP_P.
4004 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
4005 REG_DEP_CONTROL.
4006 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
4007 (reg_pending_control_uses, control_dependency_cache): New static
4008 variables.
4009 (sched_get_reverse_condition_uncached): New function.
4010 (sd_find_dep_between): Remove pointless assert. Look in
4011 control_dependency_cache.
4012 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
4013 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
4014 and control_dependency_cache.
4015 (sd_unresolve_dep): Use dep_spec_p.
4016 (add_dependence): Now a wrapper around add_dependence_1, handling
4017 REG_DEP_CONTROL specially.
4018 (flush_pending_lists): Clear pending_jump_insns.
4019 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
4020 (sched_analyze_2): Unconditionally add to pending memory flushes,
4021 keep previous behaviour but apply it to pending_jump_insns instead.
4022 (sched_analyze_insn): Defer adding jump reg dependencies using
4023 reg_pending_control_uses; add them to the control_uses list. Handle
4024 pending_jump_insns and control_uses when adding dependence lists.
4025 (deps_analyze_insn): Update INSN_COND_DEPS.
4026 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
4027 last_pending_memory_flush.
4028 (init_deps): Initialize pending_jump_insns.
4029 (free_deps): Free control_uses.
4030 (remove_from_deps): Remove from pending_jump_insns.
4031 (init_deps_global): Allocate reg_pending_control_uses).
4032 (finish_deps_global): Free it.
4033 (add_dependence_1): Renamed from add_dependence. Handle
4034 REG_DEP_CONTROL.
4035 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
4036 (copy_INSN_LIST, concat_INSN_LIST): Declare.
4037 * sched-int.h (struct deps_reg): Add control_uses.
4038 (struct deps_desc): Add pending_jump_insns.
4039 (struct _haifa_deps_insn_data): Add cond_deps.
4040 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
4041 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
4042 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
4043 (DEP_CONTROL): New macro.
4044 (DEP_TYPES): Include it.
4045 (HARD_DEP): Adjust definition.
4046 (DEP_CANCELLED): New macro.
4047 (enum SCHED_FLAGS): Add DO_PREDICATION.
4048 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
4049 * sched-rgn.c (concat_INSN_LIST): Remove function.
4050 (deps_join): Handle pending_jump_insns.
4051 (free_pending_lists): Likewise.
4052 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
4053 schedule.
4054
d573919e
GJL
40552011-10-21 Georg-Johann Lay <avr@gjlay.de>
4056
4057 PR target/50820
4058 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
4059 (__tablejump__): Consistently use EIND for indirect jump/call.
4060 (__tablejump_elpm__): Ditto.
4061
8076c3e3
BS
40622011-10-21 Bernd Schmidt <bernds@codesourcery.com>
4063
4064 * config/c6x/c6x.md (attr "op_pattern"): New.
4065 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
4066 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
4067 Likewise.
4068 * config/c6x/c6x-mult.md: Regenerate.
4069 * config/c6x/c6x.c: Include "regrename.h".
4070 (unit_req_table): New typedef.
4071 (unit_reqs): Use it for the declaration.
4072 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
4073 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
4074 static functions.
4075 (count_unit_reqs): New arg reqs. All callers changed. Use
4076 get_unit_reqs, and don't merge here.
4077 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
4078 using unit_req_factor.
4079 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
4080 count_unit_reqs.
4081 (c6x_reorg): Add reg notes problem, and call df_analyze.
4082 * Makefile.in ($(out_object_file)): Depend on regrename.h.
4083
bb35fdd0
KT
40842011-10-21 Kai Tietz <ktietz@redhat.com>
4085
4086 * fold-const.c (simple_operand_p_2): Handle integral
4087 casts from boolean-operands.
4088
25e2c40d
JH
40892011-10-21 Jan Hubicka <jh@suse.cz>
4090
4091 * cgraph.c (dump_cgraph_node): Dump alias flag.
2c9b39ef
L
4092 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
4093 no destination.
25e2c40d
JH
4094 (get_alias_symbol): New function.
4095 (output_weakrefs): Output also weakrefs with no destinatoin.
4096 (lto_output_node): Output weakref alias flag when at function boundary.
4097
49008cb9
AS
40982011-10-21 Andrew Stubbs <ams@codesourcery.com>
4099
4100 PR target/50809
49008cb9
AS
4101 * config/arm/driver-arm.c (vendors): Make static.
4102
efc15405
UB
41032011-10-21 Uros Bizjak <ubizjak@gmail.com>
4104
4105 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
4106 (ix86_emit_swsqrtsf): Force a into register.
4107
3147591f
MS
41082011-10-20 Mike Stump <mikestump@comcast.net>
4109
4110 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
4111 after validate_change wipes it out.
4112
b66cf46e
UW
41132011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4114
4115 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
4116 before using the shufb instruction.
4117
6dd3234e
KY
41182011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
4119
4120 PR target/50766
4121 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
4122 memory operand order.
4123 (bmi2_bzhi_<mode>3): Ditto.
4124 (bmi2_pdep_<mode>3): Ditto.
4125 (bmi2_pext_<mode>3): Ditto.
4126
5a3c0068
RH
41272011-10-20 Richard Henderson <rth@redhat.com>
4128
4129 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
4130 * optabs.c (can_vec_perm_expr_p): Update to match.
4131 (expand_vec_perm_expr): Likewise.
4132 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
4133 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
4134 * doc/tm.texi.in: Likewise.
4135
74acb076
SO
41362011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
4137
4138 PR target/50572
4139 * config/i386/i386.c (processor_target_table): Change Atom
4140 align_loops_max_skip to 15.
4141
5dea5b2a
RH
41422011-10-20 Richard Henderson <rth@redhat.com>
4143
4144 * target.def (builtin_vec_perm): Remove.
4145 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4146
4147 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
4148 (IX86_BUILTIN_VEC_PERM_*): Remove.
4149 (bdesc_args): Remove vec_perm builtins
4150 (ix86_expand_builtin): Likewise.
4151 (ix86_expand_vec_perm_const_1): Rename from
4152 ix86_expand_vec_perm_builtin_1.
4153 (extract_vec_perm_cst): Merge into...
4154 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
4155 ix86_vectorize_builtin_vec_perm_ok.
4156 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4157
4158 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
4159 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4160
4161 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
4162 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
4163
bbe996ec
UB
41642011-10-20 Uros Bizjak <ubizjak@gmail.com>
4165
4166 PR target/47989
4167 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
4168 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
4169 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
4170 implements vectorized single float division and vectorized sqrtf(x)
4171 with reciprocal sequence with additional Newton-Raphson step with
4172 -ffast-math.
4173
61445bdc
DS
41742011-10-20 Dodji Seketeli <dodji@redhat.com>
4175
24685ae9
DS
4176 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
4177 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
4178 it was done in ggc-page.c.
4179
61445bdc
DS
4180 PR other/50659
4181 * doc/cppopts.texi: Use @smallexample/@end smallexample in
5dea5b2a
RH
4182 documentation for -fdebug-cpp instead of @quotation/@end quotation
4183 that is not supported by contrib/texi2pod.pl.
61445bdc 4184
f2aeb744
JH
41852011-10-19 Jan Hubicka <jh@suse.cz>
4186
4187 * ipa-inline.c (inline_small_functions): Always update all calles after
4188 inlining.
4189
8ec802d7
JH
41902011-10-19 Jan Hubicka <jh@suse.cz>
4191
4192 PR bootstrap/50709
4193 * ipa-inline.c (inline_small_functions): Fix checking code to not make
4194 effect on fibheap stability.
4195
1d6d1a92
MK
41962011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
4197
4198 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
4199
687adac0
RR
42002011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4201
5dea5b2a
RH
4202 PR target/50106
4203 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
687adac0
RR
4204 reg size from 1-3.
4205
67af611e
RG
42062011-10-20 Richard Guenther <rguenther@suse.de>
4207
4208 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
4209 and rotates to the set of expensive operations.
4210
cedced65
DM
42112011-10-19 David S. Miller <davem@davemloft.net>
4212
bbe996ec 4213 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
cedced65
DM
4214 (sparc_emit_set_const32): Likewise.
4215 (sparc_emit_set_const64_longway): Likewise.
4216 (sparc_emit_set_const64): Likewise.
4217 (sparc_legitimize_pic_address): Likewise.
4218 (memory_ok_for_ldd): Likewise.
4219
fa2988b4
DC
42202011-10-20 Dehao Chen <dehao@google.com>
4221
4222 * profile.c (compute_branch_probabilities): Compute and dump the
4223 overlap between the static estimation and the instrumentation profile.
4224 (OVERLAP_BASE): New macro.
4225 (compute_frequency_overlap): New function
4226
3f3af9df
JJ
42272011-10-19 Jakub Jelinek <jakub@redhat.com>
4228
f33fa066
JJ
4229 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
4230 d->op1 instead of d->op0 for the second vpshufb.
4231 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
4232 (ix86_expand_vec_perm_const): If mask indicates two operands are
4233 needed, but both are the same and expanding them as d.op0 == d.op1
4234 failed, retry with d.op0 != d.op1.
4235 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
4236 also for d.nelt == 32.
4237
3f3af9df
JJ
4238 PR middle-end/50754
4239 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
4240 VEC_PERM_EXPR.
4241
1f234b83
BS
42422011-10-19 Bernd Schmidt <bernds@codesourcery.com>
4243
4244 * regrename.h: New file.
4245 * regrename.c: Include it. Also include "emit-rtl.h".
4246 (struct du_head, struct du_chain, du_head_p DEF_VEC and
4247 DEF_VEC_ALLOC_P): Move to regrename.h.
4248 (do_replace): Remove declaration.
4249 (insn_rr): New variable.
4250 (cur_operand): New static variable.
4251 (regrename_chain_from_id): Renamed from chain_from_id and no longer
4252 static. All callers changed.
4253 (record_operand_use): New static function.
4254 (scan_rtx_reg): Use it.
4255 (find_best_rename_reg): New function, broken out of rename_chains.
4256 (rename_chains): Use it. Don't update chain regno and nregs here, ...
4257 (regrename_do_replace): ... do it here instead. Renamed from
4258 do_replace, and no longer static. All callers changed.
4259 (regrename_analyze): No longer static. New arg bb_mask.
4260 All callers changed. If bb_mask is nonzero, use it to limit the
4261 number of basic blocks we analyze. If we failed to analyze a block,
4262 clear insn operand data.
4263 (record_out_operands): New arg insn_info. Update cur_operand if it is
4264 nonnull.
4265 (build_def_use): If insn_rr is nonnull, pass an insn_info to
4266 record_out_operands, and update cur_operand here as well.
4267 (regrename_init, regrename_finish): New functions.
4268 (regrename_optimize): Use them.
4269 * Makefile.in (regrename.o): Adjust dependencies.
4270
40f73edd
TV
42712011-10-19 Tom de Vries <tom@codesourcery.com>
4272
4273 PR tree-optimization/50769
4274 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
4275 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
4276 dummy argument .MEM to phi when increasing number of arguments of phi by
4277 redirecting edges to the block with phi.
4278
87fb500b
RO
42792011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4280
4281 PR bootstrap/50777
4282 * configure.ac: Save and restore CXXFLAGS around
4283 gcc_AC_CHECK_DECLS uses.
4284 Check for madvise() declaration with g++ if --enable-build-with-cxx.
4285 * configure: Regenerate.
4286 * config.in: Regenerate.
4287 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
4288
09dbcd96
AO
42892011-10-19 Alexandre Oliva <aoliva@redhat.com>
4290
4291 PR debug/49310
4292 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
4293 (variable_part): Replace offset with union.
4294 (enum onepart_enum, onepart_enum_t): New.
4295 (variable_def): Drop cur_loc_changed, add onepart.
4296 (value_chain_def, const_value_chain): Remove.
4297 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
4298 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
4299 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
4300 (value_chain_pool, value_chains): Remove.
4301 (dropped_values): New.
4302 (struct parm_reg): Only if HAVE_window_save.
4303 (vt_stack_adjustments): Don't record register arguments.
4304 (dv_as_rtx): New.
4305 (dv_onepart_p): Return a onepart_enum_t.
4306 (onepart_pool): New.
4307 (dv_pool): Remove.
4308 (dv_from_rtx): New.
4309 (variable_htab_free): Release onepart aux data. Reset flags.
4310 (value_chain_htab_hash, value_chain_htab_eq): Remove.
4311 (unshare_variable): Use onepart field. Propagate onepart aux
4312 data or offset. Drop cur_loc_changed.
4313 (val_store): Cope with NULL insn. Rephrase dump output. Check
4314 for unsuitable locs. Add FIXME on using cselib locs.
4315 (val_reset): Remove FIXME of unfounded concerns.
4316 (val_resolve): Check for unsuitable locs. Add FIXME on using
4317 cselib locs.
4318 (variable_union): Use onepart field, adjust access to offset.
4319 (NO_LOC_P): New.
4320 (VALUE_CHANGED, DECL_CHANGED): Update doc.
4321 (set_dv_changed): Clear NO_LOC_P when changed.
4322 (find_loc_in_1pdv): Use onepart field.
4323 (intersect_loc_chains): Likewise.
4324 (unsuitable_loc): New.
4325 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
4326 (add_value_chain, add_value_chains): Remove.
4327 (add_cselib_value_chains, remove_value_chain): Likewise.
4328 (remove_value_chains, remove_cselib_value_chains): Likewise.
4329 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
4330 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
4331 (variable_merge_over_cur): Likewise. Adjust access to offset.
4332 Drop cur_loc_changed.
4333 (variable_merge_over_src): Use onepart field.
4334 (remove_duplicate_values): Likewise.
4335 (variable_post_merge_new_vals): Likewise.
4336 (find_mem_expr_in_1pdv): Likewise.
4337 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
4338 and value chains.
4339 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
4340 (variable_different_p): Use onepart field. Move onepart test out
4341 of the loop.
4342 (argument_reg_set): Drop.
4343 (add_uses, add_stores): Preserve but do not record in dynamic
4344 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
4345 Avoid unsuitable address expressions.
4346 (EXPR_DEPTH): Unlimit.
4347 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
4348 (prepare_call_arguments): Use DECL_RTL_IF_SET.
4349 (dump_var): Adjust access to offset.
4350 (variable_from_dropped, recover_dropped_1paux): New.
4351 (variable_was_changed): Drop cur_loc_changed. Use onepart.
4352 Preserve onepart aux in empty_var. Recover empty_var and onepart
4353 aux from dropped_values.
4354 (find_variable_location_part): Special-case onepart. Adjust
4355 access to offset.
4356 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
4357 access to offset. Initialize onepaux. Drop value chains.
4358 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
4359 (VEC (variable, heap), VEC (rtx, stack)): Define.
4360 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
4361 ignore_cur_loc. Add expanding, pending, depth.
4362 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
4363 (loc_exp_dep_insert, loc_exp_dep_set): New.
4364 (notify_dependents_of_resolved_value): New.
4365 (update_depth, vt_expand_var_loc_chain): New.
4366 (vt_expand_loc_callback): Revamped.
4367 (resolve_expansions_pending_recursion): New.
4368 (INIT_ELCD, FINI_ELCD): New.
4369 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
4370 parameter, adjust all callers.
4371 (vt_expand_loc_dummy): Drop.
4372 (vt_expand_1pvar): New.
4373 (emit_note_insn_var_location): Operate on non-debug decls only.
4374 Revamp multi-part cur_loc recomputation and one-part expansion.
4375 Drop cur_loc_changed. Adjust access to offset.
4376 (VEC (variable, heap)): Drop.
4377 (changed_variables_stack, changed_values_stack): Drop.
4378 (check_changed_vars_0, check_changed_vars_1): Remove.
4379 (check_changed_vars_2, check_changed_vars_3): Remove.
4380 (values_to_stack, remove_value_from_changed_variables): New.
4381 (notify_dependents_of_changed_value, process_changed_values): New.
4382 (emit_notes_for_changes): Revamp onepart updates.
4383 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
4384 and value chains. Propagate onepaux. Recover empty_var and onepaux
4385 from dropped_values.
4386 (emit_notes_for_differences_2): Drop value chains.
4387 (emit_notes_in_bb): Adjust.
4388 (vt_emit_notes): Drop value chains, changed_variables_stack.
4389 Initialize and release dropped_values.
4390 (create_entry_value): Revamp.
4391 (vt_add_function_parameter): Use new interface.
4392 (note_register_arguments): Remove.
4393 (vt_initialize): Drop value chains and register arguments.
4394 (vt_finalize): Drop value chains. Release windowed_parm_regs only
4395 if HAVE_window_save.
4396 * rtl.h: Document various pass-local uses of RTL flags.
4397 * tree.h (DECL_RTL_KNOWN_SET): New.
4398 * doc/invoke.texi (param max-vartrack-expr-depth): Update
4399 description and default.
4400
2f47b8d3
GJL
44012011-10-19 Georg-Johann Lay <avr@gjlay.de>
4402
4403 PR target/50447
4404 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
4405 (adjust_len): Ditto.
4406 (addhi3): Don't pipe through short; use gen_int_mode instead.
4407 Prior to reload, expand to gen_addhi3_clobber.
4408 (*addhi3): Use avr_out_plus_noclobber if applicable, use
4409 out_plus_noclobber in cc and adjust_len attribute.
4410 (addhi3_clobber): 2 new RTL peepholes.
4411 (addhi3_clobber): New insn.
4412 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
4413 * config/avr/avr.c (avr_out_plus_noclobber): New function.
4414 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
4415 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
4416 Set cc0 to set_zn for adiw on 16-bit values.
4417 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
4418 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
4419
dd46054a
RG
44202011-10-19 Richard Guenther <rguenther@suse.de>
4421
4422 PR middle-end/50780
4423 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
4424 the condition is properly gimple before using it.
4425 * tree-eh (stmt_could_throw_1_p): Properly extract the
4426 operation type from comparisons.
4427
9aaa9e89
RS
44282011-10-19 Roland Stigge <stigge@antcom.de>
4429
4430 PR translation/48638
4431 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
4432
44332011-10-19 Roland Stigge <stigge@antcom.de>
4434
4435 PR translation/49517
4436 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
4437
e256dfce
RG
44382011-10-19 Richard Guenther <rguenther@suse.de>
4439
4440 PR middle-end/50768
4441 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
4442
854b5fd7
AM
44432011-10-19 Andrey Belevantsev <abel@ispras.ru>
4444
4445 PR rtl-optimization/50340
4446 * sel-sched-ir.c (update_target_availability): LHS register
4447 availability is not known if the unavailable LHS of the other
4448 expression is a different register.
4449
7f9a3dcd
UW
44502011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4451
4452 PR target/50310
4453 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
4454 floating-point comparisons.
4455
c9552bff
JH
44562011-10-19 Jan Hubicka <jh@suse.cz>
4457
bbe996ec
UB
4458 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
4459 destination declared.
c9552bff
JH
4460 (output_weakrefs): New function.
4461 * varpool.c (varpool_create_variable_alias): Handle external aliases.
4462
09175199
JJ
44632011-10-19 Jakub Jelinek <jakub@redhat.com>
4464
4465 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
4466 second argument instead of mode.
4467
b6f9a04a
JJ
44682011-10-18 Jakub Jelinek <jakub@redhat.com>
4469
4470 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
4471 mode SUBREG of operands[0] as target.
4472 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
4473 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
4474 (expand_vec_perm_1): Handle identity and some broadcast
4475 permutations.
4476 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
4477 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
4478 For d->testing_p return true earlier to avoid creating more GC
4479 garbage.
4480 (expand_vec_perm_vpermq_perm_1): New function.
4481 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
4482 earlier to avoid creating more GC garbage. Fix handling of
4483 V16HImode. Avoid some SUBREGs in SET_DEST.
4484 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
4485 vector modes.
4486 (expand_vec_perm_vpshufb4_vpermq2): New function.
4487 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
4488 and expand_vec_perm_vpshufb4_vpermq2.
4489
6d3f1a13
AS
44902011-10-18 Andrew Stubbs <ams@codesourcery.com>
4491
4492 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
4493 before exiting.
4494
3d71881d
AS
44952011-10-18 Andrew Stubbs <ams@codesourcery.com>
4496
4497 PR tree-optimization/50717
3d71881d
AS
4498 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
4499 parameter. Calculate 'type' from stmt.
4500 (convert_mult_to_widen): Update call the is_widening_mult_p.
4501 (convert_plusminus_to_widen): Likewise.
4502
c5d94218
UW
45032011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4504
4505 * config/spu/spu.c (struct machine_function): New data structure.
4506 (spu_init_machine_status): New function.
4507 (spu_option_override): Install it.
4508 (get_pic_reg): Set and use cfun->machine->pic_reg.
4509 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
4510 (need_to_save_reg): Use cfun->machine->pic_reg instead of
4511 checking crtl->uses_pic_offset_table.
4512 (spu_expand_prologue): Likewise.
4513
5dac1dae
JJ
45142011-10-18 Jakub Jelinek <jakub@redhat.com>
4515
4516 PR tree-optimization/50735
4517 * function.c (gimplify_parameters): Use create_tmp_var instead of
4518 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
4519 or vector type, set DECL_GIMPLE_REG_P.
4520
33aa08b3
AS
45212011-10-18 Andrew Stubbs <ams@codesourcery.com>
4522
4523 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
4524 * config/arm/arm.opt: Add 'native' processor_type and
4525 arm_arch enum values.
4526 * config/arm/arm.h (host_detect_local_cpu): New prototype.
4527 (EXTRA_SPEC_FUNCTIONS): New define.
4528 (MCPU_MTUNE_NATIVE_SPECS): New define.
4529 (DRIVER_SELF_SPECS): New define.
4530 * config/arm/driver-arm.c: New file.
4531 * config/arm/x-arm: New file.
4532 * doc/invoke.texi (ARM Options): Document -mcpu=native,
4533 -mtune=native and -march=native.
4534
ea3f6aa8
AM
45352011-10-18 Alexander Monakov <amonakov@ispras.ru>
4536
4537 PR rtl-optimization/50205
4538 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
4539 p->x is a register. Forbid substitution when the same register is
4540 found in a different mode.
4541 (count_occurrences_equiv): Assert that 'what' is a register.
4542
748c5114
RG
45432011-10-18 Richard Guenther <rguenther@suse.de>
4544
4545 PR tree-optimization/50767
4546 * tree-ssa-pre.c (create_expression_by_pieces): Update the
4547 folded statement.
4548
6cc4833a
JB
45492011-10-18 Julian Brown <julian@codesourcery.com>
4550
4551 * config/arm/arm.c (arm_block_move_unaligned_straight)
4552 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
4553 (arm_movmemqi_unaligned): New.
4554 (arm_gen_movmemqi): Support unaligned block copies.
4555
36ba4aae
IR
45562011-10-18 Ira Rosen <ira.rosen@linaro.org>
4557
4558 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
4559 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
4560 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
4561 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4562 (op_code_prio): Likewise.
4563 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
4564 * optabs.c (optab_for_tree_code): Handle
4565 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4566 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
4567 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
4568 * genopinit.c (optabs): Initialize the new optabs.
4569 * expr.c (expand_expr_real_2): Handle
4570 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
4571 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
4572 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
4573 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
4574 VEC_WIDEN_LSHIFT_LO_EXPR): New.
4575 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
4576 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4577 vect_recog_widen_shift_pattern.
4578 (vect_handle_widen_mult_by_const): Rename...
4579 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
4580 Add a new argument, update documentation.
4581 (vect_recog_widen_mult_pattern): Assume that only second
4582 operand can be constant. Update call to
4583 vect_handle_widen_op_by_const.
4584 (vect_recog_over_widening_pattern): Fix typo.
4585 (vect_recog_widen_shift_pattern): New.
4586 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
4587 widening shifts.
4588 (supportable_widening_operation): Likewise.
4589 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
4590 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4591 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4592 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
4593 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
4594 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
4595 Likewise.
4596 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
4597 New.
4598 * config/arm/iterators.md (V_innermode): New.
4599 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
4600 for widening shift.
4601
d3553615
RG
46022011-10-18 Richard Guenther <rguenther@suse.de>
4603
4604 * tree-ssa-alias.h (struct pt_solution): Remove
4605 vars_contains_restrict member.
4606 (pt_solutions_same_restrict_base): Remove.
4607 (pt_solution_set): Adjust.
4608 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
4609 vars_contains_restrict handling.
4610 (dump_points_to_solution): Likewise.
4611 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
4612 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
4613 field.
4614 (new_var_info): Do not initialize it.
4615 (ipa_escaped_pt): Adjust.
4616 (make_constraint_from_restrict): Make the tag global.
4617 (make_constraint_from_global_restrict): New function.
4618 (make_constraint_from_heapvar): Remove.
4619 (create_variable_info_for): Do not make restrict vars point
4620 to NONLOCAL.
4621 (intra_create_variable_infos): Likewise.
4622 (find_what_var_points_to): Remove vars_contains_restrict handling.
4623 (pt_solution_set): Adjust.
4624 (pt_solution_ior_into): Likewise.
4625 (pt_solutions_same_restrict_base): Remove.
4626 (compute_points_to_sets): Do not test is_restrict_var.
4627 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4628 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4629
266fbb79
TV
46302011-10-18 Tom de Vries <tom@codesourcery.com>
4631
4632 PR tree-optimization/50672
4633 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
4634 factored out of ...
4635 (mark_virtual_phi_result_for_renaming): Use
4636 mark_virtual_operand_for_renaming.
4637 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
4638 * tree-ssa-tail-merge.c (release_last_vdef): New function.
4639 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
4640 deleted basic block.
4641 (tail_merge_optimize): Add argument to call to purge_bbs.
4642
cab35794
RG
46432011-10-18 Richard Guenther <rguenther@suse.de>
4644
4645 PR middle-end/50716
4646 * expr.c (get_object_or_type_alignment): New function.
4647 (expand_assignment): Use it.
4648 (expand_expr_real_1): Likewise.
4649
d17687f6
DS
46502011-10-18 Dodji Seketeli <dodji@redhat.com>
4651
4652 PR bootstrap/50760
4653 * input.c (dump_line_table_statistics): Use long, not size_t.
4654
b75eeb37
EB
46552011-10-17 Eric Botcazou <ebotcazou@adacore.com>
4656
4657 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
4658
08b2bad2
SB
46592011-10-17 Simon Baldwin <simonb@google.com>
4660 Ian Lance Taylor <iant@google.com>
4661
4662 * configure.ac: Add --with-native-system-header-dir. Set and
4663 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
4664 when setting target_header_dir.
4665 * config.gcc: Always set native_system_header_dir.
4666 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
4667 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
4668 use i386/t-djgpp.
4669 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
4670 native_system_header_dir.
4671 (spu-*-elf*): Set native_system_header_dir.
4672 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
4673 @NATIVE_SYSTEM_HEADER_DIR@.
4674 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
4675 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
4676 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4677 STANDARD_INCLUDE_COMPONENT.
4678 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
4679 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
4680 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
4681 STANDARD_INCLUDE_COMPONENT.
4682 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
4683 * config/i386/t-mingw-w32: Likewise.
4684 * config/i386/t-mingw-w64: Likewise.
4685 * config/spu/t-spu-elf: Likewise.
4686 * config/i386/t-djgpp: Remove.
4687 * config/t-gnu: Remove.
4688 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
4689 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
4690 STANDARD_INCLUDE_COMPONENT.
4691 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
4692 * config/spu/spu-elf.h: Likewise.
4693 * config/vms/xm-vms.h: Likewise.
4694 * config/gnu.h: Likewise.
4695 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
4696 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
4697 NATIVE_SYSTME_HEADER_COMPONENT.
4698 * doc/install.texi (Configuration): Document
4699 --with-native-system-header-dir. Mention it in the documentation
4700 for --with-sysroot and --with-build-sysroot.
4701 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
4702 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
4703 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
4704 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
4705 * doc/fragments.texi (Target Fragment): Don't document
4706 NATIVE_SYSTEM_HEADER_DIR.
4707 * configure, doc/tm.texi: Rebuild.
4708
d1947945
RH
47092011-10-17 Richard Henderson <rth@redhat.com>
4710
4711 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
4712 is the constraint.
4713
9d4dedaa
RH
4714 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
4715 patterns.
4716 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
4717 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
4718
e00560c2
DM
47192011-10-17 David S. Miller <davem@davemloft.net>
4720
4721 * config/sparc/sparc-modes.def: Add single entry vector modes for
4722 DImode and SImode.
d1947945 4723 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
e00560c2
DM
4724 mode iterators.
4725 (mov<V32:mode>): Revert back to plain SFmode pattern.
4726 (*movsf_insn): Likewise.
4727 (mov<V64:mode>): Revert back to plain DFmode pattern.
4728 (*movdf_insn_sp32): Likewise.
4729 (*movdf_insn_sp32_v9): Likewise.
4730 (*movdf_insn_sp64): Likewise.
4731 (V64 mode splitters) Likewise.
4732 (addsi3): Remove VIS alternatives.
4733 (subsi3): Likewise.
4734 (and<V64I:mode>3): Revert to DImode only pattern.
4735 (and<V64I:mode>3_sp32): Likewise.
4736 (*and<V64I:mode>3_sp64): Likewise.
4737 (and<V32I:mode>3): Likewise.
4738 (*and_not_<V64I:mode>_sp32): Likewise.
4739 (*and_not_<V64I:mode>_sp64): Likewise.
4740 (*and_not_<V32I:mode>): Likewise.
4741 (ior<V64I:mode>3): Likewise.
4742 (*ior<V64I:mode>3_sp32): Likewise.
4743 (*ior<V64I:mode>3_sp64): Likewise.
4744 (ior<V32I:mode>3): Likewise.
4745 (*or_not_<V64I:mode>_sp32): Likewise.
4746 (*or_not_<V64I:mode>_sp64): Likewise.
4747 (*or_not_<V32I:mode>): Likewise.
4748 (xor<V64I:mode>3): Likewise.
4749 (*xor<V64I:mode>3_sp32): Likewise.
4750 (*xor<V64I:mode>3_sp64): Likewise.
4751 (xor<V32I:mode>3): Likewise.
4752 (V64I mode splitters): Likewise.
4753 (*xor_not_<V64I:mode>_sp32): Likewise.
4754 (*xor_not_<V64I:mode>_sp64): Likewise.
4755 (*xor_not_<V32I:mode>): Likewise.
4756 (one_cmpl<V64I:mode>2): Likewise.
4757 (*one_cmpl<V64I:mode>2_sp32): Likewise.
4758 (*one_cmpl<V64I:mode>2_sp64): Likewise.
4759 (one_cmpl<V32I:mode>2): Likewise.
4760 (VM32, VM64, VMALL): New mode iterators.
4761 (vbits, vconstr, vfptype): New mode attributes.
4762 (mov<VMALL:mode>): New expander.
4763 (*mov<VM32:mode>_insn): New insn.
4764 (*mov<VM64:mode>_insn_sp64): New insn.
4765 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
4766 specifically for the register to memory case.
4767 (vec_init<mode>): New expander.
4768 (VADDSUB): New mode iterator.
4769 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
4770 with...
4771 (<plusminus_insn><mode>3): New consolidated pattern.
4772 (VL): New mode iterator for logical operations.
4773 (vlsuf): New more attribute.
4774 (vlop): New code iterator.
4775 (vlinsn, vlninsn): New code attributes.
4776 (<code><mode>3): New insn to non-negated vector logical ops.
4777 (*not_<code><mode>3): Likewise for negated variants.
4778 (*nand<mode>_vis): New insn.
4779 (vlnotop): New code iterator.
4780 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
4781 (one_cmpl<mode>2): New insn.
4782 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
4783 (bshuffle<VM64:mode>_vis): Likewise.
4784 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
4785 (fp<plusminus_insn>64_vis): Use V1DI mode.
4786 (VASS mode iterator): Use V1SI not SI mode.
4787 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
4788 single-entry vector mode changes.
4789 (sparc_expand_builtin): Likewise.
4790 (sparc_expand_vector_init): New function.
4791 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
4792
6e796a83
KT
47932011-10-17 Kai Tietz <ktietz@redhat.com>
4794
4795 * fold-const.c (simple_operand_p_2): New function.
4796 (fold_truthop): Rename to
4797 (fold_truth_andor_1): function name.
4798 Additionally remove branching creation for logical and/or.
4799 (fold_truth_andor): Handle branching creation for logical and/or here.
4800
1eca213e
AK
48012011-10-17 Andi Kleen <ak@linux.intel.com>
4802
b75eeb37 4803 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
1eca213e 4804
7c3297ce
GJL
48052011-10-17 Georg-Johann Lay <avr@gjlay.de>
4806
4807 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
4808 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
4809 (adjust_len): Add alternative "call".
4810 (isa, enabled): New insn attributes.
4811 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
4812 mcu_mega attribute.
4813 (*sbrx_branch<mode>): Ditto.
4814 (*sbrx_and_branch<mode>): Ditto.
4815 (*sbix_branch): Ditto.
4816 (*sbix_branch_bit7): Ditto.
4817 (*sbix_branch_tmp): Ditto.
4818 (*sbix_branch_tmp_bit7): Ditto.
4819 (jump): Ditto.
4820 (negsi2): Use attribute "isa" instead of assembler dialect.
4821 (extendhisi2): Ditto.
4822 (call_insn, call_value_insn): Set adjust_len attribute.
4823 (indirect_jump): Indent to coding rules.
4824 (call_prologue_saves): Use isa attribute instead of mcu_mega.
4825 (epilogue_restores): Ditto. Fix setting of SP as described in the
4826 RTX pattern.
4827 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
4828 and *indirect_jump_avr6.
4829 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
4830 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
4831 (*tablejump_rjmp, *tablejump_lib): Remove.
4832 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
4833
3e8f7630
PC
48342011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4835
4836 PR c++/50757
fc8396e9 4837 * doc/invoke.texi ([Wnonnull]): Update.
3e8f7630 4838
42a04c48
RH
48392011-10-17 Richard Henderson <rth@redhat.com>
4840
4841 PR 50746
4842 * optabs.c (expand_vec_perm_expr): Fix indexing error.
4843
d11aaed7
SDJ
48442011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
4845
bbe996ec 4846 * configure.ac: Display `yes' if the SystemTap header has been found.
d11aaed7
SDJ
4847 * configure: Regenerate.
4848
711a3d82
AK
48492011-10-08 Andi Kleen <ak@linux.intel.com>
4850
4851 PR other/50636
4852 * config.in, configure: Regenerate.
4853 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
4854 * ggc-page.c (USING_MADVISE): Add.
4855 (page_entry): Add discarded field.
4856 (alloc_page): Check for discarded pages.
4857 (release_pages): Add USING_MADVISE branch.
4858
7d5a0f1b
RG
48592011-10-17 Richard Guenther <rguenther@suse.de>
4860
4861 PR tree-optimization/50729
bbe996ec 4862 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
7d5a0f1b
RG
4863 (simplify_conversion_using_ranges): Properly test the
4864 intermediate result.
4865
b9bd6f74
TT
48662011-10-15 Tom Tromey <tromey@redhat.com>
4867 Dodji Seketeli <dodji@redhat.com>
4868
4869 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
4870 * ggc-none.c (ggc_round_alloc_size): New public stub function.
4871 * ggc-page.c (ggc_alloced_size_order_for_request): New static
4872 function. Factorized from ggc_internal_alloc_stat.
4873 (ggc_round_alloc_size): New public function. Uses
4874 ggc_alloced_size_order_for_request.
4875 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
4876 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
4877 from ggc_internal_alloc_zone_stat.
4878 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
4879 * toplev.c (general_init): Initialize
4880 line_table->alloced_size_for_request.
4881
64a1a422
TT
48822011-10-15 Tom Tromey <tromey@redhat.com>
4883 Dodji Seketeli <dodji@redhat.com>
4884
bbe996ec 4885 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
64a1a422
TT
4886 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
4887 new counters.
4888 (dump_line_table_statistics): Define new function.
4889 * input.h (dump_line_table_statistics): Declare new function.
4890 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
4891
847e697a
TT
48922011-10-15 Tom Tromey <tromey@redhat.com>
4893 Dodji Seketeli <dodji@redhat.com>
4894
4895 * doc/cppopts.texi: Document -fdebug-cpp.
bbe996ec 4896 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
847e697a 4897
07a0b324
TT
48982011-10-15 Tom Tromey <tromey@redhat.com>
4899 Dodji Seketeli <dodji@redhat.com>
4900
4901 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
4902 location parameter.
4903 * diagnostic.c (diagnostic_report_current_module): Add a location
4904 parameter to the function definition. Use it instead of
4905 input_location. Resolve the virtual location rather than just
4906 looking up its map and risking to touch a resulting macro map.
4907 (default_diagnostic_starter): Pass the relevant diagnostic
4908 location to diagnostic_report_current_module.
4909 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
4910 (virt_loc_aware_diagnostic_finalizer): Likewise.
4911 (diagnostic_report_current_function): Pass the
4912 relevant location to diagnostic_report_current_module.
4913 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
4914 new function.
4915 * toplev.c (general_init): By default, use the new
4916 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
4917 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
4918
92582b75
TT
49192011-10-15 Tom Tromey <tromey@redhat.com>
4920 Dodji Seketeli <dodji@redhat.com>
4921
4922 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
4923 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
4924 preprocessor related options.
4925
46427374
TT
49262011-10-15 Tom Tromey <tromey@redhat>
4927 Dodji Seketeli <dodji@redhat.com>
4928
4929 * input.h (struct expanded_location): Move to libcpp/line-map.h.
4930 (LOCATION_COLUMN): New accessor
4931 (in_system_header_at): Use linemap_location_in_system_header_p.
4932 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
bbe996ec 4933 touching the internals of struct line_map. Use the public API instead.
46427374
TT
4934 (diagnostic_report_diagnostic): Don't use relational operator '<'
4935 on virtual locations. Use linemap_location_before_p instead.
4936 * input.c (expand_location): Adjust to expand to the tokens'
4937 spelling location when macro location tracking is on.
4938
4939
6c995fa5
AK
49402011-10-08 Andi Kleen <ak@linux.intel.com>
4941
4942 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
4943
b74bdc61
AK
49442011-10-13 Andi Kleen <ak@linux.intel.com>
4945
4946 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
4947
aede1227
IR
49482011-10-16 Ira Rosen <ira.rosen@linaro.org>
4949
4950 PR tree-optimization/50727
4951 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
4952 DEF_STMT to the list of statements to be replaced by the
4953 pattern statements.
4954
bd8c998f
EB
49552011-10-16 Eric Botcazou <ebotcazou@adacore.com>
4956
4957 PR rtl-optimization/50615
4958 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
4959
71c92d17
JJ
49602011-10-16 Jakub Jelinek <jakub@redhat.com>
4961
4962 PR tree-optimization/50596
4963 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
4964 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4965 vect_recog_bool_pattern.
4966 (check_bool_pattern, adjust_bool_pattern_cast,
4967 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
4968
71c92d17 49692011-10-16 Ira Rosen <ira.rosen@linaro.org>
6aa904c4
IR
4970
4971 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
4972 treat the first load of the node as the first element in its
4973 interleaving chain.
4974 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
4975 necessary and possible.
4976 (vect_build_slp_tree): Add new argument. Allow load groups of any size
4977 in basic blocks. Keep all the loads for further permutation check.
4978 Use the new argument to determine if there is a permutation. Update
4979 the recursive calls.
4980 (vect_supported_load_permutation_p): Allow subchains of interleaving
4981 chains in basic block vectorization.
4982 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
4983 Check load permutation based on the new parameter.
4984 (vect_schedule_slp_instance): Don't start from the first element in
4985 interleaving chain unless the loads are permuted.
4986
1bb7e8f8
JH
49872011-10-15 Jan Hubicka <jh@suse.cz>
4988
4989 PR target/48668
4990 PR target/50689
4991 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
4992 after function body.
4993
2635892a
RH
49942011-10-15 Richard Henderson <rth@redhat.com>
4995
4996 * tree-vect-slp.c: Include langhooks.h.
4997 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
4998 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
4999 mask creation for VEC_PERM_EXPR.
5000 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
5001 not the builtin.
5002 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
5003 * Makefile.in (tree-vect-slp.o): Update dependency.
5004 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
5005
89e4bd80
AM
50062011-10-15 Alan Modra <amodra@gmail.com>
5007
5008 PR bootstrap/50738
5009 * ifcvt.c (dead_or_predicable): Revert accidental commit with
5010 HAVE_simple_return test.
5011
387748de
AM
50122011-10-15 Alan Modra <amodra@gmail.com>
5013
ac5b90bd
AM
5014 * ifcvt.c (dead_or_predicable): Disable if-conversion when
5015 doing so is likely to kill a shrink-wrapping opportunity.
5016
387748de
AM
5017 PR rtl-optimization/49941
5018 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
5019
5020 * rtl.h (set_return_jump_label): Declare.
5021 * function.c (set_return_jump_label): New function, extracted..
5022 (thread_prologue_and_epilogue_insns): ..from here. Use it in
5023 another instance to set return jump_label.
5024 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
5025 * reorg.c (find_end_label): Likewise.
5026
a0bd60d1
DM
50272011-10-14 David S. Miller <davem@davemloft.net>
5028
5029 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
5030 with a more complete cpp test.
5031 * config/sparc/linux64.h: Likewise.
5032 * config/sparc/linux.h: Likewise.
5033 * config/sparc/sparc.opt (sparc_debug): New target variable.
5034 (mdebug): New target option.
5035 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
5036 TARGET_DEBUG_OPTIONS): New defines.
5037 * config/sparc/sparc.c (debug_target_flag_bits,
5038 debug_target_flags): New functions.
5039 (sparc_option_override): Add name strings back to cpu_table[].
5040 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
5041 out the target flags before and after override processing as well
5042 as the selected cpu. If MASK_V8PLUS, make sure that the selected
5043 cpu is at least v9.
5044
6ff9d294
OE
50452011-10-15 Oleg Endo <oleg.endo@t-online.de>
5046
5047 PR target/49263
5048 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
5049 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
5050 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
5051 and instruction commutative.
5052 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
5053 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
5054 tstsi_t_zero_extract_subreg_xor_little,
5055 tstsi_t_zero_extract_subreg_xor_big): New insns.
5056 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
5057 asm output.
6d0c87b5 5058 (*andsi_compact): Reorder alternatives so that K08 is considered first.
6ff9d294 5059
034e3eb0
EB
50602011-10-14 Eric Botcazou <ebotcazou@adacore.com>
5061
5062 PR target/50354
5063 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
5064 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
5065
f11502ac
GP
50662011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
5067
5068 * invoke.texi (AVR Options): Avoid \leq{}.
5069
fc1f4caf
KT
50702011-10-14 Kai Tietz <ktietz@redhat.com>
5071
5072 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
5073 transformation the operands have compatible types.
5074
1c4153dd
JJ
50752011-10-14 Jakub Jelinek <jakub@redhat.com>
5076
5077 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
5078 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
5079 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
5080 mode iterator and any_extend code iterator.
6d0c87b5 5081 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
1c4153dd
JJ
5082 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
5083 also for TARGET_SSE4_1 using pmuldq insn.
5084 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
5085 (sse2_sse4_1): New code attr.
5086 (udot_prodv4si): Macroize using any_extend code iterator.
5087 (<s>dot_prodv8si): New expander.
5088
e14ca379
YV
50892011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
5090
5091 * config/i386/i386.c (atom_cost): Changed cost for loading
5092 QImode using movzbl.
5093
04fe093a
MM
50942011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5095
5096 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
5097 change on October 11th, 2011.
5098
2e2accf8
JJ
50992011-10-14 Jakub Jelinek <jakub@redhat.com>
5100
5101 * config/i386/sse.md (vec_interleave_high<mode>,
6d0c87b5 5102 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
2e2accf8
JJ
5103 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
5104 (ix86_expand_vec_perm_builtin_1): Call it.
5105
a0814752
GJL
51062011-10-14 Georg-Johann Lay <avr@gjlay.de>
5107
5108 Fix thinko from r179765
5109 * config/avr/avr.c (avr_option_override): Don't override
5110 flag_omit_frame_pointer if not actually needed.
04fe093a 5111
e8ac5ac9
GJL
51122011-10-14 Georg-Johann Lay <avr@gjlay.de>
5113
5114 PR target/46278
5115 * doc/invoke.texi (AVR Options): Document -mstrict-X.
5116
5117 * config/avr/avr.opt (-mstrict-X): New option.
5118 (avr_strict_X): New variable reflecting -mstrict-X.
5119 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
5120 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
5121 (avr_legitimate_address_p): Pass outer_code to
5122 avr_reg_ok_for_addr_p and use that function in case PLUS.
5123 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
5124 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
5125 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
6d0c87b5 5126
8c353205
JJ
51272011-10-14 Jakub Jelinek <jakub@redhat.com>
5128
267ff156
JJ
5129 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
5130 of VI_128.
5131
6d0c87b5 5132 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
8c353205
JJ
5133 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
5134 Use <sseinsnmode> instead of TI in mode attr.
5135
41aac0de
DAG
51362011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
5137
5138 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
5139 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
5140 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
5141 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
5142
cfe52743
DAG
51432011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
5144
5145 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
5146 (arm_output_strex): Support strexd.
5147 (arm_output_it): New helper to output it in Thumb2 mode only.
5148 (arm_output_sync_loop): Support DI mode. Change comment to
5149 not support const_int.
5150 (arm_expand_sync): Support DI mode.
5151 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
5152 and LDREXD.
5153 * config/arm/iterators.md (NARROW): move from sync.md.
5154 (QHSD): New iterator for all current ARM integer modes.
5155 (SIDI): New iterator for SI and DI modes only.
5156 * config/arm/sync.md (sync_predtab): New mode_attr.
5157 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
5158 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
5159 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
5160 (sync_nandsi): Fold into sync_nand<mode>.
5161 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
5162 (sync_new_nandsi): Fold into sync_new_nand<mode>.
5163 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
5164 (sync_old_nandsi): Fold into sync_old_nand<mode>.
5165 (sync_compare_and_swap<mode>): Support SI & DI.
5166 (sync_lock_test_and_set<mode>): Likewise.
5167 (sync_<sync_optab><mode>): Likewise.
5168 (sync_nand<mode>): Likewise.
5169 (sync_new_<sync_optab><mode>): Likewise.
5170 (sync_new_nand<mode>): Likewise.
5171 (sync_old_<sync_optab><mode>): Likewise.
5172 (sync_old_nand<mode>): Likewise.
5173 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
5174 (arm_sync_lock_test_and_setsi): Likewise.
5175 (arm_sync_new_<sync_optab>si): Likewise.
5176 (arm_sync_new_nandsi): Likewise.
5177 (arm_sync_old_<sync_optab>si): Likewise.
5178 (arm_sync_old_nandsi): Likewise.
5179 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
5180 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
5181 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
5182 (arm_sync_new_nand<mode> NARROW): Likewise.
5183 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
5184 (arm_sync_old_nand<mode> NARROW): Likewise.
5185
3e2a46fe
DAG
51862011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
5187
5188 PR target/48126
5189 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
5190
80651d8e
DAG
51912011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
5192
5193 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
5194
f5fb344b
PC
51952011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5196
5197 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
5198
9dd58aa4
JJ
51992011-10-14 Jakub Jelinek <jakub@redhat.com>
5200
6d0c87b5
UB
5201 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
5202 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
9dd58aa4 5203
f6e52e91
RG
52042011-10-14 Richard Guenther <rguenther@suse.de>
5205
5206 PR tree-optimization/50723
5207 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
5208
3cc2dd4b
NP
52092011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
5210
5211 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
5212 objc/objc-map.c.
5213
5e678de8
PC
52142011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5215
5216 PR c++/17212
fc8396e9 5217 * doc/invoke.texi ([Wformat-zero-length]): Update.
5e678de8 5218
80f8fdf1
IS
52192011-10-14 Iain Sandoe <iains@gcc.gnu.org>
5220
5221 PR bootstrap/50699
5222 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
5e678de8 5223 build for powerpc targets. (darwin_patch_builtins): Only build for
80f8fdf1
IS
5224 powerpc targets.
5225
4fbe3b8a
JJ
52262011-10-14 Jakub Jelinek <jakub@redhat.com>
5227
5228 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
5229 (avx_cvtdq2pd256_2): ... this.
5230 (sseunpackfltmode): New mode attr.
5231 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
5232 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
5233 using VI2_AVX2 iterator.
6d0c87b5 5234 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
4fbe3b8a 5235
8e24e409
DM
52362011-10-13 David S. Miller <davem@davemloft.net>
5237
5238 * config/sparc/sparc.md (plusminus): New code iterator.
5239 (plusminus_insn): New code attr.
5240 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
5241 using plusminus and plusminus_insn.
5242 (fpadd64_vis, fpsub64_vis): Likewise.
5243
d7943c8b
RH
52442011-10-13 Richard Henderson <rth@redhat.com>
5245
5246 * doc/md.texi (vec_perm): Document fallback to byte permutation.
5247 * genopinit.c (optabs): Add vec_perm_const.
5248 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
5249 Reject non-vector modes. Allow fallback to byte permutation.
5250 (expand_vec_perm_expr_1): Split out from ...
5251 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
5252 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
5253 * tree-vect-generic.c (lower_vec_perm): Update for name change.
5254
cba86444
RH
52552011-10-13 Richard Henderson <rth@redhat.com>
5256
5257 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
5258
f6293442
RH
5259 * config/rs6000/spu.md (vec_permv16qi): New pattern.
5260
0772d476
RH
5261 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
5262 * config/i386/i386-protos.h: Update.
5263 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
5264 (vec_perm_const<VEC_PERM_CONST>): New expander.
5265
bdc3ee5d
RH
5266 * optabs.c (expand_vector_broadcast): New.
5267 (expand_binop): Expand scalar shifts of vectors to vector shifts
5268 of vectors, if the former isn't supported.
5269 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
5270 here; always simplify to scalar shift of vector if possible.
5271
5066ab2e
RH
5272 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
5273 test for vector splat.
5274
40746f40
JJ
52752011-10-13 Jakub Jelinek <jakub@redhat.com>
5276
6d0c87b5 5277 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
40746f40 5278
9a6b63c3
JJ
52792011-10-13 Jakub Jelinek <jakub@redhat.com>
5280 Richard Guenther <rguenther@suse.de>
5281
6d0c87b5
UB
5282 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
5283 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
9a6b63c3 5284
a520f3c3
JJ
52852011-10-13 Jakub Jelinek <jakub@redhat.com>
5286
5287 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
5288 * config/i386/i386.c (ix86_build_const_vector): Handle
5289 also V32QI, V16QI, V16HI and V8HI modes.
5290 (emit_reduc_half): New function.
5291 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
5292 Use emit_reduc_half helper function.
5293
6d0c87b5
UB
52942011-10-13 Lawrence Crowl <crowl@google.com>
5295 Diego Novillo <dnovillo@google.com>
35f5b1c1
LC
5296
5297 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
5298 (input_function): ... here.
5299 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
5300 (output_function): ... here.
5301
a22286c3
GC
53022011-10-13 Gabriel Charette <gchare@google.com>
5303 Diego Novillo <dnovillo@google.com>
5304
5305 * streamer-hooks.h (struct streamer_hooks): Add hooks
5306 input_location and output_location.
5307 * lto-streamer-in.c (lto_input_location): Use
5308 streamer_hooks.input_location, if set.
5309 * lto-streamer-out.c (lto_output_location): Use
5310 streamer_hooks.output_location, if set.
5311
034e3eb0
EB
53122011-10-13 Eric Botcazou <ebotcazou@adacore.com>
5313
5314 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
5315 * config/sparc/sparc.opt (mfix-at697f): New option.
5316 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5317 (sparc_reorg): New function.
5318
2b3c0885
RG
53192011-10-13 Richard Guenther <rguenther@suse.de>
5320
5321 PR tree-optimization/50712
5322 * ipa-split.c (split_function): Always re-gimplify parameters
5323 when they are not gimple vals before passing them. Properly
5324 check for type compatibility.
5325
c28f4b5c
TV
53262011-10-13 Tom de Vries <tom@codesourcery.com>
5327
5328 * function.c (gimplify_parameters): Set number of arguments of call to
5329 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
5330
ba30e50d
TV
53312011-10-13 Tom de Vries <tom@codesourcery.com>
5332
5333 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
5334 for static const strings.
5335 * varasm.c (build_constant_desc): Generate the memory location of the
5336 constant using gen_const_mem.
5337
6c9fbfa7
RG
53382011-10-13 Richard Guenther <rguenther@suse.de>
5339
5340 PR tree-optimization/50698
5341 * tree-data-ref.c (split_constant_offset_1): Also process
5342 offsets of &MEM.
5343
fad034a7
DM
53442011-10-12 David S. Miller <davem@davemloft.net>
5345
f1c141a7
DM
5346 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
5347 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
5348 unspecs.
5349 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
5350 of a vec_concat.
5351 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
5352 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
5353 Reimplement as unspecs and remove inaccurate comments.
5354 (vis3_shift_patname): New code attr.
6d0c87b5
UB
5355 (<vis3_shift_insn><vbits>_vis): Rename to
5356 "v<vis3_shift_patname><mode>3".
f1c141a7
DM
5357 (vis3_addsub_ss_patname): New code attr.
5358 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
5359 "<vis3_addsub_ss_patname><mode>3".
5360 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
5361 accommodate pattern name changes.
5362
fad034a7
DM
5363 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
5364 to zero when assembler lacks support for such instructions.
5365 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
5366 and MASK_FMAF in defaults when assembler lacks necessary support.
5367
9d901b0e
JJ
53682011-10-12 Jakub Jelinek <jakub@redhat.com>
5369
4eb20b03
JJ
5370 * config/i386/sse.md (vec_unpacks_lo_<mode>,
5371 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
6d0c87b5 5372 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
4eb20b03
JJ
5373 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
5374 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
5375
f2289672 5376 * config/i386/sse.md (vec_avx2): New mode_attr.
6d0c87b5 5377 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
f2289672
JJ
5378 (mul<mode>3): ... this.
5379
0c7189ae
JJ
5380 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
5381 * config/i386/i386.c (ix86_expand_vec_perm): Handle
5382 V16QImode and V32QImode for TARGET_AVX2.
5383 (MAX_VECT_LEN): Increase to 32.
5384 (expand_vec_perm_blend): Add support for 32-byte integer
5385 vectors with TARGET_AVX2.
5386 (valid_perm_using_mode_p): New function.
5387 (expand_vec_perm_pshufb): Add support for 32-byte integer
5388 vectors with TARGET_AVX2.
5389 (expand_vec_perm_vpshufb2_vpermq): New function.
5390 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
5391 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
5392 with TARGET_AVX2.
5393 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
5394 and expand_vec_perm_vpshufb2_vpermq_even_odd.
5395 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
5396 32-byte integer vector modes.
5397 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
5398 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
5399 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
5400 4 new operands.
5401 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
5402 match_dup, instead add 4 new operands and require they have
5403 right cross-lane values.
5404 (avx2_permv4di): Change into define_expand.
5405 (avx2_permv4di_1): New instruction.
5406 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
5407 for "xm" constrained operand.
5408 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
5409
9d901b0e
JJ
5410 * config/i386/sse.md (avx2_gathersi<mode>,
5411 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
5412 match_scratch, change memory_operand to register_operand,
5413 add (mem:BLK (scratch)) use.
5414 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
5415 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
5416 add earlyclobber to the output operand and match_scratch,
5417 add (mem:BLK (scratch)) use, change the other mem to match_operand.
5418 Use %p6 instead of %c6 in the pattern.
5419 * config/i386/i386.c (ix86_expand_builtin): Adjust for
5420 operand 2 being a Pmode register_operand instead of memory_operand.
5421
c482a651
KT
54222011-10-12 Kai Tietz <ktietz@redhat.com>
5423
6d0c87b5 5424 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
c482a651 5425
ccea4a27
SE
54262011-10-12 Steve Ellcey <sje@cup.hp.com>
5427
5428 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
5429
d660a3db
RG
54302011-10-12 Richard Guenther <rguenther@suse.de>
5431
5432 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
5433 of the first store we visit in a basic-block.
5434 (get_continuation_for_phi): Search for a candidate VUSE that
5435 might dominates all others. Do pairwise disambiguation against
5436 that candidate.
5437
ebbcd0c6
PK
54382011-10-12 Paul Koning <pkoning@gcc.gnu.org>
5439
5440 PR tree-optimization/50189
5441 * tree-vrp.c (extract_range_from_assert): Use the type of
5442 the variable, not the limit.
5443
d837d73d
RG
54442011-10-12 Richard Guenther <rguenther@suse.de>
5445
5446 PR tree-optimization/50700
5447 * tree-object-size.c (addr_object_size): Simplify and treat
5448 MEM_REF bases consistently.
5449
39d52ae5
BS
54502011-10-12 Bernd Schmidt <bernds@codesourcery.com>
5451
5452 * function.c (prepare_shrink_wrap, bb_active_p): New function.
bbe996ec
UB
5453 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
5454 prepare_shrink_wrap, then recompute bb_active_p for the last block.
39d52ae5 5455
a2d5091a
JM
54562011-10-12 Joseph Myers <joseph@codesourcery.com>
5457
5458 PR c/50565
5459 * convert.c (convert_to_integer): Do not narrow operands of
5460 pointer subtraction.
5461
58e9ddb1
NC
54622011-10-12 Nick Clifton <nickc@redhat.com>
5463
5464 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
5465 emit a .eabi_attribute assembler directive, possibly with a
5466 comment attached.
5467 * config/arm/arm.c (arm_file_start): Use the new macro.
5468 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
5469
9bc9ee67
GJL
54702011-10-12 Georg-Johann Lay <avr@gjlay.de>
5471
5472 PR target/49939
5473 * config/avr/avr.md (*movqi): Rename to movqi_insn.
5474 (*call_insn): Rename to call_insn.
5475 (*call_value_insn): Rename to call_value_insn.
5476 * config/avr/avr.c (avr_2word_insn_p): New static function.
5477 (jump_over_one_insn_p): Use it.
5478
2ba87a29
RS
54792011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
5480
5481 * expr.h (copy_blkmode_to_reg): Declare.
5482 * expr.c (copy_blkmode_to_reg): New function.
5483 (expand_assignment): Don't expand register RESULT_DECLs before
5484 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
5485 RESULT_DECL register.
5486 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
5487 * stmt.c (expand_return): Move BLKmode-to-register code into
5488 copy_blkmode_to_reg.
5489
d0e2a1f8
EB
54902011-10-11 Eric Botcazou <ebotcazou@adacore.com>
5491
5492 PR target/49965
5493 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
5494 (mov<F:mode>cc): Likewise.
5495
2c3784e1
BS
54962011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5497
5498 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
5499
e79983f4
MM
55002011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5501
5502 * tree.h (built_in_decls): Delete old interface with two parallel
5503 arrays to hold standard builtin declarations, and replace it with
5504 a function based interface that can support creating builtins on
5505 the fly in the future. Change all uses, and poison the old
5506 names. Make sure 0 is not a legitimate builtin index.
5507 (implicit_built_in_decls): Ditto.
5508 (built_in_info): Ditto.
5509 (BUILTIN_VALID_P): Ditto.
5510 (builtin_decl_explicit): Ditto.
5511 (builtin_decl_implicit): Ditto.
5512 (set_builtin_decl): Ditto.
5513 (set_builtin_decl_implicit_p): Ditto.
5514 (builtin_decl_explicit_p): Ditto.
5515 (builtin_decl_implicit_p): Ditto.
5516 * tree-complex.c (expand_complex_libcall): Ditto.
5517 * tree-loop-distribution.c (generate_memset_zero): Ditto.
5518 * tree-ssa-strlen.c (get_string_length): Ditto.
5519 (handle_builtin_strcpy): Ditto.
5520 (handle_builtin_strcat): Ditto.
5521 * tree.c (iterative_hash_expr): Ditto.
5522 (local_define_builtin): Ditto.
5523 (build_common_builtin_nodes): Ditto.
5524 * builtins.c (built_in_decls): Ditto.
5525 (implicit_built_in_decls): Ditto.
5526 (built_in_info): Ditto
5527 (expand_builtin_classify_type): Ditto.
5528 (mathfn_built_in_1): Ditto.
5529 (expand_builtin_cexpi): Ditto.
5530 (expand_builtin_mempcpy_args): Ditto.
5531 (expand_builtin_stpcpy): Ditto.
5532 (gimplify_va_arg_expr): Ditto.
5533 (expand_builtin_sync_operation): Ditto.
5534 (build_builtin_expect_predicate): Ditto.
5535 (fold_builtin_memory_op): Ditto.
5536 (fold_builtin_strcpy): Ditto.
5537 (fold_builtin_stpcpy): Ditto.
5538 (fold_builtin_strncpy): Ditto.
5539 (fold_builtin_interclass_mathfn): Ditto.
5540 (fold_builtin_classify): Ditto.
5541 (fold_builtin_2): Ditto.
5542 (fold_builtin_strstr): Ditto.
5543 (fold_builtin_strrchr): Ditto.
5544 (fold_builtin_strpbrk): Ditto.
5545 (fold_builtin_strcat): Ditto.
5546 (fold_builtin_strncat): Ditto.
5547 (fold_builtin_strcspn): Ditto.
5548 (fold_builtin_fputs): Ditto.
5549 (fold_builtin_sprintf): Ditto.
5550 (fold_builtin_snprintf): Ditto.
5551 (expand_builtin_memory_chk): Ditto.
5552 (fold_builtin_memory_chk): Ditto.
5553 (fold_builtin_stxcpy_chk): Ditto.
5554 (fold_builtin_strncpy_chk): Ditto.
5555 (fold_builtin_strcat_chk): Ditto.
5556 (fold_builtin_strncat_chk): Ditto.
5557 (fold_builtin_sprintf_chk_1): Ditto.
5558 (fold_builtin_snprintf_chk_1): Ditto.
5559 (fold_builtin_printf): Ditto.
5560 (fold_builtin_fprintf): Ditto.
5561 (fold_call_stmt): Ditto.
5562 (set_builtin_user_assembler_name): Ditto.
5563 * tree-emutls.c (emutls_common_1): Ditto.
5564 * omp-low.c (scan_omp): Ditto.
5565 (lower_rec_input_clauses): Ditto.
5566 (lower_reduction_clauses): Ditto.
5567 (expand_parallel_call): Ditto.
5568 (expand_task_call): Ditto.
5569 (maybe_catch_exception): Ditto.
5570 (optimize_omp_library_calls): Ditto.
5571 (expand_omp_for_generic): Ditto.
5572 (expand_omp_for_static_nochunk): Ditto.
5573 (expand_omp_for_static_chunk): Ditto.
5574 (expand_omp_sections): Ditto.
5575 (expand_omp_atomic_fetch_op): Ditto.
5576 (expand_omp_atomic_pipeline): Ditto.
5577 (expand_omp_atomic_mutex): Ditto.
5578 (lower_omp_single_simple): Ditto.
5579 (lower_omp_single_copy): Ditto.
5580 (lower_omp_master): Ditto.
5581 (lower_omp_ordered): Ditto.
5582 (lower_omp_critical): Ditto.
5583 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
5584 * builtins.c (DEF_BUILTIN_STUB): Ditto.
5585 (BUILT_IN_NONE): Ditto.
5586 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
5587 * gimple-low.c (lower_function_body): Ditto.
5588 (lower_builtin_setjmp): Ditto.
5589 * c-decl.c (merge_decls): Ditto.
5590 * tree-eh.c (lower_resx): Ditto.
5591 (lower_resx): Ditto.
5592 (lower_eh_dispatch): Ditto.
5593 * function (gimplify_parameters): Ditto.
5594 * c-typeck.c (build_function_call_vec): Ditto.
5595 * gimplify.c (build_stack_save_restore): Ditto.
5596 (gimplify_vla_decl): Ditto.
5597 (gimplify_modify_expr_to_memcpy): Ditto.
5598 (gimplify_modify_expr_to_memset): Ditto.
5599 (gimplify_variable_sized_compare): Ditto.
5600 (gimplify_function_tree): Ditto.
5601 * calls.c (emit_call_1): Ditto.
5602 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
5603 * tree-nested.c (convert_nl_goto_reference): Ditto.
5604 (convert_tramp_reference_op): Ditto.
5605 (finalize_nesting_tree_1): Ditto.
5606 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5607 (tree_ssa_prefetch_arrays): Ditto.
5608 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
5609 * system.h (built_in_decls): Ditto.
5610 (implicit_built_in_decls): Ditto.
5611 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5612 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
5613 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
5614 (ix86_veclibabi_svml): Ditto.
5615 (ix86_veclibabi_acml): Ditto.
5616 * config/vms/vms.c (vms_patch_builtins): Ditto.
5617 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
5618 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
5619 (rs6000_builtin_vectorized_libmass): Ditto.
5620 (rs6000_init_builtins): Ditto.
5621 * config/darwin.c (darwin_override_options): Ditto.
5622 (darwin_patch_builtin): Ditto.
5623 (darwin_rename_builtins): Ditto.
5624 * config/pa/pa.c (pa_init_builtins): Ditto.
5625
f0286f95
BS
56262011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5627
5628 * tree.h (copy_ref_info): Expose existing function.
5629 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
5630 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
5631
8efab2c5
GJL
56322011-10-11 Georg-Johann Lay <avr@gjlay.de>
5633
6d0c87b5
UB
5634 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
5635 prototype.
8efab2c5
GJL
5636 (avr_regno_mode_code_ok_for_base_p): New prototype.
5637 * config/avr/avr.h (BASE_REG_CLASS): Remove.
5638 (REGNO_OK_FOR_BASE_P): Remove.
5639 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
5640 (REG_OK_FOR_BASE_STRICT_P): Remove.
5641 (MODE_CODE_BASE_REG_CLASS): New define.
5642 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
5643 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
5644 (avr_regno_mode_code_ok_for_base_p): New function.
5645 (avr_reg_ok_for_addr_p): New static function.
5646 (avr_legitimate_address_p): Use it. Beautify.
5647
05058b6e
GJL
56482011-10-11 Georg-Johann Lay <avr@gjlay.de>
5649
5650 PR target/50447
5651 * config/avr/avr.md (cc): Add out_plus attribute alternative.
5652 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
5653 avr_out_plus for all CONST_INT addends.
5654 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
5655 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
5656 CC_OUT_PLUS.
5657 (avr_out_plus_1): Change prototype and report effect on cc0.
5658 (avr_out_plus): Ditto.
5659 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
5660
816e239a
L
56612011-10-11 H.J. Lu <hongjiu.lu@intel.com>
5662
5663 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
5664 the extra break.
5665
cdbb5ba3
AS
56662011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5667
5668 * doc/invoke.texi: Document new warning.
5669 * common.opt (Wvector-operation-performance): Define new warning.
5670 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
5671 vector operation.
5672 (exapnd_vector_parallel): Warn about expanded vector operation.
5673 (lower_vec_shuffle): Warn about expanded vector operation.
5674 * c-typeck.c (c_build_vec_perm_expr): Store correct location
5675 when creating VEC_PERM_EXPR.
5676
45ce6084
RG
56772011-10-11 Richard Guenther <rguenther@suse.de>
5678
5679 PR tree-optimization/50204
5680 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
5681 two argument handling from ...
5682 (get_continuation_for_phi): ... here. Handle arbitrary number
5683 of PHI args.
5684
3e6aef7c
RS
56852011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
5686
5687 * modulo-sched.c: Fix comment typo. Mention the possibility
5688 of using scheduling windows of II+1 cycles.
5689
6637388f
TG
56902011-10-11 Tristan Gingold <gingold@adacore.com>
5691
5692 * doc/invoke.texi (C Dialect Options): Document
5693 -fallow-parameterless-variadic-functions.
5694 * c-parser.c (c_parser_parms_list_declarator): Handle it.
5695
16bbc875
GJL
56962011-10-10 Georg-Johann Lay <avr@gjlay.de>
5697
bbe996ec
UB
5698 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
5699 to 0 if frame pointer is needed for unwinding.
16bbc875 5700
6e089315
UB
57012011-10-10 Uros Bizjak <ubizjak@gmail.com>
5702
19f4664b 5703 PR bootstrap/50665
6e089315
UB
5704 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
5705 optab_index to enum direct_optab_index.
5706 (vec_perm_optab): Update.
5707
45dbdfd4
AS
57082011-10-10 Anatoly Sokolov <aesok@post.ru>
5709
5710 * config/cris/cris.c (cris_preferred_reload_class): New function.
5711 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5712 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
5713
917e14f3
GJL
57142011-10-10 Georg-Johann Lay <avr@gjlay.de>
5715
5716 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
5717 !AVR_HAVE_JMP_CALL.
5718 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
5719 (*tablejump_enh, *tablejump): Remove insns.
5720 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
5721 EIJMP for indirect jump. Use LPM Z+ where available.
5722
82675d94
RH
57232011-10-10 Richard Henderson <rth@redhat.com>
5724
5725 * doc/md.texi (vec_perm_const): Fix typo in cindex.
5726
aafdb0d7
KY
57272011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
5728 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
5729
5730 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
5731
a24ac460
RG
57322011-10-10 Richard Guenther <rguenther@suse.de>
5733
5734 PR middle-end/50389
5735 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5736 mark symbols for renaming. Append the VUSE to all statements
5737 that possibly can have one.
5738
40b6510f
RG
57392011-10-10 Richard Guenther <rguenther@suse.de>
5740
5741 * ipa-split.c (pass_split_functions): Add verification TODOs.
5742 (pass_feedback_split_functions): Likewise.
5743
4d8b88e8
RG
57442011-10-10 Richard Guenther <rguenther@suse.de>
5745
5746 PR middle-end/50195
5747 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
5748 only when optimizing.
5749
53fbb724
NC
57502011-10-10 Nick Clifton <nickc@redhat.com>
5751
5752 PR middle-end/49801
5753 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
5754 df_get_live_out instead of accessing the bitmaps directly.
5755 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
5756 df_live_add_problem and df_analyze.
5757
88fe4be8
MM
57582011-10-10 Michael Matz <matz@suse.de>
5759
5760 PR middle-end/50638
5761 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
5762
752cdc4e
RS
57632011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5764
5765 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
5766 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
5767 (node_sched_params): Remove first_reg_move and nreg_moves.
5768 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
5769 (update_node_sched_params): Move up file.
5770 (print_node_sched_params): Print the stage. Don't dump info related
5771 to first_reg_move and nreg_moves.
5772 (set_columns_for_row): New function.
5773 (set_columns_for_ps): Move up file and use set_columns_for_row.
5774 (schedule_reg_move): New function.
5775 (schedule_reg_moves): Call extend_node_sched_params and
5776 schedule_reg_move. Extend size of uses bitmap. Initialize
5777 num_consecutive_stages. Return false if a move could not be
5778 scheduled.
5779 (apply_reg_moves): Don't emit moves here.
5780 (permute_partial_schedule): Handle register moves.
5781 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
5782 to the same stage-count test as ddg nodes.
5783 (generate_prolog_epilog): Update calls accordingly.
5784 (sms_schedule): Allow move-scheduling to add a new first stage.
5785
1287d8ea
RS
57862011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5787
5788 * modulo-sched.c (ps_insn): Adjust comment.
5789 (ps_reg_move_info): New structure.
5790 (partial_schedule): Add reg_moves field.
5791 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
5792 (node_sched_params): Turn first_reg_move into an identifier.
5793 (ps_reg_move): New function.
5794 (ps_rtl_insn): Cope with register moves.
5795 (ps_first_note): Adjust comment and assert that the instruction
5796 isn't a register move.
5797 (node_sched_params): Replace with...
5798 (node_sched_param_vec): ...this vector.
5799 (set_node_sched_params): Adjust accordingly.
5800 (print_node_sched_params): Take a partial schedule instead of a ddg.
5801 Use ps_rtl_insn and ps_reg_move.
5802 (generate_reg_moves): Rename to...
5803 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
5804 move in the partial schedule, but don't emit it here. Don't perform
5805 register substitutions here either.
5806 (apply_reg_moves): New function.
5807 (duplicate_insns_of_cycles): Use register indices directly,
5808 rather than finding instructions using PREV_INSN. Use ps_reg_move.
5809 (sms_schedule): Call schedule_reg_moves before committing to
5810 a partial schedule. Try the next ii if the schedule fails.
5811 Use apply_reg_moves instead of generate_reg_moves. Adjust
5812 call to print_node_sched_params. Free node_sched_param_vec
5813 instead of node_sched_params.
5814 (create_partial_schedule): Initialize reg_moves.
5815 (free_partial_schedule): Free reg_moves.
5816
88e9c867
RS
58172011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5818
5819 * modulo-sched.c (ps_insn): Replace node field with an identifier.
5820 (SCHED_ASAP): Replace with..
5821 (NODE_ASAP): ...this macro.
5822 (SCHED_PARAMS): New macro.
5823 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
5824 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
5825 (node_sched_params): Remove asap.
5826 (ps_rtl_insn, ps_first_note): New functions.
5827 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
5828 asap values.
5829 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
5830 (generate_reg_moves): Pass ids to the SCHED_* macros.
5831 (update_node_sched_params): Take a ps insn identifier rather than
5832 a node as parameter. Use ps_rtl_insn.
5833 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
5834 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
5835 (optimize_sc): Update for above field and SCHED_* macro changes.
5836 Update calls to try_scheduling_node_in_cycle and
5837 update_node_sched_params.
5838 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
5839 macro changes. Use ps_rtl_insn and ps_first_note.
5840 (sms_schedule): Pass ids to the SCHED_* macros.
5841 (get_sched_window): Adjust for above field and SCHED_* macro changes.
5842 Use NODE_ASAP instead of SCHED_ASAP.
5843 (try_scheduling_node_in_cycle): Remove node parameter. Update
6d0c87b5 5844 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
88e9c867
RS
5845 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
5846 (ps_insert_empty_row): Adjust for above field changes.
5847 (compute_split_row): Use ids rather than nodes.
5848 (verify_partial_schedule): Adjust for above field changes.
5849 (print_partial_schedule): Use ps_rtl_insn.
5850 (create_ps_insn): Take an id rather than a node.
5851 (ps_insn_find_column): Adjust for above field changes.
5852 Use ps_rtl_insn.
5853 (ps_insn_advance_column): Adjust for above field changes.
5854 (add_node_to_ps): Remove node parameter. Update call to
5855 create_ps_insn.
5856 (ps_has_conflicts): Use ps_rtl_insn.
5857 (ps_add_node_check_conflicts): Replace node parameter than an id.
5858
be5af15f
RS
58592011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
5860
5861 * modulo-sched.c (undo_replace_buff_elem): Delete.
5862 (generate_reg_moves): Don't build and return an undo list.
5863 (free_undo_replace_buff): Delete.
5864 (sms_schedule): Adjust call to generate_reg_moves.
5865 Don't call free_undo_replace_buff.
5866
8a0180e7
MK
58672011-10-10 Matthias Klose <doko@ubuntu.com>
5868
5869 * common/config/m32c: Remove empty directory.
5870
beddf669
GJL
58712011-10-10 Georg-Johann Lay <avr@gjlay.de>
5872
5873 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
5874
e12693c1
GJL
58752011-10-10 Georg-Johann Lay <avr@gjlay.de>
5876
5877 PR target/50652
5878 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
5879 atmega164a to 0x100.
5880
75e649f6
EB
58812011-10-09 Eric Botcazou <ebotcazou@adacore.com>
5882
5883 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
5884 the replacement if the conversion to the LHS type is not useless.
5885
3a0a3578
IR
58862011-10-09 Ira Rosen <ira.rosen@linaro.org>
5887
5888 PR tree-optimization/50635
5889 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
5890 DEF_STMT to the list of statements to be replaced by the
5891 pattern statements.
5892 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
5893
3bb4db67
AS
58942011-10-09 Anatoly Sokolov <aesok@post.ru>
5895
5896 * system.h: Commit forgotten hunk in previous patch.
5897 (OUTPUT_ADDR_CONST_EXTRA): Poison.
5898
0ea39696
NP
58992011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
5900
5901 PR libobjc/50428
5902 * doc/objc.texi (Garbage Collection): Updated example to protect
5903 +initialize against execution in subclasses.
5904
2205ed25
RH
59052011-10-07 Richard Henderson <rth@redhat.com>
5906
5907 * doc/extend.texi (__builtin_shuffle): Improve the description to
5908 include the modulus of the selector. Mention OpenCL.
5909 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
5910
5911 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
5912 * genopinit.c (optabs): Rename vshuffle to vec_perm.
5913 * c-typeck.c (c_build_vec_perm_expr): Rename from
5914 c_build_vec_shuffle_expr. Update for name changes.
5915 * optabs.c (expand_vec_perm_expr_p): Rename from
5916 expand_vec_shuffle_expr_p.
5917 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
5918 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
5919 (vec_perm_optab): Rename from vshuffle_optab.
5920 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
5921 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
5922 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
5923
5924 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
5925 ix86_expand_vshuffle.
5926 * config/i386/i386-protos.h: Update.
5927 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
5928 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
5929
96d86115
RH
59302011-10-07 Richard Henderson <rth@redhat.com>
5931
5932 * config/i386/predicates.md (avx2_pblendw_operand): New.
5933 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
5934 (avx2_pblendw, *avx2_pblendw): New expander and insn.
5935
e1faf150
RH
59362011-10-07 Richard Henderson <rth@redhat.com>
5937
5938 * config/i386/i386.c (bdesc_args): Update code for
5939 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
5940 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
5941 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
5942 * config/i386/sse.md (mode iterator V16): Add V2TI.
5943 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
5944 (mode attr ssse3_avx2): Add V2TI.
5945 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
5946
26e2f443
DM
59472011-10-07 David S. Miller <davem@davemloft.net>
5948
5949 PR 50655
5950 * configure.ac: Add .register directives to VIS3 test.
5951 * configure: Regenerate.
5952
d67ce16a
RH
59532011-10-07 Richard Henderson <rth@redhat.com>
5954
5955 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
5956
dca80466
RH
59572011-10-07 Richard Henderson <rth@redhat.com>
5958
5959 PR 49752
5960 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
5961
55cdadd5
AS
59622011-10-07 Andrew Stubbs <ams@codesourcery.com>
5963
5964 * config/arm/predicates.md (shift_amount_operand): Remove constant
5965 range check.
5966 (shift_operator): Check range of constants for all shift operators.
5967
68c0ef75
AK
59682011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5969
5970 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
5971 Load GOT pointer for non-pic builds.
5972 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
5973 (s390_emit_call): Likewise.
5974
13e49da9
TV
59752011-10-07 Tom de Vries <tom@codesourcery.com>
5976
5977 PR middle-end/50527
5978 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
0626faca
TV
5979 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
5980 throw.
13e49da9 5981 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
0626faca
TV
5982 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
5983 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
5984 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
13e49da9 5985 * tree-ssa-ccp.c (evaluate_stmt): Set align for
0626faca
TV
5986 BUILT_IN_ALLOCA_WITH_ALIGN.
5987 (fold_builtin_alloca_for_var): Rename to ...
5988 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
5989 BUILT_IN_ALLOCA_WITH_ALIGN argument.
5990 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
5991 fold_builtin_alloca_with_align.
5992 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
13e49da9 5993 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
0626faca 5994 DEF_BUILTIN_STUB.
13e49da9 5995 * ipa-pure-const.c (special_builtin_state): Handle
0626faca 5996 BUILT_IN_ALLOCA_WITH_ALIGN.
13e49da9 5997 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
0626faca 5998 (call_may_clobber_ref_p_1): Same.
13e49da9 5999 * function.c (gimplify_parameters): Lower vla to
0626faca 6000 BUILT_IN_ALLOCA_WITH_ALIGN.
13e49da9
TV
6001 * gimplify.c (gimplify_vla_decl): Same.
6002 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
6003 * tree-mudflap.c (mf_xform_statements): Same.
6004 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
0626faca 6005 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
13e49da9
TV
6006 * varasm.c (incorporeal_function_p): Same.
6007 * tree-object-size.c (alloc_object_size): Same.
6008 * gimple.c (gimple_build_call_from_tree): Same.
6009
764a2546
BS
60102011-10-07 Bernd Schmidt <bernds@codesourcery.com>
6011
6012 * function.c (frame_required_for_rtx): Remove function.
6013 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
6014 changed. Compute a set of mentioned registers and compare against
6015 the new arg rather than calling frame_required_for_rtx.
6016 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
6017 reg set. Convert the unconverted_simple_returns mechanism to store
6018 jump insns rather than their basic blocks. Also check the
6019 orig_entry_edge destination for new blocks.
6020
87aab9b2
JJ
60212011-10-07 Jakub Jelinek <jakub@redhat.com>
6022
6023 PR tree-optimization/50650
6024 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
6025 call vect_is_simple_cond here, instead fail if cond_expr isn't
6026 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
6027 for cond_expr's first operand.
6028 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
6029 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
6030
6e0d70c9
AK
60312011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6032
6033 * config/s390/s390.md (DWH, dwh): New mode macros.
6034 ("umulsidi3"): Extend to support "umulditi3" as well.
6035
10c1a3e7
UB
60362011-10-07 Uros Bizjak <ubizjak@gmail.com>
6037 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 PR target/50603
6040 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
6041 integer PLUS RTX to a register to improve address combine.
6042
4efb91df
RH
60432011-10-06 Richard Henderson <rth@redhat.com>
6044
6045 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
6046 parameter; use it to decide whether to merge two notes.
6047 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
6048 for the deallocation case as well.
6049
e1267133
AS
60502011-10-06 Anatoly Sokolov <aesok@post.ru>
6051
6052 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
6053 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
6054 * doc/tm.texi: Regenerate.
6055 * target.def (output_addr_const_extra): Use
6056 hook_bool_FILEptr_rtx_false.
6057 * targhooks.c (default_asm_output_addr_const_extra): Remove.
6058 * targhooks.h (default_asm_output_addr_const_extra): Remove.
6059 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
6060 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
6061
908e19d0
DM
60622011-10-06 David S. Miller <davem@davemloft.net>
6063
6064 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
6065 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
6066 SI mode 64-bit code gen case explicitly zero-extend and truncate.
6067 (*popcount<mode>_sp64): Split up into...
6068 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
6069 SImode case use truncate.
6070 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
6071 subtract so the compiler can optimize it.
6072 (SIDI): Remove unused mode iterator.
6073
f4b31a33
BS
60742011-10-06 Bernd Schmidt <bernds@codesourcery.com>
6075
10c1a3e7
UB
6076 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
6077 on the orig_entry_edge. Don't account for it in prologue_clobbered.
f4b31a33 6078
69d2aade
JJ
60792011-10-06 Jakub Jelinek <jakub@redhat.com>
6080
6081 PR tree-optimization/50596
6082 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
6083 (NUM_PATTERNS): Change to 6.
6084 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
6085 function.
6086 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
6087 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
6088 if it already has one, and don't set STMT_VINFO_VECTYPE in it
6089 if it is already set.
6090 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
6091 COND_EXPR in pattern stmts.
6092 (vect_is_simple_cond): No longer static.
6093
44167383
RH
60942001-10-06 Richard Henderson <rth@redhat.com>
6095
6096 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
6097 * config/i386/sse.md (sseshuffint): Remove.
6098 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
6099 (VSHUFFLE_AVX2): New mode iterator.
6100 (vshuffle<mode>): Use it.
6101 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
6102
810cfbeb
RH
6103 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
6104 for vector_all_ones_operand.
6105 (ix86_expand_int_vcond): Distinguish between comparison mode
6106 and data mode. Allow them to differ.
6107 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
6108
8864db87
RH
61092001-10-06 Richard Henderson <rth@redhat.com>
6110
6111 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
6112 mask operand. Tidy the code.
6113
b7990330
JJ
61142011-10-06 Jakub Jelinek <jakub@redhat.com>
6115
92aea285
JJ
6116 * tree-vect-patterns.c (vect_pattern_recog_1): Use
6117 vect_recog_func_ptr typedef for the first argument.
6118 (vect_pattern_recog): Rename vect_recog_func_ptr variable
6119 to vect_recog_func, use vect_recog_func_ptr typedef for it.
6120
b7990330
JJ
6121 PR tree-optimization/49279
6122 * tree-ssa-structalias.c (find_func_aliases): Don't handle
6123 CAST_RESTRICT.
6124 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
6125 restrict propagation.
6126 * tree-ssa.c (useless_type_conversion_p): Don't return false
6127 if TYPE_RESTRICT differs.
6128
b966d3a9
BS
61292011-10-06 Bernd Schmidt <bernds@codesourcery.com>
6130
6131 * function.c (thread_prologue_and_epilogue_insns): Build a vector
6132 of unconverted simple return blocks rather than trying to
6133 recompute them later based on bb_flags bitmap tests.
6134
07f50410
MM
61352011-10-06 Michael Matz <matz@suse.de>
6136
6137 * tree-flow.h (get_var_ann): Don't declare.
6138 * tree-flow-inline.h (get_var_ann): Remove.
6139 (set_is_used): Use var_ann, not get_var_ann.
6140 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
6141 * tree-profile.c (gimple_gen_edge_profiler): Call
6142 find_referenced_var_in.
6143 (gimple_gen_interval_profiler): Ditto.
6144 (gimple_gen_pow2_profiler): Ditto.
6145 (gimple_gen_one_value_profiler): Ditto.
6146 (gimple_gen_average_profiler): Ditto.
6147 (gimple_gen_ior_profiler): Ditto.
6148 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
6149 (gimple_gen_ic_func_profiler): Call add_referenced_var.
6150 * tree-mudflap.c (execute_mudflap_function_ops): Call
6151 add_referenced_var.
6152
e7f9dae0
JJ
61532011-10-06 Jakub Jelinek <jakub@redhat.com>
6154
62371b92
JJ
6155 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
6156 don't set SSA_NAME_DEF_STMT that has been already set by
6157 gimple_build_assign_with_ops.
6158 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
6159 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
6160 Likewise.
6161
e7f9dae0
JJ
6162 * tree.h (avoid_folding_inline_builtin): New prototype.
6163 * builtins.c (avoid_folding_inline_builtin): No longer static.
6164 * gimple-fold.c (gimple_fold_builtin): Give up if
6165 avoid_folding_inline_builtin returns true.
6166
bc622b2a
RG
61672011-10-06 Richard Guenther <rguenther@suse.de>
6168
6169 * tree-vect-generic.c (vector_element): Look at previous
6170 generated results.
6171
7a9a6698
DE
61722011-10-06 David Edelsohn <dje.gcc@gmail.com>
6173
6174 PR target/39950
6175 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
6176 __powerpc__, __PPC__, __unix__.
6177
b86b9f44
MM
61782011-10-06 Michael Matz <matz@suse.de>
6179
6180 * i386/i386.opt (recip_mask, recip_mask_explicit,
6181 x_recip_mask_explicit): New variables and cl_target member.
6182 (mrecip=): New option.
6183 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
6184 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
6185 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
6186 TARGET_RECIP_VEC_SQRT): New tests.
6187 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
6188 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
6189 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
6190 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
6191 * i386/i386.c (ix86_option_override_internal): Set recip_mask
6192 for -mrecip and -mrecip=options.
6193 (ix86_function_specific_save): Save recip_mask_explicit.
6194 (ix86_function_specific_restore): Restore recip_mask_explicit.
6195
6196 * doc/invoke.texi (ix86 Options): Document the new option.
6197
16340e86
BS
61982011-10-06 Bernd Schmidt <bernds@codesourcery.com>
6199
6200 PR target/49049
6201 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
6202
4da6de81
UW
62032011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
6204
6205 PR target/50305
6206 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
6207 output of a previous pass through legitimize_reload_address.
6208 Do not attempt to optimize addresses if the base register is
6209 equivalent to a constant.
6210
fa7fd586
AK
62112011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6212
6213 * function.c (thread_prologue_and_epilogue_insns): Mark
6214 last_bb_active as possibly unused. It is unused for targets which
6215 do neither have "return" nor "simple_return" expanders.
6216
69c2fbf1
RG
62172011-10-06 Richard Guenther <rguenther@suse.de>
6218
6219 * fold-const.c (fold_ternary_loc): Also fold non-constant
6220 vector CONSTRUCTORs. Make more efficient.
6221 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
6222 (cprop_into_stmt): Don't propagate into virtual operands.
6223 (optimize_stmt): Really dump original statement.
6224
50000e86
NC
62252011-10-06 Nick Clifton <nickc@redhat.com>
6226
6227 * config/rx/rx.md (smin3): Revert previous delta.
6228
0147184e
RG
62292011-10-06 Richard Guenther <rguenther@suse.de>
6230
6231 PR tree-optimization/38884
6232 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
6233 reads from aggregate SSA names.
6234
d1fc143d
JJ
62352011-10-05 Jakub Jelinek <jakub@redhat.com>
6236
6237 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
6238 argument, truncate it at the beginning instead of allocating there
6239 and freeing at the end.
6240 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
6241 pass its address to vect_pattern_recog_1.
6242
dc78280f
DM
62432011-10-05 David S. Miller <davem@davemloft.net>
6244
6245 * config/sparc/sparc.opt (POPC): New option.
6246 * doc/invoke.texi: Document it.
6247 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
6248 default on Niagara-2 and later.
6249 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
6250 * config/sparc/sparc.md (SIDI): New mode iterator.
6251 (ffsdi2): Delete commented out pattern and comments.
6252 (popcount<mode>2, clz<mode>2): New expanders.
6253 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
6254 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
6255
86785830 62562011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5f4992ca
AS
6257
6258 PR middle-end/50607
86785830
AS
6259 * c-tree.h (c_expr_t): New typedef for struct c_expr.
6260 (C_EXPR_APPEND): New macro.
5f4992ca
AS
6261 * c-parser.c (c_parser_get_builtin_args): Preserve
6262 original_tree_code of c_expr structure.
86785830
AS
6263 (c_parser_postfix_expression): Adjust to the new function.
6264
ee049cb7
BS
62652011-10-05 Bernd Schmidt <bernds@codesourcery.com>
6266
6267 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
6268 if profiling after the prologue.
6269
97246d78
JJ
62702011-10-05 Jakub Jelinek <jakub@redhat.com>
6271
6272 PR tree-optimization/50613
6273 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
6274 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
6275 and if it is neither that not SSA_NAME, give up.
6276
067f5960
RH
62772011-10-05 Richard Henderson <rth@redhat.com>
6278
6279 * tree-vect-generic.c (vector_element): Never fail. Use
6280 build_zero_cst. Tidy up type references.
6281 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
6282 code duplication. Do update_stmt here ...
6283 (expand_vector_operations_1): ... not here.
6284
dae00b16
RH
6285 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
6286 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
6287 duplication. Handle V2DI without SSE4.1.
6288 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
6289 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
6290
9fff751c
UB
62912011-10-05 Uros Bizjak <ubizjak@gmail.com>
6292
6293 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
6294 of "found". Simplify return value calculation.
6295 (distance_agu_use): Ditto.
6296
17a3dae3
BS
62972011-10-05 Bernd Schmidt <bernds@codesourcery.com>
6298
6299 PR bootstrap/50621
6300 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
6301 if the function was not shrink-wrapped.
6302 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
6303 to an insn.
6304 * function.c (thread_prologue_and_epilogue_insns): Make sure the
6305 shrink_wrapped flag is set even if there is no dump file.
6306
878a9174
DD
63072011-10-05 DJ Delorie <dj@redhat.com>
6308 Nick Clifton <nickc@redhat.com>
6309
6310 * config/rx/rx.opt (mpid): Define.
6311 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
6312 (MULTILIB_DIRNAMES): Add pid.
6313 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
6314 (rx_num_interrupt_regs): New variable.
6315 (rx_gp_base_regnum): New function. Returns the number of the
6316 small data area register.
6317 (rx_pid_base_regnum): New function. Returns the number of the pid
6318 base register.
9fff751c 6319 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
878a9174
DD
6320 (rx_pid_data_operand): New function. Returns whether an object is
6321 in the position independent data area.
6322 (rx_legitimize_address): New function. Puts undecided PID
6323 objects in the PID data area.
6324 (rx_is_legitimate_address): Add support for PID operands.
6325 (rx_print_operand_address): Likewise.
6326 (rx_print_operand): Likewise.
6327 (rx_maybe_pidify_operand): New function. Determine if an operand
6328 is suitable for PID addressing.
6329 (rx_gen_move_template): Add PID support.
6330 (rx_conditional_register_usage): Likewise.
6331 (rx_option_override): Initialise rx_num_interrupt_regs.
6332 (rx_is_legitimate_constant): Add support for PID constants.
6333 (TARGET_LEGITIMIZE_ADDRESS): Define.
6334 * config/rx/constraints.md (Rpid): Define.
6335 (Rpda): Define.
6336 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
6337 (tablejump): Add PID support.
6338 (mov<>): Likewise.
6339 (mov<>_internal): Likewise.
6340 (addsi3): Convert to an expander. Add PID support.
6341 (pid_addr): New pattern.
6342 * config/rx/rx.h (CPP_SPEC): Define.
6343 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
6344 (CASE_VECTOR_PC_RELATIVE): Define.
6345 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
6346 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
9fff751c 6347 * doc/invoke.texi (RX Options): Document -mpid command line option.
878a9174 6348
c867aba0
RG
63492011-10-05 Richard Guenther <rguenther@suse.de>
6350
6351 PR tree-optimization/38885
6352 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
6353 from constants.
6354
484db665
BS
63552011-10-05 Bernd Schmidt <bernds@codesourcery.com>
6356
6357 * doc/invoke.texi (-fshrink-wrap): Document.
6358 * opts.c (default_options_table): Add it.
6359 * common.opt (fshrink-wrap): Add.
6360 * function.c (emit_return_into_block): Remove useless declaration.
6361 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
6362 requires_stack_frame_p, gen_return_pattern): New static functions.
6363 (emit_return_into_block): New arg simple_p. All callers changed.
6364 Use gen_return_pattern.
6365 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
6366 * config/i386/i386.md (return): Expand into a simple_return.
6367 (simple_return): New expander):
6368 (simple_return_internal, simple_return_internal_long,
6369 simple_return_pop_internal_long, simple_return_indirect_internal):
6370 Renamed from return_internal, return_internal_long,
6371 return_pop_internal_long and return_indirect_internal; changed to use
6372 simple_return.
6373 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
6374 simple returns.
6375 (ix86_pad_returns): Likewise.
6376 * function.h (struct rtl_data): Add member shrink_wrapped.
6377 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
6378 are not jumps or sibcalls can't be compared.
6379
18474649
RG
63802011-10-05 Richard Guenther <rguenther@suse.de>
6381
6382 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
6383 vector type.
6384 (simplify_unary_expression): Handle BIT_FIELD_REFs.
6385 (try_to_simplify): Handle BIT_FIELD_REFs.
6386
180ee6d1
GJL
63872011-10-05 Georg-Johann Lay <avr@gjlay.de>
6388
6389 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
6390 * config/avr/avr.c (avr_out_addto_sp): New function.
6391 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
6392 * config/avr/avr.md (adjust_len): Add "addto_sp".
6393 (*movhi_sp): Remove insn.
6394 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
6395
d3878abf
RG
63962011-10-05 Richard Guenther <rguenther@suse.de>
6397
9fff751c
UB
6398 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
6399 with an embedded expression valueize and fold that as well.
d3878abf
RG
6400 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
6401 results from gimple_fold_stmt_to_constant_1.
6402
d75fbd3d
NC
64032011-10-05 Nick Clifton <nickc@redhat.com>
6404
6405 * config/rx/rx.md (tablejump): Add missing label.
6406 (adddi3_internal): Mark operand 0 as early-clobbered.
6407 (smaxsi3): Revert previous delta.
6408 (adc_internal): Fix whitespace in generated asm.
6409 (adc_flags): Likewise.
6410
4d8752f0
AK
64112011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6412
6413 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
6414 with the new widening_optab_handler.
6415
eb8f1123
RG
64162011-10-05 Richard Guenther <rguenther@suse.de>
6417
6418 PR tree-optimization/50609
6419 * gimple-fold.c (fold_array_ctor_reference): Also handle
6420 vector typed constructors.
6421 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
6422 for vector typed constructors.
6423
2c893b9d
UB
64242011-10-05 Uros Bizjak <ubizjak@gmail.com>
6425
6426 * config/i386/i386.c (ix86_emit_binop): New static function.
6427 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
6428 instructions.
6429 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
6430
facb3fd7
DM
64312011-10-04 David S. Miller <davem@davemloft.net>
6432
6433 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
6434 UNSPEC_XMUL): New unspecs.
6435 (muldi3_v8plus): Use output_v8plus_mult.
6436 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
6437 New VIS 3.0 combiner patterns.
6438 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
6439 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
6440 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
6441 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
6442 builtins patterns.
6f37c8d4 6443 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
facb3fd7
DM
6444 (output_v8plus_mult): New function.
6445 * config/sparc/sparc-protos.h: Declare it.
6446 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
6447 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
6448 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
6449 * doc/extend.texi: Document new builtins.
6450
75799b98
RH
64512011-10-04 Richard Henderson <rth@redhat.com>
6452
6453 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
6454 Avoid save_expr unless two_arguments.
6455
0de99d26
OS
64562011-10-04 Ozkan Sezer <sezeroz@gmail.com>
6457
6f37c8d4 6458 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
0de99d26
OS
6459 * config/i386/mingw32.h (CPP_SPEC): Likewise.
6460
1de6359c
DM
64612011-10-04 David S. Miller <davem@davemloft.net>
6462
6463 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
6464 under Linux.
6465
f548a317
JJ
64662011-10-04 Jakub Jelinek <jakub@redhat.com>
6467
80642376
JJ
6468 PR tree-optimization/50604
6469 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
6470 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
6f37c8d4 6471 last argument to memcpy has size_type_node type instead of ssizetype.
80642376
JJ
6472 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
6473 instead of TREE_TYPE (len) as type for newlen.
6474
31330e16
JJ
6475 PR tree-optimization/50522
6476 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
6477 TYPE_RESTRICT.
6478 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
6479 unconditionally.
6480
f548a317
JJ
6481 * fold-const.c (fold_unary_loc): Don't optimize
6482 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
6483 casting the inner pointer if it isn't TYPE_RESTRICT.
6484 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
6485 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
6486
8cba6027
JM
64872011-10-04 Joseph Myers <joseph@codesourcery.com>
6488
6f37c8d4 6489 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
8cba6027 6490
398f05da
JH
64912011-10-04 Jan Hubicka <jh@suse.cz>
6492
6493 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
6494 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
6495 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
6496 * lto-cgraph.c (order_base): New static var.
6497 (lto_output_node): Stream in order.
6498 (lto_output_varpool_node): Stream out order.
6499 (input_node): Stream in order.
6500 (input_varpool_node): Stream out order.
6501 (input_cgraph_1): Initialize order base; update call of
6502 lto_input_toplevel_asms.
6503
36a50ab6
GJL
65042011-10-04 Georg-Johann Lay <avr@gjlay.de>
6505
6506 PR target/50566
6507 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
6508 prototype.
6509 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
6510 from here...
6511 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
6512 function. Log if avr_log.legitimize_reload_address.
6513
437bcafa
EB
65142011-10-04 Eric Botcazou <ebotcazou@adacore.com>
6515
6516 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
6517
aecb6197
AK
65182011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6519
6520 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
6521 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
6522
a4f713f5
DM
65232011-10-03 David S. Miller <davem@davemloft.net>
6524
6525 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
6526 GSR_REG an input operand to UNSPEC instead of a parallel USE.
6527 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
6528 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
6529 Reference GSR_REG in DI mode, simplify convoluted expressions by using
6530 zero_extract.
6531 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
6532
57f93411
MK
65332011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
6534
6535 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
6536
7617c0fd
JJ
65372011-10-03 Jakub Jelinek <jakub@redhat.com>
6538 Ian Lance Taylor <iant@google.com>
6539
6540 * godump.c (go_output_typedef): Support printing enum values that
6541 don't fit in a signed HOST_WIDE_INT.
6542
586747fc
AS
65432011-10-03 Anatoly Sokolov <aesok@post.ru>
6544
6545 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
6546 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6547 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6548 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
6549
cb69db4f
AS
65502011-10-03 Anatoly Sokolov <aesok@post.ru>
6551
6552 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
586747fc 6553 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
cb69db4f
AS
6554 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6555 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
6556
f903e000
SE
65572011-10-03 Steve Ellcey <sje@cup.hp.com>
6558
6559 PR target/49967
6560 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
6561 (gcc_cv_ld_static_option): Ditto.
6562 (gcc_cv_ld_dynamic_option): Ditto.
6563 * configure: Regenerate.
6564
2b25763b
DM
65652011-10-03 David S. Miller <davem@davemloft.net>
6566
6567 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
6568 and 'si' patterns which describe the GSR changes explicitly in the
6569 RTL using zero_extract.
6570 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
6571
6f37c8d4
UB
6572 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
6573 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
4f936a37 6574
d59b911e 65752011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
f90e8e2e
AS
6576
6577 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
6578 if given expression can be expanded by the target.
6579 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
6580 using target vector instructions.
6581 * optabs.h: New optab vshuffle.
6582 (expand_vec_shuffle_expr_p): New prototype.
6583 (expand_vec_shuffle_expr): New prototype.
6584 (vshuffle_optab): New optab.
6585 * genopinit.c: Adjust to support vecshuffle.
6586 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
6587 * expr.c (expand_expr_real_2): Adjust.
6588 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
6589 recognizing the cases of two and three arguments.
6590 (convert_arguments) (build_binary_op)
6591 (scalar_to_vector) (build_array_ref): Spurious whitespace.
6592 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
6593 * tree.def: New tree code VEC_SHUFFLE_EXPR.
6594 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
6595 * tree-vect-generic.c (vector_element): New function. Returns an
6596 element of the vector at the given position.
6597 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
6598 by the backend or expand an expression piecewise.
6599 (expand_vector_operations_1): Adjusted.
6600 (gate_expand_vector_operations_noop): New gate function.
6601 * Makefile.in (tree-vect-generic.o): New include.
6602 * gimple.c (get_gimple_rhs_num_ops): Adjust.
6603 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
6604 * passes.c: Move veclower down.
6605 * tree-pretty-print.c (dump_generic_node): Recognize
6606 VEC_SHUFFLE_EXPR as valid expression.
6607 * c-parser.c (c_parser_get_builtin_args): Helper function for the
6608 builtins with variable number of arguments.
6609 (c_parser_postfix_expression): Use a new helper function for
6610 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
6611 * tree-ssa-operands: Adjust.
6612 * c-family/c-common.c: New __builtin_shuffle keyword.
6613 * c-family/c-common.h: New __builtin_shuffle keyword.
6614 * gcc/doc/extend.texi: Adjust.
6615
6616 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
6617 between the vector and the type of the mask when shuffling.
6618 (vecshuffle<mode>): New expansion.
6619 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
6620 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
6621 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
6622
e4a5b262
JJ
66232011-10-03 Jakub Jelinek <jakub@redhat.com>
6624
6625 PR tree-optimization/50587
6626 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
6627 arg0 is not a SSA_NAME.
6628
93b765d0
RS
66292011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
6630
6631 * ipa-inline-analysis.c (MAX_TIME): Update comment.
6632
5422cd26
RH
66332011-10-02 Richard Henderson <rth@redhat.com>
6634 David S. Miller <davem@davemloft.net>
6635
6636 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
6637 conditional insn type setting, we always emit a shift.
6638 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
6639 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
bb69f33b 6640 * config/sparc/predicates.md (const_one_operand): Delete.
5422cd26 6641
3bf10857
GP
66422011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
6643
6644 * invoke.texi (SPARC Options): Refer to GNU/Linux.
6645
d9b59f56
RS
66462011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6647
6648 * config/mips/mips.c (mips_frame_barrier): New function.
6649 (mips_expand_prologue): Call it after allocating stack space.
6650 (mips_deallocate_stack): New function.
6651 (mips_expand_epilogue): Call mips_frame_barrier and
6652 mips_deallocate_stack.
6653
31045a25
RS
66542011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6655
6656 PR target/49696
6657 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
6658 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6659 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
6660
467a8db0
JH
66612011-10-02 Jan Hubicka <jh@suse.cz>
6662
4762f561
JH
6663 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
6664
467a8db0
JH
6665 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
6666 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
6667 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
6668 functions are reachable when address is taken.
6669 * tree-sra.c (modify_function): Free dominance info.
6670
1c52c601
JH
66712011-10-02 Jan Hubicka <jh@suse.cz>
6672
78e5ce9f
JH
6673 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
6674
1c52c601
JH
6675 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
6676 (reset_inline_summary): New function.
6677 (compute_inline_parameters, inline_node_removal_hook,
6678 inline_edge_removal_hook): Use it.
6679 (inline_free_summary): Reset holders correctly.
6680 (inline_generate_summary): Free summary before computing it.
6681
61e0e2f8
PC
66822011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
6683
6684 PR preprocessor/36819
6685 * incpath.c (merge_include_chains): Call free_path on
6686 heads[QUOTE] and tails[QUOTE].
6687
ed0d2da0
JH
66882011-10-02 Jan Hubicka <jh@suse.cz>
6689
6690 PR lto/47247
6691 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
6692 when resolution is already availbale from plugin.
6693 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
6f37c8d4
UB
6694 * cgraph.c (ld_plugin_symbol_resolution): Add
6695 prevailing_def_ironly_exp.
ed0d2da0
JH
6696 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
6697 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
6698 externally visible.
6699 * varasm.c (resolution_to_local_definition_p): Add
6700 LDPR_PREVAILING_DEF_IRONLY_EXP.
6701 (resolution_local_p): Likewise.
6702
96d7b15f
DM
67032011-10-01 David S. Miller <davem@davemloft.net>
6704
6705 * config/sparc/sparc.opt (VIS3): New option.
6706 * doc/invoke.texi: Document it.
6707 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
6708 not capable of such instructions.
6709 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
6710 to 0x300 when TARGET_VIS3.
6711 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
6712 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
6713 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
6714 (V64N8, VASS): New mode iterators.
6715 (vis3_shift, vis3_addsub_ss): New code iterators.
6716 (vbits, vconstr): New mode attributes.
6717 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
6718 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
6719 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
6f37c8d4
UB
6720 fmean16_vis, fpadd64_vis, fpsub64_vis,
6721 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
6722 VIS 3.0 instruction patterns.
96d7b15f
DM
6723 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
6724 default when targetting capable cpus. TARGET_VIS3 implies
6f37c8d4 6725 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
96d7b15f
DM
6726 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
6727 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
6728 is ignored.
6729 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
6730 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
6731 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
6732 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
6733 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
6734 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
6735 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
6736 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
6737 * doc/extend.texi: Document new VIS 3.0 builtins.
6738
34672f15
EB
67392011-10-01 Eric Botcazou <ebotcazou@adacore.com>
6740
6741 * ira-color.c (assign_hard_reg): Fix typo.
6742
06ef8c2e
L
67432011-09-30 H.J. Lu <hongjiu.lu@intel.com>
6744
6745 * doc/extend.texi: Add missing ','.
6746
11e69edc
BS
67472011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6748
6749 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
6750 Enable -fmodulo-sched at -O2 and above.
6751 * config/c6x/c6x.md (doloop_end): New expander.
6752 (mvilc, sploop, spkernel, loop_end): New patterns.
6753 (loop_end with memory destination splitter): New.
6754 * config/c6x/c6x.c: Include "hw-doloop.h".
6755 (enum unitreqs): New.
6756 (unit_req_table): New typedef.
6757 (unit_reqs): New static variable.
6758 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
6759 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
6760 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
6761 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
6762 (struct c6x_sched_context): New member last_scheduled_iter0.
6763 (init_sched_state): Initialize it.
6764 (c6x_variable_issue): Update it.
6765 (sploop_max_uid_iter0): New static variable.
6766 (c6x_sched_reorder_1): Be careful about issuing sploop.
6767 (c6x_reorg): Call c6x_hwlooops before the final schedule.
6768
fe780c13
GJL
67692011-09-30 Georg-Johann Lay <avr@gjlay.de>
6770
6771 PR target/50566
6772 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
6773 * config/avr/avr.c (avr_address_cost): Use it.
6774 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
6775 (avr_log_vadump): Unknown %-codes finish printing.
6776
0ccb5dbf
JJ
67772011-09-30 Jakub Jelinek <jakub@redhat.com>
6778
38384150
JJ
6779 PR inline-asm/50571
6780 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
6781 input constraints allow mem and not reg, pass true instead of
6782 false as second argument to maybe_fold_reference.
6783
0ccb5dbf
JJ
6784 PR tree-optimization/46309
6785 * fold-const.c (make_range, merge_ranges): Remove prototypes.
6786 (make_range_step): New function.
6787 (make_range): Use it.
6788 * tree.h (make_range_step): New prototypes.
6789 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
6790 * tree-ssa-reassoc.c: Include diagnostic-core.h.
6791 (struct range_entry): New type.
6792 (init_range_entry, range_entry_cmp, update_range_test,
6793 optimize_range_tests): New functions.
6794 (reassociate_bb): Call optimize_range_tests.
6795
915afed6
JJ
67962011-09-30 Jakub Jelinek <jakub@redhat.com>
6797 Richard Guenther <rguenther@suse.de>
6798
6799 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
6800 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
6801 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
6802 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
6803 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
6804 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
6805
49f836ba
JB
68062011-09-30 Jan Beulich <jbeulich@suse.com>
6807
6808 * lto-cgraph.c (output_cgraph): Remove processing of
6809 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
6810 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
6811 lto_input_toplevel_asms() instead.
6812 * lto-section-in.c (lto_section_name): Add "asm" entry.
6813 * lto-streamer-in.c (lto_input_toplevel_asms): New.
6814 * lto-streamer-out.c (lto_output_toplevel_asms): New.
6815 * lto-streamer.h (LTO_minor_version): Bump.
6816 (enum lto_section_type): Add LTO_section_asm.
6817 (struct lto_asm_header): New.
6818 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
6819 * tree-streamer.h (streamer_write_string_cst): Declare.
6820 * tree-streamer-out.c (write_string_cst): Rename to
6821 streamer_write_string_cst and make global. Handle incoming string
6822 being NULL.
6823 (streamer_write_tree_header): Adjust call to renamed function.
6824
06d7e8e7
BS
68252011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6826
6827 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
6828 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
6829 modulo_last_stage): New static variables.
6830 (set_modulo_params, discard_delay_pairs_above): New functions.
6831 (struct delay_pair): New member stages.
6832 (htab_i2_traverse, htab_i1_traverse): New static functions.
6833 (record_delay_slot_pair): New arg stages. All callers changed.
6834 Record it.
6835 (pair_delay): Take stages into account.
6836 (add_delay_dependencies): Don't do so for stage pairs.
6837 (struct sched_block_state): New member modulo_epilogue.
6838 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
6839 (unschedule_insns_until): Decrease modulo_insns_scheduled.
6840 Set HARD_DEP without using or.
6841 (resolve_dependencies): New static function.
6842 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
6843 If it is true, allow only insns with INSN_EXACT_TICK set.
6844 (schedule_block): Return bool, always true for normal scheduling,
6845 true or false depending on modulo scheduling success otherwise.
6846 Add bookkeeping for modulo scheduling, and call resolve_dependencies
6847 on everything left over after a modulo schedule.
6848 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
6849 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
6850 declarations.
6851 (set_modulo_params, discard_delay_pairs_above): Declare.
6852 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
6853 * doc/invoke.texi (--param): Document it.
6854
7043b893
BS
6855 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
6856 New arg modulo_scheduling. All callers changed. Move note handling
6857 code here from schedule_ebbs.
6858 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
6859 out of schedule_ebbs.
6860 (schedule_ebbs): Call them. Remove note handling code moved to
6861 schedule_ebb.
6862 * sched-int.h (schedule_ebb, schedule_ebbs_init,
6863 schedule_ebbs_finish): Declare.
6864
ccb3dd5a
RG
68652011-09-30 Richard Guenther <rguenther@suse.de>
6866
6867 PR middle-end/50574
6868 * tree-cfg.c (verify_gimple_comparison): Compare component
6869 mode sizes for vector comparisons.
6870
d8edf83d
RE
68712011-09-30 Revital Eres <revital.eres@linaro.org>
6872
6873 * ddg.c (autoinc_var_is_used_p): New function.
6874 (create_ddg_dep_from_intra_loop_link,
6875 add_cross_iteration_register_deps): Call it.
6876 * ddg.h (autoinc_var_is_used_p): Declare.
6877 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
6878 (sms_schedule): Handle instructions with REG_INC.
6879
442b891d
RE
68802011-09-30 Revital Eres <revital.eres@linaro.org>
6881
6882 * modulo-sched.c (generate_reg_moves): Skip instructions that
6883 do not set a register and verify no regmoves are created for
6884 !single_set instructions.
6885
f27a3d37
BS
68862011-09-30 Bernd Schmidt <bernds@codesourcery.com>
6887
6888 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
6889 insns.
6890
8d4f1548
RR
68912011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6892
6f37c8d4 6893 PR target/50099
8d4f1548
RR
6894 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
6895 (qhs_zextenddi_op): New.
6896 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
6897 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
6898 Distinguish between ARM and Thumb2 states.
6899
c4728c6b
DM
69002011-09-30 David S. Miller <davem@davemloft.net>
6901
6902 * config/sparc/sparc.opt (VIS2): New option.
6903 * doc/invoke.texi: Document it.
6904 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
6905 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
6906 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
6907 (define_attr type): New insn type 'edgen'.
6908 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
6909 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
6910 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
6911 patterns.
6912 * niagara.md: Handle edgen.
6913 * niagara2.md: Likewise.
6914 * ultra1_2.md: Likewise.
6915 * ultra3.md: Likewise.
6916 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
6917 to 0x200 when TARGET_VIS2.
6918 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
6919 default when targetting capable cpus. TARGET_VIS2 implies
6920 TARGET_VIS, clear and it when TARGET_FPU is disabled.
6921 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
6922 (sparc_expand_builtin): Fix predicate indexing when builtin returns
6923 void.
6924 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
6925 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
6926 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
6927 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
6928 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
6929 * doc/extend.texi: Document new VIS 2.0 builtins.
6930
0fad9ab9
NC
69312011-09-29 Nick Clifton <nickc@redhat.com>
6932 Bernd Schmidt <bernds@codesourcery.com>
6933
6f37c8d4 6934 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
0fad9ab9
NC
6935 * config/frv/frvend.c: Likewise.
6936 * config/frv/frv.c (frv_function_prologue): Move misplaced
6937 CALL_ARG_LOCATION notes back to their proper locations.
6938
ab758510
GJL
69392011-09-29 Georg-Johann Lay <avr@gjlay.de>
6940
6941 PR target/50566
6942 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
6943 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
6944 from avr_rtx_costs.
6945 (avr_legitimate_address_p): Use avr_edump to print log information
6946 filtered by avr_log.
6947 (extra_constraint_Q): Ditto.
6948 (avr_legitimize_address): Ditto.
6949 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
6950 (final_prescan_insn): Use avr_log.rtx_costs as filter.
6951
2af8e257
RS
69522011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
6953
6954 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
6955 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
6956 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
6957 NEON vector and structure modes to be tied.
6958
99e2796b
BS
69592011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6960
6961 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
6962 forward declaration.
6963 (remove_duplicate_close_phi): Detect and repair creation of
6964 duplicate close-phis for a containing loop.
424dcc4f 6965
44a22bdb
AK
69662011-09-27 Andi Kleen <ak@linux.intel.com>
6967
6f37c8d4
UB
6968 * gcc.c (get_local_tick). Rename to get_random_number. Read from
6969 /dev/urandom. Add getpid call.
44a22bdb
AK
6970 (compare_debug_dump_opt_spec_function): Drop getpid call.
6971
35f2a89d
AK
69722011-09-26 Andi Kleen <ak@linux.intel.com>
6973
6f37c8d4
UB
6974 * toplev.c (init_local_tick): Try reading random seed
6975 from /dev/urandom.
35f2a89d 6976
dde8b360
AK
69772011-09-26 Andi Kleen <ak@linux.intel.com>
6978
6979 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
6980 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
d85087f6 6981 Handle numerical random seed.
6f37c8d4
UB
6982 * lto-streamer.h (lto_file_decl_data): Change id to
6983 unsigned HOST_WIDE_INT.
dde8b360
AK
6984 * toplev.c (random_seed): Add.
6985 (init_random_seed): Change for numerical random seed.
6986 (get_random_seed): Return as HOST_WIDE_INT.
6987 (set_random_seed): Crc32 existing string.
6988 * toplev.h (get_random_seed): Change to numercal return.
6f37c8d4
UB
6989 * tree.c (get_file_function_name): Remove CRC. Handle
6990 numerical random seed.
dde8b360 6991
6c7dfafe
GJL
69922011-09-29 Georg-Johann Lay <avr@gjlay.de>
6993
6994 PR target/50566
6995 * config.gcc (extra_objs): Add avr-log.o for $target in:
6996 avr-*-rtems*, avr-*-*.
6997 * config/avr/t-avr (avr-log.o): New rule to compile...
6998 * config/avr/avr-log.c: ...this new file.
6999 * config/avr/avr.opt (mlog=): New option.
7000 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
7001 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
7002 (avr_log_set_avr_log): New prototype.
7003 (avr_log_t): New typedef.
7004 (avr_log): New declaration.
7005 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
7006
d246ab4f
AS
70072011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
7008
7009 * expr.c (do_store_flag): Expand vector comparison by
7010 building an appropriate VEC_COND_EXPR.
7011 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
7012 (c_objc_common_truthvalue_conversion): Adjust.
7013 * tree-vect-generic.c (do_compare): Helper function.
7014 (expand_vector_comparison): Check if hardware supports
6f37c8d4 7015 vector comparison of the given type or expand vector piecewise.
d246ab4f
AS
7016 (expand_vector_operation): Treat comparison as binary
7017 operation of vector type.
7018 (expand_vector_operations_1): Adjust.
7019
7c99ecef
RG
70202011-09-29 Richard Guenther <rguenther@suse.de>
7021
7022 * tree.c (build_opaque_vector_type): Make opaque vectors
7023 variant types of the corresponding non-opaque type. Make
7024 sure to share opaque vector types properly.
7025
1ec01ab2
DM
70262011-09-29 David S. Miller <davem@davemloft.net>
7027
7028 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
7029 UNSPEC_ARRAY32): New unspec.
7030 (define_attr type): New type 'array'.
7031 (array{8,16,32}<P:mode>_vis): New patterns.
7032 * config/sparc/ultra1_2.md: Add reservations for 'array'.
7033 * config/sparc/ultra3.md: Likewise.
7034 * config/sparc/niagara.md: Likewise.
7035 * config/sparc/niagara2.md: Likewise.
7036 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
7037 array builtins.
7038 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
7039 __vis_array32): New.
7040 * doc/extend.texi: Document new VIS builtins.
7041
580bd500
DM
7042 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
7043 (VIS pixel-compare insn): Just use <gcond:name>.
7044
424dcc4f
DM
7045 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
7046 code iterator used, so just use <code>. There are two mode iterators
7047 so explicitly use <GCM:gcm_name>.
7048
8f931eff
IS
70492011-09-29 Iain Sandoe <iains@gcc.gnu.org>
7050
7051 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
7052 Darwin >= 9.
7053
b3304235
DM
70542011-09-28 David S. Miller <davem@davemloft.net>
7055
7056 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
7057 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
7058 (UNSPEC_FCMP): New unspec.
7059 (gcond): New code iterator.
7060 (gcond_name): New code attr.
7061 (GCM): New mode iterator.
7062 (gcm_name): New mode attr.
7063 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
7064
39f2bcb5
OE
70652011-09-28 Oleg Endo <oleg.endo@t-online.de>
7066
7067 PR target/49486
7068 * config/sh/sh.md (negdi2): Move expansion into split to
7069 allow more combination options. Add T_REG clobber.
7070 (abssi2): New expander.
7071 (*negdi2, *abssi2, *negabssi2): New insns.
7072 (cneg): Change from insn to insn_and_split. Rename to
7073 negsi_cond. Add alternative for non-SH4.
7074
d92aed06
RS
70752011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
7076
7077 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
7078 (neon_move_hi_quad_<mode>): Likewise.
7079 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
7080
783465f8
NC
70812011-09-28 Nick Clifton <nickc@redhat.com>
7082
7083 * config/rx/predicates.md (rx_minmax_operand): New predicate.
7084 Accepts immediates and a restricted subset of MEMs.
7085 * config/rx/rx.md (int_modes): New iterator.
7086 (smaxsi3, sminsi3): Delete and replace with...
7087 (smax<int_mode>3, smin<int_mode>3): New patterns.
7088 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
7089
206c3e10
RG
70902011-09-28 Richard Guenther <rguenther@suse.de>
7091
7092 PR middle-end/50460
7093 * fold-const.c (try_move_mult_to_index): Handle &a.array the
7094 same as &a.array[0].
7095
08c71c82
KT
70962011-09-28 Kai Tietz <ktietz@redhat.com>
7097
7098 * configure.ac: Add test for new section attribute
7099 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
7100 * config.in: Regenerated.
7101 * configure: Regenerated.
7102 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
7103 new section flag "e" for excluded sections, if supported.
9b0c7202 7104 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
08c71c82 7105
f18d1d16
RS
71062011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
7107
7108 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
7109 throughout file.
7110
b4d58803
RS
71112011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
7112
7113 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
7114 throughout file.
7115
4c345757
ST
71162011-09-27 Sriraman Tallam <tmsriram@google.com>
7117
7118 * output.h (SECTION_EXCLUDE): New macro.
9b0c7202 7119 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
4c345757 7120
8e8af9b7
RS
71212011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
7122
7123 * fwprop.c (forward_propagate_and_simplify): After checking
7124 reg/subreg combinations, check whether the modes are the same.
7125
a7449961
BS
71262011-09-27 Bernd Schmidt <bernds@codesourcery.com>
7127 Richard Sandiford <rdsandiford@googlemail.com>
7128
7129 * config/mips/mips.c (mips_add_cfa_restore): New function.
7130 (mips16e_save_restore_reg): Use it.
7131 (mips_restore_reg): Likewise. Split double FPRs for
7132 REG_CFA_RESTORE notes.
7133
58ac6459
RS
71342011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
7135
7136 PR middle-end/50386
7137 PR middle-end/50326
7138 * tree-sra.c (build_ref_for_model): Use the type of the field as
7139 the type of the COMPONENT_REF.
7140
16a275d2
JL
71412011-09-27 Jeff Law <law@redhat.com>
7142
7143 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
9b0c7202 7144 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
16a275d2
JL
7145 (find_if_case_1): Use the probability of the THEN clause when
7146 determining if speculation is profitable.
7147 (find_if_case_2): Similarly for the ELSE clause.
7148
8b57bfeb
JJ
71492011-09-27 Jakub Jelinek <jakub@redhat.com>
7150
7151 * common.opt: Add -foptimize-strlen option.
7152 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
7153 (tree-sssa-strlen.o): Add dependencies.
7154 * opts.c (default_options_table): Enable -foptimize-strlen
7155 by default at -O2 if not -Os.
7156 * passes.c (init_optimization_passes): Add pass_strlen
7157 after pass_object_sizes.
7158 * timevar.def (TV_TREE_STRLEN): New timevar.
7159 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
7160 * tree-pass.h (pass_strlen): Declare.
7161 * tree-ssa-strlen.c: New file.
7162 * c-decl.c (merge_decls): If compatible stpcpy prototype
7163 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
7164
c9e93168
TV
71652011-09-27 Tom de Vries <tom@codesourcery.com>
7166
7167 PR middle-end/43864
7168 * tree-ssa-tail-merge.c: New file.
7169 (struct same_succ_def): Define.
7170 (same_succ, const_same_succ): New typedef.
7171 (struct bb_cluster_def): Define.
7172 (bb_cluster, const_bb_cluster): New typedef.
7173 (struct aux_bb_info): Define.
7174 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
7175 (gvn_uses_equal): New function.
7176 (same_succ_print, same_succ_print_traverse, update_dep_bb)
7177 (stmt_update_dep_bb, local_def, same_succ_hash)
7178 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
7179 (same_succ_reset): New function.
7180 (same_succ_htab, same_succ_edge_flags)
7181 (deleted_bbs, deleted_bb_preds): New var.
7182 (debug_same_succ): New function.
7183 (worklist): New var.
7184 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
7185 (init_worklist, delete_worklist, delete_basic_block_same_succ)
7186 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
7187 (print_cluster, debug_cluster, update_rep_bb)
7188 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
7189 (all_clusters): New var.
7190 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
7191 (merge_clusters, set_cluster): New function.
7192 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
7193 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
7194 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
7195 (find_clusters_1, find_clusters): New function.
7196 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
7197 (update_bbs): New var.
7198 (apply_clusters): New function.
7199 (update_debug_stmt, update_debug_stmts): New function.
7200 (tail_merge_optimize): New function.
7201 tree-pass.h (tail_merge_optimize): Declare.
7202 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
7203 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
7204 (tree-ssa-tail-merge.o): New rule.
9b0c7202
UB
7205 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
7206 default at OPT_LEVELS_2_PLUS.
c9e93168
TV
7207 * tree-ssa-sccvn.c (vn_valueize): Move to ...
7208 * tree-ssa-sccvn.h (vn_valueize): Here.
7209 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
7210 * common.opt (ftree-tail-merge): New switch.
7211 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
7212 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
7213 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
7214 (-ftree-tail-merge, max-tail-merge-comparisons)
7215 (max-tail-merge-iterations): New item.
7216
99e299a8
JH
72172011-09-27 Jan Hubicka <jh@suse.cz>
7218
7219 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
7220
2ceb2339
JH
72212011-09-27 Jan Hubicka <jh@suse.cz>
7222
9b0c7202
UB
7223 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
7224 parameters passed by reference; handle loads from non-SSA scalars
7225 and update comments.
2ceb2339 7226
0b47c1a9
BS
72272011-09-27 Bernd Schmidt <bernds@codesourcery.com>
7228
7229 PR rtl-optimization/50249
7230 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
7231 instead of opnum and type. All callers changed. Remove useless
7232 declaration.
7233 Search forward for other reloads of the same type for the same operand
7234 using the same register; if any are found, return false.
7235 (reload_regs_reach_end_p): Same argument changes; all callers changed.
7236
cc8547a7
AK
72372011-09-27 Andi Kleen <ak@linux.intel.com>
7238 Jan Hubicka <jh@suse.cz>
7239
7240 * doc/invoke.texi (ffat-lto-objects): Document.
7241 * toplev.c (compile_file): Do not output assembly when doing slim lto;
7242 Output __gnu_slim_lto when doing slim lto.
7243 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
7244 (cgraph_optimize): Return early when doing slim lto.
7245 * opts.c (finish_options): Complain about lack of linker plugin
7246 when doing slim lto.
7247 * common.opt (ffat-lto-objects): New.
7248
0578e417
RS
72492011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
7250
7251 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
7252 between signed and unsigned.
7253
4ef69dfc
IR
72542011-09-27 Ira Rosen <ira.rosen@linaro.org>
7255
7256 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
7257 vectorization.
7258 (vectorizable_type_promotion): Likewise.
7259 (vect_analyze_stmt): Call vectorizable_type_demotion and
7260 vectorizable_type_promotion for basic blocks.
7261 (supportable_widening_operation): Don't assume loop vectorization.
7262 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
7263 basic blocks. Update vectorization factor for basic block
7264 vectorization.
7265 (vect_analyze_slp_instance): Allow multiple types for basic block
7266 vectorization. Recheck unrolling factor after construction of SLP
7267 instance.
7268
862a84f5
RG
72692011-09-27 Richard Guenther <rguenther@suse.de>
7270
7271 * tree-object-size.c (compute_object_sizes): Fix dumping of
7272 folded statement.
7273
48acf1b7
RG
72742011-09-27 Richard Guenther <rguenther@suse.de>
7275
7276 PR tree-optimization/50363
7277 * tree-ssa-pre.c (create_expression_by_pieces): Handle
7278 pointer conversions in POINTER_PLUS_EXPRs properly.
7279
ddfd2edf
RS
72802011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
7281
7282 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
7283 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
7284 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
7285 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
7286 that produce subreg moves. Define using VQX iterators.
7287
1cd12949
GJL
72882011-09-27 Georg-Johann Lay <avr@gjlay.de>
7289
7290 * config/avr/avr.md (ashrqi3): Split alternative "n"
7291 into its remaining parts C03, C04, C05, C06, C07 and describe
7292 impact in CC by attribute "cc" appropriately.
7293 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
7294 by digging RTX.
7295
e7c82a99
JJ
72962011-09-27 Jakub Jelinek <jakub@redhat.com>
7297
7298 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
7299 from 3 x MAX_MACHINE_MODE.
7300 (CONSTM1_RTX): Define.
9b0c7202
UB
7301 * emit-rtl.c (const_tiny_rtx): Change into array of
7302 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
e7c82a99
JJ
7303 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
7304 CONSTM1_RTX.
7305 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
7306 MODE_VECTOR_INT modes.
7307 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
7308 Optimize if one operand is CONSTM1_RTX.
7309 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
7310 into mask | x.
7311
8d12174d
DM
73122011-09-26 David S. Miller <davem@davemloft.net>
7313
cb8bbba8
DM
7314 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
7315 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
7316 * config/sparc/visintrin.h: Update edge and pixel-compare
7317 intrinsics to return 'long' instead of 'int'.
7318 * doc/extend.texi: Update documentation to match.
7319 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
7320 flat, allow any instruction. Otherwise, when V9 allow parallels
7321 which consist only of sets to registers outside of %o0 to %o5.
7322 (sparc_vis_init_builtins): Update VIS builtin types for edge
7323 and pixel-compare.
7324
caa06916
DM
7325 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
7326 is enabled, mark %gsr as global.
7327 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
7328 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
7329
8d12174d
DM
7330 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
7331 which will now define __VIS and __VIS__ when -mvis is enabled.
7332 * config/sparc/t-sparc: Likewise.
7333 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
7334 and add t-sparc to tmake_file for all sparc targets.
7335 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
7336 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
7337
f14e0262
DM
7338 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
7339 builtins for VIS vector addition and subtraction.
7340 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
7341 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
7342 __vis_fpsub32, __vis_fpsub32s): New.
7343 * doc/extend.texi: Document new VIS intrinsics.
7344
31fd727b
GJL
73452011-09-26 Georg-Johann Lay <avr@gjlay.de>
7346
7347 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
7348 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
7349 EQ/NE comparisons against +/-1 in the case of unused-after,
7350 non-ld-regs target.
7351
21860814
JJ
73522011-09-26 Jakub Jelinek <jakub@redhat.com>
7353
7354 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
7355 gctx.into_ssa after push_gimplify_context.
7356
7357 * gimple.c (gimple_build_call_valist): New function.
7358 * gimple.h (gimple_build_call_valist): New prototype.
7359 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
7360 (update_gimple_call): Likewise.
7361 (update_call_from_tree): Use finish_update_gimple_call.
7362 * tree-ssa-propagate.h (update_gimple_call): New prototype.
7363
f8a7df45
RG
73642011-09-26 Richard Guenther <rguenther@suse.de>
7365
7366 PR tree-optimization/50472
7367 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
7368 volatile references.
7369
b5bcaa4a 73702011-09-26 Bingfeng Mei <bmei@broadcom.com>
f8a7df45 7371
b5bcaa4a
BM
7372 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
7373 * target.def: (addr_space_subset_p): Likewise.
7374
703ffc30
TV
73752011-09-26 Tom de Vries <tom@codesourcery.com>
7376
7377 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
7378 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
7379 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
7380 of new var.
7381
8a6a05ce
GJL
73822011-09-26 Georg-Johann Lay <avr@gjlay.de>
7383
7384 PR target/50465
7385 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
7386 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
7387 output_reload_insisf.
7388 (adjust_len): Set default to "no".
7389 Remove alternative "yes". Add alternatives: "mov8", "mov16",
7390 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
7391 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
7392 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
7393 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
7394 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
7395 *lshrsi3_const): Set attribute "adjust_len".
7396 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
7397 (output_movsisf): Don't pass insn to output_reload_insisf.
7398 (adjust_insn_length): Handle new alternatives to adjust_len.
7399 Remove handling of ADJUST_LEN_YES. Clean-up code.
7400
ce438663
EB
74012011-09-26 Eric Botcazou <ebotcazou@adacore.com>
7402
7403 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
7404 may_trap_p to detect loads that may trap of fault.
7405
20633efc
GJL
74062011-09-26 Georg-Johann Lay <avr@gjlay.de>
7407
7408 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
7409 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
7410 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
7411 prototype.
7412 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
7413 * config/avr/avr.c: Rename output_reload_insisf_1 to
7414 output_reload_in_const.
7415 (avr_popcount_each_byte): Handle SFmode, too.
7416 (output_reload_in_const): Change so it can handle HI loads, too.
7417 Use avr_popcount_each_byte to work out if scratch register must be
7418 created on the fly.
7419 (output_reload_inhi): Rewrite using output_reload_in_const and...
7420 (output_movhi): ...use it to print constants' loads.
7421 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
7422
7cbcf85b
DM
74232011-09-25 David S. Miller <davem@davemloft.net>
7424
7425 * config/sparc/constraints.md (C, P, Z): New constraints for
7426 const_doube, const_int, and const_vector "all ones" values.
7427 Make unused constraint letters comment match reality.
7428 * config/sparc/predicates.md (const_all_ones_operand,
7429 register_or_zero_or_all_ones_operand): New predicates.
7430 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
7431 as well as zero constants when VIS.
7432 (sparc_legitimate_constant_p): Likewise.
7433 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
7434 (movsf_insn): Likewise
7435 (movdi_insn_sp64): Add fone alternative.
7436 (movdf_insn_sp32_v9): Likewise.
7437 (movdf_insn_sp64): Likewise.
7438
e8b141b5
DM
7439 * configure.ac: Add feature check to make sure the assembler
7440 supports the FMAF, HPC, and VIS 3.0 instructions found on
7441 Niagara-3 and later cpus.
7442 * configure: Rebuild.
7443 * config.in: Likewise.
7444 * config/sparc/sparc.opt: New option '-mfmaf'.
7445 * config/sparc/sparc.md: Add float fused multiply-add patterns.
7446 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
7447 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
7448 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
7449 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
7450 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
7451 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
7452 disabled.
7453 (sparc_rtx_costs): Handle 'FMA'.
7454 * doc/invoke.texi: Document -mfmaf.
7455
960dcaf5
JJ
74562011-09-25 Jakub Jelinek <jakub@redhat.com>
7457
7458 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
7459 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
7460 DECL_BY_REFERENCE parameters.
7461
1ee0d660
EB
74622011-09-25 Eric Botcazou <ebotcazou@adacore.com>
7463
7464 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
7465 if there is no outgoing edge.
7466
7467 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
7468 integral types.
7469
8e19f5a1
IR
74702011-09-25 Ira Rosen <ira.rosen@linaro.org>
7471
7472 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
7473 of vect_analyze_bb here.
7474 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
7475
4e4452b6
IR
74762011-09-25 Ira Rosen <ira.rosen@linaro.org>
7477
7478 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
7479 Allow not simple iv if analyzing basic block.
7480 (create_data_ref): Update call to dr_analyze_innermost.
7481 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
7482 * tree-loop-distribution.c (generate_memset_zero): Likewise.
7483 * tree-predcom.c (find_looparound_phi): Likewise.
7484 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
7485
10b859c0
DM
74862011-09-24 David S. Miller <davem@davemloft.net>
7487
7488 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
7489 (SPARC_GSR_REG): Define.
7490 (FIXED_REGISTERS): Mark GSR as fixed.
7491 (CALL_USED_REGISTERS): Mark GSR as call used.
7492 (HARD_REGNO_NREGS): GSR is always 1 register.
7493 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
7494 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
7495 (REGISTER_NAMES): Add "%gsr".
9b0c7202 7496 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
10b859c0
DM
7497 (UNSPEC_WRGSR): New unspec.
7498 (GSR_REG): New constant.
7499 (type): Add new insn type 'gsr'.
7500 (fpack16_vis, fpackfix_vis, fpack32_vis,
7501 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
7502 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
7503 rdgsr_v8plus): New expanders and insns.
7504 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
7505 using patterns which show that this is a plus in addition to a
7506 modification of GSR_REG, instead of an unspec.
7507 * config/sparc/ultra1_2.md: Handle 'gsr'.
7508 * config/sparc/ultra3.md: Likewise.
7509 * config/sparc/niagara.md: Likewise.
7510 * config/sparc/niagara2.md: Likewise.
7511 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
7512 end of table.
7513 (sparc_option_override): Make -mvis imply -mv8plus.
7514 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
7515 for %gsr.
7516 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
7517 __builtin_vis_read_gsr.
7518 (sparc_expand_buildin): Handle builtins that take one argument and
7519 return void.
7520 (sparc_fold_builtin): Never fold writes to %gsr.
7521 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
7522 * doc/extend.texi: Document new VIS intrinsics.
7523
25837a2f
JH
75242011-09-23 Jan Hubicka <jh@suse.cz>
7525
7526 * ipa-inline-transform.c (inline_call): Add comment.
7527 * ipa-inline.h (inline_param_summary): New structure and vector.
7528 (struct inline_edge_summary): Add param field.
7529 * ipa-inline-analysis.c (CHANGED): New constant.
7530 (add_clause): Handle CHANGED and NOT_CONSTANT.
7531 (predicate_probability): New function.
7532 (dump_condition): Dump CHANGED predicate.
7533 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
7534 of unknown function wide invariant.
7535 (evaluate_conditions_for_edge): Handle change probabilities.
7536 (inline_edge_duplication_hook): Copy param summaries.
7537 (inline_edge_removal_hook): Free param summaries.
9b0c7202
UB
7538 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
7539 sizes; dump param summaries.
25837a2f
JH
7540 (will_be_nonconstant_predicate): Use CHANGED predicate.
7541 (record_modified_bb_info): New structure.
7542 (record_modified): New function.
7543 (param_change_prob): New function.
7544 (estimate_function_body_sizes): Compute param summaries.
7545 (estimate_edge_size_and_time): Add probability argument.
7546 (estimate_node_size_and_time): Add inline_param_summary argument;
7547 handle predicate probabilities.
7548 (remap_predicate): Fix formating.
7549 (remap_edge_change_prob): New function.
7550 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
7551 (remap_edge_predicates): ... this one.
9b0c7202
UB
7552 (inline_merge_summary): Remap edge summaries; handle predicate
7553 probabilities; remove param summaries after we are done.
25837a2f
JH
7554 (do_estimate_edge_time): Update.
7555 (do_estimate_edge_growth): Update.
7556 (read_inline_edge_summary): Read param info.
7557 (inline_read_summary): Fix formating.
7558 (write_inline_edge_summary): Write param summaries.
7559
1db4406e
JJ
75602011-09-23 Jakub Jelinek <jakub@redhat.com>
7561
7562 * config/i386/i386.c (ix86_print_operand): Handle %~.
7563 (ix86_print_operand_punct_valid_p): Return true also for '~'.
7564 * config/i386/sse.md (i128): New mode_attr.
7565 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
7566 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
9b0c7202 7567 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1db4406e
JJ
7568 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
7569 patterns, use "<sseinsnmode>" for "mode" attribute.
7570 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
7571 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
7572 %~128 in the patterns, use "OI" for "mode" attribute.
7573
a7c0acd0
GJL
75742011-09-23 Georg-Johann Lay <avr@gjlay.de>
7575
7576 PR target/50447
7577 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
7578 "tstsi", "compare".
7579 (*cmpqi_sign_extend): Use s8_operand.
7580 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
7581 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
7582 prototypes.
7583 (out_tsthi, out_tstsi): Remove prototypes.
7584 (avr_out_tsthi, avr_out_tstsi): New prototypes.
7585 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
7586 (avr_asm_len): Negative length now sets *plen to -length.
7587 (compare_sign_p): Return bool instead of int.
7588 (compare_diff_p, compare_eq_p): Ditto and make static.
7589 (avr_out_tsthi): New function.
7590 (avr_out_tstsi): New function.
7591 (avr_out_compare): New function.
7592 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
7593 ADJUST_LEN_COMPARE.
7594
59024515
GJL
75952011-09-23 Georg-Johann Lay <avr@gjlay.de>
7596
7597 PR target/50447
7598 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
7599 (addsi3): Rewrite using QI scratch register. Adjust text
7600 peepholes using plus:SI.
7601 (*addsi3_zero_extend.hi): New insn.
7602 (*subsi3_zero_extend.hi): New insn.
7603 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
7604 (*subsi3_zero_extend): Ditto.
7605 (subsi3): Change predicate #2 to register_operand.
7606 * config/avr/avr-protos.h (avr_out_plus): New prototype.
7607 (avr_out_plus_1): New static function.
7608 (avr_out_plus): New function.
7609 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
7610
50926346
JJ
76112011-09-23 Jakub Jelinek <jakub@redhat.com>
7612
7613 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
7614 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
7615
9e4ef69e
ILT
76162011-09-23 Ian Lance Taylor <iant@google.com>
7617
7618 * godump.c (go_define): Treat a single character in single quotes,
7619 or a string, as an operand.
7620
c7573249
MJ
76212011-09-23 Martin Jambor <mjambor@suse.cz>
7622
7623 * ipa-prop.h (jump_func_type): Updated comments.
7624 (ipa_known_type_data): New type.
7625 (ipa_jump_func): Use it to describe known type jump functions.
7626 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
7627 reflect the new known type jump function contents.
7628 (compute_known_type_jump_func): Likewise.
7629 (combine_known_type_and_ancestor_jfs): Likewise.
7630 (try_make_edge_direct_virtual_call): Likewise.
7631 (ipa_write_jump_function): Likewise.
7632 (ipa_read_jump_function): Likewise.
7633 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
7634 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
7635 (propagate_accross_jump_function): Likewise.
7636
5d94b988
GJL
76372011-09-23 Georg-Johann Lay <avr@gjlay.de>
7638
7639 PR target/50446
7640 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
7641 (rotlqi3_4): Turn insn into expander.
7642 (*rotlqi3): New insn.
7643 (rotlhi3, rotlsi3): Support rotate left/right by 1.
7644 (*rotlhi2.1, *rotlhi2.15): New insns.
7645 (*rotlsi2.1, *rotlsi2.31): New insns.
7646 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
7647
9acebb8a
BC
76482011-09-23 Bin Cheng <bin.cheng@arm.com>
7649
9b0c7202 7650 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
9acebb8a 7651
3ea6239f
MK
76522011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7653
7654 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
7655
19077123
AK
76562011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7657
7658 * reload.c (find_reloads): Set operand_mode to Pmode for address
7659 operands consisting of just a CONST_INT.
7660
63d045e1
UB
76612011-09-22 Uros Bizjak <ubizjak@gmail.com>
7662
7663 PR target/50482
7664 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
7665 blendv, force op_true to register if it doesn't satisfy
7666 nonimmediate_operand predicate.
7667
3576f984
RS
76682011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
7669
7670 PR middle-end/50113
7671 PR middle-end/50061
7672 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
7673 get the locate.where_pad value for register-only arguments.
7674 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
7675 (arm_pad_reg_upward): Handle null types.
7676
9e990d14
JH
76772011-09-22 Jan Hubicka <jh@suse.cz>
7678
7679 * ipa-inline-analysis.c: Fix overly long lines.
7680
5ee53a06
JH
76812011-09-22 Jan Hubicka <jh@suse.cz>
7682
7683 * ipa-inline-transform.c (inline_call): Always update jump functions
7684 after inlining.
7685 * ipa-inline.c (ipa_inline): Likewise; do not call
7686 ipa_create_all_structures_for_iinln.
7687 (ipa_inline): Always free jump functions.
63d045e1 7688 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
5ee53a06
JH
7689 (remap_edge_predicates): Fix pasto.
7690 (inline_merge_summary): Remove nlined edge predicate; remove hack.
7691 (inline_analyze_function): Always initialize jump functions.
7692 (inline_generate_summary): Likewise.
7693 (inline_write_summary): Always write jump functions when ipa-cp
7694 is not doing that.
7695 (inline_read_summary): Always read jump functions when ipa-cp
7696 is not doing that.
7697 * ipa-prop.c (iinlining_processed_edges): Remove.
7698 (update_indirect_edges_after_inlining): Do not use
7699 iinlining_processed_edges; instead set param_index to -1.
7700 (propagate_info_to_inlined_callees): Only try to indirect inlining
7701 when asked to do so; update jump functions of indirect calls, too;
7702 remove jump functions of the inlined edge.
7703 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
7704 (ipa_create_all_structures_for_iinln): Remove.
7705 (ipa_free_all_structures_after_iinln): Do not free
7706 iinlining_processed_edges.
7707 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
7708
aa0b3f8f
RS
77092011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
7710
7711 * config/arm/predicates.md (expandable_comparison_operator): New
7712 predicate, extracted from...
7713 (arm_comparison_operator): ...here.
7714 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
7715 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
7716 (movdfcc): Use expandable_comparison_operator.
7717
6ebe2d6c
GJL
77182011-09-22 Georg-Johann Lay <avr@gjlay.de>
7719
7720 PR target/50447
7721 PR target/50465
7722 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
7723 (avr_popcount_each_byte): New prototype.
7724 * config/avr/avr.c (avr_popcount): New static function.
7725 (avr_popcount_each_byte): New function.
7726 (avr_out_bitop): New function.
7727 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
7728 avr_out_bitop. Cleanup code.
7729 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
7730 (Ca4, Co4, Cx4): New constraints.
7731 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
7732 alternative.
7733 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
7734 (andsi3, iorsi3, xorsi3): Ditto.
7735 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
7736
29ed4920
IR
77372011-09-22 Ira Rosen <ira.rosen@linaro.org>
7738
7739 PR tree-optimization/50451
7740 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
7741 constant operands in reduction.
7742 (vect_get_slp_defs): Don't create vector operand for NULL scalar
7743 operand.
7744
f0d07099
DM
77452011-09-22 David S. Miller <davem@davemloft.net>
7746
7747 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
7748 fpack16, fpack32, fpackfix as const.
7749
45a7dd80
DM
7750 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
7751 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
7752 constants. Use them everywhere.
7753
b7cf894f
OE
77542011-09-22 Oleg Endo <oleg.endo@t-online.de>
7755
7756 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
7757 Added AND special case. Adapted comments.
7758 (sh_rtx_costs): Added XOR and IOR case.
7759
5f9f3517
JH
77602011-09-21 Jan Hubicka <jh@suse.cz>
7761
7762 * ipa-inline-analsis.c (compute_inline_parameters): Set
7763 cfun and current_function_decl.
7764
77652011-09-21 Jan Hubicka <jh@suse.cz>
7766
7767 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
7768 handled components in parameter of builtin_constant_p.
7769 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
7770
b439486d
JH
77712011-09-21 Jan Hubicka <jh@suse.cz>
7772
7773 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
7774 * ipa-inline.h (estimate_edge_time): Fix pasto.
7775 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
7776
b17e0d79
JJ
77772011-09-21 Jakub Jelinek <jakub@redhat.com>
7778
7779 * config/i386/i386.c (ix86_expand_sse_movcc): Use
7780 blendvps, blendvpd and pblendvb if possible.
7781
bd352290
UB
77822011-09-21 Uros Bizjak <ubizjak@gmail.com>
7783
7784 PR target/50464
7785 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
7786 operand 1 predicate to register_operand and operand 2 predicate
7787 to nonimmediate_operand.
7788 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
7789 xop_pcmov, force op_true to register. Also, force op_false to
7790 register if it doesn't satisfy nonimmediate_operand predicate.
7791
655d5157
KY
77922011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
7793
7794 * config/i386/bmi2intrin.h (_mulx_u64): New.
7795 (_mulx_u32): Ditto.
7796
116b9c07
JH
77972011-09-21 Jan Hubicka <jh@suse.cz>
7798
7799 PR tree-optimization/50433
bd352290
UB
7800 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
7801 Use get_base_address.
116b9c07 7802
bdbebb7d
JJ
78032011-09-21 Jakub Jelinek <jakub@redhat.com>
7804
7805 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
7806 nonimmediate_operand instead of register_operand predicate for operands
7807 1 and 2, force them into registers if expanding them as comparison.
7808 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
7809 V8HImode force into register just operand 1.
7810
e3e28585
GJL
78112011-09-21 Georg-Johann Lay <avr@gjlay.de>
7812
7813 PR target/45099
7814 * config/avr/avr.c (avr_function_arg_advance): Change error to
7815 warning if a fixed register is needed as function argument.
7816
8dab2ba5
GJL
78172011-09-21 Georg-Johann Lay <avr@gjlay.de>
7818
7819 PR target/50449
7820 PR target/50465
7821 * config/avr/avr.md (adjust_len): New insn attribute.
7822 (*reload_insi, *reload_insf): Use it.
7823 (*movsi, *movsf): Use new interface of output_movsisf.
7824 * config/avr/avr-protos.h (output_movsisf): Change prototype.
7825 * config/avr/avr.c (output_movsisf): Ditto.
7826 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
7827 lengths of insns *reload_insi, *reload_insf.
7828 (output_reload_insisf_1): New static function.
7829 (output_reload_insisf): Use it.
7830
3653988e
DM
78312011-09-21 David S. Miller <davem@davemloft.net>
7832
7833 * config/sparc/sparc.c (def_builtin): Change from macro into function.
7834 (def_builtin_const): New.
7835 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
7836 other than alignaddr and falignaddr.
7837
f4d7f828
DM
7838 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
7839 UNSPEC_FCMPEQ): New unspec codes.
7840 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
7841 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
7842 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
7843 new pixel compare VIS patterns.
7844 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
7845 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
7846 __vis_fcmpeq16, __vis_fcmpeq32): New.
7847 * doc/extend.texi: Document new pixel compare VIS intrinsics.
7848
0c514727
TV
78492011-09-21 Tom de Vries <tom@codesourcery.com>
7850
7851 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
7852
47640f40
DM
78532011-09-20 David S. Miller <davem@davemloft.net>
7854
7855 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
7856 (aligneddrl<P:mode>_vis): New pattern.
7857 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
7858 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
7859 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
7860 alignaddrl insn, and adjust edge operations for updated types.
7861 * config/sparc/visintrin.h: Likewise.
7862 * doc/extend.texi: Make typing in VIS documentation match reality.
7863
77d1f682
TG
78642011-09-20 Terry Guo <terry.guo@arm.com>
7865
7866 * config/arm/arm-arches.def: Add armv6s-m.
7867 * config/arm/arm-tables.opt: Regenerate.
7868
03230002
WG
78692011-09-20 Wei Guozhi <carrot@google.com>
7870
7871 PR rtl-optimization/49452
7872 * postreload.c (reload_combine): Invalidate use information when across
7873 volatile insn.
7874
4ec5affa
MK
78752011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
7876
7877 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
7878 Remove maintenance overhead.
7879 (haifa_sched_init, sched_finish): Update.
7880
b5344bf4
UB
78812011-09-19 Uros Bizjak <ubizjak@gmail.com>
7882
7883 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
7884 to calculate unit, prefix_rep and prefix_data16 attributes.
7885 (*mov<mode>_internal): Ditto for unit attribute.
7886 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
7887 (*movv2sf_internal): Ditto.
7888 * config/i386/sse.md (VI1248_256): Remove mode iterator.
7889 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
7890 (*avx2_eq<mode>3): Ditto.
7891 (avx2_gt<mode>3): Ditto.
7892
52325f2c
UB
78932011-09-19 Uros Bizjak <ubizjak@gmail.com>
7894
7895 * config/i386/i386.md (maxmin): New code iterator.
7896 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
7897 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
7898 code iterator.
7899 (*avx2_<maxmin:code><mode>3): Macroize isn from
7900 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
7901 maxmin code iterator.
7902 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
7903 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
7904 <umaxmin:code>v16qi3.
7905
0b5f3ce7
AM
79062011-09-19 Alan Modra <amodra@gmail.com>
7907 Michael Meissner <meissner@linux.vnet.ibm.com>
7908
7909 PR target/50341
7910 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
7911 split the load of the indirect function's TOC from the call to
7912 prevent the compiler from moving the load of the new TOC above
7913 code that references the current function's TOC.
7914 (call_indirect_aix<ptrsize>_internal): Ditto.
7915 (call_indirect_aix<ptrsize>_nor11): Ditto.
7916 (call_indirect_aix<ptrsize>_internal2): Ditto.
7917 (call_value_indirect_aix<ptrsize>): Ditto.
7918 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7919 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7920 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7921
5a1357fb
JJ
79222011-09-19 Jakub Jelinek <jakub@redhat.com>
7923
7924 * config/i386/sse.md (*sse4_1_extractps): Change into
7925 define_insn_and_split, add =x 0 n and =x x n alternatives
7926 and split them after reload.
7927
d396f899
AO
79282011-09-19 Alexandre Oliva <aoliva@redhat.com>
7929
7930 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
7931
a52a87c3
AO
79322011-09-19 Alexandre Oliva <aoliva@redhat.com>
7933
7934 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
7935
7deb61cd
IR
79362011-09-19 Ira Rosen <ira.rosen@linaro.org>
7937
7938 PR tree-optimization/50413
7939 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
7940 a basic block if one of its data-refs can't be analyzed.
7941
a3627303
PB
79422011-09-19 Paul Brook <paul@codesourcery.com>
7943
a3627303
PB
7944 * config/arm/predicates.md (shift_amount_operand): Check constant
7945 shift count is in range.
7946 (const_shift_operand): Remove.
7947
3903f804
EB
79482011-09-18 Eric Botcazou <ebotcazou@adacore.com>
7949 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7950
7951 PR target/50091
7952 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
7953 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
7954
e0cdd8d4
L
79552011-09-18 H.J. Lu <hongjiu.lu@intel.com>
7956
7957 * config/i386/bmiintrin.h: Remove tmp.
7958 * config/i386/tbmintrin.h: Likewise.
7959
0e93a64e
IR
79602011-09-18 Ira Rosen <ira.rosen@linaro.org>
7961
7962 PR tree-optimization/50414
7963 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
7964 MIN_EXPR.
7965
deaf836c
IR
79662011-09-18 Ira Rosen <ira.rosen@linaro.org>
7967
7968 PR tree-optimization/50412
7969 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
7970 acceses that require epilogue loop if vectorizing outer loop.
7971
b1e4f4dd
DM
79722011-09-17 David S. Miller <davem@davemloft.net>
7973
7974 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
7975 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
7976 New unspecs.
7977 (define_attr type): New type 'edge'.
7978 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
7979 edge32l_vis): New patterns.
7980 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
7981 * config/sparc/ultra3.md: Likewise.
7982 * config/sparc/niagara.md: Likewise.
7983 * config/sparc/niagara2.md: Likewise.
7984 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
7985 builtins for VIS edge instructions.
7986 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
7987 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
7988 intrinsics.
7989 (__v8qi, __v4qi): Make unsigned.
7990 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
7991 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
7992 __vis_fpack32): Fix types.
7993 * doc/extend.texi: Document new 'edge' VIS intrinsics.
7994
ab0ca06f
DM
7995 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
7996 divide costs.
7997 (niagara3_costs): New.
7998 (sparc_option_override): Use it.
7999 * gcc/config/sparc/niagara2.md: Adjust with more accurate
8000 Niagara-3 reservations.
8001
32469ccc
JJ
80022011-09-17 Jakub Jelinek <jakub@redhat.com>
8003
8a0436cb
JJ
8004 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
8005 (sse2_avx, sseinsnmode): Add V2TI.
8006 (REDUC_SMINMAX_MODE): New mode iterator.
8007 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
8008 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
8009 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
8010 (sse2_lshrv1ti3): Rename to...
8011 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
8012 iterator. Move before umaxmin expanders.
8013 * config/i386/i386.h (VALID_AVX256_REG_MODE,
8014 SSE_REG_MODE_P): Accept V2TImode.
8015 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
8016 V16HImode, V8SImode and V4DImode.
8017
32469ccc
JJ
8018 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
8019 and V4DImode.
8020 (ix86_build_signbit_mask): Likewise.
52325f2c 8021 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
32469ccc
JJ
8022 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
8023 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
52325f2c 8024 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
32469ccc
JJ
8025 (<code><mode>3) ... this.
8026 (avx2_<code><mode>3 smaxmin expand): Rename to...
8027 (<code><mode>3) ... this.
8028 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
8029 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
8030 VI8_AVX2 mode iterator.
8031 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
8032 VI8_AVX2 mode iterator.
8033 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
8034 New expanders.
8a0436cb 8035
ab2fd995
RS
80362011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
8037
8038 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
8039 throughout file.
8040
e7f799ce
DM
80412011-09-16 David S. Miller <davem@davemloft.net>
8042
8043 * config/sparc/visintrin.h: New file.
8044 * config.gcc: Add it to extra_headers on sparc.
8045
6e2cb391
JJ
80462011-09-16 Jakub Jelinek <jakub@redhat.com>
8047
c0b0ee6f
JJ
8048 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
8049 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
8050 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
8051 reduc_smin_v4sf): Adjust callers.
8052 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
8053 New expanders.
8054
6e2cb391
JJ
8055 * config/i386/sse.md (vec_extract_hi_<mode>,
8056 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
8057 vextracti128 instead of vextractf128 for -mavx2 and
8058 integer vectors. For V4DFmode fix up mode attribute.
8059 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
8060 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
8061 instead of V8SF mode attribute.
8062 (avx2_extracti128): Change into define_expand.
8063 * config/i386/i386.c (ix86_expand_vector_extract): Handle
8064 32-byte vector modes if TARGET_AVX.
8065
6deb5197 80662011-09-16 Georg-Johann Lay <avr@gjlay.de>
e7f799ce 8067
6deb5197
GJL
8068 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
8069 (umulqi3_highpart, smulqi3_highpart): Ditto.
8070 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
8071 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
8072 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
8073
1b65da7d
GJL
80742011-09-16 Georg-Johann Lay <avr@gjlay.de>
8075
8076 PR target/50358
8077 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
8078 (*maddqi4, *maddqi4.const): New insns.
8079 (*msubqi4, *msubqi4.const): New insns.
8080 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
8081 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
8082 HImode by 1 in the case of multiplying with a CONST_INT.
8083 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
8084
5548ca35
JH
80852011-09-15 Jan Hubicka <jh@suse.cz>
8086
8087 PR lto/50430
8088 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
8089 error_mark_node in the DECL_INITIAL of vtable.
8090
c875f596
DN
80912011-09-15 Diego Novillo <dnovillo@google.com>
8092
8093 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
8094 @SYSROOT_CFLAGS_FOR_TARGET@.
52325f2c 8095 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
c875f596
DN
8096 * configure: Regenerate.
8097 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
8098 Remove setting of GCC_UNDER_TEST.
8099
167aa8cd
UB
81002011-09-15 Uros Bizjak <ubizjak@gmail.com>
8101
8102 * config/i386/i386.c (output_fp_compare): Return %v prefixed
8103 instruction mnemonics for TARGET_AVX.
8104
8105 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
8106 "type" attribute calculation.
8107 (*movdf_internal): Ditto.
8108 (*movsf_internal): Ditto.
8109
5d248b41
JG
81102011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
8111
8112 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
8113
f298ca26
JM
81142011-09-15 Jason Merrill <jason@redhat.com>
8115
8116 PR c++/50361
8117 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
8118
a61bd030
JH
81192011-09-15 Jan Hubicka <jh@suse.cz>
8120
8121 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
8122 simplify obviously true clauses.
8123 (and_predicates, or_predicates): Add conditions parameter.
8124 (inline_duplication_hoook): Update.
8125 (mark_modified): New function.
8126 (unmodified_parm): New function.
8127 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
8128 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
8129 Use unmodified_parm.
8130 (estimate_function_body_sizes): Update.
8131 (remap_predicate): Update.
8132
e0521991
IR
81332011-09-15 Ira Rosen <ira.rosen@linaro.org>
8134
8135 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
8136 read-after-read dependencies in basic block SLP.
8137
fe0aee6c
RS
81382011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8139
8140 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
8141 throughout file.
8142
68ed2b9c
RS
81432011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8144
8145 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
8146 throughout file.
8147
d7f99b2c
RS
81482011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8149
8150 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
8151 throughout file.
8152
26b996c6
RS
81532011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8154
8155 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
8156 throughout file.
8157 * config/rs6000/constraints.md: Likewise.
8158
5cf6e736
RS
81592011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8160
8161 * config/microblaze/microblaze.md: Use match_test rather than
8162 eq/ne symbol_ref throughout file.
8163
dd02d5ef
RS
81642011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
8165
8166 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
8167 throughout file.
8168
50025f91
TV
81692011-09-14 Tom de Vries <tom@codesourcery.com>
8170
8171 PR middle-end/50251
8172 * explow.c (emit_stack_restore): Set crtl->need_drap if
8173 stack_restore is emitted.
8174
86b60116
JB
81752011-09-14 Julian Brown <julian@codesourcery.com>
8176
8177 * config/arm/arm.c (arm_override_options): Add unaligned_access
8178 support.
167aa8cd 8179 (arm_file_start): Emit attribute for unaligned access as appropriate.
86b60116
JB
8180 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
8181 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
8182 (insv, extzv): Add unaligned-access support.
8183 (extv): Change to expander. Likewise.
8184 (extzv_t1, extv_regsi): Add helpers.
8185 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
8186 (unaligned_storesi, unaligned_storehi): New.
8187 (*extv_reg): New (previous extv implementation).
8188 * config/arm/arm.opt (munaligned_access): Add option.
8189 * config/arm/constraints.md (Uw): New constraint.
8190 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
8191 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
8192 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
8193 volatile accesses when -fstrict-volatile-bitfields is in effect.
8194 (extract_bit_field_1): Likewise.
8195
fafaf06f
RS
81962011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
8197
8198 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
8199 a scalar integer before applying integer-only optimisations to
8200 inner arithmetic.
8201
35511751
BS
82022011-09-14 Bernd Schmidt <bernds@codesourcery.com>
8203
8204 * config/mips/mips.c (mips_expand_epilogue): Generate a
8205 simple_return only if the return address is in r31.
8206
43052d45
BS
82072011-09-13 Bernd Schmidt <bernds@codesourcery.com>
8208
8209 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
8210 NULL for a jump that is a cc0 insn, pick the previous insn for
8211 move_before.
8212
61c4c150
RS
82132011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8214
8215 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
8216 throughout file.
8217
d3c7d136
RS
82182011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8219
8220 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
8221 throughout file.
8222
129043ff
RS
82232011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8224
8225 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
8226 symbol_ref throughout file.
8227
c5c68094
RS
82282011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8229
8230 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
8231 throughout file.
8232
9e53d97c
RS
82332011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8234
8235 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
8236 throughout file.
8237
b75b1be2
RS
82382011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
8239
8240 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
8241 throughout file.
8242 * config/arm/neon.md: Likewise.
8243 * config/arm/vfp.md: Likewise.
8244 * config/arm/thumb2.md: Likewise.
8245 * config/arm/cortex-m4.md: Likewise.
8246
bd1aa4f4
SS
82472011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
8248
8249 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
8250 define_insn patterns for combine.
8251
29b7399a
GS
82522011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
8253
8254 * reorg.c: Always define make_return_insns.
8255
aa74f081
JH
82562011-09-13 Jan Hubicka <jh@suse.cz>
8257
42f833bc
JH
8258 PR other/49533
8259 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
8260
82612011-09-13 Jan Hubicka <jh@suse.cz>
8262
8263 PR other/49533
aa74f081
JH
8264 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
8265
1e874273 82662011-09-13 Paul Brook <paul@codesourcery.com>
167aa8cd 8267
1e874273
PB
8268 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8269 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
8270 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
8271 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
8272 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
8273 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
8274 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
8275 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
8276 enabling unwind tables.
8277 (c6x_debug_unwind_info): New function.
8278 (TARGET_ARM_EABI_UNWINDER): Define.
8279 (TARGET_DEBUG_UNWIND_INFO): Define.
8280 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
8281 (TARGET_EXTRA_CFI_SECTION): Remove.
8282 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
8283 * ginclude/unwind-arm-common.h: New file.
8284
3e0cef6d 82852011-09-13 Georg-Johann Lay <avr@gjlay.de>
167aa8cd 8286
3e0cef6d
GJL
8287 PR target/50358
8288 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
8289 * config/avr/avr.md: (extend_s): New code attribute.
8290 (mul_r_d): New code attribute.
8291 (*maddqihi4, *umaddqihi4): New insns.
8292 (*msubqihi4, *umsubqihi4): New insns.
8293 (*usmaddqihi4, *sumaddqihi4): New insns.
8294 (*usmsubqihi4, *susubdqihi4): New insns.
8295 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
8296 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
8297 (*umsubqihi4.uconst.ashift): New insn-and-split.
8298 (*msubqihi4.sconst.ashift): New insn-and-split.
8299 (*sumaddqihi4.uconst): New insn-and-split.
8300 (*sumsubqihi4.uconst): New insn-and-split.
8301 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
8302 PLUS:HI and MINUS:HI.
8303
a9fb4f13
RE
83042011-09-13 Revital Eres <revital.eres@linaro.org>
8305
8306 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
8307 (optimize_sc): Adjust call to remove_node_from_ps.
8308 (sms_schedule): Add print info.
8309
e7397618
BS
83102011-09-13 Bernd Schmidt <bernds@codesourcery.com>
8311
8312 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
8313 flags specially.
8314
b84dad8e
JJ
83152011-09-12 Jakub Jelinek <jakub@redhat.com>
8316
8317 PR bootstrap/50010
8318 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
8319 NOTE_INSN_CFI notes, with the exception of
8320 NOTE_INSN_SWITCH_TEXT_SECTIONS.
8321
3bd0817d
RS
83222011-09-12 Bernd Schmidt <bernds@codesourcery.com>
8323 Richard Sandiford <rdsandiford@googlemail.com>
8324
8325 * config/mips/mips.c (mips_epilogue): New structure.
8326 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
8327 restoring registers.
8328 (mips_epilogue_emit_cfa_restores): New function.
8329 (mips_epilogue_set_cfa): Likewise.
8330 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
8331 the current CFA register from the stack, redefine the CFA in terms
8332 of the stack pointer.
8333 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
8334 to the epilogue instructions.
8335
42ae51f4
RS
83362011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
8337
8338 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
8339 argument.
8340 (mips16e_build_save_restore): Update accordingly.
8341
7d810276
JJ
83422011-09-12 Jakub Jelinek <jakub@redhat.com>
8343
b58d3391
JJ
8344 PR rtl-optimization/50212
8345 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8346 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
8347
7d810276
JJ
8348 PR debug/50299
8349 * calls.c (load_register_parameters): Use use_reg_mode instead
8350 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
8351 entry.
8352 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
8353 for stack CALL_INSN_FUNCTION_USAGE uses.
8354 * expr.h (use_reg_mode): New prototype.
8355 (use_reg): Changed into inline around use_reg_mode.
8356 * expr.c (use_reg): Renamed to...
8357 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
8358 mode to that mode instead of VOIDmode.
8359 * var-tracking.c (prepare_call_arguments): Don't track parameters
8360 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
8361 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
8362 EXPR_LIST mode.
8363
886a64f9
GJL
83642011-09-12 Georg-Johann Lay <avr@gjlay.de>
8365
8366 PR target/43746
8367 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
8368 (progmem_section): New Variable.
8369 (avr_asm_init_sections): Initialize it.
8370 (TARGET_ASM_SELECT_SECTION): Define to...
8371 (avr_asm_select_section): ... this new Function.
8372 (avr_replace_prefix): New Function.
8373 (avr_asm_function_rodata_section): Use it.
8374 (avr_insert_attributes): Don't add section attribute for PROGMEM.
8375 (avr_section_type_flags): Use avr_progmem_p instead of section
8376 name to detect if object is in PROGMEM.
8377 (avr_asm_named_section): Set section name prefix for objects in
8378 PROGMEM.
8379
dc72b313
JJ
83802011-09-12 Jakub Jelinek <jakub@redhat.com>
8381
8382 PR bootstrap/50352
8383 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
8384 sprintf format string.
8385
ba02d3bc
RG
83862011-09-12 Richard Guenther <rguenther@suse.de>
8387
8388 PR tree-optimization/50343
8389 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
167aa8cd 8390 that the reduction is over an SSA name before checking its definition.
ba02d3bc 8391
bf0b8cbe
RS
83922011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
8393
8394 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
8395 throughout file.
8396
ae0087f2
RS
83972011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
8398
8399 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
8400 throughout file.
8401 * config/mips/sb1.md: Likewise.
8402 * config/mips/predicates.md: Replace (match_test "!...")
8403 with (not (match_test "..."))
8404 * config/mips/constraints.md: Likewise.
8405
54e73f88
AS
84062011-09-09 Andrew Stubbs <ams@codesourcery.com>
8407
8408 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
8409 * config/arm/arm-tables.opt: Regenerate.
8410 * config/arm/arm-tune.md: Regenerate.
8411 * config/arm/arm.c (arm_file_start): Output .arch directive when
8412 user passes -mcpu=generic-*.
8413 (arm_issue_rate): Add genericv7a support.
8414 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
8415 (ASM_CPU_SPEC): New define.
8416 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
8417 * config/arm/semi.h (ASM_SPEC): Likewise.
8418 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
8419 and -mtune=generic-*.
8420
107defbe
RG
84212011-09-09 Richard Guenther <rguenther@suse.de>
8422
8423 PR tree-optimization/50328
8424 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
8425 constant or default-def operand.
8426
0aa16586
RG
84272011-09-09 Richard Guenther <rguenther@suse.de>
8428
8429 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
8430 last statement.
8431
59401b92
RG
84322011-09-09 Richard Guenther <rguenther@suse.de>
8433
8434 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
8435 instead of a statement.
8436 * gimple-fold.c (fold_stmt_inplace): Likewise.
8437 * sese.c (graphite_copy_stmts_from_block): Adjust.
8438 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8439 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
8440 fold_stmt.
8441 (forward_propagate_addr_into_variable_array_index): Likewise.
8442 (forward_propagate_addr_expr_1): adjust.
8443 (associate_plusminus): Likewise.
8444 (ssa_forward_propagate_and_combine): Likewise.
8445 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
8446 (execute_cse_reciprocals): Likewise.
8447 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
8448
cf13d9cf
NC
84492011-09-09 Nick Clifton <nickc@redhat.com>
8450
8451 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
8452 Return a positive value to indicate that the bits at the
8453 bottom of the register should be cleared.
8454
64d9cb05
RG
84552011-09-09 Richard Guenther <rguenther@suse.de>
8456
8457 * tree-ssa-operands.c (swap_tree_operands): Always adjust
8458 existing operand positions.
8459
ffd78b30
RG
84602011-09-09 Richard Guenther <rguenther@suse.de>
8461
8462 PR middle-end/50333
8463 * tree-data-ref.c (split_constant_offset): Do not try to handle
8464 ternary ops.
8465
c3c5a1cc
AS
84662011-09-08 Andrew Stubbs <ams@codesourcery.com>
8467
8468 PR tree-optimization/50318
8469 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
8470 typo in use of mult_rhs1 and mult_rhs2.
8471
974e0ad6
UB
84722011-09-08 Uros Bizjak <ubizjak@gmail.com>
8473
8474 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
8475 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
8476
bd2777de
BS
84772011-09-08 Bernd Schmidt <bernds@codesourcery.com>
8478
8479 * config/arm/arm.md (push_multi): Emit predicates.
8480 (push_fp_multi): Likewise.
8481 * config/arm/arm.c (vfp_output_fstmd): Likewise.
8482
3797cb21
DS
84832011-09-08 Dodji Seketeli <dodji@redhat.com>
8484
8485 PR c++/33255 - Support -Wunused-local-typedefs warning
8486 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
974e0ad6
UB
8487 (pushdecl): Use the new record_locally_defined_typedef.
8488 (store_parm_decls): Allocate cfun->language.
8489 (finish_function): Use the new maybe_warn_unused_local_typedefs,
8490 and free cfun->language.
8491 (c_push_function_context): Allocate cfun->language here only if needed.
8492 (c_pop_function_context): Likewise, mark cfun->language
8493 for collection only when it should be done.
8494 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
8495 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
8496 maybe_record_local_typedef_use.
3797cb21
DS
8497 * doc/invoke.texi: Update documentation for
8498 -Wunused-local-typedefs.
8499
d275ab8b
EI
85002011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
8501
8502 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
8503 (ix86_avoid_lea_for_add): Likewise.
8504 (ix86_avoid_lea_for_addr): Likewise.
8505 (ix86_split_lea_for_addr): Likewise.
8506
8507 * config/i386/i386.c (LEA_MAX_STALL): New.
8508 (increase_distance): Likewise.
8509 (insn_defines_reg): Likewise.
8510 (insn_uses_reg_mem): Likewise.
8511 (distance_non_agu_define_in_bb): Likewise.
8512 (distance_agu_use_in_bb): Likewise.
8513 (ix86_lea_outperforms): Likewise.
8514 (ix86_ok_to_clobber_flags): Likewise.
8515 (ix86_avoid_lea_for_add): Likewise.
8516 (ix86_avoid_lea_for_addr): Likewise.
8517 (ix86_split_lea_for_addr): Likewise.
8518 (distance_non_agu_define): Search in pred BBs added.
8519 (distance_agu_use): Search in succ BBs added.
8520 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
8521 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
8522 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
8523
8524 * config/i386/i386.md: Split added to transform non destructive
8525 add into move and add.
8526 (lea_1): transformed into insn_and_split to avoid AGU stalls.
8527 (lea<mode>_2): Likewise.
8528
86814190
MJ
85292011-09-08 Martin Jambor <mjambor@suse.cz>
8530
8531 PR tree-optimization/50287
8532 * ipa-split.c (split_function): Do not create SSA names for
8533 non-gimple-registers.
8534
996e1de5
RG
85352011-09-08 Richard Guenther <rguenther@suse.de>
8536
8537 PR tree-optimization/19831
8538 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
8539 skip builtins with vdefs that do not really store something.
8540 (propagate_necessity): For calls to free that we can associate
8541 with an allocation function do not mark the freed pointer
8542 definition necessary.
8543 (eliminate_unnecessary_stmts): Remove a call to free if
8544 the associated call to an allocation function is not necessary.
8545
c22c0db2
RG
85462011-09-08 Richard Guenther <rguenther@suse.de>
8547
8548 PR tree-optimization/19831
8549 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
8550 allocation functions as necessary.
8551
558c362a
IS
85522011-09-08 Iain Sandoe <iains@gcc.gnu.org>
8553
974e0ad6
UB
8554 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
8555 cut from ...
8556 (darwin_default_min_version): Amended to provide defaults
558c362a
IS
8557 for the cross directory case.
8558 (darwin_driver_init): call darwin_default_min_version unconditionally.
8559 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
8560 * config/darwin9.h: Likewise.
8561 * config/darwin10.h: Likewise.
8562 * config/rs6000/darwin7.h: Likewise.
8563
1542d97a
JJ
85642011-09-08 Jakub Jelinek <jakub@redhat.com>
8565
8566 PR target/50310
8567 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
8568 code early if TARGET_AVX.
8569 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
8570
601a5d76
JJ
85712011-09-07 Jakub Jelinek <jakub@redhat.com>
8572
8573 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
8574 duplicates.
8575
8576 PR target/50310
8577 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
8578 "mode" attribute computation.
8579
8ffa0351
BS
85802011-09-07 Bernd Schmidt <bernds@codesourcery.com>
8581
8582 * regrename.c (struct du_head): Make nregs signed.
8583 (closed_chains): Remove.
8584 (create_new_chain): Return the new chain.
8585 (chain_from_id): New static function.
8586 (dump_def_use_chain): Change argument to be an int, indicating
8587 the first ID to print. All callers changed.
8588 (merge_overlapping_regs): Use chain_from_id. Assert that
8589 chains don't conflict with themselves.
8590 (rename_chains): Take no argument. Iterate over id_to_chain
974e0ad6 8591 rather to find chains to rename. Clear tick before the main loop.
8ffa0351
BS
8592 (struct incoming_reg_info): New struct.
8593 (struct bb_rename_info): New struct.
8594 (init_rename_info, set_incoming_from_chain, merge_chains): New
8595 static functions.
8596 (regrename_analyze): New static function, broken out of
8597 regrename_optimize. Record and make use of open chain information
8598 at basic block boundaries, and merge chains where possible.
8599 (scan_rtx_reg): Make this_nregs signed. Don't update
8600 closed_chains.
8601 (build_def_use): Return a bool to indicate success. All callers
8602 changed. Don't initialize global data here.
8603 (regrename_optimize): Move most code out of here into
8604 regrename_analyze.
8605 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
8606 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
8607 static inline functions.
8608 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
8609
ca1ae7e3
BS
8610 * bb-reorder.c (insert_section_boundary_note): Don't check
8611 optimize_function_for_speed_p.
8612 (gate_handle_partition_blocks): Do it here instead.
8613 (gate_handle_reorder_blocks): Move preliminary checks here ...
8614 (rest_of_handle_reorder_blocks): ... from here.
8615
128c61ee
MJ
86162011-09-07 Martin Jambor <mjambor@suse.cz>
8617
8618 PR middle-end/50301
8619 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
8620 function index bounds.
8621 (perhaps_add_new_callers): Likewise.
8622
da990dc0
MJ
86232011-09-07 Martin Jambor <mjambor@suse.cz>
8624
8625 PR tree-optimization/49911
8626 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
8627 enumerations to the corresponding plain integer type.
8628
747633c5
RG
86292011-09-07 Richard Guenther <rguenther@suse.de>
8630
8631 PR tree-optimization/50319
8632 * tree-if-conv.c (set_bb_predicate): Assert we only set
8633 canonical predicates.
8634 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
8635 around canonical predicates.
8636 (predicate_bbs): Do not re-gimplify already canonical
8637 predicates. Properly unshare them though.
8638 (find_phi_replacement_condition): Simplify.
8639
723d95fe
RS
86402011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
8641
8642 PR target/49030
8643 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
8644 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
8645 reusing the old code from get_arm_condition_code. Return ARM_NV
8646 for invalid comparison codes.
8647 (get_arm_condition_code): Redefine in terms of
8648 maybe_get_arm_condition_code.
8649 * config/arm/predicates.md (arm_comparison_operator): Use
8650 maybe_get_arm_condition_code.
8651
e8642944
RG
86522011-09-07 Richard Guenther <rguenther@suse.de>
8653
8654 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8655 Canonicalize negated predicates by swapping edges.
8656 (forward_propagate_into_cond): Likewise.
8657
601f64e2
RG
86582011-09-07 Richard Guenther <rguenther@suse.de>
8659
8660 PR tree-optimization/50213
8661 * tree-flow.h (simple_iv_increment_p): Declare.
8662 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
8663 POINTER_PLUS_EXPR.
8664 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
8665 not propagate simple IV counter increments.
8666
1aeee5ad
IS
86672011-09-07 Eric Botcazou <ebotcazou@adacore.com>
8668 Iain Sandoe <iains@gcc.gnu.org>
8669
8670 * config/rs6000/rs6000.c (compute_save_world_info): Test
8671 cfun->has_nonlocal_label to determine if the out-of-line save
8672 world call may be used.
8673
da73162f
NC
86742011-09-07 Nick Clifton <nickc@redhat.com>
8675
8676 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
8677 label on the parallel part of the insn.
8678
5d506c77
JJ
86792011-09-07 Jakub Jelinek <jakub@redhat.com>
8680
8681 PR debug/50191
8682 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
8683 avoid_constant_pool_reference first instead of last.
8684
7b50d234
MM
86852011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8686
8687 * doc/configfiles.texi (Configuration Files): Update documentation
8688 about tm_p.h and remove FIXME comment.
8689
8092dd90
UB
86902011-09-06 Uros Bizjak <ubizjak@gmail.com>
8691
8692 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
8693 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
8694
cf8fd309
IS
86952011-09-06 Iain Sandoe <iains@gcc.gnu.org>
8696
8697 * config/darwin10.h Remove duplicate LIB_SPEC.
8698
df7b0cc4
EI
86992011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
8700
8701 PR middle-end/44382
8702 * target.def (reassociation_width): New hook.
8703
8704 * doc/tm.texi.in (reassociation_width): Likewise.
8705
8706 * doc/tm.texi (reassociation_width): Likewise.
8707
8708 * doc/invoke.texi (tree-reassoc-width): New param documented.
8709
8710 * hooks.h (hook_int_uint_mode_1): New default hook.
8711
8712 * hooks.c (hook_int_uint_mode_1): Likewise.
8713
8714 * config/i386/i386.h (ix86_tune_indices): Add
974e0ad6 8715 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
df7b0cc4
EI
8716
8717 (TARGET_REASSOC_INT_TO_PARALLEL): New.
8718 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
8719
8720 * config/i386/i386.c (initial_ix86_tune_features): Add
974e0ad6 8721 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
df7b0cc4 8722
974e0ad6 8723 (ix86_reassociation_width): New function.
df7b0cc4
EI
8724
8725 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
8726
8727 * tree-ssa-reassoc.c (get_required_cycles): New function.
8728 (get_reassociation_width): Likewise.
8729 (swap_ops_for_binary_stmt): Likewise.
8730 (rewrite_expr_tree_parallel): Likewise.
8731
974e0ad6 8732 (rewrite_expr_tree): Refactored. Part of code moved into
df7b0cc4
EI
8733 swap_ops_for_binary_stmt.
8734
974e0ad6
UB
8735 (reassociate_bb): Now checks reassociation width to be used and
8736 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
df7b0cc4 8737
df2f6100
RG
87382011-09-06 Richard Guenther <rguenther@suse.de>
8739
8740 PR tree-optimization/47025
8741 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
8742 uses nothing.
8743 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
8744 BUILT_IN_FREE.
8745 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
8746 definitely points to.
8747 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8748 BUILT_IN_VA_START doesn't let its va_list argument escape.
8749 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
8750 not make any previous stores necessary.
8751
124f1be6
MJ
87522011-09-06 Martin Jambor <mjambor@suse.cz>
8753
8754 * ipa-inline.h (struct inline_summary): Move versionable flag...
8755 * cgraph.h (struct cgraph_local_info): ...here
8756 * ipa-cp.c (determine_versionability): Use the new versionable flag.
8757 (determine_versionability): Likewise.
8758 (ipcp_versionable_function_p): Likewise.
8759 (ipcp_generate_summary): Likewise.
8760 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
8761 versionable flag.
8762 (compute_inline_parameters): Do not clear the versionable flag.
8763 (inline_read_section): Do not stream the versionable flag.
8764 (inline_write_summary): Likewise.
8765 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
8766 (input_overwrite_node): Likewise.
8767
1a60c352
RG
87682011-09-06 Richard Guenther <rguenther@suse.de>
8769
8770 PR tree-optimization/48149
8771 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
8772 (vn_valueize): Move earlier.
8773 (valueize_expr): Use vn_valueize.
8774 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
8775 operands.
8776 (simplify_unary_expression): Simplify.
8777
5a7d7f9c
RG
87782011-09-06 Richard Guenther <rguenther@suse.de>
8779
8780 PR tree-optimization/48317
8781 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
8782 trailing array.
8783 (sizeof_vn_nary_op): New inline function.
8784 (vn_nary_op_lookup_pieces): Adjust.
8785 (vn_nary_op_insert_pieces): Likewise.
8786 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
8787 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
8788 any number of operands.
8789 (vn_nary_length_from_stmt): New function.
8790 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
8791 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
8792 sized temporary.
8793 (vn_nary_op_lookup): Likewise.
8794 (vn_nary_op_lookup_stmt): Likewise.
8795 (vn_nary_op_insert_into): Likewise.
8796 (vn_nary_op_insert_stmt): Likewise.
8797 (visit_use): Handle CONSTRUCTOR as nary.
8798 * tree-ssa-pre.c (phi_translate_1): Adjust.
8799 (create_expression_by_pieces): Likewise.
8800 (compute_avail): Likewise.
8801
8f40ccea
IR
88022011-09-06 Ira Rosen <ira.rosen@linaro.org>
8803
8804 * config/arm/arm.c (arm_preferred_simd_mode): Check
8805 TARGET_NEON_VECTORIZE_DOUBLE instead of
8806 TARGET_NEON_VECTORIZE_QUAD.
8807 (arm_autovectorize_vector_sizes): Likewise.
8808 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
8809 mask of mvectorize-with-neon-double. Add RejectNegative.
8810 (mvectorize-with-neon-double): New.
8811
32dba5ef
RG
88122011-09-06 Richard Guenther <rguenther@suse.de>
8813
974e0ad6 8814 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
32dba5ef 8815
1255c03a
TV
88162011-09-06 Tom de Vries <tom@codesourcery.com>
8817
8818 * recog.c (asm_labels_ok): New function.
8819 (check_asm_operands): Use asm_labels_ok.
8820
81a478c8
RS
88212011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
8822
8823 PR target/49606
8824 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
8825 (PMODE_INSN): New macro.
8826 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
8827 (mips_got_load, mips_expand_synci_loop): Likewise.
8828 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
8829 cprestore patterns.
8830 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
8831 copygp_mips16 patterns.
8832 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
8833 and use_cprestore patterns.
8834 (mips_override_options): Check for incompatible -mabi and -mlong
8835 combinations.
8836 * config/mips/mips.md (unspec_got<mode>): Rename to...
8837 (unspec_got_<mode>): ...this.
8838 (copygp_mips16): Use the Pmode iterator.
8839 (potential_cprestore, cprestore, use_cprestore): Likewise.
8840 (clear_cache, indirect_jump): Use PMODE_INSN.
8841 (indirect_jump<mode>): Rename to...
8842 (indirect_jump_<mode>): ...this.
8843 (tablejump): Use PMODE_INSN.
8844 (tablejump<mode>): Rename to...
8845 (tablejump_<mode>): ...this.
8846 (exception_receiver): Handle restore_gp_si and restore_gp_di.
8847 (restore_gp): Use the Pmode iterator.
8848 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
8849 PMODE_INSN.
8850
1ab9ec7b
RS
88512011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
8852
8853 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
8854 Fix the type of the BIT_AND_EXPR.
8855
0913b2d6
DM
88562011-09-05 David S. Miller <davem@davemloft.net>
8857
8858 * config.host: Add driver-sparc.o and sparc/x-sparc on
8859 native sparc*-*-linux* builds.
8860 * config/sparc/driver-sparc.c: Correct Linux strings.
8861 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
8862 * config/sparc/linux64.h: Likewise.
8863 * doc/invoke.texi: Document that Linux also supports
8864 -mcpu=native and -mtune=native on sparc.
8865
3e64c239
DM
8866 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
8867 PROCESSOR_NIAGARA4): New.
8868 * config/sparc/sparc.opt: Handle new processor types.
8869 * config/sparc/sparc.md: Add to "cpu" attribute.
8870 * config/sparc/sparc.h (TARGET_CPU_niagara3,
8871 TARGET_CPU_niagara4): New, treat as niagara2.
974e0ad6 8872 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
3e64c239 8873 * config/sparc/sol2.h: Likewise.
974e0ad6 8874 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
3e64c239
DM
8875 * config/sparc/sparc.c (sparc_option_override): Add
8876 niagara3 and niagara4 handling.
8877 (sparc32_initialize_trampoline): Likewise.
8878 (sparc64_initialize_trampoline): Likewise.
8879 (sparc_use_sched_lookahead): Likewise.
8880 (sparc_issue_rate): Likewise.
8881 (sparc_register_move_cost): Likewise.
8882 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
8883 and niagara4 as appropriate.
8884 * doc/invoke.texi: Document new processor types.
70847a48
DM
8885 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
8886 and --with-tune options.
3e64c239 8887
4f4f4f54
DM
8888 * config/sparc/sol2-64.h: Move ...
8889 * config/sparc/default-64.h: ... to here. Update comment.
8890 * config.gcc: Update Solaris sparc to use default-64.h, also
8891 prefix this header into the list on sparc64-*-linux.
8892 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
8893 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
8894 to MASK_HARD_QUAD.
8895
1e3a7e86
GJL
88962011-09-05 Georg-Johann Lay <avr@gjlay.de>
8897
8898 PR target/50289
8899 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
8900 that contain global register variable.
8901
e1ab3876
RG
89022011-09-05 Richard Guenther <rguenther@suse.de>
8903
8904 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
8905
830c740f
RG
89062011-09-05 Richard Guenther <rguenther@suse.de>
8907
8908 * stor-layout.c (layout_type): Use size_binop for array size
8909 calculations.
8910
c149e487 89112011-09-05 Georg-Johann Lay <avr@gjlay.de>
0913b2d6 8912
c149e487
GJL
8913 * config/avr/avr.h (progmem_section): Remove Declaration.
8914 * config/avr/avr.c (progmem_section): Make static and rename to
8915 progmem_swtable_section.
8916 (avr_output_addr_vec_elt): No need to switch sections.
8917 (avr_asm_init_sections): Use output_section_asm_op as section
8918 callback for progmem_swtable_section.
8919 (avr_output_progmem_section_asm_op): Remove Function.
8920 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
8921 (avr_asm_function_rodata_section): New static Function.
8922 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
8923 alignment 2**1 for jump tables.
8924
c5ceeb87
JH
89252011-09-04 Jan Hubicka <jh@suse.cz>
8926
8927 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
8928 parameter is SSA name.
8929
5b970a1a
RG
89302011-09-04 Richard Guenther <rguenther@suse.de>
8931
8932 Revert
8933 2011-08-31 Richard Guenther <rguenther@suse.de>
8934
8935 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
8936 special-casing.
8937
c0c19685
IS
89382011-09-04 Iain Sandoe <iains@gcc.gnu.org>
8939
8940 PR debug/49901
8941 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
8942
ad949bcc
JJ
89432011-09-04 Jakub Jelinek <jakub@redhat.com>
8944 Ira Rosen <ira.rosen@linaro.org>
8945
8946 PR tree-optimization/50208
8947 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
8948 argument. Check that def_stmt is inside the loop.
8949 (vect_recog_widen_mult_pattern): Update calls to
8950 vect_handle_widen_mult_by_cons.
8951 (vect_operation_fits_smaller_type): Check that def_stmt is
8952 inside the loop.
8953
7cd3603b
IR
89542011-09-04 Ira Rosen <ira.rosen@linaro.org>
8955
8956 * tree-vectorizer.c (vect_print_dump_info): Print line
8957 number when dumping to a file.
8958 (vectorize_loops): Add new messages to dump file.
8959
606d9a09
MJ
89602011-09-03 Martin Jambor <mjambor@suse.cz>
8961
8962 * ipa-prop.h (ipa_jump_func_t): New typedef.
8963 (struct ipa_edge_args): Removed field argument_count, field
8964 jump_functions turned into a vector.
8965 (ipa_set_cs_argument_count): Removed.
8966 (ipa_get_cs_argument_count): Updated to work on vectors.
8967 (ipa_get_ith_jump_func): Likewise.
8968 * ipa-prop.c (ipa_count_arguments): Removed.
8969 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
8970 jump functions. Update caller.
8971 (compute_pass_through_member_ptrs): Likewise.
8972 (compute_cst_member_ptr_arguments): Likewise.
8973 (ipa_compute_jump_functions_for_edge): Get number of arguments from
8974 the statement, allocate vector.
8975 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
8976 (duplicate_ipa_jump_func_array): Removed.
8977 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
8978 (ipa_read_node_info): Allocate vector.
8979
15768583
JDA
89802011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8981
8f15b605 8982 PR middle-end/50232
15768583
JDA
8983 * config/pa/pa.md (return): Define "return" insn pattern.
8984 (epilogue): Use it when no epilogue is needed.
8985 * config/pa/pa.c (pa_can_use_return_insn): New function.
8986 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
8987
13868f40
EB
89882011-09-03 Eric Botcazou <ebotcazou@adacore.com>
8989
8990 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
8991 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
8992 Force at least BITS_PER_UNIT alignment on the new variable.
8993
58265ea6
GF
89942011-09-02 Gary Funck <gary@intrepid.com>
8995
8996 * opts.c (print_specific_help): Fix off-by-one compare in
8997 assertion check.
8998 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8999 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
9000 Increase by +5 to allow for more languages.
9001 * optc-gen.awk: Generate #if that ensures that the number of
9002 languages is within the implementation-defined limit.
9003
dde460d4
MM
90042011-09-02 Michael Matz <matz@suse.de>
9005
9006 PR middle-end/50260
9007 * ipa-split.c (split_function): Call add_referenced_var.
9008
9009 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
9010 (cond_if_else_store_replacement_1): Ditto.
9011 * tree-ssa-pre.c (get_representative_for): Ditto.
9012 (create_expression_by_pieces): Ditto.
9013 (insert_into_preds_of_block): Ditto.
9014 * tree-sra.c (create_access_replacement): Ditto.
9015 (get_replaced_param_substitute): Ditto.
9016
6bd9bf42
BS
90172011-09-02 Bernd Schmidt <bernds@codesourcery.com>
9018
9019 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
9020 automata_options.
9021 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
9022 (l1w, s1w, l2w, s2w): Define in the main automaton.
9023 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
9024 units.
9025 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
9026 (c6x_unit_names): Add the new units.
9027 (c6x_unit_codes): New static array.
9028 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
9029 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
9030 UNIT_QID_SIDE_OFFSET): New macros.
9031 (RESERVATION_S2): Adjust value.
9032 (c6x_option_override): Compute c6x_unit_codes.
9033 (assign_reservations): Take the unit_mask of the last instruction
9034 into account. Detect floating point reservations by looking for
9035 the new units. Don't assign reservations if the field is already
9036 nonzero.
9037 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
9038 (init_sched_state): Initialize it.
9039 (c6x_clear_sched_context): Free it.
9040 (insn_set_clock): Clear reservation.
9041 (prev_cycle_state): New static variable.
9042 (c6x_init_sched_context): Save it.
9043 (c6x_sched_init): Allocate space for it and clear it.
9044 (c6x_sched_dfa_pre_cycle_insn): New static function.
9045 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
9046 (c6x_variable_issue): Only record units in the unit_mask that
9047 were not set at the start of the cycle.
9048 (c6x_variable_issue): Compute and store the unit_mask from the
9049 current state.
9050 (reorg_split_calls): Ensure the new information remains correct.
9051 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
9052 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
9053 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
9054 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
9055 Add special reservations.
9056 * config/c6x/c6x-sched.md: Regenerate.
9057
d7da5cc8
MJ
90582011-09-02 Martin Jambor <mjambor@suse.cz>
9059
9060 * ipa-prop.h (ipa_node_params): Removed fields
9061 called_with_var_arguments and node_versionable.
9062 (ipa_set_called_with_variable_arg): Removed.
9063 (ipa_is_called_with_var_arguments): Likewise.
9064 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
9065 (determine_versionability): Do not check for type attributes and va
9066 builtins. Record versionability into inline summary.
9067 (initialize_node_lattices): Do not check
9068 ipa_is_called_with_var_arguments.
9069 (propagate_constants_accross_call): Likewise, ignore arguments we do
9070 not have PARM_DECLs for, set variable flag for parameters that were
9071 not passed a value.
9072 (create_specialized_node): Dump info that we cannot change signature.
9073 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
9074 number of arguments.
9075 (ipa_make_edge_direct_to_target): Likewise.
9076 (ipa_update_after_lto_read): Likewise.
9077 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
9078 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
9079 they were remapped.
9080
e9e1d143
RG
90812011-09-02 Richard Guenther <rguenther@suse.de>
9082
9083 PR tree-optimization/27460
9084 PR middle-end/29269
9085 * doc/md.texi (vcond): Document.
9086 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
9087 optab with two modes.
9088 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
9089 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
9090 (vcond_optab): Adjust.
9091 (vcondu_optab): Likewise.
9092 (expand_vec_cond_expr_p): Adjust prototype.
9093 * optabs.c (get_vcond_icode): Adjust.
9094 (expand_vec_cond_expr_p): Likewise.
9095 (expand_vec_cond_expr): Likewise.
9096 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
9097 vector type.
9098 (vectorizable_condition): Allow differing types for comparison
9099 and result.
9100 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
9101 for the comparison.
9102 * config/i386/sse.md (vcond<mode>): Split to
9103 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
9104 vcond<V_128:mode><VI124_128:mode> and
9105 vcondu<V_128:mode><VI124_128:mode>.
9106 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
9107 (vconduv2di): Likewise.
9108 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
9109 (vcondu<mode>): Likewise.
9110 * config/ia64/vect.md (vcond<mode>): Likewise.
9111 (vcondu<mode>): Likewise.
9112 (vcondv2sf): Likewise.
9113 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
9114 * config/rs6000/paired.md (vcondv2sf): Likewise.
9115 * config/rs6000/vector.md (vcond<mode>): Likewise.
9116 (vcondu<mode>): Likewise.
9117 * config/spu/spu.md (vcond<mode>): Likewise.
9118 (vcondu<mode>): Likewise.
9119
aa547a51
RG
91202011-09-02 Richard Guenther <rguenther@suse.de>
9121
9122 * pretty-print.h (pp_unsigned_wide_integer): New.
9123 * tree-pretty-print.c (dump_generic_node): Print unsigned
9124 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
9125
42ea8b27
RS
91262011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
9127
9128 PR target/49987
9129 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
9130 valid CONST_VECTOR operands.
9131 (rs6000_expand_vector_init): Likewise.
9132
81fa35bd
MJ
91332011-09-02 Martin Jambor <mjambor@suse.cz>
9134
9135 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
9136 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
9137 BINFO_VTABLE. Parameter delta removed, all callers updated.
9138 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
9139 BINFO_VTABLE.
9140 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
9141 all calls.
9142 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
9143 handling of thunk_delta.
9144 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
9145 (devirtualization_time_bonus): Do not handle thunk deltas.
9146 (ipcp_discover_new_direct_edges): Likewise.
9147 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9148 (try_make_edge_direct_simple_call): Likewise.
9149 (try_make_edge_direct_virtual_call): Likewise.
9150 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
9151 parameter set as unused.
9152 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
9153 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
9154 parameter set as unused.
9155 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
9156 (input_edge_opt_summary): Likewise.
9157 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
9158 BINFO_VIRTUALS at all.
9159 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
9160
5d882cc1
RG
91612011-09-02 Richard Guenther <rguenther@suse.de>
9162
8092dd90
UB
9163 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
9164 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
5d882cc1 9165
4e71066d
RG
91662011-08-31 Richard Guenther <rguenther@suse.de>
9167
9168 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
9169 handling here, from ...
9170 (expand_expr_real_1): ... here.
9171 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
9172 and VEC_COND_EXPR.
9173 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
9174 a GIMPLE_TERNARY_RHS.
9175 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
9176 and VEC_COND_EXPR here ...
9177 (verify_gimple_assign_single): ... not here.
9178 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
9179 * tree-object-size.c (cond_expr_object_size): Adjust.
9180 (collect_object_sizes_for): Likewise.
974e0ad6 9181 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
8092dd90 9182 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4e71066d
RG
9183 (ssa_forward_propagate_and_combine): Adjust.
9184 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
9185 as ternary.
9186 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
9187 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
9188 * tree-vect-stmt.c (vectorizable_condition): Likewise.
9189 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
9190 (extract_range_from_assignment): Likewise.
9191
67b2c493
RS
91922011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
9193
9194 * config/i386/i386.md: Use (match_test ...) for attribute tests.
9195 * config/i386/mmx.md: Likewise.
9196 * config/i386/sse.md: Likewise.
9197 * config/i386/predicates.md (call_insn_operand): Use
9198 (not (match_test "...")) instead of (match_test "!...")
9199 * config/i386/constraints.md (w): Likewise.
9200
0c0d3957
RS
92012011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
9202
9203 * doc/md.texi: Describe the use of match_tests in attribute tests.
9204 * rtl.def (MATCH_TEST): Update commentary.
9205 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
9206 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
9207
091ace58
RS
92082011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
9209
9210 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
9211 (attr_string): Use copy_md_ptr_loc.
9212
201176d3
MJ
92132011-08-31 Martin Jambor <mjambor@suse.cz>
9214
9215 PR middle-end/49886
9216 * ipa-inline-analysis.c (compute_inline_parameters): Set
9217 can_change_signature of noes with typde attributes.
9218 * ipa-split.c (split_function): Do not skip any arguments if
9219 can_change_signature is set.
9220
51093fca
MJ
92212011-08-31 Martin Jambor <mjambor@suse.cz>
9222
9223 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
9224 check removed.
9225
32950a5d
RG
92262011-08-31 Richard Guenther <rguenther@suse.de>
9227
9228 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
9229 special-casing.
9230
680fba09
MG
92312011-08-31 Marc Glisse <marc.glisse@inria.fr>
9232
9233 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
9234
1fed1006
TV
92352011-08-31 Tom de Vries <tom@codesourcery.com>
9236
9237 PR middle-end/43513
9238 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
9239 * tree-ssa-ccp.c (params.h): Include.
9240 (fold_builtin_alloca_for_var): New function.
9241 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
9242
c683a53a
UB
92432011-08-30 Uros Bizjak <ubizjak@gmail.com>
9244
9245 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9246 Handle FMA option.
9247
5de35240
AS
92482011-08-30 Andrew Stubbs <ams@codesourcery.com>
9249
9250 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
9251 b3 and b4 unsigned.
9252
f8dd28d6
AS
92532011-08-30 Andrew Stubbs <ams@codesourcery.com>
9254
9255 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
9256 when code is SET.
9257
315f5f1b
RG
92582011-08-30 Richard Guenther <rguenther@suse.de>
9259
9260 PR middle-end/48571
9261 * gimple.h (maybe_fold_offset_to_address): Remove.
9262 (maybe_fold_offset_to_reference): Likewise.
9263 (maybe_fold_stmt_addition): Likewise.
9264 (may_propagate_address_into_dereference): Likewise.
9265 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
9266 array references.
9267 * gimple-fold.c (canonicalize_constructor_val): Likewise.
9268 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
9269 addresses instead.
9270 (may_propagate_address_into_dereference): Remove.
9271 (maybe_fold_offset_to_array_ref): Likewise.
9272 (maybe_fold_offset_to_reference): Likewise.
9273 (maybe_fold_offset_to_address): Likewise.
9274 (maybe_fold_stmt_addition): Likewise.
9275 (fold_gimple_assign): Do not reconstruct array references but
9276 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
9277 MEM_REF addresses.
9278 (gimple_fold_stmt_to_constant_1): Likewise.
9279 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9280 * gimplify.c (gimplify_conversion): Likewise.
9281 (gimplify_expr): Likewise.
9282
2ddd46d6
IT
92832011-08-30 Ilya Tocar <ilya.tocar@intel.com>
9284
9285 * config/i386/fmaintrin.h: New.
9286 * config.gcc: Add fmaintrin.h.
9287 * config/i386/i386.c
9288 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
9289 <IX86_BUILTIN_VFMADDSD3>: Likewise.
9290 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
9291 (*fmai_fmadd_<mode>): Likewise.
9292 (*fmai_fmsub_<mode>): Likewise.
9293 (*fmai_fnmadd_<mode>): Likewise.
9294 (*fmai_fnmsub_<mode>): Likewise.
9295 * config/i386/immintrin.h: Add fmaintrin.h.
9296
e12da141
BS
92972011-08-30 Bernd Schmidt <bernds@codesourcery.com>
9298
9299 * genautomata.c (NO_COMB_OPTION): New macro.
9300 (no_comb_flag): New static variable.
9301 (gen_automata_option): Handle NO_COMB_OPTION.
9302 (comb_vect_p): False if no_comb_flag.
9303 (add_vect): Move computation of min/max values. Return early if
9304 no_comb_flag.
9305 * doc/md.texi (automata_option): Document no-comb-vect.
9306
070f36cf
BS
9307 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
9308 "__x86.get_pc_thunk".
9309
9645d434
BS
9310 * bb-reorder.c (insert_section_boundary_note): Only do it if
9311 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
9312
cb89a171
CB
93132011-08-30 Christian Bruel <christian.bruel@st.com>
9314
9315 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
9316 flag_profile_use.
c683a53a 9317
3167ec4a
MM
93182011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9319
9320 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
9321 to off. Document switch.
9322 * doc/invoke.texi (-msave-toc-indirect): Ditto.
9323
e621f530
JJ
93242011-08-29 Jakub Jelinek <jakub@redhat.com>
9325
9326 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
9327 conditionals and comments inside macro arguments.
9328
8092dd90
UB
93292011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9330 Richard Guenther <rguenther@suse.de>
544d960a
AS
9331
9332 * tree.h (constant_boolean_node): Adjust prototype.
9333 * fold-const.c (fold_convert_loc): Move aggregate conversion
9334 leeway down.
9335 (constant_boolean_node): Make value parameter boolean, add
9336 vector type handling.
9337 (fold_unary_loc): Use constant_boolean_node.
9338 (fold_binary_loc): Preserve types properly when folding
9339 COMPLEX_EXPR <__real x, __imag x>.
9340 * gimplify.c (gimplify_expr): Handle vector comparison.
9341 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
9342 comparison.
9343 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
9344 comparisons.
9345
776bebcd
JJ
93462011-08-29 Jakub Jelinek <jakub@redhat.com>
9347
9348 PR middle-end/48722
9349 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
9350 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
9351 (verify_rtl_sharing): Likewise and verify_rtx_sharing
9352 in there too.
9353 (unshare_all_rtl_in_chain): For CALL_INSNs
9354 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
9355
4d59a001
RG
93562011-08-29 Richard Guenther <rguenther@suse.de>
9357
9358 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
9359 on the built ADDR_EXPR.
9360
304fe432
JJ
93612011-08-29 Jakub Jelinek <jakub@redhat.com>
9362
9363 PR debug/50215
9364 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
9365 before adding ENTRY_VALUE to val->locs.
9366
76725a03
MP
93672011-08-28 Mikael Pettersson <mikpe@it.uu.se>
9368
9369 PR bootstrap/50218
9370 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
9371 comp.
9372
26898771
BS
93732011-08-27 Bernd Schmidt <bernds@codesourcery.com>
9374
9375 * doc/rtl.texi (simple_return): Document.
9376 (parallel, PATTERN): Here too.
9377 * doc/md.texi (return): Mention it's allowed to expand to simple_return
9378 in some cases.
9379 (simple_return): Document standard pattern.
9380 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
9381 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
9382 * reorg.c (function_return_label, function_simple_return_label):
9383 New static variables, replacing...
9384 (end_of_function_label): ... this.
9385 (simplejump_or_return_p): New static function.
9386 (optimize_skip, steal_delay_list_from_fallthrough,
9387 fill_slots_from_thread): Use it.
9388 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
9389 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
9390 (find_end_label): Take a new arg which is one of the two return
9391 rtxs. Depending on which, set either function_return_label or
9392 function_simple_return_label. All callers changed.
9393 (make_return_insns): Make both kinds.
9394 (dbr_schedule): Adjust for two kinds of end labels.
9395 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
9396 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
9397 (gen_expand, gen_split): Use ANY_RETURN_P.
9398 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
9399 * rtl.def (SIMPLE_RETURN): New code.
9400 * ifcvt.c (find_if_case_1): Be more careful about
9401 redirecting jumps to the EXIT_BLOCK.
9402 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
9403 returnjump_p_1): Handle SIMPLE_RETURNs.
9404 * print-rtl.c (print_rtx): Likewise.
9405 * rtl.c (copy_rtx): Likewise.
9406 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
9407 * combine.c (simplify_set): Likewise.
9408 * resource.c (find_dead_or_set_registers, mark_set_resources):
9409 Likewise.
9410 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
9411 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
9412 (init_emit_regs): Initialize simple_return_rtx.
9413 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
9414 force_nonfallthru_and_redirect.
9415 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
9416 (GR_SIMPLE_RETURN): New enum value.
9417 (simple_return_rtx): New macro.
9418 * basic-block.h (force_nonfallthru_and_redirect): Adjust
9419 declaration.
9420 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
9421 argument. All callers changed. Be careful about what kinds of
9422 returnjumps to generate.
9423 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
9424 ix86_pad_short_function): Likewise.
9425 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
9426 of return.
9427 * config/mips/mips.md (any_return): New code_iterator.
9428 (optab): Add cases for return and simple_return.
9429 (return): Expand to a simple_return.
9430 (simple_return): New pattern.
9431 (*<optab>, *<optab>_internal for any_return): New patterns.
9432 (return_internal): Remove.
9433 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
9434 a simple_return_internal.
9435
3b0eee5d
UB
94362011-08-27 Uros Bizjak <ubizjak@gmail.com>
9437
9438 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
9439 (vec_extract_lo_<mode>): Prevent both operands in memory.
9440 (vec_extract_lo_v16hi): Ditto.
9441 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
9442
94432011-08-27 Uros Bizjak <ubizjak@gmail.com>
9444
9445 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
9446 (*sse2_mulv4si3): Ditto.
9447 (mulv2di3): Ditto.
9448 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
9449 notes to REG_EQUAL.
9450
b807694e
UB
94512011-08-27 Uros Bizjak <ubizjak@gmail.com>
9452
9453 PR target/50202
9454 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
9455 when all outputs are unused.
3b0eee5d 9456 (sse4_2_pcmpistr): Ditto.
b807694e 9457
734dfb47
UB
94582011-08-26 Uros Bizjak <ubizjak@gmail.com>
9459
9460 * config/i386/i386.md (round<mode>2): New expander.
9461 * config/i386/i386.c (enum ix86_builtins): Add
9462 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
9463 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
9464 descriptions.
9465 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
9466 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
9467
44782c0c
UB
94682011-08-26 Uros Bizjak <ubizjak@gmail.com>
9469
9470 PR middle-end/50083
9471 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
9472 only when TARGET_C99_FUNCTIONS.
9473 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
9474 <BUILT_IN_RINT{,F,L}>: Ditto.
9475
0b11d702
MM
94762011-08-26 Michael Matz <matz@suse.de>
9477 Jakub Jelinek <jakub@redhat.com>
9478
9479 PR lto/50165
9480 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
9481 don't call strlen twice, use memcpy.
9482
f13677ba
L
94832011-08-26 H.J. Lu <hongjiu.lu@intel.com>
9484
9485 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
9486 * config/i386/bmiintrin.h: Likewise.
9487 * config/i386/lzcntintrin.h: Likewise.
9488
9489 * config/i386/immintrin.h: Include <lzcntintrin.h>,
9490 <bmiintrin.h> and <bmi2intrin.h>.
9491
a26479f3
RO
94922011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9493
9494 PR target/50166
9495 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
9496 * configure: Regenerate.
9497
f1a89dd0
JJ
94982011-08-26 Jakub Jelinek <jakub@redhat.com>
9499
9500 PR c/50179
9501 * c-typeck.c (c_process_expr_stmt): Skip over nops and
9502 call mark_exp_read even if exprv is ADDR_EXPR.
9503
fd3e0a33
RS
95042011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
9505
9506 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
9507 to df_set_dead_notes_for_mw.
9508
315036fe
RG
95092011-08-26 Richard Guenther <rguenther@suse.de>
9510
9511 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
9512
d8af4ba3
ZD
95132011-08-26 Zdenek Dvorak <ook@ucw.cz>
9514 Tom de Vries <tom@codesourcery.com>
9515
9516 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
9517 (struct ivopts_data): Add loop_single_exit_p field.
9518 (niter_for_exit): Change parameter desc_p into return value. Return
9519 desc if desc->may_be_zero. Free desc if unused.
9520 (niter_for_single_dom_exit): Change return type.
9521 (find_induction_variables): Handle changed return type of
9522 niter_for_single_dom_exit. Dump may_be_zero.
9523 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
9524 (set_use_iv_cost): Add and handle comp parameter.
9525 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
9526 comp argument to set_use_iv_cost.
9527 (strip_wrap_conserving_type_conversions, expr_equal_p)
9528 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
9529 (may_eliminate_iv): Add comp parameter. Handle new return type of
9530 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
9531 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
9532 and may_eliminate_iv.
9533 (rewrite_use_compare): Move call to iv_elimination_compare to ...
9534 (may_eliminate_iv): Here.
9535 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
9536
fd1777ca
TV
95372011-08-26 Tom de Vries <tom@codesourcery.com>
9538
9539 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
9540 accessing TREE_TYPE.
9541
990b31f7
JL
95422011-08-26 Jiangning Liu <jiangning.liu@arm.com>
9543
44782c0c
UB
9544 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
9545 (*ior_scc_scc_cmp): Likewise
9546 (*and_scc_scc): Likewise.
9547 (*and_scc_scc_cmp): Likewise.
9548 (*and_scc_scc_nodom): Likewise.
9549 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
990b31f7 9550
8840ae2b
JJ
95512011-08-26 Jakub Jelinek <jakub@redhat.com>
9552
9553 * rtlanal.c (nonzero_bits1): Handle CLRSB.
9554
321358d4
RG
95552011-08-26 Richard Guenther <rguenther@suse.de>
9556
9557 * expr.c (string_constant): Handle &MEM_REF.
9558
c2b640a7
AS
95592011-08-26 Andrew Stubbs <ams@codesourcery.com>
9560
9561 * config/arm/arm.c (struct four_ints): New type.
9562 (count_insns_for_constant): Delete function.
9563 (find_best_start): Delete function.
9564 (optimal_immediate_sequence): New function.
9565 (optimal_immediate_sequence_1): New function.
9566 (arm_gen_constant): Move constant splitting code to
9567 optimal_immediate_sequence.
9568 Rewrite constant negation/invertion code.
9569
95702011-08-26 Andrew Stubbs <ams@codesourcery.com>
9571
9572 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
9573 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
9574 Remove prototype. Remove static function type.
9575 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
9576 Add arch attribute.
9577 * config/arm/constraints.md (Pj, PJ): New constraints.
9578
58a2bda0
RR
95792011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9580
44782c0c
UB
9581 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
9582 ("cortex_a9_multiply_long"): New and use above. Handle all
58a2bda0 9583 long multiply cases.
44782c0c
UB
9584 ("cortex_a9_multiply"): Handle smmul and smmulr.
9585 ("cortex_a9_mac"): Handle smmla.
58a2bda0 9586
42aa5124
RH
95872011-08-25 Richard Henderson <rth@redhat.com>
9588
9589 PR 50132
9590 PR 49864
9591 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
9592 non-constant stack adjutment.
9593 * expr.c (find_args_size_adjust): Break out from ...
9594 (fixup_args_size_notes): ... here.
9595 * rtl.h (find_args_size_adjust): Declare.
9596
a02f398d
UB
95972011-08-25 Uros Bizjak <ubizjak@gmail.com>
9598
9599 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
9600 sse4 and sse4_noavx.
9601 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
9602 (*pushdf_rex64): Change Y2 register constraint to x.
9603 (*movdf_internal_rex64): Ditto.
9604 (*zero_extendsidi2_rex64): Ditto.
9605 (*movdi_internal): Change Y2 register constraint to x
9606 and update "isa" attribute.
9607 (*pushdf): Ditto.
9608 (*movdf internal): Ditto.
9609 (zero_extendsidi2_1): Ditto.
9610 (*truncdfdf_mixed): Ditto.
9611 (*truncxfdf2_mixed): Ditto.
9612 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
9613 register constraint to x.
9614 (*movv2sf_internal_rex64): Ditto.
9615 (*mov<mode>_internal): Change Y2 register constraint to x
9616 and add "isa" attribute.
9617 (*movv2sf_internal): Ditto.
9618 (*vec_extractv2si_1): Ditto.
9619 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
9620 constraints to x and update "isa" attribute.
9621 (*vec_interleave_highv2df): Change Y3 registerconstraint
9622 to x and update "isa" attribute.
9623 (*vec_interleave_lowv2df): Ditto.
9624 (*vec_concatv2df): Change Y2 register constraint to x and
9625 update "isa" attribute.
9626 (sse2_loadld): Ditto.
9627 (*vec_extractv2di_1): Ditto.
9628 (*vec_dupv4si): Ditto.
9629 (*vec_dupv2di): Ditto.
9630 (*vec_concatv4si): Ditto.
9631 (vec_concatv2di): Ditto.
9632 * config/i386/constraints.md (Y2): Remove.
9633 (Y3): Ditto.
9634 (Y4): Ditto.
9635
f24acbef
BS
96362011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9637
9638 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
9639 dump_def_use_chain): Don't declare.
9640 (mark_conflict, create_new_chain): Move before users.
9641 (regrename_optimize): Move to near end of file.
9642
c331eabe
GJL
96432011-08-25 Georg-Johann Lay <avr@gjlay.de>
9644
9645 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
9646 (secondary_input_reload_class): Remove Prototype.
9647 * config/avr/avr.c (byte_immediate_operand): Remove Function.
9648 * config/avr/avr.md (setmemhi): Use u8_operand.
9649 (strlenhi): Use const0_rtx for comparison.
9650 * config/avr/avr.h (avr_reg_order): Remove Declaration.
9651
61af7eb4
GJL
96522011-08-25 Georg-Johann Lay <avr@gjlay.de>
9653
9654 * config/avr/avr.c (reg_class_tab): Make local to
9655 avr_regno_reg_class. Return smallest register class available.
a02f398d 9656
f2814222 96572011-08-25 Georg-Johann Lay <avr@gjlay.de>
f24acbef 9658
f2814222
GJL
9659 * config/avr/avr.c (STR_PREFIX_P): New Define.
9660 (avr_asm_declare_function_name): Use it.
9661 (avr_asm_named_section): Use it.
9662 (avr_section_type_flags): Use it.
9663
1e6a9047
BS
96642011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9665
9666 * doc/md.texi (automata_option): Document collapse-ndfa.
9667 * genautomata.c (COLLAPSE_OPTION): New macro.
9668 (collapse_flag): New static variable.
9669 (struct description): New member normal_decls_num.
9670 (struct automaton): New members advance_ainsn and collapse_ainsn.
9671 (gen_automata_option): Check for COLLAPSE_OPTION.
9672 (collapse_ndfa_insn_decl): New static variable.
9673 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
a02f398d 9674 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1e6a9047
BS
9675 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
9676 necessary. Use normal_decls_num rather than decls_num, remove
9677 test for special decls.
a02f398d 9678 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1e6a9047
BS
9679 (make_automaton); Likewise. Use the new advance_cycle_insn member
9680 of struct automaton.
9681 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
9682 is set.
9683 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
9684 transition. Create the necessary transitions for it.
9685 (create_ainsns): Return void. Take an automaton_t argument, and
9686 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
9687 callers changed.
9688 (COLLAPSE_NDFA_VALUE_NAME): New macro.
9689 (output_tables): Output code to define it.
9690 (output_internal_insn_code_evaluation): Output code to accept
9691 const0_rtx as collapse-ndfa transition.
9692 (output_default_latencies, output_print_reservation_func,
9693 output_print_description): Reorganize loops to use normal_decls_num
9694 as loop bound; remove special case for advance_cycle_insn_decl.
9695 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
9696 (check_automata_insn_issues): Check for collapse_ainsn.
9697 (expand_automate): Allocate sufficient space. Initialize
9698 normal_decls_num.
9699
07f10472 97002011-08-25 Georg-Johann Lay <avr@gjlay.de>
1e6a9047 9701
07f10472
GJL
9702 * config/avr/avr.md: Fix indentation from r177991.
9703
d3e80850
BS
97042011-08-25 Bernd Schmidt <bernds@codesourcery.com>
9705
9706 * regrename.c (struct du_head): Remove member terminated.
9707 (create_new_chain): Don't initialize it.
9708 (scan_rtx_reg): Don't set or test it, test the open_chains_set
9709 bitmap instead.
9710 (tick, this_tick): New global variables, moved out of
9711 regrename_optimize.
9712 (current_id, open_chains, closed_chains, open_chains_set,
9713 live_in_chains, live_hard_regs): Reorder declarations.
9714 (dump_def_use_chain): Move function earlier in the file.
9715 (rename_chains): New static function, broken out of
9716 regrename_optimize.
9717 (regrename_optimize): Use it. Remove #if 0'ed code.
9718
8619577f
BRF
97192011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9720
9721 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
9722
25963ac4
L
97232011-08-24 H.J. Lu <hongjiu.lu@intel.com>
9724
8020d73e 9725 PR target/50172
a02f398d 9726 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
25963ac4 9727
9fcb758b
RG
97282011-08-24 Richard Guenther <rguenther@suse.de>
9729
9730 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
9731 ref in the basic-block case. Move stripping array-refs
9732 to the place we create an access-function for it. Remove
9733 bogus stripping down a MEM_REF to its base.
9734
e66132e1
RG
97352011-08-24 Richard Guenther <rguenther@suse.de>
9736
9737 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
9738 with -fno-strict-overflow.
9739
76f60b19
RG
97402011-08-24 Richard Guenther <rguenther@suse.de>
9741
9742 * tree-vectorizer.c (vect_print_dump_info): Avoid the
9743 file and location clutter when dumping to dump files.
9744
6f0faeed
SB
97452011-08-24 Simon Baldwin <simonb@google.com>
9746
9747 * gengtype-state.c (write_state): Remove timestamped header line.
9748
c5bc3df6
JM
97492011-08-24 Joseph Myers <joseph@codesourcery.com>
9750
9751 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
9752 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
9753 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
9754 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
9755 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
9756 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
9757 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
9758 rules.
9759 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
9760
295409e1
JM
97612011-08-24 Joseph Myers <joseph@codesourcery.com>
9762
9763 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
9764
8c330caa
RG
97652011-08-24 Richard Guenther <rguenther@suse.de>
9766
9767 PR tree-optimization/50067
9768 * tree-data-ref.c (dr_analyze_indices): Do not add an access
9769 function for a MEM_REF base that has no evolution in the loop
9770 nest or that is not analyzable.
9771
d7b17703
VM
97722011-08-23 Vladimir Makarov <vmakarov@redhat.com>
9773
9774 * ira.c (ira_init_register_move_cost): Check small subclasses
9775 through ira_reg_class_max_nregs and ira_available_class_regs.
9776
78d8c16c
UB
97772011-08-23 Uros Bizjak <ubizjak@gmail.com>
9778
9779 * config/i386/constraints.md (Yp): New register constraint.
9780 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
9781 Yp register constraint.
9782 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
9783 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
9784 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
9785
2ddfea8a
KY
97862011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
9787
9788 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
9789
a3a704a4
MH
97902011-08-23 Mark Heffernan <meheff@google.com>
9791
9792 PR middle-end/38509
9793 * common.opt (Wfree-nonheap-object): New option.
9794 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
9795 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
9796 to warning.
9797 (expand_builtin): Make warning conditional.
9798
82feeb8d
L
97992011-08-23 Uros Bizjak <ubizjak@gmail.com>
9800
9801 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
9802 (length_immediate): Handle imulx, ishiftx and rotatex.
9803 (imm_disp): Ditto.
9804 (isa): Add bmi2.
9805 (enabled): Handle bmi2.
82feeb8d
L
9806 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
9807 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
9808 (*bmi2_umulditi3_1): New insn pattern.
9809 (*bmi2_umulsidi3_1): Ditto.
78d8c16c 9810 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
82feeb8d
L
9811 (*bmi2_ashl<mode>3_1): New insn pattern.
9812 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
78d8c16c 9813 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
82feeb8d
L
9814 (*bmi2_ashlsi3_1_zext): New insn pattern.
9815 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
78d8c16c 9816 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
82feeb8d
L
9817 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
9818 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
9819 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
9820 flags dependency.
9821 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
9822 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
9823 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
9824 flags dependency.
9825 (*bmi2_rorx<mode>3_1): New insn pattern.
9826 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
78d8c16c 9827 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
82feeb8d
L
9828 (*rotatert<mode>3_1 splitter): Ditto.
9829 (*bmi2_rorxsi3_1_zext): New insn pattern.
9830 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
78d8c16c 9831 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
82feeb8d
L
9832 (*rotatertsi3_1_zext splitter): Ditto.
9833
98342011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
9835
78d8c16c 9836 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
82feeb8d
L
9837 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
9838 (ix86_handle_option): Handle OPT_mbmi2 case.
9839 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
9840 (x86_64-*-*): Likewise.
9841 * config/i386/bmi2intrin.h: New file.
9842 * config/i386/cpuid.h (bit_BMI2): New.
9843 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
9844 BMI2 feature.
9845 * config/i386/i386-c.c (ix86_target_macros_internal):
9846 Conditionally define __BMI2__.
9847 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
9848 Handle BMI2 option.
9849 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
9850 (print_reg): New code.
9851 (ix86_print_operand): Likewise.
9852 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
9853 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
9854 IX86_BUILTIN_PEXT64.
9855 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
9856 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
9857 IX86_BUILTIN_PEXT64.
9858 * config/i386/i386.h (TARGET_BMI2): New.
9859 * config/i386/i386.md (UNSPEC_PDEP): New.
9860 (UNSPEC_PEXT): Likewise.
9861 (*bmi2_bzhi_<mode>3): Likewise.
9862 (*bmi2_pdep_<mode>3): Likewise.
9863 (*bmi2_pext_<mode>3): Likewise.
9864 * config/i386/i386.opt (mbmi2): New.
9865 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
9866 is defined.
9867 * doc/extend.texi: Document BMI2 built-in functions.
9868 * doc/invoke.texi: Document -mbmi2.
9869
e2f00837
JJ
98702011-08-23 Jakub Jelinek <jakub@redhat.com>
9871
9872 PR middle-end/50161
9873 * simplify-rtx.c (simplify_const_unary_operation): If
78d8c16c 9874 op is CONST_INT, don't look at op_mode, but use instead mode.
e2f00837
JJ
9875 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
9876 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
9877 operation and TRUNCATE/ZERO_EXTEND if needed.
9878 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
9879 Document that operand mode must be same as operation mode,
9880 or VOIDmode.
9881 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
9882 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
9883 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
9884 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
9885 use the mode of operand for the operation and add truncate
9886 or zero_extend around if needed.
9887 * config/c6x/c6x.md (ctzdi2): Likewise.
9888 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
9889
d466b407
MM
98902011-08-12 Michael Matz <matz@suse.de>
9891
9892 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
9893 (gimple_expand_cfg): Merge alignment info for coalesced pointer
9894 SSA names.
9895
02f5d6c5
RG
98962011-08-23 Richard Guenther <rguenther@suse.de>
9897
9898 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
9899 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
9900 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
9901 from ...
9902 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
9903 (mem_refs_may_alias_p): Adjust.
9904 * tree-data-ref.h (dr_may_alias_p): Adjust.
9905 * tree-data-ref.c: Include tree-affine.h.
9906 (dr_analyze_indices): Do nothing for the non-loop case.
9907 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
9908 more cases in the non-loop case.
9909 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
9910 calls to dr_may_alias_p.
9911 (write_alias_graph_to_ascii_ecc): Likewise.
9912 (write_alias_graph_to_ascii_dot): Likewise.
9913 (build_alias_set_optimal_p): Likewise.
9914
336ecb65
RG
99152011-08-23 Richard Guenther <rguenther@suse.de>
9916
9917 PR tree-optimization/50162
9918 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
9919
b8324815
RG
99202011-08-23 Richard Guenther <rguenther@suse.de>
9921
9922 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
9923 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
78d8c16c 9924 (create_data_ref): Also dump access functions for the created data-ref.
b8324815 9925
1707583b
UB
99262011-08-22 Uros Bizjak <ubizjak@gmail.com>
9927 Kirill Yukhin <kirill.yukhin@intel.com>
9928
9929 PR target/50155
9930 * config/i386/sse.md (VI_AVX2): New.
9931 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
9932 (*<plusminus_insn><mode>3): Ditto.
d913744e 9933 (<sse2_avx2>_andnot<mode>3): Ditto.
1707583b
UB
9934 (*andnot<mode>3): Fix order of cond operands.
9935 Add asserts for correct TARGET_xxx.
9936 (*<any_logic:code><mode>3): Ditto.
9937
c4831cff
AS
99382011-08-22 Anatoly Sokolov <aesok@post.ru>
9939
9940 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
9941 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
9942 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
9943 regclass argument type to reg_class_t. Change 'max' and 'v' vars
9944 and return types to unsigned char. Use reg_class_contents instead
9945 of class_contents.
9946 (TARGET_CLASS_MAX_NREGS): Define.
9947
60418b5d
BS
99482011-08-22 Bernd Schmidt <bernds@codesourcery.com>
9949
9950 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
9951 to make computed_jump_p return true.
9952
e3aa9eba
RO
99532011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9954
9955 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
9956 (PICFLAG_FOR_TARGET): Substitute.
9957 * aclocal.m4: Regenerate.
9958 * configure: Regenerate.
9959
671d9f12
DS
99602011-08-22 Dodji Seketeli <dodji@redhat.com>
9961
9962 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
9963 after reading in the pch.
9964
b0894e1f
L
99652011-08-22 H.J. Lu <hongjiu.lu@intel.com>
9966
44782c0c 9967 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
b0894e1f
L
9968 * configure: Regenerated.
9969
e4269c78
JJ
99702011-08-22 Jakub Jelinek <jakub@redhat.com>
9971
ad885386
JJ
9972 PR tree-optimization/50133
9973 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
9974 from stmt instead of some statement around gsi.
9975
e4269c78
JJ
9976 PR middle-end/50141
9977 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
9978 innerdecl is a VAR_DECL.
9979
977e83a3
KY
99802011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
9981
9982 * config/i386/avx2intrin.h: New file.
9983 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
9984 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
9985 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
9986 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
9987 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
9988 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
9989 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
9990 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
9991 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
9992 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
9993 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
9994 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
9995 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
9996 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
9997 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
9998 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
9999 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
10000 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
10001 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
10002 VOID_FTYPE_PV8SI_V8SI_V8SI,
10003 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
10004 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
10005 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
10006 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
10007 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
10008 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
10009 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
10010 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
10011 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
10012 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
10013 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
10014 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
10015 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
10016 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
10017 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
10018 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
10019 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
10020 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
10021 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
10022 V4DI_FTYPE_V4DI_INT_CONVERT,
10023 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
10024 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
10025 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10026 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10027 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10028 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10029 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10030 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10031 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10032 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10033 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10034 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10035 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10036 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10037 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10038 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10039 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10040 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10041 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10042 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10043 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10044 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10045 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10046 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10047 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10048 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10049 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10050 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10051 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10052 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10053 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10054 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10055 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10056 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10057 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10058 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10059 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10060 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10061 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10062 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10063 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10064 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10065 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10066 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10067 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10068 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10069 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10070 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10071 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10072 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10073 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10074 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10075 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10076 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10077 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10078 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10079 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10080 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10081 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10082 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
10083 IX86_BUILTIN_VBROADCASTSS_PS256,
10084 IX86_BUILTIN_VBROADCASTSD_PD256,
10085 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10086 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10087 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10088 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10089 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10090 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10091 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10092 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10093 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10094 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10095 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10096 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10097 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
10098 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10099 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10100 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10101 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10102 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
10103 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
10104 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
10105 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
10106 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
10107 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
10108 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
10109 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
10110 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
10111 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
10112 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
10113 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
10114 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
10115 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
10116 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
10117 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
10118 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
10119 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
10120 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
10121 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
10122 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
10123 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
10124 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
10125 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
10126 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
10127 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
10128 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
10129 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
10130 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
10131 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
10132 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
10133 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
10134 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
10135 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
10136 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
10137 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
10138 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
10139 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
10140 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
10141 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
10142 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
10143 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
10144 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
10145 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
10146 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
10147 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
10148 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
10149 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
10150 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
10151 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
10152 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
10153 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
10154 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
10155 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
10156 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
10157 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
10158 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
10159 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
10160 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
10161 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
10162 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
10163 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
10164 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
10165 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
10166 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
10167 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
10168 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
10169 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
10170 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
10171 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
10172 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
10173 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
10174 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
10175 IX86_BUILTIN_VBROADCASTSD_PD256,
10176 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
10177 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
10178 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
10179 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
10180 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
10181 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
10182 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
10183 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
10184 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
10185 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
10186 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
10187 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
10188 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
10189 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
10190 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
10191 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
10192 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
10193 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
10194 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
10195 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
10196 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
10197 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
10198 IX86_BUILTIN_GATHERDIV8SI.
10199 (ix86_preferred_simd_mode): Support AVX2 modes.
eb3e9f60 10200 (ix86_expand_args_builtin): Support AVX2 builtins.
977e83a3
KY
10201 (ix86_expand_special_args_builtin): Likewise.
10202 (ix86_expand_builtin): Likewise.
10203 * config/i386/i386.md (UNSPEC_VPERMSI): New.
10204 (UNSPEC_VPERMDF): Likewise.
10205 (UNSPEC_VPERMSF): Likewise.
10206 (UNSPEC_VPERMDI): Likewise.
10207 (UNSPEC_VPERMTI): Likewise.
10208 (UNSPEC_GATHER): Likewise.
10209 (ssemodesuffix): Extend.
10210 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
10211 is defined.
10212 * config/i386/predicates.md (const1248_operand): New.
8b46e440 10213 * config/i386/sse.md (VI1_AVX2): New mode iterator.
977e83a3
KY
10214 (VI2_AVX2): Likewise.
10215 (VI4_AVX2): Likewise.
10216 (VI8_AVX2): Likewise.
10217 (VIMAX_AVX2): Likewise.
10218 (SSESCALARMODE): Likewise.
10219 (VI12_AVX2): Likewise.
10220 (VI24_AVX2): Likewise.
eb3e9f60 10221 (VI124_AVX2): Likewise.
977e83a3
KY
10222 (VI248_AVX2): Likewise.
10223 (VI48_AVX2): Likewise.
10224 (VI4SD_AVX2): Likewise.
10225 (V48_AVX2): Likewise.
eb3e9f60
UB
10226 (AVX256MODE2P): Likewise.
10227 (AVXMODE48P_DI): Likewise.
10228 (sse2_avx2): New mode attribute.
977e83a3
KY
10229 (ssse3_avx2): Likewise.
10230 (sse4_1_avx2): Likewise.
10231 (avx_avx2): Likewise.
eb3e9f60 10232 (ssebytemode): Likewise.
977e83a3 10233 (AVXTOSSEMODE): Likewise.
977e83a3
KY
10234 (AVXMODE48P_DI): Likewise.
10235 (gthrfirstp): Likewise.
10236 (gthrlastp): Likewise.
eb3e9f60
UB
10237 (lshift): New code_iterator
10238 (lshift): New code attribute.
10239 (lshift): Likewise.
10240 (ssescalarmodesuffix): Update.
10241 (sseunpackmode): Likewise.
10242 (ssepackmode): Likewise.
10243 (avx2_vec_dupv4sf): New insn pattern.
977e83a3
KY
10244 (avx2_vec_dupv8sf): Likewise.
10245 (avx2_interleave_highv4di): Likewise.
10246 (avx2_interleave_lowv4di): Likewise.
eb3e9f60
UB
10247 (avx2_umulv4siv4di3): Likewise
10248 (*avx2_umulv4siv4di3): Likewise
10249 (avx2_pmaddwd): Likewise.
977e83a3 10250 (*avx2_pmaddwd): Likewise.
eb3e9f60
UB
10251 (avx2_lshrqv4di3): Likewise.
10252 (avx2_lshlqv4di3): Likewise.
977e83a3 10253 (avx2_lshl<mode>3): Likewise.
eb3e9f60
UB
10254 (avx2_<umaxmin:code><mode>3): Likewise.
10255 (*avx2_<umaxmin:code><mode>3): Likewise.
10256 (avx2_<smaxmin:code><mode>3): Likewise.
10257 (*avx2_<smaxmin:code><mode>3): Likewise.
977e83a3
KY
10258 (avx2_eq<mode>3): Likewise.
10259 (*avx2_eq<mode>3): Likewise.
10260 (avx2_gt<mode>3): Likewise.
977e83a3
KY
10261 (avx2_interleave_highv32qi): New.
10262 (avx2_interleave_lowv32qi): Likewise.
10263 (avx2_interleave_highv16hi): Likewise.
10264 (avx2_interleave_lowv16hi): Likewise.
10265 (avx2_interleave_highv8si): Likewise.
10266 (avx2_interleave_lowv8si): Likewise.
eb3e9f60 10267 (avx2_pshufd): Likewise.
977e83a3
KY
10268 (avx2_pshufd_1): Likewise.
10269 (avx2_pshuflwv3): Likewise.
10270 (avx2_pshuflw_1): Likewise.
10271 (avx2_pshufhwv3): Likewise.
10272 (avx2_pshufhw_1): Likewise.
10273 (avx2_uavgv32qi3): Likewise.
10274 (*avx2_uavgv32qi3): Likewise.
10275 (avx2_uavgv16hi3): Likewise.
10276 (*avx2_uavgv16hi3): Likewise.
eb3e9f60 10277 (avx2_pmovmskb): Likewise.
977e83a3
KY
10278 (avx2_phaddwv16hi3): Likewise.
10279 (avx2_phadddv8si3): Likewise.
10280 (avx2_phaddswv16hi3): Likewise.
10281 (avx2_phsubwv16hi3): Likewise.
10282 (avx2_phsubdv8si3): Likewise.
10283 (avx2_phsubswv16hi3): Likewise.
10284 (avx2_pmaddubsw256): Likewise.
10285 (avx2_umulhrswv16hi3): Likewise.
10286 (*avx2_umulhrswv16hi3): Likewise.
eb3e9f60
UB
10287 (avx2_packusdw): Likewise.
10288 (avx2_pblendd<mode>): Likewise.
977e83a3
KY
10289 (avx2_<code>v16qiv16hi2): Likewise.
10290 (avx2_<code>v8qiv8si2): Likewise.
10291 (avx2_<code>v8hiv8si2): Likewise.
10292 (avx2_<code>v4qiv4di2): Likewise.
10293 (avx2_<code>v4hiv4di2): Likewise.
10294 (avx2_<code>v4siv4di2): Likewise.
10295 (avx2_pbroadcast<mode>): Likewise.
10296 (avx2_permvarv8si): Likewise.
10297 (avx2_permv4df): Likewise.
10298 (avx2_permvarv8sf): Likewise.
10299 (avx2_permv4di): Likewise.
10300 (avx2_permv2ti): Likewise.
10301 (avx2_vec_dupv4df): Likewise.
10302 (avx2_vbroadcasti128_<mode>): Likewise.
10303 (avx2_vec_set_lo_v4di): Likewise.
10304 (avx2_vec_set_hi_v4di): Likewise.
eb3e9f60 10305 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
977e83a3
KY
10306 (avx2_extracti128): Likewise.
10307 (avx2_inserti128): Likewise.
10308 (avx2_ashrvv8si): Likewise.
10309 (avx2_ashrvv4si): Likewise.
10310 (avx2_<lshift>vv8si): Likewise.
10311 (avx2_<lshift>v<mode>): Likewise.
10312 (avx2_<lshift>vv2di): Likewise.
10313 (avx2_gathersi<mode>): Likewise.
10314 (*avx2_gathersi<mode>): Likewise.
10315 (avx2_gatherdi<mode>): Likewise.
10316 (*avx2_gatherdi<mode>): Likewise.
10317 (avx2_gatherdi<mode>256): Likewise.
10318 (*avx2_gatherdi<mode>256): Likewise.
8b46e440
UB
10319 (<plusminus_insn><mode>3): Use VI mode iterator.
10320 (*<plusminus_insn><mode>3): Use VI mode iterator.
eb3e9f60
UB
10321 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10322 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
10323 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
10324 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
8b46e440
UB
10325 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
10326 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
eb3e9f60
UB
10327 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
10328 Use VI2_AVX2 mode iterator.
10329 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
8b46e440
UB
10330 Use VI2_AVX2 mode iterator.
10331 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
10332 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
10333 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
10334 Use VI4_AVX2 mode iterator.
10335 (ashr<mode>3): Use VI24_AVX2 mode iterator.
10336 (lshr<mode>3): Use VI248_AVX2 mode iterator.
10337 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
10338 Use VIMAX_AVX2 mode iterator.
10339 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
10340 Use VI mode iterator.
10341 (*andnot<mode>3): Update for AVX2.
10342 (*<any_logic:code><mode>3): Likewise.
eb3e9f60 10343 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
8b46e440 10344 Use VI1_AVX mode iterator.
eb3e9f60 10345 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
8b46e440 10346 Use VI2_AVX mode iterator.
eb3e9f60 10347 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
8b46e440
UB
10348 Use VI1_AVX mode iterator.
10349 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
10350 Use VI8_AVX2 mode iterator.
10351 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
10352 Use VI1_AVX2 mode iterator.
10353 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
10354 Use VI124_AVX2 mode iterator.
10355 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
10356 Use SSESCALARMODE mode iterator.
10357 (abs<mode>2): Use VI124_AVX2 mode iterator.
10358 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
10359 Use VI8_AVX2 mode iterator.
10360 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
10361 Use VI1_AVX2 mode iterator.
10362 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
10363 Use VI1_AVX2 mode iterator.
10364 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
10365 Use VI2_AVX2 mode iterator.
eb3e9f60 10366 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
8b46e440 10367 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
eb3e9f60 10368 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
8b46e440
UB
10369 avx_maskstore<ssemodesuffix><avxsizesuffix>.
10370 Use V48_AVX2 mode iterator.
977e83a3
KY
10371 * doc/extend.texi: Document AVX2 built-in functions.
10372 * doc/invoke.texi: Document -mavx2.
10373
1ad1ae80
MK
103742011-08-22 Matthias Klose <doko@debian.org>
10375
10376 Revert:
10377 2011-07-11 Arthur Loiret <aloiret@debian.org>
10378 Matthias Klose <doko@debian.org>
10379 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
10380 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
10381 convention.
10382 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
10383
fbddb81d
MP
103842011-08-22 Mikael Pettersson <mikpe@it.uu.se>
10385
10386 PR bootstrap/50146
10387 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
10388 to #ifndef HONOR_REG_ALLOC_ORDER block.
10389
8f06d483
RH
103902011-08-21 Richard Henderson <rth@redhat.com>
10391
10392 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10393 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
10394 * resource.c (next_insn_no_annul): Likewise.
10395 (mark_set_resources): Likewise.
10396 * reorg.c (delete_from_delay_slot): Likewise.
10397 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
10398 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
10399
38acd291
UB
104002011-08-21 Uros Bizjak <ubizjak@gmail.com>
10401
10402 * config/i386/i386.md (any_div): Remove.
10403 (sgnprefix): Update for removal.
10404 (u): Ditto.
10405
51935358
VM
104062011-08-20 Vladimir Makarov <vmakarov@redhat.com>
10407
10408 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
10409 for ira_reg_class_max_nregs. Increase pressure by 1.
10410 (mark_pseudo_regno_subword_dead): Use allocno class
10411 for ira_reg_class_max_nregs.
10412
2b28ecea
RH
104132011-08-20 Richard Henderson <rth@redhat.com>
10414
10415 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
38acd291 10416 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2b28ecea
RH
10417 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
10418 config/c6x/ltf.c: Adjust include path for soft-fp.
10419
9ce7ad7f
L
104202011-08-20 H.J. Lu <hongjiu.lu@intel.com>
10421
10422 PR other/46770
10423 * config.gcc (tm_file): Add initfini-array.h if
10424 .init_arrary/.fini_array are supported.
10425
10426 * crtstuff.c: Don't generate .ctors nor .dtors sections if
10427 USE_INITFINI_ARRAY is defined.
10428
10429 * output.h (default_elf_init_array_asm_out_constructor): New.
10430 (default_elf_fini_array_asm_out_destructor): Likewise.
10431 * varasm.c (elf_init_array_section): Likewise.
10432 (elf_fini_array_section): Likewise.
10433 (get_elf_initfini_array_priority_section): Likewise.
10434 (default_elf_init_array_asm_out_constructor): Likewise.
10435 (default_elf_fini_array_asm_out_destructor): Likewise.
10436
10437 * config/initfini-array.h: New.
10438
894113c3
RS
104392011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
10440
10441 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
10442 OK for ST_REGS and FP_REGS before taking those classes into account.
10443
9e187b31
RS
104442011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
10445
10446 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
10447 before checking for annulled branches.
10448
f0cac80b
UB
104492011-08-20 Uros Bizjak <ubizjak@gmail.com>
10450
10451 * config/i386/i386.c (ix86_binary_operator_ok): Use
10452 satisfies_constraint_L.
10453
198cb166
UB
104542011-08-20 Uros Bizjak <ubizjak@gmail.com>
10455 Michael Matz <matz@suse.de>
10456
10457 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
10458 trunc (a + copysign (nextafter (0.5, 0.0), a)).
10459
f47a61f3
AS
104602011-08-20 Anatoly Sokolov <aesok@post.ru>
10461
10462 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10463 * doc/tm.texi: Regenerate.
10464 * targhooks.c (default_preferred_output_reload_class): Don't use
10465 PREFERRED_OUTPUT_RELOAD_CLASS macro.
10466 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
10467
94e3faf6
JJ
104682011-08-20 Jakub Jelinek <jakub@redhat.com>
10469
10470 PR tree-optimization/48739
10471 * tree-ssa.c: Include cfgloop.h.
198cb166
UB
10472 (execute_update_addresses_taken): When updating ssa, if in loop closed
10473 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
94e3faf6
JJ
10474 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
10475
3bb19a90
VM
104762011-08-19 Vladimir Makarov <vmakarov@redhat.com>
10477
10478 PR rtl-optimization/49936
10479 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
10480 for calculation of max register move costs.
10481
02ee3d31
JM
104822011-08-19 Joseph Myers <joseph@codesourcery.com>
10483
10484 * c-parser.c (c_parser_postfix_expression): Convert operands of
10485 __builtin_complex to their semantic types.
10486
54f6892e
L
104872011-08-19 H.J. Lu <hongjiu.lu@intel.com>
10488
10489 PR middle-end/49721
10490 * explow.c (convert_memory_address_addr_space): Also permute the
10491 conversion and addition of constant for zero-extend.
10492
d4a83c10
JM
104932011-08-19 Joseph Myers <joseph@codesourcery.com>
10494
198cb166 10495 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
d4a83c10
JM
10496 * doc/extend.texi (__builtin_complex): Document.
10497
a6f969f4
AS
104982011-08-19 Andrew Stubbs <ams@codesourcery.com>
10499
10500 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
10501 beyond conversions.
10502 (convert_mult_to_widen): Convert constant inputs to the right type.
10503 (convert_plusminus_to_widen): Don't automatically reject inputs that
10504 are not an SSA_NAME.
10505 Convert constant inputs to the right type.
10506
75161d2c
AS
105072011-08-19 Andrew Stubbs <ams@codesourcery.com>
10508
10509 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
10510 to the correct type.
10511
6a228c2c
AS
105122011-08-19 Andrew Stubbs <ams@codesourcery.com>
10513
10514 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
10515 unsigned inputs of different modes.
10516 (convert_plusminus_to_widen): Likewise.
10517
26a855d7
AS
105182011-08-19 Andrew Stubbs <ams@codesourcery.com>
10519
10520 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
10521 'type'.
10522 Use 'type' from caller, not inferred from 'rhs'.
10523 Don't reject non-conversion statements. Do return lhs in this case.
10524 (is_widening_mult_p): Add new argument 'type'.
10525 Use 'type' from caller, not inferred from 'stmt'.
10526 Pass type to is_widening_mult_rhs_p.
10527 (convert_mult_to_widen): Pass type to is_widening_mult_p.
10528 (convert_plusminus_to_widen): Likewise.
10529
ff63d754
AS
105302011-08-19 Andrew Stubbs <ams@codesourcery.com>
10531
10532 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
10533 Ensure the the larger type is the first operand.
10534
db719f50
AS
105352011-08-19 Andrew Stubbs <ams@codesourcery.com>
10536
10537 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
10538 unsupported unsigned multiplies to signed.
10539 (convert_plusminus_to_widen): Likewise.
10540
cefb4d4f
AS
105412011-08-19 Andrew Stubbs <ams@codesourcery.com>
10542
10543 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
10544 conversion statement separating multiply-and-accumulate.
10545
2946bd34
RG
105462011-08-19 Richard Guenther <rguenther@suse.de>
10547
10548 PR tree-optimization/50067
10549 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
10550 offset only if we accounted for it.
10551
5dfe80ba
AS
105522011-08-19 Andrew Stubbs <ams@codesourcery.com>
10553
10554 * config/arm/arm.md (maddhidi4): Remove '*' from name.
10555 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
10556 * optabs.c (find_widening_optab_handler_and_mode): New function.
10557 (expand_widen_pattern_expr): Use find_widening_optab_handler.
10558 (expand_binop_directly): Likewise.
10559 (expand_binop): Likewise.
10560 * optabs.h (find_widening_optab_handler): New macro define.
10561 (find_widening_optab_handler_and_mode): New prototype.
10562 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
10563 type precision rules.
10564 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
10565 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
10566 (is_widening_mult_rhs_p): Allow widening by more than one mode.
10567 Explicitly disallow mis-matched input types.
10568 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
10569 input types to fit the new handler.
10570 (convert_plusminus_to_widen): Likewise.
10571
a484f6ba
AS
105722011-08-19 Andrew Stubbs <ams@codesourcery.com>
10573
10574 * expr.c (expand_expr_real_2): Use widening_optab_handler.
10575 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
10576 (gen_insn): $N now means $a must be wider than $b, not consecutive.
10577 * optabs.c (widened_mode): New function.
10578 (expand_widen_pattern_expr): Use widening_optab_handler.
10579 (expand_binop_directly): Likewise.
10580 (expand_binop): Likewise.
10581 * optabs.h (widening_optab_handlers): New struct.
10582 (optab_d): New member, 'widening'.
10583 (widening_optab_handler): New function.
10584 (set_widening_optab_handler): New function.
10585 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
10586 widening_optab_handler.
10587 (convert_plusminus_to_widen): Likewise.
10588
c4b3a0a0
JM
105892011-08-19 Joseph Myers <joseph@codesourcery.com>
10590
10591 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
10592 pedantic.
198cb166 10593 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
c4b3a0a0
JM
10594 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
10595
f6d08ab2
JM
105962011-08-19 Joseph Myers <joseph@codesourcery.com>
10597
10598 * opth-gen.awk: Do not declare target save/restore structures and
10599 functions if IN_RTS defined.
10600
a3f94870
JY
106012011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10602
10603 PR target/49437
10604 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
10605 when stack was realigned in interrupt handler prologue.
10606
bbceee64
JM
106072011-08-18 Joseph Myers <joseph@codesourcery.com>
10608
10609 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
10610 (quals_from_declspecs): Assert _Noreturn not present.
10611 (grokdeclarator): Handle _Noreturn.
10612 (build_null_declspecs): Initialize noreturn_p.
10613 (declspecs_add_scspec): Handle RID_NORETURN.
10614 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
10615 (c_parser_attributes): Handle RID_NORETURN.
10616 * c-tree.h (struct c_declspecs): Add noreturn_p.
10617 * ginclude/stdnoreturn.h: New.
10618 * Makefile.in (USER_H): Add stdnoreturn.h.
10619
7afac110
KY
106202011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
10621
10622 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
10623 (OPTION_MASK_ISA_AVX_UNSET): Update.
10624 (OPTION_MASK_ISA_AVX2_UNSET): New.
10625 (ix86_handle_option): Handle OPT_mavx2 case.
10626 * config/i386/cpuid.h (bit_AVX2): New.
10627 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10628 AVX2 feature.
10629 * config/i386/i386-c.c (ix86_target_macros_internal):
10630 Conditionally define __AVX2__.
198cb166
UB
10631 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
10632 Define "core-avx2" processor alias. Handle avx2 option.
7afac110
KY
10633 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
10634 * config/i386/i386.h (TARGET_AVX2): New.
10635 * config/i386/i386.opt (mavx2): New.
10636 * doc/invoke.texi: Document -mavx2.
10637
6277a710
VM
106382011-08-18 Vladimir Makarov <vmakarov@redhat.com>
10639
10640 PR rtl-optimization/49890
10641 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
10642 subclasses of class which is superset of a pressure class.
10643
df385b9c
L
106442011-08-18 H.J. Lu <hongjiu.lu@intel.com>
10645 Igor Zamyatin <igor.zamyatin@intel.com>
10646
10647 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
10648 with HOST_WIDE_INT for isa_flag.
10649 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
10650 isa variables.
10651
10652 * config/i386/i386.c (ix86_target_string): Replace int with
10653 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
10654 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
10655 (pta_flags): Removed.
10656 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
10657 (pta): Use HOST_WIDE_INT on flags.
10658 (builtin_isa): Use HOST_WIDE_INT on isa.
10659 (ix86_add_new_builtins): Likewise.
10660 (def_builtin): Use HOST_WIDE_INT on mask.
10661 (def_builtin_const): Likewise.
10662 (builtin_description): Likewise.
10663
10664 * config/i386/i386.opt (ix86_isa_flags): Replace int with
10665 HOST_WIDE_INT.
10666 (ix86_isa_flags_explicit): Likewise.
10667 (x_ix86_isa_flags_explicit): Likewise.
10668
9181a6e5
VM
106692011-08-17 Vladimir Makarov <vmakarov@redhat.com>
10670
10671 PR rtl-optimization/50107
10672 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
10673 (ira_hard_reg_in_set_p): New.
10674
10675 * ira-color.c (calculate_saved_nregs): New.
10676 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
10677 hard regs.
10678 (allocno_reload_assign, fast_allocation): Use
10679 ira_hard_reg_set_intersection_p instead of
10680 ira_hard_reg_not_in_set_p.
10681
10682 * ira.c (setup_reg_renumber): Use
10683 ira_hard_reg_set_intersection_p instead of
10684 ira_hard_reg_not_in_set_p.
10685 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
10686 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
10687
10688 * ira-costs.c (ira_tune_allocno_costs): Use
10689 ira_hard_reg_set_intersection_p instead of
10690 ira_hard_reg_not_in_set_p.
10691
99114bbf
L
106922011-08-18 H.J. Lu <hongjiu.lu@intel.com>
10693 Igor Zamyatin <igor.zamyatin@intel.com>
10694
10695 * hwint.h (HOST_WIDE_INT_1): New.
10696
10697 * opt-functions.awk (switch_bit_fields): Initialize the
10698 host_wide_int field.
10699 (host_wide_int_var_name): New.
10700 (var_type_struct): Check and return HOST_WIDE_INT.
10701
10702 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
10703
10704 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
10705
10706 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
10707 check masks for HOST_WIDE_INT.
10708
10709 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
10710 (option_enabled): Likewise.
10711 (get_option_state): Likewise.
10712
10713 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
10714 to HOST_WIDE_INT.
10715
5b880ea6
RO
107162011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10717 Marc Glisse <marc.glisse@normalesup.org>
10718
10719 PR libstdc++-v3/1773
10720 * target.def (decl_mangling_context): New C++ hook.
10721 * doc/tm.texi: Regenerate.
10722 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
10723 * config/sol2-protos.h: Group by source file.
10724 (solaris_cxx_decl_mangling_context): Declare.
10725 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
10726 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
10727 Use $<.
10728 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
10729 Add sol2-stubs.o to extra_objs.
10730
4dee9718
JJ
107312011-08-18 Jakub Jelinek <jakub@redhat.com>
10732
f44157f8
JJ
10733 PR target/50009
10734 * stor-layout.c (update_alignment_for_field): Don't ICE on
10735 packed flexible array members if ms_bitfield_layout_p.
10736
2a63286d
JJ
10737 PR target/50092
10738 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
10739 on the result before returning it.
10740
4dee9718
JJ
10741 PR debug/50017
10742 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
10743 is a debug stmt, use location of the first non-debug stmt after it.
10744
b28e37f1
RS
107452011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10746
10747 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
10748 (arm_size_rtx_costs): Likewise.
10749
6b8045e1
RG
107502011-08-18 Richard Guenther <rguenther@suse.de>
10751
10752 * tree.h (tree_int_cst_msb): Remove.
10753 * tree.c (tree_int_cst_msb): Likewise.
10754 (tree_int_cst_sign_bit): Move from ...
10755 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
10756
68f932c4
RS
107572011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10758
10759 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
10760 * doc/tm.texi: Regenerate.
10761 * target.def (rtx_costs): Add an opno parameter.
10762 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
10763 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
10764 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
10765 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
10766 * cse.c (COST_IN): Add an opno parameter.
10767 (notreg_cost): Likewise. Update call to rtx_cost.
10768 (COST, fold_rtx): Update accordingly.
10769 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
10770 * expmed.c (emit_store_flag): Likewise.
10771 * optabs.c (avoid_expensive_constant): Add an opno parameter.
10772 Update call to rtx_cost.
10773 (expand_binop_directly, expand_binop): Likewise.
10774 (expand_twoval_binop, prepare_cmp_insn): Likewise.
10775 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
10776 (set_src_cost, get_full_set_src_cost): Update accordingly.
10777 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
10778 to target hook.
10779 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
10780 (default_adress_cost): Update calls to rtx_cost.
10781
10782 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
10783 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
10784 (arm_rtx_costs): Add an opno parameter.
10785 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
10786 adjust any recursive rtx-cost calls.
10787 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
10788 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10789 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
10790 * config/cris/cris.c (cris_rtx_costs): Likewise.
10791 * config/frv/frv.c (frv_rtx_costs): Likewise.
10792 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
10793 * config/i386/i386.c (ix86_rtx_costs): Likewise.
10794 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
10795 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
10796 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
10797 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
10798 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
10799 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
10800 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
10801 * config/mep/mep.c (mep_rtx_cost): Likewise.
10802 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
10803 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
10804 (mips_zero_extend_cost): Add an opno parameter.
10805 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
10806 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
10807 to rtx_cost.
10808 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
10809 rtx-cost calls.
10810 * config/pa/pa.c (hppa_rtx_costs): Likewise.
10811 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
10812 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
10813 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
10814 (rs6000_debug_rtx_costs): Likewise.
10815 * config/s390/s390.c (s390_rtx_costs): Likewise.
10816 * config/score/score-protos.h (score_rtx_costs): Likewise.
10817 * config/score/score.c (score_rtx_costs): Likewise.
10818 * config/sh/sh.c (andcosts): Update call to rtx_cost.
10819 (sh_rtx_costs): Add an opno parameter.
10820 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
10821 * config/spu/spu.c (spu_rtx_costs): Likewise.
10822 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
10823 * config/v850/v850.c (v850_rtx_costs): Likewise.
10824 * config/vax/vax.c (vax_rtx_costs): Likewise.
10825 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
10826
5e8f01f4
RS
108272011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10828
10829 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
10830 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
10831 rtx_cost.
10832 * calls.c (precompute_register_parameters): Likewise.
10833 * combine.c (expand_compound_operation, make_extraction): Likewise.
10834 (force_to_mode, distribute_and_simplify_rtx): Likewise.
10835 * dse.c (find_shift_sequence): Likewise.
10836 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
10837 * expr.c (compress_float_constant): Likewise.
10838 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
10839 * gcse.c (want_to_gcse_p): Likewise.
10840 * ifcvt.c (noce_try_sign_mask): Likewise.
10841 * loop-doloop.c (doloop_optimize): Likewise.
10842 * loop-invariant.c (create_new_invariant): Likewise.
10843 * optabs.c (avoid_expensive_constant): Likewise.
10844 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
10845 (try_replace_in_use, reload_cse_move2add): Likewise.
10846 * reload1.c (calculate_elim_costs_all_insns): Likewise.
10847 (note_reg_elim_costly): Likewise.
10848 * rtlanal.c (insn_rtx_cost): Likewise.
10849 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10850 * stmt.c (lshift_cheap_p): Likewise.
10851 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
10852 * config/avr/avr.c (final_prescan_insn): Likewise.
10853 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
10854 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
10855
d51102f3
RS
108562011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
10857
10858 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
10859 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
10860 * cfgloopanal.c (seq_cost): Likewise.
10861 * loop-invariant.c (create_new_invariant): Likewise.
10862 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
10863 (reload_cse_move2add): Use get_full_set_rtx_cost.
10864
fdb4f315
RG
108652011-08-18 Richard Guenther <rguenther@suse.de>
10866
10867 * expr.c (get_inner_reference): Fix typo in last change.
10868
4c9cf7af
PC
108692011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
10870 Joseph Myers <joseph@codesourcery.com>
10871
10872 PR tree-optimization/49963
10873 * hwint.c (absu_hwi): Define.
10874 * hwint.h (absu_hwi): Declare.
10875 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
10876 of abs_hwi.
10877 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
10878 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
10879
97919ae7
RG
108802011-08-18 Richard Guenther <rguenther@suse.de>
10881
10882 * expr.c (get_inner_reference): Sign-extend the constant
10883 twos-complement offset before doing arbitrary precision
10884 arithmetic on it.
10885 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
10886 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
10887 to get_constraint_for_ptr_offset.
10888
b566132b
KK
108892011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
10890
10891 PR target/50068
10892 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
10893
0d82a1c8
RG
108942011-08-17 Richard Guenther <rguenther@suse.de>
10895
10896 * tree.h (convert_to_ptrofftype_loc): New function.
10897 (convert_to_ptrofftype): Define.
10898 * builtins.c (expand_builtin_bzero): Use size_type_node.
10899 (fold_builtin_bzero): Likewise.
10900 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
10901 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
10902 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
10903 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
10904 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
198cb166 10905 * fold-const.c (build_range_check): Negate using the original type.
0d82a1c8
RG
10906 (fold_unary_loc): Use fold_build_pointer_plus_loc.
10907 * gimple-fold.c (gimple_adjust_this_by_delta): Use
10908 convert_to_ptrofftype.
10909 * gimplify.c (gimplify_self_mod_expr): Likewise.
10910 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
10911 (graphite_create_new_loop_guard): Likewise.
10912 * graphite-sese-to-poly.c (my_long_long): Remove.
10913 (scop_ivs_can_be_represented): Adjust.
10914 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
10915 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
10916 * tree-loop-distribution.c (build_size_arg_loc): Use
10917 size_type_node.
10918 (generate_memset_zero): Simplify.
10919 * tree-mudflap.c: Use fold_convert, not convert.
10920 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
10921 its own type.
10922 (determine_offset): Likewise for DR_STEP.
10923 (valid_initializer_p): Likewise.
10924 * tree-profile.c (prepare_instrumented_value): Convert the pointer
10925 to an integer type of same size.
10926 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
10927 to sizetype without need.
10928 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10929 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
10930 * tree-ssa-loop-manip.c (create_iv): Likewise.
10931 (determine_exit_conditions): Adjust comment.
10932 * tree-ssa-pre.c (create_expression_by_pieces): Use
10933 convert_to_ptrofftype.
10934 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
10935 * varasm.c (array_size_for_constructor): Compute using double_ints.
10936
0b01f619
UW
109372011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10938
10939 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
10940 when generating an integer result where possible. Short-cut
10941 comparison against 0 also for QImode.
10942
2ea0be59
UW
109432011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10944
10945 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
10946 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
10947 prototype.
10948 * config/spu/spu.c (spu_legitimize_reload_address): New function.
10949 (spu_legitimate_address_p): Do not check displacement if the base
10950 is an eliminable stack register.
10951
b05933f5
AS
109522011-08-16 Anatoly Sokolov <aesok@post.ru>
10953
10954 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
10955 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
10956 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
10957 m32c_preferred_output_reload_class): Remove.
10958 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
10959 Change rclass argument and return types to reg_class_t. Use
10960 reg_class_subset_p instead of class_sizes.
10961 (m32c_preferred_output_reload_class): Make static. Change rclass
10962 argument and return types to reg_class_t.
10963 (TARGET_PREFERRED_RELOAD_CLASS,
10964 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10965
c9c8f2e8
KT
109662011-08-16 Kai Tietz <ktietz@redhat.com>
10967
10968 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
10969
e8dbf8b5
RG
109702011-08-16 Richard GUenther <rguenther@suse.de>
10971
10972 PR tree-optimization/50082
10973 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
10974 warnings here, instead of ...
10975 (ssa_forward_propagate_and_combine): ... here.
10976 (forward_propagate_into_comparison_1): Adjust.
10977 (forward_propagate_into_comparison): Likewise.
10978 (forward_propagate_into_gimple_cond): Likewise.
10979 (forward_propagate_into_cond): Likewise.
10980
870d0521
AS
109812011-08-16 Andreas Schwab <schwab@redhat.com>
10982
10983 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
10984 instead of ggc_alloc_zone_vec_rtvec_def.
10985
370f4759
RG
109862011-08-16 Richard Guenther <rguenther@suse.de>
10987
10988 * tree.h (ptrofftype_p): New helper function.
10989 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
10990 offset verification.
10991 (verify_gimple_assign_binary): Likewise.
10992 * tree.c (build2_stat): Likewise.
10993 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
10994 (reset_evolution_in_loop): Likewise.
10995 * tree-chrec.h (build_polynomial_chrec): Likewise.
10996
c5058418
LW
109972011-08-16 Liang Wang <lwang1@marvell.com>
10998
10999 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
11000 ggc_alloc_zone_vec_rtvec_def.
11001
a1bc7628
RG
110022011-08-16 Richard Guenther <rguenther@suse.de>
11003
11004 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
11005 helper factored out from ...
11006 (extract_range_from_binary_expr_1): ... here. Re-structure
11007 to not glob handling too different tree codes.
11008
efec771a
RH
110092011-08-15 Richard Henderson <rth@redhat.com>
11010
11011 PR middle-end/50006
11012 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
11013 setting out to include allocate_stack named pattern as well.
11014 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
11015 * stmt.c (expand_stack_restore): Likewise.
11016
d510820a
RG
110172011-08-15 Richard Guenther <rguenther@suse.de>
11018
11019 PR middle-end/50082
11020 * fold-const.c (maybe_canonicalize_comparison_1): Properly
11021 convert the modified operand to the other operand type.
11022 (fold_comparison): Call maybe_canonicalize_comparison_1 with
11023 useless conversions stripped from comparison operands.
11024
1a0fcfa9
RG
110252011-08-15 Richard Guenther <rguenther@suse.de>
11026
11027 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
11028 (extract_range_from_unary_expr_1): Restructure.
11029
4f9dbaaa
RG
110302011-08-15 Richard Guenther <rguenther@suse.de>
11031
11032 PR tree-optimization/50058
11033 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
11034 copy matching.
11035
3598da80
RR
110362011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11037
11038 PR target/50022
11039 * config/arm/arm.c (output_move_double): Add 2 parameters
11040 to count the number of insns emitted and whether to emit or not.
11041 Use the flag to decide when to emit and count number of instructions
11042 that will be emitted.
11043 Handle case where output_move_double might be called for calculating
11044 lengths with an invalid constant.
11045 (arm_count_output_move_double_insns): Define.
11046 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
11047 (output_move_double): Adjust prototype.
11048 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
11049 output_move_double.
11050 ("*movdi_vfp_cortexa8"): Likewise and add attribute
11051 for ce_count.
11052 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
11053 ("*movdf_soft_insn"): Likewise.
11054 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
11055 ("*cirrus_thumb2_movdi"): Likewise.
11056 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
11057 ("*cirrus_movdf_hard_insn"): Likewise.
11058 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
11059 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
11060 ("mov<mode>_internal VMMX"): Likewise.
11061 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
11062
f4ab7b99
UB
110632011-08-14 Uros Bizjak <ubizjak@gmail.com>
11064
11065 * config/i386/i386.c (ix86_expand_round_sse4): New function.
11066 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
11067 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
11068 for TARGET_ROUND.
11069
11070 (rint<mode>2): Simplify TARGET_ROUND check.
11071 (floor<mode>2): Ditto.
11072 (ceil<mode>2): Ditto.
11073 (btrunc<mode>2): Ditto.
11074
12e502c6
AS
110752011-08-14 Anatoly Sokolov <aesok@post.ru>
11076
11077 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
11078 as mmix_preferred_output_reload_class.
11079
f3713778 110802011-08-14 Georg-Johann Lay <avr@gjlay.de>
f4ab7b99 11081
f3713778
GJL
11082 * PR target/49903
11083 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
11084 (branch_unspec): New insn.
11085 (branch): Beauty farm.
11086 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
11087 to be IF_THEN_ELSE.
11088 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
11089 New static functions.
11090 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
11091 Use CONST_INT_P. Beauty.
11092
7b4ef662
RH
110932011-08-12 Richard Henderson <rth@redhat.com>
11094
11095 PR rtl-opt/49994
11096 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
11097 * sched-deps.c (init_deps): Clear it.
11098 (deps_analyze_insn): Consume it.
11099 (sched_analyze_insn): Fill it.
11100
10c241af
RR
111012011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11102
198cb166 11103 PR target/48328
10c241af
RR
11104 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
11105 for tbh instructions.
11106
198cb166 111072011-08-12 Diego Novillo <dnovillo@google.com>
412288f1
DN
11108
11109 * data-streamer.h (streamer_write_zero): Rename from output_zero.
f4ab7b99
UB
11110 (streamer_write_uhwi): Rename from lto_output_uleb128.
11111 (streamer_write_hwi): Rename from output_sleb128.
11112 (streamer_write_string): Rename from lto_output_string.
11113 (streamer_string_index): Rename from lto_string_index.
11114 (streamer_write_string_with_length): Rename from
11115 lto_output_string_with_length.
11116 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
11117 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
11118 (streamer_read_string): Rename from lto_input_string.
11119 (streamer_read_indexed_string): Rename from input_string_internal.
11120 (streamer_read_uhwi): Rename from lto_input_uleb128.
11121 (streamer_read_hwi): Rename from lto_input_sleb128.
11122 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
11123 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
11124 (streamer_write_enum): Rename from lto_output_enum.
11125 (streamer_read_enum): Rename from lto_input_enum.
11126 (streamer_write_record_start): Rename from output_record_start.
11127 (streamer_read_record_start): Rename from input_record_start.
11128 (streamer_write_bitpack): Rename from lto_output_bitpack.
11129 (streamer_read_bitpack): Rename from lto_input_bitpack.
11130 (streamer_write_char_stream): Rename from lto_output_1_stream.
11131 (streamer_read_uchar): Rename from lto_input_1_unsigned.
11132 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
11133 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
11134 (streamer_read_string_cst): Rename from input_string_cst.
11135 (streamer_read_chain): Rename from lto_input_chain.
11136 (streamer_alloc_tree): Rename from lto_materialize_tree.
11137 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
11138 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
11139 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
11140 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
11141 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
11142 (streamer_write_chain): Rename from lto_output_chain.
11143 (streamer_write_tree_header): Rename from lto_output_tree_header.
11144 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
11145 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
11146 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
11147 (streamer_write_builtin): Rename from lto_output_builtin_tree.
11148 (streamer_check_handled_ts_structures): Rename from
11149 check_handled_ts_structures.
11150 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
11151 (streamer_tree_cache_insert_at): Rename from
11152 lto_streamer_cache_insert_at.
11153 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
11154 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
11155 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
11156 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
11157 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
11158 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
11159 (write_identifier): Rename from output_identifier.
11160 (write_ts_common_tree_pointers): Rename from
11161 lto_output_ts_common_tree_pointers.
11162 (write_ts_vector_tree_pointers): Rename from
11163 lto_output_ts_vector_tree_pointers.
11164 (write_ts_complex_tree_pointers): Rename from
11165 lto_output_ts_complex_tree_pointers.
11166 (write_ts_decl_minimal_tree_pointers): Rename from
11167 lto_output_ts_decl_minimal_tree_pointers.
11168 (write_ts_decl_common_tree_pointers): Rename from
11169 lto_output_ts_decl_common_tree_pointers.
11170 (write_ts_decl_non_common_tree_pointers): Rename from
11171 lto_output_ts_decl_non_common_tree_pointers.
11172 (write_ts_decl_with_vis_tree_pointers): Rename from
11173 lto_output_ts_decl_with_vis_tree_pointers.
11174 (write_ts_field_decl_tree_pointers): Rename from
11175 lto_output_ts_field_decl_tree_pointers.
11176 (write_ts_function_decl_tree_pointers): Rename from
11177 lto_output_ts_function_decl_tree_pointers.
11178 (write_ts_type_common_tree_pointers): Rename from
11179 lto_output_ts_type_common_tree_pointers.
11180 (write_ts_type_non_common_tree_pointers): Rename from
11181 lto_output_ts_type_non_common_tree_pointers.
11182 (write_ts_list_tree_pointers): Rename from
11183 lto_output_ts_list_tree_pointers.
11184 (write_ts_vec_tree_pointers): Rename from
11185 lto_output_ts_vec_tree_pointers.
11186 (write_ts_exp_tree_pointers): Rename from
11187 lto_output_ts_exp_tree_pointers.
11188 (write_ts_block_tree_pointers): Rename from
11189 lto_output_ts_block_tree_pointers.
11190 (write_ts_binfo_tree_pointers): Rename from
11191 lto_output_ts_binfo_tree_pointers.
11192 (write_ts_constructor_tree_pointers): Rename from
11193 lto_output_ts_constructor_tree_pointers.
11194 (write_ts_target_option): Rename from lto_output_ts_target_option.
11195 (write_ts_translation_unit_decl_tree_pointers): Rename from
11196 lto_output_ts_translation_unit_decl_tree_pointers.
11197 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11198 Rename from lto_streamer_cache_add_to_node_array.
11199 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
11200 (record_common_node): Rename from lto_record_common_node.
412288f1
DN
11201
11202 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
11203 declarations.
11204 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
11205 function.
11206 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
11207 unused function.
11208 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
11209 (ipa-reference.o): Likewise.
11210 * lto-section-out.c: Include data-streamer.h.
11211 * ipa-reference.c: Include data-streamer.h.
11212
9b0f6f5e
NC
112132011-08-12 Nick Clifton <nickc@redhat.com>
11214
f4ab7b99 11215 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9b0f6f5e
NC
11216 * doc/md.texi (cmpstrn): Note that the comparison stops if both
11217 fetched bytes are zero.
11218 (cmpstr): Likewise.
11219 (cmpmem): Note that the comparison does not stop if both of the
11220 fetched bytes are zero.
11221
6c32ee74
UB
112222011-08-12 Uros Bizjak <ubizjak@gmail.com>
11223
11224 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
11225 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
11226 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
11227 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
11228 to integer_type_node.
11229 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
11230 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
11231 * builtins.c (expand_builtin_in): Ditto.
11232 (mathfn_built_in_1): Ditto.
11233 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
11234 BUILT_IN_IFLOOR.
11235 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
11236 BUILT_IN_IROUND.
11237 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
11238 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
11239 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
11240
d9fbc86e
RB
112412011-08-12 Richard Guenther <rguenther@suse.de>
11242
198cb166 11243 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
d9fbc86e
RB
11244
112452011-08-12 Romain Geissler <romain.geissler@gmail.com>
f895fc2a
RG
11246
11247 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
11248
20fe71c2
RS
112492011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
11250
11251 * config/arm/arm.c (get_label_padding): New function.
c789cb77 11252 (create_fix_barrier, arm_reorg): Use it.
20fe71c2 11253
88b590c5
UB
112542011-08-11 Uros Bizjak <ubizjak@gmail.com>
11255
11256 PR target/49781
11257 * config/i386/i386.md (*lea_5_zext): New.
11258 (*lea_6_zext): Ditto.
11259 * config/i386/predicates.md (const_32bit_mask): New predicate.
11260 (lea_address_operand): Reject AND.
11261 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
11262 const_32bit_mask immediate.
11263 (ix86_print_operand_address): Handle AND.
11264 (memory_address_length): Ditto.
11265
4309e92c 112662011-08-11 Romain Geissler <romain.geissler@gmail.com>
88b590c5 11267 Brian Hackett <bhackett1024@gmail.com>
4309e92c
RG
11268
11269 * plugin.def: Add event for finish_decl.
11270 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
11271 * c-decl.c (finish_decl): Invoke callbacks on above event.
11272 * doc/plugins.texi: Document above event.
11273
25aa059e
RG
112742011-08-11 Richard Guenther <rguenther@suse.de>
11275
11276 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
11277 lookups, make looking through aggregate copies stronger.
11278
6bfd73a6
RH
112792011-08-11 Richard Henderson <rth@redhat.com>
11280
11281 PR bootstrap/50018
11282 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
11283
022676dc
RG
112842011-08-11 Richard Guenther <rguenther@suse.de>
11285
11286 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
11287 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
11288 (vrp_visit_stmt): Likewise.
11289
8d2b0410
RG
112902011-08-11 Richard Guenther <rguenther@suse.de>
11291
11292 PR middle-end/50040
11293 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
11294 load of the other piece with TREE_NO_WARNING.
11295 * tree-flow.h (warn_uninit): Adjust prototype.
11296 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
11297 the base variable and the expression that is used separately.
11298 Properly query all TREE_NO_WARNING flags.
11299 (struct walk_data): Remove.
11300 (warn_uninitialized_var): Likewise.
11301 (warn_uninitialized_vars): Do not walk gimple pieces but simply
11302 look at all SSA uses of the statement. Handle unused memory
11303 separately.
11304 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
11305
78926be1
KI
113062011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
11307
88b590c5 11308 * config/rx/rx.md (movsicc): Allow register to register transfers.
78926be1
KI
11309 (*movsicc): Likewise.
11310 (*stcc): Restrict this pattern to EQ and NE compares.
11311 (*stcc_reg): New pattern. Works for any comparison but only for
11312 register transfers.
11313
b9393656
DN
113142011-08-11 Diego Novillo <dnovillo@google.com>
11315
11316 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
11317 Call stream_write_tree instead of output_record_start.
11318 (lto_output_ts_binfo_tree_pointers): Likewise.
11319
11320 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
11321 Convert it to a macro.
11322 (stream_read_tree): Likewise.
11323
11324 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
11325 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
11326
11327 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
11328 and tree_read_bitfields.
11329 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
11330 (lto_write_tree): Call it.
11331 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
11332 * streamer-hooks.h (struct streamer_hooks): Remove fields
11333 name, is_streamable and alloc_tree. Update all users.
11334 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
11335 (lto_materialize_tree): ... here.
11336 Handle CALL_EXPR codes.
11337 Remove call to lto_streamer_cache_append.
88b590c5 11338 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
b9393656
DN
11339 * tree-streamer.h (tree_read_bitfields): Declare.
11340
11341 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
11342 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
11343 * tree-streamer.h (stream_read_tree): New. Replace all calls
11344 to lto_input_tree with it.
11345 (stream_write_tree): New. Replace all calls to lto_output_tree,
11346 lto_output_tree_ref and lto_output_tree_or_ref with it.
11347 * lto-streamer-in.c (lto_read_tree): Inline code from
11348 lto_streamer_read_tree.
11349 (lto_input_tree): Move from tree-streamer-in.c.
11350 * lto-streamer-out.c (lto_output_tree_ref): Make static.
11351 Remove handling of NULL values for EXPR.
11352 Do not handle EXPRs that are not indexable.
11353 (lto_write_tree): Move from tree-streamer-out.c.
11354 Inline lto_streamer_write_tree.
11355 (lto_output_tree): Move from tree-streamer-out.c.
11356 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
11357 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
11358 (lto_preload_common_nodes): Likewise.
11359 Remove assertions and adjustments for nodes
11360 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
11361 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
88b590c5 11362 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
b9393656
DN
11363 * lto-streamer.h (lto_input_tree): Declare.
11364 (lto_output_tree_ref): Remove.
11365 * streamer-hooks.h (struct streamer_hooks): Remove fields
11366 preload_common_nodes, indexable_with_decls_p,
11367 pack_value_fields, unpack_value_fields and output_tree_header.
11368 Update all users.
11369 * tree-streamer-in.c (lto_materialize_tree): Make extern.
11370 (lto_input_tree_pointers): Likewise.
11371 (lto_read_tree): Move to lto-streamer-in.c.
11372 (lto_input_integer_cst): Make extern.
11373 (lto_get_pickled_tree): Likewise.
11374 (lto_get_builtin_tree): Likewise.
11375 (lto_input_tree): Move to lto-streamer-in.c.
11376 * tree-streamer-out.c (pack_value_fields): Make extern.
11377 (lto_output_tree_or_ref): Remove. Replace all callers with
11378 calls to stream_write_tree.
11379 (lto_output_builtin_tree): Make extern.
11380 (lto_streamer_write_tree): Inline into lto_write_tree.
11381 (lto_output_tree_pointers): Make extern.
11382 (lto_output_tree_header): Likewise.
11383 (lto_output_integer_cst): Likewise.
11384 (lto_write_tree): Move to lto-streamer-out.c.
11385 (lto_output_tree): Likewise.
88b590c5 11386 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
b9393656
DN
11387 (preload_common_nodes): Likewise.
11388 (lto_streamer_cache_create): Call it.
11389 * tree-streamer.h: Include streamer-hooks.h.
11390 (stream_write_tree): New.
11391 (stream_read_tree): New.
11392 (lto_input_tree): Remove.
11393 (lto_materialize_tree): Declare.
11394 (lto_input_tree_pointers): Declare.
11395 (lto_get_pickled_tree): Declare.
11396 (lto_get_builtin_tree): Declare.
11397 (lto_input_integer_cst): Declare.
11398 (lto_output_tree_header): Declare.
11399 (pack_value_fields): Declare.
11400 (lto_output_tree_pointers): Declare.
11401 (lto_output_integer_cst): Declare.
11402 (lto_output_builtin_tree): Declare.
11403
ca31ca94
SG
114042011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11405
11406 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11407 only if producer writes to the register given by regno.
11408
f0898307
SG
114092011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11410 Alexander Monakov <amonakov@ispras.ru>
11411
11412 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
11413 (sched_get_condition_with_rev_uncached): ... this. Factor out
11414 condition caching logic into ...
11415 (sched_get_condition_with_rev): ... this. Reimplement. Do not
11416 attempt to use cache for instructions with zero luid.
11417 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
11418 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
11419
0d9439b0
SG
114202011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11421
11422 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
11423 get_seqno_for_a_jump. Update the caller.
11424 (get_seqno_by_succs): New. Use it ...
11425 (get_seqno_for_a_jump): ... here to find a seqno if looking at
11426 predecessors was not sufficient.
11427 (get_seqno_by_preds): Include head in iteration range, exclude insn.
11428
5c416724
DM
114292011-08-11 Dmitry Melnik <dm@ispras.ru>
11430
11431 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
11432
cf3d5824
SG
114332011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11434
11435 * sel-sched-ir.h (register_unavailable_p): Declare.
11436 * sel-sched-ir.c (register_unavailable_p): New. Use it...
11437 (set_unavailable_target_for_expr): ... here to properly test
11438 availability of a register.
11439 (speculate_expr): Ditto.
11440 * sel-sched.c (substitute_reg_in_expr): Ditto.
11441 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
11442
944499ed
SG
114432011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
11444
11445 * sel-sched.c (verify_target_availability): Fix usage of
11446 hard_regno_nregs.
11447
6bf2d156
DM
114482011-08-11 Dmitry Melnik <dm@ispras.ru>
11449
11450 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
11451 recognized by cannot_copy_insn_p hook and volatile instructions.
11452
bf3a40e9
DM
114532011-08-11 Dmitry Melnik <dm@ispras.ru>
11454
11455 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
11456
f9bf5a8e
RS
114572011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
11458
11459 * doc/md.texi (define_bypass): Say that the instruction names can
11460 be filename-style globs.
11461 * Makefile.in (FNMATCH_H): Define.
11462 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
11463 * genattrtab.c: Include fnmatch.h.
11464 (bypass_list): Change field name from "insn" to "pattern".
11465 (gen_bypass_1): Update accordingly.
11466 (process_bypasses): Use fnmatch to check for matches between
11467 insn reservations and define_bypasses.
11468 * genautomata.c: Include fnmatch.h.
11469 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
11470 and out_pattern respectively.
11471 (gen_bypass, insert_bypass): Update accordingly.
11472 (for_each_matching_insn, process_bypass_2, process_bypass_1)
11473 (process_bypass): New functions.
11474 (process_decls): Use process_bypass. Update after field name changes.
11475
7ece3881 114762011-08-11 Georg-Johann Lay <avr@gjlay.de>
78926be1 11477
7ece3881
GJL
11478 PR target/49687
11479 * config/avr/avr.md (smulqi3_highpart): New insn.
11480 (umulqi3_highpart): New insn.
11481 (*subqi3.ashiftrt7): New insn.
11482 (smulhi3_highpart): New expander.
11483 (umulhi3_highpart): Nex expander.
11484 (*smulhi3_highpart_call): New insn.
11485 (*umulhi3_highpart_call): New insn.
11486 (extend_u): New code attribute.
11487 (extend_prefix): Rename code attribute to extend_su.
11488 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
11489 widening QI/HI multiply.
11490
fb2c2b16
IR
114912011-08-11 Ira Rosen <ira.rosen@linaro.org>
11492
11493 PR tree-optimization/50039
11494 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
11495 that DEF_STMT has a stmt_vec_info.
11496
b126811e
RG
114972011-08-10 Richard Guenther <rguenther@suse.de>
11498
11499 * tree.h (can_trust_pointer_alignment): Remove.
11500 * builtins.c (can_trust_pointer_alignment): Remove.
11501
0e3a99ae
AS
115022011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
11503
11504 * c-typeck.c (scalar_to_vector): New function. Try scalar to
11505 vector conversion.
11506 (stv_conv): New enum for scalar_to_vector return type.
11507 (build_binary_op): Adjust.
11508 * doc/extend.texi: Description of scalar to vector expansion.
11509
0eb77834
RG
115102011-08-10 Richard Guenther <rguenther@suse.de>
11511
11512 * tree.h (get_pointer_alignment): Remove max-align argument.
11513 (get_object_alignment): Likewise.
11514 * builtins.c (get_object_alignment_1): Adjust.
11515 (get_object_alignment): Remove max-align argument.
11516 (get_pointer_alignment): Likewise.
11517 (expand_builtin_strlen): Adjust.
11518 (expand_builtin_memcpy): Likewise.
11519 (expand_builtin_mempcpy_args): Likewise.
11520 (expand_builtin_strncpy): Likewise.
11521 (expand_builtin_memset_args): Likewise.
11522 (expand_builtin_memcmp): Likewise.
11523 (expand_builtin_strcmp): Likewise.
11524 (expand_builtin_strncmp): Likewise.
11525 (get_builtin_sync_mem): Likewise.
11526 (fold_builtin_memset): Likewise.
11527 (fold_builtin_memory_op): Likewise.
11528 (expand_builtin_memory_chk): Likewise.
11529 * emit-rtl.c (get_mem_align_offset): Likewise.
11530 (set_mem_attributes_minus_bitpos): Likewise.
11531 * expr.c (expand_assignment): Likewise.
11532 (expand_expr_real_1): Likewise.
11533 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
11534 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
11535 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
11536 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
11537 * value-prof.c (gimple_stringops_transform): Likewise.
11538
1c7836f0
PM
115392011-08-10 Paulo J. Matos <paulo.matos@csr.com>
11540
11541 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
11542 * doc/tm.texi: Regenerate.
11543
4ada410b 115442011-08-10 Georg-Johann Lay <avr@gjlay.de>
88b590c5 11545
4ada410b
GJL
11546 PR target/29560
11547 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
11548 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
11549 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
11550 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
11551 shift target is unused.
11552
d1f4e15f
RG
115532011-08-10 Richard Guenther <rguenther@suse.de>
11554
11555 PR tree-optimization/49937
11556 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
11557 using get_object_alignment_1.
11558
2813f1b1
UB
115592011-08-09 Uros Bizjak <ubizjak@gmail.com>
11560
11561 * config/i386/i386.c (ix86_emit_i387_round): New function.
11562 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
11563 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
11564 Use ix86_emit_i387_round to expand round function for i387 math.
11565 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
11566 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
11567
c6412d86
RO
115682011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11569
11570 * config/sync.c: Move to ../libgcc.
2813f1b1 11571 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
c6412d86
RO
11572 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
11573 Remove.
11574
6e9ee54c
AS
115752011-08-09 Anatoly Sokolov <aesok@post.ru>
11576
11577 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
11578 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
11579 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
11580 Change 'from' and 'to' arguments type to reg_class_t.
11581 (TARGET_REGISTER_MOVE_COST): Define.
11582
394b1520
VM
115832011-08-09 Vladimir Makarov <vmakarov@redhat.com>
11584
11585 PR target/50026
11586 Revert:
11587 PR rtl-optimization/49990
11588 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11589 ignore classes which can not change mode.
11590 (find_costs_and_classes): Ditto.
11591
4001900f
RG
115922011-08-09 Richard Guenther <rguenther@suse.de>
11593
11594 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
11595 information for ranges with only negative values.
11596 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
11597 BIT_AND_EXPR handling to handle ranges with negative values.
11598
6cf9eb27
KY
115992011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
11600
88b590c5
UB
11601 * config/i386/i386.c: Remove traling spaces.
11602 * config/i386/sse.md: Likewise.
11603 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
11604 (*fma_fmsub_<mode>): Likewise.
11605 (*fma_fnmadd_<mode>): Likewise.
11606 (*fma_fnmsub_<mode>): Likewise.
6cf9eb27 11607
d6257cf0
NC
116082011-08-09 Nick Clifton <nickc@redhat.com>
11609
11610 * config/rx/rx.md: Disable extender peepholes at -O3.
11611
3968b050
UB
116122011-08-09 Uros Bizjak <ubizjak@gmail.com>
11613
11614 PR target/49781
11615 * config/i386/i386.md (reload_noff_load): New.
11616 (reload_noff_store): Ditto.
11617 * config/i386/i386.c (ix86_secondary_reload): Use
11618 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
11619 double-word moves from/to non-offsetable addresses instead of
11620 generating XMM temporary.
11621
2292df60
AS
116222011-08-09 Anatoly Sokolov <aesok@post.ru>
11623
11624 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
11625
1684ca6b
IR
116262011-08-09 Ira Rosen <ira.rosen@linaro.org>
11627
11628 PR tree-optimization/50014
11629 * tree-vect-loop.c (vectorizable_reduction): Get def type before
11630 calling vect_get_vec_def_for_stmt_copy ().
11631
40118062
VM
116322011-08-08 Vladimir Makarov <vmakarov@redhat.com>
11633
11634 PR rtl-optimization/49990
11635 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
11636 ignore classes which can not change mode.
11637 (find_costs_and_classes): Ditto.
11638
8714c21f
RH
116392011-08-08 Richard Henderson <rth@redhat.com>
11640
11641 PR middle-end/49990
11642 * config/i386/i386.c (ix86_expand_prologue): Call
11643 for SEH target gen_prologue_use instead of gen_blockage
11644 at prologue's end.
11645
1ad663a8
MJ
116462011-08-08 Martin Jambor <mjambor@suse.cz>
11647
11648 PR middle-end/49923
11649 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
11650 memory alignment.
11651
f0efc7aa
DN
116522011-08-08 Diego Novillo <dnovillo@google.com>
11653
11654 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
11655 (DATA_STREAMER_H): New.
11656 (GIMPLE_STREAMER_H): New.
11657 (TREE_STREAMER_H): New.
11658 (STREAMER_HOOKS_H): New.
11659 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
11660 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
11661 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
11662 (data-streamer.o): New.
11663 (data-streamer-in.o): New.
11664 (data-streamer-out.o): New.
11665 (gimple-streamer-in.o): New.
11666 (gimple-streamer-out.o): New.
11667 (streamer-hooks.o): New.
11668 (tree-streamer.o): New.
11669 (tree-streamer-in.o): New.
11670 (tree-streamer-out.o): New.
3968b050 11671 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
11672 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
11673 GIMPLE_STREAMER_H and TREE_STREAMER_H.
11674 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
11675 GIMPLE_STREAMER_H and TREE_STREAMER_H.
11676 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3968b050 11677 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
11678 (ipa-inline-analysis.o): Likewise.
11679 (ipa-pure-const.o): Likewise.
11680 * data-streamer-in.c: New.
11681 * data-streamer-out.c: New.
11682 * data-streamer.c: New.
11683 * data-streamer.h: New.
11684 * gimple-streamer-in.c: New.
11685 * gimple-streamer-out.c: New.
11686 * gimple-streamer.h: New.
11687 * ipa-inline-analysis.c: Include data-streamer.h.
11688 * ipa-prop.c: Include data-streamer.h.
11689 * ipa-pure-const.c: Include data-streamer.h.
11690 * lto-cgraph.c: Include data-streamer.h.
11691 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
11692 (lto_input_widest_uint_uleb128): Likewise.
11693 (lto_input_sleb128): Likewise.
11694 (bp_unpack_var_len_unsigned): Likewise.
11695 (bp_unpack_var_len_int): Likewise.
11696 * lto-section-out.c (lto_output_uleb128_stream): Move to
11697 data-streamer-out.c.
11698 (lto_output_widest_uint_uleb128_stream): Likewise.
11699 (lto_output_sleb128_stream): Likewise.
11700 (bp_pack_var_len_unsigned): Likewise.
11701 (bp_pack_var_len_int): Likewise.
3968b050 11702 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
f0efc7aa
DN
11703 (struct string_slot): Remove. Update all users.
11704 (lto_tag_check_set): Make extern.
11705 (lto_tag_check_range): Move to lto-streamer.h.
11706 (lto_tag_check): Likewise.
11707 (hash_string_slot_node): Remove. Update all users.
11708 (eq_string_slot_node): Remove. Update all users.
11709 (string_for_index): Move to data-streamer-in.c
11710 (input_string_internal): Likewise.
11711 (input_string_cst): Move to tree-streamer-in.c.
11712 (input_identifier): Likewise.
11713 (lto_input_string): Move to data-streamer-in.c
11714 (input_record_start): Move to data-streamer.h
11715 (canon_file_name): Use new definition of struct string_slot
3968b050 11716 from data-streamer.h. Set S_SLOT.LEN.
f0efc7aa
DN
11717 (lto_input_location): Make extern.
11718 (lto_input_chain): Move to tree-streamer-in.c.
11719 (lto_init_eh): Make extern.
11720 (input_phi): Move to gimple-streamer-in.c.
11721 (input_gimple_stmt): Likewise.
11722 (input_bb): Likewise.
11723 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
11724 (unpack_ts_real_cst_value_fields): Likewise.
11725 (unpack_ts_fixed_cst_value_fields): Likewise.
11726 (unpack_ts_decl_common_value_fields): Likewise.
11727 (unpack_ts_decl_wrtl_value_fields): Likewise.
11728 (unpack_ts_decl_with_vis_value_fields): Likewise.
11729 (unpack_ts_function_decl_value_fields): Likewise.
11730 (unpack_ts_type_common_value_fields): Likewise.
11731 (unpack_ts_block_value_fields): Likewise.
11732 (unpack_ts_translation_unit_decl_value_fields): Likewise.
11733 (unpack_value_fields): Likewise.
11734 (lto_materialize_tree): Likewise.
11735 (lto_input_ts_common_tree_pointers): Likewise.
11736 (lto_input_ts_vector_tree_pointers): Likewise.
11737 (lto_input_ts_complex_tree_pointers): Likewise.
11738 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
11739 (lto_input_ts_decl_common_tree_pointers): Likewise.
11740 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
11741 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
11742 (lto_input_ts_field_decl_tree_pointers): Likewise.
11743 (lto_input_ts_function_decl_tree_pointers): Likewise.
11744 (lto_input_ts_type_common_tree_pointers): Likewise.
11745 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11746 (lto_input_ts_list_tree_pointers): Likewise.
11747 (lto_input_ts_vec_tree_pointers): Likewise.
11748 (lto_input_ts_exp_tree_pointers): Likewise.
11749 (lto_input_ts_block_tree_pointers): Likewise.
11750 (lto_input_ts_binfo_tree_pointers): Likewise.
11751 (lto_input_ts_constructor_tree_pointers): Likewise.
11752 (lto_input_ts_target_option): Likewise.
11753 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
11754 (lto_input_tree_pointers): Likewise.
11755 (lto_get_pickled_tree): Likewise.
11756 (lto_get_builtin_tree): Likewise.
11757 (lto_read_tree): Likewise.
11758 (lto_input_integer_cst): Likewise.
11759 (lto_input_tree): Likewise.
11760 * lto-streamer-out.c: Include data-streamer.h,
11761 gimple-streamer.h and streamer-hooks.h.
11762 (struct string_slot): Move to data-streamer.h.
11763 (hash_string_slot_node): Likewise.
11764 (eq_string_slot_node): Likewise.
11765 (lto_string_index): Move to data-streamer-out.c.
11766 (lto_output_string_with_length): Likewise.
11767 (lto_output_string): Likewise.
11768 (output_string_cst): Move to tree-streamer-out.c.
11769 (output_identifier): Likewise.
11770 (output_zero): Move to data-streamer-out.c
11771 (output_uleb128): Likewise.
11772 (output_sleb128): Likewise.
11773 (output_record_start): Move to data-streamer.h
11774 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
11775 (pack_ts_real_cst_value_fields): Likewise.
11776 (pack_ts_fixed_cst_value_fields): Likewise.
11777 (pack_ts_decl_common_value_fields): Likewise.
11778 (pack_ts_decl_wrtl_value_fields): Likewise.
11779 (pack_ts_decl_with_vis_value_fields): Likewise.
11780 (pack_ts_function_decl_value_fields): Likewise.
11781 (pack_ts_type_common_value_fields): Likewise.
11782 (pack_ts_block_value_fields): Likewise.
11783 (pack_ts_translation_unit_decl_value_fields): Likewise.
11784 (pack_value_fields): Likewise.
11785 (lto_output_chain): Likewise.
11786 (lto_output_ts_common_tree_pointers): Likewise.
11787 (lto_output_ts_vector_tree_pointers): Likewise.
11788 (lto_output_ts_complex_tree_pointers): Likewise.
11789 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
11790 (lto_output_ts_decl_common_tree_pointers): Likewise.
11791 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
11792 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
11793 (lto_output_ts_field_decl_tree_pointers): Likewise.
11794 (lto_output_ts_function_decl_tree_pointers): Likewise.
11795 (lto_output_ts_type_common_tree_pointers): Likewise.
11796 (lto_output_ts_type_non_common_tree_pointers): Likewise.
11797 (lto_output_ts_list_tree_pointers): Likewise.
11798 (lto_output_ts_vec_tree_pointers): Likewise.
11799 (lto_output_ts_exp_tree_pointers): Likewise.
11800 (lto_output_ts_block_tree_pointers): Likewise.
11801 (lto_output_ts_binfo_tree_pointers): Likewise.
11802 (lto_output_ts_constructor_tree_pointers): Likewise.
11803 (lto_output_ts_target_option): Likewise.
11804 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
11805 (lto_output_tree_pointers): Likewise.
11806 (lto_output_tree_header): Likewise.
11807 (lto_output_builtin_tree): Likewise.
11808 (lto_write_tree): Likewise.
11809 (lto_output_integer_cst): Likewise.
11810 (lto_output_tree): Likewise.
11811 (output_phi): Move to gimple-streamer-out.c.
11812 (output_gimple_stmt): Likewise.
11813 (output_bb): Likewise.
11814 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
11815 (streamer_hooks): Move to streamer-hooks.c.
11816 (check_handled_ts_structures): Move to tree-streamer.c
11817 (lto_streamer_cache_add_to_node_array): Likewise.
11818 (lto_streamer_cache_insert_1): Likewise.
11819 (lto_streamer_cache_insert): Likewise.
11820 (lto_streamer_cache_insert_at): Likewise.
11821 (lto_streamer_cache_append): Likewise.
11822 (lto_streamer_cache_lookup): Likewise.
11823 (lto_streamer_cache_get): Likewise.
11824 (lto_record_common_node): Likewise.
11825 (lto_preload_common_nodes): Likewise.
11826 (lto_streamer_cache_create): Likewise.
11827 (lto_streamer_cache_delete): Likewise.
11828 (streamer_hooks_init): Move to streamer-hooks.c.
11829 * lto-streamer.h: Include diagnostic.h
11830 (struct output_block, struct lto_input_block,
3968b050 11831 struct data_in, struct bitpack_d): Remove forward declarations.
f0efc7aa
DN
11832 (struct bitpack_d): Move to data-streamer.h.
11833 (struct lto_streamer_cache_d): Move to tree-streamer.h.
11834 (struct streamer_hooks): Move to streamer-hooks.h.
11835 (bp_pack_var_len_unsigned): Move to data-streamer.h.
11836 (bp_pack_var_len_int): Likewise.
11837 (bp_unpack_var_len_unsigned): Likewise.
11838 (bp_unpack_var_len_int): Likewise.
11839 (lto_input_location): Declare.
11840 (lto_tag_check_set): Declare.
11841 (lto_init_eh): Declare.
11842 (lto_output_tree_ref): Declare.
11843 (lto_output_location): Declare.
11844 (bitpack_create): Move to data-streamer.h.
11845 (bp_pack_value): Likewise.
11846 (lto_output_bitpack): Likewise.
11847 (lto_input_bitpack): Likewise.
11848 (bp_unpack_value): Likewise.
11849 (lto_output_1_stream): Likewise.
11850 (lto_input_1_unsigned): Likewise.
11851 (lto_output_int_in_range): Likewise.
11852 (lto_input_int_in_range): Likewise.
11853 (bp_pack_int_in_range): Likewise.
11854 (bp_unpack_int_in_range): Likewise.
11855 (lto_output_enum): Likewise.
11856 (lto_input_enum): Likewise.
11857 (bp_pack_enum): Likewise.
11858 (bp_unpack_enum): Likewise.
11859 * streamer-hooks.c: New.
11860 * streamer-hooks.h: New.
11861 * tree-streamer-in.c: New.
11862 * tree-streamer-out.c: New.
11863 * tree-streamer.c: New.
11864 * tree-streamer.h: New.
11865
ddaad3c8
RO
118662011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11867
11868 * gthr-posix95.h: Remove.
11869 * gthr.h [_PTHREADS95]: Remove.
11870 * configure.ac (enable_threads): Remove posix95.
11871 * configure: Regenerate.
3968b050 11872 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
ddaad3c8 11873
3968b050 118742011-08-08 Uros Bizjak <ubizjak@gmail.com>
473b30ce
UB
11875
11876 PR target/49781
11877 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
11878 SImode addresses.
11879 (ix86_print_operand_address): Handle zero-extended addresses.
11880 (memory_address_length): Add length of addr32 prefix for
11881 zero-extended addresses.
11882 (ix86_secondary_reload): Handle moves to/from double-word general
11883 registers from/to zero-extended addresses.
11884 * config/i386/predicates.md (lea_address_operand): Reject
11885 zero-extended operands.
11886
cca2207a
L
118872011-08-08 H.J. Lu <hongjiu.lu@intel.com>
11888
11889 PR other/48007
473b30ce 11890 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
cca2207a
L
11891
11892 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
11893 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
11894
11895 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
11896 (_Unwind_Context_Reg_Val): Likewise.
11897 (_Unwind_Get_Unwind_Word): Likewise.
11898 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
11899 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
11900 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
11901 for EXTENDED_CONTEXT_BIT.
11902 (__frame_state_for): Likewise.
11903 (uw_init_context_1): Likewise.
11904 (_Unwind_GetGR): Updated.
11905 (_Unwind_SetGR): Likewise.
11906 (_Unwind_GetGRPtr): Likewise.
11907 (_Unwind_SetGRPtr): Likewise.
11908 (_Unwind_SetGRValue): Likewise.
11909 (_Unwind_GRByValue): Likewise.
11910 (uw_install_context_1): Likewise.
11911
11912 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
11913 ASSUME_EXTENDED_UNWIND_CONTEXT.
11914 * doc/tm.texi: Regenerated.
11915
b6ee5bef
RO
119162011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11917
11918 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
11919
46135ba7
RO
119202011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11921
11922 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
11923 Linux/GNU-specific.
11924 (DEC Alpha Options, -mtune): Likewise.
11925 (MIPS Options, -march): native is supported on IRIX.
11926
e3b3fa45
RO
119272011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11928
11929 * config/sparc/driver-sparc.c: New file.
11930 * config/sparc/x-sparc: New file.
473b30ce
UB
11931 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
11932 * config/sparc/sparc.opt (native): New value for enum processor_type.
e3b3fa45
RO
11933 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
11934 * config/sparc/sparc.c (sparc_option_override): Abort if
11935 PROCESSOR_NATIVE gets here.
11936 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
11937 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
11938 DRIVER_SELF_SPECS): Define.
11939 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
11940 (SPARC Options, -mtune): Likewise.
11941 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
11942 Substitute result.
11943 * configure: Regenerate.
11944 * Makefile.in (EXTRA_GCC_LIBS): Set.
11945 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
11946 (cpp$(exeext)): Likewise.
11947
ce6bfa50
RG
119482011-08-08 Richard Guenther <rguenther@suse.de>
11949
11950 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
11951 split out from ...
11952 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
11953 by composition.
11954
daae4650
MP
119552011-08-08 Mikael Pettersson <mikpe@it.uu.se>
11956
11957 PR tree-optimization/50005
11958 * ipa-inline-analysis (remap_predicate): Add cast to
11959 silence signed/unsigned comparison warning.
11960
3e762578
RS
119612011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
11962
11963 * modulo-sched.c (get_sched_window): Use a table for the debug output.
11964 Print the current ii.
11965 (sms_schedule_by_order): Reduce whitespace in dump line.
11966
fe43febc
RS
119672011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
11968
11969 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
11970 and one loop for successors. Fix upper bound of memory range.
11971
1e46eb2a
UB
119722011-08-06 Uros Bizjak <ubizjak@gmail.com>
11973
11974 PR target/50001
11975 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
11976 (TARGET_INSTANTIATE_DECLS): New define.
11977
cc3801b0 119782011-08-06 Paolo Bonzini <bonzini@gnu.org>
473b30ce 11979 Mikael Morin <mikael.morin@sfr.fr>
cc3801b0
PB
11980
11981 * Makefile.in (INCLUDES_FOR_TARGET): New.
11982 (LIBGCC2_CFLAGS): Use it.
1e46eb2a 11983 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
cc3801b0 11984
f68c9aa8
UB
119852011-08-06 Uros Bizjak <ubizjak@gmail.com>
11986
11987 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
11988 frame->save_regs_using_mov calculation.
11989
cd7c6bc5
UB
119902011-08-06 Uros Bizjak <ubizjak@gmail.com>
11991
11992 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
11993 * config/i386/sse.md (castmode): New mode attribute.
11994 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
11995 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
11996
9911e25a
JH
119972011-08-05 Jan Hubicka <jh@suse.cz>
11998
11999 PR middle-end/49494
12000 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
12001
75d3e6e3
JH
120022011-08-05 Jan Hubicka <jh@suse.cz>
12003
12004 PR middle-end/49500
12005 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
12006 handle aliases.
12007 (create_emultls_var):New function.
12008 (ipa_lower_emutls): Handle aliases correctly.
12009
f791d333
JH
120102011-08-05 Jan Hubicka <jh@suse.cz>
12011
12012 PR middle-end/49735
12013 * ipa-inline.c (recursive_inlining): Look through aliases.
12014
f93b21e2
JM
120152011-08-05 Jason Merrill <jason@redhat.com>
12016
12017 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
12018 declarations to beginning of function.
12019
2c331232
BS
120202011-08-05 Bernd Schmidt <bernds@codesourcery.com>
12021
12022 PR rtl-optimization/49900
12023 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
12024 ensure basic blocks stay in the same order.
12025
44e95206
AH
120262011-08-05 Aldy Hernandez <aldyh@redhat.com>
12027
12028 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
12029 store_bit_field.
12030 (s390_expand_atomic): Same.
12031
6fe818aa
RH
120322011-08-05 Richard Henderson <rth@redhat.com>
12033
12034 PR rtl-opt/49977
12035 * dwarf2cfi.c (scan_insn_after): Split out of ...
12036 (scan_trace): ... here. Correctly place notes wrt sequences.
12037
7ac17442
KK
120382011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
12039 Richard Henderson <rth@redhat.com>
12040
12041 PR rtl-opt/49982
12042 * expr.c (fixup_args_size_notes): Look through no-op moves.
12043
24911a50
UB
120442011-08-05 Uros Bizjak <ubizjak@gmail.com>
12045
12046 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
12047 of "m" for operand 0. Add type and mode attribute.
12048 (*pushxf_nointeger"): Use "<" constraint for operand 0.
12049 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
12050 constraint instead of "o" for opreand 1.
12051 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
42443bdb
UB
12052 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
12053 operand 0, alternative 4.
12054 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
24911a50
UB
12055
120562011-08-05 Uros Bizjak <ubizjak@gmail.com>
12057
12058 * config/i386/predicates.md (lea_address_operand): Rename from
12059 no_seg_address_operand.
12060 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
12061 (*lea_1_zext): Ditto.
12062 (*lea_2): Ditto.
12063 (*lea_2_zext): Ditto.
12064
120652011-08-05 Uros Bizjak <ubizjak@gmail.com>
12066
12067 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
12068 parts.base and parts.index.
12069 * config/i386/predicates.md (aligned_operand): Ditto.
12070 (cmpxchg8b_pic_memory_operand): Ditto.
12071
aca0b0b3
RO
120722011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12073
12074 * config/soft-fp: Move to ../libgcc.
12075 * Makefile.in (SFP_MACHINE): Remove.
12076 (libgcc-support): Remove $(SFP_MACHINE) dependency.
12077 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
12078 * config/arm/t-arm-softfp: Move to
12079 ../libgcc/config/arm/t-softfp.
12080 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
12081 * config/c6x/t-c6x-softfp: Remove.
12082 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
12083 * config/i386/t-fprules-softfp: Move to
12084 ../libgcc/config/t-softfp-tf.
12085 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
12086 * config/ia64/t-fprules-softfp: Remove.
12087 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
12088 * config/lm32/t-fprules-softfp: Remove.
12089 * config/moxie/sfp-machine.h: Remove.
12090 * config/moxie/t-moxie-softfp: Remove.
12091 * config/rs6000/darwin-ldouble-format: Move to
12092 ../libgcc/config/rs6000/ibm-ldouble-format.
12093 * config/rs6000/darwin-ldouble.c: Move to
12094 ../libgcc/config/rs6000/ibm-ldouble.c
12095 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
12096 * config/rs6000/libgcc-ppc64.ver: Likewise.
12097 * config/rs6000/sfp-machine.h: Likewise.
12098 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
12099 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
12100 (LIB2FUNCS_EXTRA): Remove.
12101 (TARGET_LIBGCC2_CFLAGS): Remove.
12102 * config/rs6000/t-aix52: Likewise
12103 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12104 $(srcdir)/config/rs6000/darwin-ldouble.c.
12105 (SHLIB_MAPFILES): Remove.
12106 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
12107 $(srcdir)/config/rs6000/darwin-ldouble.c.
12108 * config/rs6000/t-fprules-softfp: Move to
12109 ../libgcc/config/t-softfp-sfdf.
12110 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
12111 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
12112 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
12113 $(srcdir)/config/rs6000/darwin-ldouble.c.
12114 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
12115 * config/score/t-score-softfp: Remove.
12116 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
12117 soft-fp/t-softfp from tmake_file.
12118 (arm*-*-uclinux*): Likewise.
12119 (arm*-*-ecos-elf): Likewise.
12120 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
12121 (arm*-*-rtems*): Likewise.
12122 (arm*-*-elf): Likewise.
12123 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
12124 tmake_file.
12125 (moxie-*-uclinux*): Likewise.
12126 (moxie-*-rtems*): Likewise.
12127 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
12128 tmake_file.
12129 (lm32-*-rtems*): Likewise.
12130 (lm32-*-uclinux*): Likewise.
12131 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
12132 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12133 (powerpc-*-linux*, powerpc64-*-linux*): Remove
12134 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
12135 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
12136 tmake_file.
12137 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
12138 tmake_file.
12139 (tic6x-*-uclinux): Likewise.
12140 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
12141 soft-fp/t-softfp from tmake_file.
12142 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
12143 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
12144 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
24911a50 12145 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
aca0b0b3
RO
12146 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
12147
569dc494
RO
121482011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12149
12150 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
24911a50 12151 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
569dc494
RO
12152 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
12153 TPBIT, TPBIT_FUNCS.
12154 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
12155 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
12156 Remove.
12157 * config/arm/t-vxworks: Likewise.
12158 * config/arm/t-wince-pe: Likewise.
12159 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
12160 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12161 * config/bfin/t-bfin-elf: Likewise.
12162 * config/bfin/t-bfin-linux: Likewise.
12163 * config/bfin/t-bfin-uclinux: Likewise.
12164 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
12165 Remove.
12166 * config/fr30/t-fr30: Likewise.
12167 * config/frv/t-frv: Likewise.
12168 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
12169 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12170 * config/m32c/t-m32c: Likewise.
12171 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
12172 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12173 * config/mcore/t-mcore: Likewise.
12174 * config/mep/t-mep: Likewise.
12175 * config/microblaze/t-microblaze: Likewise.
12176 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
12177 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12178 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
12179 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12180 * config/mn10300/t-linux: Remove.
12181 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12182 * config/pdp11/t-pdp11: Likewise.
12183 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
12184 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
12185 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12186 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
12187 * config/rs6000/t-aix52: Likewise.
12188 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
12189 $(srcdir)/config/rs6000/ppc64-fp.c.
12190 * config/rs6000/t-fprules-fpbit: Remove.
12191 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
12192 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12193 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
12194 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12195 * config/sparc/t-elf: Likewise.
12196 * config/sparc/t-leon: Likewise.
12197 * config/sparc/t-leon3: Likewise.
12198 * config/spu/t-spu-elf: Likewise.
12199 (DPBIT_FUNCS): Remove.
12200 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
12201 * config/v850/t-v850: Likewise.
12202 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
12203 (avr-*-*): Likewise.
12204 (h8300-*-rtems*): Set libgcc_tm_file.
12205 (h8300-*-elf*): Likewise.
12206 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
12207 tmake_file.
12208 (powerpc-*-eabisim*): Likewise.
12209 (powerpc-*-elf*): Likewise.
12210 (powerpc-*-eabialtivec*): Likewise.
12211 (powerpc-xilinx-eabi*): Likewise.
12212 (powerpc-*-eabi*): Likewise.
12213 (powerpc-*-rtems*): Likewise.
12214 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
12215 (powerpcle-*-elf*): Likewise.
12216 (powerpcle-*-eabisim*): Likewise.
12217 (powerpcle-*-eabi*): Likewise.
12218 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
12219 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
12220 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
12221 Remove.
12222
201cdb74
RO
122232011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12224
12225 * Makefile.in (UNWIND_H): Remove.
12226 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
12227 ../libgcc/Makefile.in.
12228 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
12229 (LIBUNWINDDEP): Remove.
12230 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
12231 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
12232 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
12233 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
12234 Don't copy $(UNWIND_H).
24911a50 12235 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
201cdb74
RO
12236 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
12237 * aclocal.m4: Regenerate.
12238 * configure: Regenerate.
12239 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
12240 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
12241 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
12242 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
12243 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
12244 * config/arm/libunwind.S, config/arm/pr-support.c,
12245 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
12246 ../libgcc/config/arm.
12247 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
12248 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
12249 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
12250 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
12251 ($(T)frvend$(objext)): Likewise.
12252 * config/ia64/t-glibc (LIB2ADDEH): Remove.
12253 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
12254 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
12255 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
12256 ../libgcc/config/ia64.
12257 * config/ia64/t-hpux (LIB2ADDEH): Remove.
12258 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
12259 * config/ia64/t-vms (LIB2ADDEH): Remove.
12260 * config/ia64/vms.h (UNW_IVMS_MODE,
12261 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
12262 * config/picochip/t-picochip (LIB2ADDEH): Remove.
12263 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
12264 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
12265 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
12266 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
12267 $(srcdir)/../libgcc to refer to unwinder sources.
12268 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
12269 * config/t-darwin (LIB2ADDEH): Remove.
12270 * config/t-freebsd (LIB2ADDEH): Remove.
12271 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
12272 * config/t-libunwind-elf: Move to ../libgcc/config.
12273 * config/t-linux (LIB2ADDEH): Remove.
12274 * config/t-sol2 (LIB2ADDEH): Remove.
12275 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
12276 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
12277
cee0d6d2
L
122782011-08-05 H.J. Lu <hongjiu.lu@intel.com>
12279
12280 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
12281
12282 * doc/invoke.texi: Document core-avx-i.
12283
96c891b3
RO
122842011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12285
12286 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
12287
2aacf3c3
IR
122882011-08-05 Ira Rosen <ira.rosen@linaro.org>
12289
12290 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
12291 result of multiple results reduction when extracting the final
12292 value using scalar code.
12293
0f36b2da
RG
122942011-08-05 Richard Guenther <rguenther@suse.de>
12295
12296 PR tree-optimization/49984
12297 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
12298
8b201bc5
RG
122992011-08-05 Richard Guenther <rguenther@suse.de>
12300
12301 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
12302 return true for constant integer ranges.
12303 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
12304 BIT_IOR_EXPR handling.
12305
c1ea7f07
KT
123062011-08-04 Kai Tietz <ktietz@redhat.com>
12307
12308 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
12309 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
12310
1107f3ae
IR
123112011-08-04 Ira Rosen <ira.rosen@linaro.org>
12312
12313 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
12314 pattern def statement, and its access macro.
12315 (NUM_PATTERNS): Set to 5.
12316 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12317 pattern def statement.
12318 (vect_transform_loop): Likewise.
12319 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
12320 function vect_recog_over_widening_pattern ().
12321 (vect_operation_fits_smaller_type): New function.
12322 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
12323 Likewise.
12324 (vect_pattern_recog_1): Move the code that marks pattern
12325 statements to vect_mark_pattern_stmts (), and call it. Update
12326 documentation.
12327 * tree-vect-stmts.c (vect_supportable_shift): New function.
12328 (vect_analyze_stmt): Handle pattern def statement.
12329 (new_stmt_vec_info): Initialize pattern def statement.
12330
6394830f
RH
123312011-08-04 Richard Henderson <rth@redhat.com>
12332
12333 PR target/49964
12334 * config/i386/i386.c (ix86_expand_call): Don't create nested
12335 PARALLELs for TARGET_VZEROUPPER.
12336 (ix86_split_call_vzeroupper): Fix extraction of the original call.
12337 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
12338 recognize nested PARALLELs.
12339 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
12340 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
12341 *sibcall_value_pop_vzeroupper): Likewise.
12342
faf7a23d
RH
123432011-08-04 Richard Henderson <rth@redhat.com>
12344
12345 PR middle-end/49968
12346 * calls.c (expand_call): Use fixup_args_size_notes for
12347 emit_stack_restore.
12348 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
12349 in non-standard modes.
12350
84f405a1
JJ
123512011-08-04 Jakub Jelinek <jakub@redhat.com>
12352
12353 * gcc.c (self_spec): New variable.
12354 (static_specs): Add self_spec.
12355 (main): Call do_self_spec on "self_spec" specs after reading
12356 user specs files. Move compare_debug handling right after that.
12357
4d320da4
RG
123582011-08-04 Richard Guenther <rguenther@suse.de>
12359
12360 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
12361 (value_range_nonnegative_p): New function.
12362 (ssa_name_nonnegative_p): Use it.
12363 (value_range_constant_singleton): New function.
12364 (op_with_constant_singleton_value_range): Use it.
12365 (extract_range_from_binary_expr_1): New function, split out from ...
12366 (extract_range_from_binary_expr): ... this. Remove fallback
12367 constant folding done here.
12368
7e29ba60
RG
123692011-08-04 Richard Guenther <rguenther@suse.de>
12370
12371 PR tree-optimization/49806
12372 * tree-vrp.c (op_with_boolean_value_range_p): New function.
12373 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
12374 a new statement for a final conversion to bool.
12375
f142b5bc
RG
123762011-08-04 Romain Geissler <romain.geissler@gmail.com>
12377
12378 * gengtype-state.c: Include "bconfig.h" if
12379 GENERATOR_FILE is defined, "config.h" otherwise.
12380 * gengtype.c: Likewise.
12381 * gengtype-lex.l: Likewise.
12382 * gengtype-parse.c: Likewise.
12383 * Makefile.in (gengtype-lex.o-warn): New variable.
12384 (plugin_resourcesdir): Likewise.
12385 (plugin_bindir): Likewise.
12386 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
12387 (MOSTLYCLEANFILES): Add gengtype$(exeext).
12388 (native): Depend on gengtype$(exeext) is $enable_plugin
12389 is set to "yes".
12390 (gtype.state): Depend on s-gtype. Use temporary file.
12391 (gengtype-lex.o): New rule.
12392 (gengtype-parse.o): Likewise.
12393 (gengtype-state.o): Likewise.
12394 (gengtype$(exeext)): Likewise.
12395 (install-gengtype): Likewise.
12396 (gengtype.o): Likewise.
12397 (build/gengtype.o): Depend on version.h.
12398 (build/gengtype-state): Depend on double-int.h, version.h,
12399 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
12400 (install-plugin): Depend on install-gengtype.
12401
8dd00781
JJ
124022011-08-04 Jakub Jelinek <jakub@redhat.com>
12403
12404 PR middle-end/49905
12405 * tree.h (init_attributes): New prototype.
12406 * attribs.c (init_attributes): No longer static.
12407
6eb9142a
RR
124082011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12409
12410 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
12411 maybe_suffix.
12412
63a73071
DL
124132011-08-03 David Li <davidxl@google.com>
12414
12415 * tree-optimize.c (execute_fixup_cfg): Fix up entry
12416 outgoing edge counts after inlining.
12417
90037898
DL
124182011-08-03 David Li <davidxl@google.com>
12419
12420 * profile.c (compute_branch_probabilities): Compute
12421 function frequency after profile annotation.
12422
ea6c2b0e
AM
124232011-08-04 Alan Modra <amodra@gmail.com>
12424
12425 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
12426 use_backchain_to_restore_sp initialisation.
12427 (rs6000_legitimate_offset_address_p): Simplify offset test.
12428
4b39813a
RH
124292011-08-03 Richard Henderson <rth@redhat.com>
12430
12431 * config/spu/spu.md: Use define_c_enum instead of define_constants.
12432 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
12433 (UNSPECV_NOP): New.
12434
a6365e99
RH
124352011-08-03 Richard Henderson <rth@redhat.com>
12436
12437 PR target/34888
12438 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
12439
cb3d2e33
JJ
124402011-08-03 Jakub Jelinek <jakub@redhat.com>
12441
12442 PR tree-optimization/49948
12443 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
12444
35bdbc69
AS
124452011-08-03 Anatoly Sokolov <aesok@post.ru>
12446
12447 * config/m32c/m32c.c (class_sizes): Remove.
12448 (reduce_class): Change arguments and return type to reg_class_t.
12449 Change type cc var to HARD_REG_SET. Change type best var to
12450 reg_class_t. Change type best_size var to unsigned int. Remove
12451 initialization class_sizes var. Use reg_class_size array instead
12452 of class_sizes. Use reg_class_contents array instead
12453 of class_contents.
12454
a130fb24
RG
124552011-08-03 Richard Guenther <rguenther@suse.de>
12456
12457 PR middle-end/49958
12458 * fold-const.c (fold_binary_loc): Only associate
12459 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
12460 overflow wraps.
12461
276e0224
AM
124622011-08-03 Alan Modra <amodra@gmail.com>
12463
12464 PR rtl-optimization/49941
12465 * jump.c (mark_jump_label): Comment.
12466 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
12467 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
12468 (mark_used_flags): Don't mark RETURN.
12469
eb723fa3
RG
124702011-08-03 Richard Guenther <rguenther@suse.de>
12471
12472 PR tree-optimization/49938
12473 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
12474 deal with a POLYNOMIAL_CHREC.
12475
edc429ff
RE
124762011-08-03 Revital Eres <revital.eres@linaro.org>
12477
12478 * modulo-sched.c (calculate_stage_count,
12479 calculate_must_precede_follow, get_sched_window,
12480 try_scheduling_node_in_cycle, remove_node_from_ps): Add
12481 declaration.
12482 (update_node_sched_params, set_must_precede_follow, optimize_sc):
12483 New functions.
12484 (reset_sched_times): Call update_node_sched_params.
12485 (sms_schedule): Call optimize_sc.
12486 (get_sched_window): Change function arguments.
12487 (sms_schedule_by_order): Update call to get_sched_window.
12488 Call set_must_precede_follow.
12489 (calculate_stage_count): Add function argument.
12490
9a08d230
RH
124912011-08-02 Richard Henderson <rth@redhat.com>
12492
12493 PR target/49864
a3fef928 12494 PR target/49879
9a08d230
RH
12495 * reg-notes.def (REG_ARGS_SIZE): New.
12496 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
12497 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
12498 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
12499 different stack levels.
12500 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
12501 (maybe_move_args_size_note): New.
12502 (combine_stack_adjustments_for_block): Use it.
12503 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
12504 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
12505 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
12506 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
12507 (cur_cfa): New.
12508 (queued_args_size): Remove.
12509 (add_cfi_args_size): Assert size is non-negative.
12510 (stack_adjust_offset, dwarf2out_args_size): Remove.
12511 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
12512 (notice_args_size, notice_eh_throw): New.
12513 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
12514 (dwarf2out_frame_debug_adjust_cfa): Likewise.
12515 (dwarf2out_frame_debug_cfa_offset): Likewise.
12516 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
12517 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
12518 (change_cfi_row): Don't emit args_size.
12519 (maybe_record_trace_start_abnormal): Split out from ...
12520 (maybe_record_trace_start): Here. Set args_size_undefined.
12521 (create_trace_edges): Update to match.
12522 (scan_trace): Handle REG_ARGS_SIZE.
12523 (connect_traces): Connect args_size between EH insns.
12524 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
12525 * explow.c (suppress_reg_args_size): New.
12526 (adjust_stack_1): Split out from ...
12527 (adjust_stack): ... here.
12528 (anti_adjust_stack): Use it.
12529 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
12530 * expr.c (mem_autoinc_base): New.
12531 (fixup_args_size_notes): New.
12532 (emit_single_push_insn_1): Rename from emit_single_push_insn.
12533 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
12534 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
12535 * reload1.c (reload_as_needed): Likewise.
12536 * rtl.h (fixup_args_size_notes): Declare.
12537
9f813990
PC
125382011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
12539
12540 PR bootstrap/49914
12541 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
12542 of abs.
12543 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
12544 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
12545
8f1594b2
RH
125462011-08-02 Richard Henderson <rth@redhat.com>
12547
12548 * config/h8300/h8300.c (push, pop): Return the insn.
12549 (h8300_swap_into_er6): Generate correct unwind info.
12550 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
12551 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
12552 complex cfa expression.
12553 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 12554
3ed2c643
L
125552011-08-02 H.J. Lu <hongjiu.lu@intel.com>
12556
12557 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12558
f9b4f8c1
RH
125592011-08-02 Richard Henderson <rth@redhat.com>
12560
12561 PR target/49878
12562 * config/h8300/h8300.c (h8300_move_ok): New.
12563 * config/h8300/h8300-protos.h: Declare it.
12564 * config/h8300/h8300.md (P): New mode iterator.
12565 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
12566 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
12567 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
12568 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
12569 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
12570 and pushqi1_h8300hs_normal; use PRE_MODIFY and
12571 register_no_sp_elim_operand.
12572 (*pushhi1_h8300hs_<P>): Similarly.
12573 (pushqi1, pushhi1, pushhi1_h8300): Remove.
12574 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
12575
b7cef595
RH
125762011-08-02 Richard Henderson <rth@redhat.com>
12577
12578 PR target/49881
12579 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
12580
20906c66
JJ
125812011-08-02 Jakub Jelinek <jakub@redhat.com>
12582
12583 * c-parser.c (enum c_parser_prec): New enum, moved from within
12584 c_parser_binary_expression.
12585 (c_parser_binary_expression): Add PREC argument. Stop parsing
12586 if operator has lower or equal precedence than PREC.
12587 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
12588 callers.
12589 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
12590 Adjust c_finish_omp_atomic caller.
12591 (c_parser_omp_taskyield): New function.
12592 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
12593 (c_parser_omp_clause_name): Handle final and mergeable clauses.
12594 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
12595 functions.
12596 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
12597 and PRAGMA_OMP_CLAUSE_MERGEABLE.
12598 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
12599 (c_parser_omp_clause_reduction): Handle min and max.
12600 * c-typeck.c (c_finish_omp_clauses): Don't complain about
12601 const qualified predetermined vars in firstprivate clause.
12602 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12603 Handle MIN_EXPR and MAX_EXPR.
12604 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
12605 and OMP_CLAUSE_MERGEABLE.
12606 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
12607 and OMP_ATOMIC_CAPTURE_NEW.
12608 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
12609 OMP_CLAUSE_MERGEABLE.
12610 (omp_clause_code_name): Likewise.
12611 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12612 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
12613 and OMP_CLAUSE_MERGEABLE.
12614 (OMP_CLAUSE_FINAL_EXPR): Define.
12615 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
12616 OMP_CLAUSE_MERGEABLE.
12617 (expand_task_call): Likewise.
12618 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
12619 (expand_omp_atomic_fetch_op): Handle cases where old or new
12620 value is needed afterwards.
12621 (expand_omp_atomic): Call expand_omp_atomic_load resp.
12622 expand_omp_atomic_store.
12623 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
12624 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
12625 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
12626 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12627 * tree-nested.c (convert_nonlocal_omp_clauses,
12628 convert_local_omp_clauses): Likewise.
12629 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
12630 OMP_ATOMIC_CAPTURE_NEW): New.
12631 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
12632 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
12633 New inlines.
12634 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
12635 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
12636 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
12637
9b80d091
KT
126382011-08-02 Kai Tietz <ktietz@redhat.com>
12639
12640 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
12641 boolean-type.
12642 (ssa_forward_propagate_and_combine): Interprete result of
12643 forward_propagate_comparison.
12644 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
12645 boolean-typed operands for comparisons.
12646
7ea56b23 126472011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 12648
7ea56b23
GJL
12649 * config/avr/libgcc.S: Gather related function in the
12650 same input section.
276e0224 12651 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
12652 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
12653 references.
12654 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
12655 __udivmodsi4, __divmodsi4, __prologue_saves__,
12656 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
12657 __do_copy_data, __do_clear_bss, __do_global_ctors,
12658 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
12659
643e867f
UB
126602011-08-02 Uros Bizjak <ubizjak@gmail.com>
12661
12662 PR target/47766
12663 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
12664 (stack_protect_test): The pattern compares ptr_mode value.
12665
390fa588
AM
126662011-08-02 Alan Modra <amodra@gmail.com>
12667
12668 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
12669 note for save_LR_around_toc_setup sequence.
12670
d4be16f6
L
126712011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12672
643e867f 12673 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 12674
3c67fd9c
SP
126752011-08-01 Sebastian Pop <sebastian.pop@amd.com>
12676 Joseph Myers <joseph@codesourcery.com>
12677
12678 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
12679 * hwint.c: Include diagnostic-core.h.
12680 (abs_hwi): New.
12681 (gcd): Moved here...
12682 (pos_mul_hwi): New.
12683 (mul_hwi): New.
12684 (least_common_multiple): Moved here...
12685 * hwint.h (gcd): ... from here.
12686 (least_common_multiple): ... from here.
12687 (HOST_WIDE_INT_MIN): New.
12688 (HOST_WIDE_INT_MAX): New.
12689 (abs_hwi): Declared.
12690 (gcd): Declared.
12691 (pos_mul_hwi): Declared.
12692 (mul_hwi): Declared.
12693 (least_common_multiple): Declared.
12694 * omega.c (check_pos_mul): Removed.
12695 (check_mul): Removed.
12696 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
12697 mul_hwi instead of check_mul.
12698
172c08a5
RH
126992011-08-01 Richard Henderson <rth@redhat.com>
12700
12701 PR target/49881
12702 * config/avr/avr.h (PUSH_ROUNDING): New.
12703 * config/avr/avr.md (pushqi1): Rename from *pushqi.
12704 (*pushhi, *pushsi, *pushsf): Remove.
12705 (MPUSH): New mode iterator.
12706 (push<MPUSH>1): New expander.
12707
0d5e496f
AS
127082011-08-01 Anatoly Sokolov <aesok@post.ru>
12709
12710 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
12711 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
12712 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
12713 mmix_preferred_output_reload_class): Remove.
12714 * config/mmix/mmix.c (mmix_preferred_reload_class,
12715 mmix_preferred_output_reload_class): Make static. Change rclass
12716 argument and return type to reg_class_t.
12717 (TARGET_PREFERRED_RELOAD_CLASS,
12718 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12719
a44250f4
JR
127202011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
12721
12722 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
12723 handling.
12724
efd7630c
L
127252011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12726
12727 PR target/47766
12728 * config/i386/i386.md (PTR): New.
12729 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
12730 (stack_protect_test): Likewise.
12731 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
12732 (stack_tls_protect_set_<mode>): Likewise.
12733 (stack_tls_protect_test_<mode>): Likewise.
12734
03acddfe
UB
127352011-08-01 Uros Bizjak <ubizjak@gmail.com>
12736
12737 PR target/49927
12738 * config/i386/i386.c (ix86_address_subreg_operand): New.
12739 (ix86_decompose_address): Use ix86_address_subreg_operand.
12740 (ix86_legitimate_address_p): Do not assert that subregs satisfy
12741 register_no_elim_operand in DImode.
12742
67f2d54f
IR
127432011-08-01 Ira Rosen <ira.rosen@linaro.org>
12744
12745 PR tree-optimization/49926
12746 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
12747 in a chain doesn't have uses both inside and outside the loop.
12748
f2c308fa 127492011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 12750
f2c308fa
GJL
12751 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
12752 * config/avr/avr-devices.c (avr_mcu_types): Use it.
12753 * config/avr/avr-mcus.def (AVR_MCU): Use it.
12754 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
12755 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
12756 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
12757 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
12758 to detect if XJMP must not be skipped.
12759
bd15e32c
AM
127602011-08-02 Alan Modra <amodra@gmail.com>
12761
03acddfe
UB
12762 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
12763 Delete.
bd15e32c
AM
12764 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
12765 (rs6000_emit_prologue): Don't prematurely return when
12766 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
12767 save_toc_in_prologue case.
12768 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
12769 calls_alloca.
12770
d80de9e1 127712011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 12772
d80de9e1
GJL
12773 * config/avr/avr-devices.c: Delete SVN property svn:executable.
12774 * config/avr/predicates.md: Ditto.
12775 * config/avr/driver-avr.c: Ditto.
12776 * config/avr/genopt.sh: Set SVN property svn:executable to *.
12777
ee222ce0
L
127782011-08-01 H.J. Lu <hongjiu.lu@intel.com>
12779
12780 * calls.c (emit_library_call_value_1): Declare size only if
12781 BLOCK_REG_PADDING is defined.
12782
5fcafa60
KY
127832011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
12784
12785 PR target/49547
03acddfe 12786 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
12787 (x86_64-*-*): Likewise.
12788 * config/i386/i386.opt (mlzcnt): New.
12789 * config/i386/abmintrin.h: File removed.
12790 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 12791 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
12792 (__lzcnt): Rename to ...
12793 (__lzcnt32): ... this.
12794 * config/i386/bmiintrin.h (head): Update copyright year.
12795 (__lzcnt_u16): Removed.
12796 (__lzcnt_u32): Likewise.
12797 (__lzcnt_u64): Likewise.
12798 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
12799 is defined, remove abmintrin.h.
12800 * config/i386/cpuid.h (bit_LZCNT): New.
12801 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12802 LZCNT feature.
12803 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12804 __LZCNT__ if needed.
12805 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
12806 (ix86_option_override_internal): Handle LZCNT option.
12807 (ix86_valid_target_attribute_inner_p): Likewise.
12808 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
12809 * config/i386/i386.h (TARGET_LZCNT): New.
12810 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
12811 * config/i386/i386.md (clz<mode>2): Update insn constraint.
12812 (clz<mode>2_lzcnt): Likewise.
12813 * doc/invoke.texi: Mention -mlzcnt option.
12814 * doc/extend.texi: Likewise.
12815
655b30bf
JB
128162011-08-01 Julian Brown <julian@codesourcery.com>
12817
12818 * configure.ac (fixed-point): Add ARM support.
12819 * configure: Regenerate.
12820 * config/arm/arm.c (arm_fixed_mode_set): New struct.
12821 (arm_set_fixed_optab_libfunc): New.
12822 (arm_set_fixed_conv_libfunc): New.
12823 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
12824 ARM-specific names.
12825 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
12826 return values in SImode.
12827 (arm_return_in_msb): Return fixed-point types in the msb.
12828 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
12829 upwards.
12830 (arm_scalar_mode_supported_p): Support fixed-point modes.
12831 (arm_vector_mode_supported_p): Support vector fixed-point modes.
12832 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
12833 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
12834 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
12835 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
12836 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
12837 New mode iterators.
12838 (qaddsub_suf): New mode attribute.
12839 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
12840 vector modes.
12841 * config/arm/predicates.md (sat_shift_operator): New predicate.
12842 * config/arm/arm-fixed.md: New.
12843 * config/arm/arm.md: Include arm-fixed.md.
12844 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
12845
460b171d
JB
128462011-08-01 Julian Brown <julian@codesourcery.com>
12847
12848 * calls.c (emit_library_call_value_1): Support padding for libcall
12849 arguments and return values.
12850 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
12851 downwards in big-endian mode.
12852
b6193c94
RO
128532011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12854
12855 PR debug/49887
12856 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
12857 * config/sol2-protos.h: Likewise.
12858 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
12859 solaris_code_end.
12860 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
12861 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
12862 solaris_file_end.
12863 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
12864
0747aae4
JB
128652011-08-01 Julian Brown <julian@codesourcery.com>
12866
12867 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
12868
848fac28
JB
128692011-08-01 Julian Brown <julian@codesourcery.com>
12870
12871 * final.c (output_addr_const): Print fixed-point constants as
12872 decimal not hex.
12873
e62a2b6e
RG
128742011-08-01 Richard Guenther <rguenther@suse.de>
12875
12876 * stor-layout.c (initialize_sizetypes): Properly sign-extend
12877 bitsiztype TYPE_MAX_VALUE.
12878
f64398b5
JB
128792011-08-01 Julian Brown <julian@codesourcery.com>
12880
12881 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
12882 comparison helpers.
12883
c469244e
RH
128842011-07-31 Richard Henderson <rth@redhat.com>
12885
12886 * config/h8300/crti.asm: Add flags to .section directive.
12887 * config/h8300/crtn.asm: Likewise.
12888
b87ac615
RH
128892011-07-31 Richard Henderson <rth@redhat.com>
12890
12891 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
12892 * tree.c (build_common_tree_nodes): Likewise.
12893
05eb5cc3
KK
128942011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
12895
12896 PR target/49880
12897 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
12898 (divsi3_i1): Likewise.
12899
a3059635
BS
129002011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12901
12902 PR tree-optimization/49749
12903 * tree-ssa-reassoc.c (get_rank): New forward declaration.
12904 (PHI_LOOP_BIAS): New macro.
12905 (phi_rank): New function.
12906 (loop_carried_phi): Likewise.
12907 (propagate_rank): Likewise.
12908 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 12909
3ee7be4c
L
129102011-07-31 H.J. Lu <hongjiu.lu@intel.com>
12911
12912 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
12913 of TARGET_64BIT.
12914 (PTRDIFF_TYPE): Likewise.
12915
deb1f617
UB
129162011-07-31 Uros Bizjak <ubizjak@gmail.com>
12917
12918 PR target/49920
12919 * config/i386/i386.md (strset): Do not expand strset_singleop
12920 when %eax or $edi are fixed.
12921 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
12922 (*strsetsi_1): Ditto.
12923 (*strsethi_1): Ditto.
12924 (*strsetqi_1): Ditto.
12925 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
12926 (*rep_stossi): Ditto.
12927 (*rep_stosqi): Ditto.
03acddfe 12928 (*strlenqi_1): Ditto.
deb1f617
UB
12929 (cmpstrnsi): Also fail when %ecx is fixed.
12930 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
12931 (*cmpstrnqi_1): Ditto.
deb1f617
UB
12932 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
12933 (*strmovsi_1): Ditto.
12934 (*strmovhi_1): Ditto.
12935 (*strmovqi_1): Ditto.
12936 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
12937 (*rep_movsi): Ditto.
12938 (*rep_movqi): Ditto.
12939
03e69b12
MP
129402011-07-31 Mikael Pettersson <mikpe@it.uu.se>
12941
12942 PR target/47908
12943 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
12944 Disable instruction scheduling for non-ColdFire targets.
12945 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12946
dcaac07d
RE
129472011-07-31 Revital Eres <revital.eres@linaro.org>
12948
12949 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
12950 of anti-dep edge from a branch.
12951 (add_cross_iteration_register_deps): Create anti-dep edge from
12952 a branch.
12953
413e50a2
RE
129542011-07-31 Revital Eres <revital.eres@linaro.org>
12955
12956 * modulo-sched.c: Change comment.
12957 (reset_sched_times): Fix print message.
12958 (print_partial_schedule): Add print info.
12959
f047e518
TV
129602011-07-31 Tom de Vries <tom@codesourcery.com>
12961
12962 PR middle-end/43513
12963 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
12964 get_object_alignment and TYPE_ALIGN.
12965
b3421a06
TV
129662011-07-30 Tom de Vries <tom@codesourcery.com>
12967
12968 PR middle-end/43513
12969 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
12970 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
12971
cc822cc1
RO
129722011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12973
12974 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
12975 <sys/sbd.h>.
12976 (cpu_types): New array.
12977 (cputype): New function.
12978 (host_detect_local_cpu): Only define buf, f if !__sgi__.
12979 Use scaninvent instead of /proc/cpuinfo if __sgi__.
12980 * config.host: Also use driver-native.o, mips/x-native on
12981 mips-sgi-irix*.
deb1f617 12982 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
12983 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
12984 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
12985
25142650
JJ
129862011-07-29 Jakub Jelinek <jakub@redhat.com>
12987
12988 PR middle-end/49897
12989 PR middle-end/49898
12990 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
12991 in nested parallel and outer is a gimple_reg, mark it as addressable
12992 and set its bit in task_shared_vars bitmap too.
12993
89840058
UB
129942011-07-29 Uros Bizjak <ubizjak@gmail.com>
12995
12996 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
12997
d2da41f5
RO
129982011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12999
13000 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
13001 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
13002 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
13003 AMASK_LOCKPFTCHOK): Define.
13004 (host_detect_local_cpu): Remove buf, f, cpu_names.
13005 Define cpu_types, implver, amask.
13006 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
13007 native CPU.
13008 * config.host: Also use driver-alpha.o, alpha/x-alpha on
13009 alpha*-dec-osf*.
13010 * config/alpha/osf5.h [__alpha__ || __alpha]
13011 (host_detect_local_cpu): Declare.
13012 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
13013 (DRIVER_SELF_SPECS): Define.
13014
dadecee2
UB
130152011-07-29 Uros Bizjak <ubizjak@gmail.com>
13016
13017 PR target/47715
13018 * config/i386/i386.md (*load_tp_x32): New.
13019 (*load_tp_x32_zext): Ditto.
13020 (*add_tp_x32): Ditto.
13021 (*add_tp_x32_zext): Ditto.
13022 (*load_tp_<mode>): Disable for TARGET_X32 targets.
13023 (*add_tp_<mode>): Ditto.
13024 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
13025 ptr_mode and convert to Pmode if needed.
13026
db7ccee2 130272011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 13028
db7ccee2
GJL
13029 PR target/49687
13030 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
13031 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
13032 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
13033 Add X to register footprint: Clobber r26/r27.
13034
96d03496
RG
130352011-07-29 Richard Guenther <rguenther@suse.de>
13036
13037 * builtins.c (fold_builtin_signbit): Build the comparison
13038 with a proper type.
13039
64fb0d3a
RG
130402011-07-29 Richard Guenther <rguenther@suse.de>
13041
13042 PR tree-optimization/49893
13043 * tree-predcom.c (suitable_reference_p): Volatile references
13044 are not suitable.
13045
6130646b 130462011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 13047
6130646b
GJL
13048 PR target/49313
13049 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13050 (__ctzsi2): Result for 0 may be undefined.
13051 (__ctzhi2): Result for 0 may be undefined.
13052 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13053 (__popcountsi2): Ditto. And don't clobber r26.
13054 (__popcountdi2): Ditto. And don't clobber r27.
13055 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13056 (parityhi2): New expand.
13057 (paritysi2): New expand.
13058 (popcounthi2): New expand.
13059 (popcountsi2): New expand.
13060 (clzhi2): New expand.
13061 (clzsi2): New expand.
13062 (ctzhi2): New expand.
13063 (ctzsi2): New expand.
13064 (ffshi2): New expand.
13065 (ffssi2): New expand.
13066 (copysignsf3): New insn.
13067 (bswapsi2): New expand.
13068 (*parityhi2.libgcc): New insn.
13069 (*parityqihi2.libgcc): New insn.
13070 (*paritysihi2.libgcc): New insn.
13071 (*popcounthi2.libgcc): New insn.
13072 (*popcountsi2.libgcc): New insn.
13073 (*popcountqi2.libgcc): New insn.
13074 (*popcountqihi2.libgcc): New insn-and-split.
13075 (*clzhi2.libgcc): New insn.
13076 (*clzsihi2.libgcc): New insn.
13077 (*ctzhi2.libgcc): New insn.
13078 (*ctzsihi2.libgcc): New insn.
13079 (*ffshi2.libgcc): New insn.
13080 (*ffssihi2.libgcc): New insn.
13081 (*bswapsi2.libgcc): New insn.
13082
a9b332d4
RG
130832011-07-29 Richard Guenther <rguenther@suse.de>
13084
13085 * tree-vrp.c (get_value_range): Only set parameter default
13086 definitions to varying, leave others at undefined.
13087 (extract_range_from_binary_expr): Fix undefined handling.
13088 (vrp_visit_phi_node): Handle merged undefined state.
13089
154516d9
WG
130902011-07-29 Wei Guozhi <carrot@google.com>
13091
13092 PR rtl-optimization/49799
13093 * combine.c (make_compound_operation): Check if the bit field is valid
13094 before change it to bit field extraction.
13095
e40a0b69
BS
130962011-07-29 Bernd Schmidt <bernds@codesourcery.com>
13097
13098 PR rtl-optimization/49891
13099 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
13100 newly created returnjumps.
13101
13a23442
DD
131022011-07-28 DJ Delorie <dj@redhat.com>
13103
69135c94
DD
13104 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
13105 local frame in a naked function, and produce a suitable error for
13106 that specific case.
13107
13a23442
DD
13108 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
13109 registers to be reloaded in HI classes when the target is HI.
13110
6c6c79a9
SP
131112011-07-28 Sebastian Pop <sebastian.pop@amd.com>
13112
13113 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
13114 bound_one, bound_two.
13115
0c43dbaf
SP
131162011-07-28 Sebastian Pop <sebastian.pop@amd.com>
13117
13118 PR middle-end/48648
13119 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
13120 CLAST assignments.
13121 (translate_clast): Same.
13122 (translate_clast_assignment): New.
13123
60cf26cc
SP
131242011-07-28 Sebastian Pop <sebastian.pop@amd.com>
13125
13126 PR tree-optimization/49876
13127 * sese.c (rename_uses): Do not return false on gloog_error: set
13128 the new_expr to integer_zero_node and continue code generation.
13129 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
13130
4fe249e7
JJ
131312011-07-28 Jakub Jelinek <jakub@redhat.com>
13132
13133 PR debug/49846
13134 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
13135 arguments also check if they aren't initialized with a MODE_INT
13136 mode of the same size.
13137
86f98641
AH
131382011-07-28 Aldy Hernandez <aldyh@redhat.com>
13139
13140 * expr.c (get_bit_range): Handle *MEM_REF's.
13141
dc0ff1c8
BS
131422011-07-28 Bernd Schmidt <bernds@codesourcery.com>
13143
13144 * rtlanal.c (tablejump_p): False for returns.
13145 * reorg.c (first_active_target_insn): New static function.
13146 (find_end_label): Set JUMP_LABEL for a new returnjump.
13147 (optimize_skip, get_jump_flags, rare_destination,
13148 mostly_true_jump, get_branch_condition,
13149 steal_delay_list_from_target, own_thread_p,
13150 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
13151 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
13152 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
13153 * jump.c (delete_related_insns): Likewise.
13154 (jump_to_label_p): New function.
13155 (redirect_target): New static function.
13156 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
13157 (redirect_jump_1): Assert that the new label is nonnull.
13158 (redirect_jump): Likewise.
13159 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
13160 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
13161 exit block.
13162 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
13163 changed. Ensure that the right label is passed to redirect_jump.
13164 * function.c (emit_return_into_block,
13165 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
13166 ret_rtx in their JUMP_LABEL.
13167 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
13168 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
13169 pass ret_rtx as label.
13170 * cfglayout.c (fixup_reorder_chain): Use
13171 force_nonfallthru_and_redirect rather than force_nonfallthru.
13172 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
13173 * rtl.h (ANY_RETURN_P): New macro.
13174 (jump_to_label_p): Declare.
13175 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
13176 JUMP_LABELs.
13177 (mark_target_live_regs): Likewise.
13178 * basic-block.h (force_nonfallthru_and_redirect): Declare.
13179 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
13180 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
13181 alpha_tablejump_best_label): Remove functions.
13182 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
13183 alpha_tablejump_best_label): Remove declarations.
13184 * config/sh/sh.c (barrier_align, split_branches): Adjust for
13185 ret_rtx in JUMP_LABELs.
13186 * config/arm/arm.c (is_jump_table): Likewise.
13187
a2e49bb2
UB
131882011-07-28 Uros Bizjak <ubizjak@gmail.com>
13189
13190 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
13191 special predicate. Remove explicit mode checks.
13192
64153cce
JJ
131932011-07-28 Jakub Jelinek <jakub@redhat.com>
13194
a2e49bb2
UB
13195 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
13196 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 13197
64153cce
JJ
13198 PR debug/49871
13199 * dwarf2out.c (size_of_die, value_format, output_die): Use
13200 DW_FORM_udata instead of DW_FORM_data[48] for
13201 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
13202
0465f4f8
L
132032011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13204
844bf05b
UB
13205 * config/i386/i386.md (*tls_global_dynamic_64): Update
13206 length attribute.
0465f4f8 13207
f51c4a8a
UB
132082011-07-28 Uros Bizjak <ubizjak@gmail.com>
13209
13210 PR target/47715
13211 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
13212 tls_symbolic_operand check. Update code sequence for TARGET_X32.
13213 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
13214 (tls_dynamic_gnu2_64): Ditto.
13215 (*tls_dynamic_gnu2_lea_64): Ditto.
13216 (*tls_dynamic_gnu2_call_64): Ditto.
13217 (*tls_dynamic_gnu2_combine_64): Ditto.
13218
5e9627ca
L
132192011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13220
13221 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
13222
40b9321d
L
132232011-07-28 H.J. Lu <hongjiu.lu@intel.com>
13224
13225 PR target/47364
13226 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
13227
95f89bb3
RR
132282011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13229
13230 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
13231 before the core constraints. Adjust attributes.
a2e49bb2 13232 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 13233
98958241
KT
132342011-07-28 Kai Tietz <ktietz@redhat.com>
13235
f51c4a8a 13236 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
13237 (simplify_truth_ops_using_ranges): Likewise.
13238 (build_assert_expr_for): Likewise.
13239 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
13240 and handle BIT_NOT_EXPR for truth-operation.
13241
f627fef2 132422011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 13243
f627fef2
GJL
13244 PR target/49313
13245 Undo r176835 from trunk
13246 2011-07-27 Georg-Johann Lay
13247
296799ba 132482011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 13249
296799ba
GJL
13250 PR target/49687
13251 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
13252 Add _muluhisi3, _mulshisi3, _usmulhisi3.
13253 * config/avr/libgcc.S (__mulsi3): Rewrite.
13254 (__mulhisi3): Rewrite.
13255 (__umulhisi3): Rewrite.
13256 (__usmulhisi3): New.
13257 (__muluhisi3): New.
13258 (__mulshisi3): New.
13259 (__mulohisi3): New.
13260 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
13261 declare.
13262 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
13263 (pseudo_register_or_const_int_operand): New.
13264 (combine_pseudo_register_operand): New.
13265 (u16_operand): New.
13266 (s16_operand): New.
13267 (o16_operand): New.
13268 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
13269 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
13270 (any_extend, any_extend2): New code iterators.
13271 (extend_prefix): New code attribute.
13272 (mulsi3): Rewrite. Turn insn to expander.
13273 (mulhisi3): Ditto.
13274 (umulhisi3): Ditto.
13275 (usmulhisi3): New expander.
13276 (*mulsi3): New insn-and-split.
13277 (mulu<mode>si3): New insn-and-split.
13278 (muls<mode>si3): New insn-and-split.
13279 (mulohisi3): New insn-and-split.
13280 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
13281 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
13282 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
13283 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
13284 insn-and-split.
13285 (*mulsi3_call): Rewrite.
13286 (*mulhisi3_call): Rewrite.
13287 (*umulhisi3_call): Rewrite.
13288 (*usmulhisi3_call): New insn.
13289 (*muluhisi3_call): New insn.
13290 (*mulshisi3_call): New insn.
13291 (*mulohisi3_call): New insn.
13292 (extendqihi2): Use combine_pseudo_register_operand as predicate
13293 for operand 1.
13294 (extendqisi2): Ditto.
13295 (zero_extendqihi2): Ditto.
13296 (zero_extendqisi2): Ditto.
13297 (zero_extendhisi2): Ditto.
13298 (extendhisi2): Ditto. Don't early-clobber operand 0.
13299
d8fa1b73
UB
133002011-07-28 Uros Bizjak <ubizjak@gmail.com>
13301
13302 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
13303
3689198d
SP
133042011-07-27 Sebastian Pop <sebastian.pop@amd.com>
13305
13306 PR tree-optimization/49471
13307 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
13308 iv only when the largest type is unsigned. Do not call
13309 lang_hooks.types.type_for_size.
13310
27165edd
SP
133112011-07-27 Sebastian Pop <sebastian.pop@amd.com>
13312
13313 PR middle-end/45450
13314 * graphite-poly.c (apply_poly_transforms): Disable legality check
13315 after an openscop read.
13316
bd4a54da
SP
133172011-07-27 Sebastian Pop <sebastian.pop@amd.com>
13318
13319 PR middle-end/47691
13320 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
13321 copy_bb_and_scalar_dependences.
13322 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
13323 (graphite_copy_stmts_from_block): Update call to rename_uses.
13324 (copy_bb_and_scalar_dependences): Update call to
13325 graphite_copy_stmts_from_block.
13326 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
13327
04c9ea12 133282011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 13329
04c9ea12
GJL
13330 PR target/49313
13331 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
13332 (__ctzsi2): Result for 0 may be undefined.
13333 (__ctzhi2): Result for 0 may be undefined.
13334 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
13335 (__popcountsi2): Ditto. And don't clobber r26.
13336 (__popcountdi2): Ditto. And don't clobber r27.
13337 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
13338 (parityhi2): New expand.
13339 (paritysi2): New expand.
13340 (popcounthi2): New expand.
13341 (popcountsi2): New expand.
13342 (clzhi2): New expand.
13343 (clzsi2): New expand.
13344 (ctzhi2): New expand.
13345 (ctzsi2): New expand.
13346 (ffshi2): New expand.
13347 (ffssi2): New expand.
13348 (copysignsf3): New insn.
13349 (bswapsi2): New expand.
13350 (*parityhi2.libgcc): New insn.
13351 (*parityqihi2.libgcc): New insn.
13352 (*paritysihi2.libgcc): New insn.
13353 (*popcounthi2.libgcc): New insn.
13354 (*popcountsi2.libgcc): New insn.
13355 (*popcountqi2.libgcc): New insn.
13356 (*popcountqihi2.libgcc): New insn-and-split.
13357 (*clzhi2.libgcc): New insn.
13358 (*clzsihi2.libgcc): New insn.
13359 (*ctzhi2.libgcc): New insn.
13360 (*ctzsihi2.libgcc): New insn.
13361 (*ffshi2.libgcc): New insn.
13362 (*ffssihi2.libgcc): New insn.
13363 (*bswapsi2.libgcc): New insn.
13364
479a4921
UB
133652011-07-27 Uros Bizjak <ubizjak@gmail.com>
13366
13367 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
13368 the mode of symbolic_opreand RTXes.
13369
7aecd4e8
UB
133702011-07-27 Uros Bizjak <ubizjak@gmail.com>
13371
a2e49bb2
UB
13372 * config/i386/predicates.md (x86_64_movabs_operand): Return false
13373 for pic_32bit_operand RTXes.
7aecd4e8
UB
13374 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
13375 in DImode.
13376
eb9820c0
KT
133772011-07-27 Kai Tietz <ktietz@redhat.com>
13378
2fe83a0c
KT
13379 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
13380 for 32-bit, too.
13381 (ix86_handle_abi_attribute): Allow function attributes
13382 ms_abi/sysv_abi in 32-bit mode, too.
13383 * doc/extend.texi: Adjust attribute documentation.
13384
eb9820c0
KT
13385 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
13386 expression handling.
13387 (and_var_with_comparison_1): Likewise.
13388
1169e45d
AH
133892011-07-27 Aldy Hernandez <aldyh@redhat.com>
13390
13391 * params.h (ALLOW_STORE_DATA_RACES): New.
13392 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
13393 * Makefile.in (expr.o): Depend on PARAMS_H.
13394 * machmode.h (get_best_mode): Add argument.
13395 * fold-const.c (optimize_bit_field_compare): Add argument to
13396 get_best_mode.
13397 (fold_truthop): Same.
13398 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
13399 * expr.c (emit_group_store): Same.
13400 (copy_blkmode_from_reg): Same.
13401 (write_complex_part): Same.
13402 (optimize_bitfield_assignment_op): Add argument.
13403 Add argument to get_best_mode.
13404 (get_bit_range): New.
7aecd4e8 13405 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 13406 (store_field): New argument.
7aecd4e8 13407 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
13408 * expr.h (store_bit_field): New argument.
13409 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
13410 into account maxbits.
13411 * calls.c (store_unaligned_arguments_into_pseudos): New argument
13412 to store_bit_field.
13413 * expmed.c (store_bit_field_1): New argument. Use it.
13414 (store_bit_field): Same.
13415 (store_fixed_bit_field): Same.
13416 (store_split_bit_field): Same.
13417 (extract_bit_field_1): Pass new argument to get_best_mode.
13418 (extract_bit_field): Same.
13419 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
13420 * doc/invoke.texi: Document parameter allow-store-data-races.
13421
7bbdd4e9
JJ
134222011-07-27 Jakub Jelinek <jakub@redhat.com>
13423
7aecd4e8 13424 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 13425
aebf4828
KT
134262011-07-27 Kai Tietz <ktietz@redhat.com>
13427
13428 * tree-vrp.c (extract_range_from_binary_expr): Remove
13429 TRUTH-binary cases and add new bitwise-cases.
13430 (extract_range_from_assignment): Likewise.
13431 (register_edge_assert_for_1): Likeiwise.
13432 (register_edge_assert_for): Likewise.
13433 (simplify_truth_ops_using_ranges): Likewise.
13434 (simplify_stmt_using_ranges): Likewise.
13435
65ceed36
L
134362011-07-26 H.J. Lu <hongjiu.lu@intel.com>
13437
13438 PR target/47372
13439 * config/i386/i386.c (ix86_delegitimize_address): Call
13440 simplify_gen_subreg for PIC with mode of x only if modes of
13441 x and orig_x are different.
13442
b56bc05b
JJ
134432011-07-26 Jakub Jelinek <jakub@redhat.com>
13444
13445 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
13446 to GC allocated copy of the string.
13447 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
13448 before .debug_line, not after it.
13449
bce26def
SP
134502011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13451
13452 PR middle-end/47046
13453 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
13454 evolution_function_is_affine_p on CHREC_RIGHT.
13455
5f72e02d
SP
134562011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13457
13458 * tree-data-ref.c (max_stmt_executions_tree): Do not call
13459 lang_hooks.types.type_for_size.
13460
cbc1994b
SP
134612011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13462
13463 PR middle-end/47653
13464 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
13465 loops using wrapping semantics.
13466
4c7d6755
SP
134672011-07-26 Sebastian Pop <sebastian.pop@amd.com>
13468
13469 PR middle-end/48805
13470 * tree-scalar-evolution.c (instantiate_scev_r): Return
13471 chrec_dont_know for ADDR_EXPR.
13472
e207e41f
UB
134732011-07-26 Uros Bizjak <ubizjak@gmail.com>
13474 H.J. Lu <hongjiu.lu@intel.com>
13475
13476 PR target/47369
13477 PR target/49853
13478 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
13479 if legitimize_tls_address returned operand in wrong mode. Allow
13480 SImode and DImode symbolic operand for PIC. Call convert_to_mode
13481 if legitimize_pic_address returned operand in wrong mode.
13482
842eeb9b
MJ
134832011-07-26 Martin Jambor <mjambor@suse.cz>
13484
13485 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
13486 return false for invariants.
13487
98d2c0ad
UB
134882011-07-26 Uros Bizjak <ubizjak@gmail.com>
13489
13490 * config/i386/i386.md (add->lea splitter): Implement using SWI
13491 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
13492 (add->lea zext splitter): Change operand 2 predicate to
13493 x86_64_nonmemory_operand.
13494
c21510a9
RG
134952011-07-26 Richard Guenther <rguenther@suse.de>
13496
13497 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
13498 frequency makes everything hot.
13499
9f61fd17
RG
135002011-07-26 Richard Guenther <rguenther@suse.de>
13501
13502 PR tree-optimization/49840
13503 * tree-vrp.c (range_fits_type_p): Properly handle full
13504 double-int precision.
13505
5bf3d50d
MJ
135062011-07-26 Martin Jambor <mjambor@suse.cz>
13507
13508 PR bootstrap/49786
13509 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
13510 counts.
13511 (update_specialized_profile): Likewise.
13512
536e3f49
UB
135132011-07-26 Uros Bizjak <ubizjak@gmail.com>
13514 H.J. Lu <hongjiu.lu@intel.com>
13515
13516 PR target/47381
13517 PR target/49832
13518 PR target/49833
13519 * config/i386/i386.md (i): Change SImode attribute to "e".
13520 (g): Change SImode attribute to "rme".
13521 (di): Change SImode attribute to "nF".
13522 (general_operand): Change SImode attribute to x86_64_general_operand.
13523 (general_szext_operand): Change SImode attribute to
13524 x86_64_szext_general_operand.
13525 (immediate_operand): Change SImode attribute to
13526 x86_64_immediate_operand.
13527 (nonmemory_operand): Change SImode attribute to
13528 x86_64_nonmemory_operand.
13529 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
13530 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
13531 (*lea_1): Use SWI48 mode iterator.
13532 (*lea_1_zext): New insn pattern.
13533 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
13534 (*bt<mode>): Ditto.
13535 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
13536 Update operand constraints.
13537 (addsi_1_zext): Ditto.
13538 (*add<mode>2): Ditto.
13539 (*addsi_3_zext): Ditto.
13540 (*subsi_1_zext): Ditto.
13541 (*subsi_2_zext): Ditto.
13542 (*subsi_3_zext): Ditto.
13543 (*addsi3_carry_zext): Ditto.
13544 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
13545 (*mulsi3_1_zext): Ditto.
13546 (*andsi_1): Ditto.
13547 (*andsi_1_zext): Ditto.
13548 (*andsi_2_zext): Ditto.
13549 (*<any_or:code>si_1_zext): Ditto.
13550 (*<any_or:code>si_2_zext): Ditto.
13551 (*test<mode>_1): Use <general_operand> predicate for operand 1.
13552 (*and<mode>_2): Ditto.
13553 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
13554 (add->lea splitter): Check operand modes in insn constraint. Extend
13555 operands less than SImode wide to SImode.
13556 (add->lea zext splitter): Do not extend input operands to DImode.
13557 (*lea_general_1): Handle only QImode and HImode operands.
13558 (*lea_general_2): Ditto.
13559 (*lea_general_3): Ditto.
13560 (*lea_general_1_zext): Remove.
13561 (*lea_general_2_zext): Ditto.
13562 (*lea_general_3_zext): Ditto.
13563 (*lea_general_4): Check operand modes in insn constraint. Extend
13564 operands less than SImode wide to SImode.
13565 (ashift->lea splitter): Ditto.
13566 * config/i386/i386.c (ix86_print_operand_address): Print address
13567 registers with 'q' modifier on 64bit targets.
13568 * config/i386/predicates.md (pic_32bit_opreand): Define as special
13569 predicate. Reject non-SI and non-DI modes.
13570
0de204de
AP
135712011-07-25 Andrew Pinski <apinski@cavium.com>
13572
13573 PR tree-opt/49671
13574 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
13575 TREE_THIS_NOTRAP into the inner most MEM_REF.
13576 Always copy TREE_THIS_VOLATILE.
13577 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
13578 arguments are not volatile references.
13579
104fcc7a
RH
135802011-07-25 Richard Henderson <rth@redhat.com>
13581
13582 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
13583 * final.c (final_scan_insn): Don't test for it.
13584 (rest_of_clean_state): Likewise.
13585
c24a6738
RH
135862011-07-25 Richard Henderson <rth@redhat.com>
13587
13588 PR debug/49841
13589 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
13590 (emit_frame_save): Likewise.
13591 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
13592 insn onto a dummy blockage insn after the join label.
13593
200e10dc
RH
135942011-07-25 Richard Henderson <rth@redhat.com>
13595
13596 * dwarf2cfi.c (dw_trace_info): Add ID member.
13597 (get_trace_index): Remove. Change users to use ID member.
13598 (before_next_cfi_note): New.
13599 (connect_traces): Remove unreachable traces before the main loop.
13600 Look across one trace and generate remember/restore_state if needed.
13601
a5d0ce89
RH
136022011-07-25 Richard Henderson <rth@redhat.com>
13603
13604 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
13605
c344a866
JR
136062011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
13607
13608 * genattr.c (write_upcase, gen_attr <enum definition writing>):
13609 Move to ...
13610 * genattr-common.c ... here.
13611 (main): Call gen_attr.
13612 * optc-gen.awk: Make generated program include insn-attr-common.h .
13613 * Makefile.in (oprions.o): Depend on insn-attr-common.h
13614
4645179e
AS
136152011-07-25 Anatoly Sokolov <aesok@post.ru>
13616
13617 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13618 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13619 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
13620 m32c_print_operand, m32c_print_operand_address): Remove.
13621 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
13622 Change return type to bool. Change argument type to bool.
13623 (m32c_print_operand, m32c_print_operand_address): Make static.
13624 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13625 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13626
8175c19c
RO
136272011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13628
13629 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
13630 attributes): Document mmap.
13631
5057fa13
AS
136322011-07-25 Anatoly Sokolov <aesok@post.ru>
13633
13634 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13635 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
13636 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
13637 mmix_print_operand, mmix_print_operand_address): Remove.
13638 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
13639 Change return type to bool. Change argument type to bool.
13640 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 13641 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
13642 to const_rtx.
13643 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
13644 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13645
f4da258f 136462011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 13647
f4da258f
GJL
13648 PR target/39386
13649 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
13650 shift counter for x << x and x >> x shifts.
13651
1500b428
RO
136522011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13653
13654 PR target/47124
13655 * config.gcc: Reject *-*-solaris2 configuration.
13656
59daeef4
RS
136572011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
13658
13659 PR tree-optimization/49809
13660 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
13661 gimple_get_lhs instead of gimple_assign_lhs.
13662
4d1c7421
RO
136632011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13664
13665 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
13666
7fdab8d4
RG
136672011-07-25 Richard Guenther <rguenther@suse.de>
13668
13669 PR tree-optimization/49822
13670 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
13671 more. Make sure to preserve stmts with side-effects. Properly
13672 handle virtual defs, follow a longer def chain.
13673
1baae426
RG
136742011-07-22 Romain Geissler <romain.geissler@gmail.com>
13675
13676 PR plugins/45348
13677 PR plugins/48425
13678 PR plugins/46577
13679 * Makefile.in: Do not flatten c-family directory when installing
13680 plugin headers.
13681
264b47b0
EB
136822011-07-25 Eric Botcazou <ebotcazou@adacore.com>
13683
13684 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
13685 original nodes if we are dealing with virtual clones.
13686
3d02ae65
BS
136872011-07-25 Bernd Schmidt <bernds@codesourcery.com>
13688
13689 * common/config/c6x/c6x-common.c: New file.
13690
2eaa698b
RZ
136912011-07-25 Roman Zhuykov <zhroma@ispras.ru>
13692
13693 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
13694
ebeadd91
RG
136952011-07-25 Richard Guenther <rguenther@suse.de>
13696
13697 PR tree-optimization/49715
13698 * tree-vrp.c: Include expr.h and optabs.h.
13699 (range_fits_type_): New function.
13700 (simplify_float_conversion_using_ranges): Likewise.
13701 (simplify_stmt_using_ranges): Call it.
13702 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
13703 * optabs.c (can_float_p): Export.
13704 * optabs.h (can_float_p): Declare.
13705
d9256277
RG
137062011-07-25 Richard Guenther <rguenther@suse.de>
13707
13708 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
13709 (get_value_range): For out-of-range SSA names or names created
13710 after propagation return a read-only varying range.
13711 (dump_all_value_ranges): Adjust.
13712 (vrp_initialize): Likewise.
13713 (vrp_finalize): Likewise.
13714
149e741d
RH
137152011-07-24 Richard Henderson <rth@redhat.com>
13716
13717 PR debug/49831
13718 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
13719 them entirely.
13720
981dc735
RH
137212011-07-24 Richard Henderson <rth@redhat.com>
13722
13723 PR debug/49825
13724 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
13725 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
13726
3382318a
RH
137272011-07-24 Richard Henderson <rth@redhat.com>
13728
13729 PR debug/49827
13730 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
13731
2f23f97a
RH
137322011-07-24 Richard Henderson <rth@redhat.com>
13733
13734 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
13735 Zero args_size for abnormal edges. Adjust all callers.
13736
2edb462e
RH
137372011-07-24 Richard Henderson <rth@redhat.com>
13738
13739 PR debug/49825
13740 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
13741
96d5384b
L
137422011-07-24 H.J. Lu <hongjiu.lu@intel.com>
13743
13744 PR bootstrap/49835
13745 * collect2.c (demangle_flag): Removed.
13746
df45fc34
SL
137472011-07-24 Sandra Loosemore <sandra@codesourcery.com>
13748
13749 * configure.ac (demangler_in_ld): Default to yes.
13750 * configure: Regenerated.
13751 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
13752 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
13753 --no-demangle options straight through to ld. When
13754 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
13755 way that has the intended effect on Windows.
13756
829bdd4b
RH
137572011-07-23 Richard Henderson <rth@redhat.com>
13758
13759 * dwarf2cfi.c: Include basic-block.h.
13760 (dw_label_info): Remove.
13761 (trace_work_list, trace_index): New.
13762 (remember_row, emit_cfa_remember): Remove.
13763 (dw_trace_info_hash, dw_trace_info_eq): New.
13764 (get_trace_index, get_trace_info): New.
13765 (save_point_p): New.
13766 (free_cfi_row): Remove.
13767 (add_cfi): Do not emit DW_CFA_remember_state.
13768 (cfa_row_equal_p): New.
13769 (barrier_args_size): Remove.
13770 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
13771 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
13772 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
13773 (dwarf2out_cfi_begin_epilogue): Remove.
13774 (dwarf2out_frame_debug_restore_state): Remove.
13775 (connect_traces, create_pseudo_cfg): New.
13776 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
13777 * Makefile.in (dwarf2cfi.o): Update.
13778
43215a89
RH
137792011-07-23 Richard Henderson <rth@redhat.com>
13780
13781 * dwarf2cfi.c (dw_trace_info): New.
13782 (dw_label_info): New.
13783 (cie_return_save): New.
13784 (cur_trace): New.
13785 (queued_args_size): Rename from args_size. Update all users.
13786 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
13787 (def_cfa_1): Use cur_trace instead of cfa_*.
13788 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
13789 (clobbers_queued_reg_save, reg_saved_in): Likewise.
13790 (dwarf2out_frame_debug_expr): Likewise.
13791 (create_cie_data): Split out from ...
13792 (execute_dwarf2_frame): ... here. Initialize cur_trace.
13793
6ffc63e1
RH
137942011-07-23 Richard Henderson <rth@redhat.com>
13795
13796 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
13797 Update all users to match.
13798 (execute_dwarf2_frame): Free reg_saved_in_data.
13799
999646c1
RH
138002011-07-23 Richard Henderson <rth@redhat.com>
13801
13802 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
13803 (queued_reg_saves): Don't GTY. Change to a VEC.
13804 (queue_reg_save): Update to match.
13805 (dwarf2out_flush_queued_reg_saves): Likewise.
13806 (clobbers_queued_reg_save): Likewise.
13807 (reg_saved_in): Likewise.
13808 (execute_dwarf2_frame): Free queued_reg_saves.
13809
ce363ef2
RH
138102011-07-23 Richard Henderson <rth@redhat.com>
13811
13812 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
13813
57e16c96
RH
138142011-07-23 Richard Henderson <rth@redhat.com>
13815
13816 * dwarf2cfi.c (add_cfi_args_size): Split out from...
13817 (dwarf2out_args_size): ... here.
13818 (add_cfi_restore): Split out from ...
13819 (dwarf2out_frame_debug_cfa_restore): ... here.
13820 (def_cfa_0): Split out from ...
13821 (def_cfa_1): ... here.
13822 (cfi_oprnd_equal_p, cfi_equal_p): New.
13823 (change_cfi_row): New.
13824 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
13825 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
13826 (output_cfis): Remove.
13827 * dwarf2out.c (output_fde): Simplify output_cfi loop.
13828 (dwarf2out_switch_text_section): Don't call output_cfis.
13829 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
13830 * dwarf2out.h: Update decls.
13831 (enum dw_val_class): Add dw_val_class_none.
13832
f1a0e830
RH
138332011-07-23 Richard Henderson <rth@redhat.com>
13834
13835 * dwarf2cfi.c (update_row_reg_save): New.
13836 (dwarf2out_frame_debug_cfa_expression): Use it.
13837 (dwarf2out_frame_debug_cfa_restore): Likewise.
13838 (reg_save): Likewise. Do not emit DW_CFA_same_value.
13839
141618e2
RH
138402011-07-23 Richard Henderson <rth@redhat.com>
13841
13842 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
13843
f17d3401
RH
138442011-07-23 Richard Henderson <rth@redhat.com>
13845
13846 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
13847 (cie_cfi_row): New.
13848 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
13849 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
13850 (cur_row, remember_row): New.
13851 (def_cfa_1): Use cur_row instead of the old_* variables.
13852 (dwarf2out_frame_debug_restore_state): Similarly.
13853 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
13854 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
13855 (dwarf2out_frame_debug_adjust_cfa): Likewise.
13856 (dwarf2out_frame_debug_cfa_offset): Likewise.
13857 (dwarf2out_frame_debug_expr): Likewise.
13858 (execute_dwarf2_frame): Set up cur_row.
13859 * dwarf2out.h (struct cfa_loc): Mark for GTY.
13860
0be7e7a6
RH
138612011-07-23 Richard Henderson <rth@redhat.com>
13862
13863 * basic-block.h (EDGE_PRESERVE): New.
13864 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
13865 * bb-reorder.c: Include except.h.
13866 (fix_up_crossing_landing_pad): New.
536e3f49 13867 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
13868 landing pads in the right partition. Duplicate as necessary.
13869 (partition_hot_cold_basic_blocks): Fix up DF info after
13870 duplicating landing pads.
13871 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
13872 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
13873 is set properly. Validate that EH edges are not CROSSING.
13874 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
13875 (dw2_build_landing_pads): ... here.
13876 (convert_to_eh_region_ranges): Remove code to fixup crossing
13877 landing pads.
13878 * except.h (expand_dw2_landing_pad_for_region): Declare.
13879 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
13880
e0170551
RE
138812011-07-23 Richard Earnshaw <rearnsha@arm.com>
13882
13883 PR target/49816
13884 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
13885
15c2ccba
JM
138862011-07-22 Jason Merrill <jason@redhat.com>
13887
13888 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
13889
295331a4
RH
138902011-07-22 Richard Henderson <rth@redhat.com>
13891
13892 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
13893
5f93b30a
RH
138942011-07-22 Richard Henderson <rth@redhat.com>
13895
13896 * jump.c (maybe_propagate_label_ref): Split out of...
13897 (mark_all_labels): ... here. Do not attempt label_ref
13898 propagation while in cfglayout mode.
13899
e967adf4
JJ
139002011-07-22 Jakub Jelinek <jakub@redhat.com>
13901
520cda8c
JJ
13902 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
13903 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
13904 (dwarf_attr_name): Handle DW_AT_GNU_macros.
13905 (dwarf2out_define): If the vector is empty and
13906 lineno is 0, emit a dummy entry first.
13907 (dwarf2out_undef): Likewise. Remove redundant semicolon.
13908 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
13909 optimize_macinfo_range): New functions.
13910 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
13911 mergeable, optimize longer strings using
13912 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
13913 optimize longer sequences of define/undef ops from headers
13914 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
13915 emit a section headers.
13916 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
13917 and macinfo_section_label to DEBUG_MACRO_SECTION
13918 resp. DEBUG_MACRO_SECTION_LABEL.
13919 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
13920 instead of DW_AT_macro_info.
13921
e967adf4
JJ
13922 PR other/32998
13923 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
13924 options.
13925 * dwarf2out.c: Include opts.h.
13926 (dchar_p): New typedef. Define heap VEC for it.
13927 (producer_string): New variable.
13928 (gen_producer_string): New function.
13929 (gen_compile_unit_die): Use it.
536e3f49 13930 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
13931 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
13932 * doc/invoke.texi: Document -grecord-gcc-switches and
13933 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
13934 to -frecord-gcc-switches description.
13935
3a636414
JM
139362011-07-22 Jason Merrill <jason@redhat.com>
13937
13938 PR c++/30112
13939 * c-decl.c (c_linkage_bindings): Define.
13940
8b9b2275
EB
139412011-07-22 Eric Botcazou <ebotcazou@adacore.com>
13942
13943 PR debug/49815
13944 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
13945
3de69514
L
139462011-07-22 H.J. Lu <hongjiu.lu@intel.com>
13947
13948 * config/i386/i386.c (ix86_option_override_internal): Disallow
13949 MS ABI in x32 mode.
13950 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
13951 only for TARGET_LP64.
536e3f49 13952 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 13953
49f6f4f7 139542011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
13955
13956 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
13957 avoid warnings when GCC is built with a C++ compiler.
13958
b75d1e21
MJ
139592011-07-22 Martin Jambor <mjambor@suse.cz>
13960
13961 PR lto/49796
13962 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 13963 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 13964
63708bf5
UB
139652011-07-22 Uros Bizjak <ubizjak@gmail.com>
13966
e3c666fd 13967 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
13968 default_gnu_indirect_function to yes.
13969
27315aa6
RG
139702011-07-22 Richard Guenther <rguenther@suse.de>
13971
13972 PR tree-optimization/45819
13973 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
13974 preserve volatile and notrap flags.
13975
5b6d595b
RO
139762011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13977 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13978
13979 PR bootstrap/49794
13980 * configure.ac: Test AM_ICONV with CXX.
13981 * configure: Regenerate.
13982 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
13983
7e2fe488
RO
139842011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13985
13986 PR bootstrap/49797
13987 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
13988 (set_cloog_options): Use it.
13989
d423df48
JJ
139902011-07-22 Jakub Jelinek <jakub@redhat.com>
13991
13992 PR c++/49756
13993 * gcc.c (main): Call stack_limit_increase (64MB).
13994 * toplev.c (toplev_main): Likewise.
13995
7fd72c6f
L
139962011-07-21 H.J. Lu <hongjiu.lu@intel.com>
13997
13998 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
13999 instead of force_reg.
14000
96f0b772
L
140012011-07-21 H.J. Lu <hongjiu.lu@intel.com>
14002
14003 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
14004 needed and use force_reg after convert.
14005 (ix86_expand_call): Likewise.
14006 (ix86_expand_special_args_builtin): Likewise.
14007 (ix86_expand_builtin): Likewise.
14008
ef74e2ba
SP
140092011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14010
14011 PR middle-end/47654
14012 PR middle-end/49649
14013 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
14014 in parameter. Initialize v1 and v2 based on the values returned
14015 by clast_name_to_lb_ub.
14016 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
14017 values.
14018 (type_for_clast_bin): Same.
14019 (type_for_clast_expr): Same.
14020 (type_for_clast_eq): Update calls to type_for_clast_expr.
14021 (type_for_clast_for): Same.
14022 (build_iv_mapping): Same.
14023 * graphite-ppl.h (value_min): New.
14024
84f2ffea
SP
140252011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14026
14027 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
14028 types whenever possible.
14029
3d9784cb
SP
140302011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14031
14032 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
14033 and ub fields.
14034 (new_clast_name_index): Add lb and ub parameters.
14035 (free_clast_name_index): New.
14036 (clast_name_to_lb_ub): New.
14037 (save_clast_name_index): Add lb and ub parameters.
14038 (compute_bounds_for_param): New.
14039 (type_for_level): Removed.
14040 (type_for_clast_for): Removed level parameter. Do not call
14041 type_for_level.
14042 (graphite_create_new_loop): Store the lb and ub for the clast_name
14043 of the iterator of the loop that has been generated.
14044 (graphite_create_new_loop_guard): Remove parameter level.
14045 (create_params_index): Store the lb and ub of each parameter.
14046 (gloog): Use free_clast_name_index. Pass to create_params_index
14047 the current scop.
14048
12b30e6d
SP
140492011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14050
14051 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
14052 (max_precision_type): Inline max_signed_precision_type.
14053 (type_for_clast_red): Use max_precision_type.
14054 (type_for_clast_bin): Same.
14055 (type_for_clast_for): Same.
14056
0cdd9dcf
SP
140572011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14058
14059 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
14060 type_for_interval.
14061 (gcc_type_for_value): Renamed type_for_value.
14062 (gcc_type_for_clast_term): Renamed type_for_clast_term.
14063 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
14064 (gcc_type_for_clast_red): Renamed type_for_clast_red.
14065 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
14066 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
14067 (graphite_translate_clast_equation): Update calls.
14068 (compute_type_for_level): Renamed type_for_level.
14069 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
14070 (build_iv_mapping): Update calls.
14071 (graphite_create_new_loop_guard): Same.
14072
8aab43a0
SP
140732011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14074
14075 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
14076 comment.
14077
cf7eab7d
SP
140782011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14079
14080 * graphite-clast-to-gimple.c (struct ivs_params): New.
14081 (clast_name_to_gcc): Use ivs_params to pass around parameters.
14082 (clast_to_gcc_expression): Same.
14083 (clast_to_gcc_expression_red): Same.
14084 (gcc_type_for_clast_term): Same.
14085 (gcc_type_for_clast_expr): Same.
14086 (gcc_type_for_clast_red): Same.
14087 (gcc_type_for_clast_bin): Same.
14088 (gcc_type_for_clast_eq): Same.
14089 (graphite_translate_clast_equation): Same.
14090 (graphite_create_guard_cond_expr): Same.
14091 (graphite_create_new_guard): Same.
14092 (graphite_create_new_loop): Same.
14093 (build_iv_mapping): Same.
14094 (translate_clast_user): Same.
14095 (graphite_create_new_loop_guard): Same.
14096 (translate_clast): Same.
14097 (translate_clast_for_loop): Same.
14098 (translate_clast_for): Same.
14099 (translate_clast_guard): Same.
14100 (initialize_cloog_names): Fix typo.
14101 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
14102
7b1e9596
SP
141032011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14104
14105 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
14106 (new_clast_name_index): Add level parameter.
14107 (clast_name_to_level): New.
14108 (save_clast_name_index): Add level parameter.
14109 (newivs_to_depth_to_newiv): Removed.
14110 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
14111 (graphite_create_new_loop): Add level parameter. Pass level to
14112 save_clast_name_index.
14113 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
14114 (create_params_index): Pass level to save_clast_name_index.
14115
6e6568db
SP
141162011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14117
14118 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
14119 recompute type, lb, and ub. Get them from...
14120 (graphite_create_new_loop_guard): ...here. Pass in parameter
14121 pointers to type, lb, and ub.
14122 (translate_clast_for_loop): Update function calls.
14123 (translate_clast_for): Same.
14124
dff62090
SP
141252011-07-21 Sebastian Pop <sebastian.pop@amd.com>
14126
14127 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
14128 psct_dynamic_dim.
14129 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
14130 (gcc_type_for_iv_of_clast_loop): Update use of level.
14131 (gloog): Start counting nesting level from 0.
14132 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
14133 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
14134 psct_dynamic_dim on level.
14135
628c1ac9
L
141362011-07-21 H.J. Lu <hongjiu.lu@intel.com>
14137
14138 * config/i386/i386.c (ix86_legitimize_address): Convert to
14139 Pmode if needed.
14140
08a8923e
L
141412011-07-21 H.J. Lu <hongjiu.lu@intel.com>
14142
14143 * config/i386/i386.c (function_value_64): Always return pointers
14144 in Pmode.
14145 (ix86_promote_function_mode): New.
14146 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
14147
777a4e9a
BS
141482011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14149
14150 PR tree-optimization/49749
14151 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
14152 remove no-longer-used maxrank variable.
63708bf5 14153
e9514725 141542011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 14155
e9514725
GJL
14156 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
14157
9ca1483b
JM
141582011-07-21 Jason Merrill <jason@redhat.com>
14159
14160 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
14161 * recog.h (struct insn_data_d): Check it instead of
14162 HAVE_DESIGNATED_INITIALIZERS.
14163 * genoutput.c (output_insn_data): Likewise.
14164
3ceaf2f5
RG
141652011-07-21 Richard Guenther <rguenther@suse.de>
14166
14167 PR tree-optimization/49770
14168 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
14169 valueized any operand. Renamed from ...
14170 (valueize_refs): ... this. New wrapper around valueize_refs_1.
14171 (valueize_shared_reference_ops_from_ref): Return whether we
14172 valueized any operand.
14173 (vn_reference_lookup): Only when we valueized any operand
14174 use the valueized reference for alias analysis. Do not preserve
14175 the original reference tree in this case.
14176
7c53a140
UB
141772011-07-21 Uros Bizjak <ubizjak@gmail.com>
14178
14179 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 14180 register operands and subregs of DImode hard registers in index.
7c53a140 14181
7f3ff782
KT
141822011-07-21 Kai Tietz <ktietz@redhat.com>
14183
14184 * fold-const.c (fold_unary_loc): Preserve indirect
14185 comparison cast to none-boolean type.
14186 * tree-ssa.c (useless_type_conversion_p): Preserve cast
14187 from/to boolean-type.
7c53a140
UB
14188 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
14189 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
14190 * tree-cfg.c (verify_gimple_comparison): Check result
14191 type of comparison expression.
7c53a140
UB
14192 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
14193 of condition result and disallow type-cast sinking into comparison.
7f3ff782 14194
91bc6112
RG
141952011-07-21 Richard Guenther <rguenther@suse.de>
14196
14197 * tree-ssa-forwprop.c (combine_conversions): Return whether
14198 we have to run cfg-cleanup. Properly remove dead stmts.
14199 (ssa_forward_propagate_and_combine): Adjust.
14200
d6f23738
RS
142012011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
14202
14203 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
14204
fec3cad3
KT
142052011-07-21 Kai Tietz <ktietz@redhat.com>
14206
14207 * tree-ssa-propagate.c (substitute_and_fold): Use
14208 do_dce flag to deside, if BB's statements are scanned
14209 in last to first, or first to last order.
14210
21f3ae2f 142112011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 14212
21f3ae2f
GJL
14213 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
14214
6025b127
L
142152011-07-20 H.J. Lu <hongjiu.lu@intel.com>
14216 Uros Bizjak <ubizjak@gmail.com>
14217 Richard Henderson <rth@redhat.com>
14218
14219 * config/i386/constraints.md (w): New.
14220
14221 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
14222 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
14223
14224 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
14225 instead of TARGET_64BIT.
14226
14227 * config/i386/i386.md (indirect_jump): Replace
14228 nonimmediate_operand with indirect_branch_operand.
14229 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
14230 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
14231 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
14232 (*tablejump_1): Replace nonimmediate_operand with
14233 indirect_branch_operand. Replace constraint "m" with "w".
14234 (*call_vzeroupper): Replace constraint "m" with "w".
14235 (*call): Likewise.
14236 (*call_rex64_ms_sysv_vzeroupper): Likewise.
14237 (*call_rex64_ms_sysv): Likewise.
14238 (*call_value_vzeroupper): Likewise.
14239 (*call_value): Likewise.
14240 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
14241 (*call_value_rex64_ms_sysv): Likewise.
a4235495 14242 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
14243
14244 * config/i386/predicates.md (indirect_branch_operand): New.
14245 (call_insn_operand): Support x32.
14246
7f8925a1
ME
142472011-07-20 Michael Eager <eager@eagercon.com>
14248
14249 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
14250
510a442a
RH
142512011-07-20 Richard Henderson <rth@redhat.com>
14252
14253 * cfg.c (dump_bb_info): Dump basic_block->flags.
14254 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
14255
00b40d0d
UB
142562011-07-20 Uros Bizjak <ubizjak@gmail.com>
14257
14258 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14259 of DImode hard registers in index.
14260 (ix86_legitimate_address_p): Allow subregs of base and index to span
14261 more than a word. Assert that subregs of base and index satisfy
14262 register_no_elim_operand predicates. Reject addresses where
14263 base and index have different modes.
14264
87f53554
RM
142652011-07-20 Robert Millan <rmh@gnu.org>
14266
14267 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
14268
742f29ab
UW
142692011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14270
14271 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
14272 removing now-unnecessary assignment.
14273
d05f3564
UW
142742011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14275
14276 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
14277 memory address space to the type's address space.
14278
8c352fa8 142792011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 14280
8c352fa8
GJL
14281 PR target/36467
14282 PR target/49687
00b40d0d
UB
14283 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
14284 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
14285 (usmulqihi3): New insn.
14286 (*sumulqihi3): New insn.
14287 (*osmulqihi3): New insn.
14288 (*oumulqihi3): New insn.
14289 (*muluqihi3.uconst): New insn_and_split.
14290 (*muluqihi3.sconst): New insn_and_split.
14291 (*mulsqihi3.sconst): New insn_and_split.
14292 (*mulsqihi3.uconst): New insn_and_split.
14293 (*mulsqihi3.oconst): New insn_and_split.
14294 (*ashifthi3.signx.const): New insn_and_split.
14295 (*ashifthi3.signx.const7): New insn_and_split.
14296 (*ashifthi3.zerox.const): New insn_and_split.
14297 (mulsqihi3): New insn.
14298 (muluqihi3): New insn.
14299 (muloqihi3): New insn.
14300 * config/avr/predicates.md (const_2_to_7_operand): New.
14301 (const_2_to_6_operand): New.
14302 (u8_operand): New.
14303 (s8_operand): New.
14304 (o8_operand): New.
14305 (s9_operand): New.
14306 (register_or_s9_operand): New.
14307
be31603a
KT
143082011-07-20 Kai Tietz <ktietz@redhat.com>
14309
14310 * builtins.c (fold_builtin_expect): See through the cast
14311 from truthvalue_type_node to long.
14312
c36193c6
MM
143132011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
14314
14315 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
14316 where we can use them from the standard and altivec instruction
14317 sets, instead of always using the 3 operand VSX forms that require
14318 the destination to overlap one of the inputs.
14319 (vsx_fms*): Ditto.
14320 (vsx_fnma*): Ditto.
14321 (vsx_fnms*): Ditto.
14322
14323 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
14324 for DF types.
14325 (fmsdf4_fpr): Ditto.
14326 (nfmadf4_fpr): Ditto.
14327 (nfmsdf4_fpr): Ditto.
14328
02aec184
SL
143292011-07-20 Sandra Loosemore <sandra@codesourcery.com>
14330
14331 * genrecog.c (make_insn_sequence): Correct position numbering
14332 when filtering out match_scratch and match_dup.
14333
f8ecf734
RG
143342011-07-20 Richard Guenther <rguenther@suse.de>
14335
14336 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
14337 against already removed statements.
14338 (forward_propagate_into_comparison): Remove dead defining stmts.
14339 (forward_propagate_into_gimple_cond): Likewise.
14340 (forward_propagate_into_cond): Simplify.
14341 (ssa_forward_propagate_and_combine): Handle changed cfg from
14342 forward_propagate_into_comparison.
14343 * tree-ssa-phiopt.c (conditional_replacement): Use proper
14344 locations for newly built statements.
14345
73451ae7
GJL
143462011-07-20 Georg-Johann Lay <avr@gjlay.de>
14347
14348 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
14349
c4100a35
AK
143502011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14351
14352 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
14353 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
14354
dca412a1
RG
143552011-07-20 Richard Guenther <rguenther@suse.de>
14356
14357 PR middle-end/18908
14358 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
14359 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
14360 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
14361
73d7e266
VM
143622011-07-20 Vladimir Makarov <vmakarov@redhat.com>
14363
14364 * config/frv/frv.c (frv_register_move_cost): Define explicitly
14365 costs for subclasses of GR_REGS.
14366
5e27a6d4
UB
143672011-07-20 Uros Bizjak <ubizjak@gmail.com>
14368
14369 PR target/49780
14370 * config/i386/predicates.md (no_seg_addres_operand): No more special.
14371 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14372 of DImode hard registers in base.
14373 (ix86_legitimate_address_p): Allow SImode and DImode base and index
14374 registers.
14375
74d8fa44
RG
143762011-07-20 Richard Guenther <rguenther@suse.de>
14377
5e27a6d4 14378 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
14379 (unify_nodes): Deal with that.
14380 (solve_graph): Likewise.
14381
b0e43da8
CLT
143822011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
14383
14384 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
14385 canonicalize left operand from ZERO_EXTEND to AND.
14386
a8c44c52
AS
143872011-07-20 Anatoly Sokolov <aesok@post.ru>
14388
14389 * target.def (class_max_nregs): New hook.
14390 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
14391 * doc/tm.texi: Regenerate.
14392 * targhooks.c (default_class_max_nregs): New function.
14393 * targhooks.h (default_class_max_nregs): Declare.
14394 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
14395 x_ira_reg_class_min_nregs arrays to unsigned char.
14396 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
14397 hook instead of CLASS_MAX_NREGS macro.
14398 * reginfo.c (restore_register_info): Ditto.
14399 * ira-conflicts.c (process_regs_for_copy): Use
14400 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14401 Change type rclass and aclass vars to reg_class_t.
14402 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
14403 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
14404 reg_class_t.
14405 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
14406 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
14407
14408 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
14409 * config/i386/i386.c (ix86_class_max_nregs): New function.
14410 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
14411 instead of CLASS_MAX_NREGS macro.
14412 (TARGET_CLASS_MAX_NREGS): Define.
14413 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
14414 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
14415 * config/avr/avr.c (class_max_nregs): Remove function.
14416 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
14417 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
14418 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
14419 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
14420 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
14421 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
14422 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
14423 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
14424 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
14425 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
14426 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
14427 * config/score/score.h (CLASS_MAX_NREGS): Remove.
14428 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
14429 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
14430 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
14431
fd811f03
EB
144322011-07-19 Eric Botcazou <ebotcazou@adacore.com>
14433
14434 * cif-code.def (OVERWRITABLE): Fix typo and move around.
14435 (TARGET_OPTIMIZATION_MISMATCH): Delete.
14436 (EH_PERSONALITY): Fix typo.
14437 (NON_CALL_EXCEPTIONS): Fix message.
14438 (OPTIMIZATION_MISMATCH): Adjust message.
14439 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
14440
78767fd9
ILT
144412011-07-19 Ian Lance Taylor <iant@google.com>
14442
14443 * doc/install.texi (Configuration): Document
14444 --enable-build-poststage1-with-cxx.
14445
0baeec1b
RM
144462011-07-19 Robert Millan <rmh@gnu.org>
14447
14448 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
14449 (GLIBC_DYNAMIC_LINKER): Remove.
14450
14451 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
14452 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14453 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14454 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
14455 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
14456 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
14457
14458 * config/mips/linux.h: Remove everything except for ...
14459 (GLIBC_DYNAMIC_LINKER): ... this macro.
14460
14461 * config/mips/linux64.h: Remove everything except for ...
14462 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
14463 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
14464 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
14465 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
14466 (GNU_USER_LINK_EMULATIONN32): New macros.
14467
5e27a6d4
UB
14468 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
14469 Use the new headers.
0baeec1b 14470
754c3d5d
RS
144712011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14472
14473 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
14474 Add offset_known_p and size_known_p fields.
14475 (MEM_OFFSET_KNOWN_P): Update accordingly.
14476 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
14477 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
14478 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
14479 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
14480 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
14481 (init_emit_regs): Likewise.
14482
527210c4
RS
144832011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14484
14485 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
14486 (MEM_OFFSET): Change from returning an rtx to returning a
14487 HOST_WIDE_INT.
14488 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
14489 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
14490 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14491 (clear_mem_offset): Declare.
14492 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
14493 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
14494 MEM_OFFSET to get a HOST_WIDE_INT offset.
14495 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
14496 (adjust_offset_for_component_ref): Take a bool "known_p"
14497 parameter and a HOST_WIDE_INT "offset" parameter.
14498 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
14499 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
14500 than an rtx. Use clear_mem_offset to clear the offset.
14501 * cfgcleanup.c (merge_memattrs): Likewise.
14502 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
14503 * function.c (assign_parm_find_stack_rtl): Likewise.
14504 (assign_parm_setup_stack): Likewise.
14505 * print-rtl.c (print_rtx): Likewise.
14506 * reload.c (find_reloads_subreg_address): Likewise.
14507 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
14508 * var-tracking.c (INT_MEM_OFFSET): Likewise.
14509 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14510 (get_mem_align_offset): Likewise.
14511 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
14512 (clear_mem_offset): New function.
14513 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
14514 offset rather than an rtx. Assume both the expressio and offset
14515 are available.
14516 (r10k_needs_protection_p_1): Update accordingly, checking the
14517 expression and offset availability here instead.
14518
f5541398
RS
145192011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14520
14521 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
14522 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
14523 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
14524 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
14525 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14526 (clear_mem_size): Declare.
14527 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
14528 (clear_mem_size): New function.
14529 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
14530 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
14531 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
14532 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
14533 to clear the size.
14534 (nonoverlapping_memrefs_p): Likewise.
14535 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
14536 (expand_builtin_init_trampoline): Likewise.
14537 * calls.c (compute_argument_addresses): Likewise.
14538 * cfgcleanup.c (merge_memattrs): Likewise.
14539 * dce.c (find_call_stack_args): Likewise.
14540 * dse.c (record_store, scan_insn): Likewise.
14541 * dwarf2out.c (dw_sra_loc_expr): Likewise.
14542 * expr.c (emit_block_move_hints): Likewise.
14543 * function.c (assign_parm_find_stack_rtl): Likewise.
14544 * print-rtl.c (print_rtx): Likewise.
14545 * reload.c (find_reloads_subreg_address): Likewise.
14546 * rtlanal.c (may_trap_p_1): Likewise.
14547 * var-tracking.c (track_expr_p): Likewise.
14548 * varasm.c (assemble_trampoline_template): Likewise.
14549 * config/arm/arm.c (arm_print_operand): Likewise.
14550 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
14551 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
14552 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
14553 (expand_constant_setmem_prologue): Likewise.
14554 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
14555 * config/rs6000/rs6000.c (expand_block_move): Likewise.
14556 (adjacent_mem_locations): Likewise.
14557 * config/s390/s390.c (s390_expand_setmem): Likewise.
14558 (s390_expand_insv): Likewise.
14559 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
14560 (*extendqi<mode>2_short_displ): Likewise.
14561 * config/sh/sh.c (expand_block_move): Likewise.
14562 * config/sh/sh.md (extv, extzv): Likewise.
14563
f12144dd
RS
145642011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14565
14566 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
14567 (mem_attrs_htab_eq): ...here.
14568 (find_mem_attrs): Replace with...
14569 (set_mem_attrs): ...this function. Take a mem_attrs structure
14570 rather than individual fields.
14571 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14572 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14573 (set_mem_size, change_address, adjust_address_1, offset_address)
14574 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14575 Update accordingly.
14576
1c3f523e
RS
145772011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14578
14579 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
14580 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
14581 Provide a dummy definition of MEM_ADDR_SPACE for generators.
14582 (target_rtl): Add x_mode_mem_attrs.
14583 (mode_mem_attrs): New macro.
14584 (get_mem_attrs): New function.
14585 * emit-rtl.c (get_mem_attrs): Rename to...
14586 (find_mem_attrs): ...this.
14587 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
14588 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
14589 (set_mem_size, change_address, adjust_address_1, offset_address)
14590 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
14591 Update accordingly.
14592 (init_emit_regs): Initialize mode_mem_attrs.
14593
3046b1a9
RG
145942011-07-19 Richard Guenther <rguenther@suse.de>
14595
14596 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
14597 TRUTH_*_EXPR handling.
14598 * tree-ssa-operands.c (get_expr_operands): Likewise.
14599 * tree-ssa-pre.c (fully_constant_expression): Likewise.
14600 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
14601 Likewise.
14602 (is_and_or_or): Likewise.
14603 (is_norm_cond_subset_of): Likewise.
14604
5d49b6a7
RG
146052011-07-19 Richard Guenther <rguenther@suse.de>
14606
14607 * tree.h (fold_build_pointer_plus_loc): New helper function.
14608 (fold_build_pointer_plus_hwi_loc): Likewise.
14609 (fold_build_pointer_plus): Define.
14610 (fold_build_pointer_plus_hwi): Likewise.
14611 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
14612 (fold_builtin_memory_op): Likewise.
14613 (fold_builtin_stpcpy): Likewise.
14614 (fold_builtin_memchr): Likewise.
14615 (fold_builtin_strstr): Likewise.
14616 (fold_builtin_strchr): Likewise.
14617 (fold_builtin_strrchr): Likewise.
14618 (fold_builtin_strpbrk): Likewise.
14619 (fold_builtin_strcat): Likewise.
14620 (expand_builtin_memory_chk): Likewise.
14621 (fold_builtin_memory_chk): Likewise.
14622 * c-typeck.c (build_unary_op): Likewise.
14623 * cgraphunit.c (thunk_adjust): Likewise.
14624 * fold-const.c (build_range_check): Likewise.
14625 (fold_binary_loc): Likewise.
14626 * omp-low.c (extract_omp_for_data): Likewise.
14627 (expand_omp_for_generic): Likewise.
14628 (expand_omp_for_static_nochunk): Likewise.
14629 (expand_omp_for_static_chunk): Likewise.
14630 * tree-affine.c (add_elt_to_tree): Likewise.
14631 * tree-data-ref.c (split_constant_offset_1): Likewise.
14632 * tree-loop-distribution.c (generate_memset_zero): Likewise.
14633 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
14634 * tree-predcom.c (ref_at_iteration): Likewise.
14635 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14636 (add_to_parts): Likewise.
14637 (create_mem_ref): Likewise.
14638 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
14639 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
14640 (number_of_iterations_le): Likewise.
14641 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
14642 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
14643 (vect_create_addr_base_for_vector_ref): Likewise.
14644 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
14645 (vect_create_cond_for_alias_checks): Likewise.
14646 * tree-vrp.c (extract_range_from_assert): Likewise.
14647 * config/alpha/alpha.c (alpha_va_start): Likewise.
14648 (alpha_gimplify_va_arg_1): Likewise.
14649 * config/i386/i386.c (ix86_va_start): Likewise.
14650 (ix86_gimplify_va_arg): Likewise.
14651 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14652 * config/mep/mep.c (mep_expand_va_start): Likewise.
14653 (mep_gimplify_va_arg_expr): Likewise.
14654 * config/mips/mips.c (mips_va_start): Likewise.
14655 (mips_gimplify_va_arg_expr): Likewise.
14656 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14657 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
14658 (rs6000_gimplify_va_arg): Likewise.
14659 * config/s390/s390.c (s390_va_start): Likewise.
14660 (s390_gimplify_va_arg): Likewise.
14661 * config/sh/sh.c (sh_va_start): Likewise.
14662 (sh_gimplify_va_arg_expr): Likewise.
14663 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
14664 * config/spu/spu.c (spu_va_start): Likewise.
14665 (spu_gimplify_va_arg_expr): Likewise.
14666 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14667 Likewise.
14668 (xstormy16_gimplify_va_arg_expr): Likewise.
14669 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
14670 (xtensa_gimplify_va_arg_expr): Likewise.
14671
d906fd7f
RG
146722011-07-19 Richard Guenther <rguenther@suse.de>
14673
14674 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
14675 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
14676 handling.
14677
14678 PR middle-end/18908
14679 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
14680 result of BIT_*_EXPR to bitfield precision.
14681
1b14d815
RS
146822011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
14683
14684 PR tree-optimization/49742
14685 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
14686 as a potential write.
14687
d906fd7f
RG
146882011-07-19 Richard Guenther <rguenther@suse.de>
14689
14690 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
14691 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
14692 (forward_propagate_comparison): Simplify, remove obsolete code.
14693
53020648
RG
146942011-07-19 Richard Guenther <rguenther@suse.de>
14695
14696 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
14697 BIT_XOR_EXPR, same as the RTL expander does.
14698 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
14699 (verify_gimple_assign_unary): Likewise.
14700 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
14701 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
14702 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
14703
b8b2b009
JJ
147042011-07-19 Jakub Jelinek <jakub@redhat.com>
14705
14706 PR tree-optimization/49768
14707 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
14708 if offset is smaller than bitoffset, but offset+size is bigger
14709 than bitoffset.
14710
338f655d
IR
147112011-07-19 Ira Rosen <ira.rosen@linaro.org>
14712
14713 PR tree-optimization/49771
14714 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
14715 zero step, set segment length to the size of the data-ref's type.
14716
310bc633
MJ
147172011-07-18 Martin Jambor <mjambor@suse.cz>
14718
14719 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
14720 comments.
14721 (ipcp_values_pool): Declare.
14722 (ipcp_sources_pool): Likewise.
14723 (ipcp_lattice): Changed to forward declaration.
14724 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
14725 cannot_devirtualize.
14726 (ipa_node_params): New fields descriptors, lattices, known_vals,
14727 clone_for_all_contexts and node dead, removed fields params and
14728 count_scale.
14729 (ipa_set_param_count): Removed.
14730 (ipa_get_param_count): Made to work with descriptors vector.
14731 (ipa_get_param): Updated.
14732 (ipa_param_cannot_devirtualize_p): Removed.
14733 (ipa_param_types_vec_empty): Likewise.
14734 (ipa_set_param_used): New function.
14735 (ipa_get_param_used): Updated to use descriptors vector.
14736 (ipa_func_list): Removed.
14737 (ipa_init_func_list): Removed declaration.
14738 (ipa_push_func_to_list_1): Likewise.
14739 (ipa_pop_func_from_list): Likewise.
14740 (ipa_push_func_to_list): Removed.
14741 (ipa_lattice_from_jfunc): Remove declaration.
14742 (ipa_get_jf_pass_through_result): Declare.
14743 (ipa_get_jf_ancestor_result): Likewise.
14744 (ipa_value_from_jfunc): Likewise.
14745 (ipa_get_lattice): Update.
14746 (ipa_lat_is_single_const): New function.
14747 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
14748 (ipa_init_func_list): Likewise.
14749 (ipa_pop_func_from_list): Likewise.
14750 (ipa_get_param_decl_index): Fix coding style.
14751 (count_formal_params): Removed.
14752 (count_formal_params_1): Renamed to count_formal_params.
14753 (ipa_populate_param_decls): Update to use descriptors vector.
14754 (ipa_initialize_node_params): Likewise.
14755 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
14756 (ipa_analyze_params_uses): Likewise.
14757 (ipa_free_node_params_substructures): Likewise and free also lattices
14758 and known values.
14759 (duplicate_array): Removed.
14760 (ipa_edge_duplication_hook): Add the new edge to the list of edge
14761 clones.
14762 (ipa_node_duplication_hook): Update to use new lattices.
14763 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
14764 (ipa_free_all_structures_after_iinln): Likewise.
14765 (ipa_write_node_info): Update to use new lattices.
14766 (ipa_read_node_info): Likewise.
14767 (ipa_get_jf_pass_through_result): New function.
14768 (ipa_get_jf_ancestor_result): Likewise.
14769 (ipa_value_from_jfunc): Likewise.
14770 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
14771 * ipa-cp.c: Reimplemented.
14772 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
14773 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
14774 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
14775 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
14776 * doc/invoke.texi (devirt-type-list-size): Removed description.
14777 (ipa-cp-value-list-size): Added description.
14778
6774a66f
RH
147792011-07-18 Richard Henderson <rth@redhat.com>
14780
14781 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
14782 before calling create_basic_block.
14783
8b316874
JJ
147842011-07-18 Jakub Jelinek <jakub@redhat.com>
14785
14786 PR middle-end/49675
14787 * tree.c (build_common_builtin_nodes): Register
14788 __builtin_return_address, __cyg_profile_func_enter
14789 and __cyg_profile_func_exit.
14790
9f68560b
RH
147912011-07-18 Richard Henderson <rth@redhat.com>
14792
14793 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
14794 (add_labels_and_missing_jumps): ... here.
14795 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
14796
03126412
UB
147972011-07-18 Uros Bizjak <ubizjak@gmail.com>
14798
14799 PR target/47744
14800 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
14801 of DImode hard registers in PLUS address chains.
14802
fbf80ef7
RO
148032011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14804
14805 PR bootstrap/49769
14806 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
14807 (alpha*-*-freebsd*): Likewise.
14808 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14809 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
14810 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
14811 crtprec80.o, crtfastmath.o to extra_parts for all targets.
14812 (ia64*-*-elf*): Remove extra_parts.
14813 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
14814 (sparc64-*-linux*): Likewise.
14815 (sparc64-*-freebsd*): Likewise.
14816
14817 Revert:
14818 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
14819 (ia64*-*-linux*): Likewise.
14820 (mips64*-*-linux*): Likewise.
14821 (mips*-*-linux*): Likewise.
14822
daf633ba
DE
148232011-07-18 David Edelsohn <dje.gcc@gmail.com>
14824
14825 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
14826
4b4455e5
RG
148272011-07-18 Richard Guenther <rguenther@suse.de>
14828
14829 * gimplify.c (gimplify_expr): Use input_location, not saved_location
14830 when building new trees.
14831
e002c7cb
RG
148322011-07-18 Richard Guenther <rguenther@suse.de>
14833
14834 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
14835 expansion result to bitfield precision if required.
14836
e44dbbe1
RO
148372011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14838
14839 * config.gcc (i[3456x]86-*-netware*): Remove.
14840
14841 * gthr-nks.h: Remove.
14842 * configure.ac (enable_threads): Remove nks.
14843 * configure: Regenerate.
14844
14845 * config/i386/i386.c (ix86_encode_section_info): Remove netware
14846 reference.
14847 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
14848 <netware.h> reference.
14849
14850 * config/i386/netware-libgcc.c,
14851 gcc/config/i386/netware-libgcc.def,
14852 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
14853 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
14854 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
14855 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
14856
14857 * doc/extend.texi (Function Attributes,
14858 callee_pop_aggregate_return): Remove i?86-netware reference.
14859 * doc/install.texi (Configuration, --enable-threads): Remove nks.
14860
fd862017
JDA
148612011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14862
14863 PR target/49746
14864 Revert:
14865 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14866
14867 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
14868 patterns.
14869
1ff24749
EB
148702011-07-17 Eric Botcazou <ebotcazou@adacore.com>
14871
14872 PR middle-end/49732
14873 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
14874
a4a2c37d
MK
148752011-07-16 Matthias Klose <doko@ubuntu.com>
14876
14877 * doc/install.texi: Document --enable-static-libjava.
14878
ea6136a2
RH
148792011-07-15 Richard Henderson <rth@redhat.com>
14880
14881 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
14882 Replace all three arguments by returning a VEC of edges.
14883 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
14884 pointers and counts.
14885 (fix_edges_for_rarely_executed_code): Merge ...
14886 (rest_of_handle_partition_blocks): ... into...
14887 (partition_hot_cold_basic_blocks): ... here. Return todo items if
14888 any work was performed.
14889 (pass_partition_blocks): Clear todo_flags_finish.
14890
6545e33e
PC
148912011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
14892 Jakub Jelinek <jakub@redhat.com>
14893 Jonathan Wakely <jwakely.gcc@gmail.com>
14894
14895 PR libstdc++/49745
14896 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
14897 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
14898
6feeed06
JM
148992011-07-15 Jason Merrill <jason@redhat.com>
14900
14901 PR testsuite/49741
14902 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
14903 rather than --tool_opts.
14904
44762055
BS
149052011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
14906
14907 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 14908 corresponding gtype.state.
44762055 14909
1be0310c
JDA
149102011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14911
14912 PR target/49723
14913 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
14914
12c5ffe5
EB
149152011-07-15 Eric Botcazou <ebotcazou@adacore.com>
14916
14917 PR target/48220
14918 * doc/md.texi (Standard Names): Document window_save.
14919 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
14920 expand_debug_expr and expand_debug_source_expr. If the target has
14921 a window_save instruction, adjust the ENTRY_VALUE_EXP.
14922 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
14923 SSA_NAME_VAR is a parameter.
14924 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
14925 * var-tracking.c (parm_reg_t): New type and associated vector type.
14926 (windowed_parm_regs): New variable.
14927 (adjust_insn): If the target has a window_save instruction and this
14928 is the instruction, make its effect on parameter registers explicit.
14929 (next_non_note_insn_var_location): New function.
14930 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
14931 (vt_add_function_parameter): If the target has a window_save insn,
14932 adjust the incoming RTL and record that in windowed_parm_regs.
14933 (vt_finalize): Free windowed_parm_regs.
14934
bcead286
BS
149352011-07-15 Bernd Schmidt <bernds@codesourcery.com>
14936
14937 * doc/invoke.texi (C6X Options): New section.
14938 * doc/md.texi (TI C6X family): New section.
14939 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
14940 tic6x-*-uclinux.
14941 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
14942 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
14943 Provide C6X definitions.
14944 * config/c6x/c6x.md: New file.
14945 * config/c6x/constraints.md: New file.
14946 * config/c6x/predicates.md: New file.
14947 * config/c6x/c6x-sched.md.in: New file.
14948 * config/c6x/c6x-sched.md: New file.
14949 * config/c6x/gensched.sh: New file.
14950 * config/c6x/c6x-mult.md.in: New file.
14951 * config/c6x/genmult.sh: New file.
14952 * config/c6x/c6x-mult.md: New file.
14953 * config/c6x/sync.md: New file.
14954 * config/c6x/c6x-protos.h: New file.
14955 * config/c6x/sfp-machine.h: New file.
14956 * config/c6x/c6x.c: New file.
14957 * config/c6x/c6x.h: New file.
14958 * config/c6x/crti.s: New file.
14959 * config/c6x/crtn.s: New file.
14960 * config/c6x/lib1funcs.asm: New file.
14961 * config/c6x/c6x-modes.def: New file.
14962 * config/c6x/genopt.sh: New file.
14963 * config/c6x/c6x.opt: New file.
14964 * config/c6x/c6x-tables.opt: New file.
14965 * config/c6x/c6x-opts.h: New file.
14966 * config/c6x/c6x-isas.def: New file.
14967 * config/c6x/elf.h: New file.
14968 * config/c6x/elf-common.h: New file.
14969 * config/c6x/uclinux-elf.h: New file.
14970 * config/c6x/t-c6x: New file.
14971 * config/c6x/t-c6x-elf: New file.
14972 * config/c6x/t-c6x-uclinux: New file.
14973 * config/c6x/t-c6x-softfp: New file.
14974 * config/c6x/gtd.c: New file.
14975 * config/c6x/gtf.c: New file.
14976 * config/c6x/ltd.c: New file.
14977 * config/c6x/ltf.c: New file.
14978 * config/c6x/ged.c: New file.
14979 * config/c6x/gef.c: New file.
14980 * config/c6x/led.c: New file.
14981 * config/c6x/lef.c: New file.
14982 * config/c6x/eqd.c: New file.
14983 * config/c6x/eqf.c: New file.
14984 * config/c6x/libgcc-c6xeabi.ver: New file.
14985
aef0e7a8
BS
14986 Revert
14987 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
14988 PR rtl-optimization/11320
14989 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
14990 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
14991 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
14992 current_sched_info->compute_jump_reg_dependencies. Record which
14993 registers are used and which registers are set by the jump.
14994 Clear deps->reg_conditional_sets after a barrier.
14995 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
14996 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
14997 (init_deps): Initialize reg_conditional_sets.
14998 (free_deps): Clear reg_conditional_sets.
14999 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
15000 Mark registers live on entry of the fallthrough block and conditionally
15001 set as set by the jump. Mark registers live on entry of non-fallthrough
15002 blocks as used by the jump.
15003 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
15004 Mark new parameters as unused.
15005
9bed2f0d
AP
150062011-07-14 Andrew Pinski <pinskia@gmail.com>
15007
15008 PR tree-opt/49309
15009 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
15010 Use fold_build2_loc instead of build2.
15011 Use the correct type for the new tree.
15012
1f88caaa
BS
150132011-07-14 Bernd Schmidt <bernds@codesourcery.com>
15014
15015 PR rtl-optimization/11320
15016 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
15017 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
15018
d772f97c 150192011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 15020
d772f97c
GJL
15021 PR target/49487
15022 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
15023 of REG.
15024 (*rotw<mode>): Use const_int_operand for operand2.
15025 Use match_scatch for operand3.
15026 (*rotb<mode>): Ditto
15027 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
15028
1a5d20a4
RG
150292011-07-14 Richard Guenther <rguenther@suse.de>
15030
15031 PR tree-optimization/49651
15032 * tree-ssa-structalias.c (get_constraint_for_1): Properly
15033 handle dereferences with subvariables.
15034
5fbcc0ed
RG
150352011-07-14 Richard Guenther <rguenther@suse.de>
15036
15037 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
15038 (fold_stmt_1): Do it here directly on gimple and as a first thing.
15039
fbf3fee2
RG
150402011-07-14 Richard Guenther <rguenther@suse.de>
15041
15042 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
15043 not bool_var when folding bool_var != 1 or bool_var == 0.
15044
b953c2b8
BS
150452011-07-14 Bernd Schmidt <bernds@codesourcery.com>
15046
15047 * haifa-sched.c (schedule_insns): Remove outdated comment.
15048 (schedule_block): When computing a known value for TODO_SPEC,
15049 just set it rather than using logical operations.
15050 (try_ready): Likewise. Use a local variable rather than a
15051 pointer to TODO_SPEC. Reorder an if statement to move the
15052 easy case to the then block.
15053 * sched-deps.c (dep_spec_p): New static function.
15054 (update_dep): Use it to decide whether to call
15055 change_spec_dep_to_hard.
15056 (get_back_and_forw_lists): Use it.
15057 (sd_resolve_dep): Likewise.
15058 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
15059 (haifa_note_mem_dep): Likewise.
15060 (check_dep): Likewise.
15061 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
15062 (sched_free_deps): Free in two passes.
15063
1f098f07
RS
150642011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
15065
15066 PR middle-end/49736
15067 * expr.c (all_zeros_p): Undo bogus part of last change.
15068
73059910
MK
150692011-07-14 Matthias Klose <doko@ubuntu.com>
15070
15071 * doc/extend.texi (optimize attribute): Fix typo.
15072
bd5d002e
RG
150732011-07-14 Richard Guenther <rguenther@suse.de>
15074
15075 * gimplify.c (gimplify_expr): Only do required conversions.
15076
eb1dcdff
GJL
150772011-07-14 Georg-Johann Lay <avr@gjlay.de>
15078
15079 PR target/43746
15080 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
15081 i.e. use default_elf_select_section.
15082 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
15083 (READONLY_DATA_SECTION_ASM_OP): Remove.
15084 (TARGET_ASM_NAMED_SECTION): Move from here...
15085 * config/avr/avr.c: ...to here.
03126412 15086 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
15087 (avr_asm_named_section): Make static.
15088
d31fb329
RO
150892011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15090
15091 PR bootstrap/49739
03126412
UB
15092 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
15093 and crtfastmath.o for Linux/x86.
d31fb329 15094
26965010
BS
150952011-07-14 Bernd Schmidt <bernds@codesourcery.com>
15096
15097 * haifa-sched.c: Include "hashtab.h"
15098 (sched_no_dce): New global variable.
15099 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
15100 SHADOW_P): New macros.
15101 (last_clock_var, cycle_issued_insns): Move declarations.
15102 (must_backtrack): New static variable.
15103 (struct delay_pair): New structure.
15104 (delay_htab, delay_htab_i2): New static variables.
15105 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
15106 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
15107 functions.
15108 (dep_cost_1): If delay pairs exist, try to look up the insns and
15109 use the correct pair delay if we find them.
15110 (rank-for_schedule): Tweak priority for insns that must be scheduled
15111 soon to avoid backtracking.
15112 (queue_insn): Detect conditions which force backtracking.
15113 (ready_add): Likewise.
15114 (struct sched_block_state): Add member shadows_only_p.
15115 (struct haifa_save_data): New structure.
15116 (backtrack_queue): New static variable.
15117 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
15118 unschedule_insns_until, restore_last_backtrack_point,
15119 free_topmost_backtrack_point, free_backtrack_queue,
15120 estimate_insn_tick, estimate_shadow_tick): New functions.
15121 (prune_ready_list): New arg shadows_only_p. All callers changed.
15122 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 15123 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
15124 (verify_shadows): New function.
15125 (schedule_block): Add machinery to enable backtracking.
15126 (sched_init): Take sched_no_dce into account when setting
15127 DF_LR_RUN_DCE.
15128 (free_delay_pairs): New function.
15129 (init_h_i_d): Initialize INSN_EXACT_TICK.
15130 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
15131 * sched-deps.c (sd_unresolve_dep): New function.
15132 * sched-int. (struct haifa_sched_info): New fields save_state
15133 and restore_state.
15134 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
15135 feeds_backtrack_insn and shadow_p.
15136 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
15137 (sched_no_dce): Declare variable.
15138 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
15139 sd_unresolve_dep): Declare functions.
15140 * modulo-sched.c (sms_sched_info): Clear the two new fields.
15141 * sched-rgn.c (rgn_const_sched_info): Likewise.
15142 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15143 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
15144 (ebb_sched_info): Add them for the two new fields.
15145 (add_deps_for_risky_insns): Call add_delay_dependencies.
15146
1db75f6c
MM
151472011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15148
15149 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
15150 Rename -mr11.
15151 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
15152 (rs6000_call_indirect_aix): Ditto.
15153 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
15154 (call_indirect_aix<ptrsize>_internal): Ditto.
15155 (call_indirect_aix<ptrsize>_nor11): Ditto.
15156 (call_indirect_aix<ptrsize>_internal2): Ditto.
15157 (call_value_indirect_aix<ptrsize>): Ditto.
15158 (call_value_indirect_aix<ptrsize>_internal): Ditto.
15159 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
15160 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
15161 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
15162
e2995714
JM
151632011-07-13 Jason Merrill <jason@redhat.com>
15164
15165 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
15166
4dfe3ad5
UW
151672011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15168
15169 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
15170 * config/spu/spu.md ("clrsb<mode>2"): New expander.
15171
dddc6762
TS
151722011-07-13 Thomas Schwinge <thomas@schwinge.name>
15173
15174 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
15175 * configure: Regenerate.
15176
b4d80e56
UW
151772011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15178
15179 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
15180 (asm_file_start): Remove.
15181 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
15182 free_bb_for_insn around code that modifies insns before
15183 restarting df analysis.
15184
9e34e53f
RO
151852011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15186
15187 PR target/49541
03126412 15188 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
15189 (LINK_SPEC): ... here.
15190
51564684
BS
151912011-07-13 Bernd Schmidt <bernds@codesourcery.com>
15192
15193 * haifa-sched.c (struct sched_block_state): New.
15194 (schedule_block): Move some local variables into such a structure.
15195
b3fe1584
RO
151962011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15197
15198 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
15199 * config/i386/t-crtpc: Remove.
15200 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15201 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
15202 tmake_file.
15203 (x86_64-*-darwin*): Likewise.
15204 (i[34567]86-*-linux*): Likewise.
15205 (x86_64-*-linux*): Likewise.
15206
15207 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
15208 Handle -mpc32, -mpc64, -mpc80.
15209
35d8090d
RO
152102011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15211
15212 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
15213 * config/alpha/t-crtfm: Remove.
15214 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
15215 * config/i386/t-crtfm: Remove.
15216 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
15217 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
15218 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
15219 * config/sparc/t-crtfm: Remove.
15220
15221 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
15222 (alpha*-*-freebsd*): Likewise.
15223 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
15224 (x86_64-*-darwin*): Likewise.
15225 (i[34567]86-*-linux*): Likewise.
15226 (x86_64-*-linux*): Likewise.
15227 (x86_64-*-mingw*): Likewise.
15228 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
15229 (ia64*-*-freebsd*): Likewise.
15230 (ia64*-*-linux*): Likewise.
15231 (mips64*-*-linux*): Likewise.
15232 (mips*-*-linux*): Likewise.
15233 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
15234 (sparc64-*-linux*): Likewise.
15235 (sparc64-*-freebsd*): Likewise.
15236
e141542e
RO
152372011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15238
15239 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
15240 * config/darwin-crt3.c: Move to ../libgcc/config.
15241 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
15242 ($(T)crt3$(objext)): Remove.
15243 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
15244 ($(T)crt2$(objext)): Remove.
15245 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
15246 (powerpc64-*-darwin*): Likewise.
15247
72fbc381
L
152482011-07-13 H.J. Lu <hongjiu.lu@intel.com>
15249
03126412 15250 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
15251
15252 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
15253 (addsi_1_zext): This.
15254
727a65e6
BS
152552011-07-13 Bernd Schmidt <bernds@codesourcery.com>
15256
15257 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
15258 * doc/tm.texi: Regenerate.
73451ae7 15259 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
15260 * varasm.c (mergeable_string_section, mergeable_constant_section):
15261 Use it. Allocate name with alloca.
15262
cb77b6cf
L
152632011-07-13 H.J. Lu <hongjiu.lu@intel.com>
15264
15265 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
15266
36fc3799
RS
152672011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
15268
15269 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
15270 overlap check.
15271
953d0c90
RS
152722011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
15273
15274 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
15275 (count_type_elements): Delete.
15276 (complete_ctor_at_level_p): Declare.
15277 * expr.c (flexible_array_member_p): New function, split out from...
15278 (count_type_elements): ...here. Make static. Replace allow_flexarr
15279 parameter with for_ctor_p. When for_ctor_p is true, return the
15280 number of elements that should appear in the top-level constructor,
15281 otherwise return an estimate of the number of scalars.
15282 (categorize_ctor_elements): Replace p_must_clear with p_complete.
15283 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
15284 (complete_ctor_at_level_p): New function, borrowing union logic
15285 from old categorize_ctor_elements_1.
15286 (mostly_zeros_p): Return true if the constructor is not complete.
15287 (all_zeros_p): Update call to categorize_ctor_elements.
15288 * gimplify.c (gimplify_init_constructor): Update call to
15289 categorize_ctor_elements. Don't call count_type_elements.
15290 Unconditionally prevent clearing for variable-sized types,
15291 otherwise rely on categorize_ctor_elements to detect
15292 incomplete initializers.
15293
9111c715
RG
152942011-07-13 Richard Guenther <rguenther@suse.de>
15295
15296 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
15297 the final type is integral.
15298
a19af9c4
BS
152992011-07-13 Bernd Schmidt <bernds@codesourcery.com>
15300
15301 * sched-int.h (struct _dep): Add member cost.
15302 (DEP_COST, UNKNOWN_DEP_COST): New macros.
15303 * sched-deps.c (init_dep_1): Initialize DEP_COST.
15304 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
15305 (sched_change_pattern): Reset it for dependent insns.
15306
2d1efe2d
RO
153072011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15308
15309 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
15310 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
15311 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
15312 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
15313 (CRT0_S, MCRT0_S): Remove.
15314 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
15315 Remove.
15316 (s-crt0): Remove.
15317 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
15318
e84a58ff
EB
153192011-07-12 Eric Botcazou <ebotcazou@adacore.com>
15320
15321 * cse.c (insert_with_costs): Put semi-colon after empty loop body
15322 on the next line.
15323 * emit-rtl.c (push_to_sequence): Likewise.
15324 * haifa-sched.c (max_issue): Likewise.
15325 * matrix-reorg.c (add_allocation_site): Likewise.
15326 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
15327 * reload.c (alternative_allows_const_pool_ref): Likewise.
15328 * sched-rgn.c (rgn_add_block): Likewise.
15329 (rgn_fix_recovery_cfg): Likewise.
15330 * tree.c (attribute_list_contained): Likewise.
15331
3a4ffde6
UB
153322011-07-12 Uros Bizjak <ubizjak@gmail.com>
15333
15334 * config/i386/i386.c: Tidy processor feature bitmasks.
15335 (m_P4_NOCONA): New.
15336
10b75750
AP
153372011-07-12 Andrew Pinski <pinskia@gmail.com>
15338
15339 PR rtl-opt/49474
15340 * cprop.c (find_implicit_sets): Correct the condition.
15341
4f42d714
RH
153422011-07-12 Richard Henderson <rth@redhat.com>
15343
15344 PR target/49713
15345 * dwarf2out.h (dwarf_frame_regnum): Remove.
15346 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
15347 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
15348 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
15349 (execute_dwarf2_frame): Initialize them.
15350 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
15351 users of the macros with the variables.
15352 (expand_builtin_dwarf_sp_column): Revert last change.
15353 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
15354 result of DWARF_FRAME_REGNUM into a local variable.
15355
3a5e4ad6
RH
153562011-07-12 Richard Henderson <rth@redhat.com>
15357
15358 PR target/49714
15359 * config/i386/i386.c (x86_output_mi_thunk): Use
15360 machopic_indirect_call_target instead of machopic_indirection_name
15361 directly.
15362
9e9bd455
LG
153632011-07-12 Laurent GUERBY <laurent@guerby.net>
15364 Eric Botcazou <ebotcazou@adacore.com>
15365
15366 * prefix.h: Wrap up in extern "C" block.
15367
4d652a18
HJ
153682011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
15369
15370 AMD bdver2 Enablement
15371 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
15372 (case ${target}): Add bdver2.
15373 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15374 -march=native recognize bdver2 processors.
15375 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15376 bdver2 def_and_undef
15377 * config/i386/i386.c (struct processor_costs bdver2_cost): New
15378 bdver2 cost table.
15379 (m_BDVER2): New definition.
15380 (m_AMD_MULTIPLE): Includes m_BDVER2.
15381 (initial_ix86_tune_features): Add bdver2 tuning.
15382 (processor_target_table): Add bdver2 entry.
15383 (static const char *const cpu_names): Add bdver2 entry.
15384 (ix86_option_override_internal): Add bdver2 instruction sets.
15385 (ix86_issue_rate): Add bdver2.
15386 (ix86_adjust_cost): Add bdver2.
15387 (has_dispatch): Add bdver2.
15388 * config/i386/i386.h (TARGET_BDVER2): New definition.
15389 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
15390 (enum processor_type): Add PROCESSOR_BDVER2.
15391 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
15392 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
15393 description.
15394
5756d08c
RH
153952011-07-12 Richard Henderson <rth@redhat.com>
15396
15397 PR target/49714
15398 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
15399 destination address in memory on some paths.
15400
123148b5
BS
154012011-07-12 Bernd Schmidt <bernds@codesourcery.com>
15402
15403 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
15404 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
15405 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
15406 * function.c (locate_and_pad_parm): Take it into account.
15407 * target.def (function_arg_round_boundary): New hook.
15408 * targhooks.c (default_function_arg_round_boundary): New function.
15409 * targhooks.h (default_function_arg_round_boundary): Declare.
15410 * doc/tm.texi: Regenerate.
15411
b7a83ad8
RG
154122011-07-12 Richard Guenther <rguenther@suse.de>
15413
15414 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
15415 Do not perform no-op changes.
15416
12c4ecb1
RS
154172011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
15418
15419 * config/arm/predicates.md (neon_struct_operand): Make a normal
15420 predicate.
15421 (neon_struct_or_register_operand): New predicate.
15422 * config/arm/neon.md (movmisalign<mode>): Replace predicates
15423 with neon_struct_or_register_operand.
15424 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
15425 neon_struct_operand instead of memory_operand.
15426
ab079773
MJ
154272011-07-12 Martin Jambor <mjambor@suse.cz>
15428
15429 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
15430 * cgraph.c (cgraph_get_node_or_alias): Removed.
15431 (change_decl_assembler_name): Changed all calls to
15432 cgraph_get_node_or_alias to a call to cgraph_get_node.
15433 (cgraph_make_decl_local): Likewise.
15434 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
15435 * varasm.c (default_binds_local_p_1): Likewise.
15436 (decl_binds_to_current_def_p): Likewise.
15437
d5fed62d
JJ
154382011-07-12 Jakub Jelinek <jakub@redhat.com>
15439
15440 PR tree-optimization/49712
15441 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
15442
c0b6224a
BS
154432011-07-11 Bernd Schmidt <bernds@codesourcery.com>
15444
15445 * genautomata.c (add_arc): Return void. All callers changed.
15446 (make_automaton): Remove dead code.
15447
7263c6d7
RH
154482011-07-11 Richard Henderson <rth@redhat.com>
15449
15450 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
15451 (DW_FRAME_POINTER_REGNUM): New.
15452 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
15453 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
15454 (dwf_regno): New.
15455 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
15456 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
15457 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
15458 Use it.
15459 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
15460 * dwarf2out.h (dwarf_frame_regnum): New.
15461 (struct cfa_loc): Document the domain of the reg member.
15462
f9610d20
UB
154632011-07-11 Uros Bizjak <ubizjak@gmail.com>
15464
15465 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
15466 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
15467
96ae7458
JJ
154682011-07-11 Jakub Jelinek <jakub@redhat.com>
15469
15470 PR debug/49676
15471 * dwarf2out.c (int_shift_loc_descriptor): New function.
15472 (int_loc_descriptor): If shorter, emit i as
15473 (i >> shift), shift, DW_OP_shl for suitable shift value.
15474 Similarly, try to optimize large negative values using
15475 DW_OP_neg of a positive value if shorter.
15476 (size_of_int_shift_loc_descriptor): New function.
15477 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
15478 changes.
15479 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
15480 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
15481 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
15482 is shorter.
15483 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
15484 addend as added DW_OP_plus if it is shorter.
15485
feffaec4
RO
154862011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15487
15488 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
15489 (DTORS_SECTION_ASM_OP): Define.
15490
2d8d5935
RO
154912011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15492
15493 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
15494 * config/t-dfprules: Move to ../libgcc/config.
15495 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
15496 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
15497 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
15498 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
15499 Likewise.
15500 (i[34567]86-*-cygwin*): Likewise.
15501 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
15502 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
15503 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
15504 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
15505 D64PBIT_FUNCS, D128PBIT_FUNCS.
15506
dcc95c20
RG
155072011-07-11 Richard Guenther <rguenther@suse.de>
15508
15509 * tree-vrp.c (simplify_conversion_using_ranges): Manually
15510 translate the source value-range through the conversion chain.
15511
28164eed
RS
155122011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
15513
15514 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
15515
f3054223
AL
155162011-07-11 Arthur Loiret <aloiret@debian.org>
15517
15518 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
15519 a bi-arch compiler defaulting to 31-bit. In this case:
15520 (tmake_file): Add s390/t-linux64.
15521 * doc/install.texi: Add s390-linux to the list of targets supporting
15522 --enable-targets=all.
15523
bd5ab709
AL
155242011-07-11 Arthur Loiret <aloiret@debian.org>
15525 Matthias Klose <doko@debian.org>
15526
15527 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
15528 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
15529 (tm_file): Add mips/linux64.h.
15530 (tmake_file): Add mips/t-linux64.
15531 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
15532 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
15533 instead of hardcoded mabi=n32.
15534 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
15535 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
15536 convention.
15537
d3b7e946
AK
155382011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15539
15540 * passes.c (init_optimization_passes): Add invariant motion pass
15541 after induction variable optimization.
15542
7e4ec472 155432011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 15544
7e4ec472
GJL
15545 PR target/39633
15546 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
15547 offsets 1..5 set cc0 in a usable way.
15548
0e65e631
RG
155492011-07-11 Romain Geissler <romain.geissler@gmail.com>
15550
15551 * tree.h (call_expr_arg): Remove.
15552 (call_expr_argp): Likewise.
15553
18970372
EB
155542011-07-11 Eric Botcazou <ebotcazou@adacore.com>
15555
15556 * config/sparc/sparc.md (save_register_window_1): Rename to...
15557 (window_save): ...this.
15558 * config/sparc/sparc.c (emit_save_register_window): Rename to...
15559 (emit_window_save): ...this.
15560 (sparc_expand_prologue): Adjust to above renaming.
15561
9e419e38
L
155622011-07-10 H.J. Lu <hongjiu.lu@intel.com>
15563
15564 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
15565 of movabs for x32.
15566
3db72de3
RH
155672011-07-10 Richard Henderson <rth@redhat.com>
15568
15569 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
15570 run final, instead of emitting text directly.
15571
a1f91bca
L
155722011-07-10 H.J. Lu <hongjiu.lu@intel.com>
15573
15574 * config/i386/i386.c (ix86_option_override_internal): Turn on
15575 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
15576 small PIC models for TARGET_X32.
15577
a50023f9
HPN
155782011-07-10 Hans-Peter Nilsson <hp@axis.com>
15579
9a0b29f0
HPN
15580 PR target/49684
15581 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
15582 $(LIBGCC2_CFLAGS).
15583
a50023f9
HPN
15584 PR bootstrap/49680
15585 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
15586 stray notes and debug insns by using prev_nonnote_nondebug_insn
15587 instead of PREV_INSN.
15588
948d330e
RH
155892011-07-09 Richard Henderson <rth@redhat.com>
15590
15591 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
15592 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
15593 * dwarf2out.c: ... here.
15594 (output_all_cfis): Remove.
15595 (dwarf2out_switch_text_section): Use output_cfis directly.
15596 (size_of_locs): Export.
15597 (output_loc_sequence, output_loc_sequence_raw): Export.
15598 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
15599 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
15600 output_cfa_loc_raw): Move to ...
15601 * dwarfcfi.c: ... here.
15602 * dwarf2out.h: Update decls.
15603
db42e39d
RH
156042011-07-09 Richard Henderson <rth@redhat.com>
15605
15606 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
15607 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
15608 * dwarf2cfi.c: ... here.
15609 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
15610 (DWARF_ROUND, DWARF_CIE_ID): Remove.
15611 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
15612 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
15613 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
15614
a8e5c0e7
RH
156152011-07-09 Richard Henderson <rth@redhat.com>
15616
15617 * dwarf2cfi.c (cie_return_save): New.
15618 (queue_reg_save): Use compare_reg_or_pc.
15619 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
15620 (dwarf2out_frame_debug_expr): Likewise.
15621 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
15622 (initial_return_save): Likewise.
15623 (execute_dwarf2_frame): Save and restore initial return save from
15624 the cie to the fde.
15625 * config/mips/mips.c (mips_frame_set): Remove special case for
15626 DWARF_FRAME_RETURN_COLUMN.
15627
4a8ee122
RH
156282011-07-09 Richard Henderson <rth@redhat.com>
15629
15630 * dwarf2cfi.c (lookup_cfa): Remove.
15631 (execute_dwarf2_frame): Assert queues are empty on entry.
15632 Setup initial cfa directly, not via lookup_cfa.
15633 Don't clear args_size state here.
15634
3edb53aa
RH
156352011-07-09 Richard Henderson <rth@redhat.com>
15636
15637 * dwarf2cfi.c (add_cfi_vec): New.
15638 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
15639 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
15640 (execute_dwarf2_frame): Set add_cfi_vec.
15641
ded49a7f
RH
156422011-07-09 Richard Henderson <rth@redhat.com>
15643
15644 * defaults.h (ASM_COMMENT_START): Move here...
15645 * dwarf2asm.c: ... from here.
15646 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
15647 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
15648 * varasm.c: Likewise.
15649
45fba6d1
RH
156502011-07-09 Richard Henderson <rth@redhat.com>
15651
15652 PR debug/49686
15653 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
15654 (create_cfi_notes): ... do it here instead.
15655
5b696ba2
JJ
156562011-07-09 Jakub Jelinek <jakub@redhat.com>
15657
15658 PR debug/49676
15659 * dwarf2out.c (size_of_int_loc_descriptor): New function.
15660 (address_of_int_loc_descriptor): Use it.
f9610d20 15661 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 15662
8662b2ba
RH
156632011-07-09 Richard Henderson <rth@redhat.com>
15664
15665 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
15666 (prologue, epilogue): New.
15667 (return, *rts): New.
15668 (blockage, setd, seti): New.
15669 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
15670 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
15671 (pdp11_saved_regno): New.
15672 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
15673 generate rtl instead of text.
15674 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
15675 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
15676 * config/pdp11/pdp11-protos.h: Update.
15677
28b21ebb
RH
156782011-07-09 Richard Henderson <rth@redhat.com>
15679
15680 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
15681 try to insert an rtl prologue here.
15682 (rs6000_output_function_epilogue): Similarly.
15683 * config/rs6000/rs6000.md (prologue): Emit a barrier to
15684 satisfy !TARGET_SCHED_PROLOG.
15685 (epilogue, sibcall_epilogue): Likewise.
15686
0a222ba7
EB
156872011-07-09 Eric Botcazou <ebotcazou@adacore.com>
15688
15689 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
15690 (FP_REG_P): Delete.
15691 (IN_OR_GLOBAL_P): Likewise.
15692
2fda8e14
JM
156932011-07-08 Jason Merrill <jason@redhat.com>
15694
4063e61b
JM
15695 PR c++/45437
15696 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
15697 compound assignment.
15698
2fda8e14
JM
15699 * cgraph.c (cgraph_add_to_same_comdat_group): New.
15700 * cgraph.h: Declare it.
15701 * ipa.c (function_and_variable_visibility): Make sure thunks
15702 have the right visibility.
15703
830f11fe
RH
157042011-07-08 Richard Henderson <rth@redhat.com>
15705
15706 PR bootstrap/49680
15707 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
15708 any tablejump vector.
15709
965b2557
RH
15710 PR bootstrap/49680
15711 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
15712 end of the prologue.
15713
70db9095
JJ
157142011-07-08 Jakub Jelinek <jakub@redhat.com>
15715
15716 PR target/49621
15717 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 15718 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
15719 * config/rs6000/vector.md (vector_select_<mode>,
15720 vector_select_<mode>_uns): Change second operand of NE to
15721 CONST0_RTX (<MODE>mode) instead of const0_rtx.
15722 * config/rs6000/altivec.md (*altivec_vsel<mode>,
15723 *altivec_vsel<mode>_uns): Expect second operand of NE to be
15724 zero_constant of the corresponding vector mode.
15725 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
15726 Likewise.
15727
e92c5020
SP
157282011-07-08 Sebastian Pop <sebastian.pop@amd.com>
15729
15730 * graphite-dependences.c (build_alias_set_powerset): Remove
15731 continue from loop, add one more assert.
15732
3e4f8484 157332011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 15734
3e4f8484
GJL
15735 PR target/46779
15736 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
15737 In particular, allow 8-bit values in r28 and r29.
15738 (avr_hard_regno_scratch_ok): Disallow any register that might be
15739 part of the frame pointer.
15740 (avr_hard_regno_rename_ok): Same.
15741 (avr_legitimate_address_p): Don't allow SUBREGs.
15742
0094f21b
JB
157432011-07-08 Julian Brown <julian@codesourcery.com>
15744
15745 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
15746 big-endian mode.
15747 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
15748 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
15749 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
15750 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
15751 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
15752 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
15753 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
15754 registers in big-endian mode.
15755
9ae60101
BS
157562011-07-08 Bernd Schmidt <bernds@codesourcery.com>
15757
15758 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
15759 in terms of another.
15760 (write_attr_value): Write a cast if necessary.
15761
c0a6a1ef
BS
15762 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
15763 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
15764 (REG_WORDS_BIG_ENDIAN): Document.
15765 * doc/tm.texi: Regenerate.
15766 * reload.c (operands_match_p): Take it into account.
15767 (reload_adjust_reg_for_mode): Likewise.
15768 * rtlanal.c (subreg_get_info): Likewise.
15769
b862187a
RG
157702011-07-08 Richard Guenther <rguenther@suse.de>
15771
15772 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
15773 folding.
15774
e8e8c74b
KT
157752011-07-08 Kai Tietz <ktietz@redhat.com>
15776
15777 * fold-const.c (fold_truth_andor): Factored out truth_andor
15778 label from fold_binary as function.
15779 (fold_binary_loc): Replace truth_andor lable
15780 by function fold_truth_andor.
15781
6c3cb698
KY
157822011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
15783
15784 PR middle-end/49519
15785 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
15786 check if address is stored in register. If so - give up.
15787 (check_sibcall_argument_overlap_1): Do not perform check of
15788 overlapping when it is call to address.
15789
7d8d6d73 157902011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 15791
7d8d6d73
GJL
15792 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
15793 of magic '31'.
15794
69660a70
BS
157952011-07-08 Bernd Schmidt <bernds@codesourcery.com>
15796
15797 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
15798 GET_MODE_BITSIZE where appropriate.
15799 (widen_leading, expand_parity, expand_ctz, expand_ffs,
15800 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
15801 expand_float, expand_fix): Likewise.
15802 * expr.c (convert_move, convert_modes, expand_expr_real_2,
15803 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15804 * stor-layout.c (get_mode_bounds): Likewise.
15805 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
15806 Likewise.
15807 * convert.c (convert_to_integer): Likewise.
15808 * expmed.c (expand_shift_1): Likewise.
15809
86cdf393
BS
15810 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
15811 a bitsize.
15812
0d44736e
BS
15813 * optabs.c (expand_binop): Tighten conditions for doubleword
15814 expansions.
f9610d20 15815 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
15816 * stor-layout.c (get_best_mode): Skip modes that have lower
15817 precision than bitsize.
15818 * recog.c (simplify_while_replacing): Assert that bitsize and
15819 precision are the same.
15820
2c50b2c3
RO
158212011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15822
15823 * Makefile.in (LIBGCOV): Remove.
15824 (libgcc.mvars): Remove LIBGCOV.
15825 * libgov.c: Move to ../libgcc.
15826
a039d7c2
RO
158272011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15828
15829 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
15830
e923ef41
MJ
158312011-07-08 Martin Jambor <mjambor@suse.cz>
15832
15833 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
15834 is too big for total scalarization.
15835
b709e189
RH
158362011-07-07 Richard Henderson <rth@redhat.com>
15837
15838 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
15839 (DBX_DEBUGGING_INFO): Undef.
15840
2867fa7c
RH
158412011-07-07 Richard Henderson <rth@redhat.com>
15842
15843 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
15844 Handle some opcodes specially for debugging.
15845 * print-rtl.c: Include dwarf2out.h
15846 (print_rtx): Handle NOTE_INSN_CFI.
15847 * Makefile.in (print-rtl.o): Update.
15848
7644b3c7
RH
158492011-07-07 Richard Henderson <rth@redhat.com>
15850
15851 * tree-pass.h (pass_dwarf2_frame): Declare.
15852 * passes.c (init_optimization_passes): Add it.
15853 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
15854 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
15855 make static, do not call add_cfis_to_fde.
15856 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
15857 dwarf2out_frame_init): Merge into...
15858 (execute_dwarf2_frame): ... here. New function.
15859 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
15860 saved_do_cfi_asm to a tri-state variable.
15861 (gate_dwarf2_frame, pass_dwarf2_frame): New.
15862 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
15863 if it has yet to be done. Don't call dwarf2cfi_function_init.
15864 * dwarf2out.h, debug.h: Update decls.
15865 * final.c (final_start_function): Don't call
15866 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
15867 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
15868 * toplev.c (lang_dependent_init): Likewise.
15869
a518b996
RH
158702011-07-07 Richard Henderson <rth@redhat.com>
15871
15872 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
15873 FDE_TABLE_INCREMENT): Replace with...
15874 (fde_vec): ... this, a new vector.
15875 (current_fde): Remove. Replace all users with cfun->fde.
15876 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
15877 (size_of_aranges, dwarf2out_finish): Likewise.
15878 (dwarf2out_alloc_current_fde): Break out from ...
15879 (dwarf2out_begin_prologue): ... here.
15880 (dwarf2out_frame_init): Remove.
15881 * dwarf2cfi.c: Update all users of current_fde.
15882 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
15883 * dwarf2out.h: Update decls.
15884 (dw_fde_node): Add fde_index member.
15885 * function.h (struct function): Add fde member.
15886
89e25f95
BS
158872011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15888 Richard Henderson <rth@redhat.com>
15889
15890 * dwarf2cfi.c (add_cfi): Remove.
15891 (dwarf2out_cfi_label): Remove force argument. Only generate the
15892 label name.
15893 (add_fde_cfi): Simplify the different code paths.
15894 (add_cie_cfi): New.
15895 (old_cfa, old_cfa_remember): New.
15896 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
15897 (last_reg_save_label): Remove.
15898 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
15899 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
15900 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
15901 dwarf2out_frame_debug_cfa_expression,
15902 dwarf2out_frame_debug_cfa_restore,
15903 dwarf2out_frame_debug_cfa_window_save,
15904 dwarf2out_frame_debug_expr): Remove label parameter.
15905 (cfi_label_required_p, add_cfis_to_fde): New.
15906 (dwarf2out_frame_debug_after_prologue): New.
15907 (dwarf2cfi_frame_init): Initialize old_cfa.
15908 (dwarf2out_frame_debug_restore_state): Likewise.
15909 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
15910 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
15911 * final.c (final_start_function): Call
15912 dwarf2out_frame_debug_after_prologue.
15913
bc5612ed
BS
159142011-07-07 Bernd Schmidt <bernds@codesourcery.com>
15915 Richard Henderson <rth@redhat.com>
15916
15917 * dwarf2cfi.c (cfi_insn): New.
15918 (dwarf2out_cfi_label): Don't emit cfi label here.
15919 (add_fde_cfi): Create a NOTE_INSN_CFI.
15920 (dwarf2out_frame_debug): Setup cfi_insn.
15921 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
15922 (dwarf2out_cfi_begin_epilogue): Make static.
15923 (dwarf2out_frame_debug_restore_state): Make static.
15924 * dwarf2out.c (output_cfi_directive): Make static.
15925 (dwarf2out_emit_cfi): New.
15926 * dwarf2out.h: Update.
15927 * final.c (final): Remove CFI notes.
15928 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
15929 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
15930 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
15931 * insn-notes.def (NOTE_INSN_CFI): New.
15932 (NOTE_INSN_CFI_LABEL): New.
15933 * rtl.h (union rtunion_def): Add rt_cfi member.
15934 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
15935
647a1567
RH
159362011-07-07 Richard Henderson <rth@redhat.com>
15937
15938 * dwarf2cfi.c: New file.
15939 * Makefile.in (OBJS): Add it.
15940 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
15941 * gengtype.c (open_base_files): Include dwarf2out.h.
15942 * coretypes.h (enum var_init_status): Move from ...
15943 * rtl.h: ... here.
15944 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
15945 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
15946 expand_builtin_dwarf_sp_column, init_return_column_size,
15947 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
15948 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
15949 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
15950 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
15951 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
15952 compute_barrier_args_size, dwarf2out_args_size,
15953 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
15954 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
15955 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
15956 queue_reg_save, dwarf2out_flush_queued_reg_saves,
15957 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
15958 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
15959 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
15960 dwarf2out_frame_debug_cfa_expression,
15961 dwarf2out_frame_debug_cfa_restore,
15962 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
15963 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
15964 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
15965 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
15966 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
15967 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
15968 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
15969 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
15970 dw_loc_descr_node): Move to dwarf2out.h.
15971 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
15972 mem_loc_descriptor): Export.
15973 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
15974 (dwarf2out_frame_init): Extract CIE generation code to
15975 dwarf2cfi_frame_init.
15976
b286d9ed
EB
159772011-07-07 Eric Botcazou <ebotcazou@adacore.com>
15978
15979 PR target/49660
15980 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
15981 MASK_V8PLUS, remove commented out flag and reorder.
15982
c4603e7c
JJ
159832011-07-07 Jakub Jelinek <jakub@redhat.com>
15984
15985 PR c/49644
15986 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
15987 one non-complex and one complex argument, call c_save_expr on both
15988 operands.
15989
81361831
MJ
159902011-07-07 Martin Jambor <mjambor@suse.cz>
15991
15992 PR middle-end/49495
15993 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
15994 (verify_cgraph_node): Some functinality moved to
15995 verify_edge_corresponds_to_fndecl, call it.
15996
1e4b2746
JM
159972011-07-07 Joseph Myers <joseph@codesourcery.com>
15998
15999 * config.gcc (*local*): Remove.
16000 * doc/install-old.texi: Don't mention local configurations.
16001
d7ff1e11
JJ
160022011-07-07 Jakub Jelinek <jakub@redhat.com>
16003
16004 PR debug/49522
16005 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
16006 referencing debug insns that have been reset.
16007 (dead_debug_insert_before): Don't assert reg is non-NULL,
16008 instead return immediately if it is NULL.
16009
2492731a
JM
160102011-07-07 Joseph Myers <joseph@codesourcery.com>
16011
f9610d20 16012 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 16013
9d9c740d
BS
160142011-07-07 Bernd Schmidt <bernds@codesourcery.com>
16015
16016 * hw-doloop.c: New file.
16017 * hw-doloop.h: New file.
16018 * Makefile.in (OBJS): Add hw-doloop.o.
16019 (hw-doloop.o): New rule.
16020 ($(obj_out_file)): Add hw-doloop.h dependency.
16021 * config/bfin/bfin.c: Include "hw-doloop.h".
16022 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
16023 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
16024 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
16025 type changed to hwloop_info. Return bool, true if the loop was
16026 successfully optimized. Remove code that was moved to
16027 hw-doloop.c, and adjust other parts.
16028 (hwloop_fail): New static function, containing parts that used
16029 to be in bfin_optimize_loop.
16030 (bfin_discover_loop, bfin_discover_loops, free_loops,
16031 bfin_reorder_loops): Remove.
16032 (hwloop_pattern_reg): New static function.
16033 (bfin_doloop_hooks): New variable.
16034 (bfin_reorg_loops): Remove most code, call reorg_loops.
16035 * config/bfin/bfin.md (doloop_end splitter): Also enable if
16036 loop counter is a memory_operand.
16037
f0ea7581
L
160382011-07-07 H.J. Lu <hongjiu.lu@intel.com>
16039
f9610d20 16040 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
16041
16042 * configure.ac: Mention x86-64 for --with-multilib-list.
16043 * configure: Regenerated.
16044
16045 * config/i386/gnu-user64.h (SPEC_64): Support x32.
16046 (SPEC_32): Likewise.
16047 (ASM_SPEC): Likewise.
16048 (LINK_SPEC): Likewise.
16049 (TARGET_THREAD_SSP_OFFSET): Likewise.
16050 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
16051 (SPEC_X32): New.
16052
16053 * config/i386/i386.h (TARGET_X32): New.
16054 (TARGET_LP64): New.
16055 (LONG_TYPE_SIZE): Likewise.
16056 (POINTER_SIZE): Likewise.
16057 (POINTERS_EXTEND_UNSIGNED): Likewise.
16058 (OPT_ARCH64): Support x32.
16059 (OPT_ARCH32): Likewise.
16060
16061 * config/i386/i386.opt (mx32): New.
16062
16063 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
16064 (GLIBC_DYNAMIC_LINKERX32): Likewise.
16065 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
16066 (GLIBC_DYNAMIC_LINKERX32): Likewise.
16067
16068 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
16069 (BIONIC_DYNAMIC_LINKERX32): Likewise.
16070 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
16071
16072 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
16073
f9610d20 16074 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
16075
16076 * doc/invoke.texi: Document -mx32.
16077
38460025
RS
160782011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
16079
16080 * doc/invoke.texi (mwords-little-endian): Deprecate.
16081 * config/arm/arm.opt (mwords-little-endian): Likewise.
16082 * config/arm/arm.c (arm_option_override): Warn about the deprecation
16083 of -mwords-little-endian.
16084
3f125532
RS
160852011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
16086
16087 * reload1.c (choose_reload_regs): Use mode sizes to check whether
16088 an old reload register completely defines the required value.
16089
bbc210ab
RG
160902011-07-07 Richard Guenther <rguenther@suse.de>
16091
16092 * fold-const.c (fold_unary_loc): Do not strip sign-changes
16093 for NEGATE_EXPR.
16094
29c5134a
RG
160952011-07-07 Richard Guenther <rguenther@suse.de>
16096
16097 * tree-vrp.c (simplify_conversion_using_ranges): New function.
16098 (simplify_stmt_using_ranges): Call it.
16099
0816a42a
KT
161002011-07-07 Kai Tietz <ktietz@redhat.com>
16101
16102 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
16103 (lookup_logical_inverted_value): Likewise.
16104 (simplify_bitwise_binary_1): Likewise.
16105 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
16106
3ce9f090
JM
161072011-07-07 Joseph Myers <joseph@codesourcery.com>
16108
16109 * gcc.c (%[Spec]): Don't document.
16110 (struct spec_list): Update comment.
16111 (do_spec_1): Don't handle %[Spec].
16112 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
16113
41dfca87
JM
161142011-07-07 Joseph Myers <joseph@codesourcery.com>
16115
16116 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
16117 default based on TARGET_ASM_NAMED_SECTION.
16118 * common/common-target.def (have_named_sections): Default to true.
16119 * common/config/default-common.c: Don't include tm.h.
16120 * common/config/picochip/picochip-common.c
16121 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
16122 * common/config/m32c/m32c-common.c: Remove.
16123 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
16124 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16125 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16126 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 16127 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
16128 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
16129 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 16130
19c44640
JJ
161312011-07-07 Jakub Jelinek <jakub@redhat.com>
16132
16133 PR middle-end/49640
f9610d20
UB
16134 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
16135 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 16136
891a2e42
RO
161372011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16138
16139 PR libmudflap/49550
16140 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
16141
fbdd5d87
RO
161422011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16143
16144 PR target/39150
16145 * configure.ac (gcc_cv_as_hidden): Also accept
16146 x86_64-*-solaris2.1[0-9]*.
16147 (gcc_cv_as_cfi_directive): Likewise.
16148 (gcc_cv_as_comdat_group_group): Likewise.
16149 (set_have_as_tls): Likewise.
16150 * configure: Regenerate.
16151 * config.gcc (i[34567]86-*-solaris2*): Also handle
16152 x86_64-*-solaris2.1[0-9]*.
16153 * config.host (i[34567]86-*-solaris2*): Likewise.
16154 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
16155 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
16156 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
16157 (TARGET_LD_EMULATION): Use it.
16158 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
16159 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
16160 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
16161 (ASM_CPU64_DEFAULT_SPEC): Define.
16162 (ASM_CPU_SPEC): Use %(asm_cpu_default).
16163 (ASM_SPEC): Redefine.
16164 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
16165 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 16166 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
16167 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
16168 configuration.
16169 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
16170
fcf7471a
RO
161712011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16172
16173 * config/sol2.h (ASM_SPEC): Split into ...
16174 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
16175 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
16176 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
16177 (ASM_SPEC): Use ASM_SPEC_BASE.
16178 * config/sparc/sol2.h (ASM_SPEC): Redefine.
16179
1e6a67d1 161802011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 16181
1e6a67d1
GJL
16182 * config/avr/avr.md (*reload_insi): Change predicate #1 to
16183 const_int_operand. Ditto for peep2 producing this insn.
16184 Add argument to output_reload_insisf call.
16185 (*movsi,*movsf): Add argument to output_movsisf call.
16186 (*reload_insf): New insn and new peep2 to produce it.
16187 * config/avr/avr-protos.h (output_movsisf): Change prototype.
16188 (output_reload_insisf): Change prototype.
16189 * config/avr/avr.c (avr_asm_len): New function.
16190 (output_reload_insisf): Rewrite.
16191 (output_movsisf): Change prototype. output_reload_insisf for
16192 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
16193 (adjust_insn_length): Add argument to output_movsisf and
16194 output_reload_insisf call.
16195
6a4bdc79
BS
161962011-07-07 Bernd Schmidt <bernds@codesourcery.com>
16197
16198 * emit-rtl.c (paradoxical_subreg_p): New function.
16199 * rtl.h (paradoxical_subreg_p): Declare.
16200 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
16201 apply_distributive_law, simplify_comparison, simplify_set): Use it.
16202 * cse.c (record_jump_cond, cse_insn): Likewise.
16203 * expr.c (force_operand): Likewise.
16204 * rtlanal.c (num_sign_bit_copies1): Likewise.
16205 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
16206 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
16207 (push_reload): Use precision to check for paradoxical subregs.
16208 * expmed.c (extract_bit_field_1): Likewise.
16209
46c9550f
BS
16210 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
16211 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
16212 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
16213 simplify_set, simplify_logical, expand_compound_operation,
16214 make_extraction, force_to_mode, if_then_else_cond, extended_count,
16215 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
16216 record_value_for_reg): Likewise.
16217 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
16218 * simplify-rtx. c (simplify_unary_operation_1,
16219 simplify_binary_operation_1, simplify_const_relational_operation):
16220 Likewise.
16221
5511bc5a
BS
16222 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
16223 instead of GET_MODE_BITSIZE where appropriate.
16224 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
16225 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
16226 init_num_sign_bit_copies_in_rep): Likewise.
16227 * cse.c (fold_rtx, cse_insn): Likewise.
16228 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
16229 * simplify-rtx.c (simplify_unary_operation_1,
16230 simplify_const_unary_operation, simplify_binary_operation_1,
16231 simplify_const_binary_operation, simplify_ternary_operation,
16232 simplify_const_relational_operation, simplify_subreg): Likewise.
16233 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
16234 simplify_if_then_else, simplify_set, expand_compound_operation,
16235 expand_field_assignment, make_extraction, if_then_else_cond,
16236 make_compound_operation, force_to_mode, make_field_assignment,
16237 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
16238 extended_count, try_widen_shift_mode, simplify_shift_const_1,
16239 simplify_comparison, record_promoted_value, simplify_compare_const,
16240 record_dead_and_set_regs_1): Likewise.
16241
d58c1a38
BS
16242 Revert:
16243 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
16244 shift_truncation_mask hook instead of performing modulo by width.
16245 Compare against mode precision, not bitsize.
d58c1a38 16246 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 16247 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 16248
76594d53
MM
162492011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16250
16251 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
16252 declaration.
16253 (rs6000_save_toc_in_prologue_p): Ditto.
16254
16255 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
16256 up the static chain (r11) during indirect function calls.
16257 (-msave-toc-indirect): New undocumented debug switch.
16258
16259 * config/rs6000/rs6000.c (struct machine_function): Add
16260 save_toc_in_prologue field to note whether the prologue needs to
16261 save the TOC value in the reserved stack location.
16262 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
16263 to save the TOC in the prologue, do so.
16264 (rs6000_trampoline_init): Don't allow creating AIX style
16265 trampolines if -mno-r11 is in effect.
16266 (rs6000_call_indirect_aix): New function to create AIX style
16267 indirect calls, adding support for -mno-r11 to suppress loading
16268 the static chain, and saving the TOC in the prologue instead of
16269 the call body.
16270 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
16271 TOC in the prologue.
16272
16273 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
16274 register numbers.
16275 (TOC_REGNUM): Ditto.
16276 (STATIC_CHAIN_REGNUM): Ditto.
16277 (ARG_POINTER_REGNUM): Ditto.
16278 (SFP_REGNO): Delete, unused.
16279 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
16280 function descriptor offsets.
16281 (TOC_SAVE_OFFSET_64BIT): Ditto.
16282 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
16283 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
16284 (AIX_FUNC_DESC_SC_32BIT): Ditto.
16285 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
16286 (ptrload): New mode attribute for the appropriate load of a pointer.
16287 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
16288 (call_indirect_aix64): Ditto.
16289 (call_value_indirect_aix32): Ditto.
16290 (call_value_indirect_aix64): Ditto.
16291 (call_indirect_nonlocal_aix32_internal): Ditto.
16292 (call_indirect_nonlocal_aix32): Ditto.
16293 (call_indirect_nonlocal_aix64_internal): Ditto.
16294 (call_indirect_nonlocal_aix64): Ditto.
16295 (call): Rewrite AIX indirect function calls. Add support for
16296 eliminating the static chain, and for moving the save of the TOC
16297 to the function prologue.
16298 (call_value): Ditto.
16299 (call_indirect_aix<ptrsize>): Ditto.
16300 (call_indirect_aix<ptrsize>_internal): Ditto.
16301 (call_indirect_aix<ptrsize>_internal2): Ditto.
16302 (call_indirect_aix<ptrsize>_nor11): Ditto.
16303 (call_value_indirect_aix<ptrsize>): Ditto.
16304 (call_value_indirect_aix<ptrsize>_internal): Ditto.
16305 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
16306 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
16307 (call_nonlocal_aix32): Relocate in the rs6000.md file.
16308 (call_nonlocal_aix64): Ditto.
16309
16310 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
16311 -mno-r11 documentation.
16312
49d6830d
JW
163132011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
16314
16315 PR other/49658
16316 * doc/extend.texi (Compound Literals): Fix typo.
16317
c884924f
JG
163182011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
16319
f9610d20 16320 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 16321
bf588455
BS
163222011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
16323
16324 * configure.ac (plugin-version.h): Generate
16325 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
16326 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
16327 macros.
16328
16329 * configure: Regenerate.
16330
16331 * doc/plugins.texi (Building GCC plugins): Mention
16332 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
16333
d0edd768
BS
163342011-07-06 Bernd Schmidt <bernds@codesourcery.com>
16335
16336 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
16337 * combine.c (make_extraction, gen_lowpart_or_truncate,
16338 apply_distributive_law, simplify_comparison,
16339 reg_truncated_to_mode, record_truncated_value): Use it.
16340 * cse.c (notreg_cost): Likewise.
16341 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16342 * expr.c (convert_move, convert_modes): Likewise.
16343 * optabs.c (expand_binop, expand_unop): Likewise.
16344 * postreload.c (move2add_last_label): Likewise.
16345 * regmove.c (optimize_reg_copy_3): Likewise.
16346 * rtlhooks.c (gen_lowpart_general): Likewise.
16347 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
16348
e5cabdfb
JM
163492011-07-06 Joseph Myers <joseph@codesourcery.com>
16350
16351 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
16352
2d0c270f
BS
163532011-07-06 Bernd Schmidt <bernds@codesourcery.com>
16354
16355 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
16356 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
16357 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
16358 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
16359 simplify_const_binary_operation, simplify_const_relational_operation):
16360 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
16361 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
16362 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
16363 simplify_shift_const_1, simplify_comparison): Likewise.
16364 * expr.c (convert_modes): Likewise.
16365 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 16366 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
16367 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
16368
f9c08345
BS
16369 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
16370
6d6c9525
RG
163712011-07-06 Richard Guenther <rguenther@suse.de>
16372
16373 PR tree-optimization/49645
16374 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
16375 register variables.
16376 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
16377 in type qualification here ...
16378 (copy_reference_ops_from_ref): ... not here.
16379 (vn_reference_lookup_3): ... or here.
16380 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
16381 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
16382
d1a6ec10
ILT
163832011-07-06 Ian Lance Taylor <iant@google.com>
16384
16385 * doc/install.texi (Configuration): It's
16386 --enable-gnu-indirect-function, not --enable-indirect-function.
16387
ff3e08af
BS
163882011-07-06 Bernd Schmidt <bernds@codesourcery.com>
16389
16390 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
16391 shift_truncation_mask hook instead of performing modulo by width.
16392 Compare against mode precision, not bitsize.
ff3e08af 16393 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 16394 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 16395
a369b639
L
163962011-07-06 H.J. Lu <hongjiu.lu@intel.com>
16397
16398 PR middle-end/47383
16399 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
16400 address computation and convert to address_mode if needed.
16401
1a072294
RG
164022011-07-06 Richard Guenther <rguenther@suse.de>
16403
16404 * tree.c (build_common_tree_nodes_2): Merge with
16405 build_common_tree_nodes.
16406 * tree.h (build_common_tree_nodes): Adjust prototype.
16407 (build_common_tree_nodes_2): Remove.
16408 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
16409 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
16410
f2c3a8ce
JJ
164112011-07-05 Jakub Jelinek <jakub@redhat.com>
16412
16413 PR tree-optimization/49618
16414 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
16415 t recurse on the decl.
16416 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
16417 return true if expr isn't known to be defined in current
16418 TU or some other LTO partition.
16419
3aa439ed
MM
164202011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
16421
16422 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
16423 override CASE_VALUES_THRESHOLD.
16424
16425 * stmt.c (toplevel): Include params.h.
16426 (case_values_threshold): Use the --param case-values-threshold
16427 value if non-zero, otherwise use machine dependent value.
16428 (expand_case): Use case_values_threshold.
16429
16430 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
16431
16432 * doc/invoke.texi (--param case-values-threshold): Document.
16433
49956667
RH
164342011-07-05 Richard Henderson <rth@redhat.com>
16435
16436 * dwarf2out.c (dwarf2out_cfi_label): Make static.
16437 (dwarf2out_flush_queued_reg_saves): Make static.
16438 (dwarf2out_reg_save): Remove.
16439 (dwarf2out_return_save): Remove.
16440 (dwarf2out_return_reg): Remove.
16441 (dwarf2out_reg_save_reg): Remove.
16442 (dwarf2out_def_cfa): Merge into ...
16443 (dwarf2out_frame_init): ... here.
16444 * dwarf2out.h, tree.h: Remove declarations as necessary.
16445
9f2ff8e5
RH
164462011-07-05 Richard Henderson <rth@redhat.com>
16447
c2b40eba
RH
16448 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
16449 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16450 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
16451 the alloc insn.
16452
7d3c6cd8
RH
16453 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
16454 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
16455 (process_epilogue): Don't call dwarf2out_def_cfa.
16456
5f740973
RH
16457 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
16458 indicate the return address save.
16459 (process_cfa_register): Likewise.
16460
a1880147
RH
16461 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
16462 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
16463
9f2ff8e5
RH
16464 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
16465 for ar.pfs save at alloc insn.
16466
ddc6e7d6
RH
164672011-07-05 Richard Henderson <rth@redhat.com>
16468
16469 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
16470 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
16471 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
16472 stack pointer save.
16473 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
16474 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
16475 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
16476 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
16477
a3515605
RH
164782011-07-05 Richard Henderson <rth@redhat.com>
16479
16480 * config/vax/vax.md (define_c_enum unspecv): New. Define the
16481 VUNSPEC_* constants here instead of via define_constants.
16482 (VUNSPEC_PEM): New constant.
16483 (procedure_entry_mask): New insn.
16484 (prologue): New expander.
16485 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
16486 (vax_expand_prologue): Rename from vax_output_function_prologue;
16487 emit rtl instead of text.
16488 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
16489 (print_operand): Add 'x' prefix.
16490
a7adbbcb
L
164912011-07-05 H.J. Lu <hongjiu.lu@intel.com>
16492
16493 PR middle-end/47715
16494 * calls.c (precompute_register_parameters): Promote the function
16495 argument before checking non-legitimate constant.
16496
cec11ec4
SP
164972011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16498
16499 PR tree-optimization/47654
16500 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
16501 (lst_do_strip_mine_loop): Return an int.
16502 (lst_do_strip_mine): Same.
16503 (scop_do_strip_mine): Same.
16504 (scop_do_block): Loop blocking should strip-mine at least two loops.
16505 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
16506 (scop_do_interchange): Same.
16507 * graphite-poly.h (scop_do_interchange): Update declaration.
16508 (scop_do_strip_mine): Same.
16509
9b0d314a
SP
165102011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16511
16512 * graphite-clast-to-gimple.c (precision_for_value): Removed.
16513 (precision_for_interval): Removed.
16514 (gcc_type_for_interval): Use mpz_sizeinbase.
16515
81d6d080
SP
165162011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16517
16518 * graphite-ppl.h (value_max): Correct computation of max.
16519
369e3430
SP
165202011-07-05 Sebastian Pop <sebastian.pop@amd.com>
16521
16522 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
16523
fce5dddd
RG
165242011-07-05 Richard Guenther <rguenther@suse.de>
16525
16526 * c-decl.c (c_init_decl_processing): Defer building common
16527 tree nodes to c_common_nodes_and_builtins.
16528
12037899
RL
165292011-07-05 Razya Ladelsky <razya@il.ibm.com>
16530
16531 PR tree-optimization/49580
f9610d20 16532 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 16533 the loop's number of iterations.
f9610d20
UB
16534 * tree-parloops.c (transform_to_exit_first_loop): Add the
16535 handling of the loop's number of iterations before the call
12037899 16536 to gimple_duplicate_sese_tail.
28b21ebb 16537 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
16538 condition stmt to the preheader instead of iters_bb.
16539
509a31f8
L
165402011-07-05 H.J. Lu <hongjiu.lu@intel.com>
16541
16542 PR rtl-optimization/47449
16543 * fwprop.c (forward_propagate_subreg): Don't propagate hard
16544 register nor zero/sign extended hard register.
16545
39becbac
RG
165462011-07-05 Richard Guenther <rguenther@suse.de>
16547
16548 PR tree-optimization/49518
16549 PR tree-optimization/49628
16550 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
16551 irrelevant and invariant data-references.
16552 (vect_analyze_data_ref_access): For invariant loads clear the
16553 group association.
16554
15923c25
JJ
165552011-07-04 Jakub Jelinek <jakub@redhat.com>
16556
af421d9c
JJ
16557 PR rtl-optimization/49619
16558 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
16559 pass VOIDmode as op0_mode to recursive call, and return temp even
16560 when different from tor, just if it is not IOR of the original
16561 PLUS arguments.
16562
707f9919
JJ
16563 PR rtl-optimization/49472
16564 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
16565 negating MULT, negate the second operand instead of first.
16566 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
16567 a NEG and the other is MULT, don't attempt to optimize by negation
16568 of the MULT operand if it only moves the NEG operation around.
707f9919 16569
15923c25
JJ
16570 PR debug/49602
16571 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
16572 get_current_def return value if it can't be trusted to be
16573 the current value of the variable in the current bb.
16574
0d5e0c1b
UB
165752011-07-04 Uros Bizjak <ubizjak@gmail.com>
16576
16577 PR target/49600
16578 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
16579 general register to memory for !TARGET_INTER_UNIT_MOVES.
16580
db297e20
GJL
165812011-07-04 Georg-Johann Lay <avr@gjlay.de>
16582
16583 PR target/44643
16584 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
16585 instead of TREE_READONLY.
16586
f451d14d
GJL
165872011-07-04 Georg-Johann Lay <avr@gjlay.de>
16588
16589 * doc/extend.texi (AVR Built-in Functions): Update documentation
16590 of __builtin_avr_fmul*.
0d5e0c1b 16591 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
16592 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
16593 * config/avr/avr.md (fmul): Rename to fmul_insn.
16594 (fmuls): Rename to fmuls_insn.
16595 (fmulsu): Rename to fmulsu_insn.
16596 (fmul,fmuls,fmulsu): New expander.
16597 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
16598 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
16599 * config/avr/libgcc.S (__fmul): New function.
16600 (__fmuls): New function.
16601 (__fmulsu,__fmulsu_exit): New function.
16602
30f1e6de
RG
166032011-07-04 Richard Guenther <rguenther@suse.de>
16604
16605 PR tree-optimization/49615
16606 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
16607 basic-block index check.
16608
6dab9931
GJL
166092011-07-04 Georg-Johann Lay <avr@gjlay.de>
16610
16611 * longlong.h (count_leading_zeros, count_trailing_zeros,
16612 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
16613 resp. 64.
16614
b5066d8b
IR
166152011-07-03 Ira Rosen <ira.rosen@linaro.org>
16616
16617 PR tree-optimization/49610
16618 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
16619 a basic block.
16620
bc712852
EB
166212011-07-02 Eric Botcazou <ebotcazou@adacore.com>
16622 Olivier Hainque <hainque@adacore.com>
16623 Nicolas Setton <setton@adacore.com>
16624
16625 * tree.h (TYPE_ARTIFICIAL): New flag.
16626 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
16627 the DIE of the type if it is artificial.
16628 (gen_array_type_die): Likewise.
16629 (gen_enumeration_type_die): Likewise.
16630 (gen_struct_or_union_type_die): Likewise.
16631 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
16632 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
16633
8b1bdcc5
JJ
166342011-07-01 Jakub Jelinek <jakub@redhat.com>
16635
16636 * tree-object-size.c (pass_through_call): Handle
16637 BUILT_IN_ASSUME_ALIGNED.
16638
06e88d73
MJ
166392011-07-01 Martin Jambor <mjambor@suse.cz>
16640
16641 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
16642
6bbec3e1
L
166432011-07-01 H.J. Lu <hongjiu.lu@intel.com>
16644
16645 PR middle-end/48016
16646 * explow.c (update_nonlocal_goto_save_area): Use proper mode
16647 for stack save area.
16648 * function.c (expand_function_start): Likewise.
16649
e8fdf1cd
RG
166502011-07-01 Richard Guenther <rguenther@suse.de>
16651
16652 PR middle-end/49596
16653 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
16654 may have unknown refs.
16655
80d3dd38
KT
166562011-07-01 Kai Tietz <ktietz@redhat.com>
16657
16658 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
16659
179fc656
RO
166602011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16661
16662 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
16663 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
16664 (Specific, mips-sgi-irix6): Likewise.
16665
14a393a3
RO
166662011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16667
16668 PR libmudflap/49549
16669 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
16670
3aecd443
JJ
166712011-07-01 Jakub Jelinek <jakub@redhat.com>
16672
16673 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
16674 [idx]= and [idx1 ... idx2]= before initializers if needed for
16675 array initializers.
16676
7474f719
CL
166772011-07-01 Chen Liqin <liqin.gcc@gmail.com>
16678
16679 * config.gcc (score-*-elf): Remove score7.o.
16680 * config/score/t-score-elf: Likewise.
16681 * config/score/score.c: Merge score7 to score.c and
16682 remove forwarding functions.
16683 * config/score/score7.c: Deleted.
16684 * config/score/score7.h: Deleted.
16685
ab70d825
RG
166862011-07-01 Richard Guenther <rguenther@suse.de>
16687
16688 PR tree-optimization/49603
0d5e0c1b 16689 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 16690
1ac93f10
MJ
166912011-06-30 Martin Jambor <mjambor@suse.cz>
16692
16693 * tree-sra.c (struct access): Rename total_scalarization to
16694 grp_total_scalarization
16695 (completely_scalarize_var): New function.
16696 (sort_and_splice_var_accesses): Set total_scalarization in the
16697 representative access.
16698 (analyze_access_subtree): Propagate total scalarization accross the
16699 tree, no holes in totally scalarized trees, simplify coverage
16700 computation.
16701 (analyze_all_variable_accesses): Call completely_scalarize_var instead
16702 of completely_scalarize_record.
16703
97f309c3
RH
167042011-06-30 Richard Henderson <rth@redhat.com>
16705
16706 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
16707 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
16708 * config/i386/i386.c: Don't include dwarf2out.h.
16709 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
16710 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
16711 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
16712 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
16713 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
16714
ef284364
RH
167152011-06-30 Richard Henderson <rth@redhat.com>
16716
16717 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
16718 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16719 * final.c (final_scan_insn): Look for it, and invoke
16720 dwarf2out_frame_debug before the insn if found.
16721
c8412f97
RH
167222011-06-30 Richard Henderson <rth@redhat.com>
16723
16724 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
16725 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
16726
e3f903d8
RH
167272011-06-30 Richard Henderson <rth@redhat.com>
16728
16729 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
16730 Define a vector of this type.
16731 (regs_saved_in_regs): Use a VEC.
16732 (num_regs_saved_in_regs): Remove.
16733 (compare_reg_or_pc): New.
16734 (record_reg_saved_in_reg): Split out from...
16735 (dwarf2out_flush_queued_reg_saves): ... here.
16736 (clobbers_queued_reg_save): Update for VEC.
16737 (reg_saved_in): Likewise.
16738 (dwarf2out_frame_debug_init): Likewise.
16739 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
16740 (dwarf2out_frame_debug_cfa_register): Likewise.
16741
e2c9010a
EB
167422011-06-30 Eric Botcazou <ebotcazou@adacore.com>
16743
16744 PR tree-optimization/49572
16745 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
16746 type of the RHS instead of that of the LHS for the expression type.
16747
dbb07bbc
EB
167482011-06-30 Eric Botcazou <ebotcazou@adacore.com>
16749
16750 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
16751 unconditionally.
16752
1565af08
RG
167532011-06-30 Richard Guenther <rguenther@suse.de>
16754
16755 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
16756 * tree-ssa-structalias.c (create_variable_info_for): Do not
16757 add initial constraints for non-var-decls. Properly handle
16758 globals in other ltrans partitions.
16759 (intra_create_variable_infos): Manually create constraints for
16760 the fake no-alias parameter.
16761 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
16762 and assert there are no clones.
16763
42373e0b
RG
167642011-06-30 Richard Guenther <rguenther@suse.de>
16765
16766 PR tree-optimization/46787
16767 * tree-data-ref.c (dr_address_invariant_p): Remove.
16768 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 16769 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
16770 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
16771 invariant loads.
16772
7aa62ea1
MJ
167732011-06-30 Martin Jambor <mjambor@suse.cz>
16774
16775 PR tree-optimization/49094
16776 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
16777 (build_accesses_from_assign): Use it.
16778
f60f32b3
JJ
167792011-06-30 Jakub Jelinek <jakub@redhat.com>
16780
d9048d16
JJ
16781 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
16782 handling of BUILT_IN_ASSUME_ALIGNED.
16783
f60f32b3
JJ
16784 PR debug/49364
16785 * dwarf2out.c (output_abbrev_section): Don't return early
16786 if abbrev_die_table_in_use is 1.
16787 (dwarf2out_finish): Instead don't call output_abbrev_section
16788 nor emit abbrev_section_label in that case.
16789
7cce15d4
NC
167902011-06-30 Nick Clifton <nickc@redhat.com>
16791
16792 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
16793 for the V850E.
16794
ce7e54ff
JJ
167952011-06-30 Jakub Jelinek <jakub@redhat.com>
16796
16797 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
16798 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
16799
83197f37
IR
168002011-06-30 Ira Rosen <ira.rosen@linaro.org>
16801
16802 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
16803 both pattern and original statements if necessary.
16804 (vect_transform_loop): Likewise.
16805 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
16806 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
16807 Mark the pattern statement only if the original statement doesn't
16808 have its own uses.
16809 (process_use): Call vect_mark_relevant with additional parameter.
16810 (vect_mark_stmts_to_be_vectorized): Likewise.
16811 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
16812 (vect_analyze_stmt): Handle both pattern and original statements
16813 if necessary.
16814 (vect_transform_stmt): Don't store vectorized pattern statement
16815 in the original statement.
16816 (vect_is_simple_use_1): Use related pattern statement only if the
16817 original statement is irrelevant.
16818 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
16819
dbb07bbc 168202011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 16821
dbb07bbc
EB
16822 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
16823 option.
16824 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
16825 entry.
5c0d88e6
CF
16826 (TARGET_AVX128_OPTIMAL): New definition.
16827 * config/i386/i386.c (initial_ix86_tune_features): Initialize
16828 X86_TUNE_AVX128_OPTIMAL entry.
16829 (ix86_option_override_internal): Enable the generation
16830 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
16831 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
16832 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
16833
931050d0
EB
168342011-06-29 Eric Botcazou <ebotcazou@adacore.com>
16835
16836 PR tree-optimization/49539
16837 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
16838 names by means of stmt_references_abnormal_ssa_name.
16839 (associate_plusminus): Call can_propagate_from before propagating
16840 from definition statements.
16841 (ssa_forward_propagate_and_combine): Remove superfluous newline.
16842
dfedbe40
RG
168432011-06-29 Richard Guenther <rguenther@suse.de>
16844
16845 * doc/invoke.texi: Document -scev dump modifier.
16846 * tree-pass.h (TDF_SCEV): New dump flag.
16847 * tree-dump.c (dump_option_value_in): Add scev.
16848 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
16849 * tree-scalar-evolution.c: Likewise.
16850
3a86cfeb
NS
168512011-06-29 Nathan Sidwell <nathan@codesourcery.com>
16852
16853 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
16854 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
16855 (__gnu_unwind_pr_common): Reconstruct additional indirection
16856 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 16857
f3678bfb
UW
168582011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16859
16860 PR rtl-optimization/49114
16861 * reload.c (struct replacement): Remove SUBREG_LOC member.
16862 (push_reload): Do not set it.
16863 (push_replacement): Likewise.
16864 (subst_reload): Remove dead code.
16865 (copy_replacements): Remove assertion.
16866 (copy_replacements_1): Do not handle SUBREG_LOC.
16867 (move_replacements): Likewise.
16868 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
16869 Detect subregs via recursive descent instead of via SUBREG_LOC.
16870
433ba0a5 168712011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 16872
433ba0a5
GJL
16873 * config/avr/avr.c (avr_encode_section_info): Dispatch to
16874 default_encode_section_info.
16875
73f6eabc
RS
168762011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
16877
16878 PR tree-optimization/49545
16879 * builtins.c (get_object_alignment_1): Update function comment.
16880 Do not use DECL_ALIGN for functions, but test
16881 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
16882 * fold-const.c (get_pointer_modulus_and_residue): Don't check
16883 for functions here.
16884 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
16885
a0f33d3a
JJ
168862011-06-29 Jakub Jelinek <jakub@redhat.com>
16887
16888 PR debug/49567
0d5e0c1b
UB
16889 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
16890 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 16891
946c8b23 168922011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 16893
946c8b23 16894 PR target/34734
0d5e0c1b 16895 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
16896 about uninitialized data attributed 'progmem' from here...
16897 (avr_encode_section_info): ...to this new function.
16898 (TARGET_ENCODE_SECTION_INFO): New define.
16899 (avr_section_type_flags): For data in ".progmem.data", remove
16900 section flag SECTION_WRITE.
16901
9a63dee4 169022011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 16903
9a63dee4
GJL
16904 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
16905 _xmulhisi3_exit.
16906 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
16907 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
16908 (__umulhisi3): Ditto.
16909 * config/avr/avr.md (mulhisi3): New insn expender.
16910 (umulhisi3): New insn expender.
16911 (*mulhisi3_call): New insn.
16912 (*umulhisi3_call): New insn.
16913
4374ce45
JM
169142011-06-28 Joseph Myers <joseph@codesourcery.com>
16915
16916 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
16917
94759030
RH
169182011-06-28 Richard Henderson <rth@redhat.com>
16919
16920 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
16921 all code and arguments that handled pushes. Update all callers.
16922
d018b46e
RH
169232011-06-28 Richard Henderson <rth@redhat.com>
16924
16925 * config/arm/arm.c (arm_output_function_prologue): Don't call
16926 thumb1_output_function_prologue.
16927 (arm_expand_prologue): Avoid dead store.
16928 (number_of_first_bit_set): Use ctz_hwi.
16929 (thumb1_emit_multi_reg_push): New.
16930 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
16931 to emit the entire prologue as rtl.
16932 (thumb1_output_interwork): Split out from
16933 thumb1_output_function_prologue.
16934 (thumb1_output_function_prologue): Remove.
16935 (arm_attr_length_push_multi): Handle thumb1.
16936 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
16937 (prologue_thumb1_interwork): New.
16938 (*push_multi): Allow thumb1; use push_mult_memory_operand.
16939 * config/arm/predicates.md (push_mult_memory_operand): New.
16940
97269a23
EB
169412011-06-28 Eric Botcazou <ebotcazou@adacore.com>
16942
16943 * config/sparc/sync.md (*stbar): Delete.
16944 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
16945
4a9206ce
EB
169462011-06-28 Eric Botcazou <ebotcazou@adacore.com>
16947
16948 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
16949
6138f9bd
RO
169502011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16951
16952 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
16953 (TARGET_64BIT_DEFAULT): Define.
16954 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
16955 of tm_file.
16956 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
16957
a7d0d30f
JM
169582011-06-28 Joseph Myers <joseph@codesourcery.com>
16959
16960 * common.opt (in_lto_p): New Variable entry.
16961 * flags.h (in_lto_p): Move to common.opt.
16962 * gcc.c: Include params.h.
16963 (set_option_handlers): Also use common_handle_option and
16964 target_handle_option.
0d5e0c1b 16965 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
16966 * opts.c (debug_type_names): Move from toplev.c.
16967 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
16968 (common_handle_option): Return early in the driver for some options.
16969 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
16970 opts pointer.
a7d0d30f
JM
16971 * toplev.c (in_lto_p): Move to common.opt.
16972 (debug_type_names): Move to opts.c.
16973 * Makefile.in (OBJS): Remove opts.o.
16974 (OBJS-libcommon-target): Add opts.o.
16975 (gcc.o): Update dependencies.
16976
420863a9
KT
169772011-06-28 Kai Tietz <ktietz@redhat.com>
16978
0d5e0c1b 16979 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 16980
0498a2be
RR
169812011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16982
16983 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
16984 with '=' constraint modifier.
16985 (*divdf3_vfp): Likewise.
16986 ("*mulsf3_vfp"): Likewise.
16987 ("*muldf3_vfp"): Likewise.
16988 ("*mulsf3negsf_vfp"): Likewise.
16989 ("*muldf3negdf_vfp"): Likewise.
16990
4a68b724
NC
169912011-06-28 Nick Clifton <nickc@redhat.com>
16992
16993 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
16994 relaxation when performing an incremental link.
16995
72a32729
KT
169962011-06-28 Kai Tietz <ktietz@redhat.com>
16997
16998 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
16999 within BB from last to first.
17000
88a00ef7
JM
170012011-06-28 Joseph Myers <joseph@codesourcery.com>
17002
17003 * genattr-common.c: New. Based on genattr.c.
17004 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
17005 (MOSTLYCLEANFILES): Add insn-attr-common.h.
17006 (opts.o): Update dependencies.
17007 (.PRECIOUS): Add insn-attr-common.h.
17008 (simple_rtl_generated_h): Add insn-attr-common.h.
17009 (build/genattr-common.o): New.
17010 (genprogrtl): Add attr-common.
17011 * genattr.c (main): Include insn-attr-common.h. Don't generate
17012 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 17013 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 17014
880962ac
GJL
170152011-06-28 Georg-Johann Lay <avr@gjlay.de>
17016
4a68b724 17017 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 17018 avr-*-* and avr-*-rtems* targets.
4a68b724 17019
880962ac
GJL
17020 * config/avr/elf.h: New file.
17021 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
17022 (TARGET_ASM_SELECT_SECTION): Define.
17023 (INIT_SECTION_ASM_OP): Undefine.
17024 (FINI_SECTION_ASM_OP): Undefine.
17025 (READONLY_DATA_SECTION_ASM_OP): Undefine.
17026 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
17027 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
17028 * config/avr/avr.h:
17029 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
17030 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
17031 (MAX_OFILE_ALIGNMENT): Move to elf.h.
17032 (STRING_LIMIT): Move to elf.h.
17033 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
17034 (ASM_DECLARE_OBJECT_NAME): Remove.
17035 (ESCAPES): Remove.
17036 (ASM_OUTPUT_SKIP): Remove.
17037 (DWARF2_DEBUGGING_INFO): Remove.
17038 (OBJECT_FORMAT_ELF): Remove.
17039 (USER_LABEL_PREFIX): Remove.
17040 (ASM_OUTPUT_EXTERNAL): Remove.
17041 (ASM_OUTPUT_ASCII): Remove.
17042 (TYPE_ASM_OP): Remove.
17043 (SIZE_ASM_OP): Remove.
17044 (WEAK_ASM_OP): Remove.
17045 (STRING_ASM_OP): Remove.
17046 (SET_ASM_OP): Remove.
17047 (ASM_WEAKEN_LABEL): Remove.
17048 (TYPE_OPERAND_FMT): Remove.
17049 (ASM_DECLARE_FUNCTION_SIZE): Remove.
17050 (ASM_FINISH_DECLARE_OBJECT): Remove.
17051 (NO_DOLLAR_IN_LABEL): Remove.
17052 (ASM_GENERATE_INTERNAL_LABEL): Remove.
17053 (ASM_OUTPUT_CASE_LABEL): Remove.
17054 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
17055 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
17056 (gas_output_ascii): Remove.
17057 (gas_output_limited_string): Remove.
17058 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
17059 * config/avr/avr-protos.h
17060 (gas_output_ascii): Remove prototye.
17061 (gas_output_limited_string): Remove prototype.
17062
a1b5eb93
RE
170632011-06-27 Richard Earnshaw <rearnsha@arm.com>
17064
17065 PR target/48637
17066 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
17067 asm operands.
17068
310e71a8
JH
170692011-06-27 Jan Hubicka <jh@suse.cz>
17070
4a9206ce
EB
17071 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
17072 node instead of references in node.
310e71a8 17073
171da07a
RH
170742011-06-27 Richard Henderson <rth@redhat.com>
17075
17076 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
17077 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
17078 inside ifdef.
17079
dc2a58da
JJ
170802011-06-27 Jakub Jelinek <jakub@redhat.com>
17081
56300785
JJ
17082 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
17083
45d439ac
JJ
17084 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
17085 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
17086 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
17087 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
17088 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
17089 (evaluate_stmt, execute_fold_all_builtins): Handle
17090 BUILT_IN_ASSUME_ALIGNED.
17091 * tree-ssa-dce.c (propagate_necessity): Likewise.
17092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17093 call_may_clobber_ref_p_1): Likewise.
17094 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
17095 (expand_builtin_assume_aligned): New function.
17096 * doc/extend.texi (__builtin_assume_aligned): Document.
17097
dc2a58da
JJ
17098 PR debug/49544
17099 * cselib.c (promote_debug_loc): If cselib_preserve_constants
17100 and l has two DEBUG_INSN owned locs instead of just one, adjust
17101 the second location's setting_insn too.
17102
0d72f628
RO
171032011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17104
17105 PR libmudflap/38738
17106 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
17107
bebd619e
NC
171082011-06-27 Nick Clifton <nickc@redhat.com>
17109
0d5e0c1b
UB
17110 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
17111 bit position of highest bit set into a count of the high zero bits.
bebd619e 17112
353b39fa
EB
171132011-06-27 Eric Botcazou <ebotcazou@adacore.com>
17114
17115 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
17116
a7af037b
EB
171172011-06-27 Eric Botcazou <ebotcazou@adacore.com>
17118
17119 PR lto/48492
17120 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
17121 to a NULL parent.
17122
1c86160a
RG
171232011-06-27 Richard Guenther <rguenther@suse.de>
17124
17125 PR tree-optimization/49394
17126 * passes.c (execute_one_pass): Restore current_pass after
17127 applying IPA transforms.
17128
5da49a9d
KT
171292011-06-27 Kai Tietz <ktietz@redhat.com>
17130
17131 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
17132 out of type precision after operation.
0d5e0c1b
UB
17133 (find_bswap): Take for limit value the integer auto-promotion
17134 into account.
5da49a9d 17135
9242213f
EB
171362011-06-27 Eric Botcazou <ebotcazou@adacore.com>
17137
17138 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
17139 forward scan as well.
17140
db8b22ef
TG
171412011-06-27 Tristan Gingold <gingold@adacore.com>
17142
17143 PR target/44241
17144 * config/vms/vms-protos.h: New file.
17145 * config/vms/vms-crtlmap.map: New file.
17146 * config/vms/vms.c: New file.
17147 * config/vms/make-crtlmap.awk: New file.
17148 * config/vms/vms-crtl.h: File removed.
17149 * config/vms/vms-crtl-64.h: File removed.
17150 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
17151 * config/alpha/vms64.h: Do not include vms-crtl-64.h
17152 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
17153 clear some builtins on VMS. Calls vms_patch_builtins.
17154 (avms_asm_output_external): Remove.
17155 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
17156 (struct crtl_name_spec): Remove
17157 (DO_CTRL_NAMES): Remove.
17158 * config/ia64/vms.h (struct crtl_name_spec): Remove
17159 (DO_CTRL_NAMES): Remove.
17160 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
17161 clear some builtins on VMS. Calls vms_patch_builtins.
17162 (ia64_asm_output_external): Remove DO_CRTL_NAME.
17163 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 17164 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 17165
b213221d
TG
171662011-06-27 Tristan Gingold <gingold@adacore.com>
17167
17168 * config/alpha/alpha.c (alpha_end_function): Always generate .end
17169 directive on VMS.
17170
157b9300
EB
171712011-06-27 Eric Botcazou <ebotcazou@adacore.com>
17172
17173 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
17174 the function receives nonlocal gotos.
17175
ccbf5bb4
RG
171762011-06-27 Richard Guenther <rguenther@suse.de>
17177
17178 PR tree-optimization/49536
17179 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
17180 For non-scalar inner types use a scalar type according to
17181 the scalar inner mode.
17182
fe4cd14b
RG
171832011-06-27 Richard Guenther <rguenther@suse.de>
17184
17185 PR tree-optimization/49365
17186 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
17187
afc3f22f
RS
171882011-06-27 Richard Guenther <rguenther@suse.de>
17189
17190 PR tree-optimization/49169
17191 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
17192 the alignment of function decls.
17193
92590751 171942011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
17195
17196 PR target/47997
17197 * config/darwin.c (darwin_mergeable_string_section): Place string
17198 constants in '.cstring' rather than '.const' when CF/NSStrings are
17199 active.
17200
605354f3
EB
172012011-06-26 Eric Botcazou <ebotcazou@adacore.com>
17202
17203 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
17204 (emit_save_register_window): Likewise.
17205 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
17206 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
17207 Swap back %o7/%i7 in register naming.
17208
0e9197f5
IS
172092011-06-25 Iain Sandoe <iains@gcc.gnu.org>
17210
17211 PR driver/49371
17212 * config/darwin.c (darwin_override_options): Improve warning when
17213 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
17214 is given with fpie/fPIE.
17215 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
17216 * config/darwin9.h (PIE_SPEC): New.
53461199 17217
605354f3 172182011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
17219
17220 * timevar.c (timevar_print): Increase width for display of timevar
17221 name.
17222
f796c438
JJ
172232011-06-24 Jakub Jelinek <jakub@redhat.com>
17224
17225 PR c++/46400
17226 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
17227 instead of TYPE_CHAIN for chain_next for types.
17228
a7289eaf
RH
172292011-06-24 Richard Henderson <rth@redhat.com>
17230
17231 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
17232 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
17233 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
17234 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
17235 (sparc_flat_expand_prologue): Emit individual instructions
17236 instead of one of the above.
17237
c4b9a87e
ER
172382011-06-24 Easwaran Raman <eraman@google.com>
17239
17240 PR rtl-optimization/49429
17241 PR target/49454
17242 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
17243 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
17244 used to copy y into x.
17245 * calls.c (initialize_argument_information): Mark
17246 an argument addressable if it is passed by invisible reference.
17247 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
17248 if it is passed by reference.
17249
5ac6c59e
L
172502011-06-24 H.J. Lu <hongjiu.lu@intel.com>
17251
17252 PR rtl-optimization/49504
17253 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
17254 subtraction of a pointer in Pmode if pointers extend unsigned.
17255 (num_sign_bit_copies1): Likewise.
5ac6c59e 17256
b807e627
MJ
172572011-06-24 Martin Jambor <mjambor@suse.cz>
17258
17259 PR tree-optimizations/49516
17260 * tree-sra.c (sra_modify_assign): Choose the safe path for
17261 aggregate copies if we also did scalar replacements.
17262
9a1ea4b9
RR
172632011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17264
17265 PR target/49335
17266 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 17267 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 17268
949cfd0a
AK
172692011-06-24 Andi Kleen <ak@linux.intel.com>
17270
17271 * tree-sra.c (type_internals_preclude_sra_p): Add msg
17272 parameter. Split up ifs and report reason in *msg.
17273 (reject): Add.
17274 (find_var_candiate): Add msg variable.
17275 Split up ifs and report reason to reject.
17276 (find_param_candidates): Add msg variable.
17277 Pass msg to type_internals_preclude_sra_p.
17278
49e9c661 172792011-06-23 Jeff Law <law@redhat.com>
ad3577df 17280
b0c11403
JL
17281 PR middle-end/48770
17282 * reload.h (reload): Change to return a bool.
17283 * ira.c (ira): If requested by reload, run a fast DCE pass after
17284 reload has completed. Fix comment typo.
17285 * reload1.c (need_dce): New file scoped static.
17286 (reload): Set reload_completed here. Return whether or not a DCE
17287 pass after reload is needed.
17288 (delete_dead_insn): Set need_dce as needed.
17289
ad3577df
JL
17290 PR middle-end/49465
17291 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
17292 to detect threading through joiner block. If there was already
17293 an edge to the new target, then do not change the PHI nodes.
17294
7cf64710
JJ
172952011-06-23 Jakub Jelinek <jakub@redhat.com>
17296
17297 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
17298 get_pointer_alignment to see if base isn't sufficiently aligned.
17299
febb1302
JH
173002011-06-23 Jan Hubicka <jh@suse.cz>
17301
17302 PR tree-optimize/49373
17303 * tree-pass.h (all_late_ipa_passes): Declare.
17304 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
17305 (cgraph_optimize): Execute late passes; remove unreachable funcions
17306 after materialization.
17307 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
17308 LTOing.
febb1302
JH
17309 * passes.c (all_late_ipa_passes): Declare.
17310 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
17311 (init_optimization_passes): Move ipa_pta to late passes; schedule
17312 fixup_cfg at beggining of all_passes.
febb1302
JH
17313 (apply_ipa_transforms): New function.
17314 (execute_one_pass): When doing simple ipa pass, apply all transforms.
17315
4c77620d
JM
173162011-06-23 Joseph Myers <joseph@codesourcery.com>
17317
17318 * params.c: Include common/common-target.h. Don't include tm.h.
17319 (lang_independent_params): Move from toplev.c.
17320 (global_init_params): New.
17321 * params.h (global_init_params): Declare.
17322 * target.def (default_params): Move to common-target.def.
17323 * toplev.c (lang_independent_options): Remove.
17324 (lang_independent_params): Move to params.c.
17325 (general_init): Use global_init_params.
17326 * common/common-target.def (option_default_params): Move from
17327 target.def.
17328 * common/config/ia64/ia64-common.c: Include params.h.
17329 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17330 from ia64.c.
17331 * common/config/rs6000/rs6000-common.c: Include params.h.
17332 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17333 from rs6000.c.
17334 * common/config/sh/sh-common.c: Include params.h.
17335 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17336 from sh.c.
17337 * common/config/spu/spu-common.c: Include params.h.
17338 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
17339 from spu.c.
17340 * config/ia64/ia64.c (ia64_option_default_params,
17341 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
17342 * config/rs6000/rs6000.c (rs6000_option_default_params,
17343 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
17344 * config/sh/sh.c (sh_option_default_params,
17345 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
17346 * config/spu/spu.c (spu_option_default_params,
17347 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
17348 * Makefile.in (OBJS): Remove params.o.
17349 (OBJS-libcommon-target): Add params.o.
17350 (params.o, $(common_out_object_file)): Update dependencies.
17351 * doc/tm.texi: Regenerate.
17352
6aad1e38
AM
173532011-06-23 Alan Modra <amodra@gmail.com>
17354
17355 PR bootstrap/49383
17356 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
17357 invocation for 2011-06-09 changes.
17358
4fb489e7
JJ
173592011-06-22 Jakub Jelinek <jakub@redhat.com>
17360
fb79f500
JJ
17361 PR libgomp/49490
17362 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
17363 use n ceil/ nthreads size for the first n % nthreads threads in the
17364 team instead of all threads except for the last few ones which
fb79f500
JJ
17365 get less work or none at all.
17366
4fb489e7
JJ
17367 PR debug/49496
17368 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
17369 uses.
17370
9c7c9f10
RG
173712011-06-22 Richard Guenther <rguenther@suse.de>
17372
17373 PR tree-optimization/49493
17374 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
17375 Refer to the alias target of variables.
17376 (associate_varinfo_to_alias_1): Remove.
17377 (ipa_pta_execute): Do not associate aliases with anything.
17378 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
17379 (cgraph_function_node): Likewise.
17380 (cgraph_function_or_thunk_node): Likewise.
17381 (varpool_variable_node): Likewise.
17382
7cf13d1f
NS
173832011-06-22 Nathan Sidwell <nathan@codesourcery.com>
17384
0d5e0c1b 17385 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
17386 * config.gcc (arm*-*-linux*): Default to gnu tls.
17387 (arm*-*-*): Add --with-tls option.
17388 (all_defaults): Add 'tls'.
17389
78a8eb4e
RH
173902011-06-22 Richard Henderson <rth@redhat.com>
17391
17392 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
17393 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17394 (dwarf2out_frame_debug_cfa_window_save): Rename from
17395 dwarf2out_window_save; make static.
17396 * tree.h (dwarf2out_window_save): Don't declare.
17397
17398 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
17399 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
17400 (emit_save_register_window): Rename from gen_save_register_window;
17401 emit the insn and add REG_CFA_* notes.
17402 (sparc_expand_prologue): Update to match.
17403 * config/sparc/sparc.md (save_register_window_1): Simplify from
17404 save_register_window<P:mode>.
17405
3b4c46d7
L
174062011-06-22 H.J. Lu <hongjiu.lu@intel.com>
17407
17408 PR target/49497
17409 * config/i386/i386.md (*lea_general_2): Always allow SImode.
17410 (*lea_general_2_zext): Likewise.
17411 (imul to lea peepholes): Use const359_operand and check
17412 TARGET_PARTIAL_REG_STALL.
17413
17414 * config/i386/predicates.md (const359_operand): New.
17415
4399cf59
MM
174162011-06-22 Michael Matz <matz@suse.de>
17417
17418 * cgraphunit.c (assemble_thunk): Use correct return type.
17419
31a0c825 174202011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 17421 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
17422
17423 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
17424 (neon_output_shift_immediate): Ditto.
17425 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
17426 prototype.
17427 (neon_output_shift_immediate): Ditto.
17428 * config/arm/neon.md (vashl<mode>3): Modified constraint.
17429 (vashr<mode>3_imm): New insn pattern.
17430 (vlshr<mode>3_imm): Ditto.
17431 (vashr<mode>3): Modified constraint.
17432 (vlshr<mode>3): Ditto.
17433 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
17434 predicate.
17435 (imm_for_neon_rshift_operand): Ditto.
17436 (imm_lshift_or_reg_neon): Ditto.
17437 (imm_rshift_or_reg_neon): Ditto.
17438
17439 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
17440
ddb555ed
JJ
174412011-06-22 Jakub Jelinek <jakub@redhat.com>
17442
36dc1a88
JJ
17443 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
17444 builtin calls even if likelyvalue is not CONSTANT.
17445 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
17446 Return get_value_for_expr of first operand
17447 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
17448 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17449 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
17450 their non-checking counterparts.
17451 (call_may_clobber_ref_p_1): Likewise.
17452 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
17453 like their non-checking counterparts.
17454 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17455 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
17456 like their non-checking counterparts.
17457 (find_func_clobbers): Likewise.
17458 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
17459 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
17460
41cd4957
JJ
17461 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
17462 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
17463 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
17464 of base type reference as argument.
17465 (resolve_addr_in_expr): Likewise. Fix keep computation.
17466 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
17467 (convert_descriptor_to_mode): ... this. For wider types convert to
17468 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
17469 (typed_binop): New function.
17470 (scompare_loc_descriptor, ucompare_loc_descriptor,
17471 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
17472 default to unsigned type instead of signed.
17473
ddb555ed
JJ
17474 PR debug/47858
17475 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
17476 (gimple_build_debug_source_bind_stat): New prototype.
17477 (gimple_build_debug_source_bind): Define.
17478 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
17479 gimple_debug_source_bind_get_value,
17480 gimple_debug_source_bind_get_value_ptr,
17481 gimple_debug_source_bind_set_var,
17482 gimple_debug_source_bind_set_value): New inlines.
17483 * gimple.c (gimple_build_debug_source_bind_stat): New function.
17484 * gimple-pretty-print.c (dump_gimple_debug): Handle
17485 GIMPLE_DEBUG_SOURCE_BIND.
17486 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
17487 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17488 * tree-parloops.c (eliminate_local_variables,
17489 separate_decls_in_region): Likewise.
17490 (separate_decls_in_region_debug): Renamed from
17491 separate_decls_in_region_debug_bind. Handle
17492 gimple_debug_source_bind_p.
17493 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
17494 prototypes.
17495 (DECL_HAS_DEBUG_ARGS_P): Define.
17496 (struct tree_function_decl): Add has_debug_args_flag field.
17497 * tree.c (debug_args_for_decl): New variable.
17498 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
17499 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
17500 (rewrite_debug_stmt_uses): New function.
17501 (rewrite_stmt): Use it to rewrite debug stmt uses.
17502 * rtl.def (DEBUG_PARAMETER_REF): New.
17503 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
17504 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
17505 DEBUG_PARAMETER_REF.
17506 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
17507 * print-rtl.c (print_rtx): Likewise.
17508 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
17509 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
17510 debug stmts in the first bb.
17511 * tree-inline.c (remap_ssa_name): If remapping default def
17512 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
17513 a source bind debug stmt.
17514 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
17515 (maybe_move_debug_stmts_to_successors): Likewise.
17516 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
17517 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
17518 debug args vector from old_decl to new_decl.
17519 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
17520 or modified parameters, add debug bind stmts before call
0d5e0c1b 17521 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
17522 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
17523 on DECL_DEBUG_EXPRs from debug args vector.
17524 (expand_debug_source_expr): New function.
17525 (expand_debug_locations): Use it for source bind insns.
17526 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
17527 * var-tracking.c (prepare_call_arguments): Add debug args
17528 to call_arguments if any.
17529 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
17530 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
17531 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
17532 (get_ref_die_offset, parameter_ref_descriptor): New functions.
17533 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
17534 (gen_subprogram_die): Handle parameters identified by
17535 DEBUG_PARAMETER_REF.
17536
ccdc2164
NS
175372011-06-22 Nathan Sidwell <nathan@codesourcery.com>
17538
17539 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
17540 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
17541 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
17542 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
17543 (arm_tls_descseq_addr): New.
17544 (legitimize_tls_address): Add tlsdesc support.
17545 (arm_cannot_copy_insn_p): Check for tlscall.
17546 (arm_emit_tls_decoration): Likewise.
17547 * config/arm/arm.h (TARGET_GNU2_TLS): New.
17548 (OPTION_DEFAULT_SPECS): Add with-tls support.
17549 * config/arm/arm.md (R1_REGNUM): Define.
17550 (tlscall): New.
17551 * config/arm/arm.opt (tls_type): New enumeration type and values.
17552 (mtls-dialect): New switch.
17553 * config/arm/arm-opts.h (enum tls_type): New.
17554
70e41a6a
NP
175552011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
17556
17557 * attribs.c (register_attribute): Added assert to check that all
17558 attribute specs are registered with a name that is not empty and
17559 does not start with '_'.
17560 (decl_attributes): Avoid the lookup of the "naked" attribute spec
17561 if the function has no attributes.
17562 * tree.c (is_attribute_with_length_p): Removed.
17563 (is_attribute_p): Removed.
0d5e0c1b 17564 (private_is_attribute_p): New.
70e41a6a
NP
17565 (private_lookup_attribute): New.
17566 (lookup_attribute): Removed.
17567 (lookup_ident_attribute): New.
17568 (remove_attribute): Require the first argument to be in the form
17569 'text', not '__text__'. Updated asserts.
17570 (merge_attributes): Use lookup_ident_attributes instead of
17571 lookup_attribute.
17572 (merge_dllimport_decl_attributes): Use remove_attribute.
17573 (attribute_list_contained): Likewise.
17574 (attribute_list_equal): Immediately return 1 if the arguments are
17575 identical pointers.
17576 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
17577 'int'. Require the first argument to be in the form 'text', not
17578 '__text__'. Require the second argument to be an identifier.
17579 (lookup_attribute): Made inline. Require the first argument to be
17580 in the form 'text', not '__text__'.
17581 (private_is_attribute_p, private_lookup_attribute): New.
17582 Updated comments.
0d5e0c1b 17583
e0a8ecf2
AM
175842011-06-21 Andrew MacLeod <amacleod@redhat.com>
17585
17586 * builtins.c: Add sync_ or SYNC__ to builtin names.
17587 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
17588 * omp-low.c: Add sync_ or SYNC__ to builtin names.
17589
663827d3 175902011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 17591
663827d3
GJL
17592 PR target/33049
17593 * config/avr/avr.md (extzv): New expander.
17594 (*extzv): New insn.
17595 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
17596 * config/avr/constraints.md (C04): New constraint.
17597 * doc/md.texi (Machine Constraints): Document it.
17598
146aef0b
JJ
175992011-06-21 Jakub Jelinek <jakub@redhat.com>
17600
17601 PR middle-end/49489
17602 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
17603 unsignedp argument instead of 1 for clrsb_optab.
17604 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
17605 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
17606 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
17607 * optabs.c (widen_leading): Call widen_operand and expand_unop
17608 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 17609 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 17610
c0503294
GJL
176112011-06-21 Georg-Johann Lay <avr@gjlay.de>
17612
17613 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
17614
3801c801
BS
176152011-06-21 Bernd Schmidt <bernds@codesourcery.com>
17616
0bddee8e
BS
17617 * gensupport.c (add_define_attr): New static function.
17618 (is_predicable): Allow multi-alternative lists for the "predicable"
17619 attribute.
17620 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
17621 (process_one_cond_exec): Call alter_attrs_for_insn.
17622 * doc/md.texi (Defining Attributes): Mention some standard names.
17623 (Conditional Execution): Update documentation for "predicable".
17624
3801c801
BS
17625 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
17626 __builtin_clrsbll): Document.
17627 * doc/rtl.texi (clrsb): New entry.
17628 * optabs.c (widen_leading): Renamed from widen_clz. New argument
17629 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
17630 (expand_unop): Handle clrsb_optab.
17631 (init_optabs): Initialize it.
17632 * optabs.h (enum optab_index): New entry OTI_clrsb.
17633 (clrsb_optab): Define.
17634 * genopinit.c (optabs): Add an entry for it.
17635 * builtins.c (expand_builtin): Handle clrsb builtin functions.
17636 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
17637 BUILT_IN_CLRSBLL): New.
17638 * rtl.def (CLRSB): New code.
17639 * dwarf2out.c (mem_loc_descriptor): Handle it.
17640 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17641 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
17642 and popcount.
17643 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
17644 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
17645 (__ctzDI2): Move declaration.
17646 * config/bfin/bfin.md (clrsbsi2): New expander.
17647 (signbitssi2): Use the CLRSB rtx.
17648 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
17649 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
17650
55f01229
RG
176512011-06-21 Richard Guenther <rguenther@suse.de>
17652
637c11bd 17653 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 17654
5181cd6a
IR
176552011-06-21 Ira Rosen <ira.rosen@linaro.org>
17656
17657 PR tree-optimization/49478
17658 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
17659 with constant operand.
17660
e4ee3d70
RG
176612011-06-21 Richard Guenther <rguenther@suse.de>
17662
17663 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 17664
7b7ec6c5
RG
176652011-06-21 Richard Guenther <rguenther@suse.de>
17666
17667 PR tree-optimization/49483
17668 * tree-vect-stmts.c (vectorizable_assignment): Also handle
17669 VIEW_CONVERT_EXPR conversions.
17670
1b916ca6
JM
176712011-06-21 Joseph Myers <joseph@codesourcery.com>
17672
17673 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
17674 * config/avr/avr-tables.opt: New file (generated).
17675 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
17676 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
17677 avr-mcus.def.
17678 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
17679 (avr_option_override): Don't process -mmcu= argument here. Set
17680 avr_current_device using avr_mcu_index.
637c11bd 17681 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
17682 * config/avr/avr.opt (mmcu=): Use Enum.
17683 * config/avr/t-avr (avr-devices.o): Update dependencies.
17684 ($(srcdir)/config/avr/avr-tables.opt): New.
17685 * target.def (help): Remove.
17686 * doc/tm.texi.in (TARGET_HELP): Remove.
17687 * doc/tm.texi: Regenerate.
17688 * opts.c: Don't include target.h.
17689 (common_handle_option): Don't call targetm.help.
17690 * system.h (TARGET_HELP): Poison.
17691 * Makefile.in (opts.o): Update dependencies.
17692
7ecfa34f
RO
176932011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17694
17695 * config/usegld.h: New file.
17696 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
17697 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 17698 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
17699 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
17700 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
17701 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
17702 Define.
7ecfa34f
RO
17703 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
17704 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
17705 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
17706 (STACK_CHECK_STATIC_BUILTIN): Define.
17707 * config/sol2.opt (compat-bsd): Remove.
17708 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
17709 * config/sol2-bi.h: New file.
17710 * config/sol2-gld.h: Remove.
17711 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
17712 (NO_DBX_BNSYM_ENSYM): Remove.
17713 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
17714 (STACK_CHECK_STATIC_BUILTIN): Remove.
17715 Test USE_GLD instead of TARGET_GNU_LD.
17716 * config/i386/sol2-10.h: Rename to ...
17717 * config/i386/sol2-bi.h .. this.
17718 (SUBTARGET_EXTRA_SPECS): Redefine.
17719 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
17720 (MULTILIB_DEFAULTS): Remove.
17721 (DEFAULT_ARCH32_P): Define.
17722 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
17723 (ARCH64_SUBDIR): Define.
17724 Test USE_GLD instead of TARGET_GNU_LD.
17725 (I386_EMULATION): Rename to ...
17726 (ARCH32_EMULATION): ... this.
17727 (X86_64_EMULATION): Rename to ...
17728 (ARCH64_EMULATION): ... this.
17729 (TARGET_LD_EMULATION): Remove.
17730 (LINK_ARCH_SPEC): Remove.
17731 * config/i386/sol2-gas.h: Remove.
17732 * config/i386/t-sol2-10: Rename to ...
17733 * config/i386/t-sol2-64: ... this.
17734 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
17735 (AS_SPARC64_FLAG): Define.
17736 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
17737 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
17738 depending on TARGET_CPU_DEFAULT.
17739 (CPP_CPU_SPEC): Redefine.
17740 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
17741 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
17742 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
17743 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
17744 ASM_ARCH_DEFAULT_SPEC): Redefine.
17745 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17746 LINK_ARCH_DEFAULT_SPEC.
17747 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
17748 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
17749 (ARCH64_SUBDIR): Define.
17750 (LINK_ARCH64_SPEC): Redefine.
17751 (CC1_SPEC): Redefine.
17752 (OPTION_DEFAULT_SPECS): Redefine.
17753 (MULTILIB_DEFAULTS): Define.
17754 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
17755 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
17756 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
17757 (NO_DBX_BNSYM_ENSYM): Remove.
17758 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
17759 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
17760 (TARGET_ASM_NAMED_SECTION): Likewise.
17761 (STACK_CHECK_STATIC_BUILTIN): Remove.
17762 * config/sparc/sol2-bi.h: Remove.
17763 * config/sparc/sol2-gas-bi.h: Remove.
17764 * config/sparc/sol2-gas.h: Remove.
17765 * config/sparc/sol2-gld-bi.h: Remove.
17766 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
17767 common parts ...
17768 (*-*-solaris2*): ... here.
17769
4b583c43 177702011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 17771
4b583c43 17772 PR other/43564
637c11bd
UB
17773 * ipa-inline.c (can_inline_edge_p): Check
17774 !DECL_DISREGARD_INLINE_LIMITS.
17775
3bb556ad 177762011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 17777
3bb556ad
CB
17778 PR middle-end/49139
17779 * cgraphunit.c (process_function_and_variable_attributes): warn when
17780 always_inline functions that are not inline.
637c11bd
UB
17781 * ipa-inline-transform.c (inline_transform): Always call
17782 optimize_inline.
17783 * tree-inline.c (tree_inlinable_function_p): Use error instead
17784 of sorry.
3bb556ad 17785 (expand_call_inline): Likewise.
637c11bd 17786
f1ee724c
JJ
177872011-06-21 Jakub Jelinek <jakub@redhat.com>
17788
17789 * Makefile.in (dg_target_exps): Set.
17790 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
17791 instead of 7, try to divide it more evenly.
17792
177932011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 17794
931050d0 17795 PR target/49089
97ef5ae6
CF
17796 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
17797 (avx256_split_unaligned_store): New definition.
17798 (ix86_option_override_internal): Enable avx256 unaligned load/store
17799 splitting only when avx256_split_unaligned_load/store is set.
17800
998c75b6
BS
178012011-06-20 Bernd Schmidt <bernds@codesourcery.com>
17802
17803 * regrename.c (scan_rtx_reg): Handle the case where we write to an
17804 open chain in a smaller mode without failing the entire block.
17805
3a769784
AM
178062011-06-21 Alan Modra <amodra@gmail.com>
17807
17808 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
17809 CONST high part large-toc address.
17810 (rs6000_tls_referenced_p): Make static.
17811 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
17812
c2954af9
RR
178132011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17814
17815 PR target/49385
17816 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
17817 one of the operands is a register.
17818
a95015b6
KT
178192011-06-20 Kai Tietz <ktietz@redhat.com>
17820
637c11bd
UB
17821 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
17822 operations in combination with binary and.
a95015b6 17823
49a30d00
BS
178242011-06-20 Bernd Schmidt <bernds@codesourcery.com>
17825
17826 * regrename.c (do_replace): Don't update notes.
17827
3bae1d98
AM
178282011-06-20 Alan Modra <amodra@gmail.com>
17829
17830 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
17831 of toc-relative address in CONST.
17832 (rs6000_delegitimize_address): Recognize changed address.
17833 (rs6000_legitimize_reload_address): Likewise.
17834 (rs6000_emit_move): Don't force these constants to memory.
17835 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
17836 toc-relative address in CONST.
17837 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
17838 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
17839
10937b0c
L
178402011-06-18 H.J. Lu <hongjiu.lu@intel.com>
17841
637c11bd 17842 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
17843 (count_trailing_zeros): Likewise.
17844
0c587260
L
178452011-06-18 H.J. Lu <hongjiu.lu@intel.com>
17846
17847 PR other/49325
17848 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
17849 .init_array can be used with .ctors on targets.
17850 * configure: Regenerated.
17851
c020c92b
EB
178522011-06-18 Eric Botcazou <ebotcazou@adacore.com>
17853
17854 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
17855 if the element type is volatile.
17856
cd35bcf7
JH
178572011-06-18 Jan Hubicka <jh@suse.cz>
17858
17859 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
17860 extra name aliases.
17861 (lto_symtab_resolve_can_prevail_p): Likewise.
17862 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
17863 * cgraphbuild.c (record_reference): Remove extra body alias code.
17864 (mark_load): Likewise.
17865 (mark_store): Likewise.
17866 * cgraph.h (varpool_node): Remove extra_name filed;
17867 add alias_of and extraname_alias.
17868 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
17869 (varpool_alias_aliased_node): New inline function.
17870 (varpool_variable_node): New function.
17871 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
17872 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
17873 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
17874 (input_varpool_node): Likewise.
17875 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
17876 (varpool_externally_visible_p): Remove extra body alias code.
17877 (function_and_variable_visibility): Likewise.
17878 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
17879 (ipa_pta_execute): Use it.
17880 * varpool.c (varpool_remove_node): Remove extra name alias code.
17881 (varpool_mark_needed_node): Likewise.
17882 (varpool_analyze_pending_decls): Analyze aliases.
17883 (assemble_aliases): New functoin.
17884 (varpool_assemble_decl): Use it.
17885 (varpool_create_variable_alias): New function.
17886 (varpool_extra_name_alias): Rewrite.
17887 (varpool_for_node_and_aliases): New function.
17888
c96b4102
JJ
178892011-06-18 Jakub Jelinek <jakub@redhat.com>
17890
17891 PR target/49411
17892 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
17893 last_arg_constant and last argument doesn't match its predicate,
17894 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
17895 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
17896 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
17897 spelling of error message.
17898 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
17899 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
17900 const_0_to_255_operand instead of const_int_operand.
17901
17902 Revert:
17903 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
17904
17905 * config/i386/sse.md (blendbits): Remove mode attribute.
17906 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
17907 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
17908 Check integer value of operand 3 in insn constraint.
17909
9a2091cd
HPN
179102011-06-17 Hans-Peter Nilsson <hp@axis.com>
17911
17912 PR rtl-optimization/48542
17913 * reload.c (find_equiv_reg): Stop looking when finding a
17914 setjmp-type call.
17915 * reload1.c (reload_as_needed): Invalidate all reload
17916 registers when crossing a setjmp-type call.
17917
361b51c0
JL
179182011-06-16 Jeff Law <law@redhat.com>
17919
17920 * tree-ssa-threadupdate.c (struct redirection_data): New field
17921 intermediate_edge.
17922 (THREAD_TARGET2): Define.
637c11bd 17923 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
17924 (lookup_redirection_data): Drop useless argument. Extract the
17925 outgoing_edge and intermediate edge from E. Callers updated.
17926 (copy_phi_args, update_destination_phis): New functions.
17927 (fix_duplicate_block_edges): Likewise.
17928 (create_edge_and_update_destination_phis): Duplicate all the edges
17929 hung off e->aux. Use copy_phi_args.
17930 (create_duplicates): Use fix_duplicate_block_edges.
17931 (fixup_template_block): Likewise.
17932 (redirect_edges): If necessary, redirect the joiner block's incoming
17933 edge to the duplicate of the joiner block.
17934 (thread_block): Don't muck up loops when threading through a joiner
17935 block.
637c11bd 17936 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
17937 (mark_threaded_blocks, register_jump_thread): Likewise.
17938 * tree-flow.h (register_jump_thread): Add new argument. Callers
17939 updated.
17940 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
17941 (thread_across_edge): Handle threading through a joiner block.
637c11bd 17942
ee460e75
MJ
179432011-06-16 Martin Jambor <mjambor@suse.cz>
17944
17945 PR tree-optimization/49343
17946 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
17947 calculate offset, provide 2nd operand for the new COMPONENT_REF.
17948
a285ba2e
IS
179492011-06-16 Iain Sandoe <iains@gcc.gnu.org>
17950
17951 * config/darwin-protos.h (machopic_select_rtx_section): Move to
17952 inside RTX_CODE ifdef.
17953
0703f020
TV
179542011-06-16 Tom de Vries <tom@codesourcery.com>
17955
17956 PR target/45098
637c11bd
UB
17957 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
17958 Disallow NULL pointer for pointer arithmetic.
0703f020 17959
900c07da
RR
179602011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17961
17962 PR target/49398
17963 Revert.
17964 2011-06-10 Wei Guozhi <carrot@google.com>
17965
17966 PR target/45335
17967 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
17968 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
17969 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
17970 related peephole2.
17971 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
17972 related peephole2.
17973 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
17974 (arm_legitimate_ldrd_p): New prototype.
17975 (arm_output_ldrd): New prototype.
17976 * config/arm/arm.c (arm_check_ldrd_operands): New function.
17977 (arm_legitimate_ldrd_p): New function.
17978 (arm_output_ldrd): New function.
17979
c020c92b 179802011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
17981
17982 PR middle-end/46500
17983 * doc/tm.texi.in: Update Copyright date.
17984 * doc/tm.texi: Regenerate.
17985 * targhooks.c (default_setup_incoming_varargs): Replace
17986 CUMULATIVE_ARGS* argument type with cumulative_args_t.
17987 (default_pretend_outgoing_varargs_named): Likewise.
17988 (hook_pass_by_reference_must_pass_in_stack): Likewise.
17989 (hook_callee_copies_named): Likewise.
17990 (default_function_arg_advance): Likewise.
17991 (default_function_arg): Likewise.
17992 (default_function_incoming_arg): Likewise.
17993 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
17994 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
17995 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
17996 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
17997 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
17998 * targhooks.h (default_setup_incoming_varargs): Likewise.
17999 (default_pretend_outgoing_varargs_named): Likewise.
18000 (hook_pass_by_reference_must_pass_in_stack): Likewise.
18001 (hook_callee_copies_named): Likewise.
18002 (default_function_arg_advance): Likewise.
18003 (default_function_arg): Likewise.
18004 (default_function_incoming_arg): Likewise.
18005 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
18006 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
18007 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
18008 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
18009 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
18010 * target.def (pass_by_reference): Likewise.
18011 (setup_incoming_varargs, strict_argument_naming): Likewise.
18012 (pretend_outgoing_varargs_named, callee_copies): Likewise.
18013 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
18014 (function_incoming_arg): Likewise.
18015 * target.h: Don't include "tm.h" .
18016 (cumulative_args_t): New typedef.
18017 [GCC_TM_H] (get_cumulative_args): New static inline function.
18018 [GCC_TM_H] (pack_cumulative_args): Likewise.
18019 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
18020 argument type with cumulative_args_t.
18021 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
18022 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
18023 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
18024 (frv_arg_partial_bytes, frv_function_arg): Likewise.
18025 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
18026 (frv_function_arg_1): Likewise.
18027 * config/s390/s390.c (s390_pass_by_reference): Likewise.
18028 (s390_function_arg_advance, s390_function_arg): Likewise.
18029 * config/m32c/m32c.c (m32c_function_arg): Likewise.
18030 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
18031 (m32c_strict_argument_naming): Likewise.
18032 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
18033 (spu_function_arg_advance): Likewise.
18034 (spu_setup_incoming_varargs): Likewise. Make static.
18035 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
18036 Remove prototype.
18037 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
18038 CUMULATIVE_ARGS* argument type with cumulative_args_t.
18039 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
18040 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
18041 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
18042 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
18043 (mep_pass_by_reference, mep_function_arg): Likewise.
18044 (mep_function_arg_advance): Likewise.
18045 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
18046 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
18047 (m32r_function_arg, m32r_function_arg_advance): Likewise.
18048 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
18049 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
18050 (ix86_function_arg, ix86_pass_by_reference): Likewise.
18051 (ix86_setup_incoming_varargs): Likewise.
18052 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
18053 (sh_strict_argument_naming): Likewise.
18054 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
18055 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
18056 (sh_function_arg_advance, sh_function_arg): Likewise.
18057 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
18058 (pdp11_function_arg_advance): Likewise.
18059 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
18060 Likewise.
18061 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
18062 * config/avr/avr.c (avr_function_arg): Likewise.
18063 (avr_function_arg_advance): Likewise.
18064 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
18065 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
18066 (xtensa_function_arg_1): Likewise.
637c11bd
UB
18067 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
18068 Likewise.
d5cc9181
JR
18069 (xstormy16_function_arg): Likewise.
18070 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
18071 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
18072 (fr30_function_arg_advance): Likewise.
18073 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
18074 (lm32_function_arg, lm32_function_arg_advance): Likewise.
18075 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
18076 (moxie_function_arg, moxie_function_arg_advance): Likewise.
18077 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
18078 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
18079 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
18080 (cris_function_arg, cris_function_incoming_arg): Likewise.
18081 (cris_function_arg_advance, cris_function_arg_1): Likewise.
18082 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
18083 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
18084 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
18085 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
18086 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
18087 (mn10300_arg_partial_bytes): Likewise.
18088 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
18089 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
18090 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
18091 (ia64_function_arg_1): Likewise.
18092 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
18093 (m68k_function_arg): Likewise.
18094 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
18095 (rs6000_function_arg, setup_incoming_varargs): Likewise.
18096 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
18097 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
18098 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
18099 (picochip_arg_advance): Likewise.
18100 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
18101 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
18102 (mcore_function_arg_advance): Likewise.
18103 * config/score/score.c (score_pass_by_reference): Likewise.
18104 (score_function_arg_advance): Likewise.
18105 (score_arg_partial_bytes): Likewise. Make static.
18106 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
18107 * config/arm/arm.c (arm_arg_partial_bytes): Replace
18108 CUMULATIVE_ARGS* argument type with cumulative_args_t.
18109 (arm_function_arg, arm_function_arg_advance): Likewise.
18110 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
18111 * config/pa/pa.c (pa_pass_by_reference): Likewise.
18112 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
18113 (pa_function_arg): Likewise.
18114 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
18115 (mips_function_arg, mips_function_arg_advance): Likewise.
18116 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
18117 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
18118 * config/vax/vax.c (vax_function_arg): Likewise.
18119 (vax_function_arg_advance): Likewise.
18120 * config/h8300/h8300.c (h8300_function_arg): Likewise.
18121 (h8300_function_arg_advance): Likewise.
18122 * config/v850/v850.c (v850_pass_by_reference): Likewise.
18123 (v850_strict_argument_naming, v850_function_arg): Likewise.
18124 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
18125 (v850_setup_incoming_varargs): Likewise.
18126 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
18127 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
18128 (mmix_function_arg, mmix_pass_by_reference): Likewise.
18129 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
18130 with const void *.
18131 * config/bfin/bfin.c (setup_incoming_varargs): Replace
18132 CUMULATIVE_ARGS* argument type with cumulative_args_t.
18133 (bfin_function_arg_advance, bfin_function_arg): Likewise.
18134 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
18135 * calls.c (emit_call_1): Change type of args_so_far to
18136 cumulative_args_t. Changed all callers.
18137 (initialize_argument_information): Likewise.
18138 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
18139 * dse.c (get_call_args): Likewise.
18140 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18141 * function.c (pass_by_reference, reference_callee_copied): Likewise.
18142 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
18143 New member args_so_far_v. Changed all users.
18144 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
18145 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18146 * config/mips/mips.c (mips_output_args_xfer): Likewise.
18147 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
18148 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
18149 * config/microblaze/microblaze.c (microblaze_expand_prologue):
18150 Likewise.
d5cc9181
JR
18151 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
18152 m32r_pass_by_reference.
18153
51312233
IR
181542011-06-16 Ira Rosen <ira.rosen@linaro.org>
18155
18156 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
18157 argument to be a VEC of statements.
637c11bd
UB
18158 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
18159 assert that pattern statements have to have their vector type set.
51312233
IR
18160 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
18161 Change the first argument to be a VEC of statements. Update
18162 documentation.
18163 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
18164 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
18165 (vect_recog_widen_mult_pattern): Change the first argument to be a
18166 VEC of statements. Update documentation. Check that the constant is
18167 INTEGER_CST. Support multiplication by a constant that fits an
18168 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
18169 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
18170 call. Handle additional pattern statements if necessary.
18171
fd4df33d
NC
181722011-06-16 Nick Clifton <nickc@redhat.com>
18173
18174 PR target/49427
18175 * config.gcc: Set cpu_type to v850 for any V850 architecture.
18176 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
18177 md_file, extra_modes, out_file and extra_options are these are all
18178 deduced from cpu_type.
18179
fbd05da0
GJL
181802011-06-16 Georg-Johann Lay <avr@gjlay.de>
18181
18182 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
18183 truncation mask to 63.
18184
0ad8bb3b
GJL
181852011-06-16 Georg-Johann Lay <avr@gjlay.de>
18186
18187 PR target/49313
18188 PR target/29524
18189 * longlong.h: Add AVR support:
18190 (count_leading_zeros): New macro.
18191 (count_trailing_zeros): New macro.
18192 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
18193 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
18194 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
18195 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
18196 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
18197 (LIB2FUNCS_EXCLUDE): Add _clz.
18198 * config/avr/libgcc.S (XCALL): Move up in file.
18199 (XJMP): New C Macro.
18200 (DEFUN): New asm macro.
18201 (ENDF): New asm macro.
18202 (__ffssi2): New function.
18203 (__ffshi2): New function.
18204 (__loop_ffsqi2): New function.
18205 (__ctzsi2): New function.
18206 (__ctzhi2): New function.
18207 (__clzdi2): New function.
18208 (__clzsi2): New function.
18209 (__clzhi2): New function.
18210 (__paritydi2): New function.
18211 (__paritysi2): New function.
18212 (__parityhi2): New function.
59c1e10b 18213 (__parityqi2): New function.
0ad8bb3b
GJL
18214 (__popcounthi2): New function.
18215 (__popcountsi2): New function.
18216 (__popcountdi2): New function.
18217 (__popcountqi2): New function.
18218 (__bswapsi2): New function.
18219 (__bswapdi2): New function.
18220 (__ashldi3): New function.
18221 (__ashrdi3): New function.
18222 (__lshrdi3): New function.
18223 Fix suspicous lines.
18224
12430896
RG
182252011-06-16 Richard Guenther <rguenther@suse.de>
18226
18227 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
18228 the same as x != 0.
637c11bd
UB
18229 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
18230 to (bool) X & 1.
12430896
RG
18231 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
18232 equality compares against zero for the lower bit.
18233
09302442
JJ
182342011-06-16 Jakub Jelinek <jakub@redhat.com>
18235
18236 PR tree-optimization/49419
18237 * tree-vrp.c (execute_vrp): Call init_range_assertions
18238 before estimate_numbers_of_iterations, call
18239 free_number_of_iterations_estimates before calling
18240 remove_range_assertions.
18241
81c41166
RE
182422011-06-16 Revital Eres <revital.eres@linaro.org>
18243
18244 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
18245 (struct partial_schedule): Add rows_length field.
18246 (verify_partial_schedule): Check rows_length.
18247 (ps_insert_empty_row): Handle rows_length.
18248 (create_partial_schedule): Likewise.
18249 (free_partial_schedule): Likewise.
18250 (reset_partial_schedule): Likewise.
18251 (create_ps_insn): Remove rest_count argument.
18252 (remove_node_from_ps): Update rows_length.
18253 (add_node_to_ps): Update rows_length and call create_ps_insn
18254 without passing row_rest_count.
18255 (rotate_partial_schedule): Update rows_length.
18256
d24dc7b3
RE
182572011-06-16 Revital Eres <revital.eres@linaro.org>
18258
18259 * ddg.c (add_intra_loop_mem_dep): New function.
18260 (build_intra_loop_deps): Call it.
18261
361b51c0 182622011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
18263
18264 * df-problems.c (df_lr_local_compute): Manually CSE
18265 PIC_OFFSET_TABLE_REGNUM.
18266 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
18267 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
18268
85ce9375
JH
182692011-06-13 Jan Hubicka <jh@suse.cz>
18270
18271 * cgraphunit.c (handle_alias_pairs): New function.
18272 (cgraph_finalize_compilation_unit): Use it.
18273 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
18274 as externally visible.
18275
a577c405
RG
182762011-06-15 Richard Guenther <rguenther@suse.de>
18277
18278 * expr.c (expand_expr_real_2): Reduce all integral types to
18279 bitfield precision.
18280 (expand_expr_real_1): Likewise.
18281
93536c97
MJ
182822011-06-15 Martin Jambor <mjambor@suse.cz>
18283
18284 PR tree-optimization/48613
18285 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
18286 ipa_node_params_vector is NULL.
fd4df33d 18287
ba45cfc4
JJ
182882011-06-15 Jakub Jelinek <jakub@redhat.com>
18289
18290 PR debug/49382
18291 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
18292 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
18293 location in the list, even if it is modified before first real insn.
ba45cfc4 18294 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 18295 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 18296
6fc5966f
AM
182972011-06-15 Alexander Monakov <amonakov@ispras.ru>
18298
18299 PR target/49349
18300 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
18301 (fence_to_rewind). Use it to notice when bookkeeping will be placed
18302 above a fence. Update comments.
18303 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
18304 placed just above it. Do not allow NULL place_to_insert.
18305
9d5e7640
IR
183062011-06-15 Ira Rosen <ira.rosen@linaro.org>
18307
18308 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
18309 (slpeel_tree_peel_loop_to_edge): Don't call
18310 remove_dead_stmts_from_loop.
18311 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
18312 remove irrelevant pattern statements. For irrelevant statements
18313 check if it is the last statement of a detected pattern, use
18314 corresponding pattern statement instead.
18315 (destroy_loop_vec_info): No need to remove pattern statements,
18316 only free stmt_vec_info.
18317 (vect_transform_loop): For irrelevant statements check if it is
18318 the last statement of a detected pattern, use corresponding
18319 pattern statement instead.
18320 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
18321 pattern statements. Set basic block for the new statement.
18322 (vect_pattern_recog): Update documentation.
18323 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
18324 operands of pattern statements.
18325 (vectorizable_call): Fix printing. In case of a pattern statement
18326 use the lhs of the original statement when creating a dummy
18327 statement to replace the original call.
18328 (vect_analyze_stmt): For irrelevant statements check if it is
18329 the last statement of a detected pattern, use corresponding
18330 pattern statement instead.
18331 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
18332 statements use gsi of the original statement.
18333
677f3fa8
JM
183342011-06-14 Joseph Myers <joseph@codesourcery.com>
18335
18336 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
18337 common/common-target-def.h.
18338 * target.def (default_target_flags, handle_option,
18339 supports_split_stack, optimization_table, init_struct,
18340 except_unwind_info, unwind_tables_default, have_named_sections):
18341 Move to common/common-target.def.
18342 * target.h (enum opt_levels, struct default_options): Move to
18343 common/common-target.h.
18344 * targhooks.c (default_except_unwind_info,
18345 dwarf2_except_unwind_info, sjlj_except_unwind_info,
18346 default_target_handle_option, empty_optimization_table): Move to
18347 common/common-targhooks.c.
18348 * targhooks.h (default_except_unwind_info,
18349 dwarf2_except_unwind_info, sjlj_except_unwind_info,
18350 default_target_handle_option, empty_optimization_table): Move to
18351 common/common-targhooks.h.
18352 * common/common-target-def.h: Include common/common-targhooks.h.
18353 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
18354 defined.
18355 * common/common-target.def (handle_option, option_init_struct,
18356 option_optimization_table, default_target_flags,
18357 except_unwind_info, supports_split_stack, unwind_tables_default,
18358 have_named_sections): Move from target.def.
18359 (HOOK_PREFIX): Undefine at end of file.
18360 * common/common-target.h: Include input.h.
18361 (enum opt_levels, struct default_options): Move from target.h.
18362 * common/common-targhooks.c, common/common-targhooks.h: New.
18363 * config.gcc (target_has_targetm_common): Default to yes.
18364 (moxie*): Set target_has_targetm_common=no.
18365 (hppa*-*-*): Don't set target_has_targetm_common=yes.
18366 * doc/tm.texi: Regenerate.
18367 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
18368 (C_TARGET_DEF_H): Add common/common-targhooks.h.
18369 (GCC_OBJS): Remove vec.o.
18370 (OBJS): Remove hooks.o and vec.o.
18371 (OBJS-libcommon-target): Add vec.o, hooks.o and
18372 common/common-targhooks.o.
18373 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
18374 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
18375 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
18376 cfglayout.o, $(out_object_file), $(common_out_object_file)):
18377 Update dependencies.
18378 (common/common-targhooks.o): New.
637c11bd 18379 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
18380 * common/config/pa/pa-common.c: Include more headers. Take
18381 copyright dates from pa.c.
18382 (pa_option_optimization_table, pa_handle_option,
18383 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
18384 TARGET_HANDLE_OPTION): Move from pa.c.
18385 * common/config/alpha/alpha-common.c,
18386 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
18387 common/config/bfin/bfin-common.c,
18388 common/config/cris/cris-common.c,
18389 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
18390 common/config/h8300/h8300-common.c,
18391 common/config/i386/i386-common.c,
18392 common/config/ia64/ia64-common.c,
18393 common/config/iq2000/iq2000-common.c,
18394 common/config/lm32/lm32-common.c,
18395 common/config/m32c/m32c-common.c,
18396 common/config/m32r/m32r-common.c,
18397 common/config/m68k/m68k-common.c,
18398 common/config/mcore/mcore-common.c,
18399 common/config/mep/mep-common.c,
18400 common/config/microblaze/microblaze-common.c,
18401 common/config/mips/mips-common.c,
18402 common/config/mmix/mmix-common.c,
18403 common/config/mn10300/mn10300-common.c,
18404 common/config/pdp11/pdp11-common.c,
18405 common/config/picochip/picochip-common.c,
18406 common/config/rs6000/rs6000-common.c,
18407 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
18408 common/config/score/score-common.c, common/config/sh/sh-common.c,
18409 common/config/sparc/sparc-common.c,
18410 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
18411 common/config/vax/vax-common.c,
18412 common/config/xstormy16/xstormy16-common.c,
18413 common/config/xtensa/xtensa-common.c: New.
18414 * config/alpha/alpha.c: Include common/common-target.h.
18415 (alpha_option_optimization_table, alpha_handle_option,
18416 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18417 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
18418 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
18419 * config/arm/arm.c (arm_option_optimization_table,
18420 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18421 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
18422 arm-common.c.
18423 * config/avr/avr.c (avr_option_optimization_table,
18424 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18425 to avr-common.c.
18426 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
18427 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
18428 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
18429 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
18430 * config/cris/cris.c (cris_option_optimization_table,
18431 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18432 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
18433 cris-common.c.
18434 * config/fr30/fr30.c (fr30_option_optimization_table,
18435 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
18436 to fr30-common.c.
18437 * config/frv/frv.c (frv_option_optimization_table,
18438 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
18439 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
18440 * config/h8300/h8300.c (h8300_option_optimization_table,
18441 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18442 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
18443 * config/i386/i386-protos.h (ix86_handle_option): Declare.
18444 * config/i386/i386.c: Include common/common-target.h.
18445 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
18446 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
18447 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
18448 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
18449 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
18450 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
18451 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
18452 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
18453 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
18454 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
18455 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
18456 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
18457 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
18458 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
18459 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
18460 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
18461 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
18462 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
18463 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
18464 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
18465 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
18466 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
18467 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
18468 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
18469 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
18470 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
18471 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
18472 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
18473 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
18474 ix86_option_optimization_table, ix86_option_init_struct,
18475 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
18476 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18477 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
18478 i386-common.c.
18479 * config/i386/t-i386 (i386.o): Update dependencies.
18480 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
18481 * config/ia64/ia64.c (ia64_option_optimization_table,
18482 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18483 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18484 ia64_handle_option): Move to ia64-common.c.
18485 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
18486 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
18487 * config/lm32/lm32.c (lm32_option_optimization_table,
18488 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
18489 to lm32-common.c.
18490 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
18491 m32c-common.c.
18492 * config/m32r/m32r.c (m32r_option_optimization_table,
18493 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18494 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
18495 m32r_handle_option): Move to m32r-common.c.
18496 (m32r_memory_move_cost): Remove comment referring to
18497 TARGET_HANDLE_OPTION.
18498 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
18499 Move to m68k-common.c.
18500 * config/mcore/mcore.c (mcore_option_optimization_table,
18501 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18502 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
18503 * config/mep/mep.c (mep_option_optimization_table,
18504 mep_handle_option, TARGET_HANDLE_OPTION,
18505 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
18506 Move to mep-common.c.
18507 * config/microblaze/microblaze.c
18508 (microblaze_option_optimization_table,
18509 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
18510 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
18511 * config/mips/mips.c (mips_handle_option,
18512 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18513 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
18514 mips-common.c.
18515 * config/mmix/mmix.c (mmix_option_optimization_table,
18516 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18517 Move to mmix-common.c.
18518 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
18519 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
18520 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18521 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
18522 * config/pa/pa.c: Include common/common-target.h.
18523 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
18524 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18525 pa_handle_option): Move to pa-common.c.
18526 (pa_option_override): Use targetm_common.except_unwind_info.
18527 (pa_asm_output_mi_thunk, pa_function_section): Use
18528 targetm_common.have_named_sections.
18529 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
18530 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18531 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18532 pdp11_handle_option, pdp11_option_init_struct): Move to
18533 pdp11-common.c.
18534 * config/picochip/picochip.c (picochip_option_optimization_table,
18535 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
18536 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
18537 * config/rs6000/rs6000.c: Include common/common-target.h.
18538 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
18539 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
18540 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
18541 rs6000_handle_option): Move to rs6000-common.c.
18542 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18543 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
18544 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18545 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
18546 * config/s390/s390.c (processor_flags_table,
18547 s390_option_optimization_table, s390_option_init_struct,
18548 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
18549 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
18550 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
18551 * config/s390/s390.h (processor_flags_table): Declare.
18552 * config/score/score.c (score_option_optimization_table,
18553 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18554 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
18555 score_handle_option): Move to score-common.c.
18556 * config/sh/sh.c (sh_option_optimization_table,
18557 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
18558 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
18559 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
18560 * config/sparc/sparc.c: Include common/common-target.h.
18561 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18562 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
18563 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
18564 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
18565 spu_option_init_struct): Move to spu-common.c.
18566 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
18567 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
18568 * config/v850/v850.c (small_memory_physical_max,
18569 v850_handle_memory_optionn v850_handle_option,
18570 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
18571 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
18572 v850-common.c.
637c11bd 18573 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
18574 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
18575 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
18576 Move to xtensa-common.c.
18577 * cfglayout.c: Include common/common-target.h.
18578 (fixup_reorder_chain): Use targetm_common.have_named_sections.
18579 * cfgrtl.c: Include common/common-target.h.
18580 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
18581 targetm_common.have_named_sections.
18582 * dbxout.c: Include common/common-target.h.
18583 (dbxout_function_end): Use targetm_common.have_named_sections.
18584 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
18585 targetm_common.except_unwind_info.
18586 * dwarf2out.c: Include common/common-target.h.
18587 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
18588 dwarf2out_begin_prologue, dwarf2out_frame_init,
18589 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
18590 targetm_common.except_unwind_info.
18591 * except.c: Include common/common-target.h.
18592 (init_eh, finish_eh_generation,
18593 output_one_function_exception_table): Use
18594 targetm_common.except_unwind_info.
637c11bd 18595 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
18596 * explow.c: Include common/common-target.h.
18597 * expr.c: Include common/common-target.h.
637c11bd 18598 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
18599 * function.c: Include common/common-target.h.
18600 (expand_function_end): Use targetm_common.except_unwind_info.
18601 * haifa-sched.c: Include common/common-target.h.
637c11bd 18602 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
18603 * lto-opts.c: Include common/common-target.h instead of target.h.
18604 (lto_reissue_options): Use targetm_common.handle_option.
18605 * opts.c: Include common/common-target.h.
18606 (target_handle_option): Use targetm_common.handle_option.
18607 (init_options_struct): Update comment referring to
18608 targetm.target_option.optimization. Use
18609 targetm_common.default_target_flags,
18610 targetm_common.unwind_tables_default and
18611 targetm_common.option_init_struct.
18612 (default_options_optimization): Use
18613 targetm_common.option_optimization_table.
18614 (finish_options): Use targetm_common.except_unwind_info,
18615 targetm_common.unwind_tables_default,
18616 targetm_common.have_named_sections and
18617 targetm_common.supports_split_stack.
18618 * toplev.c: Include common/common-target.h.
18619 (process_options): Use targetm_common.have_named_sections.
18620 * tree-tailcall.c: Include common/common-target.h.
637c11bd 18621 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 18622 * tree.c: Include common/common-target.h.
637c11bd 18623 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
18624 * varasm.c: Include common/common-target.h.
18625 (resolve_unique_section, hot_function_section,
18626 default_function_section): Use targetm_common.have_named_sections.
18627
d26c7090
ER
186282011-06-14 Easwaran Raman <eraman@google.com>
18629
18630 PR rtl-optimization/44194
18631 * dse.c: Include tree-flow.h
18632 (insn_info): Add new field non_frame_wild_read.
18633 (group_info): Add new fields escaped_n and escaped_p.
18634 (kill_on_calls): New variable.
18635 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
18636 (dse_step0): Initialize kill_on_calls.
18637 (can_escape): New function.
18638 (set_usage_bits): Add additional parameter; record information
18639 about escaped locations.
637c11bd 18640 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
18641 (dse_step2_nospill): Set kill_on_calls based on
18642 group->escaped_n and group->escaped_n.
18643 (add_wild_read): Refactor into...
18644 (reset_active_stores): ... New function, and
18645 (free_read_records): ... New function.
18646 (add_non_frame_wild_read): New function.
18647 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 18648 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
18649 (dse_step5_nospill): Call scan_reads_nospill for instructions
18650 marked as non_frame_wild_read.
637c11bd 18651 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 18652
c49a6962
JM
186532011-06-14 Joseph Myers <joseph@codesourcery.com>
18654
18655 * common/common-target-def.h, common/common-target.def,
18656 common/common-target.h, common/config/default-common.c,
18657 common/config/pa/pa-common.c: New files.
18658 * Makefile.in (common_out_file, common_out_object_file,
18659 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
18660 (OBJS-libcommon-target): Include $(common_out_object_file).
18661 (prefix.o): Update dependencies.
18662 ($(common_out_object_file), common/common-target-hooks-def.h,
18663 s-common-target-hooks-def-h): New.
18664 (s-tm-texi): Also check timestamp on common-target.def.
18665 (build/genhooks.o): Update dependencies.
18666 * config.gcc (common_out_file, target_has_targetm_common): Define.
18667 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
18668 TARGET_ALWAYS_STRIP_DOTDOT.
18669 * configure.ac (common_out_object_file): Define.
18670 (common_out_file, common_out_object_file): Substitute.
18671 (common): Create directory.
18672 * configure: Regenerate.
18673 * doc/tm.texi.in (targetm_common): Document.
18674 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
18675 * doc/tm.texi: Regenerate.
18676 * genhooks.c (hook_array): Also include common/common-target.def.
18677 * prefix.c (tm.h): Don't include.
18678 (common/common-target.h): Include.
18679 (ALWAYS_STRIP_DOTDOT): Don't define.
18680 (update_path): Use targetm_common.always_strip_dotdot instead of
18681 ALWAYS_STRIP_DOTDOT.
18682 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
18683
22c5fa5f
DL
186842011-06-14 David Li <davidxl@google.com>
18685
18686 * passes.c (execute_function_todo): Remove TODO_dump_func.
18687 (execute_one_pass): Remove TODO_dump_func.
18688 (execute_function_dump): New function.
18689 * tree-vrp.c: Remove TODO_dump_func.
18690 * regrename.c: Remove TODO_dump_func.
18691 * fwprop.c: Remove TODO_dump_func.
18692 * tree-into-ssa.c: Remove TODO_dump_func.
18693 * tree-complex.c: Remove TODO_dump_func.
18694 * tracer.c: Remove TODO_dump_func.
18695 * tree-loop-distribution.c: Remove TODO_dump_func.
18696 * postreload-gcse.c: Remove TODO_dump_func.
18697 * postreload.c: Remove TODO_dump_func.
18698 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
18699 * tree-tailcall.c: Remove TODO_dump_func.
18700 * ipa-cp.c: Remove TODO_dump_func.
18701 * final.c: Remove TODO_dump_func.
18702 * tree-emutls.c: Remove TODO_dump_func.
18703 * omp-low.c: Remove TODO_dump_func.
18704 * tree-ssa-dse.c: Remove TODO_dump_func.
18705 * tree-ssa-uncprop.c: Remove TODO_dump_func.
18706 * auto-inc-dec.c: Remove TODO_dump_func.
18707 * reorg.c: Remove TODO_dump_func.
18708 * tree-ssa-copyrename.c: Remove TODO_dump_func.
18709 * tree-ssa-ccp.c: Remove TODO_dump_func.
18710 * compare-elim.c: Remove TODO_dump_func.
18711 * mode-switching.c: Remove TODO_dump_func.
18712 * modulo-sched.c: Remove TODO_dump_func.
18713 * tree-call-cdce.c: Remove TODO_dump_func.
18714 * cse.c: Remove TODO_dump_func.
18715 * web.c: Remove TODO_dump_func.
18716 * tree-stdarg.c: Remove TODO_dump_func.
18717 * lto-streamer-out.c: Remove TODO_dump_func.
18718 * tree-ssa-math-opts.c: Remove TODO_dump_func.
18719 * tree-ssa-dom.c: Remove TODO_dump_func.
18720 * tree-nrv.c: Remove TODO_dump_func.
18721 * loop-init.c: Remove TODO_dump_func.
18722 * gimple-low.c: Remove TODO_dump_func.
18723 * ipa-inline.c: Remove TODO_dump_func.
18724 * tree-ssa-sink.c: Remove TODO_dump_func.
18725 * jump.c: Remove TODO_dump_func.
18726 * ifcvt.c: Remove TODO_dump_func.
18727 * tree-ssa-loop.c: Remove TODO_dump_func.
18728 * recog.c: Remove TODO_dump_func.
18729 * dse.c: Remove TODO_dump_func.
18730 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
18731 * matrix-reorg.c: Remove TODO_dump_func.
18732 * tree-eh.c: Remove TODO_dump_func.
18733 * regmove.c: Remove TODO_dump_func.
18734 * function.c: Remove TODO_dump_func.
18735 * tree-vectorizer.c: Remove TODO_dump_func.
18736 * ipa-split.c: Remove TODO_dump_func.
18737 * gcse.c: Remove TODO_dump_func.
18738 * tree-if-conv.c: Remove TODO_dump_func.
18739 * init-regs.c: Remove TODO_dump_func.
18740 * tree-ssa-phiopt.c: Remove TODO_dump_func.
18741 * implicit-zee.c: Remove TODO_dump_func.
18742 * lower-subreg.c: Remove TODO_dump_func.
18743 * bt-load.c: Remove TODO_dump_func.
18744 * tree-dfa.c: Remove TODO_dump_func.
18745 * except.c: Remove TODO_dump_func.
18746 * emit-rtl.c: Remove TODO_dump_func.
18747 * store-motion.c: Remove TODO_dump_func.
18748 * cfgexpand.c: Remove TODO_dump_func.
18749 * tree-cfgcleanup.c: Remove TODO_dump_func.
18750 * cfgcleanup.c: Remove TODO_dump_func.
18751 * tree-ssa-pre.c: Remove TODO_dump_func.
18752 * tree-sra.c: Remove TODO_dump_func.
18753 * tree-mudflap.c: Remove TODO_dump_func.
18754 * tree-ssa-copy.c: Remove TODO_dump_func.
18755 * cfglayout.c: Remove TODO_dump_func.
18756 * tree-ssa-forwprop.c: Remove TODO_dump_func.
18757 * tree-ssa-dce.c: Remove TODO_dump_func.
18758 * ira.c: Remove TODO_dump_func.
18759 * tree-ssa.c: Remove TODO_dump_func.
18760 * integrate.c: Remove TODO_dump_func.
18761 * tree-optimize.c: Remove TODO_dump_func.
18762 * tree-ssa-phiprop.c: Remove TODO_dump_func.
18763 * tree-object-size.c: Remove TODO_dump_func.
18764 * combine.c: Remove TODO_dump_func.
18765 * bb-reorder.c: Remove TODO_dump_func.
18766 * cprop.c: Remove TODO_dump_func.
18767 * var-tracking.c: Remove TODO_dump_func.
18768 * tree-profile.c: Remove TODO_dump_func.
18769 * tree-vect-generic.c: Remove TODO_dump_func.
18770 * reg-stack.c: Remove TODO_dump_func.
18771 * sched-rgn.c: Remove TODO_dump_func.
18772 * tree-ssa-structalias.c: Remove TODO_dump_func.
18773 * tree-switch-conversion.c: Remove TODO_dump_func.
18774 * tree-cfg.c: Remove TODO_dump_func.
18775 * tree-ssa-reassoc.c: Remove TODO_dump_func.
18776 * combine-stack-adj.c: Remove TODO_dump_func.
18777 * dce.c: Remove TODO_dump_func.
18778 * tree-ssanames.c: Remove TODO_dump_func.
18779 * regcprop.c: Remove TODO_dump_func.
18780
fa465762
L
187812011-06-14 H.J. Lu <hongjiu.lu@intel.com>
18782
18783 PR middle-end/47364
18784 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
18785 and properly handle result not in Pmode.
18786
7d8d16c3
RM
187872011-06-14 Robert Millan <rmh@gnu.org>
18788
18789 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
18790 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
18791 `config/linux.h'.
18792
18793 * config/i386/kfreebsd-gnu64.h: New file.
18794 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
18795 with `i386/kfreebsd-gnu64.h'.
18796
18797 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
18798 (GNU_USER_LINK_EMULATION64): New macros.
18799 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
18800 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
18801 of hardcoding `elf_i386' and `elf_x86_64'.
18802
0ccef3d2
NC
188032011-06-14 Nick Clifton <nickc@redhat.com>
18804
18805 PR target/49403
18806 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
18807
18808 PR target/49402
18809 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
18810
8a76c4a0
JJ
188112011-06-14 Jakub Jelinek <jakub@redhat.com>
18812
1ace6185
JJ
18813 PR fortran/49103
18814 * tree.h (DECL_NONSHAREABLE): Define.
18815 (struct tree_decl_common): Change decl_common_unused to
18816 decl_nonshareable_flag.
18817 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
18818 Ignore vars with DECL_NONSHAREABLE bit set.
18819 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
18820 on stores to automatic aggregate vars.
18821
8a76c4a0
JJ
18822 PR rtl-optimization/49390
18823 Revert:
18824 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
18825
18826 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
18827 MEM_ALIAS_SET.
18828
b4a9343c
ZD
188292011-06-14 Zdenek Dvorak <ook@ucw.cz>
18830 Tom de Vries <tom@codesourcery.com>
18831
18832 PR target/45098
18833 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
18834 Document changed semantics.
18835 (max_stmt_executions, max_stmt_executions_int): Declare.
18836 * tree-data-ref.c (estimated_loop_iterations)
18837 (estimated_loop_iterations_int): Move functions...
18838 * tree-ssa-loop-niter.c (estimated_loop_iterations)
18839 (estimated_loop_iterations_int): here.
18840 (record_estimate): Change nb_iterations_upper_bound and
18841 nb_iterations_estimate semantics.
18842 (max_stmt_executions, max_stmt_executions_int): New function.
18843 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
18844 (max_stmt_executions_tree): this.
18845 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
18846 estimated_loop_iterations_tree.
18847 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
18848 max_stmt_executions_int instead of estimated_loop_iterations_int.
18849 * predict.c (predict_loops): Idem.
18850 * tree-parloops.c (parallelize_loops): Idem.
18851 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
18852 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
18853 (init_omega_for_ddr_1): Idem.
18854 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
18855 (loop_prefetch_arrays): Idem
18856 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
18857 max_stmt_executions instead of estimated_loop_iterations.
18858 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
18859 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
18860 instead of nb_iterations_upper_bound.
18861
d2640c43
JH
188622011-06-13 Jan Hubicka <jh@suse.cz>
18863
18864 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
18865
40873cdd
RH
188662011-06-14 Richard Henderson <rth@redhat.com>
18867
18868 PR debug/48459
18869 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
18870 (based_loc_descr): Assert it's true.
18871 (compute_frame_pointer_to_fb_displacement): Set it, rather than
18872 aborting immediately.
18873
73e8cb24
SL
188742011-06-14 Sanjin Liu <scliu@faraday-tech.com>
18875 Mingfeng Wu <mingfeng@faraday-tech.com>
18876
18877 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
18878
f835f0a7
JH
188792011-06-13 Jan Hubicka <jh@suse.cz>
18880
18881 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
18882
ee6f1177
JH
188832011-06-13 Jan Hubicka <jh@suse.cz>
18884
18885 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
18886 similarly to DECL_COMDAT.
18887 * cgraphunit.c (cgraph_analyze_function): Likewise.
18888 * ipa.c (function_and_variable_visibility): Likewise.
18889
618abf9a
JH
188902011-06-13 Jan Hubicka <jh@suse.cz>
18891
18892 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
18893 BINFO_VIRTUALS when streaming for ltrans unit.
18894
a45fe02f
DE
188952011-06-13 David Edelsohn <dje.gcc@gmail.com>
18896
18897 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
18898 (movdi_internal64): Same.
18899
189002011-06-13 Edmar Wienskoski <edmar@freescale.com>
18901
e641e495 18902 PR target/44618
7d8d16c3
RM
18903 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
18904 a set of similar patterns, where the MATCH_OPERAND for the function
18905 argument is replaced with individual references to hardware registers.
a45fe02f
DE
18906 (save_fpregs_<mode>): Ditto
18907 (restore_gpregs_<mode>): Ditto
18908 (return_and_restore_gpregs_<mode>): Ditto
18909 (return_and_restore_fpregs_<mode>): Ditto
18910 (return_and_restore_fpregs_aix_<mode>): Ditto
18911
8775a18b
JH
189122011-06-13 Jan Hubicka <jh@suse.cz>
18913
18914 * ipa-utils.c (postorder_stack): New structure.
18915 (ipa_reverse_postorder): Handle aliases.
18916
189172011-06-13 Jan Hubicka <jh@suse.cz>
18918
18919 * ipa-inline.c (reset_edge_caches): Walk aliases.
18920 (update_caller_keys): Do not test inlinability of aliases.
18921 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
18922 (do_estimate_growth): Fix typo.
18923
6c69a029
JH
189242011-06-13 Jan Hubicka <jh@suse.cz>
18925
18926 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
18927 (can_remove_node_now_p): ... here; handle same comdat groups.
18928 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
18929 (inline_call): Update use of can_remove_node_now_p.
18930
10c63ba4 189312011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 18932
10c63ba4 18933 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
18934 condition to disallow non-identical memory locations.
18935 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
18936 preference to bit manipulation instructions.
495f8c14 18937
9aa3f5c5
JH
189382011-06-13 Jan Hubicka <jh@suse.cz>
18939
18940 * cgraph.c (cgraph_for_node_thunks_and_aliases,
18941 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
18942 (nonremovable_p): New function.
18943 (cgraph_can_remove_if_no_direct_calls_p): New function.
18944 (used_from_object_file_p): New functoin.
10c63ba4
EB
18945 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
18946 references from aliases.
9aa3f5c5
JH
18947 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
18948 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
18949 (want_inline_function_called_once_p): Use it; accept aliases called
18950 once, too.
9aa3f5c5
JH
18951 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
18952
30cecf17
RR
189532011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18954
18955 PR target/48454
18956 * config/arm/neon.md (vec_pack_trunc): Set the lengths
18957 correctly for the case with Quad vectors.
18958
29f85237
JJ
189592011-06-13 Jakub Jelinek <jakub@redhat.com>
18960 Ira Rosen <ira.rosen@linaro.org>
18961
18962 PR tree-optimization/49352
18963 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
18964 all, make sure loop_use_stmt after the loop is a def stmt of a used
18965 SSA_NAME that is the only one defined inside of the loop. Don't
18966 check for COND_EXPR and GIMPLE_BINARY_RHS.
18967 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
18968 check_reduction is true.
18969
c3e3f090
JH
189702011-06-11 Jan Hubicka <jh@suse.cz>
18971
18972 PR middle-end/49373
18973 * ipa.c (cgraph_externally_visible_p): Check resolution info.
18974
516e0768
JH
189752011-06-11 Jan Hubicka <jh@suse.cz>
18976
18977 PR middle-end/48836
18978 * ipa-inline-transform.c: Include tree-pass.h
18979 (inline_transform): Set TODO_update_ssa_only_virtuals.
18980 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
18981
903b0a8b
JH
189822011-06-11 Jan Hubicka <jh@suse.cz>
18983
18984 PR middle-end/49378
18985 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
18986 aliases and thunks.
18987
44542f8e
IR
189882011-06-12 Ira Rosen <ira.rosen@linaro.org>
18989
18990 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
18991 Take number of iterations to peel into account for equally frequent
18992 misalignment values.
18993
ea89702b
JH
189942011-06-11 Jan Hubicka <jh@suse.cz>
18995
637c11bd
UB
18996 * lto-streamer-out.c (produce_symtab): Stream out the newly
18997 represented aliases.
ea89702b 18998
380ed5ed
JH
189992011-06-11 Jan Hubicka <jh@suse.cz>
19000
637c11bd
UB
19001 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
19002 varying args.
380ed5ed
JH
19003 (ipa_update_after_lto_read): Likewise.
19004 (ipa_write_node_info): Do not sream call_with_var_arguments.
19005 (ipa_read_node_info): Likewise.
19006
00cfc363
JH
190072011-06-11 Jan Hubicka <jh@suse.cz>
19008
19009 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
19010
39e2db00
JH
190112011-06-11 Jan Hubicka <jh@suse.cz>
19012
19013 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
19014 (lto_symtab_resolve_can_prevail_p): Likewise.
19015 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
19016 * cgraph.c (same_body_aliases_done): New global var.
19017 (cgraph_same_body_alias_1): Rename to ...
19018 (cgraph_create_function_alias): ... this one; reorg to new
19019 representation.
19020 (cgraph_same_body_alias): Use cgraph_create_function_alias;
19021 record references when asked to.
19022 (cgraph_add_thunk): Fix formating.
19023 (cgraph_get_node): Kill same body alias code.
19024 (cgraph_node_for_asm): Likewise.
19025 (cgraph_remove_same_body_alias): Remove.
19026 (cgraph_remove_node): Kill same body alias code.
19027 (cgraph_mark_address_taken_node): Mark also the aliased function
19028 as having address taken.
19029 (dump_cgraph_node): Dump same body aliases.
19030 (cgraph_for_node_thunks_and_aliases): Update for new alias
19031 representation.
19032 (cgraph_for_node_and_aliases): Likewise.
19033 * cgraph.h (same_body): Kll pointer.
19034 (same_body_alias): Update comment.
19035 (same_body_aliases_done): Declare.
19036 (cgraph_remove_same_body_alias): Remove declaration.
19037 (cgraph_create_function_alias): Declare.
19038 (cgraph_process_same_body_aliases): Declare.
19039 (cgraph_function_with_gimple_body_p): Check for alias.
19040 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
19041 (cgraph_alias_aliased_node): New function.
19042 (cgraph_function_node): Update for new aliases.
19043 (cgraph_function_or_thunk_node): Likewise.
19044 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
19045 (inline_call): Remove dead aliases.
10c63ba4
EB
19046 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
19047 name hack for same body aliases.
39e2db00
JH
19048 (clone_of_p): Look through aliases.
19049 (verify_cgraph_node): Verify aliases.
19050 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
19051 (cgraph_process_same_body_aliases): New function.
19052 (process_function_and_variable_attributes): Disable weakref warning on
19053 alias.
19054 (cgraph_analyze_functions): Handle aliases.
19055 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
19056 (assemble_thunks): Rename to ...
19057 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
19058 (cgraph_expand_function): Remove alias output code.
19059 (cgraph_output_in_order): Skip aliases.
19060 (cgraph_preserve_function_body_p): Aliases don't need preserving.
19061 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
19062 (ipa_record_reference): Do not assert on alias references.
19063 (ipa_ref_has_aliases_p): New function.
19064 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
19065 (ipa_ref_has_aliases_p): Declare.
19066 * lto-cgraph.c (lto_output_node): Handle aliases.
19067 (input_node): Likewise.
19068 * lto-streamer-out.c (lto_output): Skip aliases.
19069 (produce_symtab): Kill same_body_alias code.
19070 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
19071 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
19072 * ipa-inline.c (update_caller_keys): Walk aliases.
19073 (inline_small_functions): Fix thinko in previous patch.
19074 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
19075 (function_and_variable_visibility): Do not walk same body aliases.
19076 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
19077 (ipa_pta_execute): Use it.
19078
9ee65b55
UB
190792011-06-11 Uros Bizjak <ubizjak@gmail.com>
19080
19081 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
19082 (*vec_dupv2df): Rename from vec_dupv2df.
19083 (vec_dupv2df): New expander.
19084
190852011-06-11 Uros Bizjak <ubizjak@gmail.com>
19086
19087 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
19088
190892011-06-11 Uros Bizjak <ubizjak@gmail.com>
19090
19091 * config/i386/i386.md: Use default value in "isa" attribute.
19092 * config/i386/sse.md: Ditto.
19093 * config/i386/mmx.md: Ditto.
19094
ba68a139
WG
190952011-06-10 Wei Guozhi <carrot@google.com>
19096
19097 PR target/45335
19098 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
19099 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
19100 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
19101 related peephole2.
19102 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
19103 related peephole2.
19104 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
19105 (arm_legitimate_ldrd_p): New prototype.
19106 (arm_output_ldrd): New prototype.
19107 * config/arm/arm.c (arm_check_ldrd_operands): New function.
19108 (arm_legitimate_ldrd_p): New function.
19109 (arm_output_ldrd): New function.
19110
deced1e2
XDL
191112011-06-10 David Li <davidxl@google.com>
19112
19113 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19114 * passes.c (passr_eq): New function.
19115 (create_pass_tab): New function.
19116 (pass_traverse): New function.
19117 (dump_one_pass): New function.
19118 (dump_pass_list): New function.
19119 (dump_passes): New function.
19120
71fb4f92
JH
191212011-06-10 Jan Hubicka <jh@suse.cz>
19122
19123 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
19124 setting the nothrow flag.
19125 * ipa-reference.c (propagate): Skip aliases.
19126 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
19127 (propagate_nothrow): Skip aliases; do not update cgraph.
19128 (local_pure_const): Do not update cgraph.
19129 * tree-profile.c (tree_profiling): Do fixup_cfg.
19130
41817394
JH
191312011-06-10 Jan Hubicka <jh@suse.cz>
19132
19133 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
19134 (cgraph_local_node_p): ... here; handle aliases.
19135 (has_addr_references_p): Break out from ...;
19136 (cgraph_remove_unreachable_nodes) ... here.
19137
fb37c1de
JH
191382011-06-10 Jan Hubicka <jh@suse.cz>
19139
19140 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
19141 * common.opt (flag_inline_functions_called_once): Do not
19142 initialize to 1.
fb37c1de 19143
0818c24c
JH
191442011-06-10 Jan Hubicka <jh@suse.cz>
19145
19146 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
19147 (ipcp_initialize_node_lattices): Do not deal with aliases;
19148 Do not try to propagate through thunks.
0818c24c
JH
19149 (ipcp_change_tops_to_bottom): Do not deal with aliases.
19150
c8246dbe
JH
191512011-06-10 Jan Hubicka <jh@suse.cz>
19152
9ee65b55
UB
19153 * ipa-prop.c (ipa_write_node_info): Stream jump functions
19154 for indirect calls.
c8246dbe
JH
19155 (ipa_read_node_info): Likewise.
19156
d7e2a1c1
BS
191572011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19158
19159 PR lto/49302
19160 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
19161 (build_and_insert_call): Likewise.
19162 (build_and_insert_ref): New.
19163 (gimple_expand_builtin_pow): Minor cleanup.
19164 (gimple_expand_builtin_cabs): New.
19165 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 19166
749f25d8
JH
191672011-06-10 Jan Hubicka <jh@suse.cz>
19168
19169 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
19170 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
19171 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
19172 (ipcp_propagate_stage): Skip aliases when propagating.
19173 (ipcp_need_redirect_p): Skip aliases.
19174 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
19175 collect_callers_of_node.
19176 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
19177 for aliases.
19178 (ipa_compute_jump_functions): Look through aliases.
19179
8340fbd7
RO
191802011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19181
19182 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
19183
9aaa7e47
HPN
191842011-06-10 Hans-Peter Nilsson <hp@axis.com>
19185
19186 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
19187 Adjust comments.
19188 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
19189
f1724940
JH
191902011-06-10 Jan Hubicka <jh@suse.cz>
19191
19192 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
19193 Update call of gimple_get_virt_method_for_binfo.
19194 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
19195 refuse_thunks parameter.
19196 (gimple_fold_call): Update.
19197 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
19198
a6f834c5
JH
191992011-06-10 Jan Hubicka <jh@suse.cz>
19200
19201 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
19202 (not_all_callers_have_enough_arguments_p): ... this one; turn into
19203 worker for cgraph_for_node_and_aliases.
19204 (convert_callers_for_node): Break out from ...
19205 (convert_callers): ... here.
19206 (modify_function): Use collect_callers_of_node.
19207 (ipa_early_sra): Use cgraph_for_node_and_aliases.
19208
7871eee3
RG
192092011-06-10 Richard Guenther <rguenther@suse.de>
19210
19211 PR tree-optimization/49361
19212 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
19213 when not already in gimple form.
19214
dae957ae
RG
192152011-06-10 Richard Guenther <rguenther@suse.de>
19216
19217 PR bootstrap/49344
19218 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
19219 FOR_EACH_PHI_OR_STMT_USE.
19220
a5b1779f
JH
192212011-06-10 Jan Hubicka <jh@suse.cz>
19222
19223 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
19224 (clone_inlined_nodes): ... here.
19225 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
19226 to real destination prior inlining.
19227 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
19228 can_early_inline_edge_p, want_early_inline_function_p,
19229 want_early_inline_function_p, want_inline_small_function_p,
19230 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
19231 edge_badness, update_all_callee_keys, lookup_recursive_calls,
19232 add_new_edges_to_heap, inline_small_functions, flatten_function,
19233 inline_always_inline_functions, early_inline_small_functions): Use
19234 cgraph_function_or_thunk_node.
19235 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
19236 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
19237 (do_estimate_edge_growth_1): Break out from ...
19238 (do_estimate_growth) ... here; walk aliases.
19239 (inline_generate_summary): Skip aliases.
19240
c1ae3ca5
RG
192412011-06-10 Richard Guenther <rguenther@suse.de>
19242
9ee65b55
UB
19243 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
19244 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 19245
b504a918
PC
192462011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
19247
19248 * tree.h (error_operand_p): Add.
19249 * dbxout.c (dbxout_type_fields): Use the latter.
19250 * c-decl.c (add_stmt): Likewise.
19251 * gimplify.c (omp_add_variable, omp_notice_variable,
19252 gimplify_scan_omp_clauses): Likewise.
19253
3f5ea9dc 192542011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 19255
3f5ea9dc
GJL
19256 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
19257 when a value is actually passed in regs.
19258
b11b0904 192592011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 19260 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
19261
19262 * doc/invoke.texi (SPARC options): Add -mflat.
19263 * config/sparc/sparc.opt: Likewise.
19264 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
19265 (sparc_flat_expand_prologue): Declare.
19266 (sparc_flat_expand_epilogue): Likewise.
19267 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
19268 (CPP_ENDIAN_SPEC): Replace with...
19269 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
19270 (CPP_SPEC): Adjust to above change.
19271 (EXTRA_SPECS): Likewise.
19272 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
19273 (INCOMING_REGNO): Likewise.
19274 (OUTGOING_REGNO): Likewise.
19275 (LOCAL_REGNO): Likewise.
19276 (SETUP_FRAME_ADDRESSES): Likewise.
19277 (FIXED_REGISTERS): Set 0 for %fp.
19278 (CALL_USED_REGISTERS): Likewise.
19279 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
19280 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
19281 (RETURN_ADDR_REGNUM): Define.
19282 (RETURN_ADDR_RTX): Use it.
19283 (INCOMING_RETURN_ADDR_REGNUM): Define.
19284 (INCOMING_RETURN_ADDR_RTX): Use it.
19285 (DWARF_FRAME_RETURN_COLUMN): Likewise.
19286 (EH_RETURN_REGNUM): Define.
19287 (EH_RETURN_STACKADJ_RTX): Use it.
19288 (EH_RETURN_HANDLER_RTX): Delete.
19289 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
19290 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
19291 Delete.
19292 (struct machine_function): Add frame_size, apparent_frame_size,
19293 frame_base_reg, frame_base_offset, n_global_fp_regs and
19294 save_local_in_regs_p fields.
19295 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
19296 sparc_frame_base_offset, sparc_n_global_fp_regs,
19297 sparc_save_local_in_regs_p): New macros.
19298 (sparc_option_override): Error out if -fcall-saved-REG is specified
19299 for Out registers.
19300 (eligible_for_restore_insn): Fix formatting.
19301 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
19302 (eligible_for_sibcall_delay): Likewise.
19303 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
19304 (sparc_legitimate_address_p): Adjust to above change.
19305 (save_global_or_fp_reg_p): New predicate.
19306 (return_addr_reg_needed_p): Likewise.
19307 (save_local_or_in_reg_p): Likewise.
19308 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
19309 (SORR_SAVE, SORR_RESTORE): Delete.
19310 (sorr_pred_t): New typedef.
19311 (sorr_act_t): New enum.
19312 (save_or_restore_regs): Rename to...
19313 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
19314 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
19315 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
19316 mechanism. Add CFI information for double-word saves in 32-bit mode.
19317 (emit_adjust_base_to_offset): New function extracted from...
19318 (emit_save_or_restore_regs): ...this. Rename the rest to...
19319 (emit_save_or_restore_regs_global_fp_regs): ...this.
19320 (emit_save_or_restore_regs_local_in_regs): New function.
19321 (gen_create_flat_frame_[123]): New functions.
19322 (sparc_expand_prologue): Use SIZE local variable. Adjust.
19323 (sparc_flat_expand_prologue): New function.
19324 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
19325 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
19326 (sparc_flat_expand_epilogue): New function.
19327 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
19328 (output_return): Likewise.
19329 (output_sibcall): Likewise.
19330 (sparc_output_mi_thunk): Likewise.
19331 (sparc_frame_pointer_required): Likewise.
19332 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
19333 function optimization.
19334 * config/sparc/sparc.md (flat): New attribute.
19335 (prologue): Add TARGET_FLAT handling.
19336 (save_register_window): Disable if TARGET_FLAT.
19337 (create_flat_frame_[123]): New patterns.
19338 (epilogue): Add TARGET_FLAT handling.
19339 (sibcall_epilogue): Likewise.
19340 (eh_return): New expander.
19341 (eh_return_internal): New insn and splitter.
19342 (return_internal): Add TARGET_FLAT handling.
19343 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
19344 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
19345 (nonlocal_goto): Add TARGET_FLAT handling.
19346 * config/sparc/t-elf: Add -mflat multilib.
19347 * config/sparc/t-leon: Likewise.
19348
fede8efa
JH
193492011-06-10 Jan Hubicka <jh@suse.cz>
19350
19351 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
19352 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
19353 (self_recursive_p): Use cgraph_function_node.
19354 (propagate_pure_const): Likewise.
19355 (propagate_nothrow): Likewise.
19356 * ipa-reference.c (ipa_reference_get_not_read_global): Use
19357 cgraph_function_node.
19358 (propagate_bits): Likewise.
19359 (propagate): Likewise.
19360
0127c76f
RR
193612011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19362 Richard Earnshaw <rearnsha@arm.com>
19363
9ee65b55 19364 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
19365 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
19366 (*thumb2_movdi_vfp): Delete.
19367 (*arm_movdi_vfp_cortexa8): Delete.
19368 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
19369 (*movdi_vfp_cortexa8): Likewise.
19370
f93fe5a0
RG
193712011-06-10 Richard Guenther <rguenther@suse.de>
19372
19373 * stor-layout.c (initialize_sizetypes): Give names to all
19374 sizetype kinds.
19375
f2164f87
IR
193762011-06-10 Ira Rosen <ira.rosen@linaro.org>
19377
19378 PR tree-optimization/49318
19379 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
19380 irrelevant pattern statements.
19381
3f91c962
HPN
193822011-06-10 Hans-Peter Nilsson <hp@axis.com>
19383
3d223145
HPN
19384 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
19385
3f91c962
HPN
19386 PR bootstrap/49354
19387 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
19388 to last assignment.
19389
b125ad45
JH
193902011-06-09 Jan Hubicka <jh@suse.cz>
19391
19392 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
19393 do not recompute reachable flag.
19394 (cgraph_finalize_function, cgraph_analyze_functions): Set
19395 redefined_extern_inline here.
19396
be330ed4
JH
193972011-06-09 Jan Hubicka <jh@suse.cz>
19398
19399 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
19400 (cgraph_only_called_directly_p): ... this one; bring offline.
19401 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
19402 varpool_used_from_object_file_p): Drop names from the declaratoin.
19403 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
19404 collect_callers_of_node): New.
19405 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
19406 (cgraph_edge_recursive_p): Use cgraph_function_node.
19407 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
19408 (cgraph_node_cannot_be_local_p_1): Break out from ...
19409 (cgraph_node_can_be_local_p): ... here; walk aliases.
19410 (cgraph_for_node_thunks_and_aliases): New function.
19411 (cgraph_for_node_and_aliases): New function.
19412 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
19413 (cgraph_make_node_local) ... here; use
19414 cgraph_for_node_thunks_and_aliases.
be330ed4 19415 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
19416 (cgraph_set_nothrow_flag) ... here;
19417 use cgraph_for_node_thunks_and_aliases.
be330ed4 19418 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
19419 (cgraph_set_const_flag) ... here;
19420 use cgraph_for_node_thunks_and_aliases.
be330ed4 19421 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
19422 (cgraph_set_pure_flag) ... here;
19423 use cgraph_for_node_thunks_and_aliases.
be330ed4 19424 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
19425 (cgraph_propagate_frequency) ... here; use
19426 cgraph_for_node_thunks_and_aliases.
be330ed4 19427 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
19428 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
19429 New functions.
be330ed4
JH
19430 (collect_callers_of_node_1, collect_callers_of_node): New functions.
19431
2ea91d6b
HPN
194322011-06-10 Hans-Peter Nilsson <hp@axis.com>
19433
19434 PR rtl-optimization/49154
19435 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
19436 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
19437 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
19438 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
19439 * config/cris/cris.h (cris_register_move_cost): Remove
19440 !TARGET_V32 code. Tweak comments.
19441
9cf4fb5a
JH
194422011-06-09 Jan Hubicka <jh@suse.cz>
19443
19444 * cgraphbuild.c (record_eh_tables): Mark personality function as having
19445 address taken.
19446
6049a4c8
HPN
194472011-06-10 Hans-Peter Nilsson <hp@axis.com>
19448
c577822e 19449 PR rtl-optimization/49154
9ee65b55
UB
19450 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
19451 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 19452
54e1e4f7 19453 PR rtl-optimization/49154
6049a4c8
HPN
19454 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
19455 register classes.
19456 * doc/tm.texi: Regenerate.
19457
3be68b64
KK
194582011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
19459
19460 PR target/49307
19461 * config/sh/sh.md (UNSPEC_CHKADD): New.
19462 (chk_guard_add): New define_insn_and_split.
19463 (symGOT_load): Use chk_guard_add instead of blockage.
19464
bf806a90
KT
194652011-06-09 Kai Tietz <ktietz@redhat.com>
19466
19467 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
19468
d5a9738b
EB
194692011-06-09 Eric Botcazou <ebotcazou@adacore.com>
19470
19471 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
19472
527e82c2
WG
194732011-06-09 Wei Guozhi <carrot@google.com>
19474
19475 PR target/46975
19476 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
19477 (peephole2 for conditional move): Generate 16 bit instructions.
19478
b8bc3a43
UB
194792011-06-09 Uros Bizjak <ubizjak@gmail.com>
19480
19481 * config/i386/i386.md (*movdi_internal_rex64): Merge
19482 alternatives 6 and 8.
19483
4745da6e
DL
194842011-06-09 David Li <davidxl@google.com>
19485
19486 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
19487 * passes.c (passr_eq): New function.
19488 (create_pass_tab): New function.
19489 (pass_traverse): New function.
19490 (dump_one_pass): New function.
19491 (dump_pass_list): New function.
19492 (dump_passes): New function.
19493
bdf67bcb
DL
194942011-06-09 David Li <davidxl@google.com>
19495
19496 * tree-complex.c (tree_lower_complex): Gate cleanup.
19497 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
19498 (execute_optimize_stdarg): Ditto.
19499 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
19500 (execute_cleanup_eh_1): Ditto.
19501 (execute_cleanup_eh): Ditto.
19502 * gcse.c (gate_rtl_pre): Ditto.
19503 (execute_rtl_pre): Ditto.
19504 * except.c (finish_eh_generation): Ditto.
19505 (convert_to_eh_region_ranges): Ditto.
19506 * cprop.c (one_cprop_pass): Ditto.
19507
547fdef8
BS
195082011-06-09 Bernd Schmidt <bernds@codesourcery.com>
19509
19510 PR target/48673
19511 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
19512 in all basic blocks.
19513
10e48e39
RO
195142011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19515
19516 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
19517 (HAVE_ENABLE_EXECUTE_STACK): Define.
19518 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
19519 (HAVE_ENABLE_EXECUTE_STACK): Define.
19520 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
19521 (HAVE_ENABLE_EXECUTE_STACK): Define.
19522 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
19523 (ENABLE_EXECUTE_STACK): Remove.
19524 (HAVE_ENABLE_EXECUTE_STACK): Define.
19525 [IN_LIBGCC2]: Don't include <windows.h>.
19526 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19527 (HAVE_ENABLE_EXECUTE_STACK): Define.
19528 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
19529 (HAVE_ENABLE_EXECUTE_STACK): Define.
19530 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
19531 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
19532 (HAVE_ENABLE_EXECUTE_STACK): Define.
19533 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
19534 (HAVE_ENABLE_EXECUTE_STACK): Define.
19535 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
19536 (HAVE_ENABLE_EXECUTE_STACK): Define.
19537 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
19538 (HAVE_ENABLE_EXECUTE_STACK): Define.
19539 * config/alpha/alpha.c (alpha_trampoline_init): Test
19540 HAVE_ENABLE_EXECUTE_STACK.
19541 * config/i386/i386.c (ix86_trampoline_init): Likewise.
19542 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19543 (sparc64_initialize_trampoline): Likewise.
19544 * libgcc2.c [L_enable_execute_stack]: Remove.
19545 * system.h (ENABLE_EXECUTE_STACK): Poison.
19546 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
19547 * doc/tm.texi: Regenerate.
19548 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
19549
8ced31fe
JJ
195502011-06-09 Jakub Jelinek <jakub@redhat.com>
19551
19552 PR middle-end/49308
19553 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
19554 variable. After resetting and rescanning insn continue with previous
19555 statement.
19556
ee610fcd
RO
195572011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19558
19559 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
19560 (gcc_cv_ld_hidden): Likewise.
19561 * configure: Regenerate.
19562 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
19563 (ix86_stack_protect_fail): Mark unused.
19564 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
19565 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
19566 [TARGET_MACHO]: Don't define.
19567 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
19568 (TARGET_STACK_PROTECT_FAIL): Likewise.
19569 (rs6000_stack_protect_fail): Mark unused.
19570 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 19571 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 19572
8f2e22ff
AK
195732011-06-08 Andi Kleen <ak@linux.intel.com>
19574
19575 * varasm.c (get_section): Print location of other conflict
19576 for section conflicts.
19577
815cecbe
AK
195782011-06-08 Andi Kleen <ak@linux.intel.com>
19579
19580 * config/i386/driver-i386.c (host_detect_local_cpu):
19581 Add model 0x2d Intel CPU.
19582
1460ec5c
AK
195832011-06-08 Andi Kleen <ak@linux.intel.com>
19584
19585 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
19586 (globalize_reg): Add decl parameter. Compute location. Pass location
19587 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
19588 * rtl.h (globalize_reg): Update prototype.
19589 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
19590
df17530a
MX
195912011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
19592
19593 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
19594
409fed48
KK
195952011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
19596
19597 PR target/49305
19598 * config/sh/predicates.md (general_movsrc_operand): Check
19599 mode for memory with indexed address for QI and HImode.
19600 (general_movdst_operand): Likewise.
19601
87c16a45
NP
196022011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
19603
b8bc3a43 19604 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 19605
49931fcb
AO
196062011-06-08 Alexandre Oliva <aoliva@redhat.com>
19607
19608 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
19609 (num_ssa_operands): Likewise.
19610 (op_iter_init_phiuse): Forward-declare.
19611 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
19612
29494d1f
NC
196132011-06-08 Nick Clifton <nickc@redhat.com>
19614
19615 * doc/invoke.texi (ARM Options): Update description of
19616 -mthumb-interwork.
19617
4ffae7ff
L
196182011-06-08 H.J. Lu <hongjiu.lu@intel.com>
19619
19620 * config/i386/driver-i386.c (host_detect_local_cpu): Support
19621 unknown Intel family 0x6 CPUs.
19622
d9c77712
MJ
196232011-06-08 Martin Jambor <mjambor@suse.cz>
19624
19625 * tree-sra.c (mark_rw_status): Removed.
19626 (analyze_access_subtree): New parameter parent instead of
19627 mark_read and mark_write, propagate from that.
19628
b1def36c
JB
196292011-06-08 Julian Brown <julian@codesourcery.com>
19630
19631 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
19632 for double-precision helper functions in hard-float mode if only
19633 single-precision arithmetic is supported in hardware.
19634
6c8e9fc9
AM
196352011-06-08 Alexander Monakov <amonakov@ispras.ru>
19636
19637 PR rtl-optimization/49303
19638 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
19639 code_motion_path_driver returned 0 or 1.
19640 (sel_region_finish): Clear h_d_i_d.
19641
c2bbcb0d
KK
196422011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
19643
19644 * config/sh/sh.c (prepare_move_operands): Set pic register
19645 appropriately for global and local dynamic tls models even
19646 if flag_pic is unset.
19647
6976ae51
JM
196482011-06-07 Jason Merrill <jason@redhat.com>
19649
19650 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
19651
bb5b1f5e
XDL
196522011-06-07 Xinliang David Li <davidxl@google.com>
19653 * passes.c (enable_disable_pass): Handle assembler name.
19654 (is_pass_explicitly_enabled_or_disabled): Ditto.
19655
91ffe356
RO
196562011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19657
19658 PR tree-optimization/48497
19659 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
19660
06bc3ec7
BS
196612011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19662
19663 PR tree-optimization/46728
19664 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
19665 to use gimple_val_nonnegative_real_p.
19666 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
19667 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 19668
c074d740
L
196692011-06-07 H.J. Lu <hongjiu.lu@intel.com>
19670
19671 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
19672
8973b112
SG
196732011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
19674
19675 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
19676 constant vectors.
19677
67b88453
RG
196782011-06-07 Richard Guenther <rguenther@suse.de>
19679
19680 * stor-layout.c (initialize_sizetypes): Initialize all
19681 sizetypes based on target definitions.
19682 (set_sizetype): Remove.
19683 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
19684 * tree.h (set_sizetype): Remove.
19685
1dcad079
NC
196862011-06-07 Nick Clifton <nickc@redhat.com>
19687
19688 * config.gcc: Unify V850 architecture options and add support for
19689 newer V850 architectures.
19690 * config/v850/t-v850e: Delete.
19691
009db074
RG
196922011-06-07 Richard Guenther <rguenther@suse.de>
19693
19694 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
19695 Call set_sizetype from here.
19696
f373314f
AS
196972011-06-07 Andrew Stubbs <ams@codesourcery.com>
19698
19699 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
19700 (*maddhisi4tb, *maddhisi4tt): New define_insns.
19701
c536876e
AS
197022011-06-07 Bernd Schmidt <bernds@codesourcery.com>
19703 Andrew Stubbs <ams@codesourcery.com>
19704
19705 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
19706 multiplies.
19707 * doc/md.texi (Canonicalization of Instructions): Document widening
19708 multiply canonicalization.
19709
308dc890
JJ
197102011-06-07 Jakub Jelinek <jakub@redhat.com>
19711
19712 PR gcov-profile/49299
b8bc3a43 19713 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 19714
383d9c83
IR
197152011-06-07 Ira Rosen <ira.rosen@linaro.org>
19716
19717 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
19718 a pointer.
19719 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
19720 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
19721 vect_recog_pow_pattern): Likewise.
19722 (vect_pattern_recog_1): Remove declaration.
19723 (widened_name_p): Remove declaration. Add new argument to specify
19724 whether to check that both types are either signed or unsigned.
19725 (vect_recog_widen_mult_pattern): Update documentation. Handle
19726 unsigned patterns and multiplication by constants.
19727 (vect_pattern_recog_1): Update vect_recog_func references. Use
19728 statement information from the statement returned from pattern
19729 detection functions.
19730 (vect_pattern_recog): Update vect_recog_func reference.
19731 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
19732 multiplication by a constant use the type of the other operand.
19733
4de4b0f2
RS
197342011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
19735
19736 PR rtl-optimization/49145
19737 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
19738
a9d24544
JJ
197392011-06-06 Jakub Jelinek <jakub@redhat.com>
19740
99a5e049
JJ
19741 PR debug/49262
19742 * dwarf2out.c (native_encode_initializer): Decrement count in each
19743 iteration.
19744
04902d4c
JJ
19745 PR debug/49294
19746 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
19747 non-MODE_INT modes.
19748
a9d24544
JJ
19749 PR c++/49264
19750 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
19751 if stmt folded into nothing.
b8bc3a43
UB
19752 * tree-inline.c (fold_marked_statements): If a builtin at the end of
19753 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
19754 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
19755 to be NULL. Don't compute count and frequency if new_call is NULL.
19756
47c79d56
DN
197572011-06-04 Diego Novillo <dnovillo@google.com>
19758
19759 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
19760 (cgraph.o): Likewise.
19761 (cgraphunit.o): Likewise.
19762 * cgraphunit.c: Include lto-streamer.h
19763 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
19764 if LTO is enabled.
19765 * lto-streamer-in.c (unpack_value_fields): Call
19766 streamer_hooks.unpack_value_fields if set.
19767 (lto_materialize_tree): For unhandled nodes, first try to
19768 call lto_streamer_hooks.alloc_tree, if it exists.
19769 (lto_input_ts_decl_common_tree_pointers): Move reading of
19770 DECL_INITIAL to lto_streamer_read_tree.
19771 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
19772 (lto_streamer_read_tree): New.
19773 (lto_reader_init): Rename from lto_init_reader.
19774 Move initialization code to lto/lto.c.
19775 * lto-streamer-out.c (pack_value_fields): Call
19776 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
19777 (lto_output_tree_ref): For tree nodes that are not normally indexable,
19778 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 19779 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
19780 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
19781 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
19782 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
19783 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
19784 (lto_streamer_write_tree): New.
19785 (lto_output): Call lto_streamer_init directly.
19786 (lto_writer_init): Remove.
19787 * lto-streamer.c (streamer_hooks): New.
19788 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
19789 instead of lto_preload_common_nodes.
19790 (lto_is_streamable): Move from lto-streamer.h
19791 (lto_streamer_hooks_init): New.
19792 (streamer_hooks): New.
19793 (streamer_hooks_init): New.
19794 * lto-streamer.h (struct output_block): Forward declare.
19795 (struct lto_input_block): Likewise.
19796 (struct data_in): Likewise.
19797 (struct bitpack_d): Likewise.
19798 (struct streamer_hooks): Declare.
19799 (streamer_hooks): Declare.
19800 (lto_streamer_hooks_init): Declare.
19801 (lto_streamer_write_tree): Declare.
19802 (lto_streamer_read_tree): Declare.
19803 (streamer_hooks_init): Declare.
19804 (lto_is_streamable): Move to lto-streamer.c
19805
22afe143
AK
198062011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19807
19808 * longlong.h (smul_ppmm): The resulting register pair contains the
19809 higher order word first.
19810
3906ea1b
BS
198112011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19812
19813 PR tree-optimization/46728
19814 * builtins.c (powi_table): Remove.
19815 (powi_lookup_cost): Remove.
19816 (powi_cost): Remove.
19817 (expand_powi_1): Remove.
19818 (expand_powi): Remove.
19819 (expand_builtin_pow_root): Remove.
19820 (expand_builtin_pow): Remove.
19821 (expand_builtin_powi): Eliminate handling of constant exponent.
19822 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 19823
3598cabd
AO
198242011-06-06 Alexandre Oliva <aoliva@redhat.com>
19825
19826 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
19827
a7a110bb
AO
198282011-06-06 Alexandre Oliva <aoliva@redhat.com>
19829
19830 * dce.c (reset_unmarked_insns_debug_uses): New.
19831 (delete_unmarked_insns): Skip debug insns.
19832 (prescan_insns_for_dce): Likewise.
19833 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
19834 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
19835 active reg can be found.
19836 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
19837 (convert_regs_1): Use it.
19838
6d8402ac
AO
198392011-06-06 Alexandre Oliva <aoliva@redhat.com>
19840
19841 * tree-pretty-print.c (dump_function_header): Add flags.
19842 Don't dump decl_uid with nouid.
19843 * tree-pretty-print.h (dump_function_header): Adjust.
19844 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
19845 * passes.c (pass_init_dump_file): Pass dump_flags on.
19846 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
19847
f75e1f1e
AO
198482011-06-06 Alexandre Oliva <aoliva@redhat.com>
19849
19850 PR bootstrap/49270
19851 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
19852
275311c4
MP
198532011-06-06 Mikael Pettersson <mikpe@it.uu.se>
19854
19855 PR tree-optimization/49243
19856 * calls.c (setjmp_call_p): Also check if fndecl has the
19857 returns_twice attribute.
19858
aa4203e7
RO
198592011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19860
19861 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
19862 -ffast-math etc.
19863
48f9d59a
RH
198642011-06-06 Richard Henderson <rth@redhat.com>
19865 Georg-Johann Lay <avr@gjlay.de>
19866
19867 PR target/42210
19868 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
19869 New predicates.
19870 * config/avr/avr.md ("insv"): New insn expander.
19871 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
19872 "*insv.not.io", "*insv.reg"): New insns.
19873
11494830
HPN
198742011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
19875
19876 PR target/49285
b8bc3a43
UB
19877 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
19878 to nonimmediate_operand from memory_operand for the operand that is to
19879 be forced to memory by the expander. Lose the constraints.
11494830 19880
679e70df
EB
198812011-06-05 Eric Botcazou <ebotcazou@adacore.com>
19882
19883 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
19884 EH return when delayed branches are disabled.
19885
4d3d7f15
UB
198862011-06-05 Uros Bizjak <ubizjak@gmail.com>
19887
19888 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
19889 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
19890 calculation.
19891 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
19892 Simplify MODE_V1DF and MODE_V2SF handling.
19893 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
19894 Simplify MODE_SF handling.
19895
a45c0557
JH
198962011-06-04 Jan Hubicka <jh@suse.cz>
19897
19898 PR tree-optimization/48893
19899 PR tree-optimization/49091
19900 PR tree-optimization/49179
19901 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
19902 Bounds check.
19903
26740835
JH
199042011-06-04 Jan Hubicka <jh@suse.cz>
19905
19906 PR lto/48954
b8bc3a43
UB
19907 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
19908 bitmaps.
26740835 19909
014ab419
JW
199102011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
19911
19912 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
19913
407bcba7
JJ
199142011-06-04 Jakub Jelinek <jakub@redhat.com>
19915
19916 PR target/49281
19917 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
19918 to be strictly smaller than 1 << shiftcount.
19919
e3195c52
JH
199202011-06-04 Jan Hubicka <jh@suse.cz>
19921
19922 PR tree-optimize/48929
19923 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
19924 of empty predicate.
19925
047d33a0
AO
199262011-06-04 Alexandre Oliva <aoliva@redhat.com>
19927
19928 PR debug/48333
19929 * calls.c (emit_call_1): Prefer the __builtin declaration of
19930 builtin functions.
19931
dc587809
DN
199322011-06-03 Diego Novillo <dnovillo@google.com>
19933
19934 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
19935 (lto_input_tree_pointers): Likewise.
19936 * lto-streamer-out.c (pack_value_fields): Likewise.
19937 (lto_output_tree_pointers): Likewise.
19938 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
19939 and OPTIMIZATION_NODE.
19940
58cd1d70
RO
199412011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19942
19943 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
19944 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
19945 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
19946 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
19947 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
19948 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
19949 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
19950 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
19951 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
19952 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
19953 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
19954 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
19955 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
19956 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
19957 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
19958 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
19959 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
19960 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
19961 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
19962 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
19963 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
19964 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
19965 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
19966 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
19967 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
19968 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
19969 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
19970 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
19971 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
19972 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
19973 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
19974 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
19975 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
19976 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
19977 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
19978 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
19979 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
19980 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
19981 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
19982 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
19983 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
19984 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
19985 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
19986 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
19987 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
19988 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
19989 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
19990 * system.h (MD_UNWIND_SUPPORT): Poison.
19991 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
19992 * doc/tm.texi: Regenerate.
19993 * unwind-dw2.c: Include md-unwind-support.h instead of
19994 MD_UNWIND_SUPPORT.
19995 * config/ia64/unwind-ia64.c: Likewise.
19996 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
19997
10c63ba4 199982011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
19999
20000 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
20001
1b7a0148
RH
200022011-06-03 Richard Henderson <rth@redhat.com>
20003 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20004
20005 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
20006 (sigill_hdlr): Correct insn, insn size.
20007 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
20008
737346fa
RO
200092011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20010
20011 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
20012 t-slibgcc-dummy.
20013 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
20014 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
20015 * config/mips/t-iris: Remove.
20016 * config/mips/t-irix6: New file.
20017 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
20018
c192cee6
RO
200192011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20020
20021 * Makefile.in (LIB2ADDEHDEP): Remove.
20022 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
20023 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
20024 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
20025 * config/t-darwin (LIB2ADDEHDEP): Remove.
20026 * config/t-freebsd (LIB2ADDEHDEP): Remove.
20027 * config/t-linux (LIB2ADDEHDEP): Remove.
20028
d5828cc7
DN
200292011-06-03 Diego Novillo <dnovillo@google.com>
20030
20031 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
20032 (lto_register_var_decl_in_symtab): Likewise.
20033 (lto_register_function_decl_in_symtab): Likewise.
20034 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 20035 logic to uniquify_nodes.
d5828cc7 20036
ee33b5f0
RO
200372011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20038
20039 * config/alpha/t-osf5: Remove.
20040 * config/alpha/t-osf-pthread: Remove.
20041 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
20042 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
20043
16868d84
JB
200442011-06-03 Julian Brown <julian@codesourcery.com>
20045
20046 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
20047 (strongarm1110): Use strongarm tuning.
4d3d7f15 20048 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
20049 * config/arm/arm.c (arm_strongarm_tune): New.
20050 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20051 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
20052 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
20053 setting, using previous defaults or 1 for Cortex-A5.
20054 (arm_option_override): Set max_insns_skipped from current tuning.
20055
1cec1285
NS
200562011-06-03 Nathan Sidwell <nathan@codesourcery.com>
20057
20058 * doc/install.texi (Options specification): Document --with-specs.
20059
eed55426
RR
200602011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20061
20062 * config/arm/neon.md (orndi3_neon): Actually split it.
20063
d5b6cc25
AO
200642011-06-02 Alexandre Oliva <aoliva@redhat.com>
20065
20066 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
20067 * var-tracking.c (reverse_op): Limite recurse depth to 5.
20068
2ba42841
AO
200692011-06-02 Alexandre Oliva <aoliva@redhat.com>
20070
20071 PR debug/47590
20072 * target.def (delay_sched2, delay_vartrack): New.
20073 * doc/tm.texi.in: Update.
20074 * doc/tm.texi: Rebuild.
20075 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
20076 * var-tracking.c (gate_handle_var_tracking): Likewise.
20077 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
20078 (bfin_flag_var_tracking): Drop.
20079 (output_file_start): Don't save and override flag_var_tracking.
20080 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
20081 (bfin_reorg): Test original variables.
20082 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20083 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
20084 (ia64_flag_var_tracking): Drop.
20085 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20086 (ia64_file_start): Don't save and override flag_var_tracking.
20087 (ia64_override_options_after_change): Ditto
20088 flag_schedule_insns_after_reload.
20089 (ia64_reorg): Test original variables.
20090 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
20091 (picochip_flag_var_tracking): Drop.
20092 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
20093 (picochip_option_override): Don't save and override
20094 flag_schedule_insns_after_reload.
20095 (picochip_asm_file_start): Ditto flag_var_tracking.
20096 (picochip_reorg): Test original variables.
20097 * config/spu/spu.c (spu_flag_var_tracking): Drop.
20098 (TARGET_DELAY_VARTRACK): Define.
20099 (spu_var_tracking): New.
20100 (spu_machine_dependent_reorg): Call it.
20101 (asm_file_start): Don't save and override flag_var_tracking.
20102
a700b5f0
KK
201032011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
20104
20105 PR target/49163
20106 * config/sh/predicates.md (general_movsrc_operand): Return 0
20107 for memory and memory subreg of which address is an invalid
20108 indexed address for QI and HImode.
20109 (general_movdst_operand): Likewise.
20110
76015c34
EB
201112011-06-02 Eric Botcazou <ebotcazou@adacore.com>
20112
20113 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
20114 edges only, when there is a non-local label in the function.
20115 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
20116
4e76acd2
UB
201172011-06-02 Uros Bizjak <ubizjak@gmail.com>
20118
20119 * config/i386/constraints.md (Y3): New register constraint.
20120 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
20121 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
20122 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
20123 *sse2_interleave_lowv2df.
20124
288f605f
JB
201252011-06-02 Julian Brown <julian@codesourcery.com>
20126
20127 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
20128 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
20129 (arm_cortex_a5_tune): New.
20130
7ec70105
JB
201312011-06-02 Julian Brown <julian@codesourcery.com>
20132
153668ec
JB
20133 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
20134 * config/arm/arm.c (arm_default_branch_cost): New.
20135 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
20136 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
20137 (arm_fa726_tune): Set branch_cost field using
20138 arm_default_branch_cost.
20139 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
20140 current_tune structure.
20141 * dojump.c (tm_p.h): Include file.
20142
201432011-06-02 Julian Brown <julian@codesourcery.com>
20144
20145 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
20146 tuning.
7ec70105
JB
20147 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
20148 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
20149 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
20150 field.
20151 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
20152 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
20153 (arm_fa726te_tune): Add prefer_constant_pool setting.
20154 (arm_v6t2_tune, arm_cortex_tune): New.
20155 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
20156 prefer_constant_pool setting.
20157
aad61732
UB
201582011-06-02 Uros Bizjak <ubizjak@gmail.com>
20159
4e76acd2
UB
20160 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
20161 switch statement.
aad61732
UB
20162 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
20163 (*movdf_internal) <case 6,7,8>: Ditto.
20164
4e76acd2 20165 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
20166 * config/i386/sse.md (vec_set<mode>_0): Merge with
20167 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
20168 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
20169 *vec_extractv2di_1_sse.
20170 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
20171 and *vec_concatv2di_rex64_sse.
20172
6e588138
SH
201732011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
20174
20175 PR target/48807
20176 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
20177 of cgraph_local_info for null before attempting to use it.
20178
bc6d3f91
EB
201792011-06-02 Eric Botcazou <ebotcazou@adacore.com>
20180
20181 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
20182 (current_function_dynamic_alloc_count): Delete.
20183 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
20184 (expand_builtin_nonlocal_goto): Remove obsolete comment.
20185 (expand_builtin_update_setjmp_buf): Remove dead code.
20186 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
20187 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
20188 support.
20189 * function.c (instantiate_virtual_regs): Likewise.
20190 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
20191 for a block with a single abnormal incoming edge.
20192 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 20193 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
20194 * config/sparc/sparc-protos.h (load_got_register): Declare.
20195 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
20196 (load_got_register): Make global.
20197 (sparc_frame_pointer_required): Add 'static'.
20198 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
20199 (sparc_builtin_setjmp_frame_value): New function.
20200 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
20201 (save_stack_nonlocal): New expander.
20202 (restore_stack_nonlocal): Likewise.
20203 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
20204 (nonlocal_goto_internal): New insn.
20205 (goto_handler_and_restore): Delete.
20206 (builtin_setjmp_setup): Likewise.
20207 (do_builtin_setjmp_setup): Likewise.
20208 (setjmp): Likewise.
20209 (builtin_setjmp_receiver): New expander.
20210
69282fee
DL
202112011-06-01 David Li <davidxl@google.com>
20212
20213 PR middle-end/49261
20214 * tree-pretty-print.c (dump_function_header): Format cleanup.
20215
e95873dd
KK
202162011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
20217
20218 PR target/49238
20219 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
20220 needed when original operands are used for msw_skip comparison.
20221
88c15821
JJ
202222011-06-01 Jakub Jelinek <jakub@redhat.com>
20223
20224 PR debug/49250
20225 * var-tracking.c (add_uses, add_stores): Don't call
20226 cselib_subst_to_values on ENTRY_VALUE.
20227
07233947
DN
202282011-06-01 Diego Novillo <dnovillo@google.com>
20229
20230 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
20231 output_record_start with LTO_null instead of output_zero.
20232 (lto_output_ts_binfo_tree_pointers): Likewise.
20233 (lto_output_tree): Likewise.
20234 (output_eh_try_list): Likewise.
20235 (output_eh_region): Likewise.
20236 (output_eh_lp): Likewise.
20237 (output_eh_regions): Likewise.
20238 (output_bb): Likewise.
20239 (output_function): Likewise.
20240 (output_unreferenced_globals): Likewise.
20241 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
20242 instead of NUM_TREE_CODES.
20243 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
20244 (lto_output_int_in_range): Change << to >> when shifting VAL.
20245
4ee3537a
DN
202462011-06-01 Diego Novillo <dnovillo@google.com>
20247
20248 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
20249 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
20250
02972eaf
RS
202512011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
20252
20253 PR target/45074
20254 * optabs.h (valid_multiword_target_p): Declare.
20255 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
20256 doing multi-word operations.
20257 * optabs.c (expand_binop): Likewise.
20258 (expand_doubleword_bswap): Likewise.
20259 (expand_absneg_bit): Likewise.
20260 (expand_unop): Likewise.
20261 (expand_copysign_bit): Likewise.
20262 (multiword_target_p): New function.
20263
4d41c2d1
RS
202642011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
20265
20266 PR rtl-optimization/48830
20267 PR rtl-optimization/48808
20268 PR rtl-optimization/48792
20269 * reload.c (push_reload): Check contains_reg_of_mode.
20270 * reload1.c (strip_paradoxical_subreg): New function.
20271 (gen_reload_chain_without_interm_reg_p): Use it to handle
20272 paradoxical subregs.
20273 (emit_output_reload_insns, gen_reload): Likewise.
20274
5f57dccb
DL
202752011-06-01 David Li <davidxl@google.com>
20276
20277 * predict.c : Change pass name
20278 * ipa.c: Ditto.
20279 * dce.c: Ditto.
20280 * tree-profile.c: Ditto.
20281 * except.c: Ditto.
20282
ea6cf778
DL
202832011-06-01 David Li <davidxl@google.com>
20284
20285 * tree-pretty-print.c (dump_function_header): New function.
20286 * final.c (rest_of_clean_state): Use header dumper.
20287 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
20288 * passes.c (pass_init_dump_file): Use header dumper.
20289
ebdc0d4b
JJ
202902011-06-01 Jakub Jelinek <jakub@redhat.com>
20291
eeeb9b49
JJ
20292 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
20293 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
20294 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
20295 New functions.
20296 (mem_loc_descriptor): Use them.
20297
ebdc0d4b
JJ
20298 * var-tracking.c (create_entry_value): New function.
20299 (vt_add_function_parameter): Use it.
20300
0699e415
RO
203012011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20302
20303 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
20304 Include <signal.h>, <ucontext.h>.
20305 (sigill_caught): Define.
20306 (sigill_hdlr): New function.
20307 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
20308 insns can be executed.
aad61732 20309 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
20310 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
20311
ca24c5ad
RO
203122011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20313
20314 * config/t-slibgcc-darwin: Move to ...
aad61732 20315 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
20316 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
20317 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
20318 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 20319 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
20320 Remove i386/t-crtstuff from tmake_file.
20321 (i[34567]86-*-solaris2*): Remove t-svr4,
20322 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
20323 t-slibgcc-dummy.
20324 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
20325 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
20326 sparc/t-crtfm from tmake_file.
20327 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
20328 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
20329 Remove extra_parts.
20330 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
20331 * config/i386/t-nwld (SHLIB_LINK): Remove.
20332 * config/i386/t-rtems-i386: Rename to ...
20333 * config/i386/t-rtems: ... this.
20334 ($(T)crti.o, $(T)crtn.o): Remove.
20335 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
20336 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
20337 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
20338 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
20339 EXTRA_MULTILIB_PARTS): Remove.
20340 * config/sparc/t-sol2-64: Likewise.
20341 * config/sparc/t-sol2: Remove.
20342 * config/sparc/t-crtin: Remove.
20343 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
20344 * config/i386/gmon-sol2.c: Remove.
20345 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
20346 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
20347 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
20348 * config/i386/sol2-gc1.asm: Remove.
20349 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
20350 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
20351 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
20352 * config/t-slibgcc-sld: Remove.
20353
a78d13c3
JJ
203542011-06-01 Jakub Jelinek <jakub@redhat.com>
20355
20356 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
20357 base_type_for_mode with op_mode instead of mode.
20358
572070ef
PB
203592011-06-01 Paul Brook <paul@cpodesourcery.com>
20360
20361 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
20362 Cortex-A15.
20363 * config/arm/arm-tune.md: Regenerate.
20364 * config/arm/arm-tables.opt: Regenerate.
20365 * config/arm/arm.c (FL_DIV): Rename...
20366 (FL_THUMB_DIV): ... to this.
20367 (FL_ARM_DIV): Define.
20368 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
20369 (arm_arch_hwdiv): Remove.
20370 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
20371 (arm_issue_rate): Add cortexr5.
20372 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
20373 __ARM_ARCH_EXT_IDIV__.
20374 (TARGET_IDIV): Define.
20375 (arm_arch_hwdiv): Remove.
20376 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
20377 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
20378 (divsi3, udivsi3): New patterns.
20379 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
20380 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
20381
11026b51
MJ
203822011-06-01 Martin Jambor <mjambor@suse.cz>
20383
20384 * ipa-utils.c (ipa_dfs_info): New field scc_no.
20385 * ipa-utils.c (searchc): Set scc_no.
20386
b6156cf2
MJ
203872011-06-01 Martin Jambor <mjambor@suse.cz>
20388
20389 * ipa-utils.c (searchc_env): New field allow_overwritable.
20390 (searchc): do not ignore edges to overwritable nodes if indicated
20391 by env->allow_overwritable.
20392 (ipa_reduced_postorder): Set env.allow_overwritable.
20393
6807da97
RG
203942011-06-01 Richard Guenther <rguenther@suse.de>
20395
20396 * tree.c (free_lang_data): Do not reset boolean_type_node nor
20397 char_type_node.
20398 * lto-streamer.c (lto_record_common_node): Take node pointer,
20399 do not register types.
20400 (lto_preload_common_nodes): Explicitly skip preloading nodes
20401 that differ between frontends.
20402
66bd20e7 204032011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
20404
20405 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
20406 NON_FLOAT_REGS.
20407
66bd20e7 204082011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
20409
20410 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
20411 parameter value for dump. Dump cost on outermost call only.
20412 (rs6000_memory_move_cost): Dump cost on outermost call only.
20413
7351d8da
JJ
204142011-05-31 Jakub Jelinek <jakub@redhat.com>
20415
ead7c399
JJ
20416 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
20417 DW_OP_GNU_convert ops.
20418
509f4495
JJ
20419 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
20420 cselib_preserve_constants.
20421 (cselib_lookup_1): If cselib_preserve_constants,
20422 a new VALUE is being created for REG and there is a VALUE for the
20423 same register in wider mode, add another loc with lowpart SUBREG of
20424 the wider VALUE.
20425 (cselib_subst_to_values): Handle ENTRY_VALUE.
20426 * var-tracking.c (replace_expr_with_values): Return NULL for
20427 ENTRY_VALUE too.
20428 * dwarf2out.c (convert_descriptor_to_signed): New function.
20429 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
20430 instead of two shifts.
20431 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
20432 the right mode if needed.
20433 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
20434 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
20435 convert_descriptor_to_signed.
20436 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
20437 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
20438
7351d8da
JJ
20439 PR target/48688
20440 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
20441
5cc93ee0
UB
204422011-05-31 Uros Bizjak <ubizjak@gmail.com>
20443
20444 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
20445 of X87MODEI12 and SWI48x instead of SSEMODEI24.
20446 (SWI248x): New mode iterator, rename from X87MODEI.
20447 (X87MODEI): Remove mode iterator.
20448 (X87MODEI12): Ditto.
20449 (SSEMODEI24): Ditto.
20450
f0686e78
AO
204512011-05-31 Alexandre Oliva <aoliva@redhat.com>
20452
20453 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
20454 * doc/invoke.texi: Document max-vartrack-expr-depth.
20455 * var-tracking.c (EXPR_DEPTH): New.
20456 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
20457
f3308413
AO
204582011-05-31 Alexandre Oliva <aoliva@redhat.com>
20459
20460 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
20461 * config/i386/sse.md: Add n to negated FMA pattern names.
20462
28c14a04
AO
204632011-05-31 Alexandre Oliva <aoliva@redhat.com>
20464
20465 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
20466
70efc82d
AO
204672011-05-31 Alexandre Oliva <aoliva@redhat.com>
20468
5cc93ee0 20469 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 20470
6ba5d856
UB
204712011-05-31 Uros Bizjak <ubizjak@gmail.com>
20472
20473 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
20474 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
20475
204762011-05-31 Uros Bizjak <ubizjak@gmail.com>
20477
20478 * config/i386/i386.md (*movtf_internal): Avoid allocating general
20479 registers. Penalize F*r->o alternative to prevent partial memory
20480 stalls. Slightly penalize *roF->*r alternative. Generate SSE
20481 CONST_DOUBLE immediates when optimizing function for size. Do not move
20482 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
20483 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
20484 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
20485 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
20486 alternatives.
20487 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
20488
20489 (fp_register_operand splitters): Use fp_register_operand
20490 constraint. Do not use FP_REG_P in insn condition.
20491 (any_fp_register_operand splitters): Use any_fp_register_operand
20492 constraint. Do not use ANY_FP_REG_P in insn condition.
20493
533c07c5
JH
204942011-05-31 Jan Hubicka <jh@suse.cz>
20495
20496 * cgraph.h (cgraph_inline_failed_t): Give enum a name
20497 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
20498 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
20499 (lto_output_edge): Use output_enum and var_len_unsigned.
20500 (lto_output_varpool_node): Likewise.
20501 (input_overwrite_node): Do not take resolution parameter;
20502 extract it from a bitpack.
20503 (input_node): Do not read resolution; use input_enum and
20504 var_len_unsigned.
20505 (input_varpool_node): Likewise.
20506 (input_edge): Likewise.
20507 (input_cgraph_1): Likewise.
20508
2611db71
RG
205092011-05-31 Richard Guenther <rguenther@suse.de>
20510
20511 * gimple.c (gimple_register_canonical_type): Do not register
20512 any types via gimple_register_type.
20513
b9e57365
JH
205142011-05-31 Jan Hubicka <jh@suse.cz>
20515
20516 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
20517 of thunks.
20518
35979cc2
JJ
205192011-05-31 Jakub Jelinek <jakub@redhat.com>
20520
20521 PR rtl-optimization/49235
20522 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
20523 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
20524
8f7de592
IR
205252011-05-31 Ira Rosen <ira.rosen@linaro.org>
20526
20527 PR tree-optimization/49093
20528 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
20529 data references.
20530
8d8a3bda
DS
205312011-05-31 Dodji Seketeli <dodji@redhat.com>
20532
20533 PR debug/49047
20534 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 20535 for concrete functions containing the code of cloned functions.
8d8a3bda 20536
2e87621c
RG
205372011-05-31 Richard Guenther <rguenther@suse.de>
20538
20539 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
20540 to ...
20541 (forward_propagate_into_comparison_1): ... this.
20542 (forward_propagate_comparison): Rename to ...
20543 (forward_propagate_into_comparison): ... this. Split out
20544 real forward propagation code to ...
20545 (forward_propagate_comparison): ... this.
20546 (forward_propagate_into_gimple_cond): Remove looping.
20547 (forward_propagate_into_cond): Likewise.
20548 (simplify_not_neg_expr): Return whether we have done something.
20549 (simplify_gimple_switch): Likewise.
20550 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
20551 (ssa_forward_propagate_and_combine): ... this. Re-structure
20552 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 20553 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
20554 (pass_forwprop): Adjust.
20555
5a880d5d
ILT
205562011-05-30 Ian Lance Taylor <iant@google.com>
20557
20558 * godump.c (go_format_type): Correct length of name added to
20559 obstack for anonymous field.
20560
5f133038
KK
205612011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
20562
20563 PR target/49186
20564 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
20565 part of the second operand is 0.
20566
b17d5426
UB
205672011-05-30 Uros Bizjak <ubizjak@gmail.com>
20568
20569 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
20570 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
20571 to memory for !TARGET_MEMORY_MISMATCH_STALL.
20572 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 20573 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
20574 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
20575 when optimizing function for size. Do not move CONST_DOUBLEs
20576 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
20577 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
20578 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
20579 check for ANY_FP_REGNO_P instead.
20580 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
20581 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
20582 function for speed.
20583 * config/i386/i386.c (ix86_option_override_internal): Do not
20584 set TARGET_INTEGER_DFMODE_MOVES here.
20585
a0cd843f
L
205862011-05-30 H.J. Lu <hongjiu.lu@intel.com>
20587
20588 PR target/49168
aad61732 20589 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 20590
006a5f38
JJ
205912011-05-30 Jakub Jelinek <jakub@redhat.com>
20592
20593 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
20594 DW_TAG_rvalue_reference_type even for
20595 -gdwarf-4 -fno-debug-types-section.
20596
6e96f98a
BS
205972011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20598
20599 PR tree-optimization/46728
20600 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
20601 (build_and_insert_binop): New.
20602 (gimple_expand_builtin_pow): Reorder args for
20603 build_and_insert_call; use build_and_insert_binop; add more
20604 optimizations for fractional exponents.
b17d5426 20605
4f60111f
NF
206062011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
20607
20608 PR bootstrap/49190
20609
20610 Revert:
20611 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20612
20613 * tree.h (struct tree_identifier): Inherit from tree_typed, not
20614 tree_common.
20615 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
20616 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
20617 TS_BASE instead of TS_COMMON.
20618 * varasm.c (assemble_name): Remove assert.
20619
3fd7879d
RS
206202011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
20621
20622 * config.gcc: Keep obselete list sorted.
20623
80060f7a
JJ
206242011-05-30 Jakub Jelinek <jakub@redhat.com>
20625 Eric Botcazou <ebotcazou@adacore.com>
20626
20627 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
20628 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
20629 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
20630 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
20631 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
20632
17e99cdb
RG
206332011-05-30 Richard Guenther <rguenther@suse.de>
20634
20635 * gimple.c (gimple_types_compatible_p_1): Compare record
20636 and union type members properly.
20637
42b05b6e
RG
206382011-05-30 Richard Guenther <rguenther@suse.de>
20639
20640 PR tree-optimization/49210
6ba5d856
UB
20641 * ipa-split.c (split_function): Care for the case where the call
20642 result is not trivially convertible to the result holding variable.
42b05b6e 20643
f3321158
RG
206442011-05-30 Richard Guenther <rguenther@suse.de>
20645
20646 PR tree-optimization/49218
20647 * tree-vrp.c (adjust_range_with_scev): Properly check whether
20648 overflow occured.
20649
d12d8efe
RG
206502011-05-30 Richard Guenther <rguenther@suse.de>
20651
20652 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
20653 New function split out from ...
20654 (forward_propagate_into_gimple_cond): ... here. Adjust.
20655 (forward_propagate_into_cond): Likewise.
20656 (forward_propagate_comparison): Also propagate into
20657 comparisons on assignment RHS. Change return value to
20658 behave similar to forward_propagate_into_cond.
20659 (tree_ssa_forward_propagate_single_use_vars): Handle
20660 strict-overflow warnings properly for forward_propagate_comparison.
20661
df33b41f
RO
206622011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20663
20664 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
20665 from plugin linker.
20666 * configure: Regenerate.
20667
69940d4d
IR
206682011-05-30 Ira Rosen <ira.rosen@linaro.org>
20669
20670 PR tree-optimization/49199
20671 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 20672 non-reduction operands are either defined in the loop or by induction.
69940d4d 20673
226c52aa
XDL
206742011-05-29 Xinliang David Li <davidxl@google.com>
20675
20676 * opts-global.c (handle_common_deferred_options): Handle new options.
20677 * passes.c (register_one_dump_file): Call register_pass_name.
20678 (execute_one_pass): Check explicit enable/disable flag.
20679 (passr_hash): New function.
20680 (passr_eq): Ditto.
20681 (register_pass_name): Ditto.
20682 (get_pass_by_name): Ditto.
20683 (pass_hash): Ditto.
20684 (pass_eq): Ditto.
20685 (enable_pass): Ditto.
20686 (disable_pass): Ditto.
20687 (is_pass_explicitly_enabled_or_disabled): Ditto.
20688
491d8eed
UB
206892011-05-29 Uros Bizjak <ubizjak@gmail.com>
20690
20691 * config/i386/i386.md (*movoi_internal_avx): Use
20692 standard_sse_constant_opcode for alternative 0.
20693 (*movti_internal_sse): Ditto.
20694 (*movti_internal_rex64): Use standard_sse_constant_opcode for
20695 alternative 2.
20696 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
20697 sselog1 type moves.
20698 (*movsi_internal): Ditto.
20699 (*movdi_internal): Ditto. Add ssecvt type moves.
20700
eb93b31f
EB
207012011-05-29 Eric Botcazou <ebotcazou@adacore.com>
20702
20703 PR target/48830
20704 * rtlanal.c (simplify_subreg_regno): Adjust comment.
20705
3f831b7d
JJ
207062011-05-29 Jakub Jelinek <jakub@redhat.com>
20707
20708 PR rtl-optimization/49095
20709 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
20710 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
20711
ee3ee488
RS
207122011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
20713
20714 PR target/43995
20715 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
20716 recurse_p argument. Only follow register copies if it is set,
20717 and prevent mips_find_pic_call_symbol from recursing.
20718 (mips_find_pic_call_symbol): Add a recurse_p argument.
20719 Pass it to mips_pic_call_symbol_from_set.
20720 (mips_annotate_pic_calls): Update accordingly.
20721
65f3dedb
RS
207222011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
20723
20724 * emit-rtl.c (try_split): Use a loop to search for
20725 NOTE_INSN_CALL_ARG_LOCATIONs.
20726
61e374ab
RG
207272011-05-29 Richard Guenther <rguenther@suse.de>
20728
20729 PR tree-optimization/49217
20730 * ipa-pure-const.c (propagate_pure_const): Fix typos.
20731
fac009a8
JH
207322011-05-28 Jan Hubicka <jh@suse.cz>
20733
20734 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
20735 length.
20736 (string_slot_free): Remove
20737 (create_output_block): Initialize obstack.
20738 (destroy_output_block): Free obstack.
20739 (lto_string_index): Add PERSISTENT parameter; do not duplicate
20740 the string unless it needs to be added into the hash.
20741 (lto_output_string_with_length): Add persistent attribute;
20742 handle NULL strings.
20743 (lto_output_string): Add PERSISTENT parameter.
20744 (output_string_cst, output_identifier): Simplify.
20745 (lto_output_location_bitpack): Update.
20746 (lto_output_builtin_tree): Update.
20747 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
20748 (lto_output_string, lto_output_string_with_length): Remove
20749 declarations; functions are static now.
fac009a8 20750
fa766006
JH
207512011-05-28 Jan Hubicka <jh@suse.cz>
20752
20753 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
20754 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
20755 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
20756 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
20757 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
20758 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
20759 unpack_ts_decl_with_vis_value_fields,
20760 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
20761 lto_get_builtin_tree): Use enum and variable length i/o.
20762 * basic-block.h (profile_status_d): Add PROFILE_LAST.
20763 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
20764 New functions.
20765 (bp_pack_enum, bp_unpack_enum): New macros.
20766
e092158b
RS
207672011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20768
20769 * genrecog.c: Remove redundant forward declarations.
20770
7ca2afa0
RS
207712011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20772
20773 * config.gcc: Deprecate mips*-*-openbsd*.
20774
a601a53a
RS
207752011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
20776
20777 PR bootstrap/49195
20778 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
20779 for match_op_dup.
20780
fc64b448
AP
207812011-05-27 Andrew Pinski <pinskia@gmail.com>
20782
20783 PR middle-end/48981
20784 * gengtype.c (vec_prefix_type): New function.
20785 (note_def_vec): Use vec_prefix_type and change the length
20786 attribute to be based on the prefix.
20787 * vec.c: Include coretypes.h before vec.h.
20788 (struct vec_prefix): Remove.
20789 (vec_gc_p_reserve): Change the offsetof to sizeof.
20790 (vec_gc_p_reserve_exact): Likewise.
20791 (vec_heap_p_reserve): Likewise.
20792 (vec_heap_p_reserve_exact): Likewise.
20793 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
20794 (vec_stack_p_reserve): Change the offsetof to sizeof.
20795 (vec_stack_p_reserve_exact): Likewise.
20796 * vec.h (struct vec_prefix): New struct definition.
20797 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
20798 (VEC_T_GTY(T,B)): Likewise.
20799 (DEF_VEC_FUNC_P(T)): Use prefix field.
20800 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
20801 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
20802
ba869341
BS
208032011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20804
20805 PR tree-optimization/46728
20806 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
20807 (powi_as_mults): Add gimple_set_location.
20808 (build_and_insert_call): New.
20809 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
20810 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 20811
d296760d
AM
208122011-05-27 Alexander Monakov <amonakov@ispras.ru>
20813
20814 * doc/contrib.texi: Update copyright years.
20815 (Contributors): Add Zdenek Sojka.
20816
38e01f9e
NF
208172011-05-27 Nathan Froyd <froydnj@codesourcery.com>
20818
20819 * c-decl.c (c_push_function_context): Copy the current statement
20820 list stack.
20821 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
20822 (finish_struct): Call building_stmt_list_p instead of checking
20823 cur_stmt_list.
20824 * c-parser.c (c_parser_postfix_expression): Likewise.
20825 * c-typeck.c (c_end_compound_stmt): Likewise.
20826 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
20827 * tree-iterator.c (stmt_list_cache): Change to a VEC.
20828 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
20829 (free_stmt_list): Likewise.
20830 * tree.h (struct tree_statement_list): Include typed_tree instead
20831 of tree_common.
20832 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
20833 as TS_TYPED instead of TS_COMMON.
20834
8950516e 208352011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 20836 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
20837
20838 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
20839 (HAVE_AS_IX86_TLSGDPTL): Define.
20840 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
20841 (HAVE_AS_IX86_TLSLDMPLT): Define.
20842 * configure: Regenerate.
20843 * config.in: Regenerate.
20844 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
20845 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
20846 TARGET_SUN_TLS, use @tlsgdplt or @plt.
20847 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
20848 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
20849 @tlsldmplt or @plt.
20850 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
20851
b0bd15f7
BS
208522011-05-27 Bernd Schmidt <bernds@codesourcery.com>
20853
20854 * sched-int.h (struct _haifa_deps_insn_data): New members cond
20855 and reverse_cond.
20856 (INSN_COND, INSN_REVERSE_COND): New macros.
20857 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
20858 once.
20859 (sched_get_condition_with_rev): Cache the results, and look them up
20860 if possible.
20861 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
20862 are clobbered by the current insn.
20863 * target.def (exposed_pipline): New sched data hook.
20864 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
20865 * doc/tm.texi: Regenerate.
20866
fa65a9cf
BS
208672011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20868
20869 PR tree-optimization/49170
20870 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
20871 sincos or cexp.
b0bd15f7 20872
c2299dfe
RG
208732011-05-27 Richard Guenther <rguenther@suse.de>
20874
20875 PR middle-end/49189
20876 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
20877 of comparisons.
20878
a95b23b4
BS
208792011-05-27 Bernd Schmidt <bernds@codesourcery.com>
20880
20881 * haifa-sched.c (sched_scan_info): Remove.
20882 (schedule_block): Call sched_extend_luids rather than sched_init_luids
20883 with NULL args.
20884 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
20885 Remove functions.
20886 (sched_scan): Remove.
20887 (sched_extend_luids): Renamed from luids_extend_insn and no longer
20888 static. All callers changed.
20889 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
20890 static. All callers changed.
20891 (sched_init_luids): Remove all arguments except the first. All
20892 callers changed. Don't use sched_scan.
20893 (haifa_init_h_i_d): Likewise.
20894 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
20895 manually rather than using sched_init_luids. Likewise with
20896 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
20897 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
20898 rather than sched_init_luids with NULL args.
20899 * sel-sched-ir.c (new_insns): Remove variable.
20900 (sched_scan): New static function, previously in haifa-sched.c. Remove
20901 all arguments but the first two; all callers changed.
20902 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
20903 rather than sched_init_luids.
20904 (sel_init_bbs): Remove second argument. All callers changed.
20905 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
20906 with NULL arguments.
20907 (create_insn_rtx_from_pattern): Likewise.
20908 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
20909 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
20910 (sched_init_insn_luid, sched_extend_luids): Declare.
20911 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
20912 declarations.
20913
f8f972fc
RB
209142011-05-27 Richard Guenther <rguenther@suse.de>
20915
20916 PR middle-end/49177
20917 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
20918 A CMP B ? (T) true : (T) false for non-integral types T again.
20919
51a9ed47
JH
209202011-05-27 Jan Hubicka <jh@suse.cz>
20921
20922 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
20923 so 0 means NULL string.
20924 (lto_output_string_with_length): ... here.
f8f972fc
RB
20925 (lto_output_string, output_string_cst, output_identifier): Update
20926 handling of NULL strings.
51a9ed47
JH
20927 (lto_output_location_bitpack): New function.
20928 (lto_output_location): Use it.
20929 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
20930 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
20931 len values.
20932 * lto-streamer-in.c (string_for_index): Break out from ...; offset
20933 values by 1.
491d8eed 20934 (input_string_internal): ... here;
f8f972fc
RB
20935 (input_string_cst, input_identifier, lto_input_string): Update handling
20936 of NULL strings.
51a9ed47
JH
20937 (lto_input_location_bitpack): New function
20938 (lto_input_location): Use it.
f8f972fc
RB
20939 (unpack_ts_type_common_value_fields): Pack align & alias in var len
20940 values.
51a9ed47
JH
20941 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
20942 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
20943 (bp_pack_value): Sanity check the value range.
20944 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
20945 New functions.
20946 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
20947 New functions.
20948
66bd20e7 209492011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
20950
20951 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
20952 call_arg_location instructions down the floor.
20953
574e418a
VM
209542011-05-26 Vladimir Makarov <vmakarov@redhat.com>
20955
20956 PR rtl-optimization/49154
20957 * ira.c (setup_pressure_classes): Process class without sublcasses
20958 as a candidate for pressure classes.
20959
6a1a787e
RS
209602011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
20961
20962 PR rtl-optimization/48575
20963 * genrecog.c (position_type): New enum.
20964 (position): New structure.
20965 (decision): Use position structure instead of a string.
20966 (root_pos, peep2_insn_pos_list): New variables.
20967 (next_position, compare_positions): New functions.
20968 (new_decision): Use position structures instead of strings.
20969 (maybe_both_true): Likewise.
20970 (change_state): Likewise.
20971 (write_tree): Likewise.
20972 (make_insn_sequence): Likewise.
20973
92e948a8
NF
209742011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20975
20976 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
20977 TS_BASE instead of TS_COMMON.
20978 (find_decls_types_r): Check for TS_TYPED structure before looking at
20979 TREE_TYPE.
20980 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
20981 Add chain field.
20982 (BLOCK_CHAIN): Use new chain field.
20983
66bd20e7 209842011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
20985
20986 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
20987 moves expensive on Power7 also.
20988
1f498652
RG
209892011-05-26 Richard Guenther <rguenther@suse.de>
20990
20991 * fold-const.c (fold_unary_loc): Remove bogus code.
20992
a2fc3e63
NF
209932011-05-26 Nathan Froyd <froydnj@codesourcery.com>
20994
20995 * tree.h (struct tree_identifier): Inherit from tree_typed, not
20996 tree_common.
20997 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
20998 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
20999 TS_BASE instead of TS_COMMON.
21000 * varasm.c (assemble_name): Remove assert.
21001
d11bf18f
BS
210022011-05-26 Bernd Schmidt <bernds@codesourcery.com>
21003
21004 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
21005 substituted first.
21006 * libgcc-std.ver: Delete file.
21007
ac8e1875
RG
210082011-05-26 Richard Guenther <rguenther@suse.de>
21009
21010 PR tree-optimization/48702
21011 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
21012 only when we know the base address is within bounds.
21013 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
21014 assume the base address of TARGET_MEM_REFs is in bounds.
21015
7e32e652
RO
210162011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21017
21018 PR target/49099
21019 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
21020 declaration in TARGET_SOLARIS.
21021
66bd20e7 210222011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
21023
21024 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 21025 The instruction is then expanded explicitly.
43660e0b
HS
21026 (supported_compare): Callable instruction.
21027 (compare): Likewise.
21028
1537737f
JJ
210292011-05-26 Jakub Jelinek <jakub@redhat.com>
21030
21031 PR c++/49165
21032 * gimplify.c (shortcut_cond_r): Don't special case
21033 COND_EXPRs if they have void type on one of their arms.
21034
7b1ac803
BS
210352011-05-26 Bernd Schmidt <bernds@codesourcery.com>
21036
21037 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
21038 to reduce duplication, and to achieve a slightly more logical order
21039 of operations.
21040
1aa9438f
JJ
210412011-05-26 Jakub Jelinek <jakub@redhat.com>
21042
21043 PR tree-optimization/49161
21044 * tree-vrp.c (struct case_info): New type.
21045 (compare_case_labels): Sort case_info structs instead of
21046 trees, and not primarily by CASE_LABEL uids but by
21047 label_for_block indexes.
21048 (find_switch_asserts): Put case labels into struct case_info
21049 array instead of TREE_VEC, adjust sorting, compare label_for_block
21050 values instead of CASE_LABELs.
21051
50fed7bf
RR
210522011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21053
21054 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
21055 ("orndi3_neon"): Likewise.
21056 ("bic<mode>3_neon"): Likewise.
21057
48df3fa6
IR
210582011-05-26 Ira Rosen <ira.rosen@linaro.org>
21059
21060 PR tree-optimization/49038
21061 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
21062 Ensure at least one epilogue iteration if required by data
21063 accesses with gaps.
21064 * tree-vectorizer.h (struct _loop_vec_info): Add new field
21065 to mark loops that require peeling for gaps.
21066 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
21067 (vect_get_known_peeling_cost): Take peeling for gaps into
21068 account.
21069 (vect_transform_loop): Generate epilogue if required by data
21070 access with gaps.
21071 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
21072 loop as requiring an epilogue if there are gaps in the end of
21073 the strided group.
21074
53febcba
ILT
210752011-05-25 Ian Lance Taylor <iant@google.com>
21076
21077 * godump.c (go_format_type): Output the first field with a usable
21078 Go type, if any.
21079
dbbc4d4c
ILT
210802011-05-25 Ian Lance Taylor <iant@google.com>
21081
21082 * godump.c (go_format_type): Check for invalid type names, pointer
21083 target types, and struct field types.
21084
f03a5402
JM
210852011-05-25 Jason Merrill <jason@redhat.com>
21086
21087 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
21088
c497c412
UB
210892011-05-25 Uros Bizjak <ubizjak@gmail.com>
21090
21091 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
21092
e470affe
L
210932011-05-25 H.J. Lu <hongjiu.lu@intel.com>
21094
21095 * config/i386/i386.md (*movqi_extv_1)): Put back
21096 "register_operand" check in "type" calculation.
21097 (*movqi_extzv_2): Likewise.
21098
6c81b2bc
L
210992011-05-25 H.J. Lu <hongjiu.lu@intel.com>
21100
c497c412 21101 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 21102
0c007eb2
BS
211032011-05-25 Bernd Schmidt <bernds@codesourcery.com>
21104
21105 PR bootstrap/49160
21106 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
21107 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
21108 __divxc3, __divtc3): Wrap definitions in #ifndef.
21109
521ca78e
L
211102011-05-25 H.J. Lu <hongjiu.lu@intel.com>
21111
21112 PR target/49142
21113 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
21114 "register_operand" check and replace q_regs_operand with
21115 QIreg_operand in "type" calculation.
21116 (*movqi_extv_1): Likewise.
21117 (*movqi_extzv_2_rex64): Likewise.
21118 (*movqi_extzv_2): Likewise.
21119
21120 * config/i386/predicates.md (QIreg_operand): New.
21121
29f8b844
RG
211222011-05-25 Richard Guenther <rguenther@suse.de>
21123
21124 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21125 type-based offset disambiguation, streamline MEM_REF and
21126 TARGET_MEM_REF handling.
21127
74838de3
L
211282011-05-25 H.J. Lu <hongjiu.lu@intel.com>
21129
21130 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
21131 (bdesc_special_args): Add pause intrinsic.
21132
21133 * config/i386/i386.md (UNSPEC_PAUSE): New.
21134 (pause): Likewise.
21135 (*pause): Likewise.
21136 * config/i386/ia32intrin.h (__pause): Likewise.
21137
21138 * doc/extend.texi (X86 Built-in Functions): Add documentation for
21139 pause intrinsic.
21140
d24ad7d6
BS
211412011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21142
21143 PR tree-optimization/46728
21144 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
21145 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 21146
d9f8303f
NF
211472011-05-25 Nathan Froyd <froydnj@codesourcery.com>
21148
21149 * tree.h (struct tree_exp): Inherit from struct tree_typed.
21150 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
21151 instead of TS_COMMON.
21152
cdbf4541
BS
211532011-05-25 Bernd Schmidt <bernds@codesourcery.com>
21154
21155 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
21156 LIBGCC2_GNU_PREFIX is defined.
21157 (__N): New macro.
21158 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
21159 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
21160 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
21161 __clz_tab): Define using __N.
21162 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
21163 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
21164 * target.def (libfunc_gnu_prefix): New hook.
21165 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
21166 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
21167 * doc/tm.texi: Regenerate.
21168 * system.h (LIBGCC2_GNU_PREFIX): Poison.
21169 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
21170 account.
21171 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
21172 (init_optabs): Likewise for the bswap libfuncs.
21173 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
21174 and divide.
21175 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
21176 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
21177 * libgcc-std.ver: Remove.
21178 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
21179 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
21180 libgcc-std.ver.
21181 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21182 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
21183 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
21184 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
21185 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
21186 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21187 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
21188 * config/fixed-bit.h (FIXED_OP): Define differently depending on
21189 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
21190 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
21191
f242c0a5
JH
211922011-05-25 Jan Hubicka <jh@suse.cz>
21193
21194 * lto-streamer-out.c (output_record_start): Use lto_output_enum
21195 (lto_output_tree): Use output_record_start.
21196 * lto-streamer-in.c (input_record_start): Use lto_input_enum
21197 (lto_get_pickled_tree): Use input_record_start.
21198 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
21199 (lto_value_range_error): New function.
21200 * lto-streamer.h (lto_value_range_error): Declare.
21201 (lto_output_int_in_range, lto_input_int_in_range): New functions.
21202 (lto_output_enum, lto_input_enum): New macros.
21203
a11e0df4
EB
212042011-05-25 Eric Botcazou <ebotcazou@adacore.com>
21205
21206 * common.opt (flag_stack_usage_info): New variable.
21207 (-Wstack-usage): New option.
21208 * doc/invoke.texi (Warning options): Document -Wstack-usage.
21209 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
21210 <OPT_fstack_usage>: Likewise.
21211 * toplev.c (output_stack_usage): Handle -Wstack-usage.
21212 * calls.c (expand_call): Test flag_stack_usage_info variable instead
21213 of flag_stack_usage.
21214 (emit_library_call_value_1): Likewise.
21215 * explow.c (allocate_dynamic_stack_space): Likewise.
21216 * function.c (instantiate_virtual_regs ): Likewise.
21217 (prepare_function_start): Likewise.
21218 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
21219 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
21220 * config/arm/arm.c (arm_expand_prologue): Likewise.
21221 (thumb1_expand_prologue): Likewise.
21222 * config/avr/avr.c (expand_prologue): Likewise.
21223 * config/i386/i386.c (ix86_expand_prologue): Likewise.
21224 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
21225 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
21226 * config/mips/mips.c (mips_expand_prologue): Likewise.
21227 * config/pa/pa.c (hppa_expand_prologue): Likewise.
21228 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
21229 * config/s390/s390.c (s390_emit_prologue): Likewise.
21230 * config/sh/sh.c (sh_expand_prologue): Likewise.
21231 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
21232 * config/spu/spu.c (spu_expand_prologue): Likewise.
21233
e7cfe241
RG
212342011-05-25 Richard Guenther <rguenther@suse.de>
21235
21236 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
21237 (gimple_canonical_types_compatible_p): Likewise.
21238
c5235f4c
JH
212392011-05-25 Jan Hubicka <jh@suse.cz>
21240
21241 PR middle-end/49062
21242 * ipa.c (function_and_variable_visibility): Only add to same
21243 comdat group list if DECL_ONE_ONLY.
21244
8242a0f6
AB
212452011-05-25 Andrey Belevantsev <abel@ispras.ru>
21246
21247 PR rtl-optimization/49014
21248 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
21249
642a011d
JJ
212502011-05-25 Jakub Jelinek <jakub@redhat.com>
21251
21252 PR target/49128
21253 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
21254
30a435d8
VM
212552011-05-24 Vladimir Makarov <vmakarov@redhat.com>
21256
21257 PR rtl-optimization/48757
21258 * ira-build.c (loop_with_eh_edge_p): Rename to
21259 loop_with_complex_edge_p, check edges on complexity, make function
21260 conditional.
21261 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
21262 conditional.
21263
24d1bbc7
EB
212642011-05-24 Eric Botcazou <ebotcazou@adacore.com>
21265
21266 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
21267 force flag_ira_share_save_slots to 0.
21268
65773087
EB
212692011-05-24 Eric Botcazou <ebotcazou@adacore.com>
21270
21271 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
21272 (vt_initialize): Set PROLOGUE_BB unconditionally.
21273 Add block comment about CFA_BASE_RTX machinery.
21274 Reset FP_CFA_OFFSET to -1 on all invalid paths.
21275 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
21276
4e26ba90
NP
212772011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
21278
21279 PR objc/48187
21280 * c-parser.c (c_parser_objc_class_instance_variables): More robust
21281 parsing of syntax error in ObjC instance variable lists. In
21282 particular, avoid an infinite loop if there is a stray ']'.
21283 Updated error message.
21284
936fd13c
ILT
212852011-05-24 Ian Lance Taylor <iant@google.com>
21286
21287 * godump.c (go_define): Don't accept a string immediately after
21288 another operand.
21289
f17333e3
ILT
212902011-05-24 Ian Lance Taylor <iant@google.com>
21291
21292 * godump.c (struct godump_container): Add invalid_hash field.
21293 (go_format_type): Return false if type is found in invalid_hash.
21294 (go_output_typedef): Add invalid type to invalid_hash.
21295 (go_finish): Create and delete invalid_hash.
21296
d24ad7d6 212972011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 21298
78be79d5
BS
21299 PR tree-optimization/46728
21300 * tree-ssa-math-opts.c (powi_table): New.
21301 (powi_lookup_cost): New.
21302 (powi_cost): New.
21303 (powi_as_mults_1): New.
21304 (powi_as_mults): New.
21305 (gimple_expand_builtin_powi): New.
21306 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
21307 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 21308
caee412b
RO
213092011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21310
21311 PR target/3746
21312 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
21313 mips-tdump native.
21314 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
21315 * mips-tdump.c: Likewise.
21316
5eed4f27
L
213172011-05-24 H.J. Lu <hongjiu.lu@intel.com>
21318
21319 PR target/49128
21320 * config/i386/driver-i386.c (host_detect_local_cpu): Always
21321 add -mno-XXX. Handle FMA.
21322
8c5fdaae
VM
213232011-05-24 Vladimir Makarov <vmakarov@redhat.com>
21324
21325 PR rtl-optimization/48633
21326 * ira-build.c (loop_with_eh_edge_p): New function.
21327 (mark_loops_for_removal): Use it.
21328
213292011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
21330
21331 PR rtl-optimization/48971
21332 * ira.c (setup_pressure_classes): Don't check register move cost
21333 for classes with one registers. Don't add pressure class if there
21334 is a pressure class with the same available hard registers.
21335 Check contains_reg_of_mode. Fix a typo in collecting
21336 temp_hard_regset. Ignore hard registers not belonging to a class.
21337
df1f7315
UB
213382011-05-24 Uros Bizjak <ubizjak@gmail.com>
21339
21340 PR target/49133
21341 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
21342
ee0cb37c
EB
213432011-05-24 Eric Botcazou <ebotcazou@adacore.com>
21344 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21345
21346 PR gcov-profile/48845
21347 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
21348
6a20ce76
RG
213492011-05-24 Richard Guenther <rguenther@suse.de>
21350
21351 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
21352 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
21353 (gimple_types_compatible_p_1): Adjust.
21354 (iterative_hash_canonical_type): Do not bother about complete vs.
21355 incomplete types.
21356 (gimple_canonical_types_compatible_p): Likewise.
21357
2fcb858c
RO
213582011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21359
21360 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
21361
96d91dcf
RG
213622011-05-24 Richard Guenther <rguenther@suse.de>
21363
21364 PR bootstrap/49078
21365 * gimple.c (gimple_register_canonical_type): Revert
21366 previous change.
21367 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
21368 does not for a tree for the case where it matters. Cache
21369 pointer-type alias-sets.
21370
1ed1641d
JM
213712011-05-24 Joseph Myers <joseph@codesourcery.com>
21372
21373 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
21374 (OBJS): Remove options.o, opts-common.o and prefix.o.
21375 (OBJS-libcommon-target): New.
21376 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
21377 (BACKEND): Include libcommon-target.a.
21378 (MOSTLYCLEANFILES): Include libcommon-target.a.
21379 (libcommon-target.a): New.
21380 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
21381 prefix.o.
21382
57dfdff0
JM
213832011-05-23 Joseph Myers <joseph@codesourcery.com>
21384
21385 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
21386 parts of output shared with the driver.
21387 * optc-gen.awk: Don't generate parts of output not shared with the
21388 driver.
21389 * opth-gen.awk: Remove GCC_DRIVER conditionals.
21390 * doc/options.texi (SourcerInclude): Mention options-save.c.
21391 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
21392 (OBJS): Add options-save.o.
21393 (options-save.c, options-save.o): New.
21394 (options.o): Update dependencies.
21395 (gcc-options.o): Remove.
21396 (mostlyclean): Remove options-save.c.
21397
0e0d82a7
JJ
213982011-05-23 Jakub Jelinek <jakub@redhat.com>
21399
9166988f
JJ
21400 PR debug/49032
21401 * dbxout.c: Include cgraph.h.
21402 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
21403 and without value expr, return NULL if no varpool node exists for
21404 it or if it is not needed.
21405 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
21406
0e0d82a7
JJ
21407 PR c/49120
21408 * c-decl.c (start_decl): Convert expr to void_type_node.
21409
65712d5c
RS
214102011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
21411
21412 PR rtl-optimization/48826
21413 * emit-rtl.c (try_split): When splitting a call that is followed
21414 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
21415
9025085e
JJ
214162011-05-23 Jakub Jelinek <jakub@redhat.com>
21417
21418 * cfgexpand.c (expand_debug_expr): For unused non-addressable
21419 parameters passed in memory prefer using DECL_INCOMING_RTL over
21420 the pseudos it will be copied into.
21421
34a061be
L
214222011-05-23 H.J. Lu <hongjiu.lu@intel.com>
21423
21424 PR target/47315
21425 * config/i386/i386.c (ix86_option_override_internal): Save the
21426 initial options after checking vzeroupper.
21427
c375a3a4
DL
214282011-05-23 David Li <davidxl@google.com>
21429
21430 PR tree-optimization/48988
21431 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
21432 Initialize has_valid_pred for each pred chain.
21433
e1caba18
RG
214342011-05-23 Richard Guenther <rguenther@suse.de>
21435
21436 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
21437 (iterative_hash_gimple_type): Always hash type names.
21438
dde05067
NF
214392011-05-23 Nathan Froyd <froydnj@codesourcery.com>
21440
21441 * c-typeck.c (build_function_call_vec): Tweak call to
21442 check_function_arguments.
21443
094f6ab3
RG
214442011-05-23 Richard Guenther <rguenther@suse.de>
21445
21446 PR tree-optimization/49115
21447 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
21448 is not necessarily carried out, do not claim it kills the ref.
21449 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
21450
9a9822e1
RG
214512011-05-23 Richard Guenther <rguenther@suse.de>
21452
21453 PR middle-end/15419
21454 * builtins.c (fold_builtin_memory_op): Be less restrictive about
21455 what pointer types we accept for folding.
21456
c8028650
RO
214572011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21458
21459 * gthr-gnat.c: Remove.
21460 * gthr-gnat.h: Remove.
21461 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
21462 * config/t-freebsd (LIB2ADDEH): Likewise.
21463 * config/t-linux (LIB2ADDEH): Likewise.
21464 * config/t-sol2 (LIB2ADDEH): Likewise.
21465 * config/ia64/t-vms (LIB2ADDEH): Likewise.
21466 * configure.ac (target_thread_file): Remove gnat handling.
21467 * configure: Regenerate.
21468 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
21469
15882fe9
TG
214702011-05-23 Tristan Gingold <gingold@adacore.com>
21471 Eric Botcazou <ebotcazou@adacore.com>
21472
21473 * gcov.c (create_file_names): If no object directory is specified,
21474 keep the directory of the file.
21475
da90c957
RO
214762011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21477
21478 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
21479 * configure: Regenerate.
21480
7bba408b
JJ
214812011-05-23 Jakub Jelinek <jakub@redhat.com>
21482
21483 PR middle-end/48973
21484 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
21485 failed and the comparison has a single bit signed type, use
21486 constm1_rtx instead of const1_rtx for true value.
21487 (do_store_flag): If ops->type is single bit signed type, disable
21488 signel bit test optimization and pass -1 instead of 1 as last
21489 parameter to emit_store_flag_force.
21490
bc69f7ff
TV
214912011-05-23 Tom de Vries <tom@codesourcery.com>
21492
21493 PR target/45098
21494 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
21495 function.
21496 (infer_loop_bounds_from_undefined): Use new function.
21497
29cedf8e
RS
214982011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
21499
21500 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
21501 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
21502 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
21503 and -O0 otherwise.
21504 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
21505
afe8b6ec
EB
215062011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21507
21508 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
21509 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
21510 returns true.
21511
872dab53
RS
215122011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
21513
21514 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
21515
145f6c5b
EB
215162011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21517
21518 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
21519 UNSPEC_MOVE_PIC pattern.
21520
8ac79835
EB
215212011-05-22 Eric Botcazou <ebotcazou@adacore.com>
21522
21523 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
21524 (sparc-*-rtems*): Likewise.
21525 (sparc64-*-elf*): Likewise.
21526 (sparc64-*-rtems*): Likewise.
21527 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
21528 * config/sparc/t-crtin: New file.
21529 * config/sparc/t-sol2 (crti.o): Delete rule.
21530 (crtn.o): Likewise.
21531 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
21532 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
21533 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
21534 (ENDFILE_SPEC): Add crtn.o.
21535
5fb43dd8
TV
215362011-05-22 Tom de Vries <tom@codesourcery.com>
21537
21538 PR middle-end/48689
21539 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
21540 CODE_CONTAINS_STRUCT (TS_COMMON).
21541
ccb1b17b
JJ
215422011-05-22 Jakub Jelinek <jakub@redhat.com>
21543
21544 PR middle-end/49029
21545 * expmed.c (extract_fixed_bit_field): Test whether target can be used
21546 only after deciding which mode to use.
21547
50ad7db2
TV
215482011-05-22 Tom de Vries <tom@codesourcery.com>
21549
21550 PR target/45098
dc0a3366 21551 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
21552 for call to get_shiftadd_cost.
21553
ef230b38
UB
215542011-05-22 Uros Bizjak <ubizjak@gmail.com>
21555
21556 PR target/49104
21557 * config/i386/cpuid.h (bit_MMXEXT): New define.
21558
15f072f9
NC
215592011-05-22 Nick Clifton <nickc@redhat.com>
21560
21561 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
21562 initialisation of non-existant args[2] element. Use args[] array
21563 not arg[] array to pass arguments to build_function_type_list.
21564
e38fdc94
IR
215652011-05-22 Ira Rosen <ira.rosen@linaro.org>
21566
21567 PR tree-optimization/49087
ef230b38 21568 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 21569
5b018c65
JM
215702011-05-21 Jason Merrill <jason@redhat.com>
21571
21572 PR c++/49092
21573 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
21574 static storage duration.
21575
abd9a770
EB
215762011-05-21 Eric Botcazou <ebotcazou@adacore.com>
21577
21578 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
21579 frame pointer.
21580
bd9a3248
EB
215812011-05-21 Eric Botcazou <ebotcazou@adacore.com>
21582
21583 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
21584 false if there are call-saved registers here...
21585 (sparc_can_use_return_insn_p): ...but here instead.
21586 (save_or_restore_regs): Fix thinko.
21587 (sparc_expand_prologue): Use current_function_is_leaf.
21588 (sparc_frame_pointer_required): Likewise.
21589
a5dfec9a
NC
215902011-05-21 Nick Clifton <nickc@redhat.com>
21591
21592 PR target/49098
21593 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
21594
555c3771
NP
215952011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
21596
21597 * gengtype.c (walk_type): Implemented "atomic" GTY option.
21598 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
21599
86fa5de4
JM
216002011-05-21 Joseph Myers <joseph@codesourcery.com>
21601
21602 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
21603 * optc-gen.awk: Move common code to opt-read.awk.
21604 * opth-gen.awk: Likewise.
ef230b38 21605 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 21606
bce33ab2
NF
216072011-05-20 Nathan Froyd <froydnj@codesourcery.com>
21608
21609 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
21610
e6450c11
TV
216112011-05-20 Tom de Vries <tom@codesourcery.com>
21612
21613 PR target/45098
21614 * tree-ssa-loop-ivopts.c: Include expmed.h.
21615 (get_shiftadd_cost): New function.
21616 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
21617
0e8b84ec
JJ
216182011-05-20 Jakub Jelinek <jakub@redhat.com>
21619
21620 PR bootstrap/49086
21621 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
21622 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
21623
946bdf67
JM
216242011-05-20 Joseph Myers <joseph@codesourcery.com>
21625
21626 * Makefile.in: Update comment referring to $(OBJS-common).
21627
c53aafdf
ILT
216282011-05-20 Ian Lance Taylor <iant@google.com>
21629
21630 * godump.c (go_output_typedef): Put enum constants in the macro
21631 hash table to avoid duplicate Go const definitions.
21632
2691e6d7
JM
216332011-05-20 Joseph Myers <joseph@codesourcery.com>
21634
21635 * Makefile.in (LIBDEPS): Add libcommon.a.
21636 (LIBS): Likewise.
21637 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
21638 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
21639 pretty-print.o and version.o.
21640 (OBJS-libcommon): New.
21641 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
21642 (BACKEND): Add libcommon.a.
21643 (MOSTLYCLEANFILES): Likewise.
21644 (libcommon.a): New.
21645 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
21646 (cpp$(exeext)): Likewise.
21647 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
21648 pretty-print.o and input.o.
21649 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
21650 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
21651 (errors.o): Remove.
21652 (mips-tfile): Don't explicitly use version.o.
21653 (mips-tdump): Likewise.
21654 (gcov.o): Depend on $(DIAGNOSTIC_H).
21655 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
21656 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
21657 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
21658 * gcov-dump.c: Include intl.h and diagnostic.h.
21659 (main): Initialize diagnostics.
21660 * gcov.c: Include diagnostic.h.
21661 (fnotice): Remove.
21662 (main): Initialize diagnostics.
21663 * lto-wrapper.c: Include diagnostic.h.
21664 (main): Initialize diagnostics.
21665
252b3e8c
MM
216662011-05-20 Michael Matz <matz@suse.de>
21667
21668 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
21669
2ee36ba6
MM
216702011-05-20 Michael Matz <matz@suse.de>
21671 Richard Guenther <rguenther@suse.de>
21672
21673 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
21674 use lto_streamer_cache_append directly instead of returning a VEC.
21675 (preload_common_node): Remove.
21676 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
21677 track seen nodes.
21678 (lto_streamer_cache_create): Call lto_preload_common_nodes.
21679
90ff582f
RG
216802011-05-20 Richard Guenther <rguenther@suse.de>
21681
21682 PR tree-optimization/49079
21683 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
21684 MEM_REFs correctly for the trailing array access detection.
21685 Special case constants the same way as decls for overall size
21686 constraining.
21687
3cda91d8
UB
216882011-05-20 Uros Bizjak <ubizjak@gmail.com>
21689
21690 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
21691 argument expansion.
21692
6c66f733
JJ
216932011-05-20 Jakub Jelinek <jakub@redhat.com>
21694
21695 PR tree-optimization/49073
3cda91d8
UB
21696 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
21697 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
21698 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
21699
0ea80a16
RG
217002011-05-20 Richard Guenther <rguenther@suse.de>
21701
21702 PR middle-end/48849
21703 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
21704 of pointer types the same way the middle-end does.
21705
fb291a1e
RG
217062011-05-20 Richard Guenther <rguenther@suse.de>
21707
3cda91d8
UB
21708 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
21709 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 21710
37cb25ed
QN
217112011-05-19 Quentin Neill <quentin.neill@amd.com>
21712
21713 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
21714 (fma4_fmaddsub): Likewise
21715
a30726a4
JH
217162011-05-19 Jan Hubicka <jh@suse.cz>
21717
21718 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
21719 (GIMPLE_TYPE_PAIR_SIZE): New macro.
21720 (type_pair_cache): New static var.
21721 (lookup_type_pair): Use fixed sized custom hash; make inline.
21722 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
21723 calls of lookup_type_pair.
21724 (print_gimple_types_stats): Remove cache stats.
21725 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
21726 and gtc_ob.
21727
0955cf61
UB
217282011-05-19 Uros Bizjak <ubizjak@gmail.com>
21729
21730 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
21731 when TARGET_RDRND is active.
21732 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
21733 Generate dummy SImode target register when target is NULL.
21734
12d844c8
JM
217352011-05-19 Joseph Myers <joseph@codesourcery.com>
21736
21737 * config/arm/arm-fpus.def: New.
21738 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
21739 arm-fpus.def.
21740 * config/arm/arm-tables.opt: Regenerate.
21741 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
21742 (arm_option_override): Don't decode FPU name to string here.
21743 * config/arm/arm.opt (mfpu=): Use Enum.
21744 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
21745 Update dependencies.
21746
9e350e99
JM
217472011-05-19 Joseph Myers <joseph@codesourcery.com>
21748
21749 * collect2.c: Include diagnostic.h.
21750 (fatal_perror, fatal, error, fancy_abort): Remove.
21751 (main): Set progname. Call xmalloc_set_program_name and
21752 diagnostic_initialize.
21753 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
21754 scan_libraries, resolve_lib_name): Call fatal_error instead of
21755 fatal and fatal_perror.
21756 * collect2.h (error, fatal, fatal_perror): Don't declare.
21757 * tlink.c: Include diagnostic-core.h.
21758 (recompile_files): Call fatal_error instead of fatal_perror.
21759 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
21760 pretty-print.o and input.o.
21761 (collect2.o, tlink.o): Update dependencies.
21762
86ff4081
RO
217632011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21764
21765 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
21766
2ca48caa
RO
217672011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21768
21769 PR target/40483
21770 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
21771 COMDAT group syntax, both SPARC and x86 variants.
21772 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
21773 * configure: Regenerate.
21774 * config/sol2.h (TARGET_SOLARIS): Define.
21775 (PUSHSECTION_FORMAT): Remove.
21776 (SECTION_NAME_FORMAT): Define.
21777 * config/sol2.c: Include hashtab.h.
21778 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
21779 expansion, using SECTION_NAME_FORMAT.
21780 (solaris_comdat_htab): New variable.
21781 (struct comdat_entry): Define.
21782 (comdat_hash): New function.
21783 (comdat_eq): New function.
21784 (solaris_elf_asm_comdat_section): New function.
21785 (solaris_define_comdat_signature): New function.
21786 (solaris_code_end): New function.
21787 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
21788 (solaris_code_end): Declare.
21789 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
21790 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
21791 solaris_code_end.
21792 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
21793 Remove ATTRIBUTE_UNUSED.
21794 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
21795 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 21796 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
21797 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
21798 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
21799 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
21800 (PUSHSECTION_FORMAT): Remove.
21801 (SECTION_NAME_FORMAT): Redefine.
21802
da5fb469
KT
218032011-05-19 Kai Tietz <ktietz@redhat.com>
21804
21805 * tree-cfg.c (verify_gimple_assign_binary): Barf on
21806 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
21807 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
21808
1651e703 218092011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
21810 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21811
21812 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
21813
e497b9bd
RG
218142011-05-19 Richard Guenther <rguenther@suse.de>
21815
21816 PR middle-end/48985
21817 * tree-object-size.c (addr_object_size): If the pointed-to
21818 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
21819
31b3ca64
RG
218202011-05-19 Richard Guenther <rguenther@suse.de>
21821
21822 * gimple.c (gimple_types_compatible_p_1): Compare names of
21823 the types themselves.
21824 (iterative_hash_gimple_type): And hash them that way.
21825 (gimple_register_type_1): If we register a main variant properly
21826 initialize the leader to ourselves.
21827
bb8d292d
TV
218282011-05-19 Tom de Vries <tom@codesourcery.com>
21829
21830 PR target/45098
21831 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
21832 get_loop_invariant_expr_id.
21833 (get_loop_invariant_expr_id): Use get_expr_id.
21834 (parm_decl_cost): New function.
21835 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
21836 Improve bound cost estimation. Use different inv_expr_id for elim and
21837 express cases.
21838
a53c5024
TV
218392011-05-19 Tom de Vries <tom@codesourcery.com>
21840
21841 PR target/45098
21842 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
21843 cost_base.cost == 0.
21844
31f9eb59
L
218452011-05-18 H.J. Lu <hongjiu.lu@intel.com>
21846
21847 PR target/49002
66bd20e7
EB
21848 * config/i386/sse.md
21849 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
21850 load cast.
31f9eb59 21851
681056ae
JJ
218522011-05-18 Jakub Jelinek <jakub@redhat.com>
21853
21854 PR tree-optimization/49039
21855 * tree-vrp.c (extract_range_from_binary_expr): For
21856 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
21857 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
21858
b5ee6752
TV
218592011-05-18 Tom de Vries <tom@codesourcery.com>
21860
21861 PR target/45098
21862 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
21863
0bda47a3
UB
218642011-05-18 Uros Bizjak <ubizjak@gmail.com>
21865
21866 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
21867 (*tls_global_dynamic_64): Ditto.
21868 (*tls_local_dynamic_base_32_gnu): Ditto.
21869 (*tls_local_dynamic_base_64): Ditto.
21870 (tls_initial_exec_64_sun): Ditto.
21871
033b0805
SH
218722011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
21873
21874 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
21875 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
21876 bf592-none.
21877 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
21878 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
21879 * config/bfin/bfin.c (bfin_cpus): Add bf592.
21880 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 21881 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
21882 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
21883 * config/bfin/elf.h (LIB_SPEC): Add bf592.
21884
ba163417
JM
218852011-05-18 Joseph Myers <joseph@codesourcery.com>
21886
21887 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 21888 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
21889 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
21890 target_thread_pointer, arm_structure_size_boundary, struct
21891 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
21892 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
21893 (arm_option_override) Don't process most enumerated option values here.
21894 Don't process target_fpe_name here. Work with integer not string for
21895 structure size boundary; use separate diagnostics for each case.
ba163417
JM
21896 * config/arm/arm.h (enum float_abi_type, enum
21897 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
21898 to arm-opts.h.
21899 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
21900 arm_structure_size_boundary): Remove.
21901 * config/arm/arm.opt (mabi=): Use Enum and Init.
21902 (arm_abi_type): New Enum and EnumValue entries.
21903 (mfloat-abi=): Use Enum and Init.
21904 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 21905 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
21906 (mfp16-format=): Use Enum and Init.
21907 (arm_fp16_format_type): New Enum and EnumValue entries.
21908 (mstructure-size-boundary=): Use UInteger and Init.
21909 (mtp=): Use Enum and Init.
21910 (arm_tp_type): New Enum and EnumValue entries.
21911
179184e3
RG
219122011-05-18 Richard Guenther <rguenther@suse.de>
21913
21914 PR tree-optimization/49018
21915 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
21916 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
21917 gimple_has_side_effects.
21918
93b2a207
RG
219192011-05-18 Richard Guenther <rguenther@suse.de>
21920
21921 * gimple.c (gimple_register_type_1): New function, split out from ...
21922 (gimple_register_type): ... here. Avoid infinite recursion.
21923
b010117a
IR
219242011-05-18 Ira Rosen <ira.rosen@linaro.org>
21925
21926 PR tree-optimization/41881
21927 * tree-vectorizer.h (struct _loop_vec_info): Add new field
21928 reduction_chains along with a macro for its access.
21929 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
21930 (destroy_loop_vec_info): Free reduction chains.
21931 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
21932 (vect_is_slp_reduction): New function.
21933 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
21934 (vect_create_epilog_for_reduction): Support SLP reduction chains.
21935 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
21936 definition types for reduction chains.
21937 (vect_supported_load_permutation_p): Don't allow permutations for
21938 reduction chains.
21939 (vect_analyze_slp_instance): Support reduction chains.
21940 (vect_analyze_slp): Try to build SLP instance from reduction chains.
21941 (vect_get_constant_vectors): Handle reduction chains.
21942 (vect_schedule_slp_instance): Mark the first statement of the
21943 reduction chain as reduction.
21944
e14c1050
IR
219452011-05-18 Ira Rosen <ira.rosen@linaro.org>
21946
21947 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
21948 names for group elements access.
21949 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
21950 reduction chains as well. Remove data reference and interleaving
21951 related words from the fields names.
21952 * tree-vect-loop.c (vect_transform_loop): Use new names for group
21953 elements access.
21954 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
21955 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
21956 vect_update_interleaving_chain, vect_same_range_drs,
21957 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
21958 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
21959 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
21960 vect_analyze_group_access, vect_analyze_data_ref_access,
21961 vect_create_data_ref_ptr, vect_transform_strided_load,
21962 vect_record_strided_load_vectors): Likewise.
21963 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
21964 vect_model_load_cost, vectorizable_store, vectorizable_load,
21965 vect_remove_stores, new_stmt_vec_info): Likewise.
21966 * tree-vect-slp.c (vect_build_slp_tree,
21967 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
21968
51c213f7
RG
219692011-05-18 Richard Guenther <rguenther@suse.de>
21970
21971 PR middle-end/48989
21972 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
21973 operand verification.
21974 (verify_gimple_assign_binary): Likewise.
21975 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
21976 to non-1-precision BOOLEAN_TYPEs.
21977
8f5e5434
TV
219782011-05-18 Tom de Vries <tom@codesourcery.com>
21979
21980 PR target/45098
21981 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
21982
116bc3a4
JJ
219832011-05-18 Jakub Jelinek <jakub@redhat.com>
21984
21985 PR tree-optimization/49000
21986 * tree-ssa.c (execute_update_addresses_taken): Call
21987 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
21988 be rewritten and decl has been marked for renaming, reset
21989 the debug stmt.
21990
26a8964c
JM
219912011-05-17 Joseph Myers <joseph@codesourcery.com>
21992
21993 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
21994 enum_opts_set when testing if attributes have set -mfpmath=.
21995
82bd45d7
RS
219962011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
21997
21998 * config/mips/mips.c (mips_handle_option): Remove unused variable.
21999
267ffce3
UB
220002011-05-17 Uros Bizjak <ubizjak@gmail.com>
22001
22002 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
22003 info->entry with 0
22004 * tree-inline.c (maybe_inline_call_in_expr): Initialize
22005 id.transform_lang_insert_block with NULL.
22006
220072011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
22008
22009 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
22010 (output_fp_compare): Change args 3 and 4 to bool.
22011 (ix86_expand_call): Change arg 6 to bool.
22012 (ix86_attr_length_immediate_default): Change arg 2 to bool.
22013 (ix86_attr_length_vex_default): Change arg 3 to bool.
22014 * config/i386/i386.md: Update all uses.
22015 * config/i386/i386.c: Ditto.
22016 (ix86_flags_dependent): Change return type to bool.
22017
5beaf664
RG
220182011-05-17 Richard Guenther <rguenther@suse.de>
22019
22020 * gimple.c (type_hash_pair_compare): Fix comparison.
22021
008bad7a
RG
220222011-05-17 Richard Guenther <rguenther@suse.de>
22023
22024 * gimple.c (iterative_hash_gimple_type): Simplify singleton
22025 case some more, fix final hash value of the non-singleton case.
22026
36461340
RG
220272011-05-17 Richard Guenther <rguenther@suse.de>
22028
22029 PR bootstrap/49013
22030 Revert
22031 2011-05-16 Richard Guenther <rguenther@suse.de>
22032
22033 * gimple.c (gimple_types_compatible_p_1): Use names of the
22034 type itself, not its main variant.
22035 (iterative_hash_gimple_type): Likewise.
22036
6b6a59f3
RG
220372011-05-17 Richard Guenther <rguenther@suse.de>
22038
22039 * gimple.c (gimple_register_canonical_type): Use the main-variant
22040 leader for computing the canonical type.
22041
4ffc4134
NC
220422011-05-17 Nick Clifton <nickc@redhat.com>
22043
a1d8754e
NC
22044 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
22045 moves.
22046
4ffc4134
NC
22047 * config/rx/rx.md: Add peephole to remove redundant extensions
22048 after loads.
39960f7a
NC
22049 (bitset_in_memory): Use rx_restricted_mem_operand.
22050 (bitinvert_in_memory): Likewise.
22051 (bitclr_in_memory): Likewise.
4ffc4134 22052
b3db92ac
KI
220532011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
22054 Nick Clifton <nickc@redhat.com>
22055
22056 * config/rx/rx.md: Add peepholes to match a register move followed
22057 by a comparison of the moved register. Replace these with an
22058 addition of zero that does both actions in one instruction.
22059
8637e32a
JJ
220602011-05-17 Jakub Jelinek <jakub@redhat.com>
22061
22062 PR target/48986
22063 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
22064 predicate to allow CONST_INT.
22065 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
22066
8023568e
JM
220672011-05-16 Joseph Myers <joseph@codesourcery.com>
22068
22069 * opts-common.c (opt_enum_arg_to_value): New.
22070 * opts.h (opt_enum_arg_to_value): Declare.
22071 * config/i386/i386.opt (fpmath): Remove.
22072 (mfpmath=): Use Enum, Init and Save.
22073 (fpmath_unit): New Enum and EnumValue entries.
22074 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
22075 name for function fpmath state.
22076 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
22077 * config/i386/i386.c: Include diagnostic.h.
22078 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 22079 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 22080 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 22081 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
22082 (x86_function_specific_save, ix86_function_specific_restore):
22083 Don't handle fpmath state specially.
22084 (ix86_function_specific_print): Pass fpmath state to
22085 ix86_target_string instead of printing in this function.
22086 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
22087 Handle enum attributes.
22088 (IX86_ATTR_ENUM, ix86_opt_enum): New.
22089 (ix86_valid_target_attribute_tree): Update option_strings
22090 handling. Handle fpmath as enum option.
22091 (ix86_can_inline_p): Update field names for function fpmath state.
22092 (ix86_expand_builtin): Update call to ix86_target_string.
22093 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
22094 (ix86_fpmath): Remove.
22095 * config/i386/t-i386 (i386.o): Update dependencies.
22096
9e8d926e
JM
220972011-05-16 Joseph Myers <joseph@codesourcery.com>
22098
22099 PR preprocessor/48677
22100 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
22101 from decoded_options[0], not from itself.
22102
f6449011
UB
221032011-05-16 Uros Bizjak <ubizjak@gmail.com>
22104
22105 * config/i386/constraints.md (z): New constraint.
22106 * config/i386/i386.c (c): New mode attribute.
22107 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
22108 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
22109 constraint for operand 0.
22110 (*call_vzeroupper): Ditto.
22111 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
22112 (*call_rex64_ms_sysv_vzeroupper): Ditto.
22113 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
22114 Use "lzm" constraint for operand 0.
22115 (*call_pop_vzeroupper): Ditto.
22116 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
22117 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
22118 constraint for operand 0.
22119 (*sibcall_vzeroupper): Ditto.
22120 (*sibcall_rex64_ms_sysv): Ditto.
22121 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
22122 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
22123 *sibcall_pop_1. Use "Uz" constraint for operand 0.
22124 (*sibcall_pop_vzeroupper): Ditto.
22125 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
22126 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
22127 mode iterator. Use "<c>zm" constraint for operand 1.
22128 (*call_value_vzeroupper): Ditto.
22129 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 22130 for operand 1.
f6449011
UB
22131 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
22132 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
22133 *call_value_pop_1. Use "lzm" constraint for operand 1.
22134 (*call_value_pop_vzeroupper): Ditto.
22135 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
22136 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
22137 mode iterator. Use "Uz" constraint for operand 1.
22138 (*sibcall_value_vzeroupper): Ditto.
22139 (*sibcall_value_rex64_ms_sysv): Ditto.
22140 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
22141 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
22142 constraint for operand 1.
22143 (*sibcall_value_pop_vzeroupper): Ditto.
22144 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
22145 and "z" constraint for operand 2.
22146 (*tls_global_dynamic_32_gnu): Ditto.
22147 (*tls_local_dynamic_base_32_gnu): Ditto.
22148 (*tls_local_dynamic_base_64): Ditto.
22149 (*tls_local_dynamic_32_once): Ditto.
22150 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
22151 Update all callers.
22152 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
22153
c11b6902
RG
221542011-05-16 Richard Guenther <rguenther@suse.de>
22155
22156 * gimple.c (gimple_types_compatible_p_1): Use names of the
22157 type itself, not its main variant.
22158 (iterative_hash_gimple_type): Likewise.
22159
1e83b5f1
RG
221602011-05-16 Richard Guenther <rguenther@suse.de>
22161
f6449011
UB
22162 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
22163 always visit pointer target and function result and argument types.
1e83b5f1 22164
62e36382
JM
221652011-05-16 Jason Merrill <jason@redhat.com>
22166
22167 PR c++/48999
22168 * tree-inline.c (copy_statement_list): Put back recursion.
22169
687027a4
GJL
221702011-05-16 Georg-Johann Lay <avr@gjlay.de>
22171
22172 PR target/27663
22173 PR target/41076
22174 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
22175 * config/avr/avr.md ("*ior<mode>qi.byte0",
22176 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
22177
f24a5190
GJL
221782011-05-16 Georg-Johann Lay <avr@gjlay.de>
22179
22180 PR target/45099
22181 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
22182 register is needed for a function argument.
22183
3066f593
RG
221842011-05-16 Richard Guenther <rguenther@suse.de>
22185
22186 * gimple.c (struct type_hash_pair): New type.
22187 (type_hash_pair_compare): New function.
f6449011 22188 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 22189
b2ab2cf4
RE
221902011-05-16 Revital Eres <revital.eres@linaro.org>
22191
f6449011 22192 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 22193
dfb737fc
UB
221942011-05-15 Uros Bizjak <ubizjak@gmail.com>
22195
22196 * config/i386/i386.md (floating point move splitters): Fix
22197 usage of standard_80387_constant_p.
f6449011 22198 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 22199
8caa1de0
UB
222002011-05-15 Uros Bizjak <ubizjak@gmail.com>
22201
22202 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
22203
8a519095
EB
222042011-05-14 Eric Botcazou <ebotcazou@adacore.com>
22205
22206 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
22207 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
22208 (tree_ssa_lim_finalize): Likewise.
22209
479fecd3
UB
222102011-05-14 Uros Bizjak <ubizjak@gmail.com>
22211
22212 * config/i386/constraint.md (Yd, Yx): New register constraints.
22213 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
22214 Yd conditional register constraint.
22215 (*movtf_internal): Use standard_sse_constant_opcode.
22216 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
22217 Yx conditional register constraint.
22218 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
22219 Yd conditional register constraint. Use standard_sse_constant_p to
22220 check for valid SSE constants and call standard_sse_constant_opcode to
22221 output SSE insn.
22222 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
22223 constants and call standard_sse_constant_opcode to output SSE insn.
22224 * config/i386/i386.c (ix86_option_ovverride_internal): Set
22225 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
22226 optimize_size is set.
22227 (standard_sse_constant_opcode): Output conditional AVX insn templates.
22228
2d8c9ad5
TB
222292011-05-14 Tobias Burnus <burnus@net-b.de>
22230
22231 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
22232
411a20d6
MJ
222332011-05-13 Martin Jambor <mjambor@suse.cz>
22234
22235 * ipa-prop.c (ipa_cst_from_jfunc): New function.
22236 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
22237 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
22238 (evaluate_conditions_for_ipcp_clone): Removed.
22239 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
22240 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
22241 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
22242
dc764d10
EB
222432011-05-13 Eric Botcazou <ebotcazou@adacore.com>
22244
22245 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
22246 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
22247 lieu of MAY_HAVE_DEBUG_STMTS.
22248 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
22249 debug statements if !MAY_HAVE_DEBUG_STMTS.
22250
9f47a24e
MT
222512011-05-13 Martin Thuresson <martint@google.com>
22252
22253 PR gcov-profile/47793
22254 * libgcov.c (gcov_exit): Support relative profile paths.
22255 * doc/invoke.texi (-fprofile-dir): Update for above change.
22256
b8a71aed
RG
222572011-05-13 Richard Guenther <rguenther@suse.de>
22258
22259 * gimple.c (gimple_canonical_types_compatible_p): Do not use
22260 type-pair caching, do not compare hashes.
22261
eb9f9259
NF
222622011-05-13 Nathan Froyd <froydnj@codesourcery.com>
22263
22264 PR middle-end/48965
22265 * tree-cfg.c (edge_to_cases_cleanup): Return true.
22266 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
22267
3c6cbf7a
KT
222682011-05-13 Kai Tietz <ktietz@redhat.com>
22269
22270 * gimplify.c (gimplify_expr): Make sure operand is boolified.
22271 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
22272 compatible type for TRUTH_NOT_EXPR.
22273
2e7f5dc0
L
222742011-05-13 H.J. Lu <hongjiu.lu@intel.com>
22275
dc764d10 22276 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
22277 (ix86_hard_regno_mode_ok): Change return value to bool. Use
22278 can_create_pseudo_p ().
22279
e834e95c
RG
222802011-05-13 Richard Guenther <rguenther@suse.de>
22281
22282 PR lto/48978
22283 * gimple.c (iterative_hash_gimple_type): Revert change in
22284 pointer target and function result and argument hashing.
22285
34203483
UB
222862011-05-13 Uros Bizjak <ubizjak@gmail.com>
22287
22288 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
22289 (*movxf_internal_nointeger): Ditto.
22290 (*movdf_internal_rex64): Ditto.
22291 (*movdf_internal): Ditto.
22292 (*movdf_internal_nointeger): Ditto.
22293 (*movsf_internal): Ditto.
22294 (sincos splitters): Use can_create_pseudo ().
22295
7eb68c06
JM
222962011-05-13 Joseph Myers <joseph@codesourcery.com>
22297
22298 * config/i386/i386-opts.h: New.
22299 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
22300 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
22301 ix86_section_threshold): Remove.
22302 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
22303 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
22304 OPT_mbranch_cost_.
22305 (ix86_option_override_internal): Don't decode strings for options
22306 other than -march=, -mtune= and -mfpmath=. Don't allow for
22307 __attribute__ uses in remaining diagnostics for options with
34203483 22308 string arguments. Don't check for integer arguments being negative.
7eb68c06 22309 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 22310 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
22311 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
22312 ix86_branch_cost, ix86_section_threshold): Remove.
22313 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
22314 HeaderInclude.
22315 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
22316 but not Var.
22317 (masm=): Use Enum and Init.
22318 (asm_dialect): New Enum and EnumValue entries.
22319 (mbranch-cost=): Use UInteger.
22320 (mlarge-data-threshold=): Use UInteger and Init.
22321 (mcmodel=): Use Enum and Init.
22322 (cmodel): New Enum and EnumValue entries.
22323 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
22324 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
22325 mregparm=): Use UInteger.
22326 (mstringop-strategy=): Use Enum and Init.
22327 (stringop_alg): New Enum and EnumValue entries.
22328 (mtls-dialect=): Use Enum and Init.
22329 (tls_dialect): New Enum and EnumValue entries.
22330 (mabi=): Use Enum and Init.
22331 (calling_abi): New Enum and EnumValue entries.
22332 (mveclibabi=): Use Enum and Init.
22333 (ix86_veclibabi): New Enum and EnumValue entries.
22334
f67e203c
NC
223352011-05-13 Nick Clifton <nickc@redhat.com>
22336
34203483
UB
22337 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
22338 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 22339
221df0b6
KT
223402011-05-13 Kai Tietz <ktietz@redhat.com>
22341
22342 PR middle-end/48984
22343 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
22344 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
22345 (gimple_boolify): Check for cast for boolean_type_node instead for
22346 BOOLEAN_TYPE.
22347
208cb8cb
RG
223482011-05-13 Richard Guenther <rguenther@suse.de>
22349
22350 PR tree-optimization/48172
22351 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
22352 multiplying by number of iterations for equal step.
22353 (vect_create_cond_for_alias_checks): Likewise.
22354
b88ecf55
AS
223552011-05-13 Andreas Schwab <schwab@redhat.com>
22356
22357 * configure.ac: Use AS_HELP_STRING throughout.
22358 * configure: Regenerate.
22359
569b527e
L
223602011-05-12 H.J. Lu <hongjiu.lu@intel.com>
22361
34203483 22362 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
22363 (ix86_emit_restore_regs_using_mov): Likewise.
22364 (ix86_emit_restore_sse_regs_using_mov): Likewise.
22365
8b9a1428
AS
223662011-05-12 Anatoly Sokolov <aesok@post.ru>
22367
22368 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
22369 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
22370 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
22371 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
22372 RTX_OK_FOR_OLO10_P): ...here.
22373 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
22374 SYMBOLIC_CONST.
22375
1d15f620
KT
223762011-05-12 Kai Tietz <ktietz@redhat.com>
22377
22378 * gimplify.c (gimple_boolify): Re-boolify expression
22379 arguments even if expression type is of kind BOOLEAN_TYPE.
22380 (gimplify_boolean_expr): Removed.
22381 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
22382 and XOR. Additional take care that we keep expression's type.
22383 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
22384 of TRUTH_AND|OR|XOR_EXPR.
22385
c2b5fc8d
JJ
223862011-05-12 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR tree-optimization/48975
22389 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
22390 on all bbs here and free and clear ifc_bbs at the end.
22391
61332f77
RG
223922011-05-12 Richard Guenther <rguenther@suse.de>
22393
22394 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
22395 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
22396 until after simple checks.
22397 (gimple_types_compatible_p): Likewise.
22398 (iterative_hash_gimple_type): Always hash pointer targets
22399 and function return and argument types.
22400 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
22401 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
22402 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
22403 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
22404 completely in the simple compare section.
22405 (gimple_register_canonical_type): Query the cache again after
22406 registering.
22407
e2a3a5f1
RG
224082011-05-12 Richard Guenther <rguenther@suse.de>
22409
22410 PR tree-optimization/48172
22411 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
22412 the number of iterations from the segment size calculation.
22413 (vect_create_cond_for_alias_checks): Adjust.
22414
2c703f3a
JJ
224152011-05-12 Jakub Jelinek <jakub@redhat.com>
22416
22417 PR debug/48967
22418 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
22419 if validate_subreg fails.
22420
224212011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
22422
22423 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
22424 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
22425 early.
22426
87e91fca
DD
224272011-05-12 DJ Delorie <dj@redhat.com>
22428
d53903d6 22429 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
22430 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
22431 created builtin into rx_builtins array.
22432 (rx_builtin_decl): New function.
34203483 22433 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 22434
5f2f13fd
DD
224352011-05-12 DJ Delorie <dj@redhat.com>
22436 Nick Clifton <nickc@redhat.com>
22437
22438 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
22439 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
22440 (rx_is_legitimate_address): Add pre-decrement and post-increment
22441 addressing in HImode and QImode. Fix test for out of range
22442 REG+INT addressing.
87e91fca 22443 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 22444 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 22445 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 22446 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 22447
57421f45
JM
224482011-05-11 Jason Merrill <jason@redhat.com>
22449
22450 * tree.c (type_hash_canon): Use struct tree_type_non_common.
22451
898c90c0
EB
224522011-05-11 Eric Botcazou <ebotcazou@adacore.com>
22453
22454 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
22455 reindent the subsequent block.
22456
79bec923
ST
224572011-05-11 Satoru Takabayashi <satorux@google.com>
22458 Paul Pluzhnikov <ppluzhnikov@google.com>
22459
34203483 22460 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
22461 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
22462 * config.in: Add LINKER_HASH_STYLE.
22463 * configure.ac: Add --with-linker-hash-style.
22464 * configure: Regenerate.
79bec923 22465
d0340959
RG
224662011-05-11 Richard Guenther <rguenther@suse.de>
22467
22468 PR middle-end/48964
22469 * gimple.c (iterative_hash_canonical_type): Fix typo.
22470
cb032fee
UB
224712011-05-11 Uros Bizjak <ubizjak@gmail.com>
22472
22473 * config/i386/i386.c (legitimize_tls_address)
479fecd3 22474 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
22475 expanders directly for TARGET_GNU2_TLS. Determine pic and
22476 __tls_get_addr symbol reference here. Update call to
22477 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 22478 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
22479 expanders directly for TARGET_GNU2_TLS. Determine
22480 __tls_get_addr symbol reference here. Update call to
22481 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
22482 unique UNSPEC REG_EQUIV to libcall block.
22483 (ix86_tls_get_addr): Declare static.
22484 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
22485 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
22486 Do not determine pic and __tls_get_addr symbol reference here. Do not
22487 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
22488 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
22489 (tls_global_dynamic_64): Add operand 2. Do not determine
22490 __tls_get_addr symbol reference here. Do not call
22491 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
22492 (tls_local_dynamic_base64): Ditto for operand 1.
22493
6d3cc8f0
EB
224942011-05-11 Eric Botcazou <ebotcazou@adacore.com>
22495
22496 * function.c (expand_function_start): Initialize stack_check_probe_note
22497 only if the generic stack checking mechanism is used.
22498
51e020fc
RG
224992011-05-11 Richard Guenther <rguenther@suse.de>
22500
22501 PR tree-optimization/15256
22502 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
22503 (A & B) | C, combine (A op CST1) op CST2.
22504 (tree_ssa_forward_propagate_single_use_vars): Only bother to
22505 visit assigns that have uses.
22506
51545682
NF
225072011-05-11 Nathan Froyd <froydnj@codesourcery.com>
22508
cb032fee 22509 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
22510 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
22511 (unpack_ts_type_common_value_fields): ...this. Update comment.
22512 (unpack_value_fields): Adjust for renaming.
22513 (lto_input_ts_type_tree_pointers): Split into...
22514 (lto_input_ts_type_common_tree_pointer): ...this and...
22515 (lto_input_ts_type_non_common_tree_pointers): ...this.
22516 (lto_input_tree_pointers): Adjust for above split.
22517 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
22518 (pack_ts_type_common_value_fields): ...this. Update comment.
22519 (lto_output_ts_type_tree_pointers): Split into...
22520 (lto_output_ts_type_common_tree_pointers): ...this and...
22521 (lto_output_ts_type_non_common_tree_pointers): ...this.
22522 (lto_output_tree_pointers): Adjust for above split.
22523 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
22524 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
22525 * stor-layout.c (vector_type_mode): Adjust location of mode field.
22526 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
22527 Define.
22528 (struct tree_type): Split into...
22529 (struct tree_type_common: ...this and...
22530 (struct tree_type_with_lang_specific): ...this and...
22531 (struct tree_type_non_common): ...this. Adjust accessor macros
22532 accordingly.
22533 (TYPE_VALUES_RAW): Define.
22534 (union tree_node): Update for above changes.
22535 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
22536 TS_TYPE_NON_COMMON.
22537 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
22538 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
22539 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
22540 * treestructu.def (TS_TYPE): Remove.
22541 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
22542 Define.
22543
b03c3082
JJ
225442011-05-11 Jakub Jelinek <jakub@redhat.com>
22545
22546 PR debug/48159
22547 * tree-ssa.c (reset_debug_uses): New function.
22548 * tree-flow.h (reset_debug_uses): New prototype.
22549 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
22550 * tree-loop-distribution.c (generate_loops_for_partition): Call
22551 reset_debug_uses on the stmts that will be removed. Keep around
22552 all debug stmts, don't count them as bits in partition bitmap.
22553 (generate_builtin): Don't count debug stmts or labels as bits in
22554 partition bitmap.
22555
b5e04de5
RG
225562011-05-11 Richard Guenther <rguenther@suse.de>
22557
22558 * gimple.c (gimple_type_hash_1): Merge with ...
22559 (gimple_type_hash): ... this.
22560 (gtc_visit): Remove mode parameter and simplify accordingly.
22561 (gimple_types_compatible_p_1): Likewise.
22562 (gimple_types_compatible_p): Likewise.
22563 (iterative_hash_gimple_type): Likewise.
22564 (visit): Likewise.
22565 (gimple_type_eq): Adjust.
22566
fc6970e4
RE
225672011-05-11 Revital Eres <revital.eres@linaro.org>
22568
22569 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
22570 enters the branch create an anti edge in the opposite direction
22571 to prevent the creation of reg-moves.
22572 * modulo-sched.c: Adjust comment to reflect the fact we are
22573 scheduling closing branch.
22574 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
22575 (stage_count): New field in struct partial_schedule.
22576 (calculate_stage_count): New function.
22577 (normalize_sched_times): Rename to reset_sched_times and handle
22578 incrementing the sched time of the nodes by a constant value
22579 passed as parameter.
22580 (duplicate_insns_of_cycles): Skip closing branch.
22581 (sms_schedule_by_order): Schedule closing branch.
22582 (ps_insn_find_column): Handle closing branch.
22583 (sms_schedule): Call reset_sched_times and adjust the code to
22584 support scheduling of the closing branch.
22585 (ps_insert_empty_row): Update calls to normalize_sched_times
22586 and rotate_partial_schedule functions.
22587
41a58a92
RG
225882011-05-11 Richard Guenther <rguenther@suse.de>
22589
22590 PR middle-end/48953
22591 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
22592
e9f8dcf9
JM
225932011-05-11 Joseph Myers <joseph@codesourcery.com>
22594
cb032fee
UB
22595 * opts.c (finish_options): Move warning settings from process_options.
22596 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 22597
10c224a9
RG
225982011-05-11 Richard Guenther <rguenther@suse.de>
22599
22600 PR tree-optimization/18041
22601 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
22602 (simplify_bitwise_binary): ... this. Handle operand conversions
22603 by applying them to the result instead.
22604 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
22605
825b27de
RG
226062011-05-11 Richard Guenther <rguenther@suse.de>
22607
22608 * gimple.c (gimple_canonical_types_compatible_p): Split out
22609 from gimple_types_compatible_p and friends. Do not recurse
22610 to pointed-to types.
22611 (gimple_canonical_type_eq): Use it.
22612 (iterative_hash_canonical_type): Split out from
22613 iterative_hash_gimple_type and friends. Do not recurse
22614 to pointed-to types.
22615 (gimple_canonical_type_hash): Use it, allocate the hash here.
22616
ca756625
RE
226172011-05-11 Revital Eres <revital.eres@linaro.org>
22618
22619 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
22620 recognizing doloop.
22621
b8abece3
RE
226222011-05-11 Revital Eres <revital.eres@linaro.org>
22623
22624 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
22625 instead of PREV_INSN.
22626
ce7b3761
RE
226272011-05-11 Revital Eres <revital.eres@linaro.org>
22628
22629 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
22630 * loop-doloop.c (doloop_condition_get): Likewise.
22631 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
22632 (doloop_end): New.
22633 * config/arm/arm.md (*addsi3_compare0): Remove "*".
22634
a9dc9d37
NF
226352011-05-10 Nathan Froyd <froydnj@codesourcery.com>
22636
22637 * tree.def (CASE_LABEL_EXPR): Add an operand.
22638 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
22639
96703596
JM
226402011-05-10 Joseph Myers <joseph@codesourcery.com>
22641
22642 * c-decl.c (c_override_global_bindings_to_false): Remove.
22643 (global_bindings_p): Don't check
22644 c_override_global_bindings_to_false.
22645 * c-tree.h (c_override_global_bindings_to_false): Remove.
22646 * c-typeck.c (composite_type): Don't set
22647 c_override_global_bindings_to_false.
22648
dbcc9f08
MM
226492011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22650
22651 PR target/48857, 48495
22652 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
22653 (VSX_MODE): Ditto.
22654 (VSX_MOVE_MODE): Ditto.
22655 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
22656 VSX vector types. Add V2DImode.
22657 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
22658 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
22659 (MODES_TIEABLE_P): Ditto.
22660
22661 * config/rs6000/rs6000.c (rs6000_emit_move): Use
22662 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
22663 VSX_VECTOR_MODE.
22664 (init_cumulative_args): Ditto.
22665 (rs6000_function_arg_boundary): Ditto.
22666 (rs6000_function_arg_advance_1): Ditto.
22667 (rs6000_function_arg): Ditto.
22668 (rs6000_function_ok_for_sibcall): Ditto.
22669 (emit_frame_save): Ditto.
22670 (rs6000_function_value): Ditto.
22671 (rs6000_libcall_value): Ditto.
22672
4a68b4ca
JM
226732011-05-10 Joseph Myers <joseph@codesourcery.com>
22674
22675 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22676 i386/darwin-lib.h to $libgcc_tm_file.
22677 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
22678
bcb521e9
JM
226792011-05-10 Joseph Myers <joseph@codesourcery.com>
22680
22681 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
22682
f10d3ac9
JM
226832011-05-10 Joseph Myers <joseph@codesourcery.com>
22684
cb032fee 22685 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
22686 * config/rs6000/rs6000-tables.opt: New file (generated).
22687 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
22688 rs6000/rs6000-tables.opt to extra_options.
22689 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
22690 * config/rs6000/rs6000.c (rs6000_select): Remove.
22691 (processor_target_table): Move contents to rs6000-cpus.def.
22692 (darwin_rs6000_override_options): Check
22693 global_options_set.x_rs6000_cpu_index instead of
22694 rs6000_select[1].string.
22695 (rs6000_option_override_internal): Likewise.
22696 (rs6000_handle_option): Don't assert that global structures are in
22697 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
22698 (rs6000_default_cpu): New variable.
22699 (rs6000_file_start): Set it instead of local default_cpu. Check
22700 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
22701 global_options_set.x_rs6000_tune_index instead of rs6000_select.
22702 (rs6000_darwin_file_start): Check rs6000_default_cpu and
22703 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
22704 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
22705 rs6000_select): Remove.
22706 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
22707 Remove.
22708 (mcpu=, mtune=): Use Var, Init, Enum and Save.
22709 * config/rs6000/t-rs6000
22710 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
22711 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
22712 global_options_set.x_rs6000_cpu_index instead of
22713 rs6000_select[1].string.
22714 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
22715 global_options_set.x_rs6000_cpu_index instead of
22716 rs6000_select[1].string.
22717
80cf2e08
JM
227182011-05-10 Joseph Myers <joseph@codesourcery.com>
22719
22720 * config.gcc (libgcc_tm_file): Define instead of including files
22721 from ../../libgcc/config/ in tm_file.
cb032fee 22722 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
22723 * configure: Regenerate.
22724 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
22725 libgcc_tm.h, cs-libgcc_tm.h): New.
22726 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
22727 (clean): Remove libgcc_tm.h.
22728 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
22729 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
22730 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
22731
fd01a351
GJL
227322011-05-10 Georg-Johann Lay <avr@gjlay.de>
22733
22734 PR target/48896
22735 * config/avr/avr.c (avr_ret_register): Return unsigned int
22736 instead of int.
22737 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
22738 it to avr_libcall_value.
22739 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
22740 expand_expr.
22741 (avr_expand_binop_builtin): Ditto.
22742 (avr_expand_unop_builtin): Ditto.
22743
34cc3c86
DD
227442011-05-10 DJ Delorie <dj@redhat.com>
22745
22746 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
22747 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
22748 * config/rx/rx.c (rx_align_for_label): Add label and
22749 uses_threshold parameters. Do not align when the label is not
22750 used enough.
22751 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
22752
be173289
RG
227532011-05-10 Richard Guenther <rguenther@suse.de>
22754
22755 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
22756 a series of conversions and apply foldings similar to what
22757 fold-const does.
22758 (tree_ssa_forward_propagate_single_use_vars): Call it.
22759
e7f78021
JJ
227602011-05-10 Jakub Jelinek <jakub@redhat.com>
22761
6ae70ea2
JJ
22762 PR tree-optimization/48611
22763 PR tree-optimization/48794
22764 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
22765 referenced from RESX or EH_DISPATCH arguments.
22766
e7f78021
JJ
22767 PR debug/48928
22768 * dfp.c (decimal_to_decnumber): Handle conversion from
22769 dconst{1,2,m1,half}.
22770
fca132b9
UB
227712011-05-09 Uros Bizjak <ubizjak@gmail.com>
22772
22773 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
22774 for !flag_prefer_avx128.
22775 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
22776
e4c03378
EB
227772011-05-09 Eric Botcazou <ebotcazou@adacore.com>
22778
22779 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
22780 (fold_ternary_loc): Use expr_location_or.
22781
805d6a75
L
227822011-05-09 H.J. Lu <hongjiu.lu@intel.com>
22783
22784 PR debug/48853
22785 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
22786 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
22787 Pmode and mem_mode is not VOIDmode.
22788
e4c03378 227892011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 22790
e4c03378
EB
22791 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
22792 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 22793
51e7f377
UB
227942011-05-09 Uros Bizjak <ubizjak@gmail.com>
22795
22796 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
22797 (const_pow2_1_to_8_operand): Ditto.
22798 (const_pow2_1_to_128_operand): Ditto.
22799 (const_pow2_1_to_32768_operand): Ditto.
22800 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
22801 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
22802 in insn constraint to check integer value of operand 3.
22803 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
22804
22805 (PINSR_MODE): New mode iterator.
22806 (sse2p4_1): New mode attribute.
22807 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
22808 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
22809 iterator. Use const_int_operand instead of
22810 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
22811 exact_log2 in insn constraint to check integer value of operand 3.
22812
228132011-05-09 Uros Bizjak <ubizjak@gmail.com>
22814
22815 * config/i386/sse.md (blendbits): Remove mode attribute.
22816 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
22817 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
22818 Check integer value of operand 3 in insn constraint.
22819
0ca8de87
RG
228202011-05-09 Richard Guenther <rguenther@suse.de>
22821
22822 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
22823 for diagnostics.
22824 (lto_symtab_merge): Likewise. Do not register types here.
22825 (lto_symtab_merge_decls_2): Likewise.
22826 (lto_symtab_merge_decls_1): Likewise.
22827 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
22828 * gimple.c (enum gtc_mode): Declare.
22829 (gimple_types_compatible_p): Make static.
22830
a9e6994a
AK
228312011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22832
22833 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
22834 temporary register to match Pmode.
22835
fb55d62e
UB
228362011-05-09 Uros Bizjak <ubizjak@gmail.com>
22837
22838 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
22839 and *vec_concatv4si_1_avx.
22840
eb1485a6
UB
228412011-05-09 Uros Bizjak <ubizjak@gmail.com>
22842
22843 PR rtl-optimization/48927
22844 * ira-conflicts.c (commutative_constraint_p): Use
22845 recog_data.alternative_enabled_p to disable alternatives where
22846 "enabled" attribute is false.
22847 (get_dup_num): Ditto.
22848 * ira-lives.c (single_reg_class): Ditto.
22849 (ira_implicitly_set_insn_hard_regs): Ditto.
22850
c46d001a
EB
228512011-05-09 Eric Botcazou <ebotcazou@adacore.com>
22852
22853 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
22854 (dataflow_set_preserve_mem_locs): Likewise.
22855
228562011-05-09 Philipp Thomas <pth@suse.de>
22857
6d9e7c41
PT
22858 * config/mep/mep.c (mep_validate_vliw): Syntax description
22859 should not be translated.
22860
d371df6f
JM
228612011-05-09 Joseph Myers <joseph@codesourcery.com>
22862
22863 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
22864 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 22865 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
22866 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
22867 MIPS_ARCH_OPTION_NATIVE): Define.
22868 * config/mips/mips.c (mips_cpu_info_table): Move contents to
22869 mips-cpus.def.
22870 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
22871 mips_parse_cpu): Remove.
22872 (mips_cpu_info_from_opt, mips_default_arch): New.
22873 (mips_handle_option): Don't assert that global structures are in
22874 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
22875 (mips_option_override): Use new variables and functions to set
eb1485a6 22876 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
22877 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
22878 definition.
22879 * config/mips/mips.opt (march=): Use ToLower and Enum.
22880 (mips): Use ToLower, Enum and Var.
22881 (mtune=): Use ToLower and Enum.
22882 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
22883
4fc07af9
JH
228842011-05-08 Jan Hubicka <jh@suse.cz>
22885
22886 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
22887 Arrange type pairs to be UID ordered.
22888 (gimple_lookup_type_leader): Make inline.
22889
2cf320a8
NC
228902011-05-09 Nick Clifton <nickc@redhat.com>
22891
61d6def5
NC
22892 PR target/48899
22893 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
22894 PROCESSOR_DEFAULT.
22895
2cf320a8
NC
22896 PR target/48897
22897 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
22898 variable 's'.
22899
4f82319d
CLT
229002011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
22901
22902 * combine.c (simplify_comparison): Abstract out parts into...
22903 (simplify_compare_const): ... new function.
22904 (try_combine): Generalize parallel arithmetic/compare combining
22905 to call simplify_compare_const() and CANONICALIZE_COMPARE().
22906
74605a11
JH
229072011-05-08 Jan Hubicka <jh@suse.cz>
22908
22909 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
22910 (cgraph_create_virtual_clone): Call hooks once virtual clone
22911 is finished.
74605a11 22912 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
22913 * ipa-cp.c (ipcp_estimate_growth): Use
22914 estimate_ipcp_clone_size_and_time.
74605a11
JH
22915 * ipa-inline-transform.c (clone_inlined_nodes): Update.
22916 * lto-cgraph.c (input_node): Update.
22917 * ipa-inline.c (recursive_inlining): Update.
22918 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
22919 (evaluate_conditions_for_known_args): Break out from ...
22920 (evaluate_conditions_for_edge): ... here.
22921 (evaluate_conditions_for_ipcp_clone): New function.
22922 (inline_node_duplication_hook): Update clone summary based
22923 on parameter map.
22924 (estimate_callee_size_and_time): Rename to ...
22925 (estimate_node_size_and_time): take NODE instead of EDGE;
22926 take POSSIBLE_TRUTHS as argument.
22927 (estimate_callee_size_and_time): Update.
22928 (estimate_ipcp_clone_size_and_time): New function.
22929 (do_estimate_edge_time): Update.
22930
5c049507
RG
229312011-05-08 Richard Guenther <rguenther@suse.de>
22932
22933 PR middle-end/48908
22934 PR middle-end/48905
22935 * expmed.c (expand_shift_1): Compute adjusted constant shift
22936 amount manually.
22937
f64c36ba
EB
229382011-05-08 Eric Botcazou <ebotcazou@adacore.com>
22939
22940 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
22941
c461a957
EB
229422011-05-08 Eric Botcazou <ebotcazou@adacore.com>
22943
22944 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
22945
7c74e556
JW
229462011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
22947
22948 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
22949
b4c0a884
JH
229502011-05-07 Jan Hubicka <jh@suse.cz>
22951
a9bcb3f0
EB
22952 * ipa-inline-transform.c (inline_call): Account when program size
22953 decreases.
b4c0a884 22954 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
22955 (edge_badness): Reorganize to be power 2 based; fix thinko when
22956 computing badness for negative growth; update comments to match
22957 reality; better dumps.
b4c0a884 22958
c99c0026
EB
229592011-05-07 Eric Botcazou <ebotcazou@adacore.com>
22960
22961 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
22962 type to bool and adjust comment.
22963 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
22964 (fold_mathfn_compare): Remove calls to global_bindings_p.
22965 (fold_inf_compare): Likewise.
22966 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
22967 * c-tree.h (global_bindings_p): Adjust prototype.
22968 * c-decl.c (global_bindings_p): Return bool and simplify.
22969
1400c8e5
ZD
229702011-05-07 Zdenek Dvorak <ook@ucw.cz>
22971
22972 PR tree-optimization/48837
22973 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
22974 when accumulator transformation is performed.
22975
5d0878e7
JH
229762011-05-06 Jan Hubicka <jh@suse.cz>
22977
a9bcb3f0
EB
22978 * i386.h (ix86_tune_indices): Add
22979 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 22980 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
22981 * i386.c (initial_ix86_tune_features): Add
22982 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
22983 (software_prefetching_beneficial_p): Remove predicate.
22984 (ix86_option_override_internal): Use new macro.
22985
58696ce5
JH
229862011-05-06 Jan Hubicka <jh@suse.cz>
22987
22988 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
22989
c47d0034
JH
229902011-05-06 Jan Hubicka <jh@suse.cz>
22991
22992 * cgraph.c (cgraph_add_thunk): Create real function node instead
22993 of alias node; finalize it and mark needed/reachale; arrange visibility
22994 to be right and add it into the corresponding same comdat group list.
22995 (dump_cgraph_node): Dump thunks.
22996 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
22997 cgraph_function_with_gimple_body_p,
22998 cgraph_first_function_with_gimple_body,
c47d0034
JH
22999 cgraph_next_function_with_gimple_body): New functions.
23000 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
23001 New macros.
23002 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
23003 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23004 * cgraphunit.c (cgraph_finalize_function): Only look into possible
23005 devirtualization when optimizing.
23006 (verify_cgraph_node): Verify thunks.
23007 (cgraph_analyze_function): Analyze thunks.
23008 (cgraph_mark_functions_to_output): Output thunks only in combination
23009 with function they are assigned to.
23010 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
23011 alias into normal node.
23012 (assemble_thunks): New functoin.
23013 (cgraph_expand_function): Use it.
23014 * lto-cgraph.c (lto_output_node): Stream thunks.
23015 (input_overwrite_node): Stream in thunks.
23016 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
23017 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
23018 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
23019 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
23020 (inline_analyze_function): Do not care about thunk jump functions.
23021 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
23022 * ipa-prop.c (ipa_prop_write_jump_functions): Use
23023 cgraph_function_with_gimple_body_p.
23024 * passes.c (do_per_function_toporder): Use
23025 cgraph_function_with_gimple_body_p.
c47d0034
JH
23026 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
23027 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
23028 (function_called_by_processed_nodes_p): Likewise.
23029
d8f426ec
JM
230302011-05-06 Joseph Myers <joseph@codesourcery.com>
23031
23032 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
23033 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
23034 entries.
23035 (mabi=): Replace with separate entries for mabi=altivec,
23036 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
23037 mabi=ieeelongdouble and mabi=ibmlongdouble.
23038 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23039 check for -mabi=spe without SPE ABI support here.
23040 (rs6000_handle_option): Replace OPT_mabi_ handling with
23041 OPT_mabi_altivec and OPT_mabi_spe handling.
23042
80bde45b
CC
230432011-05-06 Cary Coutant <ccoutant@google.com>
23044
23045 * dwarf2out.c (contains_subprogram_definition): New function.
23046 (should_move_die_to_comdat): Call it.
23047
a91926b9
JL
230482011-05-06 Jeff Law <law@redhat.com>
23049
23050 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
23051 remove_ctrl_stmt_and_useless_edges.
23052 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
23053 (fixup_template_block, thread_single_edge): Likewise.
23054 (mark_threaded_blocks): Use THREAD_TARGET.
23055
1fc1b66d
AM
230562011-05-06 Alan Modra <amodra@gmail.com>
23057
23058 PR target/48900
23059 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23060 const0_rtx as the arg to the dummy __tls_get_addr libcall.
23061
e194de64
UB
230622011-05-06 Uros Bizjak <ubizjak@gmail.com>
23063
23064 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
23065 constraint modifier to "r".
23066
d740dc9e
JM
230672011-05-06 Joseph Myers <joseph@codesourcery.com>
23068
23069 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
23070 fall through for OPT_mcmodel_.
23071
cab78b15
AK
230722011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23073
23074 * config/s390/s390.c (s390_asm_trampoline_template): Comment
23075 instruction sizes.
e194de64 23076 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 23077
ee6824ae
RR
230782011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23079
eb1485a6
UB
23080 PR target/47930
23081 * config/arm/arm.opt (marm): Document it.
23082 (mthumb): Reject negative variant.
ee6824ae 23083
9ef58464
UB
230842011-05-06 Uros Bizjak <ubizjak@gmail.com>
23085
23086 PR target/48898
23087 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
23088 Fix typo in "ccvt" variable name.
23089
155b6176
TG
230902011-05-06 Tristan Gingold <gingold@adacore.com>
23091
23092 PR target/48895
23093 * config/vms/vms-ar.c (main): Remove cwd variable.
23094
3becc47b
JJ
230952011-05-06 Jakub Jelinek <jakub@redhat.com>
23096
23097 PR debug/48902
23098 * var-tracking.c (prepare_call_arguments): Move else before #endif.
23099
3d528853
NF
231002011-05-05 Nathan Froyd <froydnj@codesourcery.com>
23101
23102 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
23103 * gimplify.c (gimplify_switch_expr): Likewise.
23104 * omp-low.c (expand_omp_sections): Likewise.
23105 * tree-eh.c (lower_try_finally_switch): Likewise.
23106 (lower_eh_dispatch): Likewise.
23107 * tree.h (build_case_label): Declare.
23108 * tree.c (build_case_label): Define.
23109
deb5046b
JM
231102011-05-05 Jason Merrill <jason@redhat.com>
23111
23112 PR c++/40975
23113 * tree-inline.c (copy_tree_r): Use copy_statement_list.
23114 (copy_statement_list): Don't recurse.
23115 * stor-layout.c (copy_self_referential_tree_r): Don't allow
23116 STATEMENT_LIST.
23117
013c0411
JM
231182011-05-05 Joseph Myers <joseph@codesourcery.com>
23119
23120 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
23121 through from -mfpu= handling.
23122 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
23123
a0905f8b
BS
231242011-05-05 Bernd Schmidt <bernds@codesourcery.com>
23125
23126 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
23127 POST_MODIFY.
23128
fc4538e4
SE
231292011-05-05 Steve Ellcey <sje@cup.hp.com>
23130
23131 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
23132 for 11.31.
23133 (hppa[12]*-*-hpux11*): Ditto.
23134 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
23135 * config/ia64/hpux-unix2003.h: New.
23136 * config/pa/pa-hpux1131.opt: New.
23137 * config/pa/pa-hpux1131.h: New.
23138 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
23139 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 23140 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 23141
1e30c578
JJ
231422011-05-05 Jakub Jelinek <jakub@redhat.com>
23143
23144 PR debug/48853
23145 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
23146 instead of mode as 3rd argument to recursive call.
23147 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
23148 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
23149 VOIDmode.
23150 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
23151 don't give up if mode is Pmode and mem_mode is not VOIDmode.
23152 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
23153 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
23154
d19eb620
JB
231552011-05-05 Julian Brown <julian@codesourcery.com>
23156
23157 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
23158 parenthesis in D-register case.
23159
c860fe8c
JM
231602011-05-05 Joseph Myers <joseph@codesourcery.com>
23161
23162 * opt-functions.awk (var_type_struct): Handle Enum options.
23163 * optc-gen.awk: Don't check range of variables of character type.
23164 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
23165 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
23166 rs6000_sdata_name, rs6000_explicit_options): Remove.
23167 (rs6000_option_override_internal): Check for -malign-power here.
23168 Use global_options_set instead of rs6000_explicit_options.
23169 (rs6000_parse_fpu_option): Remove.
23170 (rs6000_handle_option): Access variables via opts and opts_set
23171 pointers. Use error_at and warning_at. Add fall-through
23172 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
23173 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
23174 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
23175 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
23176 here. Don't use rs6000_parse_fpu_option.
23177 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
23178 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
23179 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
23180 (mrecip=): Use Var.
23181 (mspe): Use Var and Save.
23182 (mtraceback=): Use Enum and Var.
23183 (rs6000_traceback_type): New Enum and EnumValue entries.
23184 (mfloat-gprs=): Use Enum, Var and Save.
23185 (rs6000_float_gprs): New Enum and EnumValue entries.
23186 (mlong-double-): use Var and Save.
23187 (msched-costly-dep=, minsert-sched-nops=): Use Var.
23188 (malign-): Use Enum and Var.
23189 (rs6000_alignment_flags): New Enum and EnumValue entries.
23190 (mfpu=): Use Enum.
23191 (fpu_type_t): New Enum and EnumValue entries.
23192 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23193 global_options_set instead of rs6000_explicit_options.
23194 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23195 global_options_set instead of rs6000_explicit_options.
23196 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23197 global_options_set instead of rs6000_explicit_options.
23198 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
23199 global_options_set instead of rs6000_explicit_options.
23200 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
23201 global_options_set instead of rs6000_explicit_options.
23202 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23203 global_options_set instead of rs6000_explicit_options.
23204 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
23205 definition.
23206 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23207 global_options_set instead of rs6000_explicit_options.
23208 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
23209 (rs6000_cmodel): New Enum and EnumValue entries.
23210 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
23211 global_options_set instead of rs6000_explicit_options.
23212 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
23213 (mtls-size=): Use Enum and Var.
23214 (rs6000_tls_size): New Enum and EnumValue entries.
23215
0691dde9
MM
232162011-05-05 Michael Matz <matz@suse.de>
23217
23218 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
23219 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
23220 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
23221 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
23222 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
23223 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
23224 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
23225 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
23226 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
23227 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
23228 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
23229 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
23230 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
23231 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
23232 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
23233 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
23234
86529a49
RG
232352011-05-05 Richard Guenther <rguenther@suse.de>
23236
23237 * expmed.c (expand_variable_shift): Rename to ...
23238 (expand_shift_1): ... this. Take an expanded shift amount.
23239 For rotates recurse directly not building trees for the shift amount.
23240 (expand_variable_shift): Wrap around expand_shift_1.
23241 (expand_shift): Adjust.
23242
d0228c2e
JJ
232432011-05-05 Jakub Jelinek <jakub@redhat.com>
23244
23245 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
23246
907a08d9
EB
232472011-05-05 Eric Botcazou <ebotcazou@adacore.com>
23248
23249 * tree.h (get_pending_sizes): Remove prototype.
23250 (put_pending_size): Likewise.
23251 (put_pending_sizes): Likewise.
23252 * stor-layout.c (pending_sizes): Delete.
23253 (get_pending_sizes): Likewise.
23254 (put_pending_size): Likewise.
23255 (put_pending_sizes): Likewise.
23256 (variable_size): Do not call put_pending_size and tidy up.
23257 * function.h (struct function): Remove dont_save_pending_sizes_p.
23258 * lto-streamer-in.c (input_function): Do not stream it.
23259 * lto-streamer-out.c (output_function): Likewise.
23260 * tree-inline.c (initialize_cfun): Do not copy it.
23261 * c-decl.c (store_parm_decls): Do not set it.
23262 * omp-low.c (create_task_copyfn): Likewise.
23263 * tree-optimize.c (tree_rest_of_compilation): Likewise.
23264
386d9c57
UB
232652011-05-05 Uros Bizjak <ubizjak@gmail.com>
23266
23267 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
23268 conditions.
23269 (*movdf_internal): Ditto.
23270 (*movdf_internal_nointeger): Ditto.
23271 (*movsf_internal): Ditto.
23272
a04a722b
JM
232732011-05-05 Joseph Myers <joseph@codesourcery.com>
23274
23275 * c-decl.c (finish_decl): Don't call get_pending_sizes.
23276 (grokparm): Add parameter expr. Pass it to grokdeclarator.
23277 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
23278 (c_variable_size): Remove.
23279 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
23280 call put_pending_sizes.
23281 (get_parm_info): Add parameter expr. Use it to set
23282 arg_info->pending_sizes.
23283 (store_parm_decls): Use arg_info->pending_sizes instead or calling
23284 get_pending_sizes.
23285 * c-parser.c (c_parser_parms_declarator): Update call to
23286 c_parser_parms_list_declarator.
23287 (c_parser_parms_list_declarator): Take parameter expr. Update
23288 call to push_parm_decl. Update recursive call. Don't call
23289 get_pending_sizes. Update calls to get_parm_info.
23290 (c_parser_objc_method_definition): Update calls to
23291 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 23292 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
23293 (c_parser_objc_method_decl): Add parameter expr. Update call to
23294 grokparm.
386d9c57 23295 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
23296 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
23297 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
23298
c92a6f97
MH
232992011-05-05 Michael Hope <michael.hope@linaro.org>
23300
386d9c57
UB
23301 PR pch/45979
23302 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
23303 __ARM_EABI__ hosts.
c92a6f97 23304
07ea0048
UW
233052011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23306
23307 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23308 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
23309 (spu_output_mi_thunk): New function.
23310
d634bfa1
RO
233112011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23312
23313 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
23314 targetm.asm_out.print_operand.
23315 * config/sol2.c: Include target.h.
23316
40fda55b
JH
233172011-05-04 Jan Hubicka <jh@suse.cz>
23318
23319 * ipa-inline.c (reset_edge_caches): New function.
23320 (update_caller_keys): Add check_inlinablity_for; do not
23321 reset edge caches; remove now unnecesary loop.
386d9c57 23322 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
23323 (update_all_callee_keys): Likewise.
23324 (inline_small_functions): Sanity check cache; update code
23325 recomputing it.
23326
0360f70d
BS
233272011-05-04 Bernd Schmidt <bernds@codesourcery.com>
23328
23329 PR rtl-optimization/47612
23330 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
23331 as the last insn of the sequence to be moved.
23332
7a994646
TB
233332011-05-04 Tobias Burnus <burnus@net-b.de>
23334
23335 PR fortran/48864
23336 * doc/invoke.texi (Ofast): Document that it
23337 enables Fortran's -fno-protect-parens.
23338
7a2f7208
UB
233392011-05-04 Uros Bizjak <ubizjak@gmail.com>
23340
23341 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
23342
a2d42931
EB
233432011-05-04 Eric Botcazou <ebotcazou@adacore.com>
23344
23345 * stor-layout.c (variable_size): Do not issue errors.
23346
f81b1a3d
RG
233472011-05-04 Richard Guenther <rguenther@suse.de>
23348
23349 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
23350 for array-ref indices.
23351 (tree_coverage_counter_addr): Likewise.
23352 (build_fn_info_type): Use size_int for index types.
23353 (build_gcov_info): Likewise.
23354
c62c040f
RG
233552011-05-04 Richard Guenther <rguenther@suse.de>
23356
23357 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
23358 to build_int_cst.
23359 * c-typeck.c (really_start_incremental_init): Use bitsize_int
23360 for constructor indices.
23361 (push_init_level): Likewise.
23362
1e3287d0
RG
233632011-05-04 Richard Guenther <rguenther@suse.de>
23364
23365 * explow.c (promote_mode): Move variable declarations before code.
23366
6c32445b
NF
233672011-05-04 Nathan Froyd <froydnj@codesourcery.com>
23368
23369 * tree.h (build_function_type_array): Declare.
23370 (build_varargs_function_type_array): Declare.
23371 (build_function_type_vec, build_varargs_function_type_vec): Define.
23372 * tree.c (build_function_type_array_1): New function.
23373 (build_function_type_array): New function.
23374 (build_varargs_function_type_array): New function.
23375
fdabf269
RS
233762011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
23377
23378 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
23379 before setting STMT_VINFO_TYPE.
23380
a207915a
UW
233812011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23382
23383 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
23384 instead of spu_pass_by_reference.
23385
5e617be8
AK
233862011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23387
23388 * calls.c (emit_library_call_value_1): Invoke
23389 promote_function_mode hook on libcall arguments.
23390 * explow.c (promote_function_mode, promote_mode): Handle TYPE
23391 argument being NULL.
23392 * targhooks.c (default_promote_function_mode): Lisewise.
23393 * config/s390/s390.c (s390_promote_function_mode): Likewise.
23394 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
23395
23396 * doc/tm.texi: Document that TYPE argument might be NULL.
23397
486d04be
SH
233982011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23399
23400 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
23401
9b19b026
SH
234022011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23403
23404 From Bernd Schmidt
23405 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
23406
502bc3df
RO
234072011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23408
23409 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
23410 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
23411 Move ...
23412 * mips-tfile.c: ... here.
23413 Don't include coretypes.h, tm.h, filenames.h.
23414 (saber_stop): Remove definition and all calls.
23415 [__SABER__]: Remove.
23416 (__LINE__): Remove default.
23417 (Size_t, Ptrdiff_t): Remove definitions.
23418 Replace by size_t, ptrdiff_t.
23419 [!MIPS_DEBUGGING_INFO]: Remove.
23420 (SHASH_SIZE, THASH_SIZE): Remove defaults.
23421 (progname): Add const.
23422 (STATIC): Remove.
23423 Replace all uses by static.
23424 (ALIGN_SYMTABLE_OFFSET): Remove default.
23425 * mips-tdump.c: Don't include coretypes.h, tm.h.
23426 Remove !MIPS_IS_STAB guard.
23427 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
23428 $(TM_H), filenames.h dependencies.
23429 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
23430
991eb6ef
SH
234312011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23432
23433 From Jie Zhang
23434 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
23435 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
23436
420ccc84
SH
234372011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23438
23439 From Bernd Schmidt
23440 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
23441 account and save/restore RETS.
23442 (PROFILE_BEFORE_PROLOGUE): Define.
23443 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
23444 the push insn to use predecrement.
23445
9f8d69ee
SH
234462011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
23447
23448 From Jie Zhang
23449 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
23450
662c03f4
NC
234512011-05-04 Nick Clifton <nickc@redhat.com>
23452
23453 * config/mn10300/mn10300.c: Include cfgloop.h.
23454 (DUMP): New macro.
23455 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
23456 Lcc or a FLcc insn into the instruction stream.
23457 (mn10300_block_contains_call): New function. Returns true if the
23458 given basic block contains a CALL insn.
23459 (mn10300_loop_contains_call_insn): New function. Returns true if
23460 the given loop contains a CALL insn.
23461 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
23462 to use the SETLB and Lcc or FLcc insns.
23463 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
23464 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
23465 * config/mn10300/mn10300.opt (msetlb): New option. Used to
23466 disable the SETLB optimization.
23467 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
23468 __SETLB__ or __NO_SETLB__.
23469 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
23470 (movsf_internal): Handle MDR register.
23471 (cmpsi): Make visible.
23472 (setlb): New pattern.
23473 (Lcc): New pattern.
23474 (FLcc): New pattern.
23475
843b6915
UB
234762011-05-04 Uros Bizjak <ubizjak@gmail.com>
23477
23478 PR target/48860
23479 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
23480 for reg<->xmm moves.
23481 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
23482 (vec_concatv2di_rex64_sse): Ditto.
23483 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
23484 (*vec_extractv2di_1_rex64): Ditto.
23485
23486 Revert:
23487 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
23488
23489 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
23490 reg<->xmm moves.
23491 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
23492
d35936ab
RG
234932011-05-04 Richard Guenther <rguenther@suse.de>
23494
23495 * tree.h (int_const_binop): Remove notrunc argument.
23496 * fold-const.c (int_const_binop): Remove notrunc argument. Always
23497 create integer constants that are properly truncated.
23498 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
23499 (const_binop): Remove zero notrunc argument to int_const_binop.
23500 (size_binop_loc): Likewise.
23501 (fold_div_compare): Likewise.
23502 (maybe_canonicalize_comparison_1): Likewise.
23503 (fold_comparison): Likewise.
23504 (fold_binary_loc): Likewise.
23505 (multiple_of_p): Likewise.
23506 * expr.c (store_constructor): Likewise.
23507 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23508 (maybe_fold_stmt_addition): Likewise.
23509 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
23510 * stor-layout.c (layout_type): Likewise.
23511 * tree-data-ref.c (tree_fold_divides_p): Likewise.
23512 * tree-sra.c (build_ref_for_offset): Likewise.
23513 (build_user_friendly_ref_for_offset): Likewise.
23514 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
23515 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23516 * tree-ssa-loop-niter.c (inverse): Likewise.
23517 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
23518 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
23519 * tree-switch-conversion.c (check_range): Likewise.
23520 (build_constructors): Likewise.
23521 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
23522 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
23523 (extract_range_from_assert): Likewise.
23524 (vrp_int_const_binop): Likewise.
23525 (extract_range_from_binary_expr): Likewise.
23526 (extract_range_from_unary_expr): Likewise.
23527 (check_array_ref): Likewise.
23528 (find_case_label_range): Likewise.
23529 (simplify_div_or_mod_using_ranges): Likewise.
23530 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
23531 comparing case labels for merging.
23532
8992c063
MW
235332011-05-03 Mark Wielaard <mjw@redhat.com>
23534
23535 * dwarf2out.c (debug_str_hash_forced): Removed.
23536 (gen_label_for_indirect_string): Removed.
23537 (get_debug_string_label): Removed.
23538 (AT_string_form): Generate label directly.
23539 (output_indirect_string): Test indirect_string_node for
23540 DW_FORM_strp instead of checking label and refcount.
23541 (prune_indirect_string): Removed.
23542 (prune_unused_types): Don't check debug_str_hash_forced or
23543 call prune_indirect_string.
23544
4868e6ea
AO
235452011-05-04 Alexandre Oliva <aoliva@redhat.com>
23546
23547 PR other/48093
23548 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
23549
01a5c0ab
AO
235502011-05-04 Alexandre Oliva <aoliva@redhat.com>
23551
23552 PR debug/47994
23553 PR debug/47919
23554 * combine.c (try_combine): Skip debug insns at m_split tests.
23555
6ac00218
MW
235562011-04-26 Mark Wielaard <mjw@redhat.com>
23557
23558 PR42288
23559 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
23560 when info_section_emitted.
23561
3af42a7b
JM
235622011-05-03 Joseph Myers <joseph@codesourcery.com>
23563
23564 * config/mips/mips-opts.h: New.
23565 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
23566 to mips-opts.h.
23567 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
23568 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
23569 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
23570 via opts pointer.
23571 * config/mips/mips.h (enum mips_code_readable_setting): Move to
23572 mips-opts.h.
23573 (mips_abi, mips_code_readable): Don't declare.
843b6915 23574 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
23575 (mabi=): Use Enum and Var.
23576 (mips_abi): New Enum and EnumValue entries.
23577 (mcode-readable=): Use Enum and Var.
23578 (mips_code_readable_setting): New Enum and EnumValue entries.
23579 (mr10k-cache-barrier=): Use Enum and Var.
23580 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
23581
1cb1a99f
JH
235822011-05-03 Jan Hubicka <jh@suse.cz>
23583
23584 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
23585 replace hash by pointer map.
23586 (cgraph_node_set_element_def, cgraph_node_set_element,
23587 const_cgraph_node_set_element, varpool_node_set_element_def,
23588 varpool_node_set_element, const_varpool_node_set_element): Remove.
23589 (free_cgraph_node_set, free_varpool_node_set): New function.
23590 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
23591 * tree-emutls.c: Free varpool node set.
23592 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
23593 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23594 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
23595 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23596 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
23597 Move here from ipa.c; implement using pointer_map
23598 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
23599 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
23600 debug_cgraph_node_set, varpool_node_set_new,
23601 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
23602 dump_varpool_node_set, debug_varpool_node_set):
23603 Move to ipa-uitls.c.
23604 * passes.c (ipa_write_summaries): Update.
23605
7f31f4db
SH
236062011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23607
7a2f7208
UB
23608 From Mike Frysinger:
23609 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
23610 bf542/bf544/bf547/bf548/bf549.
7f31f4db 23611
b70fce6d
UB
236122011-05-03 Uros Bizjak <ubizjak@gmail.com>
23613
23614 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
23615
265b1d82
SH
236162011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23617
23618 From Bernd Schmidt:
23619 * config/bfin/bfin.md (MOVCC): New mode_macro.
23620 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
23621 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
23622 comments from generated assembly.
23623
f0b568f3
SH
236242011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23625
23626 From Bernd Schmidt
23627 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
23628 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
23629 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
23630 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
23631 * config/bfin/lib1funcs.asm (___muldi3): New function.
23632
2c67cf6e
NF
236332011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23634
23635 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
23636 build_function_type_list instead of build_function_type.
23637 Rearrange initialization of `args' to do so.
23638
f9ac28ad
NF
236392011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23640
23641 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
23642 instead of build_function_type.
23643
22b8798c
NF
236442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23645
23646 * config/rs6000/rs6000.c (spe_init_builtins): Call
23647 build_function_type_list instead of build_function_type.
23648 (paired_init_builtins, altivec_init_builtins): Likewise.
23649 (builtin_function_type): Likewise.
23650
4cb44528
NF
236512011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23652
23653 * config/sh/sh.c (sh_media_init_builtins): Call
23654 build_function_type_list instead of build_function_type.
23655
4c203a6a
NF
236562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23657
23658 * config/sparc/sparc.c (sparc_file_end): Call
23659 build_function_type_list instead of build_function_type.
23660
d6a3d62b
NF
236612011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23662
23663 * config/alpha/alpha.c (alpha_init_builtins): Call
23664 build_function_type_list instead of build_function_type.
23665
de530b86
NF
236662011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23667
23668 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
23669 build_function_type_list instead of build_function_type.
23670
baeec5f2
NF
236712011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23672
23673 * config/iq2000/i2000.c (iq2000_init_builtins): Call
23674 build_function_type_list instead of build_function_type.
23675 Delete `endlink' variable.
23676
c19afe52
NF
236772011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23678
23679 * config/avr/avr.c (avr_init_builtins): Call
23680 build_function_type_list instead of build_function_type.
23681
a341df0a
NF
236822011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23683
23684 * config/picochip/picochip.c (picochip_init_builtins): Call
23685 build_function_type_list instead of build_function_type.
23686 Delete `endlink' variable.
23687
2102b1e1
NF
236882011-05-03 Nathan Froyd <froydnj@codesourcery.com>
23689
23690 * config/bfin/bfin.c (bfin_init_builtins): Call
23691 build_function_type_list instead of build_function_type.
23692
9f111209
SH
236932011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23694
23695 From Bernd Schmidt
23696 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
23697 that's not CONST_INT. Seemingly redundant check is due to PR39768.
23698
7071d064
SH
236992011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23700
23701 From Jie Zhang:
23702 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
23703 libbffastfp overrides libgcc when -mfast-fp.
23704
748f7574 237052011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
23706
23707 Originally from Bernd Schmidt
23708 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
23709 * config/bfin/bfin.c (override_options): Test it and error if
23710 TARGET_FDPIC.
23711
1a3a9152
SH
237122011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
23713
23714 Originally From Bernd Schmidt
23715 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
23716 FD-PIC.
23717
7134c090
JL
237182011-05-03 Jeff Law <law@redhat.com>
23719
23720 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
23721 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
23722 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
23723 than accessing AUX field directly. Free the AUX field before
23724 clearing it.
7134c090
JL
23725 (thread_block, thread_through_loop_header): Likewise.
23726 (thread_single_edge, mark_threaded_blocks): Likewise.
23727 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
23728 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 23729
2c7eebae
BS
237302011-05-03 Bernd Schmidt <bernds@codesourcery.com>
23731
23732 * function.c (init_function_start): Call decide_function_section.
23733 * varasm.c (decide_function_section): New function.
23734 (assemble_start_function): When not using
23735 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
23736 or first_function_block_is_cold.
23737 * rtl.h (decide_function_section): Declare.
23738
17038fcf
JJ
237392011-05-03 Uros Bizjak <ubizjak@gmail.com>
23740 Jakub Jelinek <jakub@redhat.com>
23741
23742 PR target/48774
23743 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
23744 only succeed if req_mode is the same as set_mode.
23745
3810076b
BS
237462011-05-03 Bernd Schmidt <bernds@codesourcery.com>
23747
23748 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
23749 * genemit.c (gen_exp): Handle RETURN.
23750 * emit-rtl.c (verify_rtx_sharing): Likewise.
23751 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
23752 * rtl.c (copy_rtx): RETURN is shared.
23753 * rtl.h (enum global_rtl_index): Add GR_RETURN.
23754 (ret_rtx): New.
23755 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
23756 * config/s390/s390.c (s390_emit_epilogue): Likewise.
23757 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
23758 * config/cris/cris.c (cris_expand_return): Likewise.
23759 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
23760 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
23761 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
23762 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
23763 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
23764 Likewise.
23765 * config/v850/v850.c (expand_epilogue): Likewise.
23766 * config/bfin/bfin.c (bfin_expand_call): Likewise.
23767 * config/arm/arm.md (epilogue): Likewise.
23768 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
23769 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
23770 variable to ret_reg.
23771
9efdb4ad
RG
237722011-05-03 Richard Guenther <rguenther@suse.de>
23773
23774 PR lto/48846
23775 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
23776 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
23777 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
23778
60a45536
RG
237792011-05-03 Richard Guenther <rguenther@suse.de>
23780
23781 * c-decl.c (grokdeclarator): Instead of looking at
23782 TREE_OVERFLOW check if the constant fits in the index type.
23783
3188ed59
RS
237842011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23785
23786 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
23787 (vec_store_lanes<mode><mode>): Likewise.
23788
272c6793
RS
237892011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23790
23791 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
23792 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
23793 convert_optab_index values.
23794 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
23795 * genopinit.c (optabs): Initialize the new optabs.
23796 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
23797 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
23798 (expand_STORE_LANES): New functions.
23799 * tree.h (build_array_type_nelts): Declare.
23800 * tree.c (build_array_type_nelts): New function.
23801 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
23802 (vect_model_load_cost): Likewise.
23803 (vect_store_lanes_supported, vect_load_lanes_supported)
23804 (vect_record_strided_load_vectors): Declare.
23805 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
23806 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
23807 (vect_transform_strided_load): Split out statement recording into...
23808 (vect_record_strided_load_vectors): ...this new function.
23809 * tree-vect-stmts.c (create_vector_array, read_vector_array)
23810 (write_vector_array, create_array_ref): New functions.
23811 (vect_model_store_cost): Add store_lanes_p argument.
23812 (vect_model_load_cost): Add load_lanes_p argument.
23813 (vectorizable_store): Try to use store-lanes functions for
23814 interleaved stores.
23815 (vectorizable_load): Likewise load-lanes and loads.
23816 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
23817 to vect_model_store_cost.
23818 (vect_build_slp_tree): Likewise vect_model_load_cost.
23819
0f6d54f7
RS
238202011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
23821
23822 * hooks.h (hook_bool_mode_uhwi_false): Declare.
23823 * hooks.c (hook_bool_mode_uhwi_false): New function.
23824 * target.def (array_mode_supported_p): New hook.
23825 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
23826 * doc/tm.texi: Regenerate.
23827 * stor-layout.c (mode_for_array): New function.
23828 (layout_type): Use it.
23829 * config/arm/arm.c (arm_array_mode_supported_p): New function.
23830 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
23831
b15eacc7
EB
238322011-05-03 Eric Botcazou <ebotcazou@adacore.com>
23833
23834 PR target/48723
23835 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
23836 for -fstack-check if the size to allocate is negative.
23837
575bfb00
LC
238382011-05-02 Lawrence Crowl <crowl@google.com>
23839
23840 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
23841 (timevar_cond_start): New for starting a timer only when it is not
23842 already running.
23843 (timevar_cond_stop): New for stopping a timer when it was not already
23844 running.
23845
23846 * timevar.c (timevar_stop): Enable start/stop timers to start again.
23847 (timevar_cond_start): New as above.
23848 (timevar_cond_stop): New as above.
23849
23850 * timevar.def: Add start/stop timers for compiler phases,
23851 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
23852 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
23853 and TV_PHASE_FINALIZE.
23854 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
23855 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
23856 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
23857 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
23858 Make unused TV_OVERLOAD into a start/stop timer.
23859
23860 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
23861 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
23862 to indicate that they are start/stop timers.
23863
23864 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
23865 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
23866 Move initialization to do_compile.
23867 (do_compile): Add initialization from above.
23868 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
23869
23870 * c-decl.c (c_write_global_declarations): Add start/stop of
23871 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
23872
23873 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
23874 or TV_PARSE_INLINE, as appropriate.
23875 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
23876 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
23877
3533b943
JM
238782011-05-02 Jason Merrill <jason@redhat.com>
23879
23880 PR c++/40975
23881 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
23882
2609a0ce
SM
238832011-05-02 Simon Martin <simartin@users.sourceforge.net>
23884
23885 PR c/35445
23886 * c-decl.c (finish_decl): Only create a composite if the types are
23887 compatible.
23888
6b0e4cbb
JM
238892011-05-02 Joseph Myers <joseph@codesourcery.com>
23890
23891 * config/fr30/fr30-protos.h (Mmode): Don't define.
23892 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
23893 definition where used.
23894 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
23895 define. Expand definitions where used.
23896 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
23897 Expand definitions where used.
23898 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
23899 rx_function_arg, rx_function_arg_advance,
23900 rx_function_arg_boundary): Expand definitions of those macros.
23901 * config/v850/v850-protos.h (Mmode): Don't define. Expand
23902 definition where used.
23903
4e938ce6
UB
239042011-05-02 Uros Bizjak <ubizjak@gmail.com>
23905
23906 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
23907 reg<->xmm moves.
23908 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
23909 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
23910 with *movv2sf_internal_rex64_avx.
23911 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
23912 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
23913 Use %v prefix in insn mnemonic to handle TARGET_AVX.
23914 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
23915 "vex" in "prefix" attribute calculation.
23916 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
23917
36019c19
SH
239182011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
23919
7a2f7208
UB
23920 PR target/47951
23921 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
23922 inputs match the output.
36019c19 23923
f69ea688
AS
239242011-05-02 Andreas Schwab <schwab@linux-m68k.org>
23925
23926 PR target/47955
23927 * config/m68k/m68k.c (m68k_expand_prologue): Set
23928 current_function_static_stack_size.
23929
c33406f5
JH
239302011-05-02 Jan Hubicka <jh@suse.cz>
23931
23932 * lto-streamer.c (lto_streamer_cache_insert_1,
23933 lto_streamer_cache_lookup, lto_streamer_cache_create,
23934 lto_streamer_cache_delete): Use pointer map instead of hashtable.
23935 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
23936
47c94d21
JM
239372011-05-02 Joseph Myers <joseph@codesourcery.com>
23938
23939 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
23940 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
23941 config/m68k/t-opts: New files.
23942 * config/m68k/m68k-tables.opt: New file (generated).
23943 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
23944 extra_options and m68k/t-opts to tmake_file.
23945 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
23946 (all_isas): Initialize using m68k-isas.def.
23947 (all_microarchs): Initialize using m68k-microarchs.def.
23948 (m68k_find_selection): Remove.
23949 (m68k_handle_option): Don't assert that global structures are in
23950 use. Use error_at. Access variables via opts pointer. Don't
23951 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
23952 directly for -m68020-40 and -m68020-60.
23953 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
23954 m68k_tune_entry here.
23955 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
23956 to m68k-opts.h.
23957 (m68k_library_id_string): Remove declaration.
4e938ce6 23958 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
23959 (m68k_library_id_string): New Variable.
23960 (march=, mcpu=, mtune=): Use Enum and Var.
23961
e562bf36
RG
239622011-05-02 Richard Guenther <rguenther@suse.de>
23963
23964 * varasm.c (output_constructor_regular_field): Compute zero-based
23965 index with double-ints. Make sure to ICE instead of producing
23966 wrong code.
23967 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
23968 in asserts. Properly use a signed type.
23969
6bec6c98
UB
239702011-05-02 Uros Bizjak <ubizjak@gmail.com>
23971
23972 * config/i386/sse.md (V): New mode iterator.
23973 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
23974 TARGET_SSE2.
23975 (V_256): Rename from AVX256MODE.
23976 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
23977 condition to all users.
23978 (VF1): Ditto.
23979 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
23980 condition to all users.
23981 (VF_128): Make V4SF mode unconditional.
23982 (VF_256): Rename from AVX256MODEF2P.
23983 (VI4F_128): Rename from SSEMODE4S.
23984 (VI8F_128): Rename from SSEMODE2D.
23985 (VI4F_256): Rename from AVX256MODE8P.
23986 (VI8F_256): Rename from AVX256MODE4P.
23987 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
23988 (ssescalarmodesuffix): Remove SF and DF modes.
23989 (SSEMODE124): Remove.
23990 (SSEMODE1248): Ditto.
23991 (SSEMODEF2P): Ditto.
23992 (AVXMODEF2P): Ditto.
23993 (AVXMODEFDP): Ditto.
23994 (AVXMODEFSP): Ditto.
23995 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
23996 unconditional.
23997 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
23998 unconditional.
23999 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
24000 xop_pcmov_<mode>256. Use V mode iterator.
24001
24002 Adjust RTX patterns globally for renamed mode attributes.
24003
2dfdcb4b
UW
240042011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24005
24006 * haifa-sched.c (sched_emit_insn): Emit insn before first
24007 non-scheduled insn. Inform back-end about new insn. Add
24008 new insn to scheduled_insns list.
24009
90bc4623
RG
240102011-05-02 Richard Guenther <rguenther@suse.de>
24011
24012 PR tree-optimization/48822
24013 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
24014 (process_scc): Indicate which iteration we start.
24015
bc0fe8cb
JH
240162011-05-02 Jan Hubicka <jh@suse.cz>
24017
24018 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
24019 (lto_section_overrun): New.
24020 * lto-section-out.c (append_block): Rename to ...
24021 (lto_append_block): ... this one; export.
24022 (lto_output_1_stream): Move lto lto-streamer.h
24023 (lto_output_data_stream): Update.
24024 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
24025 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
24026 functions.
24027
f070a9d1
RG
240282011-05-02 Richard Guenther <rguenther@suse.de>
24029
24030 * tree.c (tree_code_counts): New global array.
24031 (record_node_allocation_statistics): Count individual tree codes.
24032 (dump_tree_statistics): Dump individual code stats.
24033
09dfe187
JH
240342011-05-01 Jan Hubicka <jh@suse.cz>
24035
24036 * ipa-inline.c (caller_growth_limits): Fix thinko when
24037 looking for largest stack frame.
24038 * ipa-inline.h (dump_inline_summary): Declare.
24039 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
24040 on stack usage.
24041 (dump_inline_summary): Export.
24042 (debug_inline_summary): Declare as DEBUG_FUNCTION.
24043
6f76a878
AS
240442011-05-01 Anatoly Sokolov <aesok@post.ru>
24045
24046 * reginfo.c (memory_move_cost): Change rclass argument type form
24047 'enum reg_class' to reg_class_t.
24048 * reload.h (memory_move_cost): Update prototype.
24049 * postreload.c reload_cse_simplify_set): Change type dclass var to
24050 reg_class_t.
24051 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
24052 Update prototype.
24053 (ira_allocate_and_set_costs): Change aclass argument type form
24054 'enum reg_class' to reg_class_t.
6bec6c98 24055 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
24056 Change aclass argument type to reg_class_t.
24057 (update_conflict_hard_reg_costs): Change type aclass and pref vars
24058 to reg_class_t.
24059 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
24060 memory_move_cost call.
24061
24062 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
24063 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
24064 Change type tmp var to reg_class_t.
24065
9a4ac625
JH
240662011-04-30 Jan Hubicka <jh@suse.cz>
24067
24068 * ipa-inline.c (can_inline_edge_p): Disregard limits when
24069 inlining into function with flatten attribute.
24070 (want_inline_small_function_p): Be more realistic about inlining
24071 cold calls where callee size grows.
24072
dd8352ee
JH
240732011-04-30 Jan Hubicka <jh@suse.cz>
24074
24075 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
24076 flags.
24077
46e43d2b
AS
240782011-04-30 Anatoly Sokolov <aesok@post.ru>
24079
24080 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
24081 PRINT_OPERAND_PUNCT_VALID_P): Remove.
24082 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
24083 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
24084 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24085 (print_operand): Rename to...
24086 (sparc_print_operand): ...this. Make static. Adjust
24087 sparc_print_operand function call.
24088 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
24089 functions.
24090
ecb62563
JH
240912011-04-30 Jan Hubicka <jh@suse.cz>
24092
6bec6c98 24093 PR middle-end/48752
ecb62563
JH
24094 * ipa-inline.c (early_inliner): Disable when doing late
24095 addition of function.
24096
edb9b69e
JJ
240972011-04-30 Jakub Jelinek <jakub@redhat.com>
24098
be80a87e
JJ
24099 * dwarf2out.c (get_address_mode): New inline.
24100 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
24101 if not dwarf_strict emit
24102 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
24103 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
24104 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
24105 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
24106 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
24107 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
24108 mem_loc_descriptor callers.
24109 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24110 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
24111 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
24112 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
24113 (base_types): New variable.
24114 (get_base_type_offset, calc_base_type_die_sizes,
24115 base_type_for_mode, mark_base_types, base_type_cmp,
24116 move_marked_base_types): New functions.
24117 (calc_die_sizes): Assert that die_offset is 0 or equal to
24118 next_die_offset.
24119 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
24120 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
24121 callers. If not dwarf_strict, call mem_loc_descriptor even for
24122 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
24123 (gen_subprogram_die): Don't give up on call site parameters
24124 with non-integral or large integral modes. Adjust
24125 mem_loc_descriptor callers.
24126 (prune_unused_types): Call prune_unused_types_mark on base_types
24127 vector entries.
24128 (resolve_addr): Call mark_base_types.
24129 (dwarf2out_finish): Call move_marked_base_types.
24130
edb9b69e
JJ
24131 PR tree-optimization/48809
24132 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
24133 type.
24134 (gen_inbound_check): Don't compute index_expr - range_min in utype
24135 again, instead reuse SSA_NAME initialized in build_arrays.
24136 Remove two useless gsi_for_stmt calls.
24137
a6545a3d
JL
241382011-04-29 Jeff Law <law@redhat.com>
24139
24140 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
24141
af8bca3c
MJ
241422011-04-29 Martin Jambor <mjambor@suse.cz>
24143
24144 * cgraph.h (cgraph_postorder): Remove declaration.
24145 * ipa-utils.h (ipa_free_postorder_info): Declare.
24146 (ipa_reverse_postorder): Likewise.
24147 * cgraphunit.c: Include ipa-utils.h.
24148 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
24149 * ipa-inline.c: Include ipa-utils.h.
24150 (ipa_inline): Update call to ipa_reverse_postorder.
24151 * ipa-pure-const.c (propagate_pure_const): Update call to
24152 ipa_reduced_postorder and ipa_print_order. Call
24153 ipa_free_postorder_info to clean up.
24154 (propagate_nothrow): Likewise.
24155 * ipa-reference.c (propagate): Removed a useless call to
24156 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
24157 and ipa_print_order. Call ipa_free_postorder_info to clean up.
24158 * ipa.c: Include ipa-utils.h.
24159 (ipa_profile): Update call to ipa_reverse_postorder.
24160 (cgraph_postorder): Moved to...
24161 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
24162 (ipa_utils_print_order): Renamed to ipa_print_order.
24163 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
24164 comments.
24165 (ipa_free_postorder_info): New function.
24166 * passes.c: Include ipa-utils.h.
24167 (do_per_function_toporder): Update call to ipa_reverse_postorder.
24168 (ipa_write_summaries): Likewise.
24169 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
24170 (cgraphunit.o): Likewise.
24171 (ipa.o): Likewise.
24172 (ipa-inline.o): Likewise.
24173
b15c64ee
JH
241742011-04-29 Jan Hubicka <jh@suse.cz>
24175
b15c64ee
JH
24176 * ipa-inline.h (clause_t): Turn into unsigned int.
24177 * ipa-inline-analysis.c (add_clause): Do more simplification.
24178 (and_predicates): Shortcut more cases.
24179 (predicates_equal_p): Move forward; check that clauses are properly
24180 ordered.
24181 (or_predicates): Shortcut more cases.
24182 (edge_execution_predicate): Rewrite as...
24183 (set_cond_stmt_execution_predicate): ... this function; handle
24184 __builtin_constant_p.
24185 (set_switch_stmt_execution_predicate): New .
24186 (compute_bb_predicates): New.
24187 (will_be_nonconstant_predicate): Update TODO.
24188 (estimate_function_body_sizes): Use compute_bb_predicates
24189 and free them later, always try to estimate if stmt is constant.
24190 (estimate_time_after_inlining, estimate_size_after_inlining):
24191 Gracefully handle optimized out edges.
24192 (read_predicate): Fix off by one error.
24193
a88fdc2a
NP
241942011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
24195
24196 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
24197
d984c8ef
XDL
241982011-04-27 Xinliang David Li <davidxl@google.com>
24199
24200 * tree-profile.c (init_ic_make_global_vars): Set
24201 tls attribute on ic vars.
24202 * coverage.c (coverage_end_function): Initialize
24203 function_list with zero.
24204
45a2c477
RG
242052011-04-29 Richard Guenther <rguenther@suse.de>
24206
24207 * builtins.c (fold_builtin_classify_type): Use integer_type_node
24208 for the type of the result.
24209 (fold_builtin_isascii): Likewise.
24210 (fold_builtin_toascii): Use integer_type_node where appropriate.
24211 (fold_builtin_logb): Likewise.
24212 (fold_builtin_frexp): Likewise.
24213 (fold_builtin_strstr): Likewise.
24214 (fold_builtin_strpbrk): Likewise.
24215 (fold_builtin_fputs): Likewise.
24216 (fold_builtin_sprintf): Likewise.
24217 (fold_builtin_snprintf): Likewise.
24218 (fold_builtin_printf): Likewise.
24219 (do_mpfr_remquo): Use a proper type for the assigned constant.
24220 (do_mpfr_lgamma_r): Likewise.
24221 * dwarf2out.c (resolve_one_addr): Use size_int.
24222 * except.c (init_eh): Likewise.
24223 (assign_filter_values): Use integer_type_node for filter values.
24224 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
24225 indices.
24226 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
24227 for EH region numbers.
24228 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
24229 for the shift amount.
24230
eb6c3df1
RG
242312011-04-29 Richard Guenther <rguenther@suse.de>
24232
24233 * expr.h (expand_shift): Rename to ...
24234 (expand_variable_shift): ... this.
24235 (expand_shift): Take a constant shift amount.
24236 * expmed.c (expand_shift): Rename to ...
24237 (expand_variable_shift): ... this.
24238 (expand_shift): New wrapper around expand_variable_shift.
24239 * expr.c (convert_move, emit_group_load_1, emit_group_store,
24240 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
24241 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
24242 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
24243 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
24244 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
24245 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
24246 emit_store_flag_1, emit_store_flag): Likewise.
24247 * builtins.c (expand_builtin_signbit): Likewise.
24248 * calls.c (load_register_parameters): Likewise.
24249 * function.c (assign_parm_setup_block): Likewise.
24250 * lower-subreg.c (resolve_shift_zext): Likewise.
24251 * optabs.c (widen_bswap, expand_abs_nojump,
24252 expand_one_cmpl_abs_nojump, expand_float): Likewise.
24253 * spu/spu.c (spu_expand_extv): Likewise.
24254 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
24255
9f616812
RG
242562011-04-29 Richard Guenther <rguenther@suse.de>
24257
24258 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
24259 for the remapped region number.
24260 * predict.c (build_predict_expr): Use integer_type_node for the
24261 predict kind.
24262 * fold-const.c (fold_binary_loc): Use integer_type_node for
24263 the shift amount. Use a proper type for the PLUS_EXPR operand.
24264
b823cdfe
MM
242652011-04-29 Michael Matz <matz@suse.de>
24266
24267 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
24268 other trees that just builtins.
24269 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
24270
413581ba
RG
242712011-04-29 Richard Guenther <rguenther@suse.de>
24272
24273 * tree-nested.c (get_trampoline_type): Use size_int.
24274 (get_nl_goto_field): Likewise.
24275 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
24276 for all indexes.
24277 (lower_eh_constructs_2): Likewise.
24278 (lower_resx): Likewise.
24279 (lower_eh_dispatch): Likewise.
24280 * tree-mudflap.c (mf_build_string): Use size_int.
24281 (mudflap_register_call): Use integer_type_node for the flag.
24282 (mudflap_enqueue_constant): Use size_int.
24283 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
24284 instead of rebuilding it.
24285
5c04e9f4
RG
242862011-04-29 Richard Guenther <rguenther@suse.de>
24287
24288 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
24289 Handle OBJ_TYPE_REF.
24290 (find_func_aliases_for_call): Use it more consistently.
24291
5c24671b
AO
242922011-04-29 Alexandre Oliva <aoliva@redhat.com>
24293
24294 * haifa-sched.c (last_nondebug_scheduled_insn): New.
24295 (rank_for_schedule): Use it.
24296 (schedule_block): Set it.
24297
10adac51
XDL
242982011-04-28 David Li <davidxl@google.com>
24299
24300 * tree.c (crc32_string): Use crc32_byte.
24301 (crc32_byte): New function.
24302 * tree.h (crc32_byte): New function.
24303 * gcov.c (read_graph_file): Handle new cfg_cksum.
24304 (read_count_file): Ditto.
24305 * profile.c (instrument_values): Ditto.
24306 (get_exec_counts): Ditto.
24307 (read_profile_edge_counts): Ditto.
24308 (compute_branch_probabilities): Ditto.
24309 (compute_value_histograms): Ditto.
24310 (branch_prob): Ditto.
24311 (end_branch_prob): Ditto.
24312 * coverage.c (read_counts_file): Ditto.
24313 (get_coverage_counts): Ditto.
24314 (tree_coverage_counter_addr): Ditto.
24315 (coverage_checksum_string): Ditto.
24316 (coverage_begin_output): Ditto.
24317 (coverage_end_function): Ditto.
24318 (build_fn_info_type): Ditto.
24319 (build_fn_info_value): Ditto.
24320 * libgcov.c (gcov_exit): Ditto.
24321 * gcov-dump.c (tag_function): Ditto.
24322 (compute_checksum): Remove.
24323
5d6358a5
AM
243242011-04-29 Alan Modra <amodra@gmail.com>
24325
24326 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24327 unspec plus offset. Tidy macho code.
24328
85ad2ef5
MJ
243292011-04-29 Martin Jambor <mjambor@suse.cz>
24330
24331 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
24332 node instead of a decl. Update all callers.
24333 * cgraph.h: Update declaration.
24334
437f4a00
IR
243352011-04-28 Ira Rosen <ira.rosen@linaro.org>
24336
24337 PR tree-optimization/48765
24338 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
24339 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
24340 to indicate if loop aware SLP is being used. Scan the statements
24341 and update the vectorization factor according to the type of
24342 vectorization before statement analysis.
24343 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
24344 pass it to vect_analyze_loop_operations.
24345 (vectorizable_reduction): Set number of copies to 1 in case of pure
24346 SLP statement.
24347 * tree-vect-stmts.c (vectorizable_conversion,
24348 vectorizable_assignment, vectorizable_shift,
24349 vectorizable_operation, vectorizable_type_demotion,
24350 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
24351 Likewise.
24352 (vectorizable_condition): Move the check that it is not SLP
24353 vectorization before the number of copies check.
24354 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
24355 to vectorize the loop using SLP.
24356
c6fc44f3
JJ
243572011-04-28 Jakub Jelinek <jakub@redhat.com>
24358
24359 PR middle-end/48597
24360 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
24361 inline asm.
24362
6c0170ea
JM
243632011-04-28 Joseph Myers <joseph@codesourcery.com>
24364
24365 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
24366 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
24367 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24368 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24369 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
24370 linux*.h headers.
6bec6c98 24371 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
24372 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24373 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
24374 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 24375 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
24376 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
24377 REG_NAME.
24378 * config/i386/linux.h (REG_NAME): Don't define.
24379 * config/i386/linux64.h (REG_NAME): Don't define.
24380 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
24381 Undefine before defining.
24382
970dabbd
JH
243832011-04-28 Jan Hubicka <jh@suse.cz>
24384
6bec6c98
UB
24385 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
24386 nonconstant_names array.
970dabbd
JH
24387 (estimate_function_body_sizes): Build nonconstant_names array; handle
24388 BUILT_IN_CONSTANT_P.
24389
8d3e3924
RG
243902011-04-28 Richard Guenther <rguenther@suse.de>
24391
24392 PR bootstrap/48804
24393 Revert
24394 2011-04-28 Richard Guenther <rguenther@suse.de>
24395
24396 * tree-ssa-structalias.c (solve_constraints): Build succ graph
24397 as late as possible.
6bec6c98 24398
8576f20a
RG
243992011-04-28 Richard Guenther <rguenther@suse.de>
24400
24401 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
24402 (debug_constraint): Do it here.
24403 (dump_constraints): And here.
24404 (rewrite_constraints): And here.
24405 (dump_constraint_edge): Remove.
24406 (dump_constraint_graph): Rewrite to produce DOT output.
24407 (solve_constraints): Build succ graph as late as possible.
24408 Dump constraint graphs before and after solving.
24409
e38811ce
RG
244102011-04-28 Richard Guenther <rguenther@suse.de>
24411
24412 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24413 New function split out from ...
24414 (find_func_aliases): ... here. Call it.
24415 (find_func_aliases_for_call): Likewise.
24416
fbaf0d0c
GDR
244172011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
24418
24419 * internal-fn.h (internal_fn_name_array): Declare.
24420 (internal_fn_flags_array): Likewise.
24421
cbb734aa
UB
244222011-04-27 Uros Bizjak <ubizjak@gmail.com>
24423
24424 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
24425 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
24426 Move from sse.md.
24427 (ssemodefsuffix): Remove.
24428 (ssevecmodesuffix): New mode attribute.
24429 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
24430 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
24431 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
24432 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
24433 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
24434 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
24435 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
24436 ssemodesuffix mode attribute.
24437 (float splitters): Use ssevecmodesuffix mode attribute.
24438 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
24439 (sseinsmode): Rename from avxvecmode.
24440 (avxsizesuffix): Rename from avxmodesuffix.
24441 (sseintvecmode): Rename from avxpermvecmode.
24442 (ssedoublevecmode): Rename from ssedoublesizemode.
24443 (ssehalfvecmode): Rename from avxhalfvecmode.
24444 (ssescalarmode): Rename from avxscalarmode.
24445 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
24446 templates for ssemodesuffix mode attribute.
24447 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
24448 mode attribute.
24449
24450 Adjust RTX patterns globally for renamed mode attributes.
24451
991278ab
JH
244522011-04-27 Jan Hubcika <jh@suse.cz>
24453
24454 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
24455 * ipa-inline-analysis.c: Include alloc-pool.h.
24456 (edge_predicate_pool): New.
24457 (trye_predicate_p): New function
24458 (false_predicate_p): New function.
24459 (add_clause): Sanity check that false clauses are "optimized";
24460 never add clauses to predicate that is already known to be false.
24461 (and_predicate): Use flase_predicate_p.
24462 (evaulate_predicate): Rename to ...
24463 (evaluate_predicate): ... this one; update all callers; assert
24464 that false is not listed among possible truths.
24465 (dump_predicate): Use true_predicate_p.
24466 (account_size_time): Use false_predicate_p.
24467 (evaulate_conditions_for_edge): Rename to ...
24468 (evaluate_conditions_for_edge) ... this one.
24469 (edge_set_predicate): New function.
24470 (inline_edge_duplication_hook): Duplicate edge predicates.
24471 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 24472 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
24473 (dump_inline_summary): Update.
24474 (estimate_function_body_sizes): Set edge predicates.
24475 (estimate_calls_size_and_time): Handle predicates.
24476 (estimate_callee_size_and_time): Update.
24477 (remap_predicate): Add toplev_predicate; update comment.
24478 (remap_edge_predicates): New function.
24479 (inline_merge_summary): Compute toplev predicate; update.
24480 (read_predicate): New function.
24481 (read_inline_edge_summary): Use it.
24482 (inline_read_section): Likewise.
24483 (write_predicate): New function.
24484 (write_inline_edge_summary): Use it.
24485 (inline_write_summary): Likewise.
24486 (inline_free_summary): Free alloc pool and edge summary vec.
24487
648b5f85
RG
244882011-04-27 Richard Guenther <rguenther@suse.de>
24489
24490 * tree-ssa-structalias.c (changed_count): Remove.
24491 (changed): Use a bitmap.
24492 (unify_nodes): Adjust.
24493 (do_sd_constraint): Likewise.
24494 (do_ds_constraint): Likewise.
24495 (do_complex_constraint): Likewise.
24496 (solve_graph): Likewise.
24497
4d5dcfb2
JH
244982011-04-27 Jan Hubicka <jh@suse.cz>
24499
24500 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
24501
200eb7d2
UB
245022011-04-27 Uros Bizjak <ubizjak@gmail.com>
24503
24504 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
24505 (avx_vperm2f128_*_operand): Ditto.
24506 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
24507 Use avx_vpermilp_parallel in insn condition.
24508 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
24509 Use avx_vperm2f128_parallel in insn condition.
24510
7d6e2521
RG
245112011-04-27 Richard Guenther <rguenther@suse.de>
24512
24513 * Makefile.in (tree-ssa-structalias.o): Remove
24514 gt-tree-ssa-structalias.h dependency.
24515 (GTFILES): Remove tree-ssa-structalias.c.
24516 * tree.c (allocate_decl_uid): New function.
24517 (make_node_stat): Use it.
24518 (copy_node_stat): Likewise.
24519 * tree.h (allocate_decl_uid): Declare.
24520 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
24521 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
24522 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 24523 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
24524 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
24525 (struct heapvar_map): Likewise.
24526 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
24527 heapvar_insert): Likewise.
24528 (make_heapvar_for): Rename to ...
24529 (make_heapvar): ... this. Simplify.
24530 (fake_var_decl_obstack): New global var.
24531 (build_fake_var_decl): New function.
24532 (make_constraint_from_heapvar): Adjust.
24533 (handle_lhs_call): Likewise.
24534 (create_function_info_for): Likewise.
24535 (intra_create_variable_infos): Likewise.
24536 (init_alias_vars): Allocate fake_var_decl_obstack.
24537 (init_alias_heapvars, delete_alias_heapvars): Remove.
24538 (compute_points_to_sets): Do not call init_alias_heapvars.
24539 (ipa_pta_execute): Likewise.
24540 (delete_points_to_sets): Free fake_var_decl_obstack.
24541
526ed6c2
UW
245422011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24543
24544 * config/spu/divmovti4.c (union qword_UTItype): New data type.
24545 (si_from_UTItype, si_to_UTItype): New functions.
24546 (__udivmodti4): Use them to implement type-punning.
24547 * config/spu/multi3.c (union qword_TItype): New data type.
24548 (si_from_TItype, si_to_TItype): New functions.
24549 (__multi3): Use them to implement type-punning.
24550
c187d33c
UW
245512011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24552
24553 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
24554
40982661
JH
245552011-04-27 Jan Hubicka <jh@suse.cz>
24556
24557 * ipa-prop.c (function_insertion_hook_holder): New holder.
24558 (ipa_add_new_function): New function.
200eb7d2
UB
24559 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
24560 Register/deregister holder.
40982661 24561
9aef53ee
RG
245622011-04-27 Richard Guenther <rguenther@suse.de>
24563
24564 PR tree-optimization/48772
200eb7d2 24565 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 24566
f63d806d
RG
245672011-04-27 Richard Guenther <rguenther@suse.de>
24568
24569 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
24570 TARGET_MEM_REF handling.
24571
e1ea7451
NC
245722011-04-27 Nick Clifton <nickc@redhat.com>
24573
9b5db25d
NC
24574 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
24575 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
24576 (REG_CLASS_NAMES): Likewise.
24577 (REG_CLASS_CONTENTS): Likewise.
24578 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
24579 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
24580 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
24581 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
24582 (EVEN_REGS): New macro. Alias for QUAD_REGS.
24583 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
24584 duplicate register classes.
97d20907 24585 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
24586 (frv_register_move_cost): Likewise.
24587
e1ea7451
NC
24588 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
24589 end of the regno_reg_class array.
24590
5c2f94b4
JJ
245912011-04-27 Jakub Jelinek <jakub@redhat.com>
24592
24593 PR c/48742
24594 * c-typeck.c (build_binary_op): Don't wrap arguments if
24595 int_operands is true.
24596
57a944d7
KK
245972011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
24598
24599 PR target/48767
24600 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
24601 targetm.calls.must_pass_in_stack for void type.
24602
898b8927
JH
246032011-04-26 Jan Hubicka <jh@suse.cz>
24604
24605 * cgraphbuild.c (build_cgraph_edges): Update call
24606 of cgraph_create_edge and cgraph_create_indirect_edge.
24607 * cgraph.c (cgraph_create_edge_including_clones,
24608 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
24609 cgraph_update_edges_for_call_stmt_node): Do not take nest
24610 argument; do not initialize call_stmt_size/time.
24611 (dump_cgraph_node): Do not dump nest.
24612 (cgraph_clone_edge): Do not take loop_nest argument;
24613 do not propagate it; do not clone call_stmt_size/time.
24614 (cgraph_clone_node): Likewise.
24615 (cgraph_create_virtual_clone): Update.
24616 * cgraph.h (struct cgraph_edge): Remove
24617 call_stmt_size/call_stmt_time/loop_nest.
24618 (cgraph_create_edge, cgraph_create_indirect_edge,
24619 cgraph_create_edge_including_clones, cgraph_clone_node): Update
24620 prototype.
24621 * tree-emutls.c (gen_emutls_addr): Update.
24622 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
24623 loop_nest; handle indirect calls, too.
24624 (clone_inlined_nodes): Do not care about updating inline summaries.
24625 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
24626 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
24627 stream call_stmt_size/call_stmt_time/loop_nest.
24628 * ipa-inline.c (edge_badness): Update.
24629 (ipa_inline): dump summaries after inlining.
24630 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 24631 New.
898b8927
JH
24632 (inline_edge_summary): New function.
24633 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
24634 (inline_edge_removal_hook): Handle edge summaries.
24635 (inline_edge_duplication_hook): New hook.
24636 (inline_summary_alloc): Alloc hooks.
24637 (initialize_growth_caches): Do not register removal hooks.
24638 (free_growth_caches); Do not free removal hook.
24639 (dump_inline_edge_summary): New function.
24640 (dump_inline_summary): Use it.
24641 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
24642 (inline_update_callee_summaries): New function.
24643 (inline_merge_summary): Use it.
24644 (do_estimate_edge_time, do_estimate_edge_growth): Update.
24645 (read_inline_edge_summary): New function.
24646 (inline_read_section): Use it.
24647 (write_inline_edge_summary): New function.
24648 (inline_write_summary): Use it.
24649 (inline_free_summary): Free edge new holders.
24650 * tree-inline.c (copy_bb): Update.
24651
ffa03772
JM
246522011-04-26 Jason Merrill <jason@redhat.com>
24653
24654 * tree-eh.c (lower_try_finally_switch): Create the label along with
24655 the CASE_LABEL_EXPR.
24656
6d7b45ad
DM
246572011-04-26 David S. Miller <davem@davemloft.net>
24658 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24659
24660 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
24661 * configure: Regenerate.
24662
df10b6d4
MM
246632011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
24664
24665 PR target/48258
24666 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
24667 reduction.
24668 (VEC_reduc): New code iterator and splitters for vector reduction.
24669 (VEC_reduc_name): Ditto.
24670 (VEC_reduc_rtx): Ditto.
24671 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
24672 (reduc_<VEC_reduc_name>_v4sf): Ditto.
24673
24674 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
24675 support for extracting SF on VSX.
24676
24677 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
24678 generating xscvspdp.
24679 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
24680 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
24681 double add, minimum, maximum vector reduction.
24682 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
24683 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
24684 optimize double vector reduction.
24685 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
24686
35a5db04
JM
246872011-04-26 Joseph Myers <joseph@codesourcery.com>
24688
24689 * config/fr30/fr30.h (inhibit_libc): Don't define.
24690 * config/m32r/m32r-protos.h: Correct comment.
24691 * config/v850/v850.h (GHS_default_section_names,
24692 GHS_current_section_names): Use tree, not union tree_node *.
24693
2f964ad6
XDL
246942011-04-26 Xinliang David Li <davidxl@google.com>
24695
200eb7d2 24696 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
24697 * c-family/c-opts.c (c_common_handle_option): Set
24698 warn_maybe_uninitialized.
24699 * opts.c (common_handle_option): Ditto.
24700 * common.opt: New option.
24701 * tree-ssa.c (warn_uninit): Add one more parameter.
24702 (warn_uninitialized_var): Pass warning code.
24703 * tree-flow.h: Interface change.
24704
9c7bd91a
RO
247052011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24706
200eb7d2 24707 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
24708 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
24709 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
24710
c2f36e21
RO
247112011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24712
24713 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
24714 * config/mips/mips.opt (mmips-tfile): Remove.
24715
24716 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
24717 mips-tdump reference to ...
200eb7d2 24718 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
24719 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
24720 reference by Tru64 UNIX.
24721
2c9da85b
JJ
247222011-04-26 Jakub Jelinek <jakub@redhat.com>
24723
0c5f6539
JJ
24724 PR debug/48768
24725 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
24726 is error_mark_node, set value to NULL.
24727
2c9da85b
JJ
24728 PR tree-optimization/48734
24729 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
24730 if return value from maybe_fold_*_comparsions isn't something
24731 the code is prepared to handle.
24732
77fa1d54
UB
247332011-04-26 Uros Bizjak <ubizjak@gmail.com>
24734
24735 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
24736 mode check.
24737 (ext_QIreg_nomode_operands): Remove.
24738 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
24739 (*andsi_1): Ditto.
24740 (*andhi_1): Ditto.
24741
0e2a6c2b
AS
247422011-04-26 Andrew Stubbs <ams@codesourcery.com>
24743
24744 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
24745
961562d8
RB
247462011-04-26 Richard Guenther <rguenther@suse.de>
24747
24748 * c-typeck.c (build_unary_op): Do not expand array-refs via
24749 pointer arithmetic. Only adjust qualifiers for function types.
24750
247512011-04-26 Richard Guenther <rguenther@suse.de>
24752
24753 PR middle-end/48694
24754 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
24755 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
24756 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
24757 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 24758
a0d260fc
PC
247592011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
24760
6bec6c98 24761 * doc/extend.texi: Document __underlying_type.
a0d260fc 24762
4d583bb9
SB
247632011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
24764
24765 * config/rs6000/titan.md (automata_option "progress"): Remove.
24766
1f3fcdc3
JL
247672011-04-25 Jeff Law <law@redhat.com>
24768
24769 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
24770
e5b0dad8
JK
247712011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
24772
24773 * system.h (ENUM_BITFIELD): Remove.
24774
5157a881 247752011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 24776 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
24777
24778 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
24779 for STORE_FLAG_VALUE==-1 case.
24780
ed4c109e
RS
247812011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
24782
24783 PR target/43804
24784 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
24785 LEGITIMATE_PIC_OPERAND_P.
24786
f3181aa2
JH
247872011-04-24 Jan Hubicka <jh@suse.cz>
24788
24789 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
24790 WPA hack.
77fa1d54
UB
24791 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
24792 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
24793 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
24794 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
24795 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
24796 Sanity check predicate length.
24797 (remap_predicate): Likewise; sanity check jump functions.
24798 (inline_read_section, inline_write_summary): Sanity check
24799 predicate length.
24800
5307cbaa
PC
248012011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
24802
24803 PR other/48748
24804 * doc/extend.texi (Type Traits): Document __is_standard_layout,
24805 __is_literal_type, and __is_trivial; update throughout about
24806 possibly cv-qualified void types.
24807
bebd5f99
GP
248082011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
24809
24810 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
24811 testsuite and make it version agnostic.
24812
7ee28a74
JH
248132011-04-22 Jan Hubicka <jh@suse.cz>
24814
24815 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
24816
16997bc0
JJ
248172011-04-23 Jakub Jelinek <jakub@redhat.com>
24818
24819 PR c/48685
24820 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
24821 to VOID_TYPE even around MODIFY_EXPR.
24822
f94d4ab1
MS
248232011-04-22 Mike Stump <mikestump@comcast.net>
24824
1a84c183 24825 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
24826 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
24827 comment.
24828
632b4f8e
JH
248292011-04-22 Jan Hubicka <jh@suse.cz>
24830
24831 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
24832 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
24833 ipa-prop.c; update all uses.
632b4f8e 24834 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
24835 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
24836 merge summary of inlined function into former caller.
632b4f8e
JH
24837 * ipa-inline.c (max_benefit): Remove.
24838 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
24839 (update_caller_keys): Use
24840 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
24841 (update_callee_keys): Likewise.
24842 (update_all_callee_keys): Likewise.
77fa1d54
UB
24843 (inline_small_functions): Do not collect max_benefit; do not reset
24844 estimated_growth; call free_growth_caches and initialize_growth_caches.
24845 * ipa-inline.h (struct condition, type clause_t, struct predicate,
24846 struct size_time_entry): New structures.
632b4f8e 24847 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
24848 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
24849 and estimated_growth.
632b4f8e
JH
24850 (edge_growth_cache_entry): New structure.
24851 (node_growth_cache, edge_growth_cache): New global vars.
24852 (estimate_growth): Turn into inline.
24853 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
24854 initialize_growth_caches, free_growth_caches): Declare.
24855 (estimate_edge_growth): Rewrite.
24856 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
24857 (reset_node_growth_cache, reset_edge_growth_cache): New inline
24858 functions.
632b4f8e
JH
24859 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
24860 (NUM_CONDITIONS): New constant.
24861 (predicate_conditions): New enum.
24862 (IS_NOT_CONSTANT): New constant.
24863 (edge_removal_hook_holder): New var.
24864 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
24865 (true_predicate, single_cond_predicate, false_predicate,
24866 not_inlined_predicate, add_condition, add_clause, and_predicates,
24867 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
24868 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
24869 evaulate_conditions_for_edge): New functions.
24870 (inline_summary_alloc): Move to heap.
24871 (inline_node_removal_hook): Clear condition and entry vectors.
24872 (inline_edge_removal_hook): New function.
24873 (initialize_growth_caches, free_growth_caches): New function.
24874 (dump_inline_summary): Update.
24875 (edge_execution_predicate): New function.
24876 (will_be_nonconstant_predicate): New function.
24877 (estimate_function_body_sizes): Compute BB and constantness predicates.
24878 (compute_inline_parameters): Do not clear estimated_growth.
24879 (estimate_edge_size_and_time): New function.
24880 (estimate_calls_size_and_time): New function.
24881 (estimate_callee_size_and_time): New function.
24882 (remap_predicate): New function.
24883 (inline_merge_summary): New function.
24884 (do_estimate_edge_time): New function based on...
24885 (estimate_edge_time): ... this one.
24886 (do_estimate_edge_growth): New function.
24887 (do_estimate_growth): New function based on....
24888 (estimate_growth): ... this one.
24889 (inline_analyze_function): Analyze after deciding on jump functions.
24890 (inline_read_section): New function.
24891 (inline_read_summary): Use it.
24892 (inline_write_summary): Write all the new data.
24893 * ipa-prop.c (ipa_get_param_decl_index): Export.
24894 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
24895 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
24896 Declare.
24897 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
24898 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
24899 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
24900 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
24901 cgraph_edge_inlinable_p): Remove.
24902 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
24903 (cgraph_process_new_functions): Update call of
24904 compute_inline_parameters.
632b4f8e 24905
1df5b0db
RG
249062011-04-22 Richard Guenther <rguenther@suse.de>
24907
24908 * tree.c (build_int_cst): Properly create canonicalized integer
24909 constants.
24910 (build_int_cst_type): Remove scary comments.
24911
ae01169c
XDL
249122011-04-22 Xinliang David Li <davidxl@google.com>
24913
24914 * toplev.c (process_options): Enable -Werror=coverage-mismatch
24915 by default when -Wno-error is not specified.
24916 * opts-global.c (decode_options): Remove call to
24917 control_warning_options.
24918
93dfac24
JJ
249192011-04-22 Jakub Jelinek <jakub@redhat.com>
24920
24921 PR tree-optimization/48717
24922 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
24923 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
24924
1b5f5069
JM
249252011-04-22 Joseph Myers <joseph@codesourcery.com>
24926
24927 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
24928 definition where used.
24929
144f4153
JJ
249302011-04-22 Jakub Jelinek <jakub@redhat.com>
24931
24932 PR c/48716
24933 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
24934 TREE_STATIC variables declared inside of some OpenMP construct.
24935
f9fd305b
MJ
249362011-04-22 Martin Jambor <mjambor@suse.cz>
24937
24938 PR middle-end/48585
1d284ec5 24939 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 24940
49819fef
AM
249412011-04-22 Alexander Monakov <amonakov@ispras.ru>
24942
24943 PR c/36750
24944 * c-typeck.c (pop_init_level): Do not warn about initializing
24945 with ` = {0}'.
24946
401f6699
AM
249472011-04-22 Alan Modra <amodra@gmail.com>
24948
24949 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
24950 when returning call_cookie.
24951 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
24952 pointers, to functions with no more vector args than the current
24953 function, and some non-local calls for ABI_V4.
24954 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
24955 sibcall_nonlocal_aix64): Combine to ..
24956 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
24957 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
24958 (sibcall_value_nonlocal_aix<mode>): ..likewise.
24959 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
24960 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
24961 operand.
24962 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
24963 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
24964 sibcall_value_symbolic_64): Delete.
24965
903d1e67
XDL
249662011-04-21 Xinliang David Li <davidxl@google.com>
24967
24968 * cgraph.h: Remove pid.
24969 * cgraph.c: Remove pid.
24970 * value-prof.c (init_node_map): New function.
24971 (del_node_map): New function.
24972 (find_func_by_funcdef_no): New function.
24973 (gimple_ic_transform): Call new function.
24974 * cgraphunit.c (cgraph_finalize_function): Remove pid.
24975 * function.c (get_last_funcdef_no): New function.
24976 * function.h (get_last_funcdef_no): New function.
24977 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
24978 to libgcov function.
24979 (tree-profiling): Call node map init and delete function.
24980
7378e95f
ILT
249812011-04-21 Ian Lance Taylor <iant@google.com>
24982
24983 * godump.c (go_format_type): Use exported Go name for anonymous
24984 field name.
24985
e84a6fcf
NF
249862011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24987
24988 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
24989 Call builtin_function_type_list instead of builtin_function_type.
24990 (UNARY, BINARY, TRINARY, QUAD): Likewise.
24991
4fe058e2
NF
249922011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24993
24994 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
24995 build_function_type_list instead of build_function_type.
24996 Delete variable `endlink'.
24997
1ba0a2d2
NF
249982011-04-21 Nathan Froyd <froydnj@codesourcery.com>
24999
25000 * config/s390/s390.c (s390_init_builtins): Call
25001 build_function_type_list instead of build_function_type.
25002
c0676219
NF
250032011-04-21 Nathan Froyd <froydnj@codesourcery.com>
25004
25005 * config/ia64/ia64.c (ia64_init_builtins): Call
25006 build_function_type_list instead of builtin_function_type.
25007
6ddfda8a
ER
250082011-04-21 Easwaran Raman <eraman@google.com>
25009
3a6448ea 25010 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
25011 (add_stack_var): ...and its reference here...
25012 (expand_stack_vars): ...and here.
25013 (stack_var_cmp): Sort by descending order of size.
25014 (partition_stack_vars): Change heuristic.
1d284ec5 25015 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
25016 (dump_stack_var_partition): Add newline after each partition.
25017
23756963
DA
250182011-04-21 Dimitrios Apostolou <jimis@gmx.net>
25019 Jeff Law <law@redhat.com>
25020
77fa1d54 25021 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
25022 * gengtype.c (matching_file_name_substitute): Likewise.
25023
aa2a43d2
RG
250242011-04-21 Richard Guenther <rguenther@suse.de>
25025
25026 PR lto/48703
1d284ec5 25027 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 25028
4d931f41
EB
250292011-04-21 Eric Botcazou <ebotcazou@adacore.com>
25030
25031 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
25032
f103fa7a
RG
250332011-04-21 Richard Guenther <rguenther@suse.de>
25034
25035 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
25036 file name.
25037
e19f6650
RG
250382011-04-21 Richard Guenther <rguenther@suse.de>
25039
25040 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
25041 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
25042 Use DECL_P, not SSA_VAR_P.
25043 (ptr_derefs_may_alias_p): Likewise.
25044 (ptr_deref_may_alias_ref_p_1): Likewise.
25045 (decl_refs_may_alias_p): Likewise.
25046 (refs_may_alias_p_1): Likewise.
25047 (ref_maybe_used_by_call_p_1): Likewise.
25048 (call_may_clobber_ref_p_1): Likewise.
25049 (indirect_ref_may_alias_decl_p): Assume indirect refrences
25050 are either MEM_REF or TARGET_MEM_REF.
25051 (indirect_refs_may_alias_p): Likewise.
25052 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
25053 for MEM_EXPR of indirect calls.
25054
9d1831bb
TG
250552011-04-21 Tristan Gingold <gingold@adacore.com>
25056
25057 * vmsdbgout.c (write_srccorr): Compute file length from the string.
25058 (dst_file_info_struct): Remove flen field.
25059 (lookup_filename): Remove code that set flen field.
25060
f199c029
TG
250612011-04-21 Tristan Gingold <gingold@adacore.com>
25062
25063 * config/ia64/ia64.c (ia64_start_function): Add a guard.
25064
2894086e
UB
250652011-04-21 Uros Bizjak <ubizjak@gmail.com>
25066
25067 PR target/48708
25068 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
25069 vec_extract and vec_concat for non-SSE4_1 targets.
25070
53f94a5c
RG
250712011-04-21 Richard Guenther <rguenther@suse.de>
25072
25073 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
25074 return statements.
25075
f0dca5ba
JM
250762011-04-21 Joseph Myers <joseph@codesourcery.com>
25077
25078 * config/i386/cygming.h (union tree_node, TREE): Don't define or
25079 undefine.
25080 (FILE): Don't undefine.
25081
984514ac
JM
250822011-04-21 Joseph Myers <joseph@codesourcery.com>
25083
25084 * config/alpha/alpha.c (struct machine_function): Use rtx, not
25085 struct rtx_def *.
25086 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
25087 struct rtx_def *.
25088 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 25089 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
25090 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
25091 rtx_def *.
25092 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
25093 definitions where used.
25094 * config/microblaze/microblaze.h (struct microblaze_args): Use
25095 rtx, not struct rtx_def *.
25096 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
25097 rtx_def *.
2894086e
UB
25098 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
25099 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
25100 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
25101 not struct rtx_def *.
25102 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
25103 struct rtx_def *.
25104 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
25105 rtx_def *.
2894086e 25106 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 25107
0b5a2724
RS
251082011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
25109
25110 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
25111 operand_equal_p to compare DR_BASE_ADDRESSes.
25112 (vect_check_interleaving): Likewise.
25113
4b18d683
RS
251142011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
25115
25116 PR target/46329
25117 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
25118 for all Neon struct constants.
25119
1a627b35
RS
251202011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
25121
25122 * target.def (legitimate_constant_p): New hook.
25123 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
25124 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
25125 * doc/tm.texi: Regenerate.
25126 * hooks.h (hook_bool_mode_rtx_true): Declare.
25127 * hooks.c (hook_bool_mode_rtx_true): Define.
25128 * system.h (LEGITIMATE_CONSTANT_P): Poison.
25129 * calls.c (precompute_register_parameters): Replace uses of
25130 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
25131 (emit_library_call_value_1): Likewise.
25132 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
25133 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
25134 * ira-costs.c (scan_one_insn): Likewise.
25135 * recog.c (general_operand, immediate_operand): Likewise.
25136 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
25137 * reload1.c (init_eliminable_invariants): Likewise.
25138
25139 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
25140 mode argument.
25141 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
25142 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
25143 argument.
25144 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25145 * config/alpha/predicates.md (input_operand): Update call to
25146 alpha_legitimate_constant_p.
25147
25148 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
25149 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
25150 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
25151 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25152 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
25153 (arm_legitimate_constant_p): New functions.
25154 (arm_cannot_force_const_mem): Make static.
25155
25156 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
25157
25158 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
25159 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
25160 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
25161 instead of bfin_legitimate_constant_p.
25162 (bfin_legitimate_constant_p): Make static. Add a mode argument.
25163 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25164
25165 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
25166
25167 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
25168
25169 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
25170 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
25171 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25172 (frv_legitimate_constant_p): Make static. Add a mode argument.
25173
25174 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
25175 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
25176 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
25177
25178 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
25179 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
25180 * config/i386/i386.c (legitimate_constant_p): Rename to...
25181 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
25182 argument.
25183 (ix86_cannot_force_const_mem): Update accordingly.
25184 (ix86_legitimate_address_p): Likewise.
25185 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25186 * config/i386/i386.md: Update commentary.
25187
25188 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
25189 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
25190 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25191 (ia64_legitimate_constant_p): Make static. Add a mode argument.
25192
25193 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
25194
25195 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
25196 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
25197 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25198 (lm32_legitimate_constant_p): Make static. Add a mode argument.
25199
25200 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
25201 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
25202 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
25203
25204 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
25205 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25206 (m32r_legitimate_constant_p): New function.
25207
25208 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
25209 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
25210 LEGITIMATE_CONSTANT_P.
25211 (LEGITIMATE_CONSTANT_P): Delete.
25212 * config/m68k/m68k.c (m68k_expand_prologue): Call
25213 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
25214 (m68k_legitimate_constant_p): New function.
25215 * config/m68k/m68k.md: Update comments.
25216
25217 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
25218 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25219 (mcore_legitimate_constant_p): New function.
25220
25221 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
25222 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
25223 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
25224 Add a mode argument.
25225 (mep_legitimate_address): Update accordingly.
25226 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25227
25228 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
25229 Delete.
25230 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
25231 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
25232 static. Check OP's mode for VOIDmode.
25233 (microblaze_legitimate_constant_p): New function.
25234 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25235
25236 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
25237 * config/mips/mips.c (mips_legitimate_constant_p): New function.
25238 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
25239 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25240 * config/mips/predicates.md: Update comments.
25241
25242 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
25243 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
25244 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25245 (mmix_legitimate_constant_p): Make static, return a bool, and take
25246 a mode argument.
25247 (mmix_print_operand_address): Update accordingly.
25248
25249 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
25250 Delete.
25251 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
25252 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
25253 static. Add a mode argument.
1a627b35
RS
25254 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25255
25256 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
25257
25258 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
25259 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25260 (pa_legitimate_constant_p): New function.
25261
25262 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
25263
25264 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
25265 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25266 (pdp11_legitimate_constant_p): New function.
25267
25268 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
25269 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25270 (rs6000_legitimate_constant_p): New function.
25271
25272 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
25273 (rx_legitimate_constant_p): ...this.
25274 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
25275 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
25276 (rx_legitimate_constant_p): ...this.
25277 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25278 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
25279
25280 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
25281 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
25282 * config/s390/s390.c (legitimate_constant_p): Rename to...
25283 (s390_legitimate_constant_p): ...this. Make static, return a bool,
25284 and add a mode argument.
25285 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25286
25287 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
25288
25289 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
25290 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25291 (sh_legitimate_constant_p): New function.
25292
25293 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
25294 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
25295 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25296 (legitimate_constant_p): Rename to...
25297 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
25298 argument.
25299 (constant_address_p): Update accordingly.
25300
25301 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
25302 argument and return a bool.
25303 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
25304 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25305 (spu_legitimate_constant_p): Add a mode argument and return a bool.
25306 (spu_rtx_costs): Update accordingly.
25307 * config/spu/predicates.md (vec_imm_operand): Likewise.
25308
25309 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
25310
25311 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
25312 * config/v850/v850.c (v850_legitimate_constant_p): New function.
25313 (TARGET_LEGITIMATE_CONSTANT_P): Define.
25314
25315 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
25316 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
25317 * config/vax/vax.c (legitimate_constant_p): Likewise.
25318
25319 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
25320 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
25321 (xtensa_legitimate_constant_p): New function.
25322
fbbf66e7
RS
253232011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
25324
25325 * target.def (cannot_force_const_mem): Add a mode argument.
25326 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
25327 * doc/tm.texi: Regenerate.
25328 * hooks.h (hook_bool_mode_rtx_false): Declare.
25329 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
25330 (hook_bool_mode_const_rtx_true): Likewise.
25331 (hook_bool_mode_rtx_false): New function.
25332 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
25333 to be non-VOID. Update call to cannot_force_const_mem.
25334 (find_reloads): Update accordingly.
25335 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
25336 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
25337 argument.
25338 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
25339 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
25340 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
25341 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
25342 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
25343 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
25344 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
25345 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25346 (m68k_cannot_force_const_mem): ...this new function.
25347 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
25348 argument.
25349 (mips_const_insns, mips_legitimize_const_move): Update calls.
25350 (mips_secondary_reload_class): Likewise.
25351 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
25352 (pa_cannot_force_const_mem): ...this new function.
2894086e 25353 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
25354 (rs6000_cannot_force_const_mem): ...this new function.
25355 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
25356 argument.
25357 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
25358 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
25359 to...
25360 (xtensa_cannot_force_const_mem): ...this new function.
25361
b861891b
NF
253622011-04-20 Nathan Froyd <froydnj@codesourcery.com>
25363
25364 * config/mips/mips.c (mips16_build_function_stub): Call
25365 build_function_type_list instead of build_function_type.
25366 (mips16_build_call_stub): Likewise.
25367
34149ed5
NF
253682011-04-20 Nathan Froyd <froydnj@codesourcery.com>
25369
25370 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
25371 instead of build_function_type.
25372
12526412
NF
253732011-04-20 Nathan Froyd <froydnj@codesourcery.com>
25374
25375 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
25376 instead of build_function_type.
25377
3b84d61f
UB
253782011-04-20 Uros Bizjak <ubizjak@gmail.com>
25379
25380 PR target/48678
25381 * config/i386/i386.md (insv): Change operand 0 constraint to
25382 "register_operand". Change operand 1 and 2 constraint to
25383 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
25384 * config/i386/sse.md (sse4_1_pinsrb): Export.
25385 (sse2_pinsrw): Ditto.
25386 (sse4_1_pinsrd): Ditto.
25387 (sse4_1_pinsrq): Ditto.
25388 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
25389 * config/i386/i386.c (ix86_expand_pinsr): New.
25390
4a25752b
ER
253912011-04-20 Easwaran Raman <eraman@google.com>
25392
25393 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
25394 containing union type only with -fstrict-aliasing.
25395
04695783
JM
253962011-04-20 Jim Meyering <meyering@redhat.com>
25397
25398 Remove useless if-before-free tests.
25399 * calls.c (expand_call, save_area): Likewise.
25400 * cfgcleanup.c (try_forward_edges): Likewise.
25401 * collect2.c (collect_execute): Likewise.
25402 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
25403 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
25404 * coverage.c (coverage_checksum_string): Likewise.
25405 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
25406 * cselib.c (cselib_init): Likewise.
25407 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
25408 (df_set_clean_cfg): Likewise.
25409 * function.c (free_after_compilation): Likewise.
25410 * gcc.c (do_spec_1, main): Likewise.
25411 * gcov.c (create_file_names): Likewise.
25412 * gensupport.c (identify_predicable_attribute): Likewise.
25413 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
25414 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
25415 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
25416 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
25417 * ipa-pure-const.c (local_pure_const): Likewise.
25418 * ipa-reference.c (propagate): Likewise.
25419 * ira-costs.c (free_ira_costs): Likewise.
25420 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
25421 * matrix-reorg.c (mat_free): Likewise.
25422 * prefix.c (get_key_value): Likewise.
25423 * profile.c (compute_value_histograms): Likewise.
25424 * reload1.c (free_reg_equiv): Likewise.
25425 * sched-deps.c (free_deps): Likewise.
25426 * sel-sched-ir.c (fence_clear): Likewise.
25427 * sese.c (set_rename, if_region_set_false_region): Likewise.
25428 * tree-data-ref.c (free_rdg): Likewise.
25429 * tree-eh.c (lower_try_finally): Likewise.
25430 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
25431 * tree-ssa-live.c (delete_var_map): Likewise.
25432 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
25433 * tree-ssa-pre.c (phi_trans_add): Likewise.
25434
6788475a
JJ
254352011-04-20 Jakub Jelinek <jakub@redhat.com>
25436
25437 PR tree-optimization/48611
25438 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
25439 beyond ERT_MUST_NOT_THROW region.
25440
0eda4033
CM
254412011-04-20 Catherine Moore <clm@codesourcery.com>
25442
25443 * config/mips/mips.opt (mfix-24k): New.
25444 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
25445 * config/mips/mips.md (length): Increase by 4 for stores if
25446 fixing 24K errata.
25447 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
25448 all noreorder if fixing 24K errata.
25449 * doc/invoke.texi: Document mfix-24k.
25450
01475747
CLT
254512011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
25452
25453 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 25454 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 25455
bc2c1a60
AS
254562011-04-20 Andrew Stubbs <ams@codesourcery.com>
25457
25458 * config/arm/arm.c (arm_gen_constant): Move movw support ....
25459 (const_ok_for_op): ... to here.
25460
583722ee
KT
254612011-04-20 Kai Tietz <ktietz@redhat.com>
25462
2894086e
UB
25463 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
25464 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 25465
422c0989
AS
254662011-04-20 Andrew Stubbs <ams@codesourcery.com>
25467
25468 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
25469
d7978bff
RG
254702011-04-20 Richard Guenther <rguenther@suse.de>
25471
25472 PR tree-optimization/47892
25473 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
25474 are if-convertible.
25475
818412ba
EB
254762011-04-20 Eric Botcazou <ebotcazou@adacore.com>
25477
25478 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
25479
b501ce4e
TG
254802011-04-20 Tristan Gingold <gingold@adacore.com>
25481
25482 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
25483
516edfdd
GJL
254842011-04-20 Georg-Johann Lay <avr@gjlay.de>
25485
25486 PR target/18145
25487
25488 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
25489 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
25490 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25491 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
25492 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
25493
25494 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
25495 New prototype.
25496
25497 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
25498 (avr_asm_named_section, avr_asm_output_aligned_common,
25499 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
25500 New functions to update...
25501 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
25502 (avr_asm_init_sections): Overwrite section callbacks for
25503 data_section, bss_section.
25504 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
25505 from here to...
25506 (avr_file_end): ...here.
25507
dafc9511
RG
255082011-04-20 Richard Guenther <rguenther@suse.de>
25509
25510 PR middle-end/48695
25511 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 25512 objects and types here. Adjust for their offset before comparing.
dafc9511 25513
1da0876c
RS
255142011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
25515
25516 * tree-vect-stmts.c (vectorizable_store): Only chain one related
25517 statement per copy.
25518
25583c4f
RS
255192011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
25520
25521 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
25522 (GIMPLE_H): Include $(INTERNAL_FN_H).
25523 (OBJS-common): Add internal-fn.o.
25524 (internal-fn.o): New rule.
25525 * internal-fn.def: New file.
25526 * internal-fn.h: Likewise.
25527 * internal-fn.c: Likewise.
25528 * gimple.h: Include internal-fn.h.
25529 (GF_CALL_INTERNAL): New gf_mask.
25530 (gimple_statement_call): Put fntype into a union with a new
25531 internal_fn field.
25532 (gimple_build_call_internal): Declare.
25533 (gimple_build_call_internal_vec): Likewise.
25534 (gimple_call_same_target_p): Likewise.
25535 (gimple_call_internal_p): New function.
25536 (gimple_call_internal_fn): Likewise.
25537 (gimple_call_fntype): Return null for internal calls.
25538 (gimple_call_set_fntype): Assert that the function is not internal.
25539 (gimple_call_set_fn): Likewise.
25540 (gimple_call_set_fndecl): Likewise.
25541 (gimple_call_set_internal_fn): New function.
25542 (gimple_call_addr_fndecl): Handle null functions.
25543 (gimple_call_return_type): Likewise null types.
25544 * gimple.c (gimple_build_call_internal_1): New function.
25545 (gimple_build_call_internal): Likewise.
25546 (gimple_build_call_internal_vec): Likewise.
25547 (gimple_call_same_target_p): Likewise.
25548 (gimple_call_flags): Handle calls to internal functions.
25549 (gimple_call_fnspec): New function.
25550 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
25551 (gimple_has_side_effects): Handle null functions.
25552 (gimple_rhs_has_side_effects): Likewise.
25553 (gimple_call_copy_skip_args): Handle calls to internal functions.
25554 * cfgexpand.c (expand_call_stmt): Likewise.
25555 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
25556 * gimple-fold.c (gimple_fold_call): Handle null functions.
25557 (gimple_fold_stmt_to_constant_1): Don't fold
25558 calls to internal functions.
25559 * gimple-low.c (gimple_check_call_args): Handle calls to internal
25560 functions.
25561 * gimple-pretty-print.c (dump_gimple_call): Likewise.
25562 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
25563 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
25564 (do_warn_unused_result): Likewise.
25565 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
25566 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
25567 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
25568 the target of a call.
25569 (initialize_hash_element): Update accordingly.
25570 (hashable_expr_equal_p): Use gimple_call_same_target_p.
25571 (iterative_hash_hashable_expr): Handle calls to internal functions.
25572 (print_expr_hash_elt): Likewise.
25573 * tree-ssa-pre.c (can_value_number_call): Likewise.
25574 (eliminate): Handle null functions.
25575 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
25576 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
25577 (find_func_aliases): Likewise.
25578 * value-prof.c (gimple_ic_transform): Likewise.
25579 (gimple_indirect_call_to_profile): Likewise.
25580 * lto-streamer-in.c (input_gimple_stmt): Likewise.
25581 * lto-streamer-out.c (output_gimple_stmt): Likewise.
25582
1a3118e9
JH
255832011-04-19 Jan Hubicka <jh@suse.cz>
25584
25585 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
25586 * ipa-inline.c (inline_small_functions): Compute summaries first,
25587 populate heap later.
1a3118e9 25588
fee8b6da
JH
255892011-04-19 Jan Hubicka <jh@suse.cz>
25590
25591 * cgraph.h (save_inline_function_body): Remove.
25592 * ipa-inline-transform.c: New file, broke out of...
25593 * ipa-inline.c: ... this one; Update toplevel comment.
25594 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
25595 make global.
25596 (update_noncloned_frequencies): Move to ipa-inline-transform.c
25597 (cgraph_mark_inline_edge): Rename to inline_call; move to
25598 ipa-inline-transform.c.
25599 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
25600 move to ipa-inline-transform.c
25601 (recursive_inlining, inline_small_functions, flatten_function,
25602 ipa_inline, inline_always_inline_functions,
25603 early_inline_small_functions): Update.
25604 (inline_transform): Move to ipa-inline-transform.c.
25605 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
25606 Declare.
25607 * Makefile.in (ipa-inline-transform.o): New file.
25608 * cgraphunit.c (save_inline_function_body): Move to
25609 ipa-inline-transform.c
25610
f0679612
DD
256112011-04-19 DJ Delorie <dj@redhat.com>
25612
25613 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
25614 registers if we already know there aren't any.
25615 (m32c_emit_epilogue): Don't emit a barrier here.
25616 (m32c_emit_eh_epilogue): Likewise.
25617 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
25618 operands at expand time.
25619 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
25620 int" wchar type.
25621 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
25622 duplicates. Provide aliases instead.
25623 * config/m32c/prologue.md (eh_return): Emit a barrier here.
25624 (eh_epilogue): Add a "(return)" here as a hint to other parts of
25625 the compiler.
25626
32257ddc
AS
256272011-04-19 Anatoly Sokolov <aesok@post.ru>
25628
25629 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
25630 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
25631 (general_or_i64_p, sparc_register_move_cost): New function.
25632
60bea929
RO
256332011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25634
25635 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 25636 Add lynx, mipssde. Sort table.
60bea929 25637
444b3995 256382011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 25639
9d12f71a
EB
25640 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
25641 not negative.
444b3995 25642
d708ce50
JJ
256432011-04-19 Jakub Jelinek <jakub@redhat.com>
25644
25645 PR target/48678
25646 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
25647 is a SUBREG with non-MODE_INT mode inside of it.
25648
49c471e3
MJ
256492011-04-19 Martin Jambor <mjambor@suse.cz>
25650
25651 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
25652 also according to actual contants.
25653 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
25654 (gimple_fold_call): Use it.
25655 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
25656
0004f992
MJ
256572011-04-19 Martin Jambor <mjambor@suse.cz>
25658
25659 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
25660 non-pointer assignments.
25661
40591473
MJ
256622011-04-19 Martin Jambor <mjambor@suse.cz>
25663
25664 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
25665 account anc_offset and otr_type from the indirect edge info.
25666 * ipa-prop.c (get_ancestor_addr_info): New function.
25667 (compute_complex_ancestor_jump_func): Assignment analysis moved to
25668 get_ancestor_addr_info, call it.
25669 (ipa_note_param_call): Do not initialize information about polymorphic
25670 calls, return the indirect call graph edge. Remove the last
25671 parameter, adjust all callers.
25672 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
25673 parameters. Initialize polymorphic information in the indirect edge.
25674
abe36b81
EB
256752011-04-19 Eric Botcazou <ebotcazou@adacore.com>
25676
25677 PR lto/48148
25678 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
25679 the types if they have different enumeration identifiers.
25680
e6416b30
JH
256812011-04-19 Jan Hubicka <jh@suse.cz>
25682
25683 * cgraph.h (cgraph_optimize_for_size_p): Declare.
25684 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
25685 * predict.c (cgraph_optimize_for_size_p): Break out from ...
25686 (optimize_function_for_size_p) ... here.
25687
d39132ea
RG
256882011-04-19 Richard Guenther <rguenther@suse.de>
25689
25690 PR lto/48207
25691 * tree.c (free_lang_data): Do not reset the decl-assembler-name
25692 langhook.
25693
ff7037dc
EB
256942011-04-19 Eric Botcazou <ebotcazou@adacore.com>
25695
25696 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
25697 if DECL_NO_INLINE_WARNING_P is set on the function.
25698
c1ee2892
BS
256992011-04-19 Bernd Schmidt <bernds@codesourcery.com>
25700
25701 PR fortran/47976
25702 * reload1.c (inc_for_reload): Return void. All callers changed.
25703 (emit_input_reload_insns): Don't try to delete previous output
25704 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
25705
257062011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
25707
25708 * gengtype.h: Updated copyright year.
25709 (struct input_file_st): Add inpisplugin field.
25710 (type_fileloc): New function.
25711 * gengtype.c
25712 (write_typed_struct_alloc_def): Add gcc_assert.
25713 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
25714 (write_typed_alloc_defns): Don't output for plugin files.
25715 (input_file_by_name): Clear inpisplugin field.
25716 (main): Set inpisplugin field for plugin files.
25717
897e0a89
NP
257182011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
25719
25720 * gengtype-state.c (string_eq): New.
25721 (read_state): Use string_eq instead of strcmp when creating the
25722 state_ident_tab.
25723
363ee90e
WG
257242011-04-19 Wei Guozhi <carrot@google.com>
25725
25726 PR target/47855
25727 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
25728 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
25729 linkage.
25730 * config/arm/constraints.md (Uu): New constraint.
25731 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
25732
18a24fed
TG
257332011-04-19 Tristan Gingold <gingold@adacore.com>
25734
25735 * config.gcc (-*-*-*vms): Added.
25736 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
25737 definitions moved.
25738 * config/vms/vms-ld.c: New file.
25739 * config/vms/vms-ar.c: New file.
25740 * config/vms/t-vmsnative: New file.
25741
1c13f168
XDL
257422011-04-18 Xinliang David Li <davidxl@google.com>
25743
25744 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
25745
84825707
JJ
257462011-04-18 Jakub Jelinek <jakub@redhat.com>
25747
25748 PR middle-end/48661
25749 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
25750 if TREE_TYPE (v) is non-NULL.
25751
25752 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
25753 gimple_get_virt_mehtod_for_binfo.
25754 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
25755 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
25756 callers.
25757 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25758
7d4f8d02 257592011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
25760 Steve Ellcey <sje@cup.hp.com>
25761
7d4f8d02
EB
25762 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
25763 use its mode as source mode if it isn't VOIDmode.
7254cb57 25764
474e8e70
DCR
257652011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
25766
25767 * doc/passes.texi: Fill crossref nodes.
25768
cff41484
JM
257692011-04-18 Jim Meyering <meyering@redhat.com>
25770
7d4f8d02 25771 Fix doubled-word typos in comments and strings
cff41484
JM
25772 * config/alpha/vms-unwind.h: s/for for/for/
25773 * config/arm/unwind-arm.h: Likewise.
25774 * config/microblaze/microblaze.c: Likewise.
25775 * config/sh/constraints.md: s/in in/in/
25776 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
25777
f60c2554
UB
257782011-04-18 Uros Bizjak <ubizjak@gmail.com>
25779
25780 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
25781 (AVX_FLOAT_MODE_P): Ditto.
25782 (AVX128_VEC_FLOAT_MODE_P): Ditto.
25783 (AVX256_VEC_FLOAT_MODE_P): Ditto.
25784 (AVX_VEC_FLOAT_MODE_P): Ditto.
25785 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
25786 (UNSPEC_MASKSTORE): Ditto.
25787 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
25788 Merge from <sse>_movmsk<ssemodesuffix> and
25789 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
25790 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
25791 iterator.
25792 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
25793 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
25794 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
25795
09a2806f
JH
257962011-04-18 Jan Hubicka <jh@suse.cz>
25797
8a8dccb2
JH
25798 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
25799
09a2806f
JH
25800 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
25801 (want_inline_function_called_once_p): Break out the logic from
25802 ipa_inline.
25803 (edge_badness): Ensure that profile is not misupdated.
25804 (lookup_recursive_calls): Prioritize by call frequencies.
25805 (inline_small_functions): Move program size estimates here;
25806 actually process whole queue even when unit growth has been
25807 met. (to properly compute inline_failed reasons and for the
f60c2554 25808 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
25809 (ipa_inline): Remove unit summary code; first inline hot calls
25810 of functions called once, cold calls next.
25811 (order, nnodes): Remove unused variables.
25812 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
25813 (GTFILES): Remove ipa-inline.c
25814 * sel-sched.c (fill_insns): Silence uninitialized var warning.
25815
3eea52ef
EB
258162011-04-18 Eric Botcazou <ebotcazou@adacore.com>
25817
25818 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
25819
229a1c59 258202011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 25821 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
25822
25823 * arm.c (neon_builtin_type_bits): Remove.
25824 (typedef enum neon_builtin_mode): New.
25825 (T_MAX): Don't define.
25826 (typedef enum neon_builtin_datum): Remove bits, codes[],
25827 num_vars and base_fcode. Add mode, code and fcode.
25828 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
25829 VAR10): Change accordingly.
25830 (neon_builtin_data[]): Change accordingly
25831 (arm_init_neon_builtins): Change accordingly.
25832 (neon_builtin_compare): Remove.
25833 (locate_neon_builtin_icode): Remove.
25834 (arm_expand_neon_builtin): Change accordingly.
25835
25836 * arm.h (enum arm_builtins): Move to ...
25837 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
25838
25839 * arm.c (arm_builtin_decl): Declare.
25840 (TARGET_BUILTIN_DECL): Define.
25841 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
25842 (arm_builtin_decls[]): New.
25843 (arm_init_neon_builtins): Store builtin declarations in
25844 arm_builtin_decls[].
25845 (arm_init_tls_builtins): Likewise.
25846 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
25847 (arm_builtin_decl): New.
25848
75e802cc
RG
258492011-04-18 Richard Guenther <rguenther@suse.de>
25850
25851 * tree.c (upper_bound_in_type): Build properly canonicalized
25852 INTEGER_CSTs.
25853 (lower_bound_in_type): Likewise.
25854
3b45a007
RG
258552011-04-18 Richard Guenther <rguenther@suse.de>
25856
25857 * gimple.h (gimple_call_addr_fndecl): New function.
25858 (gimple_call_fndecl): Use it.
25859 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
25860 for direct calls.
25861 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
25862 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
25863
d25a79ea
RG
258642011-04-18 Richard Guenther <rguenther@suse.de>
25865
25866 PR middle-end/48650
25867 * tree.c (build_string): STRING_CST is now derived from tree_typed.
25868
7d5fc814
EB
258692011-04-18 Eric Botcazou <ebotcazou@adacore.com>
25870
25871 PR lto/48492
25872 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
25873 DECL_IN_CONSTANT_POOL without RTL.
25874
7e7cfcf6
UW
258752011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
25876 Ira Rosen <ira.rosen@linaro.org>
25877
25878 PR target/48252
25879 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
25880 to match neon_vzip/vuzp/vtrn_internal.
25881 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
25882 outputs explicitly dependent on both inputs.
25883 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
25884
49eab32e
JJ
258852011-04-18 Jakub Jelinek <jakub@redhat.com>
25886
25887 PR tree-optimization/48616
25888 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
25889 whether the shift is by scalar or vector based on whether all SLP
25890 scalar stmts have the same rhs.
25891
e54170f4
CLT
258922011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
25893
25894 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
25895 memory operands.
25896
b14ee6c9
RS
258972011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25898
269e0e18 25899 PR target/43700
b14ee6c9
RS
25900 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
25901 registers.
25902
10158cd3
JH
259032011-04-17 Jan Hubicka <jh@suse.cz>
25904
25905 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
25906 * cgrpahunit.c (cgraph_finalize_function): Do not set
25907 finalized_by_frontend.
10158cd3
JH
25908 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
25909 finalized_by_frontend.
25910
2e9bb6ba
JH
259112011-04-17 Jan Hubicka <jh@suse.cz>
25912
25913 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
25914 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
25915 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
25916 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
25917 method.
2e9bb6ba
JH
25918 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
25919 gimple-fold.c
25920 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
25921
beb628e1
EB
259222011-04-17 Eric Botcazou <ebotcazou@adacore.com>
25923
25924 PR lto/48538
25925 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
25926 is non-null before accessing it.
25927 (input_cgraph): Remove trailing spaces.
25928
3e2fdd24
RE
259292011-04-17 Revital Eres <revital.eres@linaro.org>
25930
25931 * params.def (sms-min-sc): New param flag.
25932 * modulo-sched.c (sms_schedule): Use it.
25933 * doc/invoke.texi (sms-min-sc): Document it.
25934
4c0f7679
JH
259352011-04-17 Jan Hubicka <jh@suse.cz>
25936
25937 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
25938 present, also set gimple_call_set_cannot_inline.
25939 * ipa-inline.c: Update toplevel comment.
25940 (MAX_TIME): Remove.
25941 (cgraph_clone_inlined_nodes): Fix linebreaks.
25942 (cgraph_check_inline_limits): Restructure to ...
25943 (caller_growth_limits): ... this one; be more tolerant
25944 on growth in nested inline chains; add explanatory comment;
25945 fix stack accounting thinko introduced by previous patch.
25946 (cgraph_default_inline_p): Remove.
25947 (report_inline_failed_reason): New function.
25948 (can_inline_edge_p): New function.
25949 (can_early_inline_edge_p): New function.
25950 (leaf_node_p): Move upwards in file.
25951 (want_early_inline_function_p): New function.
25952 (want_inline_small_function_p): New function.
25953 (want_inline_self_recursive_call_p): New function.
25954 (cgraph_edge_badness): Rename to ...
25955 (edge_badness) ... this one; fix linebreaks.
25956 (update_edge_key): Update call of edge_baddness; add
25957 detailed dump about queue updates.
25958 (update_caller_keys): Use can_inline_edge_p and
25959 want_inline_small_function_p.
25960 (cgraph_decide_recursive_inlining): Rename to...
25961 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
25962 want_inline_self_recursive_call_p; simplify and remove no longer
25963 valid FIXME.
4c0f7679
JH
25964 (cgraph_set_inline_failed): Remove.
25965 (add_new_edges_to_heap): Use can_inline_edge_p and
25966 want_inline_small_function_p.
25967 (cgraph_decide_inlining_of_small_functions): Rename to ...
25968 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
25969 can/want predicates; cleanup debug ouput; work edges till fibheap
25970 is exhausted and do not stop once unit growth is reached; remove
25971 later loop processing remaining edges.
4c0f7679
JH
25972 (cgraph_flatten): Rename to ...
25973 (flatten_function): ... this one; use can_inline_edge_p
25974 and can_early_inline_edge_p predicates.
25975 (cgraph_decide_inlining): Rename to ...
25976 (ipa_inline): ... this one; remove unreachable nodes before
25977 inlining functions called once; simplify the pass.
25978 (cgraph_perform_always_inlining): Rename to ...
25979 (inline_always_inline_functions): ... this one; use
f60c2554 25980 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
25981 (cgraph_decide_inlining_incrementally): Rename to ...
25982 (early_inline_small_functions): ... this one; simplify
25983 using new predicates; cleanup; make dumps prettier.
25984 (cgraph_early_inlining): Rename to ...
25985 (early_inliner): newer inline regular functions into always-inlines;
25986 fix updating of call stmt summaries.
25987 (pass_early_inline): Update for new names.
25988 (inline_transform): Fix formating.
25989 (gate_cgraph_decide_inlining): Rename to ...
25990 (pass_ipa_inline): ... this one.
25991 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
25992 * ipa-inline-analysis.c (dump_inline_summary): Update.
25993 (compute_inline_parameters): Do not compute disregard_inline_limits;
25994 look for mismatching arguments.
25995 (estimate_growth): Fix handlig of non-trivial self recursion.
25996 (inline_read_summary): Do not read info->disregard_inline_limits.
25997 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
25998 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
25999 and move all checks into can_inline_edge_p predicate; re-enable code
26000 comparing optimization levels.
4c0f7679
JH
26001 (expand_call_inline): Do not test inline_forbidden_into_p.
26002 * Makefile.in (ipa-inline.o): Update arguments.
26003
54333b7c
RE
260042011-04-17 Revital Eres <revital.eres@linaro.org>
26005
26006 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
26007
42c2bf92
RE
260082011-04-17 Revital Eres <revital.eres@linaro.org>
26009
26010 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
26011
b183e9e0
MM
260122011-04-17 Michael Matz <matz@suse.de>
26013
26014 PR tree-optimization/48622
26015 PR lto/48645
26016 * ipa-inline-analysis.c (inline_read_summary): Read size/time
26017 in same order as they're written.
26018
b8a17fa2
JDA
260192011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26020
26021 * config/pa/predicates.md: Reorganize and simplify predicates.
26022 Eliminate duplicate code checks.
26023 (arith_operand): Rename to arith14_operand
26024 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
26025 * config/pa/pa.md: Use renamed operands.
26026 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
26027 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
26028 arith11_operand, adddi3_operand, indexed_memory_operand,
26029 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
26030 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
26031 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
26032 move_dest_operand, move_src_operand, prefetch_cc_operand,
26033 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
26034 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
26035 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
26036 div_operand, int5_operand, movb_comparison_operator,
26037 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
26038 arith_double_operand, ireg_operand, lhs_lshift_operand,
26039 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
26040 integer_store_memory_operand): Likewise.
26041 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
26042 (integer_store_memory_operand, read_only_operand,
26043 function_label_operand, borx_reg_operand,
26044 non_hard_reg_operand): Likewise.
26045 (eq_neq_comparison_operator): Delete unused operator.
26046 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
26047 function_label_operand.
26048 (emit_move_sequence): Likewise.
26049
8dfb9f16
UB
260502011-04-16 Uros Bizjak <ubizjak@gmail.com>
26051
26052 * config/i386/sse.md (sseunpackmode): New mode attribute.
26053 (ssepackmode): Ditto.
26054 (vec_pack_trunc_<mode>): Macroize expander from
26055 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
26056 (vec_unpacks_lo_<mode>): Macroize expander from
26057 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26058 (vec_unpacks_hi_<mode>): Macroize expander from
26059 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26060 (vec_unpacku_lo_<mode>): Macroize expander from
26061 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26062 (vec_unpacku_hi_<mode>): Macroize expander from
26063 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
26064 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
26065 ix86_expand_sse4_unpack.
26066 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
26067
e7f23018
JH
260682011-04-16 Jan Hubicka <jh@suse.cz>
26069
26070 * cgraphbuild.c: Include ipa-inline.h.
26071 (reset_inline_failed): Use initialize_inline_failed.
26072 * cgraph.c: Include ipa-inline.h.
26073 (cgraph_create_node_1): Do not initialize estimated_growth.
26074 (initialize_inline_failed): More to ipa-inline-analysis.c
26075 (dump_cgraph_node): Do not dump inline flags.
26076 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
26077 and disregard_inline_limits flags.
26078 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
26079 time, size, estimated_growth.
8dfb9f16
UB
26080 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
26081 Update.
e7f23018
JH
26082 * cgraphunit.c (cgraph_decide_is_function_needed): Use
26083 DECL_DISREGARD_INLINE_LIMITS.
26084 (cgraph_analyze_function): Do not initialize
26085 node->local.disregard_inline_limits.
26086 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
26087 inlinable, versionable and disregard_inline_limits.
26088 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
26089 cgraph_check_inline_limits, cgraph_default_inline_p,
26090 cgraph_edge_badness, update_caller_keys, update_callee_keys,
26091 add_new_edges_to_heap): Update.
26092 (cgraph_decide_inlining_of_small_function): Update; set
26093 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
26094 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
26095 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
26096 * ipa-inline.h (inline_summary): Add inlinable, versionable,
26097 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
26098 time, size and estimated_growth parameters.
e7f23018
JH
26099 (estimate_edge_growth): Update.
26100 (initialize_inline_failed): Declare.
26101 * ipa-split.c: Include ipa-inline.h
26102 (execute_split_functions): Update.
26103 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
26104 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
26105 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
26106 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
26107 estimated_growth to INT_MIN.
26108 (inline_node_duplication_hook): Likewise.
26109 (dump_inline_summary): Dump new fields.
26110 (compute_inline_parameters): Update.
26111 (estimate_edge_time, estimate_time_after_inlining,
26112 estimate_size_after_inlining, estimate_growth, inline_read_summary,
26113 inline_write_summary):
26114 (initialize_inline_failed): Move here from cgraph.c.
26115 * tree-sra.c: Include ipa-inline.h.
26116 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
26117 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
26118 ipa-inline.h.
e7f23018 26119
e81b8564
UB
261202011-04-16 Uros Bizjak <ubizjak@gmail.com>
26121
26122 * config/i386/sse.md (V16): New mode iterator.
26123 (VI1, VI8): Ditto.
26124 (AVXMODEQI, AVXMODEDI): Remove.
26125 (sse2, sse3): New mode attribute.
26126 (mov<mode>): Use V16 mode iterator.
26127 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
26128 (push<mode>1): Use V16 mode iterator.
26129 (movmisalign<mode>): Ditto.
26130 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26131 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
26132 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
26133 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
26134 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
26135 avx_movdqu<avxmodesuffix>.
26136 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
26137 *avx_movdqu<avxmodesuffix>.
26138 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
26139 avx_lddqu<avxmodesuffix>.
26140 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
26141 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
26142 avx_movnt<AVXMODEDI:mode>.
26143 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
26144 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
26145
4743d438
BS
261462011-04-16 Bernd Schmidt <bernds@codesourcery.com>
26147
26148 PR target/48629
26149 * haifa-sched.c (prune_ready_list, schedule_block): Use
26150 sched_pressure_p rather than flag_sched_pressure.
26151
748f7574 261522011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
26153
26154 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26155 cgraph_get_node instead of cgraph_get_create_node.
26156
2ba172e0
JJ
261572011-04-15 Jakub Jelinek <jakub@redhat.com>
26158
26159 * cfgexpand.c (expand_debug_expr): Use
26160 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
26161
63d2a353
MM
261622011-04-15 Michael Matz <matz@suse.de>
26163
26164 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
26165 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
26166 * function.c (gimplify_parameters): Ditto.
26167 * gimplify.c (gimplify_vla_decl): Ditto.
26168
26169 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
26170 (gimple_call_set_alloca_for_var): New inline function.
26171 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
26172 * gimple.c (gimple_build_call_from_tree): Remember
26173 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
26174 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
26175
26176 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
26177 calls if they were for VLA objects.
26178
dee74c34
MJ
261792011-04-15 Martin Jambor <mjambor@suse.cz>
26180
26181 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
26182 of ADR_EXPRs.
26183
8e5837bc
MJ
261842011-04-15 Martin Jambor <mjambor@suse.cz>
26185
26186 PR middle-end/48601
26187 * tree-emutls.c (lower_emutls_function_body): Call
26188 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
26189 result is non-NULL.
26190
0dc33c3c
NP
261912011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
26192
26193 * c-decl.c (detect_field_duplicates): Call
26194 objc_detect_field_duplicates instead of objc_get_interface_ivars.
26195
edcdea5b
NF
261962011-04-15 Nathan Froyd <froydnj@codesourcery.com>
26197
26198 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
26199 * gimple.c (gimple_asm_clobbers_memory_p): Define.
26200 * ipa-pure-const.c (check_stmt): Call it.
26201 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
26202
8456558d
RG
262032011-04-15 Richard Guenther <rguenther@suse.de>
26204
26205 PR tree-optimization/48290
26206 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
26207 Properly decide inhibiting propagation based on the valueized
26208 operand. Do loop-closed SSA form preserving here ...
26209 (init_copy_prop): ... not here.
26210
266446be
L
262112011-04-15 H.J. Lu <hongjiu.lu@intel.com>
26212
26213 PR target/48612
26214 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
26215 (*ieee_smax<mode>3): Likewise.
26216
17465c6e
AK
262172011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26218
26219 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
26220 Replace match_operand with match_dup for the third operand in
26221 these expanders.
26222
bce204e5
MK
262232011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
26224
26225 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
26226 to track processing of conditionals. Update all callers.
26227 (try_combine, simplify_if_then_else): Update.
26228
3162fdf4
MK
262292011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
26230
26231 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
26232 -fsched-pressure.
26233
79002a57 262342011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 26235
79002a57
GJL
26236 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
26237 instead of match_operand for operand 3.
26238
4fd3a105
RS
262392011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
26240
26241 * recog.h (insn_operand_data): Add an "allows_mem" field.
26242 * genoutput.c (output_operand_data): Initialize it.
26243 * optabs.c (maybe_legitimize_operand_same_code): New function.
26244 (maybe_legitimize_operand): Use it when matching the original
26245 op->value.
26246
ad19c4be
EB
262472011-04-15 Eric Botcazou <ebotcazou@adacore.com>
26248
26249 * gimplify.c: Fix issues in comments throughout.
26250 (voidify_wrapper_expr): Fix long line.
26251 (build_stack_save_restore): Likewise.
26252 (gimplify_loop_expr): Likewise.
26253 (gimplify_compound_lval): Likewise.
26254 (gimplify_init_ctor_eval): Likewise.
26255 (gimplify_modify_expr_rhs): Likewise.
26256 (omp_notice_threadprivate_variable): Likewise.
26257
b25aa0e8 262582011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 26259
b25aa0e8
EB
26260 * cfgexpand.c (expand_call_stmt): Convert the function type to the
26261 original one if this is not a builtin function.
e7925582 26262
09db7afe
JJ
262632011-04-14 Jakub Jelinek <jakub@redhat.com>
26264
26265 PR target/48605
26266 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
26267 offset it as needed based on top 2 bits in operands[3], change
26268 MEM mode to SFmode and mask those 2 bits away from operands[3].
26269
c59633d9
NP
262702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
26271
26272 * c-parser.c (c_parser_objc_protocol_definition): Updated for
26273 change from objc_declare_protocols() to objc_declare_protocol().
26274
5e60198b
UB
262752011-04-14 Uros Bizjak <ubizjak@gmail.com>
26276
26277 * config/i386/sse.md (sse4_1): New mode attribute.
26278 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
26279 avx_blend<ssemodesuffix><avxmodesuffix> and
26280 sse4_1_blend<ssemodesuffix> using VF mode iterator.
26281 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
26282 avx_blendv<ssemodesuffix><avxmodesuffix> and
26283 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
26284 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
26285 avx_dp<ssemodesuffix><avxmodesuffix> and
26286 sse4_1_dp<ssemodesuffix> using VF mode iterator.
26287 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
26288 (sse4_1_packusdw): Merge with *avx_packusdw.
26289 (sse4_1_pblendvb): Merge with *avx_pblendvb.
26290 (sse4_1_pblendw): Merge with *avx_pblendw.
26291 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
26292 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
26293 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
26294 VF mode iterator.
26295 (sse4_1_round<ssescalarmodesuffix>): Merge with
26296 *avx_round<ssescalarmodesuffix>.
26297 (aesenc): Merge with *avx_aesenc.
26298 (aesenclast): Merge with *avx_aesenclast.
26299 (aesdec): Merge with *avx_aesdec.
26300 (aesdeclast): Merge with *avx_aesdeclast.
26301 (pclmulqdq): Merge with *pclmulqdq.
26302 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
26303 New predicate.
26304 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
26305
6f197850
L
263062011-04-14 H.J. Lu <hongjiu.lu@intel.com>
26307
26308 PR middle-end/48608
26309 * cfgexpand.c (get_decl_align_unit): Renamed to ...
26310 (align_local_variable): This. Update DECL_ALIGN.
26311 (add_stack_var): Updated.
26312 (expand_one_stack_var): Likewise.
26313
4a5ba3ed
RG
263142011-04-14 Richard Guenther <rguenther@suse.de>
26315
26316 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
26317 Remove.
26318 (dse_initialize_block_local_data, dse_leave_block,
26319 record_voperand_set, get_stmt_uid): Likewise.
26320 (dse_possible_dead_store_p): Allow any kind of killing stmt.
26321 (dse_optimize_stmt): Remove voperand set handling code.
26322 Simplify and improve to handle any kind of killing stmt.
26323 (dse_record_phi): Remove.
26324 (dse_enter_block): Simplify.
26325 (tree_ssa_dse): Likewise.
26326 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
26327
10a5dd5d
JH
263282011-04-14 Jan Hubicka <jh@suse.cz>
26329
26330 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
26331 * cgraph.h (struct inline_summary): Move to ipa-inline.h
26332 (cgraph_local_info): Remove inline_summary.
26333 * ipa-cp.c: Include ipa-inline.h.
26334 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
26335 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
26336 accesor.
26337 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
26338 (input_overwrite_node): Do not set inline summary.
26339 (input_node): Do not stream inline summary.
26340 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
26341 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
26342 growth; we do not have inline parameters computed for that anyway.
26343 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
26344 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
26345 (inline_summary_t): New type and VECtor.
26346 (debug_inline_summary, dump_inline_summaries): Declare.
26347 (inline_summary): Use VOCtor.
26348 (estimate_edge_growth): Kill hack computing call stmt size directly.
26349 * lto-section-in.c (lto_section_name): Add inline section.
26350 * ipa-inline-analysis.c: Include lto-streamer.h
26351 (node_removal_hook_holder, node_duplication_hook_holder): New holders
26352 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
26353 (inline_summary_vec): Define.
26354 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
26355 dump_inline_summaries): New functions.
5e60198b
UB
26356 (estimate_function_body_sizes): Properly compute size/time of outgoing
26357 calls.
26358 (compute_inline_parameters): Alloc inline_summary; do not compute
26359 size/time of incomming calls.
10a5dd5d
JH
26360 (estimate_edge_time): Avoid missing time summary hack.
26361 (inline_read_summary): Read inline summary info.
26362 (inline_write_summary): Write inline summary info.
26363 (inline_free_summary): Free all hooks and inline summary vector.
26364 * lto-streamer.h: Add LTO_section_inline_summary section.
26365 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
26366 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
26367
b602d918
RS
263682011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26369
26370 * tree-vectorizer.h (vect_strided_store_supported): Add a
26371 HOST_WIDE_INT argument.
26372 (vect_strided_load_supported): Likewise.
26373 (vect_permute_store_chain): Return void.
26374 (vect_transform_strided_load): Likewise.
26375 (vect_permute_load_chain): Delete.
26376 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
26377 count argument. Check that the count is a power of two.
26378 (vect_strided_load_supported): Likewise.
26379 (vect_permute_store_chain): Return void. Update after above changes.
26380 Assert that the access is supported.
26381 (vect_permute_load_chain): Likewise.
26382 (vect_transform_strided_load): Return void.
26383 * tree-vect-stmts.c (vectorizable_store): Update calls after
26384 above interface changes.
26385 (vectorizable_load): Likewise.
26386 (vect_analyze_stmt): Don't check for strided powers of two here.
26387
ab4472fa
RG
263882011-04-14 Richard Guenther <rguenther@suse.de>
26389
26390 PR tree-optimization/48590
26391 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26392 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26393 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
26394 BUILT_IN_STACK_SAVE.
26395 * tree-ssa-dce.c (propagate_necessity): Handle
26396 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
26397
32dabdaf
NP
263982011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
26399
26400 * c-parser.c (c_parser_objc_class_declaration): Updated call to
26401 objc_declare_class.
26402
daade206
RG
264032011-04-14 Richard Guenther <rguenther@suse.de>
26404
26405 * tree.h (get_object_alignment_1): Declare.
26406 * builtins.c (get_object_alignment_1): Split out worker from ...
26407 (get_object_alignment): ... here.
26408 * fold-const.c (get_pointer_modulus_and_residue): Use
26409 get_object_alignment_1.
26410
920e8172
RS
264112011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26412
26413 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
26414 type parameter.
26415 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
26416 parameter. Generalise code to handle arrays as well as vectors.
26417 (vect_setup_realignment): Update accordingly.
26418 * tree-vect-stmts.c (vectorizable_store): Likewise.
26419 (vectorizable_load): Likewise.
26420
5ce1ee7f
RS
264212011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
26422
26423 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
26424 within the per-copy loop.
26425
6438fe33 264262011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
26427
26428 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
26429 in the dump file.
26430
6438fe33 264312011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
26432
26433 * doc/options.texi (Negative): Explicitly mention that the
26434 Negative chain must be circular.
26435
61e46a7d
NF
264362011-04-14 Nathan Froyd <froydnj@codesourcery.com>
26437
26438 * function.h (block_chainon): Declare.
26439 * function.c (block_chainon): Define.
26440
43ea6502 264412011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 26442 Eric Weddington <eric.weddington@atmel.com>
748f7574 26443 Georg-Johann Lay <avr@gjlay.de>
5e60198b 26444
f60c2554 26445 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
26446 New Includes
26447 (avr_init_builtins, avr_expand_builtin,
26448 avr_expand_delay_cycles, avr_expand_unop_builtin,
26449 avr_expand_binop_builtin ): New functions.
26450 (avr_builtin_id): New enum
26451 (struct avr_builtin_description): New struct
26452 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
26453 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 26454
43ea6502 26455 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 26456 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
26457 UNSPECV_DELAY_CYCLES): new enumeration values
26458 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
26459 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
26460 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
26461 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
26462 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
26463 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
26464 "fmulsu"): New insns
5e60198b 26465
43ea6502
AS
26466 * config/avr/avr-c.c: fix line endings
26467 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
26468 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
26469 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
26470 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
26471 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 26472
43ea6502
AS
26473 * doc/extend.texi (AVR Built-in Functions): New node
26474 (Target Builtins): Add documentation of AVR
26475 built-in functions.
26476
8a9b55f3
GJL
264772011-04-14 Georg-Johann Lay <avr@gjlay.de>
26478
26479 PR target/44643
26480 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
26481 alone. Error if non-const data has attribute progmem.
26482
94bd1825
NF
264832011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26484
26485 * tree.h (struct tree_constructor): Include tree_typed instead of
26486 tree_common.
26487 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
26488 TS_TYPED instead of TS_COMMON.
26489
5e60198b 264902011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
26491
26492 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
26493 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
26494 (sse2_psadbw): Merge with *avx_psadbw.
26495 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
26496 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
26497 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
26498 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
26499 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
26500 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
26501 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
26502 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
26503 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
26504 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
26505 (ssse3_palignrti): Merge with *avx_palignrti.
26506
4b1a4694
NF
265072011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26508
26509 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
26510 * tree-ssanames.c (fini_ssanames): VEC_free it.
26511 (make_ssa_name_fn): Update for VECness of free_ssanames.
26512 (release_ssa_name, release_dead_ssa_names): Likewise.
26513 * tree.h (struct tree_ssa_name): Include tree_typed instead of
26514 tree_common.
26515 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
26516 TS_TYPED instead of TS_COMMON.
26517
4da3b811
NF
265182011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26519
26520 * postreload-gcse.c (gcse_after_reload_main): Add calls to
26521 statistics_counter_event.
26522 * tree-ssa-copyrename.c (stats): Define.
26523 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
26524 statistics_counter_event.
26525 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
26526 (bswap_stats, widen_mul_stats): Define.
26527 (insert_reciprocals): Increment rdivs_inserted.
26528 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
26529 rfuncs_inserted. Add calls to statistics_counter_event.
26530 (execute_cse_sincos_1): Increment inserted.
26531 (execute_cse_sincos): Zeroize sincos_stats. Add call to
26532 statistics_counter_event.
26533 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
26534 of bswap_stats. Add calls to statistics_counter_event.
26535 (convert_mult_to_widen): Increment widen_mults_inserted.
26536 (convert_plusminus_to_widen): Increment maccs_inserted.
26537 (convert_mult_to_fma): Increment fmas_inserted.
26538 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
26539 calls to statistics_counter_event.
26540
89fa552a
VM
265412011-04-13 Vladimir Makarov <vmakarov@redhat.com>
26542
26543 PR rtl-optimization/48455
26544 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
26545 `temp_costs->mem_cost'.
26546
03dfc36d
JH
265472011-04-13 Jan Hubicka <jh@suse.cz>
26548
26549 * ipa-inline.h: New file.
26550 * ipa-inline-analysis.c: New file. Broken out of ...
26551 * ipa-inline.c: ... this file; update toplevel comment;
26552 include ipa-inline.h
26553 (inline_summary): Move to ipa-inline.h
26554 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
26555 ipa-inline-analysis.c.
7d4f8d02
EB
26556 (cgraph_estimate_time_after_inlining): Rename to
26557 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
26558 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
26559 to estimate_edge_growth.
26560 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
26561 rename to estimate_size_after_inlining.
26562 (cgraph_mark_inline_edge): Update for new naming convention.
26563 (cgraph_check_inline_limits): Likewise.
26564 (cgraph_edge_badness): Likewise.
26565 (cgraph_decide_recursive_inlining): Likewise.
26566 (cgraph_decide_inlining_of_small_functions): Likewise.
26567 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
26568 (cgraph_estimate_growth): Rename to estimate_growth; move to
26569 ipa-inline-analysis.c.
03dfc36d
JH
26570 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
26571 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
26572 (compute_inline_parameters): Likewise.
26573 (compute_inline_parameters_for_current): Likewise.
26574 (pass_inline_parameters): Likewise.
26575 (inline_indirect_intraprocedural_analysis): Likewise.
26576 (analyze_function): Rename to inline_analyze_function; likewise.
26577 (add_new_function): Move to ipa-inline-analysis.c.
26578 (inline_generate_summary): Likewise.
26579 (inline_read_summary): Likewise.
26580 (inline_write_summary): Likewise.
26581 * Makefile.in (ipa-inline-analysis.c): New file.
26582
7673c962
RO
265832011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26584
26585 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
26586 * configure: Regenerate.
26587
9698252f
NF
265882011-04-13 Nathan Froyd <froydnj@codesourcery.com>
26589
26590 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
26591 instead of tree_common.
26592 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
26593 Likewise.
26594 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
26595 TS_TYPED rather than TS_COMMON.
26596 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
26597
3a7bfdd5
GJL
265982011-04-01 Georg-Johann Lay <avr@gjlay.de>
26599
26600 PR target/45263
86d83530
GJL
26601 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
26602 r20 around calls of __tablejump_elpm__
3a7bfdd5 26603
20790697
JJ
266042011-04-13 Jakub Jelinek <jakub@redhat.com>
26605
26606 PR middle-end/48591
26607 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
26608 NULL.
26609 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
26610
094d7661
BS
266112011-04-13 Bernd Schmidt <bernds@codesourcery.com>
26612
26613 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
26614 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
26615 (cfi_vec): New typedef.
26616 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
26617 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
26618 (cie_cfi_vec): New static variable.
26619 (cie_cfi_head): Delete.
26620 (add_cfi): Accept a cfi_vec * as first argument. All callers and
26621 declaration changed. Use vector rather than list operations.
26622 (new_cfi): Don't initialize the dw_cfi_next field.
26623 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
26624 rather than list operations.
26625 (lookup_cfa): Use vector rather than list operations.
26626 (output_cfis): New argument upto. Accept a cfi_vec rather than
26627 a dw_cfi_ref list head as argument. All callers changed.
26628 Iterate over the vector using upto as a maximum index.
26629 (output_all_cfis): New static function.
26630 (output_fde): Use vector rather than list operations. Use the
26631 new upto argument for output_cfis rather than manipulating a
26632 list.
26633 (dwarf2out_begin_prologue): Change initializations to match
26634 new struct members.
26635 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
26636 from the vector length rather than searching for the end of a list.
26637 Use output_all_cfis.
26638 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
26639
673a5740
NC
266402011-04-13 Nick Clifton <nickc@redhat.com>
26641
26642 * config/rx/rx.md (movmemsi): Do not use this pattern when
26643 volatile pointers are involved.
26644
1ee8b298
UB
266452011-04-13 Uros Bizjak <ubizjak@gmail.com>
26646
26647 * config/i386/sse.md (pinsrbits): Remove.
26648 (sse2_packsswb): Merge with *avx_packsswb.
26649 (sse2_packssdw): Merge with *avx_packssdw.
26650 (sse2_packuswb): Merge with *avx_packuswb.
26651 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
26652 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
26653 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
26654 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
26655 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
26656 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
26657 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
26658 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
26659 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
26660 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
26661 (sse2_loadld): Merge with *avx_loadld.
26662 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
26663 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
26664 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
26665 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
26666 (vec_concatv2di): Merge with *vec_concatv2di_avx.
26667
81f653d6
NF
266682011-04-12 Nathan Froyd <froydnj@codesourcery.com>
26669
26670 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
26671 calling TREE_CHAIN.
26672 * print-tree.c (print_node): Likewise.
26673 * tree-inline.c (copy_tree_r): Likewise.
26674 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
26675 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
26676 instead of TS_COMMON.
26677 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
26678 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
26679 (copy_node_stat): Zero TREE_CHAIN only if necessary.
26680 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
26681 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
26682 ...and these...
26683 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
26684 * tree.h: ...here.
26685 (TREE_CHAIN): Check for a TS_COMMON structure.
26686 (TREE_TYPE): Check for a TS_TYPED structure.
26687
748f7574 266882011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
26689
26690 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
26691 cgraph_get_create_node instead of cgraph_node.
26692
eb345401
NP
266932011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
26694
26695 * c-parser.c (c_parser_initelt): Updated call to
26696 objc_build_message_expr.
26697 (c_parser_postfix_expression): Likewise.
26698
a6c46762
KT
266992011-04-12 Kai Tietz <ktietz@redhat.com>
26700
26701 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
26702 MASK_MS_BITFIELD_LAYOUT bit.
26703
b4ccfed9
JJ
267042011-04-12 Jakub Jelinek <jakub@redhat.com>
26705
26706 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
26707 assert it is always true.
26708 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
26709 moves.
26710
0d8a2528
NP
267112011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
26712
26713 * c-parser.c (c_lex_one_token): Rewritten conditional used when
26714 compiling Objective-C to be more efficient.
26715
06bd234a
AF
267162011-04-12 Axel Freyn <axel-freyn@gmx.de>
26717
26718 * opts-common.c (decode_cmdline_options_to_array): Remove variable
26719 argv_copied.
26720
28569ac3
RS
267212011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26722
26723 * recog.h, genoutput.c, optabs.c: Revert last patch.
26724
ae59e00d
RR
267252011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26726
81b1e7eb
UB
26727 PR target/48090
26728 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 26729
cff1b7e0
RS
267302011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26731
26732 * recog.h (insn_operand_data): Add an "allows_mem" field.
26733 * genoutput.c (output_operand_data): Initialize it.
26734 * optabs.c (maybe_legitimize_operand_same_code): New function.
26735 (maybe_legitimize_operand): Use it when matching the original
26736 op->value.
26737
77059241
RS
267382011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26739
26740 * genpreds.c (process_define_predicate): Move most processing
26741 to gensupport.c. Continue to validate the expression.
26742 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
26743 (process_define_predicate): Move processing to gensupport.c.
26744 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
26745 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
26746 (compute_predicate_codes): Moved from genrecog.c. Add lineno
26747 argument.
26748 (valid_predicate_name_p): New function, split out from old
26749 genpreds.c:process_define_predicate.
26750 (process_define_predicate): New function, combining code from
26751 old genpreds.c and genrecog.c functions.
26752 (process_rtx): Call it for DEFINE_PREDICATE and
26753 DEFINE_SPECIAL_PREDICATE.
26754
6308e208
RS
267552011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
26756
26757 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
26758 size of a '%A' memory reference.
26759 (T_DREG, T_QREG): New neon_builtin_type_bits.
26760 (arm_init_neon_builtins): Assert that the load and store operands
26761 are neon_struct_operands.
26762 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
26763 (NEON_ARG_MEMORY): New builtin_arg.
26764 (neon_dereference_pointer): New function.
26765 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
26766 Handle NEON_ARG_MEMORY.
26767 (arm_expand_neon_builtin): Update after above interface changes.
26768 Use NEON_ARG_MEMORY for loads and stores.
26769 * config/arm/predicates.md (neon_struct_operand): New predicate.
26770 * config/arm/iterators.md (V_two_elem): Tweak formatting.
26771 (V_three_elem): Use BLKmode for accesses that have no associated mode.
26772 (V_four_elem): Tweak formatting.
26773 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
26774 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
26775 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
26776 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
26777 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
26778 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
26779 (neon_vst4<mode>): Replace pointer operand with a memory operand.
26780 Use %A in the output template.
26781 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
26782 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
26783 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
26784 the width of the memory access. Remove post-increment.
26785 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
26786
e5db8f2f
NC
267872011-04-12 Nick Clifton <nickc@redhat.com>
26788
26789 * config/v850/v850.c (expand_prologue): Do not use the CALLT
26790 instruction for interrupt handlers if the target is the basic V850
26791 architecture.
26792 (expand_epilogue): Likewise.
26793
74f091d6
JJ
267942011-04-12 Jakub Jelinek <jakub@redhat.com>
26795
26796 PR rtl-optimization/48549
26797 * combine.c (propagate_for_debug): Also stop after BB_END of
26798 this_basic_block. Process LAST and just stop processing after it.
26799 (combine_instructions): If last_combined_insn has been deleted,
26800 set last_combined_insn to its PREV_INSN.
26801
f20ca725
RG
268022011-04-12 Richard Guenther <rguenther@suse.de>
26803
26804 PR tree-optimization/46076
26805 * gimple.h (struct gimple_statement_call): Add fntype field.
26806 (gimple_call_fntype): Adjust.
26807 (gimple_call_set_fntype): New function.
26808 * gimple.c (gimple_build_call_1): Set the call function type.
26809 * gimplify.c (gimplify_call_expr): Preserve the function
26810 type the frontend used for the call.
26811 (gimplify_modify_expr): Likewise.
26812 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
26813 function type.
26814 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
26815 function type.
26816 * tree-ssa.c (useless_type_conversion_p): Function pointer
26817 conversions are useless.
26818
a358e188
MJ
268192011-04-12 Martin Jambor <mjambor@suse.cz>
26820
26821 * cgraph.h (cgraph_node): Remove function declaration.
26822 (cgraph_create_node): Declare.
26823 (cgraph_get_create_node): Likewise.
26824 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
26825 Updated all callers.
26826 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
26827 the decl does not already exist. Call cgraph_get_create_node instead
26828 of cgraph_node.
26829 (cgraph_get_create_node): New function.
26830 (cgraph_same_body_alias): Update comment.
26831 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
26832 assert it does not return NULL.
26833 (cgraph_update_edges_for_call_stmt): Likewise.
26834 (cgraph_clone_edge): Likewise.
26835 (cgraph_create_virtual_clone): Likewise.
26836 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
26837 instead of cgraph_node.
26838 (cgraph_add_new_function): Call cgraph_create_node or
26839 cgraph_get_create_node instead of cgraph_node.
26840 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
26841 instead of cgraph_node.
26842 (record_eh_tables): Likewise.
26843 (mark_address): Likewise.
26844 (mark_load): Likewise.
26845 (build_cgraph_edges): Call cgraph_get_create_node instead
26846 of cgraph_node.
26847 (rebuild_cgraph_edges): Likewise.
26848 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
26849 instead of cgraph_node.
26850 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
26851 cgraph_node.
26852 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
26853 cgraph_create_node instead of cgraph_node.
26854 * c-decl.c (finish_function): Call cgraph_get_create_node instead
26855 of cgraph_node.
26856 * lto-cgraph.c (input_node): Likewise.
26857 * lto-streamer-in.c (input_function): Likewise.
26858 * varasm.c (mark_decl_referenced): Likewise.
26859 (assemble_alias): Likewise.
26860
fe660d7b
MJ
268612011-04-12 Martin Jambor <mjambor@suse.cz>
26862
26863 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
26864 instead of cgraph_node and assert it does not return NULL.
26865 * lto-streamer-in.c (lto_read_body): Likewise.
26866 * omp-low.c (new_omp_context): Likewise.
26867 (create_task_copyfn): Likewise.
26868 * tree-emutls.c (lower_emutls_function_body): Likewise.
26869 * matrix-reorg.c (transform_allocation_sites): Likewise.
26870
bae5cddf
JJ
268712011-04-12 Jakub Jelinek <jakub@redhat.com>
26872
26873 PR c/48552
26874 * c-typeck.c (build_asm_expr): Error out on attempts to use
26875 void type outputs or inputs for constraints that allow reg or
26876 don't allow memory.
26877
06eb52ca
CLT
268782011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
26879 Richard Earnshaw <rearnsha@arm.com>
26880
26881 PR target/48250
26882 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
26883 to use sign-magnitude offsets. Reject unsupported unaligned
26884 cases. Add detailed description in comments.
26885 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
26886 condition from TARGET_32BIT to TARGET_ARM.
26887
648a616b
NF
268882011-04-11 Nathan Froyd <froydnj@codesourcery.com>
26889
26890 * tree.h (struct typed_tree): New.
26891 (struct tree_common): Include it instead of tree_base.
26892 (TREE_TYPE): Update for new location of type field.
26893 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
26894 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
26895 (union tree_node): Add typed field.
26896 * treestruct.def (TS_TYPED): New.
26897 * lto-streamer.c (check_handled_ts_structures): Handle it.
26898 * tree.c (MARK_TS_TYPED): New macro.
26899 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
26900
1e6d1da0
EB
269012011-04-11 Eric Botcazou <ebotcazou@adacore.com>
26902
26903 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
26904 (force_nonfallthru): Do not alter the loop nest if no basic block
26905 was created.
26906
269072011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
26908
26909 * config/i386/sse.md (VI): New mode iterator.
26910 (SSEMODEI): Remove.
26911 (AVX256MODEI): Ditto.
26912 (AVXMODEF4P): Ditto.
26913 (avxvecpsmode): Ditto.
26914 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
26915 (sse2_andnot<mode>3): New expander.
26916 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
26917 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
26918 (<any_logic:code><mode>3): Use VI mode iterator.
26919 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
26920 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
26921 (*andnottf3): Handle AVX three-operand constraints.
26922 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
26923
b1372d5d 269242011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 26925 Robert Millan <rmh@gnu.org>
b1372d5d
JM
26926
26927 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
26928 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
26929 GNU_USER_DYNAMIC_LINKER64): Define.
26930 (REG_NAME): Don't undefine.
26931 (MD_UNWIND_SUPPORT): Undefine.
26932 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
26933 (REG_NAME): Don't undefine.
26934 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 26935 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 26936
761c0c6e
JM
269372011-04-11 Joseph Myers <joseph@codesourcery.com>
26938
26939 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
26940 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
26941
26e0228f
XDL
269422011-04-11 Xinliang David Li <davidxl@google.com>
26943
26944 * value-profile.c (check_ic_target): New function.
26945 (gimple_ic_transform): Sanity check indirect call target.
26946 * gimple-low.c (gimple_check_call_args): Interface change.
26947 (gimple_check_call_matching_types): New function.
26948 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
26949
269502011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
26951
26952 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
26953 tree-pretty-print.h & realmpfr.h.
26954
a58dfa49
VM
269552011-04-11 Vladimir Makarov <vmakarov@redhat.com>
26956
26957 PR middle-end/48464
26958 * ira.c (setup_pressure_classes): Fix typo in loop condition.
26959 (setup_allocno_and_important_classes): Ditto.
26960
107fd1c1
JM
269612011-04-11 Joseph Myers <joseph@codesourcery.com>
26962
26963 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
26964 GNU_USER_DYNAMIC_LINKER.
26965 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
26966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26967 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
26968 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26969 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
26970 GNU_USER_TARGET_OS_CPP_BUILTINS.
26971 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
26972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26973 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
26974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26975 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
26976 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
26977 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
26978 GNU_USER_TARGET_OS_CPP_BUILTINS.
26979 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26980 GNU_USER_DYNAMIC_LINKER.
26981 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26982 GNU_USER_TARGET_OS_CPP_BUILTINS.
26983 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
26984 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26985 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
26986 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26987 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
26988 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
26989 GNU_USER_DYNAMIC_LINKER64): Remove.
26990 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
26991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
26992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
26993 GNU_USER_DYNAMIC_LINKER.
26994 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26995 GNU_USER_TARGET_OS_CPP_BUILTINS.
26996 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
26997 GNU_USER_TARGET_OS_CPP_BUILTINS.
26998 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
26999 to GNU_USER_TARGET_OS_CPP_BUILTINS.
27000 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
27001 GNU_USER_TARGET_OS_CPP_BUILTINS.
27002 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
27003 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
27004 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27005 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
27006 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27007 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27008 GNU_USER_DYNAMIC_LINKER.
27009 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
27010 GNU_USER_TARGET_OS_CPP_BUILTINS.
27011 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
27012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27013 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27014 GNU_USER_DYNAMIC_LINKER.
27015 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27017 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
27018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27020 GNU_USER_DYNAMIC_LINKER.
27021 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
27022 GNU_USER_DYNAMIC_LINKERN32.
27023 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
27024 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
27025 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
27026 GNU_USER_DYNAMIC_LINKER32.
27027 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
27028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27030 GNU_USER_DYNAMIC_LINKER.
27031 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
27032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27033 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
27034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 27035 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
27036 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
27037 GNU_USER_DYNAMIC_LINKER32.
27038 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
27039 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
27040 GNU_USER_DYNAMIC_LINKER.
27041 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
27042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27043 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27044 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
27045 GNU_USER_DYNAMIC_LINKER64.
27046 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
27047 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27048 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27049 GNU_USER_DYNAMIC_LINKER.
27050 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
27051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27052 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
27053 GNU_USER_DYNAMIC_LINKER.
27054 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
27055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27056 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
27057 GNU_USER_DYNAMIC_LINKER32.
27058 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27059 GNU_USER_DYNAMIC_LINKER64.
27060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
27061 GNU_USER_DYNAMIC_LINKER64.
27062 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
27063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
27064 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
27065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 27066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 27067
e24609cf
JM
270682011-04-11 Joseph Myers <joseph@codesourcery.com>
27069
27070 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
27071 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
27072 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
27073 GNU_USER_DYNAMIC_LINKER.
27074 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27075 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
27076 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
27077 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
27078 GNU_USER_DYNAMIC_LINKER64.
27079 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
27080 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
27081 GNU_USER_LINK_EMULATION.
27082 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
27083 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
27084 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
27085 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
27086 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
27087 CPP_SPEC, CC1_SPEC): Remove.
27088 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
27089 (GNU_USER_DYNAMIC_LINKER): Define.
27090 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
27091 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
27092 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
27093 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
27094 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
27095 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
27096 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27097 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
27098 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
27099 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
27100 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
27101 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
27102 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
27103 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
27104 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
27105 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
27106 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27107 GNU_USER_DYNAMIC_LINKER.
27108 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27109 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
27110 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27111 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
27112 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
27113 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
27114 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
27115 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
27116 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 27117 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 27118
b8ce4e94
KT
271192011-04-11 Kai Tietz <ktietz@redhat.com>
27120
27121 PR target/9601
27122 PR target/11772
27123 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
27124 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
27125 comment.
27126 (ix86_is_msabi_thiscall): Removed.
27127 (ix86_is_type_thiscall): Likewise.
27128 (ix86_get_callcvt): New function.
27129 (ix86_comp_type_attributes): Simplify check.
27130 (ix86_function_regparm): Use ix86_get_callcvt for calling
27131 convention attribute checks.
27132 (ix86_return_pops_args): Likewise.
27133 (ix86_static_chain): Likewise.
27134 (x86_this_parameter): Likewise.
27135 (x86_output_mi_thunk): Likewise.
27136 (ix86_function_type_abi): Optimize check for types without attributes.
27137 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
27138 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
27139 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
27140 by flag-values.
27141 (IX86_BASE_CALLCVT): Helper macro.
27142 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
27143 Use ix86_get_callcvt for calling convention attribute checks and avoid
27144 symbol-decoration for stdcall in TARGET_RTD case.
27145 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
27146 Likewise.
27147 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
27148 for declaration.
27149
798dd0ba
UB
271502011-04-11 Uros Bizjak <ubizjak@gmail.com>
27151
27152 * config/i386/sse.md (VI_128): New mode iterator.
27153 (VI12_128): Rename from SSEMODE12.
27154 (VI14_128): Rename from SSEMODE14.
27155 (VI124_128): New mode iterator.
27156 (VI24_128): Rename from SSEMODE248.
27157 (VI248_128): Rename from SSEMODE248.
27158 (SSEMODE124C8): Remove.
27159 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27160 (*sse2_<plusminus_insn><mode>3): Merge with
27161 *avx_<plusminus_insn><mode>3.
27162 (*mulv8hi3): Merge with *avx_mulv8hi3.
27163 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
27164 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
27165 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
27166 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
27167 (ashr<mode>3): Merge with *avx_ashr<mode>3.
27168 (lshr<mode>3): Merge with *avx_lshr<mode>3.
27169 (ashl<mode>3): Merge with *avx_ashl<mode>3.
27170 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
27171 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
27172 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27173 (*<smaxmin:code>v8hi3): Ditto.
27174 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
27175 (*<smaxmin:code>v16qi3): Ditto.
27176 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
27177 (*sse2_eq<mode>3): Ditto.
27178 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
27179 (*sse2_gt<mode>3): Ditto.
27180 (vcondv2di): Split out of vcond<mode>.
27181 (vconduv2di): Split out of vcondu<mode>.
27182
956011be
RG
271832011-04-11 Richard Guenther <rguenther@suse.de>
27184
27185 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
27186 before calling tree_low_cst.
27187
e6313a78
RG
271882011-04-11 Richard Guenther <rguenther@suse.de>
27189
27190 * stor-layout.c (layout_type): Compute all array index size operations
27191 in the original type.
27192 (initialize_sizetypes): Add comment.
27193 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
27194
e69d7376
JM
271952011-04-11 Joseph Myers <joseph@codesourcery.com>
27196
27197 * common.opt (Tbss=, Tdata=, Ttext=): New options.
27198
9f9ebcdf
MJ
271992011-04-11 Martin Jambor <mjambor@suse.cz>
27200
27201 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
27202 of cgraph_node, handle NULL return value.
27203 (cgraph_global_info): Likewise.
27204 (cgraph_rtl_info): Likewise.
27205 * tree-inline.c (estimate_num_insns): Likewise.
27206 * gimplify.c (unshare_body): Likewise.
27207 (unvisit_body): Likewise.
27208 (gimplify_body): Likewise.
27209 * predict.c (optimize_function_for_size_p): Likewise.
27210 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27211 (call_may_clobber_ref_p_1): Likewise.
27212 * varasm.c (function_section_1): Likewise.
27213 (assemble_start_function): Likewise.
27214
581985d7
MJ
272152011-04-11 Martin Jambor <mjambor@suse.cz>
27216
27217 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
27218 of cgraph_node.
27219 * final.c (rest_of_clean_state): Likewise.
27220 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
27221 * passes.c (pass_init_dump_file): Likewise.
27222 (execute_all_ipa_transforms): Likewise.
27223 (function_called_by_processed_nodes_p): Likewise.
27224 * predict.c (maybe_hot_frequency_p): Likewise.
27225 (probably_never_executed_bb_p): Likewise.
27226 (compute_function_frequency): Likewise.
27227 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
27228 (unnest_nesting_tree_1): Likewise.
27229 (lower_nested_functions): Likewise.
27230 * tree-optimize.c (execute_fixup_cfg): Likewise.
27231 (tree_rest_of_compilation): Likewise.
27232 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
27233 * tree-sra.c (ipa_early_sra): Likewise.
27234 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
27235 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
27236 * ipa.c (record_cdtor_fn): Likewise.
27237 * ipa-inline.c (cgraph_early_inlining): Likewise.
27238 (compute_inline_parameters_for_current): Likewise.
27239 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27240 * ipa-pure-const.c (local_pure_const): Likewise.
27241 * ipa-split.c (split_function): Likewise.
27242 (execute_split_functions): Likewise.
27243 * cgraphbuild.c (build_cgraph_edges): Likewise.
27244 (rebuild_cgraph_edges): Likewise.
27245 (cgraph_rebuild_references): Likewise.
27246 (remove_cgraph_callee_edges): Likewise.
27247 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
27248 (verify_cgraph_node): Likewise.
27249 (cgraph_analyze_functions): Likewise.
27250 (cgraph_preserve_function_body_p): Likewise.
27251 (save_inline_function_body): Likewise.
27252 (save_inline_function_body): Likewise.
27253 * tree-inline.c (copy_bb): Likewise.
27254 (optimize_inline_calls): Likewise.
27255
57dbdc5a
MJ
272562011-04-11 Martin Jambor <mjambor@suse.cz>
27257
27258 PR tree-optimization/48195
27259 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
27260 ipa_check_create_edge_args.
27261 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
27262 ipa_check_create_edge_args.
27263 * ipa-inline.c (inline_generate_summary): Do not call
27264 ipa_check_create_node_params and ipa_check_create_edge_args.
27265 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
27266 ipa_check_create_edge_args.
27267
d108e679
AS
272682011-04-09 Anatoly Sokolov <aesok@post.ru>
27269
27270 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
27271 instead of loop.
27272 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
27273 * function.c (record_hard_reg_sets): Likewise.
27274 * ira.c (compute_regs_asm_clobbered): Likewise.
27275 * sched-deps.c (sched_analyze_1): Likewise.
27276 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
27277
3411bc59
XDL
272782011-04-09 Xinliang David Li <davidxl@google.com>
27279
27280 PR tree-optimization/PR48484
27281 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
27282 has_valid_pred lazily
27283
b365495a
DS
272842011-04-09 Duncan Sands <baldrick@free.fr>
27285
27286 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
27287
68bc509a
EB
272882011-04-08 Eric Botcazou <ebotcazou@adacore.com>
27289
27290 * combine.c (combine_validate_cost): Adjust comments. Set registered
27291 cost of I0 to zero at the end, if any.
27292
041e059f
XDL
272932011-04-08 Xinliang David Li <davidxl@google.com>
27294
68bc509a
EB
27295 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
27296 to insane profile data.
041e059f 27297
444b3995
XDL
272982011-04-08 Xinliang David Li <davidxl@google.com>
27299
27300 * ipa-cp.c (ipcp_update_profiling): Correct
27301 negative scale factor due to insane profile data.
27302
6a801cf2
XDL
273032011-04-08 Xinliang David Li <davidxl@google.com>
27304
27305 * final.c (dump_basic_block_info): New function.
27306 (final): Dump basic block.
27307 (final_scan_insn): Remove old dump.
27308
d5f3624e
SK
273092011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
27310
68bc509a
EB
27311 PR target/47829
27312 * config.gcc (i386-*-freebsd): Disable unwind table generation for
27313 crtbegin/crtend.
d5f3624e 27314
42821aff
MM
273152011-04-08 Michael Matz <matz@suse.de>
27316
27317 PR middle-end/48389
27318 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
27319 functions.
27320 (rebuild_jump_labels): Call rebuild_jump_labels_1.
27321 * rtl.h (rebuild_jump_labels_chain): Declare.
27322 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
27323 insns inserted on edges.
27324
ad7be009
JM
273252011-04-08 Joseph Myers <joseph@codesourcery.com>
27326
27327 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
27328 * config/arm/arm-arches.def: New.
27329 * config/arm/arm-opts.h: New.
27330 * config/arm/genopt.sh: New.
27331 * config/arm/arm-tables.opt: New (generated).
27332 * config/arm/arm.c (arm_handle_option, arm_target_help,
27333 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
27334 (all_architectures): Get most table contents from arm-arches.def.
27335 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
27336 arm_selected_tune here.
27337 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
27338 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
27339 (march=, mcpu=, mtune=): Use Enum and Var.
27340 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
27341 (arm.o): Update dependencies.
ecbb6fb7 27342
42821aff 273432011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
27344
27345 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
27346 of header_file.
27347 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
27348 (write_typed_alloc_defns): Likewise.
27349 (main): Calls write_typed_alloc_defns with output_header.
27350
8d189b3f
VM
273512011-04-08 Vladimir Makarov <vmakarov@redhat.com>
27352
68bc509a 27353 PR inline-asm/48435
8d189b3f
VM
27354 * ira-color.c (setup_profitable_hard_regs): Add comments.
27355 Don't take prohibited hard regs into account.
27356 (setup_conflict_profitable_regs): Rename to
27357 get_conflict_profitable_regs.
27358 (check_hard_reg_p): Check prohibited hard regs.
27359
44f370bf
NF
273602011-04-08 Nathan Froyd <froydnj@codesourcery.com>
27361
27362 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
27363 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
27364 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
27365
483d7ad3
JDA
273662011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27367
27368 PR target/48366
27369 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 27370 move from floating point to shift amount register.
483d7ad3
JDA
27371 (emit_move_sequence): Remove secondary reload support for floating
27372 point to shift amount amount register copies.
27373 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
27374 amount register copies.
27375 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
27376 register, return false if mode isn't a scalar integer mode.
27377 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
27378
97e03fa1
RG
273792011-04-08 Richard Guenther <rguenther@suse.de>
27380
27381 * gimple.c (gimple_call_flags): Remove kludge.
27382
9d40778b
AM
273832011-04-08 Alexander Monakov <amonakov@ispras.ru>
27384
27385 * sel-sched.c (sel_region_init): Move call to
27386 sel_setup_region_sched_flags after setup_current_loop_nest.
27387
19ac7892
AB
273882011-04-08 Andrey Belevantsev <abel@ispras.ru>
27389
27390 PR rtl-optimization/48272
19ac7892
AB
27391 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
27392 init_insn_reg_pressure_info. Adjust a caller.
27393 * sched-int.h (init_insn_reg_pressure_info): Declare.
27394 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
27395 when sched-pressure is enabled.
27396
0f8c63cc
RG
273972011-04-08 Richard Guenther <rguenther@suse.de>
27398
27399 * gimple.c (gimple_set_modified): Do not queue calls to
27400 MODIFIED_NORETURN_CALLS here ...
27401 * tree-ssa-operands.c (update_stmt_operands): ... but here.
27402
5e5a425e
RG
274032011-04-08 Richard Guenther <rguenther@suse.de>
27404
27405 PR lto/48467
27406 * toplev.c (lang_dependent_init): Do not open asm_out_file
27407 in WPA mode, nor perform debug machinery initialization.
27408 (finalize): Do not unlink asm_out_file in WPA mode.
27409
9bfc434b
RG
274102011-04-08 Richard Guenther <rguenther@suse.de>
27411
27412 * gimple.h (gimple_call_fntype): New function.
27413 (gimple_call_return_type): Use it.
27414 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
27415 * gimple-low.c (gimple_check_call_args): Likewise.
27416 * gimple.c (gimple_call_flags): Likewise.
27417 (gimple_call_arg_flags): Likewise.
27418 (gimple_call_return_flags): Likewise.
27419 * tree-cfg.c (verify_gimple_call): Likewise.
27420 (do_warn_unused_result): Likewise.
27421 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
27422 * value-prof.c (gimple_ic_transform): Fix fndecl check.
27423
7c1f0b40
DM
274242011-04-08 Dmitry Melnik <dm@ispras.ru>
27425
27426 PR rtl-optimization/48235
27427 * sel-sched.c (code_motion_process_successors): Recompute the last
27428 insn in basic block if control flow changed.
27429 (code_motion_path_driver): Ditto. Recompute the first insn as well.
27430 Update condition for ilist_remove.
27431
ea4d630f
AM
274322011-04-08 Alexander Monakov <amonakov@ispras.ru>
27433
27434 PR rtl-optimization/48302
27435 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
27436 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
27437 it to record added preheader blocks.
27438 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
27439 on to sel_add_loop_preheaders.
27440 (sel_region_init): Move call to setup_current_loop_nest after
27441 sel_init_bbs.
27442
07643d76
AM
274432011-04-08 Alexander Monakov <amonakov@ispras.ru>
27444
27445 PR target/48273
27446 * cfgloop.h (loop_has_exit_edges): New helper.
27447 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
27448 non-clonable.
27449 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
27450 that have no exit edges.
27451
1f3b2b4e
AM
274522011-04-08 Alexander Monakov <amonakov@ispras.ru>
27453
27454 PR rtl-optimization/48442
27455 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
27456 all callers. Adjust assert.
27457
554f1948
JJ
274582011-04-08 Jakub Jelinek <jakub@redhat.com>
27459
27460 PR tree-optimization/48377
27461 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
27462 is_packed to true even for types with smaller TYPE_ALIGN than
27463 TYPE_SIZE.
27464
ddf72388
RG
274652011-04-08 Richard Guenther <rguenther@suse.de>
27466
27467 PR bootstrap/48513
27468 * doc/tm.texi: Re-generate.
27469
0c27e2d8
WG
274702011-04-08 Wei Guozhi <carrot@google.com>
27471
27472 PR target/47855
27473 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
27474 * config/arm/arm.c (arm_attr_length_push_multi): New function.
27475 * config/arm/arm.md (*push_multi): Change the length computation to
27476 call a C function.
27477
07c5f94e
AS
274782011-04-08 Anatoly Sokolov <aesok@post.ru>
27479
27480 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
27481 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
27482 * doc/tm.texi: Regenerate.
27483 * system.h (ASM_OUTPUT_BSS): Poison.
27484 * varasm.c (asm_output_bss): Remove function.
27485 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 27486
07c5f94e
AS
27487 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
27488 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
27489 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
27490 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27491 Likewise.
27492 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27493 Likewise.
27494 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
27495 Likewise.
27496 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
27497
5f2c36e1
JM
274982011-04-07 Joseph Myers <joseph@codesourcery.com>
27499
27500 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
27501 EnumValue lines.
27502
39e7722b
JM
275032011-04-07 Joseph Myers <joseph@codesourcery.com>
27504
27505 * config/m68k/m68k.c (m68k_handle_option): Don't handle
27506 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
27507 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
27508 OPT_mcpu32.
27509 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
27510 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
27511 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
27512 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
27513 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
27514 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
27515 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
27516 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
27517 options. Don't map other m68k options manually. Don't handle
27518 old-style options as canonical.
27519 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 27520 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 27521
cf103ca4
EB
275222011-04-07 Eric Botcazou <ebotcazou@adacore.com>
27523
27524 * basic-block.h (force_nonfallthru): Move to...
27525 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
27526 (force_nonfallthru): ...here.
27527 * cfghooks.c (force_nonfallthru): New function.
27528 * cfgrtl.c (force_nonfallthru): Rename into...
27529 (rtl_force_nonfallthru): ...this.
27530 (commit_one_edge_insertion): Do not set AUX field.
27531 (commit_edge_insertions): Do not discover new basic blocks.
27532 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
27533 (cfg_layout_rtl_cfg_hooks): Likewise.
27534 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
27535 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
27536 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
27537
14431f58
AS
275382011-04-07 Anatoly Sokolov <aesok@post.ru>
27539
27540 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
27541 Remove macros.
27542
3729983c
UB
275432011-04-07 Uros Bizjak <ubizjak@gmail.com>
27544
27545 * config/i386/sse.md: Update copyright year.
27546 (avxcvtvecmode): Remove.
27547 (sse_movhlps): Merge with *avx_movhlps.
27548 (sse_movlhps): Merge with *avx_movlhps.
27549 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
27550 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
27551 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
27552 (sse_loadhps): Merge with *avx_loadhps.
27553 (sse_storelps): Merge with *avx_storelps.
27554 (sse_loadlps): Merge with *avx_loadlps.
27555 (sse_movss): Merge with *avx_movss.
27556 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
27557 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
27558 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
27559 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
27560 (vec_set<mode>_0): Ditto.
27561 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
27562 (sse4_1_insertps): Merge with *avx_insertps.
27563 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
27564 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
27565 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
27566 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
27567 (sse2_storehpd): Merge with *avx_storehpd.
27568 (sse2_loadhpd): Merge with *avx_loadhpd.
27569 (sse2_loadlpd): Merge with *avx_loadlpd.
27570 (sse2_movsd): Merge with *avx_movsd.
27571 (*vec_concatv2df): Merge with *vec_concatv2df.
27572
4e626909
JJ
275732011-04-07 Jakub Jelinek <jakub@redhat.com>
27574
27575 PR debug/48343
27576 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 27577 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
27578 (try_combine): Add last_combined_insn parameter, pass it instead of
27579 i3 to propagate_for_debug.
27580
3729983c 275812011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
27582
27583 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
27584 to handle MDR <-> data register transfers.
27585 (movhi_internal): Likewise.
27586
20c03367
AM
275872011-04-07 Alan Modra <amodra@gmail.com>
27588
27589 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
27590 previous stack info.
27591
bf22920b
TV
275922011-04-07 Tom de Vries <tom@codesourcery.com>
27593
27594 PR target/43920
27595 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
27596 flow_find_cross_jump. Swap variables to implement backward replacement.
27597 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
27598
823918ae
TV
275992011-04-07 Tom de Vries <tom@codesourcery.com>
27600
27601 PR target/43920
27602 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
27603 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
27604 and bb2.
27605 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
27606 src1 or src2. Redirect edges to the last basic block. Update
27607 frequency and count on multiple basic blocks in case of fallthru.
823918ae 27608
472c95f5
TV
276092011-04-07 Tom de Vries <tom@codesourcery.com>
27610
27611 PR target/43920
27612 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
27613 function.
3729983c
UB
27614 (old_insns_match_p): Change return type. Replace return false/true
27615 with return dir_none/dir_both. Use can_replace_by.
27616 (flow_find_cross_jump): Add dir_p parameter. Init replacement
27617 direction from dir_p. Register replacement direction in dir, last_dir
27618 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
27619 merge_dir. Return replacement direction in dir_p.
27620 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
27621 return type of old_insns_match_p.
27622 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
27623 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
27624 flow_find_cross_jump.
27625 * basic-block.h (enum replace_direction): New type.
27626 (flow_find_cross_jump): Add parameter to declaration.
27627
a95d4000
UB
276282011-04-06 Uros Bizjak <ubizjak@gmail.com>
27629
27630 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
27631 (AVXMODEDCVTPS2DQ): Ditto.
27632 (VEC_FLOAT_MODE): Ditto.
27633 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
27634 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27635 (<any_logic:code><mode>3): Use VF mode iterator.
27636 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
27637 Use VF mode iterator.
27638 (copysign<mode>3): Use VF mode iterator.
27639 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
27640 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
27641 (*<any_logic:code><MODEF:mode>3): Merge with
27642 *avx_<any_logic:code><MODEF:mode>3.
27643 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
27644 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
27645 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
27646 (avx_cvtdq2ps<avxmodesuffix>): Remove.
27647 (sse2_cvtdq2ps): Use %v modifier.
27648 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
27649 (avx_cvtps2dq<avxmodesuffix>): Remove.
27650 (sse2_cvtps2dq): Use %v modifier.
27651 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
27652 (avx_cvttps2dq<avxmodesuffix>): Remove.
27653 (sse2_cvttps2dq): Use %v modifier.
27654 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
27655 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
27656 (sse2_cvtsd2siq): Fix insn template.
27657 (sse2_cvtsd2siq_2): Ditto.
27658 (sse2_cvttsd2siq): Ditto.
27659 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
27660 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
27661
ad01c437
JM
276622011-04-06 Joseph Myers <joseph@codesourcery.com>
27663
27664 * gcov-io.c: Use GCC Runtime Library Exception.
27665
fe846284
JJ
276662011-04-06 Jakub Jelinek <jakub@redhat.com>
27667
27668 PR debug/48466
27669 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
27670 as base_reg whatever register reg has been eliminated to, instead
27671 of hardcoding STACK_POINTER_REGNUM.
27672
acce4e77
JM
276732011-04-06 Joseph Myers <joseph@codesourcery.com>
27674
27675 * doc/tm.texi.in: Document C target hooks as separate from general
27676 target hooks.
27677 * doc/tm.texi: Regenerate.
27678 * genhooks.c (struct hook_desc): Add docname field.
27679 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
27680 docname field.
27681 (hook_array): Include c-target.def.
27682 (emit_documentation): Use docname field in output.
27683 (emit_init_macros): Take docname argument. Only emit definitions
27684 for hooks matching docname.
27685 (main): Expect additional arguments in all cases. Pass argument
27686 to emit_init_macros.
27687 * target.def: Move initial macro definitions and comments to
27688 target-hooks-macros.h.
27689 (gcc_targetcm): Move to c-family/c-target.def.
27690 * target.h (targetcm): Move declaration to c-family/c-target.h.
27691 * targhooks.c (default_handle_c_option): Move to
27692 c-family/c-opts.c.
27693 * targhooks.h (default_handle_c_option): Move declaration to
27694 c-family/c-common.h.
27695 * target-hooks-macros.h: New file.
27696 * config.gcc (target_has_targetcm): Define and use to add to
27697 c_target_objs and cxx_target_objs.
27698 * config/default-c.c: New file.
27699 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
27700 of target.h and target-def.h.
27701 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
27702 (darwin_objc_construct_string, darwin_cfstring_ref_p,
27703 darwin_check_cfstring_format_arg): Make static.
27704 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
27705 TARGET_STRING_OBJECT_REF_TYPE_P,
27706 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
27707 * config/darwin-protos.h (darwin_objc_construct_string,
27708 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
27709 declare.
27710 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
27711 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 27712 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
27713 * config/t-darwin (darwin-c.o): Update dependencies.
27714 * system.h (TARGET_HAS_TARGETCM): Poison.
27715 * Makefile.in (TARGET_H): Update.
27716 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
27717 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
27718 (default-c.o): New target.
27719 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 27720 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
27721 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
27722 c-target.def.
27723 (build/genhooks.o): Update dependencies.
27724
275b4baa 277252011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 27726
275b4baa
RG
27727 * ipa-inline.c (enum inlining_mode): Remove.
27728 (cgraph_flatten): Use some other token.
27729 (cgraph_edge_early_inlinable_p): New function, split out from ...
27730 (cgraph_perform_always_inlining): New function, split out from ...
27731 (cgraph_decide_inlining_incrementally): ... here.
27732 (cgraph_mark_inline_edge): Adjust.
27733 (cgraph_early_inlining): Re-structure.
27734 (pass_early_inline): Require SSA form.
27735
f15b8bdf 277362011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
27737 Julian Brown <julian@codesourcery.com>
27738 Mark Shinwell <shinwell@codesourcery.com>
27739
27740 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
27741 LO_REGS only for Thumb-1.
27742 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
27743 be used in short instructions when optimising for size on Thumb-2.
27744
516426da
EB
277452011-04-06 Eric Botcazou <ebotcazou@adacore.com>
27746
27747 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
27748 associated with user returns to be preserved.
27749
96621ebf
TG
277502011-04-06 Tristan Gingold <gingold@adacore.com>
27751
f15b8bdf
EB
27752 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
27753 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
27754 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
27755 if XCOFF_DEBUGGING_INFO.
27756
07c0852e
UB
277572011-04-06 Uros Bizjak <ubizjak@gmail.com>
27758
27759 * config/i386/i386.md (attribute isa): New.
27760 (attribute enabled): New.
27761 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
27762 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
27763 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
27764 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
27765 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
27766 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27767 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
27768 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
27769
27770 * config/i386/sse.md (VF): New mode iterator.
27771 (VF1): Ditto.
27772 (VF2): Ditto.
27773 (VF_128): Ditto.
27774 (SSEMODEF4): Remove.
27775 (attribute sse): Handle V8SF and V4DF modes.
27776 (<absneg:code><mode>2): Use VF mode iterator.
27777 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
27778 mode iterator.
27779 (<plusminus_insn><mode>3): Use VF mode iterator.
27780 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
27781 Use VF mode iterator.
27782 (<sse>_vm<plusminus_insn><mode>3): Merge with
27783 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
27784 (mul<mode>3): Use VF mode iterator.
27785 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
27786 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
27787 mode iterator.
27788 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
27789 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
27790 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
27791 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
27792 mode iterator.
27793 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
27794 Use VF1 mode iterator.
27795 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
27796 (sqrt<VF2:mode>2): New expander.
27797 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
27798 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
27799 and sqrtv2df2. Use VF mode iterator.
27800 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
27801 mode iterator.
27802 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
27803 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
27804 Use VF1 mode iterator.
27805 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
27806 (<smaxmin:code><mode>3): Use VF mode iterator.
27807 (*<smaxmin:code><mode>3_finite): Merge with
27808 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
27809 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
27810 (<sse>_vm<smaxmin:code><mode>2): Merge with
27811 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
27812 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
27813 mode iterator.
27814 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
27815 mode iterator.
27816 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
27817 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
27818 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
27819 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
27820 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
27821 VF mode iterator.
27822 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
27823 Use VF_128 mode iterator.
27824 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
27825 mode iterator.
27826 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
27827 VF_128 mode iterator.
27828 (vcond<mode>): Use VF mode iterator.
27829 * config/i386/predicates.md (sse_comparison_operator): Merge with
27830 avx_comparison_float_operator. Do not declare as special_predicate.
27831 * config/i386/i386.c (struct builtin_description): Update for renamed
27832 compare patterns.
27833 (ix86_expand_args_builtin): Ditto.
27834 (ix86_expand_sse_compare_mask): Ditto.
27835
ff5d142c
RG
278362011-04-06 Richard Guenther <rguenther@suse.de>
27837
27838 * tree-inline.c (estimate_num_insns): For calls simply account
27839 for all passed arguments and a used return value.
27840
d7d1d041 278412011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 27842
d7d1d041
RG
27843 PR tree-optimization/47663
27844 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
27845 call_stmt_time fields.
27846 (cgraph_edge_inlinable_p): Declare.
27847 (cgraph_edge_recursive_p): New inline function.
27848 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
27849 (cgraph_clone_edge): Copy it.
27850 * ipa-inline.c (cgraph_estimate_edge_time): New function.
27851 Account for call stmt time.
27852 (cgraph_estimate_time_after_inlining): Take edge argument.
27853 (cgraph_estimate_edge_growth): Account call stmt size.
27854 (cgraph_estimate_size_after_inlining): Take edge argument.
27855 (cgraph_mark_inline_edge): Adjust.
27856 (cgraph_check_inline_limits): Likewise.
27857 (cgraph_recursive_inlining_p): Remove.
27858 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
27859 (cgraph_decide_recursive_inlining): Take edge argument and
27860 adjust.
27861 (cgraph_decide_inlining_of_small_functions): Do not avoid
27862 diags for recursive inlining here.
27863 (cgraph_flatten): Adjust.
27864 (cgraph_decide_inlining_incrementally): Likewise.
27865 (estimate_function_body_sizes): Remove call cost handling.
27866 (compute_inline_parameters): Initialize caller edge call costs.
27867 (cgraph_estimate_edge_growth): New function.
27868 (cgraph_estimate_growth): Use it.
27869 (cgraph_edge_badness): Likewise.
27870 (cgraph_check_inline_limits): Take an edge argument.
27871 (cgraph_decide_inlining_of_small_functions): Adjust.
27872 (cgraph_decide_inlining): Likewise.
27873 * tree-inline.c (estimate_num_insns): Only account for call
27874 return value if it is used.
27875 (expand_call_inline): Avoid diagnostics on recursive inline
27876 functions here.
27877 * lto-cgraph.c (lto_output_edge): Output edge call costs.
27878 (input_edge): Input edge call costs.
27879
2feb95f7
RO
278802011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27881
27882 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
27883
26fbd9c2
JW
278842011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
27885
27886 * doc/invoke.texi (Spec Files): Fix typo.
27887
694dc0ca
EB
278882011-04-06 Eric Botcazou <ebotcazou@adacore.com>
27889
27890 * profile.c (branch_prob): Move declaration of local variable. Remove
27891 obsolete ??? comment. Expand the location explicitly instead of using
27892 the LOCATION_FILE and LOCATION_LINE macros.
27893
4925d0d5
WG
278942011-04-06 Wei Guozhi <carrot@google.com>
27895
27896 PR target/47855
27897 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
27898 (arm_cond_branch): Likewise.
27899 (arm_cond_branch_reversed): Likewise.
27900 (arm_jump): Likewise.
27901 (push_multi): Likewise.
27902 * config/arm/constraints.md (Py): New constraint.
27903
f55dfa2f
NF
279042011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27905
27906 PR bootstrap/48471
27907 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
27908 Move these...
27909 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
27910 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
27911 #ifdef DBX_DEBUGGING_INFO.
27912
fca96842
BS
279132011-04-05 Bernd Schmidt <bernds@codesourcery.com>
27914
27915 PR bootstrap/48403
27916 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
27917 if old and new states differ.
27918
30b83e38
JM
279192011-04-05 Joseph Myers <joseph@codesourcery.com>
27920
27921 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
27922 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
27923 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
27924 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
27925 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
27926 mcfv4e): Use Alias.
27927 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
27928 ColdFire options to -mcpu= options.
27929
277a9aa5
JL
279302011-04-05 Jeff Law <law@redhat.com>
27931
27932 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
27933 check if BB is a successor of LOOP->header and return
27934 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
27935
c1e2610e
SB
279362011-04-05 Steven Bosscher <steven@gcc.gnu.org>
27937
27938 * cprop.c (struct reg_use): Remove.
27939 (reg_use_table): Make an array of RTX.
27940 (find_used_regs, constprop_register, local_cprop_pass,
27941 bypass_block): Simplify users of reg_use_table.
27942 (cprop_insn): Likewise. Iterate if copy propagation succeeded
27943 on one of the uses found by find_used_regs.
27944
e532f586
NF
279452011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27946
27947 PR bootstrap/48469
27948 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
27949 declaration.
27950
3fb7c055
NF
279512011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27952
27953 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
27954 as an rtx.
27955 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
27956
b71b43d9
SB
279572011-04-05 Steven Bosscher <steven@gcc.gnu.org>
27958
27959 PR middle-end/48441
27960 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
27961
b405b274
NF
279622011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27963
27964 * combine.c: Include obstack.h.
27965 (struct insn_link): Define.
27966 (uid_log_links): Adjust type.
27967 (FOR_EACH_LOG_LINK): New macro.
27968 (insn_link_obstack): Declare.
27969 (alloc_insn_link): Define.
27970 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
27971 type of link variables.
27972 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
27973 (try_combine, record_promoted_values, distribute_notes): Likewise.
27974 (distribute_links): Likewise. Tweak prototype.
27975 (clear_log_links): Delete.
27976 (adjust_for_new_dest): Call alloc_insn_link.
27977 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
27978
6409abe3
NF
279792011-04-05 Nathan Froyd <froydnj@codesourcery.com>
27980
27981 * gcse.c (modify_mem_list): Convert to an array of VECs.
27982 (canon_modify_mem_list, compute_transp): Tweak formatting.
27983 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
27984 (load_killed_in_block_p): Likewise.
27985 (record_last_mem_set_info): Likewise.
27986 (clear_modify_mem_tables): Likewise.
27987
170d8157
TV
279882011-04-05 Tom de Vries <tom@codesourcery.com>
27989
27990 PR middle-end/48461
27991 * function.c (emit_use_return_register_into_block): Only define if
27992 HAVE_return.
27993
c5911a55
EB
279942011-04-05 Eric Botcazou <ebotcazou@adacore.com>
27995
27996 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
27997
abd016e6
JM
279982011-04-05 Joseph Myers <joseph@codesourcery.com>
27999
28000 * config/rx/rx-opts.h: New.
28001 * config/rx/rx.c (rx_cpu_type): Remove.
28002 (rx_handle_option): Don't assert that global structures are in
28003 use. Access variables via opts pointer. Defer most handling of
28004 OPT_mint_register_. Use error_at.
28005 (rx_option_override): Handle deferred OPT_mint_register_ here.
28006 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
28007 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
28008 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
28009 (rx_cpu_types): New Enum and EnumValue entries.
28010 (mint-register=): Use Defer and use Var accordingly.
28011
1ed13f83
NF
280122011-04-05 Nathan Froyd <froydnj@codesourcery.com>
28013
28014 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
28015 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
28016 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
28017 Move these...
28018 (debug_free_queue, debug_nesting, symbol_queue_index):
28019 ...and these...
28020 * dbxout.c: ...to here. Make static.
28021
6ce1edcf
NF
280222011-04-05 Nathan Froyd <froydnj@codesourcery.com>
28023
28024 * gcse.c (modify_pair): Define. Define a VEC of it.
28025 (canon_modify_mem_list): Convert to an array of VECs.
28026 (free_insn_expr_list_list): Delete.
28027 (clear_modify_mem_tables): Call VEC_free instead.
28028 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
28029 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
28030 (canon_list_insert, compute_transp): Likewise.
28031
c201ac94
TV
280322011-04-05 Tom de Vries <tom@codesourcery.com>
28033
28034 PR target/43920
28035 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
28036 for size.
28037
4c029f40
TV
280382011-04-05 Tom de Vries <tom@codesourcery.com>
28039
28040 PR target/43920
28041 * function.c (emit_use_return_register_into_block): New function.
28042 (thread_prologue_and_epilogue_insns): Use
28043 emit_use_return_register_into_block.
28044
2a562b0a
TV
280452011-04-05 Tom de Vries <tom@codesourcery.com>
28046
28047 PR target/43920
28048 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
28049 insn.
28050
0248bceb
TV
280512011-04-05 Tom de Vries <tom@codesourcery.com>
28052
28053 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
28054
ffa94123
YZ
280552011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
28056
798dd0ba
UB
28057 * config/arm/arm.md (define_constants for unspec): Replace with
28058 define_c_enum.
28059 (define_constants for unspecv): Replace with define_c_enum.
28060 * config/arm/neon.md (define_constants for unspec): Replace with
28061 define_c_enum.
ffa94123 28062
3b8f9b46
RH
280632011-04-04 Richard Henderson <rth@redhat.com>
28064
720cf80f 28065 PR bootstrap/48400
3b8f9b46
RH
28066 * dwarf2out.c (output_line_info): Always emit line info from
28067 at least one section.
28068 (dwarf2out_init): Create text_section_line_info here ...
28069 (set_cur_line_info_table): ... not here.
28070
720cf80f 280712011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
28072
28073 PR target/48380
28074 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 28075 not called.
e5b0e1ca 28076
720cf80f 28077 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 28078
196565d4
SB
280792011-04-04 Steven Bosscher <steven@gcc.gnu.org>
28080
b77f9eab
SB
28081 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
28082 (expr_equiv_p): Remove.
28083 (insert_set_in_table): Look at <dest, src> pair instead of expr.
28084 (hash_scan_set): Update call to insert_set_in_table.
28085 (dump_hash_table): Dump <dest, src> pair.
28086 (lookup_set): Simplify. Lookup <dest, src> pair.
28087 (compute_transp): Remove, fold heavily simplified code into...
28088 (compute_local_properties): ...here. Expect COMP and TRANSP
28089 unconditionally.
28090 (find_avail_set): Take set directly from struct expr.
28091 (find_bypass-set): Likewise.
28092 (bypass_block): Likewise.
28093 (cprop_insn): Likewise. Remove redundant INSN_P test.
28094
384d7a55
SB
28095 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
28096 checks on form of COND from find_implicit_sets to here.
28097 (find_implicit_sets): Cleanup control flow. Split critical edges
28098 if it exposes implicit sets. Allocate/resize implicit_sets as
28099 necessary.
28100 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
28101 changed something. Run df_analyze after find_implicit_sets if any
28102 edges were split. Do not allocate implicit_sets here.
28103
3084ce69
SB
28104 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
28105 (gcse_obstack): Renamed to cprop_obstack.
28106 (GNEW, GNEWVEC, GNEWVAR): Remove.
28107 (gmalloc): Remove.
28108 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
28109 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
28110 (gcse_alloc): Likewise, and rename to cprop_alloc.
28111 (alloc_gcse_men, free_gcse_mem): Remove.
28112 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
28113 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
28114 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
28115
196565d4
SB
28116 * cprop.c (oprs_not_set_p): Remove.
28117 (mark_set, mark_clobber): Remove.
28118 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
28119 (reg_not_set_p): New function.
28120 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
28121 (cprop_insn): Likewise.
28122 (cprop_jump): Use FOR_EACH_EDGE.
28123
9b69cf83
BS
281242011-04-04 Bernd Schmidt <bernds@codesourcery.com>
28125
28126 PR bootstrap/48403
28127 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
28128 (rank_for_schedule): Use scheduled_insns vector instead of
28129 last_scheduled_insn.
28130 (ok_for_early_queue_removal): Likewise.
28131 (queue_to_ready): Search forward in nonscheduled_insns_begin if
28132 we have a dbg_cnt.
28133 (choose_ready): Likewise.
28134 (commit_schedule): Use VEC_iterate.
28135 (schedule_block): Initialize nonscheduled_insns_begin. If we have
28136 a dbg_cnt, use it and ensure the first insn is in the ready list.
28137 (haifa_sched_init): Allocate scheduled_insns.
28138 (sched_extend_ready_list): Don't allocate it; reserve space.
28139 (haifa_sched_finish): Free it.
28140
24f48c2f
JM
281412011-04-04 Joseph Myers <joseph@codesourcery.com>
28142
28143 * optc-gen.awk: Always remove type from Variable entry before
28144 recording in var_seen.
28145
8effe856
EB
281462011-04-04 Eric Botcazou <ebotcazou@adacore.com>
28147
28148 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
28149 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
28150 call to tidy_fallthru_edges.
28151
413519ae
JM
281522011-04-04 Joseph Myers <joseph@codesourcery.com>
28153
28154 * doc/options.texi (ToLower): Document.
3729983c 28155 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
28156 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
28157 * opts.h (cl_option): Add cl_tolower field.
28158 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
28159 arguments with lowercase strings.
28160 * config/rx/rx.opt (mcpu=): Add ToLower.
28161 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
28162 argument.
28163
7d34a1b0
RS
281642011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
28165
28166 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
28167
c30e7434
RS
281682011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
28169
28170 * config/vax/vax.c: Include reload.h.
28171
112a861d
AS
281722011-04-04 Anatoly Sokolov <aesok@post.ru>
28173
28174 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
28175 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28176 (sparc_preferred_reload_class): New function.
28177
e8c6bb74
JJ
281782011-04-04 Jakub Jelinek <jakub@redhat.com>
28179
2aeaa366 28180 PR debug/48401
e8c6bb74
JJ
28181 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28182 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
28183
2c081caf
NF
281842011-04-03 Nathan Froyd <froydnj@codesourcery.com>
28185
28186 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
28187 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
28188
53802f27
AS
281892011-04-03 Anatoly Sokolov <aesok@post.ru>
28190
28191 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
28192 (ASM_OUTPUT_ALIGNED_BSS): Define.
28193
e89964e3
MM
281942011-04-03 Michael Matz <matz@suse.de>
28195
28196 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
28197 and next_slot members.
28198 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
28199 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
28200 (lto_streamer_cache_append): Declare.
28201 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
28202 unsigned index, remove offset parameter, ensure that we append
28203 or update existing entries.
28204 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
28205 parameter, update next_slot for append.
28206 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
28207 parameter.
28208 (lto_streamer_cache_insert_at): Likewise.
28209 (lto_streamer_cache_append): New function.
28210 (lto_streamer_cache_lookup): Use unsigned index.
28211 (lto_streamer_cache_get): Likewise.
28212 (lto_record_common_node): Don't test tree_node_can_be_shared.
28213 (preload_common_node): Adjust call to lto_streamer_cache_insert.
28214 (lto_streamer_cache_delete): Don't free offsets member.
28215 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
28216 (lto_output_string_with_length): Use lto_output_data_stream.
28217 (lto_output_tree_header): Remove ix parameter, don't write it.
28218 (lto_output_builtin_tree): Likewise.
28219 (lto_write_tree): Adjust callers to above, don't track and write
28220 offset, write unsigned index.
28221 (output_unreferenced_globals): Don't emit all global vars.
28222 (write_global_references): Use unsigned indices.
28223 (lto_output_decl_state_refs): Likewise.
28224 (write_symbol): Likewise.
28225 * lto-streamer-in.c (lto_input_chain): Move earlier.
28226 (input_function): Use unsigned index.
28227 (input_alias_pairs): Don't read and then ignore all global vars.
28228 (lto_materialize_tree): Remove ix_p parameter, don't read index,
28229 don't pass it back, use lto_streamer_cache_append.
28230 (lto_register_var_decl_in_symtab): Use unsigned index.
28231 (lto_register_function_decl_in_symtab): Likewise.
28232 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
28233 index.
28234 (lto_get_builtin_tree): Don't read index, use
28235 lto_streamer_cache_append.
28236 (lto_read_tree): Adjust call to lto_materialize_tree.
28237
28238 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
28239 don't use function calls in arguments to MIN.
28240
28241 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
28242 twice.
28243
28244 * gimple.c (gimple_type_leader_entry): Mark deletable.
28245
b9a5b5b2
AM
282462011-04-03 Alan Modra <amodra@gmail.com>
28247
28248 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
28249
ac6a641b
MM
282502011-04-03 Michael Matz <matz@suse.de>
28251
28252 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
28253 an integer.
28254 * tree.h (tree_decl_non_common.vindex): Adjust comment.
28255
0038d4e0
MM
282562011-04-03 Michael Matz <matz@suse.de>
28257
e9c18386 28258 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
28259 * gimple-fold.c (canonicalize_constructor_val): Accept being called
28260 without function context.
28261 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
28262 current_function_decl and cfun.
28263
91f2fae8
MM
282642011-04-03 Michael Matz <matz@suse.de>
28265
28266 * tree.c (decl_init_priority_insert): Don't create entry for
28267 default priority.
28268 (decl_fini_priority_insert): Ditto.
28269 (fields_compatible_p, find_compatible_field): Remove.
28270 * tree.h (fields_compatible_p, find_compatible_field): Remove.
28271 * gimple.c (gimple_compare_field_offset): Adjust block comment.
28272
da29e070
EB
282732011-04-03 Eric Botcazou <ebotcazou@adacore.com>
28274
28275 * combine.c (try_combine): Remove useless local variable.
28276
4979c28b 282772011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 28278 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
28279
28280 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
28281 non-variable offsets and compare the remaining bases of the two
28282 accesses instead of looking for exact same data-ref.
28283
b4ddcaee
KT
282842011-04-02 Kai Tietz <ktietz@redhat.com>
28285
f90298e1
KT
28286 PR target/48416
28287 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
28288
b4ddcaee
KT
28289 * i386.c (ix86_is_msabi_thiscall): New helper function.
28290 (ix86_is_type_thiscall): New helper function.
28291 (ix86_comp_type_attributes): Handle thiscall for method-functions
28292 special.
28293 (init_cumulative_args): Likewise.
28294 (find_drap_reg): Likewise.
28295 (ix86_static_chain): Likewise.
28296 (x86_this_parameter): Likewise.
28297 (x86_output_mi_thunk): Likewise.
28298
2a9d769a 282992011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
28300 Nicolas Setton <setton@adacore.com>
28301 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
28302
28303 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
28304 (add_gnat_descriptive_type_attribute): New function.
28305 (gen_array_type_die): Call it.
28306 (gen_enumeration_type_die): Likewise.
28307 (gen_struct_or_union_type_die): Likewise.
28308 (modified_type_die): Likewise.
28309 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
28310 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
28311 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
28312
15a03a11
JJ
283132011-04-01 Jakub Jelinek <jakub@redhat.com>
28314
28315 PR bootstrap/48148
28316 * dwarf2out.c (resolve_addr): Don't call force_decl_die
28317 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
28318
28319 Revert:
28320 2011-03-17 Richard Guenther <rguenther@suse.de>
28321
28322 PR bootstrap/48148
28323 * lto-cgraph.c (input_overwrite_node): Clear the abstract
28324 origin for decls in other ltrans units.
28325 (input_varpool_node): Likewise.
28326
19228b93
JJ
283272011-04-01 Jakub Jelinek <jakub@redhat.com>
28328
28329 PR middle-end/48335
28330 * expr.c (expand_assignment): Handle all possibilities
28331 if TO_RTX is CONCAT.
e9c18386 28332 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
28333 (store_split_bit_field): If SUBREG_REG (op0) or
28334 op0 itself has smaller mode than word, return it
28335 for offset 0 and const0_rtx for out-of-bounds stores.
28336 If word is const0_rtx, skip it.
28337
88cb339e
N
283382011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
28339
28340 * config/h8300/h8300.c (print_operand_address): Rename to...
28341 (h8300_print_operand_address): ...this. Make static. Adjust comments.
28342 Call h8300_print_operand and h8300_print_operand_address instead of
28343 print_operand and print_operand_address. Declare.
28344 (print_operand): Renake to...
28345 (h8300_print_operand): ...this. Make static. Adjust comments.
28346 Call h8300_print_operand instead of print_operand. Declare.
28347 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
28348 (h8300_register_move_cost): Likewise.
28349 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
28350 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
28351 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
28352 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
28353 * config/h8300/h8300-protos.h (print_operand): Delete.
28354 (print_operand_address): Delete.
28355
756d6ee9
RH
283562011-04-01 Richard Henderson <rth@redhat.com>
28357
28358 PR 48400
28359 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
28360 in strict mode before dwarf4. Re-order tests to early out
28361 before switching sections.
28362
ceaaaeab
NF
283632011-04-01 Nathan Froyd <froydnj@codesourcery.com>
28364
28365 * config/h8300/constraints.md: New file.
28366 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
28367 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
28368 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
28369 * config/h8300/predicates.md (bit_operand): Likewise.
28370 (incdec_operand): Use satisfies_constraint_M and
28371 satisfies_constraint_O. Don't use C code block.
28372 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
28373 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
28374 (compute_mov_length): Use satisfies_constraint_G.
28375 (fix_bit_operand): Use satisfies_constraint_U.
28376 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
28377 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
28378 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
28379 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
28380 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
28381 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
28382 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28383 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
28384 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
28385 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
28386 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
28387 (EXTRA_MEMORY_CONSTRAINT): Delete.
28388
08ae38e0
AP
283892011-04-01 Andrew Pinski <pinskia@gmail.com>
28390 Michael Meissner <meissner@linux.vnet.ibm.com>
28391
28392 PR target/48262
28393 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
28394 operands, as per the specifications.
28395
28396 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
28397 (vec_extract_evenv4sf): Ditto.
28398 (vec_extract_evenv8hi): Ditto.
28399 (vec_extract_evenv16qi): Ditto.
28400 (vec_extract_oddv4si): Ditto.
28401
bdb0b0f6
MW
284022011-03-31 Mark Wielaard <mjw@redhat.com>
28403
28404 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
28405 high_pc attribute if the CU has no associated code. Only output
28406 DW_AT_entry_pc for CU if not generating strict dwarf and
28407 dwarf_version < 4.
28408
722279e4
BS
284092011-04-01 Bernd Schmidt <bernds@codesourcery.com>
28410
28411 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
28412 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
28413 out of ...
28414 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
28415 * final.c (final_start_function): Call the new function rather
28416 than using a NULL argument for dwarf2out_frame_debug.
28417
c5dd277d
BS
28418 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
28419 that contains the prologue.
28420
ec4efea9
BS
28421 * haifa-sched.c (queue_insn): New arg REASON. All callers
28422 changed. Print it in debugging output.
28423
2a6a0d80
BS
28424 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
28425
86014d07
BS
28426 * sched-ebb.c (begin_schedule_ready): Remove second argument.
28427 Split most of the code into...
28428 (begin_move_insn): ... here. New function.
28429 (ebb_sched_info): Add a pointer to it.
28430 * haifa-sched.c (scheduled_insns): New static variable.
28431 (sched_extend_ready_list): Allocate it.
28432 (schedule_block): Use it to record the order of scheduled insns.
28433 Perform RTL changes to move insns only after all scheduling
28434 decisions have been made.
28435 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
28436 begin_move_insn field.
28437 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
28438 * sched-int.h (struct haifa_sched_info): Remove second argument
28439 from begin_schedule_ready hook. Add new member begin_move_insn.
28440 * sched-rgn.c (begin_schedule_ready): Remove second argument.
28441 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
28442
9d701248
BS
28443 * haifa-sched.c (prune_ready_list): New function, broken out of
28444 schedule_block.
28445 (schedule_block): Use it.
28446
1ca1dad5
UW
284472011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28448
28449 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
28450
49568e45
KT
284512011-04-01 Kai Tietz <ktietz@redhat.com>
28452
28453 * config.gcc (*-*-mingw*): Allow as option the
28454 posix threading model.
07c0852e 28455 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
28456 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
28457 definition.
28458 (CPP_SPEC): Add pthread/no-pthread handling.
28459 (LIB_SPEC): Likewise.
28460 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
28461 (LIB_SPEC): Likewise.
28462 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
28463 flag to pass -pthread option for shared libgcc build.
28464 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
28465 for shared libgcc build.
28466 * config/i386/t-mingw-pthread: New file.
28467 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
28468 New define to enable use of library pthread by default.
28469 * config/i386/mingw.opt (pthread): New driver option.
28470 (no-pthread): New driver option.
e9c18386 28471 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
28472 * config/i386/mingw-w64.opt: Likewise.
28473
748f7574 284742011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
28475
28476 * c-decl.c (grokdeclarator): Fix formatting.
28477
f04713ee
RS
284782011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28479
28480 * expr.c (emit_block_move_via_movmem): Use n_generator_args
28481 instead of n_operands.
28482 (set_storage_via_setmem): Likewise.
28483 * optabs.c (maybe_gen_insn): Likewise.
28484 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
28485 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
28486 (mips_expand_builtin_direct): Likewise.
28487 * config/spu/spu.c (expand_builtin_args): Likewise.
28488
b29387ee
RS
284892011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28490
28491 * recog.h (insn_data_d): Add n_generator_args.
28492 * genoutput.c (data): Likewise.
28493 (output_insn_data): Print it.
28494 (max_opno, num_dups): Delete.
28495 (scan_operands): Just fill in "d->operand[...]".
28496 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
28497
e792559a
RS
284982011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
28499
28500 * gensupport.h (pattern_stats): New structure.
28501 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
28502 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
28503 (max_operand_1, max_operand_vec): Delete.
28504 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
28505
e8110d6f
NF
285062011-03-31 Nathan Froyd <froydnj@codesourcery.com>
28507
28508 * emit-rtl.c (emit_pattern_after_setloc): New function.
28509 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
28510 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
28511 (emit_pattern_after): New function.
28512 (emit_insn_after, emit_jump_insn_after): Call it.
28513 (emit_call_insn_after, emit_debug_insn_after): Likewise.
28514 (emit_pattern_before_setloc): New function.
28515 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
28516 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
28517 Likewise.
28518 (emit_pattern_before): New function.
28519 (emit_insn_before, emit_jump_insn_before): Call it.
28520 (emit_call_insn_before, emit_debug_insn_before): Likewise.
28521
576f85f1
RH
285222011-03-31 Richard Henderson <rth@redhat.com>
28523
28524 * dwarf2out.c (dw_separate_line_info_ref): Remove.
28525 (dw_separate_line_info_entry): Remove.
28526 (enum dw_line_info_opcode): New.
28527 (dw_line_info_entry): Use it.
28528 (dw_line_info_table, dw_line_info_table_p): New.
28529 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
28530 (line_info_table, line_info_label_num): Remove.
28531 (line_info_table_in_use): Remove.
28532 (separate_line_info_table): Remove.
28533 (separate_line_info_table_allocated): Remove.
28534 (separate_line_info_table_in_use): Remove.
28535 (LINE_INFO_TABLE_INCREMENT): Remove.
28536 (line_info_label_num): New.
28537 (cur_line_info_table): New.
28538 (text_section_line_info, cold_text_section_line_info): New.
28539 (separate_line_info): New.
28540 (SEPARATE_LINE_CODE_LABEL): Remove.
28541 (print_dwarf_line_table): Remove.
28542 (debug_dwarf): Don't dump it.
28543 (output_one_line_info_table): New.
28544 (output_line_info): Use it.
28545 (new_line_info_table): New.
28546 (set_cur_line_info_table): New.
28547 (dwarf2out_switch_text_section): Use it.
28548 (dwarf2out_begin_function): Likewise.
28549 (push_dw_line_info_entry): New.
28550 (dwarf2out_source_line): Rewrite for new line info tables.
28551 (dwarf2out_init): Remove dead initailizations.
28552
300d83d9
JM
285532011-03-31 Joseph Myers <joseph@codesourcery.com>
28554
28555 * opts.h (cl_option): Add comments to fields. Add bit-fields for
28556 various flags.
28557 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
28558 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
28559 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
28560 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
28561 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
28562 * opt-functions.awk (flag_init, switch_bit_fields): New.
28563 (switch_flags): Don't handle flags moved to bit-fields. Don't
28564 generate CL_MISSING_OK or CL_SAVE.
28565 * optc-gen.awk: Update to generate bit-field output as well as
28566 flags field.
28567 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
28568 bit-field instead of CL_REJECT_DRIVER flag.
28569 * opts-common.c (generate_canonical_option,
28570 decode_cmdline_option): Use bit-fields instead of CL_* flags.
28571 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
28572 instead of CL_REJECT_NEGATIVE flag.
28573 * toplev.c (print_switch_values): Use cl_report bit-field instead
28574 of CL_REPORT flag.
28575
d4d73ce2
EB
285762011-03-31 Eric Botcazou <ebotcazou@adacore.com>
28577
28578 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
28579 a zero minimum index only if it is redundant.
28580
b8faca75
VM
285812011-03-31 Vladimir Makarov <vmakarov@redhat.com>
28582
28583 PR rtl-optimization/48381
28584 * ira-color.c (assign_hard_reg): Use hard reg set intersection
28585 instead of ira_class_hard_reg_index for calculating conflicting
28586 hard registers.
28587
7d11cebe
SB
285882011-03-31 Steven Bosscher <steven@gcc.gnu.org>
28589
28590 * cprop.c: Clean up hash table building.
28591 (reg_avail_info): Remove.
28592 (oprs_available_p): Remove.
28593 (record_last_reg_set_info): Remove.
28594 (record_last_set_info): Remove.
28595 (reg_available_p): New function.
28596 (gcse_constant_p): Do not treat unfolded conditions as constants.
28597 (make_set_regs_unavailable): New function.
28598 (hash_scan_set): Simplify with new reg_available_p.
28599 (compute_hash_table_work): Traverse insns stream only once.
28600 Do not compute reg_avail_info. Traverse insns in reverse order.
28601 Record implicit sets after recording explicit sets from the block.
28602
98faf84f
MM
286032011-03-31 Michael Matz <matz@suse.de>
28604
e9c18386 28605 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 28606
f52d97da
AS
286072011-03-31 Anatoly Sokolov <aesok@post.ru>
28608
28609 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
28610 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
28611 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28612 (h8300_mode_dependent_address_p): New function.
28613 (h8300_get_index): Make static.
28614
e16b6fd0
JL
286152011-03-31 Jeff Law <law@redhat.com>
28616
10c51983
JL
28617 * reload1.c (elimination_effects): Fix typo in recent change.
28618
e9c18386 28619 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
28620 typo potentially leading to null pointer dereference.
28621
28622 * caller-save.c (new_saved_hard_reg): Eliminate return value.
28623 (setup_save_areas): Corresponding changes to avoid useless
28624 assignments.
28625
28626 * jump.c (reversed_comparison_code_parts): Avoid successive return
28627 statements when REVERSE_CONDITION is defined.
28628
28629 * expr.c (expand_assignment): Avoid useless assignments.
28630 (expand_expr_real_1): Likewise.
28631 (expand_expr_real_2): Avoid useless statements.
28632
28633 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
28634
28635 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
28636
28637 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
28638 statements.
28639
28640 * stmt.c (expand_expr_stmt): Avoid useless assignment.
28641
eb1eb914
JM
286422011-03-31 Joseph Myers <joseph@codesourcery.com>
28643
28644 PR target/47109
28645 * doc/tm.texi.in (TARGET_VERSION): Remove.
28646 * doc/tm.texi: Regenerate.
28647 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
28648 * collect2.c (main): Don't use TARGET_VERSION.
28649 * mips-tdump.c (main): Don't use TARGET_VERSION.
28650 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 28651 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
28652 * config/rs6000/vxworksae.h: Remove.
28653 * config/alpha/alpha.h (TARGET_VERSION): Remove.
28654 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
28655 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
28656 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
28657 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
28658 * config/arm/arm.h (TARGET_VERSION): Remove.
28659 * config/arm/coff.h (TARGET_VERSION): Remove.
28660 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
28661 * config/arm/elf.h (TARGET_VERSION): Remove.
28662 * config/arm/freebsd.h (TARGET_VERSION): Remove.
28663 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
28664 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
28665 * config/arm/pe.h (TARGET_VERSION): Remove.
28666 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
28667 * config/arm/semi.h (TARGET_VERSION): Remove.
28668 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
28669 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
28670 * config/arm/vxworks.h (TARGET_VERSION): Remove.
28671 * config/avr/avr.h (TARGET_VERSION): Remove.
28672 * config/bfin/bfin.h (TARGET_VERSION): Remove.
28673 * config/fr30/fr30.h (TARGET_VERSION): Remove.
28674 * config/frv/frv.h (TARGET_VERSION): Remove.
28675 * config/h8300/h8300.h (TARGET_VERSION): Remove.
28676 * config/i386/cygwin.h (TARGET_VERSION): Remove.
28677 * config/i386/darwin.h (TARGET_VERSION): Remove.
28678 * config/i386/darwin64.h (TARGET_VERSION): Remove.
28679 * config/i386/djgpp.h (TARGET_VERSION): Remove.
28680 * config/i386/freebsd.h (TARGET_VERSION): Remove.
28681 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
28682 * config/i386/gnu.h (TARGET_VERSION): Remove.
28683 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
28684 * config/i386/i386elf.h (TARGET_VERSION): Remove.
28685 * config/i386/linux.h (TARGET_VERSION): Remove.
28686 * config/i386/linux64.h (TARGET_VERSION): Remove.
28687 * config/i386/lynx.h (TARGET_VERSION): Remove.
28688 * config/i386/mingw32.h (TARGET_VERSION): Remove.
28689 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
28690 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
28691 * config/i386/netware.h (TARGET_VERSION): Remove.
28692 * config/i386/nto.h (TARGET_VERSION): Remove.
28693 * config/i386/openbsd.h (TARGET_VERSION): Remove.
28694 * config/i386/vxworks.h (TARGET_VERSION): Remove.
28695 * config/ia64/elf.h (TARGET_VERSION): Remove.
28696 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
28697 * config/ia64/hpux.h (TARGET_VERSION): Remove.
28698 * config/ia64/linux.h (TARGET_VERSION): Remove.
28699 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
28700 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
28701 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
28702 * config/lm32/lm32.h (TARGET_VERSION): Remove.
28703 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
28704 * config/m32c/m32c.h (TARGET_VERSION): Remove.
28705 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
28706 * config/m32r/m32r.h (TARGET_VERSION): Remove.
28707 * config/m68k/linux.h (TARGET_VERSION): Remove.
28708 * config/m68k/m68k.h (TARGET_VERSION): Remove.
28709 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
28710 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
28711 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
28712 * config/mep/mep.h (TARGET_VERSION): Remove.
28713 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
28714 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
28715 * config/mips/iris6.h (MACHINE_TYPE): Remove.
28716 * config/mips/linux.h (TARGET_VERSION): Remove.
28717 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
28718 * config/mips/vxworks.h (TARGET_VERSION): Remove.
28719 * config/mmix/mmix.h (TARGET_VERSION): Remove.
28720 * config/mn10300/linux.h (TARGET_VERSION): Remove.
28721 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
28722 * config/pa/pa.h (TARGET_VERSION): Remove.
28723 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
28724 * config/picochip/picochip.h (TARGET_VERSION): Remove.
28725 * config/rs6000/aix.h (TARGET_VERSION): Remove.
28726 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
28727 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
28728 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
28729 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
28730 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
28731 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
28732 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
28733 * config/rs6000/linux.h (TARGET_VERSION): Remove.
28734 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
28735 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
28736 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
28737 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
28738 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
28739 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
28740 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
28741 * config/s390/linux.h (TARGET_VERSION): Remove.
28742 * config/s390/s390.h (TARGET_VERSION): Remove.
28743 * config/s390/tpf.h (TARGET_VERSION): Remove.
28744 * config/score/score.h (TARGET_VERSION): Remove.
28745 * config/sh/linux.h (TARGET_VERSION): Remove.
28746 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
28747 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
28748 * config/sh/sh.h (TARGET_VERSION): Remove.
28749 * config/sh/sh64.h (TARGET_VERSION): Remove.
28750 * config/sh/superh.h (TARGET_VERSION): Remove.
28751 * config/sh/vxworks.h (TARGET_VERSION): Remove.
28752 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
28753 * config/sparc/linux.h (TARGET_VERSION): Remove.
28754 * config/sparc/linux64.h (TARGET_VERSION): Remove.
28755 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
28756 TARGET_NAME32, TARGET_NAME): Remove.
28757 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
28758 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
28759 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
28760 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
28761 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
28762 * config/spu/spu.h (TARGET_VERSION): Remove.
28763 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
28764 * config/v850/v850.h (TARGET_VERSION): Remove.
28765 * config/vax/linux.h (TARGET_VERSION): Remove.
28766 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
28767 * config/xtensa/elf.h (TARGET_VERSION): Remove.
28768 * config/xtensa/linux.h (TARGET_VERSION): Remove.
28769
ace31bca
EB
287702011-03-31 Eric Botcazou <ebotcazou@adacore.com>
28771
28772 PR target/48142
28773 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
28774 frame-related from frame-unrelated adjustments to the stack pointer.
28775
76f9db36
JJ
287762011-03-31 Jakub Jelinek <jakub@redhat.com>
28777
28778 * common.opt (fdebug-types-section): Move earlier.
28779 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
28780
b7826465
AT
287812011-03-31 Andreas Tobler <andreast@fgznet.ch>
28782
28783 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
28784 var.
28785
1290e54c
NF
287862011-03-30 Nathan Froyd <froydnj@codesourcery.com>
28787
28788 * tree.h (CASE_CHAIN): Define.
28789 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
28790 (gimple_redirect_edge_and_branch): Likewise.
28791
bddc98e1
VM
287922011-03-30 Vladimir Makarov <vmakarov@redhat.com>
28793
28794 PR middle-end/48367
28795 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
28796 calculation.
28797
c865e437
JL
287982011-03-30 Jeff Law <law@redhat.com>
28799
b3750213 28800 * PR bootstrap/48371
c865e437
JL
28801 * reload1.c (reload): Fix botch in last change.
28802
28803 * reload.h (struct reload): Fix typo introduced in last change.
28804
2cdf9574
JM
288052011-03-30 Joseph Myers <joseph@codesourcery.com>
28806
28807 * config/arm/arm.opt (mhard-float, msoft-float): Mark
28808 Undocumented. Remove help text.
28809 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
28810 -mhard-float.
28811
666a21a2
JM
288122011-03-30 Joseph Myers <joseph@codesourcery.com>
28813
28814 * doc/options.texi (NegativeAlias): Document.
28815 (Alias): Mention NegativeAlias.
28816 * opt-functions.awk: Handle NegativeAlias.
e9c18386 28817 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
28818 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
28819 * opts.h (CL_NEGATIVE_ALIAS): Define.
28820 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
28821 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
28822 OPT_mspe_.
28823 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
28824 Alias entries.
28825 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
28826 mno-spe and mno-isel instead of mspe=no and -misel=no.
28827
0fa4e351
MW
288282011-03-29 Mark Wielaard <mjw@redhat.com>
28829
28830 * common.opt (fdebug-types-section): New flag.
28831 * doc/invoke.texi: Document new -fno-debug-types-section flag.
28832 * dwarf2out.c (use_debug_types): New define.
28833 (struct die_struct): Mark die_id with GTY desc use_debug_types.
28834 (print_die): Guard output of type unit signatures using
28835 use_debug_types.
28836 (build_abbrev_table): Replace assert of dwarf_version >= 4
28837 with assert on use_debug_types.
28838 (size_of_die): Likewise.
28839 (unmark_dies): Likewise.
28840 (value_format): Decide AT_ref_external form on use_debug_types.
28841 (output_die): Replace dwarf_version version check guard with
28842 use_debug_types where appropriate.
28843 (modified_type_die): Likewise.
28844 (gen_reference_type_die): Likewise.
28845 (dwarf2out_start_source_file): Likewise.
28846 (dwarf2out_end_source_file): Likewise.
28847 (prune_unused_types_walk_attribs): Likewise.
28848 (dwarf2out_finish): Likewise.
28849
4648deb4
VM
288502011-03-30 Vladimir Makarov <vmakarov@redhat.com>
28851
28852 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
28853
4f431835
RS
288542011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28855
28856 PR rtl-optimization/48332
28857 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
28858 mode of input operand N and modeN to its actual mode.
28859
f2034d06
JL
288602011-03-30 Jeff Law <law@redhat.com>
28861
28862 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
28863 define accessor macro.
28864 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
28865 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
28866 (reg_equiv_init): Likewise.
28867 (reg_equivs_size): New variable.
28868 (reg_equiv_init_size): Remove.
28869 (allocate_initial_values): Move prototype to here from....
28870 * integrate.h (allocate_initial_values): Remove prototype.
28871 * integrate.c: Include reload.h.
28872 (allocate_initial_values): Corresponding changes.
28873 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
28874 (fix_reg_equiv_init, no_equiv): Corresponding changes.
28875 (update_equiv_regs): Corresponding changes.
28876 (ira): Corresponding changes.
28877 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
28878 (push_secondary_reload): Corresponding changes.
28879 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
28880 (make_memloc, find_reloads_address): Corresponding changes.
28881 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
28882 (find_reloads_address_1): Corresponding changes.
28883 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
28884 (refers_to_regno_for_reload_p): Corresponding changes.
28885 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
28886 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
28887 * reload1.c: Include ggc.h.
28888 (grow_reg_equivs): New function.
28889 (replace_pseudos_in, reload): Corresponding changes.
28890 (calculate_needs_all_insns, alter_regs): Corresponding changes.
28891 (eliminate_regs_1, elimination_effects): Corresponding changes.
28892 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
28893 (delete_output_reload): Likewise.
28894 * caller-save.c (mark_referenced_regs): Corresponding changes.
28895 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
28896 * frv/predicates.md (frv_load_operand): Corresponding changes.
28897 * microblaze/microblaze.c (double_memory_operand): Corresponding
28898 changes.
28899 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
28900 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 28901 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
28902 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
28903 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
28904 changes.
28905 * pa/pa.c (emit_move_sequence): Corresponding changes.
28906 * vax/vax.c (nonindexed_address_p): Corresponding changes.
28907
159b81b0
RS
289082011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28909
28910 PR target/47551
28911 * config/arm/arm.c (coproc_secondary_reload_class): Handle
28912 structure modes. Don't check neon_vector_mem_operand for
28913 vector or structure modes.
28914
a6217191
RS
289152011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
28916 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28917
28918 PR target/43590
28919 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
28920 operand 1 and reshuffle the operands to match.
28921 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
28922
bd837408
CS
289232011-03-30 Christian Schüler <cschueler@gmx.de>
28924
6955d771 28925 PR driver/48208
bd837408 28926 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 28927
6955d771 28928 PR driver/48260
bd837408
CS
28929 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
28930 handler function.
28931 * config/darwin.opt: Added '-arch' option.
28932
e9c0470a
NC
289332011-03-30 Nick Clifton <nickc@redhat.com>
28934
28935 * config/rx/rx.md: Add peepholes and patterns to combine
28936 extending loads and simple arithmetic instructions.
28937 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
28938 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
28939 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 28940 modes to use pre-decrement and post-increment addressing.
e9c18386 28941 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 28942 addresses.
e9c18386
UB
28943 (rx_print_operand): Add support for %Q. Fix handling of %Q.
28944 (rx_memory_move_cost): Adjust cost of stores.
28945 (rx_adjust_insn_length): New function.
e9c0470a 28946
8a87e7ab
JJ
289472011-03-30 Jakub Jelinek <jakub@redhat.com>
28948
28949 PR c/48305
28950 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28951 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
28952 matching arg00/arg01 types.
28953
12486e03
EB
289542011-03-30 Eric Botcazou <ebotcazou@adacore.com>
28955
28956 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
28957 last_location to UNKNOWN_LOCATION.
28958
0b99eef6
L
289592011-03-30 H.J. Lu <hongjiu.lu@intel.com>
28960
28961 PR target/48349
28962 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
28963 FLOAT_SSE_REGS.
28964
023592aa
JM
289652011-03-30 Joseph Myers <joseph@codesourcery.com>
28966 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28967
28968 PR bootstrap/48337
28969 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
28970 Init(PROCESSOR_V7).
28971 (sparc_cpu): Likewise.
28972 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
28973 PROCESSOR_V7.
28974
ad3b266b
VM
289752011-03-29 Vladimir Makarov <vmakarov@redhat.com>
28976
28977 PR target/48336
28978 PR middle-end/48342
28979 PR rtl-optimization/48345
28980 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
28981 hard regs for given mode from profitable regs when doing secondary
28982 allocation.
28983
633c9126
JL
289842011-03-29 Jeff Law <law@redhat.com>
28985
28986 PR bootstrap/48327
28987 * tree-ssa-threadupdate.c (struct redirection_data): Remove
28988 do_not_duplicate field.
28989 (lookup_redirection_data): Corresponding changes.
28990 (create_duplicates): Always create a template block.
28991 (redirect_edges): Remove code which reused the original block
28992 when it was going to become unreachable code.
28993 (thread_block): Don't set do_not_duplicate field.
28994
eb50f63a
JM
289952011-03-29 Joseph Myers <joseph@codesourcery.com>
28996
28997 * lto-opts.c (register_user_option_p, lto_register_user_option):
28998 Make type argument unsigned.
28999 * lto-streamer.h (lto_register_user_option): Make type argument
29000 unsigned.
29001 * opth-gen.awk: Make CL_* macros unsigned.
29002 * opts-common.c (find_opt): Make lang_mask argument unsigned.
29003 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
29004 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
29005 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
29006 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
29007 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
29008 (find_opt): Make lang_mask argument unsigned.
29009
76763a6d
VM
290102011-03-29 Vladimir Makarov <vmakarov@redhat.com>
29011
29012 PR rtl-optimization/48331
29013 PR rtl-optimization/48334
29014 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
29015 for any used algorithm.
29016
5c82436e
VM
290172011-03-29 Vladimir Makarov <vmakarov@redhat.com>
29018
29019 * ira-conflicts.c (build_object_conflicts): Add unused attribute
29020 to parent_max.
29021
7a81008b
UB
290222011-03-29 Uros Bizjak <ubizjak@gmail.com>
29023
29024 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
29025 (alpha_option_override): Don't set alpha_sr_alias_set.
29026 (emit_frame_store_1): Use gen_frame_mem rather than calling
29027 set_mem_alias_set.
29028 (alpha_expand_epilogue): Ditto.
29029
86c8d1f6
IR
290302011-03-29 Ira Rosen <ira.rosen@linaro.org>
29031
29032 PR tree-optimization/48290
29033 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
29034 vectorization, check that relevant phis in the basic block after
29035 the inner loop are really inner loop's exit phis.
29036
0d12220f
RS
290372011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
29038
e8cf17e7 29039 PR debug/48190
0d12220f
RS
29040 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
29041 (cached_dw_loc_list_def): New structure.
29042 (cached_dw_loc_list): New typedef.
29043 (cached_dw_loc_list_table): New variable.
29044 (cached_dw_loc_list_table_hash): New function.
29045 (cached_dw_loc_list_table_eq): Likewise.
29046 (add_location_or_const_value_attribute): Take a bool cache_p.
29047 Cache the list when the parameter is true.
29048 (gen_formal_parameter_die): Update caller.
29049 (gen_variable_die): Likewise.
29050 (dwarf2out_finish): Likewise.
29051 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
29052 while generating debug info for the decl.
29053 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
29054 (dwarf2out_init): Initialize cached_dw_loc_list_table.
29055 (resolve_addr): Cache the result of resolving a chain of
29056 location lists.
29057
1756cb66
VM
290582011-03-28 Vladimir Makarov <vmakarov@redhat.com>
29059
29060 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
29061 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 29062
1756cb66
VM
29063 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
29064 after regstat_init_n_sets_and_refs.
29065
29066 * ira.c: Add more comments at the top.
29067 (setup_stack_reg_pressure_class, setup_pressure_classes):
29068 Add comments how we compute the register pressure classes.
29069 (setup_allocno_and_important_classes): Add more comments.
29070 (setup_class_translate_array, reorder_important_classes)
29071 (setup_reg_class_relations): Add comments.
29072
29073 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
29074 start of the file.
29075
29076 * ira-color.c: Add 2011 to the Copyright line.
29077 (assign_hard_reg): Add more comments.
29078 (improve_allocation): Ditto.
29079
29080 * ira-costs.c: Add 2011 to the Copyright line.
29081 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
29082 comments.
29083 (setup_regno_cost_classes_by_mode): Ditto.
29084
29085 Initial patches from ira-improv branch:
29086
29087 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
29088
f60c2554 29089 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
29090 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
29091 (ira_create_allocno): Remove initialization of
29092 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
29093 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
29094 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29095 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
29096 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
29097 Initialize ALLOCNO_ADD_DATA.
29098 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
29099 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
29100 ALLOCNO_REG.
29101 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
29102 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
29103
29104 * ira.c (ira_reallocate): Remove.
29105 (setup_pressure_classes): Call
29106 ira_init_register_move_cost_if_necessary. Use
29107 ira_register_move_cost instead of ira_get_register_move_cost.
29108 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
29109 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
29110
29111 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
29112 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
29113 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
29114 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
29115 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
29116 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
29117 Fix formatting.
7a81008b 29118 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
29119 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
29120 (struct allocno_color_data): New.
29121 (allocno_color_data_t): New typedef.
29122 (allocno_color_data): New definition.
29123 (ALLOCNO_COLOR_DATA): New macro.
29124 (struct object_color_data): New.
29125 (object_color_data_t): New typedef.
29126 (object_color_data): New definition.
29127 (OBJECT_COLOR_DATA): New macro.
29128 (update_copy_costs, calculate_allocno_spill_cost): Call
29129 ira_init_register_move_cost_if_necessary. Use
29130 ira_register_move_cost instead of ira_get_register_move_cost.
29131 (move_spill_restore, update_curr_costs): Ditto.
29132 (allocno_spill_priority): Make it inline.
7a81008b 29133 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
29134 (struct coalesce_data, coalesce_data_t): New.
29135 (allocno_coalesce_data): New definition.
29136 (ALLOCNO_COALESCE_DATA): New macro.
29137 (merge_allocnos, coalesced_allocno_conflict_p): Use
29138 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
29139 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
29140 (coalesce_allocnos): Ditto.
29141 (setup_coalesced_allocno_costs_and_nums): Ditto.
29142 (collect_spilled_coalesced_allocnos): Ditto.
29143 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
29144 (setup_slot_coalesced_allocno_live_ranges): Ditto.
29145 (coalesce_spill_slots): Ditto.
29146 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
29147 free allocno_coalesce_data.
29148
29149 * ira-conflicts.c: Fix formatting.
29150 (process_regs_for_copy): Call
29151 ira_init_register_move_cost_if_necessary. Use
29152 ira_register_move_cost instead of ira_get_register_move_cost.
29153 (build_object_conflicts): Optimize.
29154
29155 * ira-costs.c (record_reg_classes): Optimize. Call
29156 ira_init_register_move_cost_if_necessary. Use
29157 ira_register_move_cost, ira_may_move_in_cost, and
29158 ira_may_move_out_cost instead of ira_get_register_move_cost and
29159 ira_get_may_move_cost.
29160 (record_address_regs): Ditto.
29161 (scan_one_insn): Optimize.
29162 (find_costs_and_classes): Optimize.
29163 (process_bb_node_for_hard_reg_moves): Call
29164 ira_init_register_move_cost_if_necessary. Use
29165 ira_register_move_cost instead of ira_get_register_move_cost.
29166
29167 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
29168 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
29169 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
29170 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
29171 definitions.
29172 (ira_initiate_emit_data, ira_finish_emit_data)
29173 (create_new_allocno): New functions.
7a81008b 29174 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
29175 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
29176 Use ira_register_move_cost instead of ira_get_register_move_cost.
29177
29178 * ira-int.h: Fix some comments.
7a81008b
UB
29179 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
29180 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
29181 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
29182 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
29183 add_data.
29184 (struct ira_allocno): Make mode and aclass a bitfield. Move other
29185 bitfield after mode. Make hard_regno a short int. Make
29186 hard_regno short. Remove first_coalesced_allocno and
29187 next_coalesced_allocno. Move mem_optimized_dest_p,
29188 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
29189 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
29190 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
29191 temp, colorable_p. Add new member add_data.
29192 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
29193 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
29194 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
29195 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
29196 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
29197 (ALLOCNO_ADD_DATA): New macro.
29198 (ira_emit_data_t): New typedef.
29199 (struct ira_emit_data): New. Move mem_optimized_dest_p,
29200 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
29201 from struct ira_allocno.
29202 (ALLOCNO_EMIT_DATA): New macro.
29203 (ira_allocno_emit_data, allocno_emit_reg): New.
29204 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 29205 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
29206 (OBJECT_ADD_DATA): New macro.
29207 (ira_reallocate): Remove.
29208 (ira_initiate_emit_data, ira_finish_emit_data): New.
29209 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
29210 (ira_init_register_move_cost_if_necessary): New.
29211 (ira_object_conflict_iter_next): Merge into
29212 ira_object_conflict_iter_cond.
7a81008b 29213 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 29214
f60c2554 29215 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
29216 ira_init_register_move_cost_if_necessary. Use
29217 ira_register_move_cost instead of ira_get_register_move_cost.
29218
29219 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
29220
29221 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
29222
29223 * ira-costs.c: Fix formatting.
29224 (cost_classes, cost_classes_num): Remove.
29225 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
29226 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
29227 (cost_classes_del, cost_classes_htab): New.
29228 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
29229 (initiate_regno_cost_classes, setup_cost_classes): New.
29230 (setup_regno_cost_classes_by_aclass): New.
7a81008b 29231 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
29232 (record_reg_classes): Use regno_cost_classes instead of
29233 cost_classes. Move checking opposite operand up.
29234 (record_address_regs): Use regno_cost_classes
29235 instead of cost_classes.
29236 (scan_one_insn): Ditto. Use always general register.
29237 (print_allocno_costs): Use regno_cost_classes instead of
29238 cost_classes.
29239 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
29240 (find_costs_and_classes): Set up cost classes for each registers.
29241 Use also their mode for this. Use regno_cost_classes instead of
29242 cost_classes.
29243 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
29244 cost_classes.
29245 (free_ira_costs, ira_init_costs): Don't use cost_classes.
29246 (ira_costs, ira_set_pseudo_classes): Call
29247 initiate_regno_cost_classes and finish_regno_cost_classes.
29248
29249 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
29250
29251 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
29252
29253 * target.def (ira_cover_classes): Remove.
29254
7a81008b 29255 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
29256
29257 * doc/tm.texi.in: Ditto.
29258
29259 * ira-conflicts.c: Remove mentioning cover classes from the file.
29260 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 29261 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
29262
29263 * targhooks.c (default_ira_cover_classes): Remove.
29264
29265 * targhooks.h (default_ira_cover_classes): Ditto.
29266
29267 * haifa-sched.c: Remove mentioning cover classes from the file.
29268 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
29269 ira_pressure_classes and ira_pressure_classes_num instead of
29270 ira_reg_class_cover_size and ira_reg_class_cover. Use
29271 sched_regno_pressure_class instead of sched_regno_cover_class.
29272 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
29273 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29274
29275 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
29276 classes from the file.
29277 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
29278 (struct object_hard_regs, struct object_hard_regs_node): New.
29279 (struct ira_object): New members profitable_hard_regs,
29280 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
29281 (struct ira_allocno): Rename cover_class to aclass. Rename
29282 cover_class_cost and updated_cover_class_cost to class_cost and
29283 updated_class_cost. Remove splay_removed_p and
29284 left_conflict_size. Add new members colorable_p.
29285 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
29286 (ALLOCNO_COLORABLE_P): New macro.
29287 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
29288 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
29289 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
29290 (OBJECT_...): Rename parameter C to O.
29291 (OBJECT_PROFITABLE_HARD_REGS): New macro.
29292 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
29293 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
29294 (struct target_ira_int): New members x_ira_max_memory_move_cost,
29295 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
29296 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
29297 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
29298 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
29299 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
29300 x_ira_reg_class_subunion.
29301 (ira_max_memory_move_cost, ira_max_register_move_cost)
29302 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
29303 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
29304 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 29305 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
29306 (ira_reg_class_union): Rename to ira_reg_class_subunion.
29307 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29308 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29309 (ira_tune_allocno_costs_and_cover_classes): Rename to
29310 ira_tune_allocno_costs.
29311 (ira_debug_hard_regs_forest): New.
29312 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
29313 (ira_object_conflict_iter_next): Fix comments.
7a81008b 29314 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
29315 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
29316 cover_class to aclass.
29317 (ira_allocate_and_accumulate_costs): Ditto.
29318 (ira_allocate_and_set_or_copy_costs): Ditto.
29319
29320 * opts.c (decode_options): Remove ira_cover_class check.
29321
29322 * ira-color.c: Remove mentioning cover classes from the file. Use
29323 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
29324 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
29325 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
29326 (splay-tree.h): Remove include.
29327 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
29328 before copy_freq_compare_func.
29329 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
29330 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
29331 New definitions.
29332 (hard_regs_roots, hard_regs_node_vec): Ditto.
29333 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
29334 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
29335 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
29336 (create_new_object_hard_regs_node): Ditto.
29337 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 29338 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
29339 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
29340 Ditto.
29341 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
29342 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
29343 (remove_unused_object_hard_regs_nodes): Ditto.
29344 (enumerate_object_hard_regs_nodes): Ditto.
29345 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
29346 (object_hard_regs_subnode_t): Ditto.
29347 (struct object_hard_regs_subnode): Ditto.
29348 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
29349 (setup_object_hard_regs_subnode_index): Ditto.
29350 (get_object_hard_regs_subnodes_num): Ditto.
29351 (form_object_hard_regs_nodes_forest): Ditto.
29352 (finish_object_hard_regs_nodes_tree): Ditto.
29353 (finish_object_hard_regs_nodes_forest): Ditto.
29354 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 29355 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
29356 (pseudos_have_intersected_live_ranges_p): Rename to
29357 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
29358 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
29359 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
29360 (update_copy_costs): Remove assert. Skip cost update if the hard
29361 reg does not belong the class.
29362 (assign_hard_reg): Process only profitable hard regs.
29363 (uncolorable_allocnos_num): Make it scalar.
29364 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
29365 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
29366 and ira_reg_class_max_nregs.
29367 (bucket_allocno_compare_func): Check frequency first.
29368 (sort_bucket): Add compare function as a parameter.
29369 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
29370 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
29371 (push_allocno_to_stack): Rewrite for checking new allocno
29372 colorability.
7a81008b 29373 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
29374 (push_only_colorable): Pass new parameter to sort_bucket.
29375 (push_allocno_to_spill): Remove.
29376 (allocno_spill_priority_compare): Make it inline and rewrite.
29377 (splay_tree_allocate, splay_tree_free): Remove.
29378 (allocno_spill_sort_compare): New function.
29379 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
29380 build and use splay tree. Choose first allocno in uncolorable
29381 allocno bucket to spill. Remove setting spill cost.
29382 (all_conflicting_hard_regs): Remove.
29383 (setup_allocno_available_regs_num): Check only profitable hard
29384 regs. Print info about hard regs nodes.
29385 (setup_allocno_left_conflicts_size): Remove.
29386 (put_allocno_into_bucket): Don't call
7a81008b 29387 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
29388 (improve_allocation): New.
29389 (color_allocnos): Call setup_profitable_hard_regs,
29390 form_object_hard_regs_nodes_forest, improve_allocation,
29391 finish_object_hard_regs_nodes_forest. Setup spill cost.
29392 (print_loop_title): Use pressure classes.
29393 (color_allocnso): Ditto.
29394 (do_coloring): Remove allocation and freeing splay_tree_node_pool
29395 and allocnos_for_spilling.
29396 (ira_sort_regnos_for_alter_reg): Don't setup members
29397 {first,next}_coalesced_allocno.
29398 (color): Remove allocating and freeing removed_splay_allocno_vec.
29399 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
29400 prohibited_class_mode_regs.
29401
29402 * ira-lives.c: Remove mentioning cover classes from the file. Fix
29403 formatting.
29404 (update_allocno_pressure_excess_length): Use pressure classes.
29405 (inc_register_pressure, dec_register_pressure): Check for pressure
29406 class.
29407 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
29408 pressure class. Use ira_reg_class_nregs instead of
29409 ira_reg_class_max_nregs.
29410 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
29411 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
29412 (single_reg_class): Use ira_reg_class_nregs instead of
29413 ira_reg_class_max_nregs.
29414 (process_bb_node_lives): Use pressure classes.
29415
29416 * ira-emit.c: Remove mentioning cover classes from the file. Use
29417 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
29418 (change_loop): Use pressure classes.
29419 (modify_move_list): Call ira_set_allocno_class instead of
29420 ira_set_allocno_cover_class.
29421
29422 * ira-build.c: Remove mentioning cover classes from the file. Use
29423 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
29424 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
29425 ALLOCNO_UPDATED_CLASS_COST instead of
29426 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
29427 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
29428 (ira_create_allocno): Remove initialization of
29429 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
29430 ALLOCNO_COLORABLE_P.
29431 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
29432 Update conflict regs for the objects.
29433 (create_cap_allocno): Remove assert. Don't propagate
29434 ALLOCNO_AVAILABLE_REGS_NUM.
29435 (ira_free_allocno_costs): New function.
29436 (finish_allocno): Change a part of code into call of
29437 ira_free_allocno_costs.
29438 (low_pressure_loop_node_p): Use pressure classes.
29439 (object_range_compare_func): Don't compare classes.
29440 (setup_min_max_conflict_allocno_ids): Ditto.
29441
29442 * loop-invariant.c: Remove mentioning cover classes from the file.
29443 Use ira_pressure_classes and ira_pressure_classes_num instead of
29444 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
29445 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
29446 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29447 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
29448 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
29449 STACK_REG_COVER_CLASS.
29450 (get_regno_cover_class): Rename to get_regno_pressure_class.
29451 (move_loop_invariants): Initialize and finalize regstat.
29452
29453 * ira.c: Remove mentioning cover classes from the file. Add
29454 comments about coloring without cover classes. Use ALLOCNO_CLASS
29455 instead of ALLOCNO_COVER_CLASS. Fix formatting.
29456 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
29457 setup_class_subset_and_memory_move_costs.
29458 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
29459 (setup_cover_and_important_classes): Rename to
29460 setup_allocno_and_important_classes.
29461 (setup_class_translate_array): New.
29462 (setup_class_translate): Call it for allocno and pressure classes.
29463 (cover_class_order): Rename to allocno_class_order.
29464 (comp_reg_classes_func): Use ira_allocno_class_translate instead
29465 of ira_class_translate.
29466 (reorder_important_classes): Set up ira_important_class_nums.
29467 (setup_reg_class_relations): Set up ira_reg_class_superunion.
29468 (print_class_cover): Rename to print_classes. Add parameter.
29469 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
29470 Print pressure classes too.
29471 (find_reg_class_closure): Rename to find_reg_classes. Don't call
29472 setup_reg_subclasses.
7a81008b 29473 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
29474 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29475 (setup_prohibited_class_mode_regs): Use
7a81008b 29476 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
29477 (clarify_prohibited_class_mode_regs): New function.
29478 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
29479 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
29480 (ira_init_once): Initialize them.
29481 (free_register_move_costs): Process them.
29482 (ira_init): Move calls of find_reg_classes and
29483 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
29484 Call clarify_prohibited_class_mode_regs.
29485 (ira_no_alloc_reg): Remove.
29486 (too_high_register_pressure_p): Use pressure classes.
29487
29488 * sched-deps.c: Remove mentioning cover classes from the file.
29489 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
29490 ira_pressure_classes and ira_pressure_classes_num instead of
29491 ira_reg_class_cover_size and ira_reg_class_cover.
29492 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
29493 sched_regno_pressure_class instead of sched_regno_cover_class.
29494 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
29495 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
29496
29497 * ira.h: Add 2010 to Copyright.
29498 (ira_no_alloc_reg): Remove external.
29499 (struct target_ira): Rename x_ira_hard_regno_cover_class,
29500 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
29501 x_ira_class_translate to x_ira_hard_regno_allocno_class,
29502 x_ira_allocno_classes_num, x_ira_allocno_classes, and
29503 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
29504 x_ira_pressure_classes, x_ira_pressure_class_translate, and
29505 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
29506 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
29507 x_ira_no_alloc_regs.
7a81008b 29508 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
29509 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
29510 ira_allocno_classes_num and ira_allocno_classes.
29511 (ira_class_translate): Rename to ira_allocno_class_translate.
29512 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
29513 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
29514 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
29515 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
29516 (ira_no_alloc_regs): New.
29517
29518 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
29519 classes from the file. Use ALLOCNO_CLASS instead of
29520 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
29521 ALLOCNO_COVER_CLASS_COST.
29522 (regno_cover_class): Rename to regno_aclass.
29523 (record_reg_classes): Use ira_reg_class_subunion instead of
29524 ira_reg_class_union.
29525 (record_address_regs): Check overflow.
29526 (scan_one_insn): Ditto.
7a81008b 29527 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
29528 (print_pseudo_costs): Use REG_N_REFS.
29529 (find_costs_and_classes): Use classes intersected with them on the
29530 1st pass. Check overflow. Use ira_reg_class_subunion instead of
29531 ira_reg_class_union. Use ira_allocno_class_translate and
29532 regno_aclass instead of ira_class_translate and regno_cover_class.
29533 Modify code for finding regno_aclass. Setup preferred classes for
29534 the next pass.
29535 (setup_allocno_cover_class_and_costs): Rename to
29536 setup_allocno_class_and_costs. Use regno_aclass instead of
29537 regno_cover_class. Use ira_set_allocno_class instead of
29538 ira_set_allocno_cover_class.
29539 (init_costs, finish_costs): Use regno_aclass instead of
29540 regno_cover_class.
29541 (ira_costs): Use setup_allocno_class_and_costs instead of
29542 setup_allocno_cover_class_and_costs.
29543 (ira_tune_allocno_costs_and_cover_classes): Rename to
29544 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
29545 by processing objects. Use ira_reg_class_max_nregs instead of
29546 ira_reg_class_nregs.
29547
29548 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
29549
29550 * sched-int.h: Remove mentioning cover classes from the file.
29551 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
29552
29553 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
29554 classes from the file.
29555 (struct reg_pref): Rename coverclass into allocnoclass.
29556 (reg_cover_class): Rename to reg_allocno_class.
29557
7a81008b 29558 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
29559
29560 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
29561
29562 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
29563
29564 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
29565
29566 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
29567
29568 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
29569
29570 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
29571
29572 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
29573
29574 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
29575
29576 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
29577
29578 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
29579 (i386_ira_cover_classes): Ditto.
29580
29581 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
29582
29583 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
29584
29585 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
29586
29587 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
29588
29589 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
29590
29591 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
29592
29593 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
29594 (mips_ira_cover_classes): Ditto.
29595
29596 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
29597
29598 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
29599
29600 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
29601
29602 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
29603
29604 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
29605
29606 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
29607 (IRA_COVER_CLASSES_VSX): Ditto.
29608
29609 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
29610 (rs6000_ira_cover_classes): Ditto.
29611
29612 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
29613
29614 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
29615
29616 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
29617
29618 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
29619
29620 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
29621
29622 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
29623
29624 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
29625
29626 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
29627
29628 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
29629
29630 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
29631
2b80199f
JJ
296322011-03-29 Jakub Jelinek <jakub@redhat.com>
29633
71dae1fe
JJ
29634 PR debug/48253
29635 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
29636 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
29637 dw_fde_unlikely_section_end_label, cold_in_std_section,
29638 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
29639 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
29640 fields.
29641 (output_fde): Use dw_fde_second_{begin,end} if second is
29642 true, otherwise dw_fde_{begin,end}.
29643 (output_call_frame_info): Test dw_fde_second_begin != NULL
29644 instead of dw_fde_switched_sections.
29645 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
29646 fields, initialize new fields. Initialize in_std_section
29647 unconditionally from the first partition.
29648 (dwarf2out_end_epilogue): Don't override dw_fde_end when
29649 dw_fde_second_begin is non-NULL.
29650 (dwarf2out_switch_text_section): Stop initializing removed
29651 dw_fde_struct fields, initialize new fields, initialize
29652 also dw_fde_end here. Set dw_fde_switch_cfi even when
29653 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
29654 (struct var_loc_list_def): Add last_before_switch field.
29655 (arange_table, arange_table_allocated, arange_table_in_use,
29656 ARANGE_TABLE_INCREMENT, add_arange): Removed.
29657 (size_of_aranges): Count !in_std_section and !second_in_std_section
29658 hunks in fdes, instead of looking at arange_table_in_use.
29659 (output_aranges): Add aranges_length argument, don't call
29660 size_of_aranges here. Instead of using aranges_table*
29661 emit ranges for fdes when !in_std_section resp.
29662 !second_in_std_section.
29663 (dw_loc_list): Break ranges crossing section switch.
29664 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 29665 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
29666 (gen_subprogram_die): Don't call add_arange. Use
29667 dw_fde_{begin,end} for first partition and if switched
29668 section dw_fde_second_{begin,end} for the second.
29669 (var_location_switch_text_section_1,
29670 var_location_switch_text_section): New functions.
29671 (dwarf2out_begin_function): Initialize cold_text_section even
29672 when function_section () isn't text_section.
29673 (prune_unused_types): Don't walk arange_table.
29674 (dwarf2out_finish): Don't needlessly test
29675 flag_reorder_blocks_and_partition when testing cold_text_section_used.
29676 If info_section_emitted, call size_of_aranges and if it indicates
29677 non-empty .debug_aranges, call output_aranges with the computed
29678 size. Stop using removed dw_fde_struct fields, use
29679 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
29680 for second.
29681
2b80199f
JJ
29682 PR debug/48203
29683 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
29684 create ENTRY_VALUE if incoming or address of incoming's MEM
29685 is a hard REG.
29686 * dwarf2out.c (mem_loc_descriptor): Don't emit
29687 DW_OP_GNU_entry_value of DW_OP_fbreg.
29688 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
29689 on ENTRY_VALUE is able to find the canonical parameter VALUE.
29690 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
29691 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
29692 ENTRY_VALUE_EXPs.
29693 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
29694 is a REG_P or MEM_P with REG_P address, compute hash directly
29695 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
29696 (preserve_only_constants): Don't clear VALUES forwaring
29697 ENTRY_VALUE to some other VALUE.
29698
8a445129
RS
296992011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
29700
29701 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
29702 instead of GEN_INT.
29703
c82fee88
EB
297042011-03-28 Eric Botcazou <ebotcazou@adacore.com>
29705
29706 * cfgexpand.c (expand_gimple_cond): Always set the source location and
29707 block before expanding the statement.
29708 (expand_gimple_stmt_1): Likewise. Set them here...
29709 (expand_gimple_stmt): ...and not here. Tidy.
29710 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
29711 unknown.
29712
e45425ec
SB
297132011-03-28 Steven Bosscher <steven@gcc.gnu.org>
29714
29715 * Makefile.in: New rule for cprop.o.
29716 * gcse.c: Move constant/copy propagation to cprop.c.
29717 (compute_local_properties): Only handle expression tables.
29718 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
29719 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
29720 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
29721 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 29722 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
29723 compute_cprop_data, find_used_regs, try_replace_reg,
29724 find_avail_set, cprop_jump, constprop_register, cprop_insn,
29725 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
29726 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
29727 find_bypass_set, reg_killed_on_edge, bypass_block,
29728 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
29729 execute_rtl_cprop, pass_rtl_cprop): Move to...
29730 * cprop.c: ...here. New file, constant/copy propagation for RTL
29731 moved from gcse.c to here with minor cleanups in duplicated code.
29732
c09d5426
L
297332011-03-28 H.J. Lu <hongjiu.lu@intel.com>
29734
29735 * config/i386/i386.c (flag_opts): Fix a typo in
29736 -mavx256-split-unaligned-store.
29737
9eaa7740
AS
297382011-03-28 Anatoly Sokolov <aesok@post.ru>
29739
29740 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
29741 LIBCALL_VALUE): Remove macros.
29742 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29743 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29744 (h8300_function_value, h8300_libcall_value,
29745 h8300_function_value_regno_p): New functions.
29746
dcec2be2
AS
297472011-03-28 Anatoly Sokolov <aesok@post.ru>
29748
29749 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
29750
520af9ec
JL
297512011-03-28 Jeff Law <law@redhat.com>
29752
29753 * tree-ssa-threadupdate.c (redirect_edges): Call
29754 create_edge_and_update_destination_phis as needed.
29755 (create_edge_and_update_destination_phis): Accept new BB argument.
29756 All callers updated.
29757 (thread_block): Do not update the profile when threading around
29758 intermediate blocks.
29759 (thread_single_edge): Likewise.
29760 (determine_bb_domination_status): If BB is not a successor of the
29761 loop header, return NONDOMINATING.
29762 (register_jump_thread): Note when we register a jump thread around
29763 an intermediate block.
29764 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
29765 (thread_across_edge): Use it.
29766
7450b54f
TG
297672011-03-28 Tristan Gingold <gingold@adacore.com>
29768
29769 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
29770 when for_return is 2.
29771
649beb33
JL
297722011-03-28 Jeff Law <law@redhat.com>
29773
29774 * var-tracking.c (canonicalize_values_mark): Delete unused
29775 lhs assignment.
29776 (canonicalize_values_star, set_variable_part): Likewise.
29777 (clobber_variable_part, delete_variable_part): Likewise.
29778
d5b8da97
SB
297792011-03-28 Steven Bosscher <steven@gcc.gnu.org>
29780
29781 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
29782
322dd859
MJ
297832011-03-28 Martin Jambor <mjambor@suse.cz>
29784
29785 * tree-inline.c (expand_call_inline): Do not check that destination
29786 node is analyzed.
29787 (optimize_inline_calls): Assert that destination node is analyzed.
29788 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
29789 not call tree_lowering_passes.
29790 * cgraph.h (cgraph_analyze_function): Declare.
29791 * cgraphunit.c (cgraph_analyze_function): Make public.
29792
aa53e58b
JM
297932011-03-28 Joseph Myers <joseph@codesourcery.com>
29794
29795 * config/sparc/sparc-opts.h: New.
29796 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
29797 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
29798 (sparc_option_override): Store processor_type enumeration rather
29799 than string in cpu_default. Remove name and enumeration from
29800 cpu_table. Directly default -mcpu then default -mtune from -mcpu
29801 without using sparc_select. Use target_flags_explicit instead of
29802 fpu_option_set.
29803 * config/sparc/sparc.h (enum processor_type): Move to
29804 sparc-opts.h.
29805 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
29806 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
29807 HeaderInclude entry.
29808 (mcpu=, mtune=): Use Var and Enum.
29809 (sparc_processor_type): New Enum and EnumValue entries.
29810
dd350eba
RO
298112011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29812 Iain Sandoe <iains@gcc.gnu.org>
29813
29814 PR target/48245
29815 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
29816
1b29f05e
EB
298172011-03-28 Eric Botcazou <ebotcazou@adacore.com>
29818
29819 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
29820 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
29821 Insert new statements at it in lieu of STMT.
29822 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
29823 * tree-vect-stmts.c (vectorizable_store): Likewise.
29824 (vectorizable_load): Likewise.
29825
506e6808
UB
298262011-03-28 Uros Bizjak <ubizjak@gmail.com>
29827
29828 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
29829 (divtf3): Ditto.
29830 (multf3): Ditto.
29831 (subtf3): Ditto.
29832
2e939ee9
L
298332011-03-27 H.J. Lu <hongjiu.lu@intel.com>
29834
29835 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
29836 unaligned 256bit load/store.
29837 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
29838 (*avx_movdqu<avxmodesuffix>): Likewise.
29839
5e85ab88
JDA
298402011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29841
29842 PR target/48288
29843 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
29844 * config/pa/pa.md (iordi3): Use new predicate in expander.
29845 (iorsi3): Likewise.
29846
47be3d6d
AS
298472011-03-27 Anatoly Sokolov <aesok@post.ru>
29848
506e6808 29849 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 29850 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
29851 * config/mips/mips-protos.h (mips_function_value): Remove.
29852 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
29853 (mips_function_value_1): ... this. Make static. Handle receiving
29854 the function type in 'fn_decl_or_type' argument.
29855 (mips_function_value, mips_libcall_value,
29856 mips_function_value_regno_p): New function.
29857 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29858 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29859
d253656a
L
298602011-03-27 H.J. Lu <hongjiu.lu@intel.com>
29861
29862 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
29863 and -mavx256-split-unaligned-store.
29864 (ix86_option_override_internal): Split 32-byte AVX unaligned
29865 load/store by default.
29866 (ix86_avx256_split_vector_move_misalign): New.
29867 (ix86_expand_vector_move_misalign): Use it.
29868
29869 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
29870 -mavx256-split-unaligned-store.
29871
29872 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
29873 256bit load/store. Generate unaligned store on misaligned memory
29874 operand.
29875 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
29876 256bit load/store.
29877 (*avx_movdqu<avxmodesuffix>): Likewise.
29878
29879 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
29880 -mavx256-split-unaligned-store.
29881
1ea9206a
RS
298822011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
29883
29884 PR target/38598
29885 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
29886 Update commentary.
29887
b99ce2a8
RS
298882011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
29889
29890 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
29891 opno arguments with an expand_operand. Use create_input_operand.
29892 (mips_prepare_builtin_target): Delete.
29893 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
29894 functions.
29895 (mips_expand_builtin_direct): Use create_output_operand and
29896 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
29897 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
29898 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
29899
69d52339
IR
299002011-03-27 Ira Rosen <ira.rosen@linaro.org>
29901
29902 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
29903 function.
29904 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
29905
ba5e9aca
EB
299062011-03-26 Eric Botcazou <ebotcazou@adacore.com>
29907
29908 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
29909 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
29910 basic blocks and call commit_edge_insertions directly.
29911 (fixup_abnormal_edges): Move from here to...
29912 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
29913 on the edges and return whether some have actually been inserted.
29914 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
29915 compensation code.
29916
5d369d58
AB
299172011-03-26 Andrey Belevantsev <abel@ispras.ru>
29918
29919 PR rtl-optimization/48144
29920 * sel-sched-ir.c (merge_history_vect): Factor out from ...
29921 (merge_expr_data): ... here.
29922 (av_set_intersect): Rename to av_set_code_motion_filter.
29923 Update all callers. Call merge_history_vect when an expression
29924 is found in both sets.
29925 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
29926
f082c000
AM
299272011-03-26 Alan Modra <amodra@gmail.com>
29928
29929 * config/rs6000/predicates.md (word_offset_memref_op): Handle
29930 cmodel medium addresses.
29931 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
29932 64-bit gpr loads and stores.
29933 (rs6000_secondary_reload_ppc64): New function.
29934 * config/rs6000/rs6000-protos.h: Declare it.
29935 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
29936
8ac5e12e
AM
299372011-03-26 Alan Modra <amodra@gmail.com>
29938
29939 PR target/47487
29940 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
29941 GNU Go in traceback table.
29942
c2654ded
RH
299432011-03-25 Richard Henderson <rth@redhat.com>
29944
29945 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
29946 if there are exactly 6 operands.
29947 (set_storage_via_setmem): Similarly.
29948
ba78087b
KT
299492011-03-25 Kai Tietz <ktietz@redhat.com>
29950
29951 * collect2.c (write_c_file_stat): Handle backslash
29952 as right-hand directory separator.
29953 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
29954 checking just for slash.
29955 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
29956 instead of checking for trailing slash.
29957 * gcc.c (record_temp_file): Use filename_cmp instead
29958 of strcmp.
29959 (do_spec_1): Likewise.
29960 (replace_outfile_spec_function): Likewise.
29961 (is_directory): Use filename_ncmp instead of strncmp.
29962 (print_multilib_info): Likewise.
29963 * gcov.c (find_source): Use filename_cmp instead
29964 instead of strcmp.
29965 (make_gcov_file_name): Fix order of slash/backslash
29966 checks.
29967 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
29968 (add_standard_paths): Likewise.
29969 * mips-tfile.c (saber_stop): Handle backslash.
29970 * prefix.c (update_path): Use filename_ncmp instead of
29971 strncmp.
29972 * profile.c (output_location): Use filename_cmp instead
29973 of strcmp.
29974 * read-md.c (handle_toplevel_file): Handle backslash.
29975 * tlink.c (frob_extension): Likewise.
29976 * tree-cfg.c (same_line_p): Use filename_cmp instead of
29977 strcmp.
29978 * tree-dump.c (dequeue_and_dump): Handle backslash.
29979 * tree.c (get_file_function_name): Likewise.
29980 * gengtype.c (read_input_list): Likewise.
29981 (get_file_realbasename): Likewise.
29982 (get_output_file_with_visibility): Use filename_cmp
29983 instead of strcmp.
29984
75f6ec9a
RS
299852011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
29986
29987 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
29988 case to VFPv1.
29989
6c4e2997
NF
299902011-03-25 Nathan Froyd <froydnj@codesourcery.com>
29991
29992 * fold-const.c (expr_location_or): New function.
29993 (fold_truth_not_expr): Call it.
29994
0edf1bb2
JL
299952011-03-25 Jeff Law <law@redhat.com>
29996
29997 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
29998 va_end.
29999 * c-family/c-common.c (def_fn_type): Likewise.
0edf1bb2
JL
30000 * emit-rtl.c (gen_rtvec): Likewise.
30001 * lto/lto-lang.c (def_fn_type): Likewise.
30002
fdc2de95
RG
300032011-03-25 Richard Guenther <rguenther@suse.de>
30004
30005 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
30006 also generate copies.
30007 (fini_copy_prop): Handle constant values properly.
30008
21385db0
JJ
300092011-03-25 Jakub Jelinek <jakub@redhat.com>
30010
30011 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
30012 mode size instead of bitsize with DWARF2_ADDR_SIZE.
30013 (hash_loc_operands, compare_loc_operands): Handle
30014 DW_OP_GNU_entry_value.
30015
6510e8bb
KT
300162011-03-25 Kai Tietz <ktietz@redhat.com>
30017
30018 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
30019 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
30020 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
30021 comment and use macro TARGET_64BIT_MS_ABI instead.
30022 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
30023 and change default behavior for 32-bit MS_ABI.
30024 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
30025 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
30026 32-bit, too.
30027 (ix86_cfun_abi): Likewise.
30028 (ix86_maybe_switch_abi): Adjust comment.
30029 (init_cumulative_args): Check for bit-ness in MS_ABI case.
30030 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
30031 instead of checking for SYSV_ABI.
30032 (ix86_nsaved_sseregs): Likewise.
30033 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
30034 to 16 bytes.
30035 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
30036 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
30037 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
30038 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
30039 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
30040
34019e28
RG
300412011-03-25 Richard Guenther <rguenther@suse.de>
30042
30043 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
30044 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30045 (verify_gimple): Remove.
30046 * tree-cfg.c (verify_gimple_call): Merge verification
30047 from verify_stmts.
30048 (verify_gimple_phi): Merge verification from verify_stmts.
30049 (verify_gimple_label): New function.
30050 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
30051 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
30052 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
30053 (verify_stmts): Rename to verify_gimple_in_cfg.
30054 (verify_gimple_in_cfg): New function.
30055 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
30056 * tree-ssa.c (verify_ssa): Likewise.
30057 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
30058
605896f5
RG
300592011-03-25 Richard Guenther <rguenther@suse.de>
30060
30061 * passes.c (init_optimization_passes): Add FRE pass after
30062 early SRA.
30063
7baa7c13
BS
300642011-03-25 Bernd Schmidt <bernds@codesourcery.com>
30065 Andrew Stubbs <ams@codesourcery.com>
30066
30067 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
30068 for Cortex-A8.
30069 (arm_movdi_vfp_cortexa8): New pattern.
30070 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
30071 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
30072 instructions when tuning for Cortex-A8. Set attribute "arch".
30073 * config/arm/arm.md: Move include arm-tune.md up a bit.
30074 (define_attr "arch"): Add "onlya8" and "nota8" values.
30075 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
30076
45dbce1b
NF
300772011-03-25 Nathan Froyd <froydnj@codesourcery.com>
30078
4ff08abf 30079 PR bootstrap/48282
45dbce1b
NF
30080 Revert:
30081 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
30082
30083 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30084 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
30085 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30086 * passes.c (init_optimization_passes): Move
30087 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30088
ac9a30ae
KT
300892011-03-25 Kai Tietz <ktietz@redhat.com>
30090
30091 * c-typeck.c (comptypes_internal): Replace target
30092 hook call of comp_type_attributes by version in tree.c file.
30093 * gimple.c (gimple_types_compatible_p_1): Likewise.
30094 * tree-ssa.c (useless_type_conversion_p): Likewise.
30095 * tree.c (build_type_attribute_qual_variant): Likewise.
30096 (attribute_value_equal): New static helper function.
30097 (comp_type_attributes): New function.
30098 (merge_attributes): Use attribute_value_equal for comparison.
30099 (attribute_list_contained): Likewise.
30100 * tree.h (comp_type_attributes): New prototype.
30101
afdac116
RG
301022011-03-25 Richard Guenther <rguenther@suse.de>
30103
30104 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
30105 of complex types at -O0.
30106 (verify_gimple_assign_binary): Likewise.
30107 (verify_gimple_assign_ternary): Likewise.
30108
ec6165f8
MW
301092011-03-24 Mark Wielaard <mjw@redhat.com>
30110
30111 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
30112 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
30113
2a5ac39a
MW
301142011-03-24 Mark Wielaard <mjw@redhat.com>
30115
30116 PR debug/48041
30117 * dwarf2out.c (output_abbrev_section): Only write table when
30118 abbrev_die_table_in_use > 1.
30119
e533b2a4
RH
301202011-02-24 Richard Henderson <rth@redhat.com>
30121
30122 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
30123 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
30124 (alpha_expand_unaligned_load_words): Use extql.
30125 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
30126 (emit_insxl): Handle all modes for consistency.
30127
0b2a7367
RH
301282011-02-24 Richard Henderson <rth@redhat.com>
30129
30130 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
30131 (alpha_expand_unaligned_load): Likewise.
30132 (alpha_expand_unaligned_store): Likewise.
30133 (alpha_expand_unaligned_load_words): Likewise.
30134 (alpha_expand_unaligned_store_words): Likewise.
30135 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
30136 (alpha_split_lock_test_and_set_12): Likewise.
30137 (print_operand, alpha_fold_builtin_extxx): Likewise.
30138 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
30139 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
30140 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
30141 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
30142 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
30143 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
30144 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
30145 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
30146 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
30147 (extwl, extll, extql): Similarly.
30148 (inswh, inslh, insqh): Similarly.
30149 (mskbl, mskwl, mskll, mskql): Similarly.
30150 (mskwh, msklh, mskqh): Similarly.
30151
315b2bef
RH
301522011-02-24 Richard Henderson <rth@redhat.com>
30153
30154 * config/alpha/alpha.md (attribute isa): Add er, ner.
30155 (attribute enabled): Handle them.
30156 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
30157
67102517
RH
301582011-02-24 Richard Henderson <rth@redhat.com>
30159
30160 * config/alpha/alpha.md (attribute isa): Add vms.
30161 (attribute enabled): Handle it.
30162 (*movsf): Merge *movsf_{nofix,fix,nofp}.
30163 (*movdf): Merge *movdf_{nofix,fix,nofp}.
30164 (*movtf): Rename from *movtf_internal for consistency.
30165 (*movsi): Merge with *movsi_nt_vms.
30166 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
30167 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
30168 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
30169 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
30170
6aba5cb4
RH
301712011-02-24 Richard Henderson <rth@redhat.com>
30172
30173 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
30174 (extendqisi2, extendhisi2): Likewise.
30175 (extendqidi2): Simplify BWX/non-BWX expansions.
30176 (extendhidi2): Similarly.
30177
bdfb351b
RH
301782011-02-24 Richard Henderson <rth@redhat.com>
30179
30180 * config/alpha/alpha.md (attribute isa): New.
30181 (attribute enabled): New.
30182 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
30183 (zero_extendqisi2, zero_extendqidi2): Similarly.
30184 (zero_extendhisi2, zero_extendhidi2): Similarly.
30185 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
30186
6abe71eb
RH
301872011-02-24 Richard Henderson <rth@redhat.com>
30188
30189 * config/alpha/predicates.md (input_operand): Revert last change;
30190 update comment to mention 32-bit VMS rather than Windows.
30191
7114321e
NF
301922011-03-24 Nathan Froyd <froydnj@codesourcery.com>
30193
30194 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
30195 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
30196 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
30197 * passes.c (init_optimization_passes): Move
30198 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
30199
c8679567
EB
302002011-03-24 Eric Botcazou <ebotcazou@adacore.com>
30201
30202 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
30203
27173058
UB
302042011-03-24 Uros Bizjak <ubizjak@gmail.com>
30205
30206 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
30207 correctly.
30208
6f0c9f06
JJ
302092011-03-24 Jakub Jelinek <jakub@redhat.com>
30210
30211 PR debug/48204
30212 * simplify-rtx.c (simplify_const_unary_operation): Call
30213 real_convert when changing mode class with FLOAT_EXTEND.
30214
662666e5
NC
302152011-03-24 Nick Clifton <nickc@redhat.com>
30216
30217 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
30218 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
30219 * config/rx/rx.c (rx_option_override): Set align_jumps,
30220 align_loops and align_labels if not set by the user.
30221 (rx_align_for_label): New function.
30222 (rx_max_skip_for_label): New function.
30223 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
30224 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
30225 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
30226 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
30227 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
30228
2b99b2b8
RS
302292011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
30230
30231 PR rtl-optimization/48263
30232 * optabs.c (expand_binop_directly): Reinstate convert_modes code
30233 and original commutative_p handling. Use maybe_gen_insn.
30234
ccecd6ea
AK
302352011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30236
30237 * reload.c (find_reloads_subreg_address): Add address_reloaded
30238 parameter and return true there if the full address has been
30239 reloaded.
30240 (find_reloads_toplev): Pass address_reloaded flag.
30241 (find_reloads_address_1): Don't use address_reloaded parameter.
30242
67295642
JL
302432011-03-24 Jeff Law <law@redhat.com>
30244
30245 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
30246 unused variable "ann".
30247 (remove_unused_locals): Likewise.
30248
30249 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
30250 statement.
30251
30252 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
30253 after it is freed.
30254
212aa74f
AK
302552011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30256
30257 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
30258 for invalid symbolic addresses.
30259 (s390_secondary_reload): Don't use s390_check_symref_alignment for
30260 larl operands.
30261
fe784e0d
EB
302622011-03-24 Eric Botcazou <ebotcazou@adacore.com>
30263
30264 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
30265 the argument in calls to fold_truth_not_expr.
30266
63ee8641
NF
302672011-03-24 Nathan Froyd <froydnj@codesourcery.com>
30268
30269 * tree.c (record_node_allocation_statistics): New function.
30270 (make_node_stat, copy_node_stat, build_string): Call it.
30271 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
30272 (build1_stat, build_omp_clause): Likewise.
30273
61be2a1c
RS
302742011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
30275
30276 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
30277 last commit.
30278
a881aaa7
RG
302792011-03-24 Richard Guenther <rguenther@suse.de>
30280
30281 PR tree-optimization/48271
30282 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
30283 blocks that still exist.
30284
dbaa912c
RG
302852011-03-24 Richard Guenther <rguenther@suse.de>
30286
30287 PR tree-optimization/48270
30288 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
30289 not free datarefs before ddrs.
30290
1d60cc55
EB
302912011-03-24 Eric Botcazou <ebotcazou@adacore.com>
30292
30293 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
30294 from the address built for a reference with variable offset.
30295
c78dd519
UB
302962011-03-24 Uros Bizjak <ubizjak@gmail.com>
30297
30298 PR target/48237
30299 * config/i386/i386.md (*movdf_internal_rex64): Do not split
30300 alternatives that can be handled with movq or movabsq insn.
30301 (*movdf_internal): Disable for !TARGET_64BIT.
30302 (*movdf_internal_nointeger): Ditto.
30303 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
30304
b25b9e8f
NF
303052011-03-24 Nathan Froyd <froydnj@codesourcery.com>
30306
30307 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
30308 (FUNCTION_ARG_ADVANCE): Likewise.
30309 * tm.texi.in: Change references to them to hook references.
30310 * tm.texi: Regenerate.
c78dd519 30311 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
30312 (default_function_incoming_arg): Likewise.
30313 (default_function_arg_advance): Likewise.
c78dd519 30314 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
30315 (function_arg_advance): Likewise.
30316 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
30317
190b2187
RG
303182011-03-24 Richard Guenther <rguenther@suse.de>
30319
30320 PR middle-end/48269
30321 * tree-object-size.c (addr_object_size): Do not double-account
30322 for MEM_REF offsets.
30323
a183b5c7
DN
303242011-03-24 Diego Novillo <dnovillo@google.com>
30325
30326 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 30327 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
30328 (lto_input_data_block): Move from lto-opts.c. Make extern.
30329 Update all users.
30330 (lto_input_string): Rename from input_string. Make extern.
30331 Update all users.
30332 * lto-streamer-out.c (lto_output_string_with_length): Rename from
30333 output_string_with_length.
30334 Output 0 to indicate a non-NULL string. Update all callers to
30335 not emit 0.
30336 (lto_output_string): Rename from output_string. Make extern.
30337 Update all users.
30338 (lto_output_decl_state_streams): Make extern.
30339 (lto_output_decl_state_refs): Make extern.
30340 * lto-streamer.h (lto_input_string): Declare.
30341 (lto_input_data_block): Declare.
30342 (lto_output_string): Declare.
30343 (lto_output_string_with_length): Declare.
30344 (lto_output_decl_state_streams): Declare.
30345 (lto_output_decl_state_refs): Declare.
30346
cfef45c8
RG
303472011-03-24 Richard Guenther <rguenther@suse.de>
30348
30349 PR tree-optimization/46562
30350 * tree.c (build_invariant_address): New function.
30351 * tree.h (build_invariant_address): Declare.
30352 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
30353 a renamed function moved ...
30354 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
30355 Take valueization callback parameter.
30356 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
30357 * gimple-fold.h: New file.
30358 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
30359 (ccp_fold, fold_const_aggregate_ref,
30360 fold_ctor_reference, fold_nonarray_ctor_reference,
30361 fold_array_ctor_reference, fold_string_cst_ctor_reference,
30362 get_base_constructor): Move ...
30363 * gimple-fold.c: ... here.
30364 (gimple_fold_stmt_to_constant_1): New function
30365 split out from ccp_fold. Take a valueization callback parameter.
30366 Valueize all operands.
30367 (gimple_fold_stmt_to_constant): New wrapper function.
30368 (fold_const_aggregate_ref_1): New function split out from
30369 fold_const_aggregate_ref. Take a valueization callback parameter.
30370 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
30371 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
30372 invariant POINTER_PLUS_EXPRs to invariant form.
30373 (vn_valueize): New function.
30374 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
30375 * tree-vrp.c (vrp_valueize): New function.
30376 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
30377 to fold statements to constants.
30378 * tree-ssa-pre.c (eliminate): Properly guard propagation of
30379 function declarations.
30380 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
30381 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
30382
5e0a7e40
RS
303832011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
30384
30385 * config/h8300/predicates.md (jump_address_operand): Fix register
30386 mode check.
30387
bfe068c3
IR
303882011-03-24 Ira Rosen <ira.rosen@linaro.org>
30389
30390 * doc/invoke.texi (max-stores-to-sink): Document.
30391 * params.h (MAX_STORES_TO_SINK): Define.
30392 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
30393 if either vectorization or if-conversion is disabled.
30394 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
30395 tree-vect-data-refs.c vect_equal_offsets.
30396 (dr_equal_offsets_p): New function.
30397 (find_data_references_in_bb): Remove static.
30398 * tree-data-ref.h (find_data_references_in_bb): Declare.
30399 (dr_equal_offsets_p): Likewise.
30400 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
30401 (vect_drs_dependent_in_basic_block): Update calls to
30402 vect_equal_offsets.
30403 (vect_check_interleaving): Likewise.
30404 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
30405 (cond_if_else_store_replacement): Rename to...
30406 (cond_if_else_store_replacement_1): ... this. Change arguments and
30407 documentation.
30408 (cond_if_else_store_replacement): New function.
30409 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
30410 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
30411
4908b0bf
CLT
304122011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
30413
30414 PR target/46934
30415 * config/arm/arm.md (casesi): Use the gen_int_mode() function
30416 to subtract lower bound instead of GEN_INT().
30417
2be478a2
JW
304182011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
30419
30420 PR other/48179
30421 PR other/48221
30422 PR other/48234
30423 * doc/extend.texi (Alignment): Move section to match order in TOC.
30424 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
30425 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
30426
0c617be4
JL
304272011-03-23 Jeff Law <law@redhat.com>
30428
30429 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
30430 before removing the edge.
30431
30432 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
30433 it may have been freed by redirect_branch_edge or
30434 redirect_edge_succ_nodup.
30435
58da96fe
RG
304362011-03-23 Richard Guenther <rguenther@suse.de>
30437
c78dd519 30438 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
30439 (check_va_list_escapes): Likewise.
30440 (check_all_va_list_escapes): Likewise.
30441
b8beb4d1
RG
304422011-03-23 Richard Guenther <rguenther@suse.de>
30443
30444 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
30445 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
30446 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
30447 (alias.o): Likewise.
30448 (ipa-type-escape.o): Remove.
30449 (ipa-struct-reorg.o): Likewise.
30450 (GTFILES): Remove ipa-struct-reorg.c.
30451 * alias.c: Do not include ipa-type-escape.h.
30452 * tree-ssa-alias.c: Likewise.
30453 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
30454 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
30455 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
30456 and ipa-type-escape passes.
30457 * tree-pass.h (pass_ipa_type_escape): Remove.
30458 (pass_ipa_struct_reorg): Likewise.
30459 * ipa-struct-reorg.h: Remove.
30460 * ipa-struct-reorg.c: Likewise.
30461 * ipa-type-escape.h: Likewise.
30462 * ipa-type-escape.c: Likewise.
30463 * doc/invoke.texi (-fipa-struct-reorg): Remove.
30464 (--param struct-reorg-cold-struct-ratio): Likewise.
30465 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30466 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
30467 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
30468
f137aa63
AK
304692011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30470
30471 * config/s390/2084.md: Enable all insn reservations also for z9_ec
30472 cpu attribute value.
30473 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
30474 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
30475 * config/s390/s390.c (processor_flags_table): New constant array.
30476 (s390_handle_arch_option): Remove.
30477 (s390_handle_option): Remove s390_handle_arch_option invocations
30478 and OPT_mwarn_framesize_ handling.
30479 (s390_option_override): Remove s390_handle_arch_option invocation.
30480 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
30481 warnings.
30482 * config/s390/s390.md (cpu attribute): Add z9_ec value.
30483 * config/s390/s390.opt (s390_tune, s390_arch)
30484 (march=): Replace s390_arch_option enum and values with
30485 processor_type. Set variable name to s390_arch. Set
30486 initialization value.
30487 (mtune=): Replace s390_arch_option with processor_type. Set
30488 variable name to s390_tune. Set initialization value.
30489
bf90208f
JB
304902011-03-23 Julian Brown <julian@codesourcery.com>
30491
30492 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
30493 accesses which are not naturally aligned.
30494
3460fdf3
RS
304952011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
30496
30497 PR target/47553
30498 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
30499
a5c7d693
RS
305002011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
30501
30502 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
30503 parameter from "int" to "enum insn_code".
30504 (expand_operand_type): New enum.
30505 (expand_operand): New structure.
30506 (create_expand_operand): New function.
30507 (create_fixed_operand, create_output_operand): Likewise
30508 (create_input_operand, create_convert_operand_to): Likewise.
30509 (create_convert_operand_from, create_address_operand): Likewise.
30510 (create_integer_operand): Likewise.
30511 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
30512 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30513 (expand_insn, expand_jump_insn): Likewise.
30514 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
30515 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
30516 (expand_movstr, expand_builtin___clear_cache): Likewise.
30517 (expand_builtin_lock_release): Likewise.
30518 * explow.c (allocate_dynamic_stack_space): Likewise.
30519 (probe_stack_range): Likewise. Allow check_stack to FAIL,
30520 and use the default handling in that case.
30521 * expmed.c (check_predicate_volatile_ok): Delete.
30522 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
30523 (emit_cstore): Likewise.
30524 * expr.c (emit_block_move_via_movmem): Likewise.
30525 (set_storage_via_setmem, expand_assignment): Likewise.
30526 (emit_storent_insn, try_casesi): Likewise.
30527 (emit_single_push_insn): Likewise. Allow the expansion to fail.
30528 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
30529 (expand_vec_shift_expr, expand_binop_directly): Likewise.
30530 (expand_twoval_unop, expand_twoval_binop): Likewise.
30531 (expand_unop_direct, emit_indirect_jump): Likewise.
30532 (emit_conditional_move, vector_compare_rtx): Likewise.
30533 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
30534 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
30535 (expand_sync_lock_test_and_set): Likewise.
30536 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
30537 (emit_unop_insn): Likewise.
30538 (expand_copysign_absneg): Change icode to an insn_code.
30539 (create_convert_operand_from_type): New function.
30540 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
30541 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
30542 (expand_insn, expand_jump_insn): Likewise.
30543 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
30544 than const_int_operand for operand 2.
30545
78fadbab
AK
305462011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30547
30548 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
30549 if possible.
30550
5f02387d
NF
305512011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30552
30553 * emit-rtl.c (emit_pattern_before_noloc): New function.
30554 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
30555 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
30556 (emit_pattern_after_noloc): New function.
30557 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
30558 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
30559
fdf3e18a
NF
305602011-03-22 Nathan Froyd <froydnj@codesourcery.com>
30561
30562 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
30563 (__ffsDI2): Likewise.
30564
42d085c1
RH
305652011-03-22 Richard Henderson <rth@redhat.com>
30566
30567 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
30568 of !TARGET_ABI_OPEN_VMS.
30569 (alpha_trampoline_init, alpha_start_function): Likewise.
30570 (alpha_expand_epilogue, alpha_file_start): Likewise.
30571 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
30572 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
30573 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
30574 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
30575 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
30576
cabbe12a
JM
305772011-03-22 Joseph Myers <joseph@codesourcery.com>
30578
30579 * config/s390/s390-opts.h: New.
30580 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
30581 s390_arch_flags, s390_warn_framesize, s390_stack_size,
30582 s390_stack_guard): Remove.
30583 (s390_handle_arch_option): Return void. Take enum
30584 s390_arch_option value instead of string and searching array.
30585 (s390_handle_option): Don't assert that global structures are in
30586 use. Access variables via opts pointer. Use error_at. Don't use
30587 sscanf for -mstack-guard= or -mstack-size=. Update call to
30588 s390_handle_arch_option.
30589 (s390_option_override): Update call to s390_handle_arch_option.
30590 (s390_emit_prologue): Use %d format for s390_stack_size in
30591 diagnostic. Use %wd for HOST_WIDE_INT.
30592 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
30593 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
30594 * config/s390/s390.opt (config/s390/s390-opts.h): New
30595 HeaderInclude entry.
30596 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
30597 s390_arch_flags, s390_warn_framesize): New Variable entries.
30598 (s390_arch_option): New Enum and EnumValue entries.
30599 (march=): Use Enum instead of Var.
30600 (mstack-guard=, mstack-size=): Use UInteger and Var.
30601 (mtune=): Use Enum.
30602
05b12036
JM
306032011-03-22 Joseph Myers <joseph@codesourcery.com>
30604
30605 * config/score/score.c (score_handle_option): Don't assert that
30606 global structures are in use. Access target_flags via opts
30607 pointer. Use value of -march= option to determine target_flags
30608 settings.
30609 * config/score/score.opt (march=): Use Enum.
30610 (score_arch): New Enum and EnumValue entries.
30611
dd51e35a
JM
306122011-03-22 Joseph Myers <joseph@codesourcery.com>
30613
30614 * config/mep/mep.c (option_mtiny_specified): Remove.
30615 (mep_option_override): Move register handling for -mivc2 from
30616 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
30617 instead of option_mtiny_specified.
30618 (mep_handle_option): Access target_flags via opts pointer. Don't
30619 assert that global structures are in use. Defer part of -mivc2
30620 handling and move it to mep_option_override.
30621 * config/mep/mep.opt (IVC2): New Mask entry.
30622 (mivc2): Use Var and Defer instead of Mask.
30623
4a8d3d91
JM
306242011-03-22 Joseph Myers <joseph@codesourcery.com>
30625
30626 * config/v850/v850-opts.h: New.
30627 * config/v850/v850.c (small_memory): Replace with
30628 small_memory_physical_max array. Make that array static const.
30629 (v850_handle_memory_option): Take integer value of argument. Take
30630 gcc_options pointer, option text and location. Return void.
30631 Update for changes to small memory structures.
30632 (v850_handle_option): Access target_flags via opts pointer. Don't
30633 assert that global structures are in use. Update calls to
30634 v850_handle_memory_option.
c78dd519
UB
30635 (v850_encode_data_area): Update references to small memory settings.
30636 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
30637 (enum small_memory_type): Move to v850-opts.h.
30638 * config/v850/v850.opt (config/v850/v850-opts.h): New
30639 HeaderInclude entry.
30640 (small_memory_max): New Variable entry.
30641 (msda): Replace by pair of options msda= and msda-. Use UInteger.
30642 (mtda, mzda): Likewise.
30643
117fdbfa
JM
306442011-03-22 Joseph Myers <joseph@codesourcery.com>
30645
30646 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
30647 pointer. Don't assert that global structures are in use.
30648
d715091c
JM
306492011-03-22 Joseph Myers <joseph@codesourcery.com>
30650
30651 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
30652 via opts pointer. Don't assert that global structures are in use.
30653
1bb721dc
JM
306542011-03-22 Joseph Myers <joseph@codesourcery.com>
30655
30656 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
30657 (munix=93): Use Var.
30658 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
30659 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
30660 * config/pa/pa-opts.h: New.
30661 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
30662 (pa_handle_option): Don't assert that global structures are in
30663 use. Access target_flags via opts pointer. Don't handle
30664 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
30665 OPT_munix_98 here.
30666 (pa_option_override): Handle deferred OPT_mfixed_range_.
30667
cd8d8754
JM
306682011-03-22 Joseph Myers <joseph@codesourcery.com>
30669
30670 * config/mn10300/mn10300-opts.h: New.
30671 * config/mn10300/mn10300.c (mn10300_processor,
30672 mn10300_tune_string): Remove.
30673 (mn10300_handle_option): Don't assert that global structures are
30674 in use. Access mn10300_processor via opts pointer. Don't handle
30675 OPT_mtune_ here.
30676 * config/mn10300/mn10300.h (enum processor_type): Move to
30677 mn10300-opts.h.
30678 (mn10300_processor): Remove.
30679 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
30680 HeaderInclude entry.
30681 (mn10300_processor): New Variable entry.
30682 (mtune=): Use Var.
30683
24e6e6b1
JM
306842011-03-22 Joseph Myers <joseph@codesourcery.com>
30685
30686 * config/microblaze/microblaze.c: Don't include opts.h.
30687 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
30688 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
30689 (mno-clearbss): Use Var and Warn.
30690
8a784afb
JM
306912011-03-22 Joseph Myers <joseph@codesourcery.com>
30692
30693 * config/m32r/m32r-opts.h: New.
30694 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
30695 (m32r_handle_option): Don't assert that global structures are in
30696 use. Access target_flags and m32r_cache_flush_func via opts
30697 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
30698 OPT_mno_flush_trap here.
30699 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
30700 include of m32r-opts.h.
30701 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
30702 HeaderInclude entry.
30703 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
30704 (mmodel=): Use Enum and Var.
30705 (m32r_model): New Enum and EnumValue entries.
30706 (mno-flush-trap): Use Var.
30707 (msdata=): Use Enum and Var.
30708 (m32r_sdata): New Enum and EnumValue entries.
30709
bbfc9a8c
JM
307102011-03-22 Joseph Myers <joseph@codesourcery.com>
30711
30712 * config/m32c/m32c.c: Don't include opts.h.
30713 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
30714 m32c_handle_option): Remove.
30715 (m32c_option_override): Check global_options_set.x_target_memregs
30716 instead of target_memregs_set.
30717 * config/m32c/m32c.h (target_memregs): Remove.
30718 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
30719 variable.
30720
e24b8335
JM
307212011-03-22 Joseph Myers <joseph@codesourcery.com>
30722
30723 * config/iq2000/iq2000-opts.h: New.
30724 * config/iq2000/iq2000.c: Don't include opts.h.
30725 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 30726 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
30727 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
30728 HeaderInclude entry.
30729 (iq2000_tune): New Variable entry.
30730 (march=): Add comment. Use Enum.
30731 (iq2000_arch): New Enum and EnumValue entries.
30732 (mcpu=): Use Enum and Var.
30733 (iq2000_tune): New Enum and EnumValue entries.
30734
e6cc0c98
JM
307352011-03-22 Joseph Myers <joseph@codesourcery.com>
30736
30737 * config/ia64/ia64-opts.h: New.
30738 * config/ia64/ia64.c (ia64_tune): Remove.
30739 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
30740 here. Use error_at.
30741 (ia64_option_override): Handle deferred OPT_mfixed_range_.
30742 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
30743 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
30744 HeaderInclude entry.
30745 (ia64_tune): New Variable entry.
30746 (mfixed-range=): Use Defer and Var.
30747 (mtune=): Use Enum and Var.
30748 (ia64_tune): New Enum and EnumValue entries.
30749
db25893c
JM
307502011-03-22 Joseph Myers <joseph@codesourcery.com>
30751
30752 * config/frv/frv-opts.h: New.
30753 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
30754 frv-opts.h.
30755 (frv_cpu_type): Remove.
30756 * config/frv/frv.c: Don't include opts.h.
30757 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 30758 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
30759 (frv_cpu_type): New Variable entry.
30760 (frv_cpu): New Enum and EnumValue entries.
30761
6c223f5d
JM
307622011-03-22 Joseph Myers <joseph@codesourcery.com>
30763
30764 * config/cris/cris.c (cris_handle_option): Access target_flags via
30765 opts pointer. Don't assert that global structures are in use.
30766 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
30767 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
30768
bbd399cf
JM
307692011-03-22 Joseph Myers <joseph@codesourcery.com>
30770
30771 * config/bfin/bfin-opts.h: New.
30772 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
30773 bfin_si_revision, bfin_workarounds): Remove.
30774 (bfin_cpus): Make static const.
30775 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
30776 not bfin_lib_id_given.
30777 (bfin_handle_option): Don't set bfin_lib_id_given. Access
30778 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 30779 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
30780 * config/bfin/bfin.h: Include bfin-opts.h.
30781 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
30782 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
30783 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
30784 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
30785 entries.
30786
5e1b4d5a
JM
307872011-03-22 Joseph Myers <joseph@codesourcery.com>
30788
30789 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
30790 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
30791 or -msoft-float here.
30792 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
30793 -msoft-float and -mhard-float.
c78dd519 30794 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
30795 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
30796 msoft-float.
30797 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
30798 -msoft-float.
30799 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
30800 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
30801 not mhard-float.
30802 (LIBGCC_SPEC): Don't handle -msoft-float.
30803 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
30804 -mhard-float.
30805 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
30806 msoft-float.
30807 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
30808 -mfloat-abi=*, not -msoft-float and -mhard-float.
30809 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
30810 -msoft-float.
30811 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
30812 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
30813 mhard-float and msoft-float.
30814 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
30815 mfloat-abi=soft in comments, not mhard-float and msoft-float.
30816 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
30817 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
30818 mhard-float.
30819 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
30820 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
30821 msoft-float.
30822 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
30823 not mhard-float.
30824 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
30825 not msoft-float.
30826
800d1de1
RH
308272011-03-22 Richard Henderson <rth@redhat.com>
30828
30829 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
30830 TARGET_ABI_WINDOWS_NT.
30831 (alpha_output_function_end_prologue): Likewise.
30832 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
30833 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
30834 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
30835 (trap, *movsi_nt_vms): Likewise.
30836 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
30837 (*tablejump_osf_nt_internal): Remove.
30838 * config/alpha/predicates.md (input_operand): Only test Pmode.
30839
c59ddd2b
JM
308402011-03-22 Joseph Myers <joseph@codesourcery.com>
30841
30842 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
30843 via opts pointer. Use error_at. Don't assert that global
30844 structures are in use.
30845
1333f97f
JM
308462011-03-22 Joseph Myers <joseph@codesourcery.com>
30847
30848 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
30849 (ix86_handle_option): Access ix86_isa_flags and
30850 ix86_isa_flags_explicit via opts pointer. Don't assert that
30851 global structures are in use.
30852 (ix86_function_specific_save, ix86_function_specific_restore):
30853 Update ix86_isa_flags_explicit field name.
c78dd519 30854 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
30855 (ix86_isa_flags_explicit): Rename TargetSave entry to
30856 x_ix86_isa_flags_explicit.
30857
75db85d8
RH
308582011-03-22 Richard Henderson <rth@redhat.com>
30859
30860 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
30861 (alpha_option_override, direct_return): Likewise.
30862 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
30863 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
30864 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
30865 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
30866 (alpha_expand_epilogue, alpha_end_function): Likewise.
30867 (alpha_init_libfuncs): Likewise.
30868 (struct machine_function): Remove unicosmk members.
30869 (print_operand) ['t']: Remove.
30870 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
30871 unicosmk_output_module_name, unicosmk_output_common,
30872 current_section_align, unicosmk_output_text_section_asm_op,
30873 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
30874 unicosmk_section_type_flags, unicosmk_unique_section,
30875 unicosmk_asm_named_section, unicosmk_insert_attributes,
30876 unicosmk_output_align, unicosmk_defer_case_vector,
30877 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
30878 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
30879 unicosmk_output_ssib, unicosmk_add_call_info_word,
30880 unicosmk_extern_head, unicosmk_output_default_externs,
30881 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
30882 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
30883 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
30884 * config/alpha/alpha-protos.h: Update.
30885 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
30886 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
30887 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
30888 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
30889 (*mulsi_se, mulvsi3): Likewise.
30890 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
30891 (*divmodsi_internal, call, call_value, realign): Likewise.
30892 (moddi3, umoddi3): Likewise; remove duplicate expander.
30893 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
30894 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
30895 (*movdi_nofix): Remove r/U alternative.
30896 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
30897 * config/alpha/constraints.md ("U"): Remove.
30898 * config/alpha/predicates.md (call_operand"): Don't test
30899 TARGET_ABI_UNICOSMK.
30900
96e45421
JM
309012011-03-22 Joseph Myers <joseph@codesourcery.com>
30902
30903 * target.def (handle_option): Take gcc_options and
30904 cl_decoded_option pointers and location_t.
30905 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
30906 * doc/tm.texi: Regenerate.
30907 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
30908 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
30909 * lto-opts.c (lto_reissue_options): Generate option structure for
30910 targetm.handle_option call.
30911 * opts.c (target_handle_option): Update call to
30912 targetm.handle_option. Remove assertions about values now passed
30913 down to hook.
30914 * targhooks.c (default_target_handle_option): New.
30915 * targhooks.h (default_target_handle_option): Declare.
30916 * config/alpha/alpha.c: Include opts.h.
30917 (alpha_handle_option): Update to new hook interface.
30918 * config/arm/arm.c: Include opts.h.
30919 (arm_handle_option): Update to new hook interface.
30920 * config/arm/t-arm (arm.o): Update dependencies.
30921 * config/bfin/bfin.c: Include opts.h.
30922 (bfin_handle_option): Update to new hook interface.
30923 * config/cris/cris.c: Include opts.h.
30924 (cris_handle_option): Update to new hook interface.
30925 * config/frv/frv.c: Include opts.h.
30926 (frv_handle_option): Update to new hook interface.
30927 * config/i386/i386.c: Include opts.h.
30928 (ix86_handle_option): Update to new hook interface.
30929 (ix86_valid_target_attribute_inner_p): Generate option structure
30930 for call to ix86_handle_option.
30931 * config/i386/t-i386 (i386.o): Update dependencies.
30932 * config/ia64/ia64.c: Include opts.h.
30933 (ia64_handle_option): Update to new hook interface.
30934 * config/ia64/t-ia64 (ia64.o): Update dependencies.
30935 * config/iq2000/iq2000.c: Include opts.h.
30936 (iq2000_handle_option): Update to new hook interface.
30937 * config/m32c/m32c.c: Include opts.h.
30938 (m32c_handle_option): Update to new hook interface.
30939 * config/m32r/m32r.c: Include opts.h.
30940 (m32r_handle_option): Update to new hook interface.
30941 * config/m68k/m68k.c: Include opts.h.
30942 (m68k_handle_option): Update to new hook interface.
30943 * config/mep/mep.c: Include opts.h.
30944 (mep_handle_option): Update to new hook interface.
30945 * config/microblaze/microblaze.c: Include opts.h.
30946 (microblaze_handle_option): Update to new hook interface.
30947 * config/mips/mips.c: Include opts.h.
30948 (mips_handle_option): Update to new hook interface.
30949 * config/mn10300/mn10300.c: Include opts.h.
30950 (mn10300_handle_option): Update to new hook interface.
30951 * config/pa/pa.c: Include opts.h.
30952 (pa_handle_option): Update to new hook interface.
30953 * config/pdp11/pdp11.c: Include opts.h.
30954 (pdp11_handle_option): Update to new hook interface.
30955 * config/rs6000/rs6000.c: Include opts.h.
30956 (rs6000_handle_option): Update to new hook interface.
30957 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
30958 * config/rx/rx.c: Include opts.h.
30959 (rx_handle_option): Update to new hook interface.
30960 * config/s390/s390.c: Include opts.h.
30961 (s390_handle_option): Update to new hook interface.
30962 * config/score/score.c: Include opts.h.
30963 (score_handle_option): Update to new hook interface.
30964 * config/sh/sh.c: Include opts.h.
30965 (sh_handle_option): Update to new hook interface.
30966 * config/sparc/sparc.c: Include opts.h.
30967 (sparc_handle_option): Update to new hook interface.
30968 * config/v850/v850.c: Include opts.h.
30969 (v850_handle_option): Update to new hook interface.
30970
66017846
JM
309712011-03-22 Joseph Myers <joseph@codesourcery.com>
30972
30973 * gcc.c (driver_unknown_option_callback): Only permit and save
30974 unknown -Wno- options.
30975 (driver_wrong_lang_callback): Save options directly instead of via
30976 driver_unknown_option_callback.
30977
e8b97ccd
EB
309782011-03-22 Eric Botcazou <ebotcazou@adacore.com>
30979
30980 * combine.c (simplify_set): Try harder to find the best CC mode when
30981 simplifying a nested COMPARE on the RHS.
30982
ebb9f8b0
JM
309832011-03-22 Joseph Myers <joseph@codesourcery.com>
30984
30985 * config/alpha/gnu.h: Remove.
30986 * config/arc: Remove directory.
30987 * config/arm/netbsd.h: Remove.
30988 * config/arm/t-pe: Remove.
30989 * config/crx: Remove directory.
30990 * config/i386/netbsd.h: Remove.
30991 * config/m68hc11: Remove directory.
30992 * config/m68k/uclinux-oldabi.h: Remove.
30993 * config/mcore/mcore-pe.h: Remove.
30994 * config/mcore/t-mcore-pe: Remove.
30995 * config/netbsd-aout.h: Remove.
30996 * config/rs6000/gnu.h: Remove.
30997 * config/sh/sh-symbian.h: Remove.
30998 * config/sh/symbian-base.c: Remove.
30999 * config/sh/symbian-c.c: Remove.
31000 * config/sh/symbian-cxx.c: Remove.
31001 * config/sh/symbian-post.h: Remove.
31002 * config/sh/symbian-pre.h: Remove.
31003 * config/sh/t-symbian: Remove.
31004 * config/svr3.h: Remove.
31005 * config/vax/netbsd.h: Remove.
31006 * config.build: Don't handle i[34567]86-*-pe.
31007 * config.gcc: Remove handling of deprecations for most deprecated
31008 targets.
31009 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
31010 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
31011 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
31012 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
31013 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
31014 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
31015 Remove cases.
31016 * config.host: Don't handle i[34567]86-*-pe.
31017 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
31018 (ASM_SPEC32): Don't handle -mcall-gnu.
31019 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
31020 -mcall-gnu.
31021 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
31022 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
31023 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
31024 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
31025 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
31026 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
31027 conditional on SYMBIAN.
31028 * configure.ac: Don't handle powerpc*-*-gnu*.
31029 * configure: Regenerate.
31030 * doc/extend.texi (interrupt attribute): Don't mention CRX.
31031 * doc/install-old.texi (m6811, m6812): Don't mention.
31032 * doc/install.texi (arc-*-elf*): Don't document multilib option.
31033 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
31034 (m68k-uclinuxoldabi): Don't mention.
31035 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
31036 Remove.
31037 (-mcall-gnu): Remove.
31038 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
31039 families): Remove constraint documentation.
31040
999a7d80
MS
310412011-03-22 Marius Strobl <marius@FreeBSD.org>
31042
31043 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
31044 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
31045 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
31046
45540bcf
MM
310472011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
31048
31049 PR target/48226
31050 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
31051 vector when peeking at the next token for vector, don't expand the
31052 keywords.
31053
980a0ff4
GJL
310542011-03-21 Georg-Johann Lay <avr@gjlay.de>
31055
31056 * config/avr/avr-protos.h (expand_epilogue): Change prototype
31057 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
31058 * config/avr/avr.c (init_cumulative_args)
31059 (avr_function_arg_advance): Use it.
31060 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
31061 sibcall epilogues.
31062 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
31063 (avr_function_ok_for_sibcall): ...this new function.
31064 (avr_lookup_function_attribute1): New static Function.
31065 (avr_naked_function_p, interrupt_function_p)
31066 (signal_function_p, avr_OS_task_function_p)
31067 (avr_OS_main_function_p): Use it.
31068 * config/avr/avr.md ("sibcall", "sibcall_value")
31069 ("sibcall_epilogue"): New expander.
31070 ("*call_insn", "*call_value_insn"): New insn.
31071 ("call_insn", "call_value_insn"): Remove
31072 ("call", "call_value", "epilogue"): Change expander to handle
31073 sibling calls.
31074
49168734
NC
310752011-03-21 Nick Clifton <nickc@redhat.com>
31076
31077 * doc/invoke.texi (Overall Options): Move closing brace to end of
31078 options list.
31079 (Optimization Options): Add missing @gol.
31080 (Directory Options): Likewise.
31081 (i386 and x86-64 Options): Likewise.
31082 (RS6000 and PowerPC Options): Likewise.
31083 (i386 and x86-64 Windows Options): Likewise.
31084 (V850 Options): Add text missing from descriptions.
31085
bdfe906f
RH
310862011-03-22 Richard Henderson <rth@redhat.com>
31087
31088 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
31089 (avr_incoming_return_addr_rtx): New.
31090 (emit_push_byte): New.
31091 (expand_prologue): Use it. Remove incorrect dwarf annotation for
31092 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
31093 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
31094 (emit_pop_byte): New.
31095 (expand_epilogue): Use it. Pop frame pointer by bytes.
31096 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
31097 (INCOMING_RETURN_ADDR_RTX): New.
31098 (INCOMING_FRAME_SP_OFFSET): New.
31099 (ARG_POINTER_CFA_OFFSET): New.
31100 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
31101 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
31102 (pophi): Remove.
31103
d090a5aa
RH
31104 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
31105
fdf3e18a
NF
311062011-03-22 Nathan Froyd <froydnj@codesourcery.com>
31107
31108 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
31109 (FUNCTION_ARG_ADVANCE): Likewise.
31110 * tm.texi.in: Change references to them to hook references.
31111 * tm.texi: Regenerate.
31112 * targhooks.c (default_function_arg): Eliminate check for target
31113 macro.
31114 (default_function_incoming_arg): Likewise.
31115 (default_function_arg_advance): Likewise.
c78dd519 31116 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
31117 (function_arg_advance): Likewise.
31118 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
31119
009d3fcf
NF
311202011-03-22 Nathan Froyd <froydnj@codesourcery.com>
31121
31122 * tree.c (build_call_1): New function.
31123 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
31124
7bec30e1
RG
311252011-03-22 Richard Guenther <rguenther@suse.de>
31126
31127 PR tree-optimization/48228
31128 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
31129 for single-arg PHIs.
31130
0b7e851b
AB
311312011-03-22 Andrey Belevantsev <abel@ispras.ru>
31132
31133 PR rtl-optimization/48143
31134 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
31135 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
31136 sse2_cvtps2pd): Likewise.
31137
d89afca5
AK
311382011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31139
31140 * recog.c (canonicalize_change_group): Use validate_unshare_change.
31141
f471fe72
RG
311422011-03-22 Richard Guenther <rguenther@suse.de>
31143
31144 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
31145 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
31146 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
31147 and REALIGN_LOAD_EXPR.
31148 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
31149 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
31150 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
31151 DOT_PROD_EXPR case ...
31152 (expand_expr_real_2): ... here.
31153 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
31154 and REALIGN_LOAD_EXPR.
31155 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
31156 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
31157 (vect_create_epilog_for_reduction): Likewise.
31158 (vectorizable_reduction): Likewise.
31159 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
31160 * tree-vect-stmts.c (vectorizable_load): Likewise.
31161
f2f81d57
EB
311622011-03-22 Eric Botcazou <ebotcazou@adacore.com>
31163
31164 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
31165
ab081dd6
AK
311662011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31167
31168 * config/s390/s390.c (s390_delegitimize_address): Fix offset
31169 handling for PLTOFF/GOTOFF.
31170
6fd5332b
NC
311712011-03-22 Nick Clifton <nickc@redhat.com>
31172
31173 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
31174 trailing backslash from the end of the macro definition.
31175
01841ac0
AK
311762011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31177
31178 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
31179 and PLT unspecs.
31180
2ef6ce06
RS
311812011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
31182
31183 * expr.h (prepare_operand): Move to...
31184 * optabs.h (prepare_operand): ...here and change the insn code
31185 parameter from "int" to "enum insn_code".
31186 (insn_operand_matches): Declare.
31187 * expr.c (init_expr_target): Use insn_operand_matches.
31188 (compress_float_constant): Likewise.
31189 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
31190 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
31191 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
31192 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
31193 Likewise.
2ef6ce06
RS
31194 (gen_cond_trap): Likewise.
31195 (prepare_operand): Likewise. Change icode to an insn_code.
31196 (insn_operand_matches): New function.
31197 * reload.c (find_reloads_address_1): Use insn_operand_matches.
31198 * reload1.c (gen_reload): Likewise.
31199 * targhooks.c (default_secondary_reload): Likewise.
31200
9e43ad68
UB
312012011-03-21 Uros Bizjak <ubizjak@gmail.com>
31202
9a96da32
UB
31203 * config/alpha/alpha.md (unspec): New define_c_enum.
31204 (unspecv): Ditto.
31205
312062011-03-21 Uros Bizjak <ubizjak@gmail.com>
31207
31208 PR debug/48214
9e43ad68
UB
31209 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
31210 between a call and its CALL_ARG_LOCATION note.
31211
31408f60
EB
312122011-03-21 Eric Botcazou <ebotcazou@adacore.com>
31213
31214 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
31215
312162011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
31217
31218 PR c/42544
31219 PR c/48197
31220 * c-common.c (shorten_compare): If primopN is first sign-extended
31221 to opN and then zero-extended to result type, set primopN to opN.
31222
9dfd55f5
DJ
312232011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
31224
31225 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
31226 for barrier handlers.
31227
f3c33d9d
MM
312282011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
31229
31230 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
31231 UNSPEC constants to be in the unspec enumeration, and redefine
31232 all UNSPECV constants to be in the unspecv enumeration, so that
31233 dumps print which unspec/unspec_volatile this is.
31234 * config/rs6000/vector.md (UNSPEC_*): Ditto.
31235 * config/rs6000/paired.md (UNSPEC_*): Ditto.
31236 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
31237 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
31238 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
31239
31240 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
31241 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
31242 UNSPECV_LWSYNC, since these are used as unspec_volatile.
31243 * config/rs6000/sync.md (isync, lwsync): Ditto.
31244
ac43f774
RG
312452011-03-21 Richard Guenther <rguenther@suse.de>
31246
31247 * params.def (lto-min-partition): Fix typo.
31248
411cdbd8
RG
312492011-03-21 Richard Guenther <rguenther@suse.de>
31250
31251 PR c/47939
31252 * c-decl.c (grokdeclarator): Drop to the main variant only
31253 for array types. Drop flag_gen_aux_info check.
31254
1cd9e416
RG
312552011-03-21 Richard Guenther <rguenther@suse.de>
31256
31257 PR translation/47911
31258 * params.def (lto-partitions): Fix typo.
31259 (lto-min-partition): Fix wording.
31260
ada5ad67
AT
312612011-03-21 Andreas Tobler <andreast@fgznet.ch>
31262
31263 * config/rs6000/t-freebsd: Remove duplication from file.
31264
f9613c9a
RG
312652011-03-21 Richard Guenther <rguenther@suse.de>
31266
31267 PR middle-end/47661
31268 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
31269
9bfbc1eb
RG
312702011-03-21 Richard Guenther <rguenther@suse.de>
31271
31272 PR lto/48210
31273 * params.def (lto-partitions): Require at least 1 partition.
31274
a2268084
RO
312752011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31276
31277 * gthr-solaris.h: Remove.
31278 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
31279 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
31280 (LIB_SPEC): Likewise.
31281 * config/sol2.opt (threads): Remove.
9e43ad68 31282 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
31283 (sparc*-*-solaris2*): Likewise.
31284 * configure.ac (enable_threads): Enable solaris support.
31285 * configure: Regenerate.
9e43ad68 31286 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
31287 * doc/install.texi (Configuration, --enable-threads=lib): Remove
31288 solaris.
31289
c43d9a1b
RO
312902011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31291
31292 * config.gcc: Obsolete *-*-solaris2.8*.
31293 * doc/install.texi (Specific, *-*-solaris2*): Document it.
31294
084239f4
RO
312952011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31296
31297 PR bootstrap/48135
31298 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
31299 reference. Solaris 8 perl works.
31300
64cadbe7
RO
313012011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31302
31303 PR bootstrap/48135
31304 * doc/install.texi (Prerequisites): Move jar etc. up.
31305 Explain support library version requirements.
31306
eb975109
RO
313072011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31308
31309 PR bootstrap/48135
31310 * doc/install.texi (Prerequisites): Move Perl to build
31311 requirements. Always necessary on Solaris 2 with Sun ld.
31312
8a509ffd
RO
313132011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31314
31315 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
31316 binutils 2.21.
31317 (Specific, i?86-*-solaris2.[89]): Likewise.
31318 (Specific, i?86-*-solaris2.10): Likewise.
31319 (Specific, mips-sgi-irix6): Likewise.
31320 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
31321 Update for binutils 2.21.
31322
8fbc58a1
RO
313232011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31324
31325 * configure.ac (gcc_cv_lto_plugin): Fix typo.
31326 Allow -fuse-linker-plugin for non-default plugin linker.
31327 * configure: Regenerate.
31328
7e84ad0b
NP
313292011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
31330
31331 PR bootstrap/48167
31332 * gengtype.c (files_rules): Added rule for cp/parser.h.
31333
2f36e14b
JJ
313342011-03-21 Jakub Jelinek <jakub@redhat.com>
31335
31336 PR target/48213
31337 * config/s390/s390.c (s390_delegitimize_address): Don't call
31338 lowpart_subreg if orig_x has BLKmode.
31339
62d784f7
KT
313402011-03-21 Kai Tietz <ktietz@redhat.com>
31341
31342 PR target/12171
9e43ad68
UB
31343 * doc/plugins.texi: Adjust documentation for plugin register_callback.
31344 * tree.h (attribute_spec): Add new member affects_type_identity.
31345 * attribs.c (empty_attribute_table): Adjust attribute_spec
31346 initializers.
62d784f7
KT
31347 * config/alpha/alpha.c: Likewise.
31348 * config/arc/arc.c: Likewise.
31349 * config/arm/arm.c: Likewise.
31350 * config/avr/avr.c: Likewise.
31351 * config/bfin/bfin.c: Likewise.
31352 * config/crx/crx.c: Likewise.
31353 * config/darwin.h: Likewise.
31354 * config/h8300/h8300.c: Likewise.
31355 * config/i386/cygming.h: Likewise.
31356 * config/i386/i386.c: Likewise.
31357 * config/ia64/ia64.c: Likewise.
31358 * config/m32c/m32c.c: Likewise.
31359 * config/m32r/m32r.c: Likewise.
31360 * config/m68hc11/m68hc11.c: Likewise.
31361 * config/m68k/m68k.c: Likewise.
31362 * config/mcore/mcore.c: Likewise.
31363 * config/mep/mep.c: Likewise.
31364 * config/microblaze/microblaze.c: Likewise.
31365 * config/mips/mips.c: Likewise.
31366 * config/rs6000/rs6000.c: Likewise.
31367 * config/rx/rx.c: Likewise.
31368 * config/sh/sh.c: Likewise.
31369 * config/sol2.h: Likewise.
31370 * config/sparc/sparc.c: Likewise.
31371 * config/spu/spu.c: Likewise.
31372 * config/stormy16/stormy16.c: Likewise.
31373 * config/v850/v850.c: Likewise.
31374
54833ec0
CLT
313752011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31376
31377 * simplify-rtx.c (simplify_binary_operation_1): Handle
31378 (xor (and A B) C) case when B and C are both constants.
31379
14a41392
MX
313802011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
31381
31382 * tree-dfa.c (add_referenced_var): Fix typo in comment.
31383
806c3492
EB
313842011-03-20 Eric Botcazou <ebotcazou@adacore.com>
31385
31386 PR bootstrap/48168
31387 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
31388
65e0a0f3
JJ
313892011-03-20 Jakub Jelinek <jakub@redhat.com>
31390
31391 PR rtl-optimization/48156
31392 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
31393 assume df and df_lr are not NULL.
31394
b6a75dda
RR
313952011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31396
31397 PR debug/48023
31398 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
31399 between a call and its CALL_ARG_LOCATION note.
31400
5969b52d
KK
314012011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
31402
31403 PR debug/48178
31404 * config/sh/sh.c (find_barrier): Don't emit a constant pool
31405 between a call and its corresponding CALL_ARG_LOCATION note.
31406
f773c2bd
AS
314072011-03-19 Anatoly Sokolov <aesok@post.ru>
31408
31409 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
31410 instead of loop. Use HARD_REGISTER_NUM_P predicate.
31411 * haifa-sched.c (setup_ref_regs): Ditto.
31412 * caller-save.c (add_used_regs_1): Ditto.
31413 * dse.c (look_for_hardregs): Ditto.
31414 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
31415 * sched-rgn.c (check_live_1): Ditto.
31416
8bf872f9
JM
314172011-03-18 Joseph Myers <joseph@codesourcery.com>
31418
31419 * c-decl.c (diagnose_mismatched_decls): Give an error for
31420 redefining a typedef with variably modified type.
31421
ff8e2159
JM
314222011-03-18 Joseph Myers <joseph@codesourcery.com>
31423
31424 * c-decl.c (grokfield): Don't allow typedefs for structures or
31425 unions with no tag by default.
31426 * doc/extend.texi (Unnamed Fields): Update.
31427
16cc4440
UB
314282011-03-18 Uros Bizjak <ubizjak@gmail.com>
31429
31430 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
31431 Rewrite using indirect functions.
31432 (lwp_slwpcb): Ditto.
31433 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
31434 (avx_vinsertf128<mode>): Ditto.
31435
e101e12e
AK
314362011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31437
31438 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
31439 unspecs.
31440
4627c7fb
AK
314412011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31442
31443 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 31444 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 31445
2d36b47f
MK
314462011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
31447
31448 PR rtl-optimization/48170
31449 * gcse.c (hoist_code): Remove bogus asserts.
31450
2a3d7659
JL
314512011-03-18 Georg-Johann Lay <avr@gjlay.de>
31452
31453 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
31454 computation for prologue/epilogue.
31455
34c3ef05
RO
314562011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31457
31458 * Makefile.in (check-consistency): Remove.
31459
81f2b976
JJ
314602011-03-18 Jakub Jelinek <jakub@redhat.com>
31461
31462 PR debug/48176
31463 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
31464 arange_table_in_use is 0, but either text_section_used or
31465 cold_text_section_used is true. Don't call it if
31466 !info_section_emitted.
31467
68fd7765
AS
314682011-03-18 Anatoly Sokolov <aesok@post.ru>
31469
31470 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
31471 FUNCTION_VALUE_REGNO_P): Remove.
31472 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
31473 Remove.
31474 * config/avr/avr.c (avr_ret_register): Make static inline.
31475 (avr_function_value_regno_p): New function.
31476 (avr_libcall_value): Make static. Add 'func' argument.
31477 (avr_function_value): Make static. Rename 'func' argument to
31478 'fn_decl_or_type', forward it to avr_libcall_value. Call
31479 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 31480 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 31481
b4ef8aac
JM
314822011-03-18 Jason Merrill <jason@redhat.com>
31483
31484 PR c++/23372
31485 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
31486
09a52fc3
RG
314872011-03-18 Richard Guenther <rguenther@suse.de>
31488
31489 * doc/install.texi (--enable-gold): Remove.
31490 (--with-plugin-ld): Document.
31491 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
31492
2a3d7659 314932011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
31494
31495 PR middle-end/47790
31496 * expr.c (optimize_bitfield_assignment_op): Revamp to work
31497 again after expansion changes.
31498
2abbb0fe
CLT
314992011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
31500
31501 * combine.c (try_combine): Do simplification only call of
31502 subst() on i2 even when i1 is present. Update comments.
31503
2efd0aa6
KK
315042011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
31505
31506 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
31507 and UNSPEC_PCREL_SYMOFF.
31508
30a49b23
AK
315092011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31510
31511 * config/s390/s390.md: Use define_c_enum for the unspec constant
31512 definitions.
31513
419e1853
JJ
315142011-03-18 Richard Henderson <rth@redhat.com>
31515 Jakub Jelinek <jakub@redhat.com>
31516
31517 PR bootstrap/48161
31518 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
31519 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
31520
24da2019
AS
315212011-03-17 Anatoly Sokolov <aesok@post.ru>
31522
31523 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31524 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
31525 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
31526 Change return type to bool.
31527 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31528
a82ff31f
JJ
315292011-03-17 Jakub Jelinek <jakub@redhat.com>
31530
8b29c87a
JJ
31531 PR debug/48163
31532 * var-tracking.c (prepare_call_arguments): If CALL target
31533 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
31534 pc instead of looking it up using cselib_lookup and use
31535 Pmode for it if x has VOIDmode.
31536 * dwarf2out.c (gen_subprogram_die): If also both first and
31537 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
31538
a82ff31f
JJ
31539 PR debug/48163
31540 * function.c (assign_parms): For data.passed_pointer parms
31541 use MEM of data.entry_parm instead of data.entry_parm itself
31542 as DECL_INCOMING_RTL.
31543 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
31544 also when passed and declared mode is the same, DECL_RTL
31545 is a MEM with pseudo as address and DECL_INCOMING_RTL is
31546 a MEM too.
31547
82ce305c
JL
315482011-03-16 Jeff Law <law@redhat.com>
31549
31550 PR rtl-optimization/37273
31551 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31552 handle them like argument loads from stack slots. Do not double
31553 count memory for memory constants and argument loads from stack slots.
31554
fe58e02b
L
315552011-03-17 H.J. Lu <hongjiu.lu@intel.com>
31556
31557 PR debug/48160
31558 * var-tracking.c (prepare_call_arguments): Check SUBREG.
31559
6fc4dbc7
L
315602011-03-17 H.J. Lu <hongjiu.lu@intel.com>
31561
31562 PR target/48171
31563 * config/i386/i386.opt: Add Save to -mavx and -mfma.
31564
db3ed0b3
JJ
315652011-03-17 Jakub Jelinek <jakub@redhat.com>
31566
8054a389
JJ
31567 PR bootstrap/48153
31568 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
31569 if dwarf_strict.
31570 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
31571 Clear call_arg_locations and call_arg_loc_last always.
31572
db3ed0b3
JJ
31573 PR middle-end/48152
31574 * var-tracking.c (prepare_call_arguments): If argument needs to be
31575 passed by reference, adjust argtype and mode.
31576
1bce4ff3
RG
315772011-03-17 Richard Guenther <rguenther@suse.de>
31578
31579 PR middle-end/48134
31580 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
31581 a value make sure to fold the statement.
31582
7c71147d
CLT
315832011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
31584
31585 PR target/43872
31586 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
31587 return condition with !cfun->calls_alloca.
31588
0e1ee172
RG
315892011-03-17 Richard Guenther <rguenther@suse.de>
31590
31591 PR bootstrap/48148
31592 * lto-cgraph.c (input_overwrite_node): Clear the abstract
31593 origin for decls in other ltrans units.
31594 (input_varpool_node): Likewise.
31595
f8bce518
RG
315962011-03-17 Richard Guenther <rguenther@suse.de>
31597
31598 PR middle-end/48165
31599 * tree-object-size.c (compute_object_offset): Properly return
31600 the offset operand of MEM_REFs as sizetype.
31601
1b6fa860
JJ
316022011-03-17 Jakub Jelinek <jakub@redhat.com>
31603
dabd47e7
JJ
31604 PR rtl-optimization/48141
31605 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
31606 * dse.c: Include params.h.
31607 (active_local_stores_len): New variable.
31608 (add_wild_read, dse_step1): Clear it when setting active_local_stores
31609 to NULL.
31610 (record_store, check_mem_read_rtx): Decrease it when removing
31611 from the chain.
31612 (scan_insn): Likewise. Increase it when adding to chain, if it
31613 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
31614 set active_local_stores to NULL before the addition.
31615 * Makefile.in (dse.o): Depend on $(PARAMS_H).
31616
1b6fa860
JJ
31617 PR rtl-optimization/48141
31618 * dse.c (record_store): If no positions are needed in an insn
31619 that cannot be deleted, at least unchain it from active_local_stores.
31620
7b5cb7d6
DS
316212011-03-16 Dodji Seketeli <dodji@redhat.com>
31622
31623 PR debug/47510
31624 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
31625 (lookup_type_die_strip_naming_typedef): ... here.
31626 (get_context_die): Use it.
31627 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
31628 the anonymous struct named by the naming typedef.
31629
585e9d9d
L
316302011-03-16 H.J. Lu <hongjiu.lu@intel.com>
31631
31632 PR target/48154
31633 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
31634 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
31635
6261ab0e
JL
316362011-03-16 Jeff Law <law@redhat.com>
31637
31638 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 31639 check for operands of conditional. Allow type to be a pointer.
6261ab0e 31640
0b0081ec
RG
316412011-03-16 Richard Guenther <rguenther@suse.de>
31642
31643 PR tree-optimization/48149
31644 * fold-const.c (fold_binary_loc): Fold
31645 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
31646
64a3d647
RG
316472011-03-16 Richard Guenther <rguenther@suse.de>
31648
31649 PR tree-optimization/26134
31650 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
31651 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
31652 (non_rewritable_mem_ref_base): Handle complex type component
31653 accesses, constrain offsets for vector and complex extracts
31654 more properly.
31655
ef13324e
RG
316562011-03-16 Richard Guenther <rguenther@suse.de>
31657
31658 PR tree-optimization/48146
31659 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
31660 operands avoiding the need for renaming.
31661
f0eddb90
RG
316622011-03-16 Richard Guenther <rguenther@suse.de>
31663
31664 * gimple-fold.c (maybe_fold_reference): Open-code relevant
31665 constant folding. Move MEM_REF canonicalization first.
31666 Rely on fold_const_aggregate_ref for initializer folding.
31667 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
31668
e42348b8
JJ
316692011-03-16 Jakub Jelinek <jakub@redhat.com>
31670
29f10e71
JJ
31671 PR middle-end/48136
31672 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
31673 arg0/arg1 or their arguments are always fold converted to matching
31674 types.
31675
e42348b8
JJ
31676 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
31677 to nargs.
31678
55b46574
RO
316792011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31680
31681 PR lto/46944
31682 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
31683 Handle in-tree gold.
31684 (ld_vers): Extract binutils version for gold.
31685 (gcc_cv_ld_hidden): Handle gold here.
31686 (gcc_cv_lto_plugin): Determine level of linker plugin support.
31687 * configure: Regenerate.
31688 * config.in: Regenerate.
31689 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
31690 -fuse-linker-plugin otherwise.
31691 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
31692 (LINK_COMMAND_SPEC): Use it.
31693 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
31694
2b1c5433
JJ
316952011-03-16 Jakub Jelinek <jakub@redhat.com>
31696
c2969d8e
JJ
31697 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
31698 * calls.c: Remove debug.h include.
31699 (emit_call_1): Don't call virtual_call_token debug hook.
31700 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
31701 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
31702 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
31703 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
31704 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
31705 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
31706 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
31707 dwarf2out_virtual_call): Remove.
31708 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
31709 copy_call_info and virtual_call hooks.
31710 (dwarf2out_init): Don't initialize vcall_insn_table,
31711 debug_dcall_section and debug_vcall_section.
31712 (prune_unused_types): Don't mark nodes from dcall_table.
31713 (dwarf2out_finish): Don't output dcall or vcall tables.
31714 * final.c (final_scan_insn): Don't call direct_call or
31715 virtual_call debug hooks.
31716 * debug.h (struct gcc_debug_hooks): Remove direct_call,
31717 virtual_call_token, copy_call_info and virtual_call hooks.
31718 (debug_nothing_uid): Remove prototype.
31719 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
31720 copy_call_info and virtual_call hooks.
31721 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
31722 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
31723 * debug.c (do_nothing_debug_hooks): Likewise.
31724 (debug_nothing_uid): Remove.
31725 * doc/invoke.texi (-fenable-icf-debug): Remove.
31726 * common.opt (-fenable-icf-debug): Likewise.
31727
325f5379
JJ
31728 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
31729 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
31730 call's MEM. Handle functions returning aggregate through a hidden
31731 first pointer. For virtual calls add clobbered pc to call arguments
31732 chain.
31733 * dwarf2out.c (gen_subprogram_die): Emit
31734 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
31735 can't be emitted.
31736
a58a8e4b
JJ
31737 PR debug/45882
31738 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
31739 * rtl.h (ENTRY_VALUE_EXP): Define.
31740 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
31741 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
31742 * print-rtl.c (print_rtx): Likewise.
31743 * gengtype.c (adjust_field_rtx_def): Likewise.
31744 * var-tracking.c (vt_add_function_parameter): Adjust
31745 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
31746 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
31747 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
31748 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
31749 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
31750
2b1c5433
JJ
31751 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
31752 Call var_location debug hook even on CALL_INSNs.
31753 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
31754 * rtl.def (ENTRY_VALUE): New.
31755 * dwarf2out.c: Include cfglayout.h.
31756 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
31757 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
31758 (struct call_arg_loc_node): New type.
31759 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
31760 tail_call_site_count): New variables.
31761 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
31762 DW_TAG_GNU_call_site_parameter.
31763 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
31764 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
31765 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
31766 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
31767 and DW_AT_GNU_all_source_call_sites.
31768 (mem_loc_descriptor): Handle ENTRY_VALUE.
31769 (add_src_coords_attributes): Don't add enything if
31770 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
31771 (dwarf2out_abstract_function): Save and clear call_arg_location,
31772 call_site_count and tail_call_site_count around dwarf2out_decl call.
31773 (gen_call_site_die): New function.
31774 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
31775 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
31776 (dwarf2out_function_decl): Clear call_arg_locations,
31777 call_arg_loc_last, set call_site_count and tail_call_site_count
31778 to -1 and free block_map.
31779 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
31780 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
31781 followed by any real instructions.
31782 (dwarf2out_begin_function): Set call_site_count and
31783 tail_call_site_count to 0.
31784 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
31785 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
31786 attempt to force a DIE for it and worst case remove the attribute.
31787 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
31788 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
31789 the decl itself.
31790 * var-tracking.c: Include tm_p.h.
31791 (vt_stack_adjustments): For calls call note_register_arguments.
31792 (argument_reg_set): New variable.
31793 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
31794 ensure the VALUE is resolved.
31795 (call_arguments): New variable.
31796 (prepare_call_arguments): New function.
31797 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
31798 (struct expand_loc_callback_data): Add ignore_cur_loc field.
31799 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
31800 always use the best expression.
31801 (vt_expand_loc): Add ignore_cur_loc argument.
31802 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
31803 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
31804 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
31805 note for all calls.
31806 (vt_add_function_parameter): Use cselib_lookup_from_insn.
31807 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
31808 argument. Don't call cselib_preserve_only_values and
31809 cselib_reset_table.
31810 (note_register_arguments): New function.
31811 (vt_initialize): Compute argument_reg_set. Call
31812 vt_add_function_parameters before processing basic blocks instead of
31813 afterwards. For calls call prepare_call_arguments before calling
31814 cselib_process_insn.
31815 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
31816 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
31817 (var-tracking.o): Depend on $(TM_P_H).
31818 * cfglayout.h (insn_scope): New prototype.
31819 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
31820 * cfglayout.c (insn_scope): No longer static.
31821 * insn-notes.def (CALL_ARG_LOCATION): New.
31822 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
31823 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
31824 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
31825 nothing for DECL_EXTERNAL BLOCK_VARS.
31826
9ef13bd0
AM
318272011-03-16 Alan Modra <amodra@gmail.com>
31828
31829 PR target/45844
31830 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
31831 create invalid offset address for vsx splat insn.
31832 * config/rs6000/predicates.md (splat_input_operand): New.
31833 * config/rs6000/vsx.md (vsx_splat_*): Use it.
31834
56b67510
XDL
318352011-03-15 Xinliang David Li <davidxl@google.com>
31836
31837 PR c/47837
31838 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
31839 (normalize_preds): New function.
31840 (is_use_properly_guarded): Normalize def predicates.
31841
80fffdef
RR
318422011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31843
732f37c6 31844 PR target/46788
80fffdef
RR
31845 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
31846 in the output template.
31847
930672ad
RG
318482011-03-15 Richard Guenther <rguenther@suse.de>
31849
31850 PR middle-end/47650
31851 * tree-pretty-print.c (dump_function_declaration): Properly
31852 dump unprototyped and varargs function types.
31853
c7ee7b45
RG
318542011-03-15 Richard Guenther <rguenther@suse.de>
31855
31856 PR tree-optimization/13954
31857 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
31858 and friends.
31859
b2ad5e37
RG
318602011-03-15 Richard Guenther <rguenther@suse.de>
31861
31862 PR tree-optimization/48037
31863 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
31864 selects into BIT_FIELD_REFs.
31865 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
31866 vector select.
31867
7ee93d4e
JJ
318682011-03-15 Jakub Jelinek <jakub@redhat.com>
31869
31870 PR tree-optimization/48129
31871 * builtins.c (fold_builtin_snprintf): Convert to type of
31872 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
31873 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
31874
e106efc7
RG
318752011-03-15 Richard Guenther <rguenther@suse.de>
31876
31877 PR tree-optimization/41490
31878 * tree-ssa-dce.c (propagate_necessity): Handle returns without
31879 value but with VUSE.
31880 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
31881 return statements.
31882 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
31883 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
31884 * tree-tailcall.c (find_tail_calls): Ignore returns.
31885
17dea42f
RG
318862011-03-15 Richard Guenther <rguenther@suse.de>
31887
31888 PR middle-end/48031
31889 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
31890 or variable-indexed array accesses when in gimple form.
31891
01c77a60
RG
318922011-03-15 Richard Guenther <rguenther@suse.de>
31893
16cc4440 31894 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 31895
77b0791e
AM
318962011-03-15 Alan Modra <amodra@gmail.com>
31897
31898 PR target/48032
31899 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
31900 presume symbol_refs without a symbol_ref_decl are suitably
31901 aligned, nor other trees we may see here. Handle anchor symbols.
31902 (legitimate_constant_pool_address_p): Comment. Add mode param.
31903 Check cmodel=medium addresses. Adjust all calls.
31904 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
31905 creating cmodel=medium optimized access to locals.
31906 * config/rs6000/constraints.md (R): Pass QImode to
31907 legitimate_constant_pool_address_p.
31908 * config/rs6000/predicates.md (input_operand): Pass mode to
31909 legitimate_constant_pool_address_p.
31910 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
31911 Update prototype.
31912
35f61ba4
MM
319132011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31914
31915 PR target/48053
31916 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
31917 64-bit constants being loaded into registers other than GPRs such
31918 as loading 0 into a VSX register.
31919
07332e6d
RO
319202011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31921
16cc4440 31922 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 31923
de888d90
JJ
319242011-03-14 Jakub Jelinek <jakub@redhat.com>
31925
ba3ceb2d
JJ
31926 PR middle-end/47917
31927 * builtins.c (fold_builtin_snprintf): New function.
31928 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
31929 (fold_builtin_4): Likewise.
31930
2e64f8b8
JJ
31931 PR middle-end/38878
31932 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
31933 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
31934 and C - X == X also strip nops from +/-/p+ operand.
31935 When optimizing -X == C, fold C to arg0's type.
31936
de888d90
JJ
31937 PR debug/47946
31938 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
31939 emit it as add_AT_int instead of add_AT_unsigned.
31940
319412011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
31942
31943 * unwind-dw2.c: Include sys/sdt.h if it exists.
31944 (_Unwind_DebugHook): Use STAP_PROBE2.
31945 * config.in, configure: Rebuild.
31946 * configure.ac: Check for sys/sdt.h.
31947
d34abfd2
UB
319482011-03-14 Uros Bizjak <ubizjak@gmail.com>
31949
31950 * config/i386/i386.md (ROUND_FLOOR): New constant.
31951 (ROUND_CEIL): Ditto.
31952 (ROUND_TRUNC): Ditto.
31953 (ROUND_MXCSR): Ditto.
31954 (ROUND_NO_EXC): Ditto.
31955 (rint<mode>2): Use new defines instead of numerical constants.
31956 (floor<mode>2): Ditto.
31957 (ceil<mode>2): Ditto.
31958 (btrunc<mode>2): Ditto.
31959 * config/i386/i386-builtin-types.def: Define ROUND function type
31960 aliases.
31961 * config/i386/i386.c (enum ix86_builtins): Add
31962 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
31963 (struct builtin_description): Add
31964 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
31965 (ix86_expand_sse_round): New static function.
31966 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
31967 function types.
31968 (ix86_builtin_vectorized_function): Handle
31969 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
31970
87f9e23d
TT
319712011-03-14 Tom Tromey <tromey@redhat.com>
31972
31973 * c-parser.c (c_parser_asm_string_literal): Clear
31974 warn_overlength_strings.
31975
b3ab9ea2
TT
319762011-03-14 Tom Tromey <tromey@redhat.com>
31977
31978 * c-parser.c (disable_extension_diagnostics): Save
31979 warn_overlength_strings.
31980 (restore_extension_diagnostics): Restore warn_overlength_strings.
31981
6bd73dd8
JJ
319822011-03-14 Jakub Jelinek <jakub@redhat.com>
31983
31984 * BASE-VER: Change to 4.7.0.
31985
7f4d6e1b
RG
319862011-03-14 Richard Guenther <rguenther@suse.de>
31987
31988 PR middle-end/48098
31989 * tree.c (build_vector_from_val): Adjust assert to requirements
31990 and reality.
31991
c6104ef1
JJ
319922011-03-14 Jakub Jelinek <jakub@redhat.com>
31993
31994 PR bootstrap/48102
d34abfd2 31995 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 31996
dfa95e19
AT
319972011-03-14 Andreas Tobler <andreast@fgznet.ch>
31998
f60c2554 31999 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
32000 terms of target_flags_explicit. Adjust copyright year.
32001
32002 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
32003 * config/rs6000/t-freebsd: New file. Add override for
32004 LIB2FUNCS_EXTRA.
32005
bb322018
CD
320062011-03-13 Chris Demetriou <cgd@google.com>
32007
32008 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
32009 (-fno-diagnostics-show-option): this, to reflect current default.
32010 (-Werror=): Update text about -fno-diagnostics-show-option.
32011
12b1c80b
PB
320122011-03-12 Peter Bergner <bergner@vnet.ibm.com>
32013
32014 PR target/48053
32015 * config/rs6000/predicates.md (easy_vector_constant_add_self,
32016 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
32017 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
32018 mode is not V2DImode or V2DFmode.
32019 (vspltis_constant): Do not handle V2DImode and V2DFmode.
32020 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
32021 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
32022 registers to 0.
32023 (movdi_internal64): Likewise.
32024
57d598f7
SP
320252011-03-12 Sebastian Pop <sebastian.pop@amd.com>
32026
32027 PR tree-optimization/47127
32028 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
32029 parameter.
32030 (set_cloog_options): Same.
32031 (scop_to_clast): Same.
32032 (print_clast_stmt): Do not call cloog_state_malloc and
32033 cloog_state_free.
32034 (print_generated_program): Same.
32035 (gloog): Same.
32036 * graphite-clast-to-gimple.h (cloog_state): Declared.
32037 (scop_to_clast): Adjust declaration.
32038 * graphite.c (cloog_state): Defined here.
32039 (graphite_initialize): Call cloog_state_malloc.
32040 (graphite_finalize): Call cloog_state_free.
32041
f231b5ff
JM
320422011-03-11 Jason Merrill <jason@redhat.com>
32043
32044 * attribs.c (lookup_attribute_spec): Take const_tree.
32045 * tree.h: Adjust.
32046
6a4e2bd5
JM
320472011-03-11 Joseph Myers <joseph@codesourcery.com>
32048
32049 * config/sparc/sparc.c (sparc_option_override): Use
32050 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
32051
a758fd67
RG
320522011-03-11 Richard Guenther <rguenther@suse.de>
32053
32054 PR tree-optimization/48067
32055 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
32056 multiplication result will be only used once on the target
32057 stmt.
32058
03dfda54
RG
320592011-03-11 Richard Guenther <rguenther@suse.de>
32060
32061 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
32062
5f11a50a
RG
320632011-03-11 Richard Guenther <rguenther@suse.de>
32064
32065 PR lto/48073
32066 * tree.c (find_decls_types_r): Do not walk types only reachable
32067 from IDENTIFIER_NODEs.
32068
4074f163
JJ
320692011-03-11 Jakub Jelinek <jakub@redhat.com>
32070
32071 PR middle-end/48044
32072 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
32073 all vnode->force_output nodes as needed.
32074
30f7cdcd
JM
320752011-03-11 Jason Merrill <jason@redhat.com>
32076
32077 PR c++/48069
32078 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
32079 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
32080
62ecfeb8
MJ
320812011-03-11 Martin Jambor <mjambor@suse.cz>
32082
32083 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
32084 cgraph_node.
32085
e89e03ab
JJ
320862011-03-11 Jakub Jelinek <jakub@redhat.com>
32087
32088 PR tree-optimization/48063
32089 * ipa-inline.c (cgraph_decide_inlining): Don't try to
32090 inline functions called once if !tree_can_inline_p (node->callers).
32091
efbe978b 320922011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 32093
efbe978b
EB
32094 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
32095 extra_objs.
9d6193a7
CL
32096 * config/score/score3.c: Delete.
32097 * config/score/score3.h: Delete.
32098 * config/score/mul-div.S: Delete.
32099 * config/score/sfp-machine.h: Add new file.
32100 * config/score/constraints.md: Add new file.
32101 * config/score/t-score-softfp: Add new file.
efbe978b 32102 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
32103 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
32104 (score7_extra_constraint): Delete.
efbe978b 32105 (score7_option_override): Remove unused code.
9d6193a7
CL
32106 * config/score/score.c: Remove score3 and score5 define and code.
32107 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 32108 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
32109 * config/score/score.opt: Remove score3 and score5 options.
32110
5de27cca
JDA
321112011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32112
32113 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
32114 when _HPUX_SOURCE is defined.
32115 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
32116
18d92053
JM
321172011-03-10 Jason Merrill <jason@redhat.com>
32118
32119 PR c++/48029
32120 * stor-layout.c (layout_type): Don't set structural equality
32121 on arrays of incomplete type.
32122 * tree.c (type_hash_eq): Handle comparing them properly.
32123
67a2f76d
JJ
321242011-03-10 Jakub Jelinek <jakub@redhat.com>
32125
32126 PR debug/48043
18d92053 32127 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
32128 result mode matches original rtl mode.
32129
d845b2f9
NC
321302011-03-10 Nick Clifton <nickc@redhat.com>
32131
32132 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 32133 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 32134
db7ec035
JJ
321352011-03-09 Jakub Jelinek <jakub@redhat.com>
32136
32137 PR rtl-optimization/47866
32138 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
32139 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
32140 if target wasn't scalar.
32141 * function.c (assign_stack_temp_for_type): Assert that neither
32142 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
32143 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
32144 macro.
32145 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
32146
5d304e47
AK
321472011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32148
32149 * config/s390/s390-protos.h (s390_label_align): New prototype.
32150 * config/s390/s390.c (s390_label_align): New function.
32151 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
32152
93b826f0
MM
321532011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32154
32155 PR target/47755
32156 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
32157 V2DI/V2DF constants. Only all 0's or all 1's are easy.
32158 (output_vec_const_move): Ditto.
32159
ef78aed6
AS
321602011-03-08 Anatoly Sokolov <aesok@post.ru>
32161
32162 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
32163 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
32164 * config/mips/mips.c (mips_preferred_reload_class): Make static.
32165 Change 'rclass' argument and result type to reg_class_t.
32166 (TARGET_PREFERRED_RELOAD_CLASS): Define.
32167
5f892aa0
GJL
321682011-03-08 Georg-Johann Lay <avr@gjlay.de>
32169
9e43ad68
UB
32170 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32171 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
32172 (TARGET_MEMORY_MOVE_COST): Define.
32173 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 32174
32bd2409
JJ
321752011-03-08 Jakub Jelinek <jakub@redhat.com>
32176
530a4800
JJ
32177 PR debug/47881
32178 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
32179 removed anything.
32180
32bd2409
JJ
32181 PR tree-optimization/48022
32182 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
32183 for EQ/NE_EXPR.
32184
c7148991
JJ
321852011-03-07 Jakub Jelinek <jakub@redhat.com>
32186
32187 PR debug/47991
32188 * var-tracking.c (find_use_val): Return NULL for
32189 cui->sets && cui->store_p BLKmode MEMs.
32190
43070a6e
AS
321912011-03-07 Anatoly Sokolov <aesok@post.ru>
32192
32193 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
32194 Remove.
32195 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
32196 xstormy16_print_operand_address): Remove.
32197 * config/stormy16/stormy16.c (xstormy16_print_operand,
32198 xstormy16_print_operand_address): Make static.
32199 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
32200
efbe978b 322012011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
32202
32203 PR target/47862
32204 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
32205 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
32206 before definition.
32207
cec8ac0b
ZD
322082011-03-07 Zdenek Dvorak <ook@ucw.cz>
32209
32210 PR bootstrap/48000
32211 * cfgloopmanip.c (fix_bb_placements): Return immediately
32212 if FROM is BASE_LOOP's header.
32213
59527282
PW
322142011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
32215
32216 * gimplify.c (gimplify_function_tree): Fix building calls
32217 to __builtin_return_address.
32218
617718f7
AM
322192011-03-07 Alan Modra <amodra@gmail.com>
32220
32221 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
32222 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
32223 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
32224 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
32225 return_mode args.
32226 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
32227 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
32228 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
32229 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
32230 * config/rs6000/rs6000.c
32231 (rs6000_elf_end_indicate_exec_stack): Rename to..
32232 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
32233 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
32234 (rs6000_file_start): ..here.
32235 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
32236 file scope variables.
32237 (call_ABI_of_interest): New function.
32238 (init_cumulative_args): Set above vars when function return value
32239 is a float, vector, or small struct.
32240 (rs6000_function_arg_advance_1): Likewise for function args.
32241 (rs6000_va_start): Set rs6000_passes_float if variable arg function
32242 references float args.
32243
38528d50
MX
322442011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
32245
32246 * doc/cfg.texi: Remove "See" before @ref.
32247 * doc/invoke.texi: Likewise.
32248
f42cf4f4
JM
322492011-03-05 Jason Merrill <jason@redhat.com>
32250
32251 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
32252
804a304d
AG
322532011-03-05 Anthony Green <green@moxielogic.com>
32254
32255 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
32256
634ee309
ZD
322572011-03-05 Zdenek Dvorak <ook@ucw.cz>
32258
32259 PR rtl-optimization/47899
32260 * cfgloopmanip.c (fix_bb_placements): Fix first argument
32261 to flow_loop_nested_p when moving the loop upward.
32262
6fe471c8
RE
322632011-03-05 Richard Earnshaw <rearnsha@arm.com>
32264
32265 PR target/47719
32266 * arm.md (movhi_insn_arch4): Accept any immediate constant.
32267
cc58ceee
JJ
322682011-03-05 Jakub Jelinek <jakub@redhat.com>
32269
32270 PR tree-optimization/47967
32271 * ipa-cp.c (build_const_val): Return NULL instead of creating
32272 VIEW_CONVERT_EXPR for mismatching sizes.
32273 (ipcp_create_replace_map): Return NULL if build_const_val failed.
32274 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
32275 give up on versioning.
32276
ea868305
AM
322772011-03-05 Alan Modra <amodra@gmail.com>
32278
32279 PR target/47986
32280 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32281 full cmodel medium/large lo_sum + high addresses.
32282
bc6ce334
AK
322832011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32284
32285 * config/s390/s390.c (s390_decompose_address): Reject non-literal
32286 pool references in UNSPEC_LTREL_OFFSET.
32287
87e7b310
JH
322882011-03-04 Jan Hubicka <jh@suse.cz>
32289
32290 PR lto/47497
32291 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
32292 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
32293 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
32294 Add node pointers.
87e7b310
JH
32295 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
32296 cgraph_add_thunk): Add node pointers.
32297 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
32298 associated to right node.
32299 (input_node): Update use of cgraph_same_body_alias
32300 and cgraph_add_thunk.
32301
d9c64246
CF
323022011-03-04 Changpeng Fang <changpeng.fang@amd.com>
32303
32304 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
32305 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
32306 modes when the flag -mprefer-avx128 is on.
d9c64246 32307
08707076
RS
323082011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
32309
32310 * dwarf2out.c (compare_loc_operands): Fix address handling.
32311
52517c81
AM
323122011-03-04 Alan Modra <amodra@gmail.com>
32313
32314 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
32315
b147c5b9
RG
323162011-03-04 Richard Guenther <rguenther@suse.de>
32317
32318 PR middle-end/47968
32319 * expmed.c (extract_bit_field_1): Prefer vector modes that
32320 vec_extract patterns can handle.
32321
8750672f
RG
323222011-03-04 Richard Guenther <rguenther@suse.de>
32323
32324 PR middle-end/47975
32325 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
32326
9eac0f2a
RH
323272011-03-04 Richard Henderson <rth@redhat.com>
32328
32329 * explow.c (emit_stack_save): Remove 'after' parameter.
32330 (emit_stack_restore): Likewise.
32331 * expr.h: Update to match.
32332 * builtins.c, calls.c, stmt.c: Likewise.
32333 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
32334 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
32335 * function.c (expand_function_end): Insert the emit_stack_save
32336 sequence before parm_birth_insn instead of after.
32337
dfee1406
UB
323382011-03-03 Uros Bizjak <ubizjak@gmail.com>
32339
32340 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
32341 (ssse3_pmaddubsw128): Ditto.
32342 (ssse3_pmaddubsw): Ditto.
32343
f1d4c3de
SE
323442011-03-03 Steve Ellcey <sje@cup.hp.com>
32345
32346 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
32347
71f3a3f5
JJ
323482011-03-03 Jakub Jelinek <jakub@redhat.com>
32349
423ed416
JJ
32350 PR c/47963
32351 * gimplify.c (omp_add_variable): Only call omp_notice_variable
32352 on TYPE_SIZE_UNIT if it is a DECL.
32353
71f3a3f5
JJ
32354 PR debug/47283
32355 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
32356 first operand is not is_gimple_mem_ref_addr, try to fold it.
32357 If the operand still isn't is_gimple_mem_ref_addr, clear
32358 MEM_EXPR on op0.
32359
4b1a5c0d
RG
323602011-03-03 Richard Guenther <rguenther@suse.de>
32361
32362 PR middle-end/47283
32363 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
32364 match comment.
32365 (refs_may_alias_p_1): For release branches return true if
32366 we are confused by our input.
32367
b46616fd
AK
323682011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32369
32370 * config/s390/s390.c (s390_function_value): Rename to ...
32371 (s390_function_and_libcall_value): ... this.
32372 (s390_function_value): New function.
32373 (s390_libcall_value): New function.
dfee1406 32374 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
32375 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
32376 target macro definitions.
32377 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
32378
46d8fabb
JM
323792011-03-02 Joseph Myers <joseph@codesourcery.com>
32380
32381 * config/i386/freebsd64.h (CC1_SPEC): Define.
32382 * config/i386/linux64.h (CC1_SPEC): Define.
32383 * config/i386/x86-64.h (CC1_SPEC): Don't define.
32384
6b1ce545
AS
323852011-03-02 Anatoly Sokolov <aesok@post.ru>
32386
32387 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
32388 Remove.
32389 * config/stormy16/stormy16.c: Include reload.h.
32390 (xstormy16_memory_move_cost): New function.
32391 (TARGET_MEMORY_MOVE_COST): Define.
32392
34161e98
RS
323932011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
32394
32395 PR rtl-optimization/47925
32396 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
32397 with side effects. Remove the more-specific check for volatile asms.
32398
f60a97cf
AM
323992011-03-02 Alan Modra <amodra@gmail.com>
32400
32401 PR target/47935
32402 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
32403 toc relative addresses for valid offsets.
32404
f2ca11ca
RG
324052011-03-01 Richard Guenther <rguenther@suse.de>
32406
32407 PR tree-optimization/47890
32408 * tree-vect-loop.c (get_initial_def_for_induction): Set
32409 related stmt properly.
32410
7a00d9ea
RG
324112011-03-01 Richard Guenther <rguenther@suse.de>
32412
32413 PR lto/47924
32414 * lto-streamer.c (lto_record_common_node): Also register
32415 the canonical type.
32416
06c7edcc
RG
324172011-03-01 Richard Guenther <rguenther@suse.de>
32418
32419 PR lto/46911
32420 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32421 Do not stream DECL_ABSTRACT_ORIGIN.
32422 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32423 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32424 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32425 Do not stream DECL_ABSTRACT_ORIGIN.
32426 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
32427 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
32428
998871e9
AS
324292011-02-28 Anatoly Sokolov <aesok@post.ru>
32430
32431 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
32432 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 32433 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
32434 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
32435 Add 'outgoing' argument.
32436 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
32437 function.
32438 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
32439 TARGET_FUNCTION_VALUE_REGNO_P): Define.
32440
94369251
KT
324412011-02-28 Kai Tietz <kai.tietz@onevision.com>
32442
32443 PR debug/28047
32444 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
32445 (lookup_filename): Likewise.
b2e2ea67 32446 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 32447
80a832cd
JJ
324482011-02-28 Bernd Schmidt <bernds@codesourcery.com>
32449 Jakub Jelinek <jakub@redhat.com>
32450
32451 PR middle-end/47893
32452 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
32453 (assign_stack_local_1): Change last argument type to int.
32454 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
32455 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 32456 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
32457 (assign_stack_local): Adjust caller.
32458 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
32459 of assign_stack_local, pass 0 as last argument.
32460 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
32461 callers.
32462
1b500976
JJ
324632011-02-28 Jakub Jelinek <jakub@redhat.com>
32464
f61c6f34
JJ
32465 PR debug/47283
32466 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
32467 Use target address_mode and pointer_mode hooks instead of hardcoded
32468 Pmode and ptr_mode. Handle some simple cases of extending if
32469 POINTERS_EXTEND_UNSIGNED < 0.
32470 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
32471 Call convert_debug_memory_address.
32472 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
32473 convert_debug_memory_address.
32474
1b500976
JJ
32475 PR middle-end/46790
32476 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
32477 * configure: Regenerated.
32478 * config.in: Regenerated.
32479 * varasm.c (default_function_section): Return NULL
b2e2ea67 32480 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 32481
2f2935b6
MJ
324822011-02-28 Martin Jambor <mjambor@suse.cz>
32483
32484 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
32485 the description to match the printed values.
32486
474086eb
RG
324872011-02-28 Richard Guenther <rguenther@suse.de>
32488
32489 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
32490 of the copied scope tree.
32491
15bf6f3a
RW
324922011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32493
32494 * doc/extend.texi (Function Attributes): Avoid deeply (and
32495 wrongly) nested tables.
32496
f6b439c9
JJ
324972011-02-27 Jakub Jelinek <jakub@redhat.com>
32498
32499 PR middle-end/47903
32500 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
32501 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
32502 r isn't op0 nor op1.
32503
1d8ca2c7
GJL
325042011-02-23 Georg-Johann Lay <avr@gjlay.de>
32505
32506 * config/avr/avr.md: Remove magic comment for emacs.
32507
593fca4b
GJL
325082011-02-23 Georg-Johann Lay <avr@gjlay.de>
32509
32510 PR target/45261
32511 * config/avr/avr.c (avr_option_override): Use error on bad options.
32512 (avr_help): New function.
32513 (TARGET_HELP): Define.
32514
6609216e
GJL
325152011-02-22 Georg-Johann Lay <avr@gjlay.de>
32516
32517 PR target/42240
32518 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
32519 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
32520
03d458af
GP
325212011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
32522
32523 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
32524 (ARM Options): Ditto.
32525 (i386 and x86-64 Options): Ditto.
32526 (RX Options): Ditto.
32527 (SPARC Options): Ditto.
32528
1c379b78
TC
325292011-02-26 Tijl Coosemans <tijl@coosemans.org>
32530
32531 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
32532 FreeBSD 6 and later. Generally use cpu generic.
32533
d5ed058c 325342011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 32535
d5ed058c
GP
32536 * doc/cpp.texi: Update copyright years.
32537
509d65dd 325382011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 32539
509d65dd 32540 PR target/46898
308d39cd
SB
32541 * config/lm32/lm32.md (ashrsi3): Added needed variable.
32542
509d65dd 325432011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 32544
509d65dd 32545 PR target/46898
308d39cd
SB
32546 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
32547 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
32548 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
32549 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 32550 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
32551 (gen_int_relational): Move declarations to start of function.
32552
822ba6d7
EB
325532011-02-25 Eric Botcazou <ebotcazou@adacore.com>
32554
32555 PR tree-optimization/45470
32556 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
32557 can throw internally only.
32558 * tree-vect-stmts.c (vectorizable_call): Likewise.
32559
ef795fc2
AS
325602011-02-24 Anatoly Sokolov <aesok@post.ru>
32561
32562 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
32563 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32564 * config/stormy16/stormy16-protos.h
32565 (xstormy16_preferred_reload_class): Remove.
32566 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
32567 static. Change 'rclass' argument and return type to reg_class_t.
32568 (TARGET_PREFERRED_RELOAD_CLASS,
32569 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
32570
1c3277ee
RG
325712011-02-24 Richard Guenther <rguenther@suse.de>
32572
32573 * lto-streamer-in.c (input_bb): Do not find referenced vars
32574 in debug statements.
32575
67e18edb
JM
325762011-02-23 Jason Merrill <jason@redhat.com>
32577
32578 * common.opt (fabi-version): Document v5 and v6.
32579
b14fad9d
RG
325802011-02-23 Richard Guenther <rguenther@suse.de>
32581
32582 PR tree-optimization/47849
32583 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
32584
7fcf46f5
JZ
325852011-02-23 Jie Zhang <jie@codesourcery.com>
32586
32587 * opts-common.c (decode_cmdline_option): Print empty string
32588 argument as "" in decoded->orig_option_with_args_text.
32589 * gcc.c (execute): Print empty string argument as ""
32590 in the verbose output.
32591 (do_spec_1): Keep empty string argument.
32592
f85b70fd
NF
325932011-02-23 Nathan Froyd <froydnj@codesourcery.com>
32594
32595 * config.gcc: Declare score-* and crx-* obsolete.
32596
b152a615
JZ
325972011-02-23 Jie Zhang <jie@codesourcery.com>
32598
32599 PR rtl-optimization/47763
32600 * web.c (web_main): Ignore naked clobber when replacing register.
32601
bb6e77bc
AS
326022011-02-22 Anatoly Sokolov <aesok@post.ru>
32603
32604 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
32605 Remove.
32606
68bf6491
SP
326072011-02-22 Sebastian Pop <sebastian.pop@amd.com>
32608
32609 PR doc/47848
32610 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
32611
88ee1fc7
MS
326122011-02-22 Mike Stump <mikestump@comcast.net>
32613
32614 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
32615 assembler.
32616 * configure: Regenerate.
32617
6042d1dd
CLT
326182011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
32619
32620 PR rtl-optimization/46002
32621 * ira-color.c (update_copy_costs): Change class intersection
32622 test to reg_class_contents[] test of 'hard_regno'.
32623
7de97f9e
JM
326242011-02-21 Joseph Myers <joseph@codesourcery.com>
32625
32626 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
32627 than Driver option.
32628 * config/hpux11.opt (mt): Likewise.
32629 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
32630 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
32631 * config/vax/elf.opt (mno-asm-pic): Likewise.
32632 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
32633
d1d46f9f
MS
326342011-02-21 Mike Stump <mikestump@comcast.net>
32635
32636 PR target/47822
32637 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
32638 tree so we can get save the type.
32639 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
32640 for CFString instead of trying to use past the end of the builtins.
32641 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
32642 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
32643 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
32644 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
32645 Rename to darwin_builtin_cfstring.
32646 (darwin_init_cfstring_builtins): Return the built type.
32647
23e0d930
UB
326482011-02-21 Uros Bizjak <ubizjak@gmail.com>
32649
32650 PR target/47840
32651 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
32652 (_mm256_insert_epi64): Use _mm_insert_epi64.
32653
192997cf
AS
326542011-02-21 Anatoly Sokolov <aesok@post.ru>
32655
32656 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32657 * config/stormy16/stormy16-protos.h
32658 (xstormy16_mode_dependent_address_p): Remove.
32659 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
32660 Make static. Change return type to bool. Change argument type to
32661 const_rtx. Remove dead code.
32662 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32663
e292d003
RG
326642011-02-21 Richard Guenther <rguenther@suse.de>
32665
32666 PR lto/47820
32667 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
32668 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32669 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
32670 TUs context.
23e0d930 32671 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
32672 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
32673
77f846e9
RG
326742011-02-20 Richard Guenther <rguenther@suse.de>
32675
32676 PR lto/47822
32677 * tree.c (free_lang_data_in_decl): Clean builtins from
32678 the TU decl BLOCK_VARS.
23e0d930 32679
b2cddfc8
AO
326802011-02-19 Alexandre Oliva <aoliva@redhat.com>
32681
32682 PR debug/47620
32683 PR debug/47630
32684 * haifa-sched.c (fix_tick_ready): Skip tick computation
32685 for debug insns.
32686
becf4c11
RG
326872011-02-19 Richard Guenther <rguenther@suse.de>
32688
32689 PR lto/47647
32690 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
32691 Remove lazy BLOCK_VARS streaming.
32692 (lto_input_ts_block_tree_pointers): Likewise.
32693 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
32694
27f98305
JM
326952011-02-19 Joseph Myers <joseph@codesourcery.com>
32696
32697 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
32698
064bf3f4
JM
326992011-02-19 Joseph Myers <joseph@codesourcery.com>
32700
32701 * config/i386/biarch32.h, config/i386/mach.h,
32702 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
32703
9215ddc3
JJ
327042011-02-19 Jakub Jelinek <jakub@redhat.com>
32705
32706 PR target/47800
32707 * config/i386/i386.md (peephole2 for shift and plus): Use
32708 operands[1] original mode in the first insn.
32709
8b021004
MS
327102011-02-18 Mike Stump <mikestump@comcast.net>
32711
65ded153 32712 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 32713
f84ae14c
JH
327142011-02-18 Jan Hubicka <jh@suse.cz>
32715
32716 PR middle-end/47788
65ded153
EB
32717 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
32718 to zero when the function is not inlinable at all.
f84ae14c 32719
eddabc80
JDA
327202011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32721
32722 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
32723 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
32724 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
32725 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
32726 * config/pa/t-pa64: Likewise.
32727 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
32728
ca3da783
JJ
327292011-02-18 Jakub Jelinek <jakub@redhat.com>
32730
32731 PR driver/47787
32732 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
32733
430aa868
JDA
327342011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32735
32736 PR target/47792
32737 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
32738
4bf7ff7e
AS
327392011-02-18 Anatoly Sokolov <aesok@post.ru>
32740
32741 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
32742 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
32743 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
32744 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
32745 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
32746 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
32747 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
32748 m32r_load_postinc_p, m32r_store_preinc_predec_p,
32749 m32r_legitimate_address_p): New functions.
32750 * config/m32r/constraints.md (constraint "S"): Don't use
32751 STORE_PREINC_PREDEC_P.
32752 (constraint "U"): Don't use LOAD_POSTINC_P.
32753
7efcf910
CLT
327542011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
32755
32756 PR rtl-optimization/46178
32757 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
32758 compute ira_hard_regno_cover_class[].
32759
237d6259
RG
327602011-02-18 Richard Guenther <rguenther@suse.de>
32761
32762 PR lto/47798
32763 * lto-streamer.h (lto_global_var_decls): Declare.
32764 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
32765 statics for global var processing.
32766
12d80acc
RG
327672011-02-18 Richard Guenther <rguenther@suse.de>
32768
32769 PR tree-optimization/47737
32770 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
32771 edge dominance check.
32772
abfea58d
JJ
327732011-02-18 Jakub Jelinek <jakub@redhat.com>
32774
32775 PR debug/47780
32776 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
32777 avoid invalid rtx sharing.
32778
f73c8882
GP
327792011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
32780
32781 * doc/cpp.texi (Obsolete Features): Add background on the
32782 origin of assertions.
32783
d764a8e6
IS
327842011-02-17 Iain Sandoe <iains@gcc.gnu.org>
32785
32786 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 32787 objc_abi == 2.
d764a8e6
IS
32788 * config/darwin.c (output_objc_section_asm_op): Added support for
32789 ABI v1 and v2.
32790 (is_objc_metadata): New.
32791 (darwin_objc2_section): New.
32792 (darwin_objc1_section): New.
32793 (machopic_select_section): Added support for ABI v1 and v2.
32794 (darwin_emit_objc_zeroed): New.
32795 (darwin_output_aligned_bss): Detect objc metadata and treat it
32796 appropriately.
32797 (darwin_asm_output_aligned_decl_common): Same.
32798 (darwin_asm_output_aligned_decl_local): Same.
32799 * config/darwin-sections.def: Updated for ABI v1 and v2.
32800 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
32801 compiling Objective-C code for the NeXT runtime, default to using
32802 ABI version 0 for 32-bit, and version 2 for 64-bit.
32803
0a8134ca
JM
328042011-02-17 Joseph Myers <joseph@codesourcery.com>
32805
32806 * common.opt (optimize_fast): New Variable.
32807 * opts.c (default_options_optimization): Use opts->x_optimize_fast
32808 instead of local variable ofast.
32809
0a256240
NP
328102011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
32811
32812 * doc/invoke.texi (fobjc-abi-version): Documented.
32813 (fobjc-nilcheck): Documented.
32814 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
32815 version.
32816
fa381cb2
JM
328172011-02-17 Joseph Myers <joseph@codesourcery.com>
32818
32819 PR driver/47390
32820 * common.opt (export-dynamic): New Driver option.
32821 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
32822
5437eaa6
JM
328232011-02-17 Joseph Myers <joseph@codesourcery.com>
32824
32825 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
32826
bb7e6d55
AO
328272011-02-17 Alexandre Oliva <aoliva@redhat.com>
32828 Jan Hubicka <jh@suse.cz>
32829
32830 PR debug/47106
32831 PR debug/47402
32832 * cfgexpand.c (account_used_vars_for_block): Remove.
32833 (estimated_stack_frame_size): Use referenced vars.
32834 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
32835 that were referenced in the original function. Test src_fn
32836 rather than cfun. Drop redundant get_var_ann.
32837 (setup_one_parameter): Drop redundant get_var_ann.
32838 (declare_return_variable): Likewise.
32839 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
32840 (copy_arguments_for_versioning): Drop redundant get_var_ann.
32841 * ipa-inline.c (compute_inline_parameters): Do not compute
32842 disregard_inline_limits here.
bb7e6d55
AO
32843 (compute_inlinable_for_current, pass_inlinable): New.
32844 (pass_inline_parameters): Require PROP_referenced_vars.
32845 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 32846 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
32847 (cgraph_analyze_function): Set .disregard_inline_limits.
32848 * tree-sra.c (convert_callers): Compute inliner parameters
32849 only for functions already in SSA form.
32850
f181a8a7
JM
328512011-02-17 Joseph Myers <joseph@codesourcery.com>
32852
32853 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
32854 -mlittle-endian-data.
32855
c6869789
JM
328562011-02-17 Joseph Myers <joseph@codesourcery.com>
32857
32858 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
32859 -mno-fpu, not -fpu and -no-fpu.
32860 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
32861 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
32862
fbf4bfd3
UB
328632011-02-17 Uros Bizjak <ubizjak@gmail.com>
32864
32865 PR target/43653
32866 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
32867 input reload with PLUS RTX.
32868
70be5dc7
JM
328692011-02-16 Joseph Myers <joseph@codesourcery.com>
32870
32871 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
32872 of InverseVar(MDMX).
32873
30b1646e
JM
328742011-02-16 Joseph Myers <joseph@codesourcery.com>
32875
32876 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
32877 --m4-340.
32878
ab7b71e9
JM
328792011-02-16 Joseph Myers <joseph@codesourcery.com>
32880
32881 * config/mn10300/mn10300.opt (mno-crt0): New.
32882
466f3f08
JM
328832011-02-16 Joseph Myers <joseph@codesourcery.com>
32884
32885 * config/m68k/uclinux.opt (static-libc): New Driver option.
32886
8226cd7b
JM
328872011-02-16 Joseph Myers <joseph@codesourcery.com>
32888
32889 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
32890
45cab1d7
JM
328912011-02-16 Joseph Myers <joseph@codesourcery.com>
32892
32893 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
32894 %{muser-extend-enabled}.
32895
65aab64f
RG
328962011-02-16 Richard Guenther <rguenther@suse.de>
32897
32898 PR tree-optimization/47738
32899 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
32900 the TODO from tree_predictive_commoning.
32901
fc2fa4fb
JL
329022011-02-15 Jeff Law <law@redhat.com>
32903
32904 Revert
32905 2011-01-25 Jeff Law <law@redhat.com>
32906
32907 PR rtl-optimization/37273
32908 * ira-costs.c (scan_one_insn): Detect constants living in memory and
32909 handle them like argument loads from stack slots. Do not double
32910 count memory for memory constants and argument loads from stack slots.
32911
e3a69bb4
MM
329122011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32913
32914 PR target/47755
32915 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
32916 mode for vector constants. Remove code that checks for TImode.
32917
de650422
AO
329182011-02-15 Alexandre Oliva <aoliva@redhat.com>
32919
32920 PR debug/47106
32921 PR debug/47402
32922 * cgraph.h (compute_inline_parameters): Return void.
32923 * ipa-inline.c (compute_inline_parameters): Adjust.
32924
30925d94
AO
329252011-02-15 Alexandre Oliva <aoliva@redhat.com>
32926
32927 PR debug/47106
32928 PR debug/47402
32929 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
32930 rather than decl.
32931 * cfgexpand.c (estimated_stack_frame_size): Likewise.
32932 * ipa-inline.c (compute_inline_parameters): Adjust.
32933
1b9a784a
AO
329342011-02-15 Alexandre Oliva <aoliva@redhat.com>
32935
32936 PR debug/47106
32937 PR debug/47402
32938 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
32939 Adjust all users. Pass FN to...
32940 * tree-flow-inline.h (first_referenced_var): ... this. Add
32941 fn argument.
32942 * ipa-struct-reorg.c: Adjust.
32943 * tree-dfa.c: Adjust.
32944 * tree-into-ssa.c: Adjust.
32945 * tree-sra.c: Adjust.
32946 * tree-ssa-alias.c: Adjust.
32947 * tree-ssa-live.c: Adjust.
32948 * tree-ssa.c: Adjust.
32949 * tree-ssanames.c: Adjust.
32950 * tree-tailcall.c: Adjust.
32951
27c6b086
AO
329522011-02-15 Alexandre Oliva <aoliva@redhat.com>
32953
32954 PR debug/47106
32955 PR debug/47402
32956 * tree-flow.h (referenced_var_lookup): Add fn parameter.
32957 Adjust all callers.
32958 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
32959 * tree-flow-inline.h: Adjust.
32960 * gimple-pretty-print.c: Adjust.
32961 * tree-into-ssa.c: Adjust.
32962 * tree-ssa.c: Adjust.
32963 * cfgexpand.c: Adjust.
32964
679e8183
NF
329652011-02-15 Nathan Froyd <froydnj@codesourcery.com>
32966
fbf4bfd3
UB
32967 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
32968 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32969 (EXTRA_CONSTRAINT): Delete.
32970 * config/iq2000/constraints.md: New file.
32971 * config/iq2000/iq2000.md: Include it.
679e8183
NF
32972 (define_insn ""): Delete.
32973 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
32974 unsupported constraint letters from patterns.
32975 (call_value, call_value_internal1): Likewise.
32976 (call_value_multiple_internal1): Likewise.
32977
a45d420a
NC
329782011-02-15 Nick Clifton <nickc@redhat.com>
32979
32980 * config/mn10300/mn10300.c: Include tm-constrs.h.
32981 (struct liw_data): New data structure describing an LIW candidate
32982 instruction.
32983 (extract_bundle): Use struct liw_data. Allow small integer
32984 operands for some instructions.
32985 (check_liw_constraints): Use struct liw_data. Remove swapped
32986 parameter. Add comments describing the checks. Fix bug when
32987 assigning the source of liw1 to the source of liw2.
32988 (liw_candidate): Delete. Code moved into extract_bundle.
32989 (mn10300_bundle_liw): Use struct liw_data. Check constraints
32990 before swapping.
32991 * config/mn10300/predicates.md (liw_operand): New predicate.
32992 Allows registers and small integer constants.
32993 * config/mn10300/constraints.md (O): New constraint. Accetps
32994 integers in the range -8 to +7 inclusive.
32995 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
32996 for moving a small integer into a register. Give this alternative
32997 LIW attributes.
32998 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
32999 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
33000 using the J,K,L and M constraints,
33001 (liw): Remove SI mode on second operands to allow for HI and QI
33002 mode values.
33003 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
33004 instruction.
33005
48feba28
RG
330062011-02-15 Richard Guenther <rguenther@suse.de>
33007
33008 PR tree-optimization/47743
33009 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
33010 for a non-type-compatible VN lookup bail out.
33011
ad1c1eeb
NF
330122011-02-15 Nathan Froyd <froydnj@codesourcery.com>
33013
33014 * config/fr30/constraints.md: New file.
33015 * config/fr30/fr30.md: Include it.
33016 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
33017 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33018 (EXTRA_CONSTRAINT): Delete.
33019
49ac143d
NF
330202011-02-15 Nathan Froyd <froydnj@codesourcery.com>
33021
33022 * config/frv/constraints.md: New file.
33023 * config/frv/predicates.md: Include it.
33024 * config/frv/frv.c (reg_class_from_letter): Delete.
33025 (frv_option_override): Don't initialize it.
33026 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
33027 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
33028 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
33029 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33030 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
33031 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33032 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
33033 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
33034 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
33035 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
33036 (REG_CLASS_FROM_CONSTRAINT): Delete.
33037
c95f9494
JJ
330382011-02-15 Jakub Jelinek <jakub@redhat.com>
33039
33040 PR middle-end/47581
33041 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
33042 if frame size is 0 in a leaf function.
33043
13aed611
RO
330442011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33045
33046 PR pch/14940
33047 * config/alpha/host-osf.c: New file.
33048 * config/alpha/x-osf: New file.
33049 * config.host (alpha*-dec-osf*): Use it.
33050
b09c3081
AS
330512011-02-14 Anatoly Sokolov <aesok@post.ru>
33052
33053 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
33054 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
33055 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
33056 (rx_mode_dependent_address_p): ...this. Make static. Change argument
33057 type to const_rtx.
33058 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
33059
d634083b
NF
330602011-02-14 Nathan Froyd <froydnj@codesourcery.com>
33061
33062 * config/stormy16/constraints.md: New file.
33063 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
33064 Use satisfies_constraint_Q and satisfies_constraint_R.
33065 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
33066 Delete.
33067 (xstormy16_legitiamte_address_p): Declare.
33068 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
33069 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33070 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 33071 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
33072 Un-staticize.
33073 (xstormy16_extra_constraint_p): Delete.
33074
c7dd803e
EB
330752011-02-14 Eric Botcazou <ebotcazou@adacore.com>
33076
33077 PR tree-optimization/46494
33078 * loop-unroll.c (split_edge_and_insert): Adjust comment.
33079 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
33080 (pass_rtl_loop_done): Add TODO_verify_flow.
33081 * fwprop.c (pass_rtl_fwprop): Likewise.
33082 * modulo-sched.c (pass_sms): Likewise.
33083 * tree-ssa-dom.c (pass_dominator): Likewise.
33084 * tree-ssa-loop-ch.c (pass_ch): Likewise.
33085 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
33086 (pass_tree_loop_done): Likewise.
33087 * tree-ssa-pre.c (execute_pre): Likewise.
33088 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
33089 * tree-ssa-sink.c (pass_sink_code): Likewise.
33090 * tree-vrp.c (pass_vrp): Likewise.
33091
c6150df6
NF
330922011-02-14 Nathan Froyd <froydnj@codesourcery.com>
33093
c7dd803e
EB
33094 * config/v850/constraints.md: New file.
33095 * config/v850/v850.md: Include it.
33096 * config/v850/predicates.md (reg_or_0_operand): Use
33097 satisfies_constraint_G.
33098 (special_symbolref_operand): Use satisfies_constraint_K.
33099 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
33100 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
33101 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
33102 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
33103 (EXTRA_CONSTRAINT): Delete.
33104 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
33105 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
33106 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 33107
30dd1ea3
AS
331082011-02-14 Anatoly Sokolov <aesok@post.ru>
33109
33110 PR target/47696
33111 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
33112 description.
33113
944f4bb3
NF
331142011-02-14 Nathan Froyd <froydnj@codesourcery.com>
33115
33116 * config/mcore/constraints.md: New file.
33117 * config/mcore/mcore.md: Include it.
33118 * config/mcore/mcore.c (reg_class_from_letter): Delete.
33119 * config/mcore/mcore.h (reg_class_from_letter): Delete.
33120 (REG_CLASS_FROM_LETTER): Delete.
33121 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
33122 insn_const_int_ok_for_constraint.
33123 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
33124 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
33125 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
33126 (EXTRA_CONSTRAINT): Delete.
33127
ad56a54c
RO
331282011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33129
33130 PR ada/41929
33131 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
33132 (IS_SIGHANDLER): Define.
33133 (sparc64_is_sighandler): New function, split off from
33134 sparc64_fallback_frame_state.
33135 (sparc_is_sighandler): New function, split off from
33136 sparc_fallback_frame_state.
33137 (sparc64_fallback_frame_state): Merge with ...
33138 (sparc_fallback_frame_state): ... this into ...
33139 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
33140 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
33141 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
33142 stack instead of hardcoded offsets.
ad56a54c 33143
fbf4bfd3 331442011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
33145
33146 PR target/45808
33147 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
33148
029c8f3e
RW
331492011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33150
33151 * configure: Regenerate.
33152
a016dc83
JM
331532011-02-12 Joseph Myers <joseph@codesourcery.com>
33154
33155 PR driver/45731
33156 * gcc.c (asm_options): Correct spec matching --target-help.
33157
8957a0ec
MJ
331582011-02-12 Martin Jambor <mjambor@suse.cz>
33159
33160 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
33161 to gimple call error.
33162
6ef828bc
MS
331632011-02-12 Mike Stump <mikestump@comcast.net>
33164
33165 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
33166 comments in backslash regions.
33167
a4015be5
MS
331682011-02-12 Mike Stump <mikestump@comcast.net>
33169 Jakub Jelinek <jakub@redhat.com>
33170 Iain Sandoe <iains@gcc.gnu.org>
33171
33172 PR target/47324
33173 * dwarf2out.c (output_cfa_loc): When required, apply the
33174 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
33175 (output_loc_sequence): Likewise.
33176 (output_loc_operands_raw): Likewise.
33177 (output_loc_sequence_raw): Likewise.
33178 (output_cfa_loc): Likewise.
33179 (output_loc_list): Suppress register number adjustment when
33180 calling output_loc_sequence()
33181 (output_die): Likewise.
33182
5378dda2
AS
331832011-02-12 Anatoly Sokolov <aesok@post.ru>
33184
33185 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
33186 Remove macros.
33187 * config/xtensa/xtensa.c (xtensa_register_move_cost,
33188 xtensa_memory_move_cost): New functions.
33189 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
33190
f3d533d3
AO
331912011-02-12 Alexandre Oliva <aoliva@redhat.com>
33192
33193 PR lto/47225
33194 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
33195 in the current directory.
33196 * configure: Rebuilt.
33197
9d53403c
IS
331982011-02-12 Iain Sandoe <iains@gcc.gnu.org>
33199
33200 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 33201 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
33202 correct indents of the preceding block.
33203
a350a6c8
IS
332042011-02-12 Iain Sandoe <iains@gcc.gnu.org>
33205
33206 * gcc.c (driver_handle_option): Concatenate the argument to -F with
33207 the switch.
33208
bab79a40
JM
332092011-02-11 Joseph Myers <joseph@codesourcery.com>
33210
33211 * common.opt (nostartfiles): New Driver option.
33212
1bbc6693
XDL
332132011-02-11 Xinliang David Li <davidxl@google.com>
33214
33215 PR tree-optimization/47707
33216 * tree-chrec.c (convert_affine_scev): Keep type precision.
33217
1da7d8c0
EB
332182011-02-11 Eric Botcazou <ebotcazou@adacore.com>
33219
33220 PR tree-optimization/47420
33221 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
33222
332232011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
33224
33225 PR rtl-optimization/47614
33226 * rtl.h (check_for_inc_dec): Declare.
33227 * dse.c (check_for_inc_dec): Externalize...
33228 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
33229 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
33230
4df47bca
JM
332312011-02-11 Joseph Myers <joseph@codesourcery.com>
33232
33233 PR driver/47678
33234 * gcc.c (main): Do not compile inputs if there were errors in
33235 option handling.
33236 * opts-common.c (read_cmdline_option): Check for wrong language
33237 after other error checks.
33238
61502ca8
NF
332392011-02-11 Nathan Froyd <froydnj@codesourcery.com>
33240
33241 * cgraph.c: Fix comment typos.
33242 * cgraph.h: Likewise.
33243 * cgraphunit.c: Likewise.
33244 * ipa-cp.c: Likewise.
33245 * ipa-inline.c: Likewise.
33246 * ipa-prop.c: Likewise.
33247 * ipa-pure-const.c: Likewise.
33248 * ipa-ref.c: Likewise.
33249 * ipa-reference.c: Likewise.
33250
b63f974e
JJ
332512011-02-11 Jakub Jelinek <jakub@redhat.com>
33252
d50c5e0c
JJ
33253 PR debug/47684
33254 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 33255
6dd2a13c
RO
332562011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33257
33258 PR testsuite/47400
33259 * doc/sourcebuild.texi (Require Support): Document
33260 dg-require-ascii-locale.
33261
4a087ccf
MX
332622011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
33263
33264 * doc/lto.texi (Write summary): Fix missing parentheses.
33265
a4403164
DD
332662011-02-10 DJ Delorie <dj@redhat.com>
33267
33268 * config/m32c/m32c.c (m32c_option_override): Disable
33269 -fcombine-stack-adjustments until flag value tracking and compare
33270 optimization can be rewritten.
33271
4fac45bd
PB
332722011-02-10 Peter Bergner <bergner@vnet.ibm.com>
33273
33274 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
33275 PROCESSOR_POWER7.
33276 (PROCESSOR_DEFAULT64): Likewise.
33277
72602cd1
RH
332782011-02-10 Richard Henderson <rth@redhat.com>
33279
33280 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
33281 change from 2011-02-03.
33282 * config/rx/rx.c (flags_from_code): Likewise.
33283 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
33284 is valid, n/pz otherwise.
33285 (rx_select_cc_mode): Return CCmode if Y is not zero.
33286
ea57f573
RG
332872011-02-10 Richard Guenther <rguenther@suse.de>
33288
ea4c3e65 33289 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 33290
92b1d23b
RG
332912011-02-10 Richard Guenther <rguenther@suse.de>
33292
33293 PR tree-optimization/47677
33294 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
33295
525a2d06
JJ
332962011-02-10 Jakub Jelinek <jakub@redhat.com>
33297
33298 PR target/47665
33299 * combine.c (make_compound_operation): Only change shifts into
33300 multiplication for SCALAR_INT_MODE_P.
33301
06c969bd
JZ
333022011-02-10 Jie Zhang <jie@codesourcery.com>
33303
33304 PR testsuite/47622
33305 Revert
33306 2011-02-05 Jie Zhang <jie@codesourcery.com>
33307 PR debug/42631
33308 * web.c (entry_register): Don't clobber the number of the
33309 first uninitialized reference in used[].
33310
282ec48e
RG
333112011-02-09 Richard Guenther <rguenther@suse.de>
33312
33313 PR tree-optimization/47664
33314 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
33315 all edges again.
33316
df98c3e8
DE
333172011-02-09 David Edelsohn <dje.gcc@gmail.com>
33318
d0f21cd6
DE
33319 PR target/46481
33320 PR target/47032
df98c3e8
DE
33321 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
33322 PROCESSOR_POWER7.
33323 (PROCESSOR_DEFAULT64): Same.
33324 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
33325
67b6839f
RO
333262011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33327
33328 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
33329
4fd73214
MJ
333302011-02-09 Martin Jambor <mjambor@suse.cz>
33331
33332 PR middle-end/45505
33333 * tree-sra.c (struct access): New flags grp_scalar_read and
33334 grp_scalar_write. Changed description of assignment read and write
33335 flags.
33336 (dump_access): Dump new flags, reorder all of them.
33337 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
33338 to detect multiple scalar reads.
33339 (analyze_access_subtree): Use the new scalar read write flags instead
33340 of the old flags. Adjusted comments.
33341
91140cd3
DD
333422011-02-08 DJ Delorie <dj@redhat.com>
33343
33344 PR target/47548
33345 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
33346 patterns.
33347
4254bbfe
JM
333482011-02-08 Joseph Myers <joseph@codesourcery.com>
33349
33350 * config/m68k/uclinux.opt: New.
33351 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
33352
f1fda84e
JM
333532011-02-08 Joseph Myers <joseph@codesourcery.com>
33354
33355 * config/cris/elf.opt (sim): New Driver option.
33356
4933ae74
JM
333572011-02-08 Joseph Myers <joseph@codesourcery.com>
33358
33359 * config/xtensa/elf.opt: New.
33360 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
33361
4ad70280
JM
333622011-02-08 Joseph Myers <joseph@codesourcery.com>
33363
33364 * config/vax/elf.opt: New.
33365 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
33366
20893707
JM
333672011-02-08 Joseph Myers <joseph@codesourcery.com>
33368
33369 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
33370
b8e7038e
JM
333712011-02-08 Joseph Myers <joseph@codesourcery.com>
33372
33373 * config/gnu-user.opt: New.
33374 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
33375 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
33376 *-*-uclinux*): Use gnu-user.opt.
33377
e1c5225a
TS
333782011-02-08 Thomas Schwinge <thomas@schwinge.name>
33379
33380 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
33381 * config/i386/gnu.h (CPP_SPEC): Likewise.
33382
5e46b0c6
ILT
333832011-02-08 Ian Lance Taylor <iant@google.com>
33384
33385 * common.opt (fcx-limited-range): Add SetByCombined flag.
33386 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
33387 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
33388 (fassociative-math, freciprocal-math): Likewise.
33389 (funsafe-math-optimizations): Likewise.
33390 * opth-gen.awk: Handle SetByCombined.
33391 * optc-gen.awk: Likewise.
ea4c3e65 33392 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
33393 (set_unsafe_math_optimizations_flags): Likewise.
33394 * doc/options.texi (Option properties): Document SetByCombined.
33395
32243d46
JM
333962011-02-08 Joseph Myers <joseph@codesourcery.com>
33397
33398 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
33399 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
33400 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
33401 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
33402 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
33403
479c1fb3
SP
334042011-02-08 Sebastian Pop <sebastian.pop@amd.com>
33405
33406 PR tree-optimization/46834
33407 PR tree-optimization/46994
33408 PR tree-optimization/46995
33409 * graphite-sese-to-poly.c (used_outside_reduction): New.
33410 (detect_commutative_reduction): Call used_outside_reduction.
33411 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
33412 translate_scalar_reduction_to_array only when at least one
33413 loop-phi/close-phi tuple has been detected.
33414
3865a06f
RG
334152011-02-08 Richard Guenther <rguenther@suse.de>
33416
33417 PR middle-end/47639
33418 * tree-vect-generic.c (expand_vector_operations_1): Update
33419 stmts here ...
33420 (expand_vector_operations): ... not here. Cleanup EH info
33421 and the CFG if required.
33422
62902f3f
RG
334232011-02-08 Richard Guenther <rguenther@suse.de>
33424
33425 PR tree-optimization/47641
33426 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
33427 require type compatibility.
33428
0efb9d64
AK
334292011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33430
33431 * gimple-low.c (lower_function_body): Don't remove the location of
33432 the return statement here.
33433 (lower_gimple_return): Do it here instead but only if the return
33434 statement is actually used twice.
33435
034b8ae4
RG
334362011-02-08 Richard Guenther <rguenther@suse.de>
33437
33438 PR tree-optimization/47632
33439 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
33440 unused up_to_stmt parameter, return whether cfg-cleanup is
33441 necessary, remove EH info properly.
33442 (forward_propagate_into_gimple_cond): Adjust caller.
33443 (forward_propagate_into_cond): Likewise.
33444 (forward_propagate_comparison): Likewise.
33445 (tree_ssa_forward_propagate_single_use_vars): Make
33446 forward_propagate_comparison case similar to the two others.
33447
298362c8
NC
334482011-02-08 Nick Clifton <nickc@redhat.com>
33449
33450 * config/mn10300/mn10300.opt (mliw): New command line option.
33451 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
33452 (liw_bundling): New automaton.
33453 (liw): New attribute.
33454 (liw_op): New attribute.
33455 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
33456 (movsi_internal): Add LIW attributes.
33457 (andsi3): Likewise.
33458 (iorsi3): Likewise.
33459 (xorsi3): Likewise.
33460 (addsi3): Separate register and immediate alternatives.
33461 Add LIW attributes.
33462 (subsi3): Likewise.
33463 (cmpsi): Likewise.
33464 (aslsi3): Likewise.
33465 (lshrsi3): Likewise.
33466 (ashrsi3): Likewise.
33467 (liw): New pattern.
33468 * config/mn10300/mn10300.c (liw_op_names): New
33469 (mn10300_print_operand): Handle 'W' operand descriptor.
33470 (extract_bundle): New function.
33471 (check_liw_constraints): New function.
33472 (liw_candidate): New function.
33473 (mn10300_bundle_liw): New function.
33474 (mn10300_reorg): New function.
33475 (TARGET_MACHINE_DEPENDENT_REORG): Define.
33476 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
33477 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
33478 __LIW__ or __NO_LIW__.
33479 * doc/invoke.texi: Describe the -mliw command line option.
33480
90488014
JDA
334812011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33482
33483 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
33484 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
33485 pthread_mutex_unlock): Remove.
33486 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
33487 * config/pa/t-pa64: Likewise.
33488 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
33489 shared libc if not linking against libpthread.
33490 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33491
689ff841
IS
334922011-02-07 Iain Sandoe <iains@gcc.gnu.org>
33493
33494 PR target/47558
33495 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
33496 on 10.6 and later to ensure that we always use the unwinder from
33497 the system. Only add -no_compact_unwind when tarteting darwin
33498 10.6 or later.
33499
821014aa
SE
335002011-02-07 Steve Ellcey <sje@cup.hp.com>
33501
33502 PR target/46997
33503 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
33504 (vec_interleave_lowv2sf): Ditto.
33505 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
33506 (vec_extract_oddv2sf): Ditto.
33507
41cf94fb
MS
335082011-02-07 Mike Stump <mikestump@comcast.net>
33509
62dea57d 33510 PR target/42333
41cf94fb
MS
33511 Add __ieee_divdc3 entry point.
33512 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
33513 entry point.
33514 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
33515 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
33516 * config/darwin.c (darwin_rename_builtins): Add.
33517 * config/darwin-protos.h (darwin_rename_builtins): Add.
33518
ee09a3dd
MM
335192011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
33520
33521 PR target/47636
33522 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
33523 for the condition.
33524
83296cd0
MS
335252011-02-07 Mike Stump <mikestump@comcast.net>
33526
ea4c3e65 33527 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 33528
0f4e946f
DC
335292011-02-07 Denis Chertykov <chertykov@gmail.com>
33530
33531 PR target/47534
33532 * config/avr/libgcc.S (exit): Move .endfunc
33533
1ec87690
RG
335342011-02-07 Richard Guenther <rguenther@suse.de>
33535
33536 PR tree-optimization/47615
33537 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
33538 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
33539 (run_scc_vn): Initialize it.
33540 (visit_reference_op_load): Use it.
33541 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
33542
b46ae6da
UW
335432011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33544
33545 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
33546 DImode trapping arithmetic libfuncs.
33547
c0aae19c
RG
335482011-02-07 Richard Guenther <rguenther@suse.de>
33549
33550 PR tree-optimization/47621
33551 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
33552 two duplicates ...
33553 (execute_update_addresses_taken): ... here. Make it more
33554 conservative in what we accept.
33555
295d926b
JM
335562011-02-06 Joseph Myers <joseph@codesourcery.com>
33557
33558 * config/sparc/freebsd.h (ASM_SPEC): Define.
33559 * config/sparc/vxworks.h (ASM_SPEC): Define.
33560
bdeb2471
JM
335612011-02-06 Joseph Myers <joseph@codesourcery.com>
33562
33563 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
33564
d5d3781a
SB
335652011-02-06 Steven Bosscher <steven@gcc.gnu.org>
33566
33567 * doc/invoke.texi: Remove reference to compiler internals from
33568 user documentation.
33569
33570 * reg-notes.def: Remove REG_VALUE_PROFILE.
33571 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
33572
c42c09fc
JJ
335732011-02-05 Jakub Jelinek <jakub@redhat.com>
33574
33575 PR middle-end/47610
33576 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 33577 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 33578
beea2755
JZ
335792011-02-05 Jie Zhang <jie@codesourcery.com>
33580
33581 PR debug/42631
33582 * web.c (entry_register): Don't clobber the number of the
33583 first uninitialized reference in used[].
33584
a130584a
SP
335852011-02-04 Sebastian Pop <sebastian.pop@amd.com>
33586
33587 PR tree-optimization/46194
33588 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
33589 (build_classic_dist_vector_1): Do not represent classic distance
33590 vectors when the access functions are variating in different loops.
33591
962101ac
JM
335922011-02-04 Joseph Myers <joseph@codesourcery.com>
33593
33594 * config/mips/iris6.opt: New.
33595 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
33596
55eaaa5b
RH
335972011-02-04 Richard Henderson <rth@redhat.com>
33598 Steve Ellcey <sje@cup.hp.com>
33599
33600 PR target/46997
33601 * config/ia64/predicates.md (mux1_brcst_element): New.
33602 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
33603 * config/ia64/ia64.c (ia64_unpack_assemble): New.
33604 (ia64_unpack_sign): New.
33605 (ia64_expand_unpack): Rewrite using new routines.
33606 (ia64_expand_widen_sum): Ditto.
33607 (ia64_expand_dot_prod_v8qi): Ditto.
33608 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
33609 routines, add endian check.
33610 (pmpy2_even): Rename from pmpy2_r, add endian check.
33611 (pmpy2_odd): Rename from pmpy2_l, add endian check.
33612 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
33613 (vec_widen_smult_hi_v4hi): Ditto.
33614 (vec_widen_umult_lo_v4hi): Ditto.
33615 (vec_widen_umult_hi_v4hi): Ditto.
33616 (mulv2si3): Change endian checks.
33617 (sdot_prodv4hi): Rewrite with new calls.
33618 (udot_prodv4hi): New.
33619 (vec_pack_ssat_v4hi): Add endian check.
33620 (vec_pack_usat_v4hi): Ditto.
33621 (vec_pack_ssat_v2si): Ditto.
33622 (max1_even): Rename from max1_r, add endian check.
33623 (max1_odd): Rename from max1_l, add endian check.
33624 (*mux1_rev): Format change.
33625 (*mux1_mix): Ditto.
33626 (*mux1_shuf): Ditto.
33627 (*mux1_alt): Ditto.
33628 (*mux1_brcst_v8qi): Use new predicate.
33629 (vec_extract_evenv8qi): Remove endian check.
33630 (vec_extract_oddv8qi): Ditto.
33631 (vec_interleave_lowv4hi): Format change.
33632 (vec_interleave_highv4hi): Ditto.
33633 (mix2_even): Rename from mix2_r, add endian check.
33634 (mix2_odd): Rename from mux2_l, add endian check.
33635 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
33636 (vec_extract_evenodd_helper): Format change.
33637 (vec_extract_evenv4hi): Remove endian check.
33638 (vec_extract_oddv4hi): Remove endian check.
33639 (vec_interleave_lowv2si): Format change.
33640 (vec_interleave_highv2si): Format change.
33641 (vec_initv2si): Remove endian check.
33642 (vecinit_v2si): Add endian check.
33643 (reduc_splus_v2sf): Add endian check.
33644 (reduc_smax_v2sf): Ditto.
33645 (reduc_smin_v2sf): Ditto.
33646 (vec_initv2sf): Remove endian check.
33647 (fpack): Add endian check.
33648 (fswap): Add endian check.
33649 (vec_interleave_highv2sf): Add endian check.
33650 (vec_interleave_lowv2sf): Add endian check.
33651 (fmix_lr): Add endian check.
33652 (vec_setv2sf): Format change.
33653 (*vec_extractv2sf_0_be): Use shift to extract operand.
33654 (*vec_extractv2sf_1_be): New.
33655 (vec_pack_trunc_v4hi): Add endian check.
33656 (vec_pack_trunc_v2si): Format change.
33657
dcde5957
JJ
336582011-02-04 Jakub Jelinek <jakub@redhat.com>
33659
33660 PR inline-asm/23200
33661 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 33662 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
33663 (stmt_is_replaceable_p): New function.
33664 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
33665 callers.
33666 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
33667 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
33668 SSA_NAME_DEF_STMT.
33669 * tree-flow.h (stmt_is_replaceable_p): New prototype.
33670
a64a8e5a
JM
336712011-02-04 Joseph Myers <joseph@codesourcery.com>
33672
33673 * config/rs6000/xilinx.opt: New.
33674 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
33675
4da2ed2f
JM
336762011-02-04 Joseph Myers <joseph@codesourcery.com>
33677
33678 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
33679
a6e508f9
AS
336802011-02-03 Anatoly Sokolov <aesok@post.ru>
33681
33682 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
33683 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
33684 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
33685 secondary_reload_info, xtensa_secondary_reload): Remove.
33686 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
33687 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
33688 (xtensa_preferred_reload_class): Make static. Change return and
33689 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
33690 Use CONST_DOUBLE_P predicate.
33691 (xtensa_preferred_output_reload_class): New function.
33692 (xtensa_secondary_reload): Make static.
33693
82dc0de3
JM
336942011-02-03 Joseph Myers <joseph@codesourcery.com>
33695
33696 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
33697 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
33698 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
33699
7fece979
JJ
337002011-02-03 Jakub Jelinek <jakub@redhat.com>
33701
33702 PR middle-end/31490
33703 * output.h (SECTION_RELRO): Define.
33704 (SECTION_MACH_DEP): Adjust.
33705 (get_variable_section): New prototype.
33706 * varpool.c (varpool_finalize_named_section_flags): New function.
33707 (varpool_assemble_pending_decls): Call it.
33708 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
33709 * cgraphunit.c (cgraph_output_in_order): Call
33710 varpool_finalize_named_section_flags.
33711 * varasm.c (get_section): Allow section flags conflicts between
33712 relro and read-only sections if the section hasn't been declared yet.
33713 Set SECTION_OVERRIDE after diagnosing section type conflict.
33714 (get_variable_section): No longer static.
33715 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
33716 readonly sections that need relocations.
33717 (decl_readonly_section_1): New function.
33718 (decl_readonly_section): Use it.
33719
33720 Revert:
509d65dd 33721 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
33722 Steve Ellcey <sje@cup.hp.com>
33723
33724 PR middle-end/31490
33725 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
33726 if section attribute used.
33727
d18d5478
JJ
337282011-02-03 Jakub Jelinek <jakub@redhat.com>
33729
33730 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
33731 * config/darwin.c (SECTION_NO_ANCHOR): Define.
33732 (darwin_init_sections): Remove assertion.
33733
6479ed4b
NC
337342011-02-03 Nick Clifton <nickc@redhat.com>
33735
33736 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
33737 lt and ge.
38be4072 33738 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
33739 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
33740 instead of "n" and "pz".
33741 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
33742 CC_FLAG_S.
33743
89843f5d
JJ
337442011-02-03 Jakub Jelinek <jakub@redhat.com>
33745
65450d64
JJ
33746 PR target/47312
33747 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
33748 fma, expand FMA_EXPR as fma{,f,l} call.
33749
7d58701c
JJ
33750 PR lto/47274
33751 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
33752 copy them into a unsigned char variable and pass address of it to
33753 lto_output_data_stream.
33754
89843f5d
JJ
33755 PR target/47564
33756 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
33757 around backend_init_target and lang_dependent_init_target calls.
33758 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
33759 (verify_cgraph_node): Don't call set_cfun here. Use
33760 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
33761 Set error_found for incorrectly represented calls to thunks.
33762
4deef538
AO
337632011-02-03 Alexandre Oliva <aoliva@redhat.com>
33764
33765 PR debug/43092
33766 PR rtl-optimization/43494
33767 * rtl.h (for_each_inc_dec_fn): New type.
33768 (for_each_inc_dec): Declare.
33769 * rtlanal.c (struct for_each_inc_dec_ops): New type.
33770 (for_each_inc_dec_find_inc_dec): New fn.
33771 (for_each_inc_dec_find_mem): New fn.
33772 (for_each_inc_dec): New fn.
33773 * dse.c (struct insn_size): Remove.
33774 (replace_inc_dec, replace_inc_dec_mem): Remove.
33775 (emit_inc_dec_insn_before): New fn.
33776 (check_for_inc_dec): Use it, along with for_each_inc_dec.
33777 (canon_address): Pass mem modes to cselib_lookup.
33778 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
33779 (cselib_lookup_from_insn): Likewise.
33780 (cselib_subst_to_values): Likewise.
33781 * cselib.c (find_slot_memmode): New var.
33782 (cselib_find_slot): New fn. Use it instead of
33783 htab_find_slot_with_hash everywhere.
33784 (entry_and_rtx_equal_p): Use find_slot_memmode.
33785 (autoinc_split): New fn.
33786 (rtx_equal_for_cselib_p): Rename and implement in terms of...
33787 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
33788 Deal with autoinc. Special-case recursion into MEMs.
33789 (cselib_hash_rtx): Likewise.
33790 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
33791 address and MEM modes.
33792 (cselib_subst_to_values): Add memmode, pass it on.
33793 Deal with autoinc.
33794 (cselib_lookup): Add memmode argument, pass it on.
33795 (cselib_lookup_from_insn): Add memmode.
33796 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
33797 (struct cselib_record_autoinc_data): New.
33798 (cselib_record_autoinc_cb): New fn.
33799 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
33800 mode to cselib_lookup. Reset autoinced REGs here instead of...
33801 (cselib_process_insn): ... here.
33802 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
33803 to cselib_lookup.
33804 (add_uses): Likewise, also to cselib_subst_to_values.
33805 (add_stores): Likewise.
276e0224 33806 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
33807 cselib_subst_to_values.
33808 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
33809 * gcse.c (do_local_cprop): Adjusted.
33810 * postreload.c (reload_cse_simplify_set): Adjusted.
33811 (reload_cse_simplify_operands): Adjusted.
33812 * sel-sched-dump (debug_mem_addr_value): Pass mode.
33813
1551d44a
AO
338142011-02-03 Alexandre Oliva <aoliva@redhat.com>
33815
33816 PR tree-optimization/45122
33817 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
33818 unsafe assumptions when there's more than one loop exit.
33819
c9485473
MM
338202011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
33821
33822 PR target/47272
33823 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33824 Document using vector double with the load/store builtins, and
33825 that the load/store builtins always use Altivec instructions.
33826
33827 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
33828 to use altivec memory instructions, even on VSX.
33829 (vector_altivec_store_<mode>): Ditto.
33830
33831 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
33832 function.
33833
33834 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33835 V2DF, V2DI support to load/store overloaded builtins.
33836
33837 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
33838 altivec load/store builtins for V2DF/V2DI types.
33839
33840 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33841 set avoid indexed addresses on power6 if -maltivec.
33842 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
33843 vector_altivec_load/vector_altivec_store builtins.
33844 (altivec_expand_st_builtin): Ditto.
33845 (altivec_expand_builtin): Add VSX memory builtins.
33846 (rs6000_init_builtins): Add V2DI types to internal types.
33847 (altivec_init_builtins): Add support for V2DF/V2DI altivec
33848 load/store builtins.
33849 (rs6000_address_for_altivec): Insure memory address is appropriate
33850 for Altivec.
33851
33852 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
33853 vec_vsx_ld and vec_vsx_st.
33854 (vsx_store_<mode>): Ditto.
33855
33856 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
33857 variables to hold long long types for VSX vector memory builtins.
33858 (RS6000_BTI_unsigned_long_long): Ditto.
33859 (long_long_integer_type_internal_node): Ditti.
33860 (long_long_unsigned_type_internal_node): Ditti.
33861
33862 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
33863 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
33864 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
33865
33866 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
33867 short cuts.
33868 (vec_vsx_st): Ditto.
33869
b24d1acf
JM
338702011-02-02 Joseph Myers <joseph@codesourcery.com>
33871
33872 * config/pa/pa-hpux10.opt: New.
33873 * config/hpux11.opt (pthread): New Driver option.
33874 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
33875 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
33876
aa18dd0f
JM
338772011-02-02 Joseph Myers <joseph@codesourcery.com>
33878
33879 * config/ia64/vms.opt: New.
33880 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
33881
28fc3eee
MM
338822011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
33883
33884 PR target/47580
33885 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
33886 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
33887 generator functions.
33888 (vsx_floatuns<VSi><mode>2): Ditto.
33889 (vsx_fix_trunc<mode><VSi>2): Ditto.
33890 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
33891
b5838b1f
JM
338922011-02-02 Joseph Myers <joseph@codesourcery.com>
33893
33894 * config/i386/djgpp.opt (posix): New Driver option.
33895
0db8fa89
GP
338962011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
33897
33898 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
33899 Move to the unsupported targets list.
33900
9cd4f22a
PB
339012011-02-02 Peter Bergner <bergner@vnet.ibm.com>
33902
33903 PR rtl-optimization/47525
33904 * df-scan.c: Update copyright years.
33905 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
33906 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
33907
9ed8059c
RO
339082011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33909
33910 * config/i386/sysv4.h (TARGET_VERSION): Remove.
33911 (SUBTARGET_RETURN_IN_MEMORY): Remove.
33912 (ASM_OUTPUT_ASCII): Remove.
33913 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
33914
2a737389
JL
339152011-02-02 Jeff Law <law@redhat.com>
33916
33917 PR middle-end/47543
33918 * reload.c (find_reloads_address): Handle reg+d address where both
33919 components are invalid by reloading the entire address.
33920
9dac82c4
SP
339212011-02-02 Sebastian Pop <sebastian.pop@amd.com>
33922 Richard Guenther <rguenther@suse.de>
33923
33924 PR tree-optimization/40979
33925 PR bootstrap/47044
33926 * passes.c (init_optimization_passes): After LIM call copy_prop
33927 and DCE to clean up.
33928 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
33929
14dd9aab
SP
339302011-02-02 Sebastian Pop <sebastian.pop@amd.com>
33931
33932 PR tree-optimization/47576
33933 PR tree-optimization/47555
33934 * doc/invoke.texi (scev-max-expr-complexity): Documented.
33935 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
33936 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
33937 * tree-scalar-evolution.c (follow_ssa_edge): Use
33938 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
33939
5cbf5c20
RG
339402011-02-02 Richard Guenther <rguenther@suse.de>
33941
33942 PR tree-optimization/47566
33943 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
33944
83d70792
AO
339452011-02-02 Alexandre Oliva <aoliva@redhat.com>
33946
e829c321
AO
33947 PR debug/47106
33948 PR debug/47402
33949 * tree-inline.c (declare_return_variable): Remove unused caller
33950 variable.
33951
83d70792
AO
33952 PR debug/47106
33953 PR debug/47402
33954 * tree-flow-inline.h (clear_is_used, is_used_p): New.
33955 * cfgexpand.c (account_used_vars_for_block): Use them.
33956 * tree-nrv.c (tree_nrv): Likewise.
33957 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
33958 (dump_scope_block): Likewise.
33959 (remove_unused_locals): Likewise.
33960
aaa2ac93
AO
33961 PR debug/47106
33962 PR debug/47402
33963 * tree-inline.c (declare_return_variable): Add result decl to
33964 local decls only once.
33965 * gimple-low.c (record_vars_into): Mark newly-created variables
33966 as referenced.
33967
a59d15cf
AO
339682011-02-02 Alexandre Oliva <aoliva@redhat.com>
33969
33970 PR debug/47498
33971 PR debug/47501
33972 PR debug/45136
33973 PR debug/45130
33974 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
33975 debug insns.
33976 (no_real_insns_p, schedule_block, set_priorities): Drop special
33977 treatment of boundary debug insns.
38be4072 33978 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
33979 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
33980 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
33981 (BOUNDARY_DEBUG_INSN_P): Likewise.
33982 (SCHEDULE_DEBUG_INSN_P): Likewise.
33983 * sched-rgn.c (init_ready_list): Drop special treatment of
33984 boundary debug insns.
33985 * final.c (rest_of_clean_state): Clear notes' BB.
33986
6fc2f091
JM
339872011-02-01 Joseph Myers <joseph@codesourcery.com>
33988
33989 * config/openbsd.opt (assert=): New Driver option.
33990
fc523387
JM
339912011-02-01 Joseph Myers <joseph@codesourcery.com>
33992
33993 * config/i386/nto.opt: New.
33994 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
33995
6d9821e5
JM
339962011-02-01 Joseph Myers <joseph@codesourcery.com>
33997
33998 * config/i386/netware.opt: New.
33999 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
34000
cef932d4
JM
340012011-02-01 Joseph Myers <joseph@codesourcery.com>
34002
34003 * config/interix.opt (posix): New Driver option.
34004
22843acd
DD
340052011-02-01 DJ Delorie <dj@redhat.com>
34006
56490b74
DD
34007 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
34008
22843acd
DD
34009 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
34010 class for A0/A1.
34011
199c8f2f
SP
340122011-02-01 Sebastian Pop <sebastian.pop@amd.com>
34013
34014 PR tree-optimization/47561
34015 * toplev.c (process_options): Print the Graphite flags. Add
34016 flag_loop_flatten to the list of options requiring Graphite.
34017
926bcf22
JM
340182011-02-01 Joseph Myers <joseph@codesourcery.com>
34019
34020 * config/i386/cygming.opt (posix): New Driver option.
34021
59793c51
JM
340222011-02-01 Joseph Myers <joseph@codesourcery.com>
34023
34024 * config/arm/vxworks.opt: New.
34025 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
34026
183c38a4
JM
340272011-02-01 Joseph Myers <joseph@codesourcery.com>
34028
34029 * config/alpha/elf.opt: New.
34030 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
34031 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
34032
9939e416
RG
340332011-02-01 Richard Guenther <rguenther@suse.de>
34034
34035 PR tree-optimization/47559
34036 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
34037 store-motion on references that can throw.
34038
4a3c9687
BS
340392011-02-01 Bernd Schmidt <bernds@codesourcery.com>
34040
34041 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
34042 * tree-pass.h (TDF_CSELIB): New macro.
34043 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
34044 cselib_lookup): Check for it rather than for TDF_DETAILS.
34045
dd3b31fb
L
340462011-02-01 H.J. Lu <hongjiu.lu@intel.com>
34047
34048 PR driver/47547
34049 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
34050 is HOST_BIT_BUCKET.
34051
34052 * opts.c (finish_options): Don't add x_aux_base_name if it is
34053 HOST_BIT_BUCKET.
34054
34c1de79
RG
340552011-02-01 Richard Guenther <rguenther@suse.de>
34056
34057 PR tree-optimization/47555
34058 Revert
34059 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
34060
34061 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
34062
dd2804d2
SB
340632011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
34064
34065 PR gcc/46692
34066 * config/lm32/t-lm32: Add multilib for all CPU options.
34067
3fd3b156
RG
340682011-02-01 Richard Guenther <rguenther@suse.de>
34069
34070 PR tree-optimization/47541
34071 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
34072 sure to have a field at offset zero.
34073
f16072b6
JM
340742011-01-31 Joseph Myers <joseph@codesourcery.com>
34075
34076 * config/arc/arc.opt (EB, EL): New Driver options.
34077
6456cf2e
JM
340782011-01-31 Joseph Myers <joseph@codesourcery.com>
34079
34080 * config/alpha/osf5.opt: New.
34081 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
34082
cdde6ab4
JM
340832011-01-31 Joseph Myers <joseph@codesourcery.com>
34084
34085 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
34086
7633415c
SP
340872011-01-31 Sebastian Pop <sebastian.pop@amd.com>
34088
34089 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
34090 -floop-interchange.
34091 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
34092 is an alias of -floop-interchange and that it requires the
34093 Graphite infrastructure.
34094 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
34095 flag_loop_interchange based on the value of flag_tree_loop_linear.
34096
0425d6f5
JJ
340972011-01-31 Jakub Jelinek <jakub@redhat.com>
34098 Richard Guenther <rguenther@suse.de>
34099
34100 PR tree-optimization/47538
34101 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
34102 type instead of r1type, except for comparisons. For right
34103 shifts and comparisons punt if there are mismatches in
34104 sizetype vs. non-sizetype types.
34105
500b16c3
RO
341062011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34107
34108 * doc/sourcebuild.texi (Effective-Target Keywords): Document
34109 avx_runtime.
34110
e279edb0
RO
341112011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34112
34113 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
34114 version number.
34115 * configure: Regenerate.
34116
c6092243
RO
341172011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34118
34119 * configure.ac (gcc_cv_ld_static_option): Define.
34120 (gcc_cv_ld_dynamic_option): Define.
34121 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
34122 instead.
34123 (HAVE_LD_STATIC_DYNAMIC): Update message.
34124 (LD_STATIC_OPTION): Define.
34125 (LD_DYNAMIC_OPTION): Define.
34126 * configure: Regenerate.
34127 * config.in: Regenerate.
34128 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
34129 HAVE_LD_STATIC_DYNAMIC]: Use them.
34130
d7862be3
NC
341312011-01-31 Nick Clifton <nickc@redhat.com>
34132
34133 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
34134 registers inside interrupt handlers if the handler is not a leaf
34135 function.
34136
ba4ec0e0
NC
341372011-01-31 Nick Clifton <nickc@redhat.com>
34138
34139 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
34140 reg_renumber returning an INVALID_REGNUM.
34141
29a63921
AO
341422011-01-31 Alexandre Oliva <aoliva@redhat.com>
34143
34144 PR libgcj/44341
34145 * doc/install.texi: Document host options discarded when cross
34146 configuring target libraries.
34147
ef591d3f
AO
341482011-01-31 Alexandre Oliva <aoliva@redhat.com>
34149
34150 Reverted:
34151 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
34152 PR debug/45136
34153 PR debug/45130
34154 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34155 debug insns.
34156 (no_real_insns_p, schedule_block, set_priorities): Drop special
34157 treatment of boundary debug insns.
38be4072 34158 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
34159 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34160 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34161 (BOUNDARY_DEBUG_INSN_P): Likewise.
34162 (SCHEDULE_DEBUG_INSN_P): Likewise.
34163 * sched-rgn.c (init_ready_list): Drop special treatment of
34164 boundary debug insns.
34165 * final.c (rest_of_clean-state): Clear notes' BB.
34166
61052244
AM
341672011-01-31 Alan Modra <amodra@gmail.com>
34168
34169 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
34170 toc relative expressions as we do in print_operand_address.
34171
c4c8962b
KH
341722011-01-30 Kazu Hirata <kazu@codesourcery.com>
34173
34174 * doc/extend.texi: Follow spelling conventions.
34175 * doc/invoke.texi: Fix a typo.
34176
e543b94c
JM
341772011-01-30 Joseph Myers <joseph@codesourcery.com>
34178
34179 * config/hpux11.opt: New.
34180 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
34181 ia64*-*-hpux*): Use hpux11.opt.
34182
509d65dd 341832011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
34184
34185 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
34186 to tmake_file.
34187
7be03a0e
GP
341882011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
34189
34190 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
34191 support sites.
34192
419d1d37
GP
341932011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
34194
b596ed64
GP
34195 * doc/install.texi (Binaries): Remove outdated reference for
34196 Motorola 68HC11/68HC12 downloads.
34197
341982011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 34199
419d1d37
GP
34200 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
34201 Drepper's paper.
34202
4406d0e9
JW
342032011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
34204
34205 PR bootstrap/47147
34206 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
34207 used by NetBSD.
34208
38be4072 342092011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
34210
34211 * value-prof.c (check_counter): Corrected error message.
34212
0cd98787
JZ
342132011-01-29 Jie Zhang <jie@codesourcery.com>
34214
34215 * config/arm/arm.c (arm_legitimize_reload_address): New.
34216 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
34217 arm_legitimize_reload_address.
38be4072 34218 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 34219
9b798ac5
ILT
342202011-01-28 Ian Lance Taylor <iant@google.com>
34221
34222 * godump.c (go_define): Ignore macros whose definitions include
34223 two adjacent operands.
34224
591e29d9
JJ
342252011-01-28 Jakub Jelinek <jakub@redhat.com>
34226
34227 PR target/42894
34228 * varasm.c (force_const_mem): Store copy of x in desc->constant
34229 instead of x itself.
34230 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
34231 itself into REG_EQUAL note.
34232
62dcc44a
JM
342332011-01-28 Joseph Myers <joseph@codesourcery.com>
34234
34235 * config/freebsd.opt (posix, rdynamic): New Driver options.
34236
c9f58b9a
RO
342372011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34238
34239 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
34240 -Bstatic/-Bdynamic.
34241 * configure: Regenerate.
34242
5f02b9db
JM
342432011-01-27 Joseph Myers <joseph@codesourcery.com>
34244
34245 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
34246 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
34247
5df97412
AS
342482011-01-27 Anatoly Sokolov <aesok@post.ru>
34249
34250 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
34251 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
34252 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
34253 (s390_preferred_reload_class): Make static. Change return and
34254 'rclass' argument type to reg_class_t.
34255
779d4b91
JH
342562011-01-27 Jan Hubicka <jh@suse.cz>
34257
34258 PR middle-end/46949
34259 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
34260 (process_function_and_variable_attributes): Check defined weakrefs.
34261
e80b21ed
MJ
342622011-01-27 Martin Jambor <mjambor@suse.cz>
34263
34264 PR tree-optimization/47228
34265 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
34266 build_ref_for_offset.
34267
6dcc4f31
UW
342682011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34269
34270 * config/spu/spu-elf.h (ASM_SPEC): Remove.
34271
509d65dd 342722011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
34273
34274 PR rtl-optimization/46856
34275 * postreload.c (reload_combine_recognize_const_pattern): Do not
34276 separate cc0 setter and user on cc0 targets.
34277
04af8788
NP
342782011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
34279
34280 PR c/43082
34281 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
34282 passed a VOID_TYPE expression, immediately emit an error and
34283 return error_mark_node.
34284
f7a60085
JL
342852011-01-26 Jeff Law <law@redhat.com>
34286
34287 PR rtl-optimization/47464
34288 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
34289 rather than may_trap_p as needed.
34290
5c2917ec
DD
342912011-01-26 DJ Delorie <dj@redhat.com>
34292
34293 PR rtl-optimization/46878
34294 * combine.c (insn_a_feeds_b): Check for the implicit cc0
34295 setter/user dependency as well.
34296
bef16e87
EB
342972011-01-26 Eric Botcazou <ebotcazou@adacore.com>
34298
34299 PR rtl-optimization/44469
34300 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
34301 after removing trivially dead basic blocks.
34302
c75d884b
JM
343032011-01-26 Joseph Myers <joseph@codesourcery.com>
34304
34305 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
34306 * config/frv/frv.h (LINK_SPEC): Likewise.
34307 * config/i386/netware.h (LINK_SPEC): Likewise.
34308 * config/m68k/linux.h (ASM_SPEC): Likewise.
34309 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
34310 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34311 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34312 * config/sparc/linux.h (ASM_SPEC): Likewise.
34313 * config/sparc/linux64.h (ASM_SPEC): Likewise.
34314 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34315
d3153553
JM
343162011-01-26 Joseph Myers <joseph@codesourcery.com>
34317
34318 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
34319 * config/frv/frv.h (ASM_SPEC): Likewise.
34320 * config/m68k/linux.h (ASM_SPEC): Likewise.
34321 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34322 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
34323 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34324 * config/sparc/linux.h (ASM_SPEC): Likewise.
34325 * config/sparc/linux64.h (ASM_SPEC): Likewise.
34326 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34327
b89b1e9d
JM
343282011-01-26 Joseph Myers <joseph@codesourcery.com>
34329
34330 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
34331 * config/frv/frv.h (LINK_SPEC): Likewise.
34332 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
34333
12eb1a9c
JM
343342011-01-26 Joseph Myers <joseph@codesourcery.com>
34335
34336 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
34337 * config/frv/frv.h (ASM_SPEC): Likewise.
34338 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
34339 * config/m68k/linux.h (ASM_SPEC): Likewise.
34340 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
34341 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
34342 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
34343 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
34344 * config/sparc/linux.h (ASM_SPEC): Likewise.
34345 * config/sparc/linux64.h (ASM_SPEC): Likewise.
34346 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
34347 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
34348
e435f098
SE
343492011-01-26 Steve Ellcey <sje@cup.hp.com>
34350
34351 PR target/46997
34352 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
34353 (*mux2): Ditto.
34354 (vec_extract_evenodd_help): Ditto.
34355 (vec_extract_evenv4hi): Ditto.
34356 (vec_extract_oddv4hi): Ditto.
34357 (vec_interleave_lowv2si): Ditto.
34358 (vec_interleave_highv2si): Ditto.
34359 (vec_extract_evenv2si): Ditto.
34360 (vec_extract_oddv2si: Ditto.
34361 (vec_pack_trunc_v2si): Ditto.
34362
34f0eee0
JH
343632011-01-22 Jan Hubicka <jh@suse.cz>
34364
34365 PR target/47237
34366 * cgraph.h (cgraph_local_info): New field can_change_signature.
34367 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
34368 signature can change.
34369 (ipcp_estimate_growth): Call sequence simplify only if calle signature
34370 can change.
34371 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
34372 (cgraph_function_versioning): We can not change signature of functions
34373 that don't allow that.
34374 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
34375 (lto_input_node): Likewise.
38be4072
UB
34376 * ipa-inline.c (compute_inline_parameters): Compute
34377 local.can_change_signature.
34f0eee0 34378 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
34379 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
34380 functions that can not change signature.
34f0eee0 34381 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
34382 init_cumulative_args): Do not use local calling conventions
34383 for functions that can not change signature.
34f0eee0 34384
980ca891
JH
343852011-01-22 Jan Hubicka <jh@suse.cz>
34386
34387 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
34388
768e3c60
RG
343892011-01-26 Richard Guenther <rguenther@suse.de>
34390
34391 PR tree-optimization/47190
61052244
AM
34392 * cgraphunit.c (process_common_attributes): New function.
34393 (process_function_and_variable_attributes): Use it.
768e3c60 34394
21d6a1c7
RG
343952011-01-26 Richard Guenther <rguenther@suse.de>
34396
34397 PR lto/47423
34398 * cgraphbuild.c (record_eh_tables): Record reference to personality
34399 function.
34400
48bb58b1
AO
344012011-01-26 Alexandre Oliva <aoliva@redhat.com>
34402
34403 PR debug/45454
34404 * sel-sched.c (moveup_expr): Don't let debug insns prevent
34405 non-debug insns from moving up.
34406
58c741a6
DK
344072011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
34408
34409 PR target/40125
34410 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
34411 t-dlldir{,-x} fragment for build and add it to tmake_file.
34412 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
34413 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
34414 * config/i386/t-dlldir: New file.
34415 (SHLIB_DLLDIR): Define.
34416 * config/i386/t-dlldir-x: New file.
34417 (SHLIB_DLLDIR): Define.
34418 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
34419 (SHLIB_INSTALL): Use it.
34420
bff99262
CLT
344212011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
34422
34423 PR target/47246
34424 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
34425 lower bound of the allowed Thumb-2 coprocessor load/store
34426 index range to -256. Add explaining comment.
34427
82c03907
ILT
344282011-01-25 Ian Lance Taylor <iant@google.com>
34429
34430 * godump.c (go_define): Improve lexing of macro expansion to only
34431 accept expressions which match Go spec.
34432
47ea1edf
DK
344332011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
34434
d4dba752 34435 PR c++/43601
47ea1edf
DK
34436 * tree.c (handle_dll_attribute): Handle it.
34437 * doc/extend.texi (@item dllexport): Mention it.
34438 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
34439
744f0946
ILT
344402011-01-25 Ian Lance Taylor <iant@google.com>
34441
34442 PR tree-optimization/26854
34443 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
34444 (decl_jump_unsafe): Move higher in file, with no other change.
34445 (bind): Set has_jump_unsafe_decl if appropriate.
34446 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
34447 (check_earlier_gotos): Likewise.
34448 (c_check_switch_jump_warnings): Likewise.
34449
5734f2b3
JW
344502011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
34451
34452 * doc/invoke.texi (Warning Options): Add missing hyphen.
34453 (-fprofile-dir): Minor grammatical fixes.
34454 (-fbranch-probabilities): Likewise.
34455
9bdbdcef
AO
344562011-01-25 Alexandre Oliva <aoliva@redhat.com>
34457
34458 PR debug/45136
34459 PR debug/45130
34460 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
34461 debug insns.
34462 (no_real_insns_p, schedule_block, set_priorities): Drop special
34463 treatment of boundary debug insns.
38be4072 34464 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
34465 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
34466 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
34467 (BOUNDARY_DEBUG_INSN_P): Likewise.
34468 (SCHEDULE_DEBUG_INSN_P): Likewise.
34469 * sched-rgn.c (init_ready_list): Drop special treatment of
34470 boundary debug insns.
34471 * final.c (rest_of_clean-state): Clear notes' BB.
34472
b305e3da
SP
344732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34474
34475 * Makefile.in (LAMBDA_H): Removed.
34476 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
34477 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
34478 lambda-trans.o, and tree-loop-linear.o.
34479 (lto-symtab.o): Remove dependence on LAMBDA_H.
34480 (tree-loop-linear.o): Remove rule.
34481 (lambda-mat.o): Same.
34482 (lambda-trans.o): Same.
34483 (lambda-code.o): Same.
34484 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
34485 (tree-vect-slp.o): Same.
34486 * hwint.h (gcd): Moved here.
34487 (least_common_multiple): Same.
34488 * lambda-code.c: Removed.
34489 * lambda-mat.c: Removed.
34490 * lambda-trans.c: Removed.
34491 * lambda.h: Removed.
34492 * tree-loop-linear.c: Removed.
34493 * lto-symtab.c: Do not include lambda.h.
34494 * omega.c (gcd): Removed.
34495 * passes.c (init_optimization_passes): Remove pass_linear_transform.
34496 * tree-data-ref.c (print_lambda_vector): Moved here.
34497 (lambda_vector_copy): Same.
34498 (lambda_matrix_copy): Same.
34499 (lambda_matrix_id): Same.
34500 (lambda_vector_first_nz): Same.
34501 (lambda_matrix_row_add): Same.
34502 (lambda_matrix_row_exchange): Same.
34503 (lambda_vector_mult_const): Same.
34504 (lambda_vector_negate): Same.
34505 (lambda_matrix_row_negate): Same.
34506 (lambda_vector_equal): Same.
34507 (lambda_matrix_right_hermite): Same.
34508 * tree-data-ref.h: Do not include lambda.h.
34509 (lambda_vector): Moved here.
34510 (lambda_matrix): Same.
34511 (dependence_level): Same.
34512 (lambda_transform_legal_p): Removed declaration.
34513 (lambda_collect_parameters): Same.
34514 (lambda_compute_access_matrices): Same.
34515 (lambda_vector_gcd): Same.
34516 (lambda_vector_new): Same.
34517 (lambda_vector_clear): Same.
34518 (lambda_vector_lexico_pos): Same.
34519 (lambda_vector_zerop): Same.
34520 (lambda_matrix_new): Same.
34521 * tree-flow.h (least_common_multiple): Removed declaration.
34522 * tree-parloops.c (lambda_trans_matrix): Moved here.
34523 (LTM_MATRIX): Same.
34524 (LTM_ROWSIZE): Same.
34525 (LTM_COLSIZE): Same.
34526 (LTM_DENOMINATOR): Same.
34527 (lambda_trans_matrix_new): Same.
34528 (lambda_matrix_vector_mult): Same.
34529 (lambda_transform_legal_p): Same.
34530 * tree-pass.h (pass_linear_transform): Removed declaration.
34531 * tree-ssa-loop.c (tree_linear_transform): Removed.
34532 (gate_tree_linear_transform): Removed.
34533 (pass_linear_transform): Removed.
34534 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
34535 flag_loop_interchange.
34536
6bdfdb96
JJ
345372011-01-25 Jakub Jelinek <jakub@redhat.com>
34538
34539 PR tree-optimization/47265
34540 PR tree-optimization/47443
34541 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
34542 if name still has some uses.
34543
e4cba915
MJ
345442011-01-25 Martin Jambor <mjambor@suse.cz>
34545
34546 PR tree-optimization/47382
34547 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
34548 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
34549
509d65dd 345502011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
34551
34552 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
34553 sjlj_except_unwind_info.
34554
194313e2
RG
345552011-01-25 Richard Guenther <rguenther@suse.de>
34556
34557 PR tree-optimization/47426
34558 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
34559 visible functions results escape.
34560
147a0bcf
JJ
345612011-01-25 Jakub Jelinek <jakub@redhat.com>
34562
34563 PR target/45701
34564 * config/arm/arm.c (any_sibcall_uses_r3): New function.
34565 (arm_get_frame_offsets): Use it.
34566
db963b52
SP
345672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34568 Jakub Jelinek <jakub@redhat.com>
34569
34570 PR tree-optimization/47271
34571 * tree-if-conv.c (bb_postdominates_preds): New.
34572 (if_convertible_bb_p): Call bb_postdominates_preds.
34573 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
34574 (predicate_scalar_phi): Call bb_postdominates_preds.
34575
bcddd3b9
NC
345762011-01-25 Nick Clifton <nickc@redhat.com>
34577
34578 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
34579 * config/rx/rx.c (rx_function_value): Likewise.
34580 (rx_promote_function_mode): Likewise.
34581 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
34582 in order to make it legitimate.
38be4072
UB
34583 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
34584 make sure that the first operand is the same as the result register.
bcddd3b9
NC
34585 (addsi3_unspec): Delete.
34586 (subdi3): Do not accept immediate operands.
34587 (subdi3_internal): Likewise.
34588
7e6cb022
JL
345892011-01-25 Jeff Law <law@redhat.com>
34590
34591 PR rtl-optimization/37273
34592 * ira-costs.c (scan_one_insn): Detect constants living in memory and
34593 handle them like argument loads from stack slots. Do not double
34594 count memory for memory constants and argument loads from stack slots.
34595
9ffa621e
JJ
345962011-01-25 Jakub Jelinek <jakub@redhat.com>
34597
34598 PR tree-optimization/47427
34599 PR tree-optimization/47428
34600 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
34601 coalesce if the new root var would be TREE_READONLY.
34602
5bd6e652
RG
346032011-01-25 Richard Guenther <rguenther@suse.de>
34604
34605 PR middle-end/47414
34606 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
34607 correct type for TBAA.
34608
7c48ea69
SP
346092011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34610
34611 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
34612 (close_phi_written_to_memory): Call for_each_index with
34613 dr_indices_valid_in_loop.
34614
38013f25
SP
346152011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34616
34617 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
34618 when it is initialized.
34619
5c640e29
SP
346202011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34621
34622 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
34623 call to graphite_find_data_references_in_stmt.
34624 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
34625 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
34626 call to graphite_find_data_references_in_stmt.
34627 (analyze_drs_in_stmts): Same.
34628 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
34629 in which the scalar analysis of indices is performed.
34630 (create_data_ref): Same. Update call to dr_analyze_indices.
34631 (find_data_references_in_stmt): Update call to create_data_ref.
34632 (graphite_find_data_references_in_stmt): Same.
34633 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
34634 declaration.
34635 (create_data_ref): Same.
34636 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
34637 call to create_data_ref.
34638
ac53c069
SP
346392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34640
34641 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 34642 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 34643
3d17df15
SP
346442011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34645
34646 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
34647 VAR_DECL, PARM_DECL, and RESULT_DECL.
34648
c513da01
SP
346492011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34650
34651 * graphite-dependences.c (reduction_dr_1): Allow several reductions
34652 in a reduction PBB.
34653 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
34654 that have already been marked as PBB_IS_REDUCTION.
34655
3a292d59
SP
346562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34657
34658 * graphite-scop-detection.c (same_close_phi_node): New.
34659 (remove_duplicate_close_phi): New.
34660 (make_close_phi_nodes_unique): New.
34661 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
34662
ba858447
SP
346632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34664
34665 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
34666 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
34667 of both data references to be the same.
34668
8d865c56
SP
346692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34670
38be4072
UB
34671 * graphite-dependences.c (build_lexicographical_constraint): Remove
34672 the gdim parameter.
34673 (build_lexicographical_constraint): Adjust call to
34674 ppl_powerset_is_empty.
8d865c56
SP
34675 (dependence_polyhedron): Same.
34676 (graphite_legal_transform_dr): Same.
34677 (graphite_carried_dependence_level_k): Same.
38be4072
UB
34678 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
34679 parameter.
8d865c56
SP
34680 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
34681
50034a36
SP
346822011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34683
34684 * graphite-sese-to-poly.c
34685 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
34686 (close_phi_written_to_memory): New.
34687 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
34688 and unshare_expr.
34689
0deada9e
SP
346902011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34691
34692 * doc/install.texi: Update the expected version number of PPL to 0.11.
34693 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
34694 #if PPL_VERSION_MINOR < 11.
34695
d7d3d6af
SP
346962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34697
34698 * graphite-dependences.c: Include graphite-cloog-util.h.
34699 (new_poly_ddr): Inlined into dependence_polyhedron.
34700 (free_poly_ddr): Moved close by new_poly_ddr.
34701 (dependence_polyhedron_1): Renamed dependence_polyhedron.
34702 Early return NULL when ppl_powerset_is_empty returns true.
34703 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
34704 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
34705 (graphite_legal_transform_dr): Call new_poly_ddr.
34706 (graphite_carried_dependence_level_k): Same.
34707 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
34708 (dot_transformed_deps_stmt_1): Removed.
34709 (dot_deps_stmt_1): Call dot_deps_stmt_2.
34710 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
34711 (dot_deps_1): Call dot_deps_2.
34712 * Makefile.in (graphite-dependences.o): Add missing dependence on
34713 graphite-cloog-util.h.
34714
28c5db57
SP
347152011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34716
34717 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
34718 (build_lexicographical_constraint): Same.
34719 (dependence_polyhedron_1): Same.
34720 (graphite_legal_transform_dr): Same.
34721 (graphite_carried_dependence_level_k): Same.
34722 * graphite-ppl.c (ppl_powerset_is_empty): New.
34723 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
34724 * tree-data-ref.c (dump_data_reference): Print the basic block index.
34725
5168d98f
SP
347262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34727
34728 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
34729 the "a followed by b" relation and document it.
34730
4a40293a
SP
347312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34732
34733 * graphite-dependences.c (build_lexicographical_constraint): Stop the
34734 iteration when the bag of constraints is empty.
34735
271fb6fa
SP
347362011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34737
34738 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
34739
92d23680
SP
347402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34741
34742 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
34743 nest and two loop depths as parameters.
34744 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
34745 lst_perfect_nestify.
34746
2f51deff
SP
347472011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34748
34749 * graphite-dependences.c (print_pddr): Call
34750 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
34751
07f3593c
SP
347522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
34753
34754 * graphite-ppl.c (debug_gmp_value): New.
34755 * graphite-ppl.h (debug_gmp_value): Declared.
34756
3fae6099
TG
347572011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
34758
34759 * doc/install.texi: Document availability of cloog-0.16.
34760
1c3ba85b
SP
347612011-01-25 Vladimir Kargov <kargov@gmail.com>
34762
34763 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
34764 invalid postdominance info.
34765
e8ba94fc
JH
347662011-01-24 Jan Hubicka <jh@suse.cz>
34767
34768 PR c/21659
34769 * doc/extend.texi (weak pragma): Drop claim that it must
34770 appear before definition.
34771 * varasm.c (merge_weak, declare_weak): Only sanity check
34772 that DECL is not output at a time it is declared weak.
34773
2b6e2d13
KZ
347742011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
34775
34776 * machmode.def: Fixed comments.
1c3ba85b 34777
9841210f
KT
347782011-01-24 Kai Tietz <kai.tietz@onevision.com>
34779
34780 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
34781
347822011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
34783
34784 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 34785 WORDS_BIG_ENDIAN.
e046112d 34786
a6c5070a
L
347872011-01-24 H.J. Lu <hongjiu.lu@intel.com>
34788
34789 PR target/46519
34790 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
34791 (block_info): Add scanned and prev.
34792 (move_or_delete_vzeroupper_2): Return if the basic block
34793 has been scanned and the upper 128bit state is unchanged
34794 from the last scan.
34795 (move_or_delete_vzeroupper_1): Return true if the exit
34796 state is changed.
34797 (move_or_delete_vzeroupper): Visit basic blocks using the
34798 work-list based algorithm based on vt_find_locations in
34799 var-tracking.c.
34800
34801 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
34802
a40d79d7
NC
348032011-01-24 Nick Clifton <nickc@redhat.com>
34804
34805 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
34806 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
34807 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
34808 then define __v850e1__.
34809 * doc/invoke.texi: Document -mv850es.
34810
440eb8de
RH
348112011-01-24 Richard Henderson <rth@redhat.com>
34812
34813 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
34814 compound unordered comparisons.
34815 * config/rx/rx.c (rx_split_fp_compare): Remove.
34816 * config/rx/rx-protos.h: Update.
34817 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
34818 (cbranchsf4): Don't call rx_split_fp_compare.
34819 (*cbranchsf4): Use rx_split_cbranch.
34820 (*cmpsf): Don't accept "i" constraint.
34821 (*conditional_branch): Only valid after reload.
34822 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
34823
3ff79f99
MM
348242011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34825
34826 PR target/47385
34827 * config/rs6000/altivec.md (vector constant splitters): Add
34828 support for creating vector single precision constants if -mvsx is
34829 used and we would create the constant using Altivec primitives.
34830
ff3d9d08
BS
348312011-01-23 Bernd Schmidt <bernds@codesourcery.com>
34832 Richard Sandiford <rdsandiford@googlemail.com>
34833
34834 PR rtl-optimization/47166
34835 * reload1.c (emit_reload_insns): Disable the spill_reg_store
34836 mechanism for PRE_MODIFY and POST_MODIFY.
34837 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
34838 reloadreg.
34839
7fcaf152
AS
348402011-01-23 Andreas Schwab <schwab@linux-m68k.org>
34841
8788adb6 34842 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 34843
d09b58c4
JH
348442011-01-22 Jan Hubicka <jh@suse.cz>
34845
34846 PR lto/47333
34847 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
34848
e8ff8c5a
JH
348492011-01-22 Jan Hubicka <jh@suse.cz>
34850
34851 PR tree-optimization/43884
34852 PR lto/44334
8788adb6 34853 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
34854 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
34855
ccaed3ba
AS
348562011-01-22 Anatoly Sokolov <aesok@post.ru>
34857
34858 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
34859 * config/s390/s390.c (s390_register_move_cost,
34860 s390_memory_move_cost): New.
34861 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
34862
0cecee06
UW
348632011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34864
34865 PR middle-end/47401
34866 * except.c (sjlj_assign_call_site_values): Move setting the
34867 crtl->uses_eh_lsda flag to ...
34868 (sjlj_mark_call_sites): ... here.
34869 (sjlj_emit_function_enter): Support NULL dispatch label.
34870 (sjlj_build_landing_pads): In a function with no landing pads
34871 that still has must-not-throw regions, generate code to register
34872 a personality function with empty LSDA.
34873
e692f276
RH
348742011-01-21 Richard Henderson <rth@redhat.com>
34875
1b7ae0b7
RH
34876 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
34877
3843787f
RH
34878 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
34879
e692f276
RH
34880 * compare-elim.c: New file.
34881 * Makefile.in (OBJS-common): Add it.
34882 (compare-elim.o): New.
34883 * common.opt (fcompare-elim): New.
34884 * opts.c (default_options_table): Add OPT_fcompare_elim.
34885 * tree-pass.h (pass_compare_elim_after_reload): New.
34886 * passes.c (init_optimization_passes): Add it.
34887 * recog.h: Protect against re-inclusion.
34888 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
34889 * doc/invoke.texi (-fcompare-elim): Document it.
34890 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
34891 * doc/tm.texi: Rebuild.
34892
9a7c2050
NC
348932011-01-22 Nick Clifton <nickc@redhat.com>
34894
34895 * config/rx/rx.md (cstoresf4): Pass comparison operator to
34896 rx_split_fp_compare.
34897
15ba5696
NC
348982011-01-22 Nick Clifton <nickc@redhat.com>
34899
34900 * config/rx/rx.md (UNSPEC_CONST): New.
34901 (deallocate_and_return): Wrap the amount popped off the stack in
34902 an UNSPEC_CONST in order to stop it being rejected by
34903 -mmax-constant-size.
34904 (pop_and_return): Add a "(return)" rtx.
34905 (call): Drop the immediate operand.
34906 (call_internal): Likewise.
34907 (call_value): Likewise.
34908 (call_value_internal): Likewise.
34909 (sibcall_internal): Likewise.
34910 (sibcall_value_internal): Likewise.
34911 (sibcall): Likewise. Generate an explicit call using
34912 sibcall_internal.
34913 (sibcall_value): Likewise.
34914 (mov<>): FAIL if a constant operand is not legitimate.
34915 (addsi3_unpsec): New pattern.
9a7c2050 34916
38be4072 34917 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
34918 (ok_for_max_constant): New function.
34919 (gen_safe_add): New function.
34920 (rx_expand_prologue): Use gen_safe_add.
34921 (rx_expand_epilogue): Likewise.
34922 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
34923 UNSPEC CONSTs.
34924
caaf13d3
JL
349252011-01-21 Jeff Law <law@redhat.com>
34926
34927 PR tree-optimization/47053
34928 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
34929 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
34930 statements are deleted.
34931 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
34932 is nonempty, then purge dead edges and cleanup the CFG.
34933
12c30f2f
AO
349342011-01-21 Alexandre Oliva <aoliva@redhat.com>
34935
34936 PR debug/47402
34937 Temporarily revert:
34938 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
34939 PR debug/47106
34940 * tree-dfa.c (create_var_ann): Mark variable as used.
34941
7360d2ac
JJ
349422011-01-21 Jakub Jelinek <jakub@redhat.com>
34943
aaa52a96
JJ
34944 PR middle-end/45566
34945 * except.c (convert_to_eh_region_ranges): Emit queued no-region
34946 notes from other section in hot/cold partitioning even if
34947 last_action is -3. Increment call_site_base.
34948
7360d2ac
JJ
34949 PR rtl-optimization/47366
34950 * fwprop.c (forward_propagate_into): Return bool. If
34951 any changes are made, -fnon-call-exceptions is used and
34952 REG_EH_REGION note is present, call purge_dead_edges
34953 and return true if it purged anything.
34954 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
34955 any EH edges were purged.
34956
e90b336f
JL
349572011-01-21 Jeff Law <law@redhat.com>
34958
34959 PR rtl-optimization/41619
34960 * caller-save.c (setup_save_areas): Break out code to determine
34961 which hard regs are live across calls by examining the reload chains
34962 so that it is always used.
34963 Eliminate code which checked REG_N_CALLS_CROSSED.
34964
3ffe07e1
JJ
349652011-01-21 Jakub Jelinek <jakub@redhat.com>
34966
34967 PR tree-optimization/47355
34968 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
34969 NOP has non-debug uses beyond PHIs in new_bb.
34970
1c7d0b34
AO
349712011-01-21 Alexandre Oliva <aoliva@redhat.com>
34972
34973 PR debug/47106
34974 * cfgexpand.c (account_used_vars_for_block): Only account vars
34975 that are annotated as used.
34976 (estimated_stack_frame_size): Don't set TREE_USED.
34977 * tree-dfa.c (create_var_ann): Mark variable as used.
34978
f99cc488
RG
349792011-01-21 Richard Guenther <rguenther@suse.de>
34980
34981 PR middle-end/47395
34982 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
34983
3bc27de7
RG
349842011-01-21 Richard Guenther <rguenther@suse.de>
34985
34986 PR tree-optimization/47365
34987 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
34988 (vn_reference_lookup_pieces): Adjust.
34989 (vn_reference_lookup): Likewise.
34990 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
34991 (vn_reference_lookup_3): Only look through kills if in
34992 VN_WALKREWRITE mode.
34993 (vn_reference_lookup_pieces): Adjust.
34994 (vn_reference_lookup): Likewise.
34995 (visit_reference_op_load): Likewise.
34996 (visit_reference_op_store): Likewise.
34997 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
34998 (compute_avail): Likewise.
34999 (eliminate): Likewise.
35000
d8debb1d
JJ
350012011-01-21 Jakub Jelinek <jakub@redhat.com>
35002
35003 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
35004 DECL_IGNORED_P non-reg vars if they are used.
35005
3a2df831
JJ
35006 PR tree-optimization/47391
35007 * varpool.c (const_value_known_p): Return false if
35008 decl is volatile.
35009
1dd584a2
KT
350102011-01-21 Kai Tietz <kai.tietz@onevision.com>
35011
35012 PR bootstrap/47215
35013 * config/i386/i386.c (ix86_local_alignment): Handle
35014 case for va_list_type_node is nil.
35015 (ix86_canonical_va_list_type): Likewise.
35016
7f9f095e
AM
350172011-01-21 Alan Modra <amodra@gmail.com>
35018
35019 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
35020 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
35021
837b01f6
RR
350222011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35023
35024 * config/arm/arm.md (define_attr type): Rename f_load
35025 and f_store to f_fpa_load and f_fpa_store. Update.
35026 (write_conflict): Deal with rename fallout.
35027 (*push_fp_multi): Likewise.
35028 * config/arm/fpa.md (f_load): Use f_fpa_load.
35029 (f_store): Use f_fpa_store.
35030 (*movsf_fpa): Likewise.
35031 (*movdf_fpa): Likewise.
35032 (*movxf_fpa): Likewise.
35033 (*thumb2_movsf_fpa): Likewise.
35034 (*thumb2_movdf_fpa): Likewise.
35035 (*thumb2_movxf_fpa): Likewise.
35036 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
35037 f_loadd and f_stored.
35038 (*thumb2_movdi_vfp): Likewise.
35039 (*thumb2_movsf_vfp): Fix attribute to f_loads.
35040 (*thumb2_movsi_vfp): Likewise.
35041 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
35042 Use f_loads instead of f_load.
35043 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
35044
a1a79768
AS
350452011-01-20 Anatoly Sokolov <aesok@post.ru>
35046
35047 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
35048 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
35049 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
35050 (xtensa_mode_dependent_address_p): New function.
35051 (constantpool_address_p): Make static. Change return type to bool.
35052 Change argument type to const_rtx. Use CONST_INT_P predicate.
35053
427f6cec
AO
350542011-01-20 Alexandre Oliva <aoliva@redhat.com>
35055
35056 PR debug/46583
35057 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
35058
583ac69c
JJ
350592011-01-20 Jakub Jelinek <jakub@redhat.com>
35060
35061 PR debug/47283
35062 * cfgexpand.c (expand_debug_expr): Instead of generating
35063 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
35064 etc. handling.
35065
93e452ed
RG
350662011-01-20 Richard Guenther <rguenther@suse.de>
35067
35068 PR middle-end/47370
35069 * tree-inline.c (remap_gimple_op_r): Recurse manually for
35070 the pointer operand of MEM_REFs.
35071
28fc44f3
JJ
350722011-01-20 Jakub Jelinek <jakub@redhat.com>
35073
35074 PR tree-optimization/46130
35075 * ipa-split.c (consider_split): If return_bb contains non-virtual
35076 PHIs other than for retval or if split_function would not adjust it,
35077 refuse to split.
35078
ddd268f2
RG
350792011-01-20 Richard Guenther <rguenther@suse.de>
35080
35081 PR tree-optimization/47167
35082 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
35083 Revert previous change, only avoid enumeral type changes.
35084
882020aa
MS
350852011-01-19 Mike Stump <mikestump@comcast.net>
35086
35087 * doc/tm.texi.in (BRANCH_COST): Englishify.
35088 * doc/tm.texi (BRANCH_COST): Likewise.
35089
7edb6247
DS
350902011-01-19 Dodji Seketeli <dodji@redhat.com>
35091
35092 PR c++/47291
35093 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
35094 (gen_scheduled_generic_parms_dies): New functions.
35095 (gen_struct_or_union_type_die): Schedule template parameters DIEs
35096 generation for the end of CU compilation.
35097 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 35098
23d5ed5d
AO
350992011-01-19 Alexandre Oliva <aoliva@redhat.com>
35100
35101 PR debug/46240
35102 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
35103 debug bind stmt on merge edges.
35104
37d6a488
AO
351052011-01-19 Alexandre Oliva <aoliva@redhat.com>
35106
35107 PR debug/47079
35108 PR debug/46724
35109 * function.c (instantiate_expr): Instantiate incoming rtl of
35110 implicit arguments, and recurse on VALUE_EXPRs.
35111 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
35112 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
35113
689f2c82
AO
351142011-01-19 Alexandre Oliva <aoliva@redhat.com>
35115
35116 * c-parser.c (c_parser_for_statement): Initialize
35117 collection_expression.
35118
03029de4
JM
351192011-01-19 Joseph Myers <joseph@codesourcery.com>
35120
35121 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
35122
3e03217e
JM
351232011-01-19 Joseph Myers <joseph@codesourcery.com>
35124
35125 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
35126 (LINK_SHLIB_SPEC): Don't use %(link_path).
35127 (SUBTARGET_EXTRA_SPECS): Remove link_path.
35128
5bbe9b3f
JM
351292011-01-19 Joseph Myers <joseph@codesourcery.com>
35130
35131 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
35132 (NO_SHARED_LIB_SUPPORT): Remove.
35133 (LINK_SHLIB_SPEC): Remove one conditional definition.
35134
368e0b39
JM
351352011-01-19 Joseph Myers <joseph@codesourcery.com>
35136
35137 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
35138 %{call_shared}.
35139 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
35140 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
35141 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
35142 %{call_shared} and conditionals on these options not being passed.
35143 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
35144 %{call_shared}.
35145
ed7656f6
JJ
351462011-01-19 Jakub Jelinek <jakub@redhat.com>
35147
68457901
JJ
35148 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
35149 simplify.
35150
ed7656f6
JJ
35151 * ipa-split.c: Spelling fixes.
35152
e0d1958f
RH
351532011-01-19 Richard Henderson <rth@redhat.com>
35154
35155 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
35156 (*mulsi3): Likewise.
35157
27098b6b
RH
35158 * longlong.h [__mn10300__] (count_leading_zeros): New.
35159 [__mn10300__] (umul_ppmm, smul_ppmm): New.
35160 [__mn10300__] (add_ssaaaa, subddmmss): New.
35161 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
35162 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
35163
d6be7c36
UW
351642011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35165
35166 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
35167
b1efde2a
RH
351682011-01-19 Richard Henderson <rth@redhat.com>
35169
44217823
RH
35170 * config/mn10300/mn10300.md (addsi3_flags): New.
35171 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
35172 (subsi3_flags, subc_internal, subdi3): New.
35173 (subdi3_internal, *subdi3_degenerate): New.
35174 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
35175
37a185d7
RH
35176 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
35177 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
35178 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
35179 * config/mn10300/mn10300-protos.h: Update.
35180 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
35181 (return_ret): Likewise. Rename from return_internal_regs.
35182 (return_internal): Remove.
35183
040c5757
RH
35184 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
35185 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
35186 (mn10300_legitimate_constant_p): Likewise.
35187 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
35188 (mn10300_frame_size): New.
35189 (mn10300_expand_prologue): Use it.
35190 (mn10300_expand_epilogue): Likewise.
35191 (mn10300_initial_offset): Likewise.
35192 * config/mn10300/mn10300-protos.h: Update.
35193 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
35194 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
35195 (prologue, epilogue, return_internal): Tidy output code.
35196 (mn10300_store_multiple_operation, return): Likewise.
35197 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
35198 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
35199 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
35200 (load_pic, am33_load_pic): New.
35201 (mn10300_load_pic0, mn10300_load_pic1): New.
35202
bad41521
RH
35203 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
35204 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
35205 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
35206 (cc_flags_for_mode, cc_flags_for_code): New.
35207 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
35208 overflow flag is not valid. Validate that the flags we need
35209 for the comparison are valid.
35210 (mn10300_output_cmp): Remove.
35211 (mn10300_output_add): New.
35212 (mn10300_select_cc_mode): Use cc_flags_for_code.
35213 (mn10300_split_cbranch): New.
35214 (mn10300_match_ccmode): New.
35215 (mn10300_split_and_operand_count): New.
35216 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
35217 to the function.
35218 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
35219 (addsi3): ... here. Use mn10300_output_add.
35220 (*addsi3_flags): New.
35221 (*am33_subsi3, *mn10300_subsi3): Merge...
35222 (subsi3): ... here. Use attribute isa.
35223 (*subsi3_flags): New.
35224 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
35225 when possible.
35226 (*am33_andsi3, *mn10300_andsi3): Merge...
35227 (andsi3): ... here.
35228 (*andsi3_flags): New.
35229 (andsi3 splitters): New.
35230 (*am33_iorsi3, *mn10300_iorsi3): Merge...
35231 (iorsi3): ... here.
35232 (*iorsi3_flags): New.
35233 (*am33_xorsi3, *mn10300_xorsi3): Merge...
35234 (xorsi3): ... here.
35235 (*xorsi3_flags): New.
35236 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
35237 (one_cmplsi2): ... here.
35238 (*one_cmplsi2_flags): New.
35239 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
35240 instead of "dax" in constraints. Use mn10300_split_cbranch.
35241 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
35242 use matching constraints to eliminate a self-comparison.
35243 (*integer_conditional_branch): Rename from integer_conditional_branch.
35244 Use int_mode_flags to match CC_REG.
35245 (*cbranchsi4_btst, *btstsi): New.
35246 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
35247 mn10300_split_cbranch.
35248 (*am33_cmpsf): Rename from am33_cmpsf.
35249 (*float_conditional_branch): Rename from float_conditional_branch.
35250 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
35251 (zero_extendqisi2): ... here.
35252 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
35253 (zero_extendhisi2): ... here.
35254 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
35255 (extendqisi2): ... here.
35256 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
35257 (extendhisi2): ... here.
35258 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
35259 (ashlsi3): ... here.
35260 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
35261 (lshrsi3): ... here.
35262 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
35263 (ashrsi3): ... here.
35264 (consecutive add peephole): Remove.
35265 * config/mn10300/predicates.md (label_ref_operand): New.
35266 (int_mode_flags): New.
35267 (CCZN_comparison_operator): New.
35268
9efb4993
RH
35269 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
35270 (throughput_42_latency_43): New reservation.
35271 (mulsidi3, umulsidi3): New expanders.
35272 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
35273 the MDR register to allocation; separately allocate the low and
35274 high parts of the DImode result.
35275 (umulsidi3_internal): Similarly.
35276 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
35277 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
35278 (udivsi3, umodsi3): Remove.
35279 (udivmodsi4, divmodsi4): New expanders.
35280 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
35281 (*divmodsi4): Simiarly.
35282 (ext_internal): New.
35283
c25a21f5
RH
35284 * config/mn10300/constraints.md ("z"): New constraint.
35285 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
35286 (FIXED_REGISTERS): Don't fix MDR.
35287 (CALL_USED_REGSITERS): Reformat nicely.
35288 (REG_ALLOC_ORDER): Add MDR.
35289 (enum regclass): Add MDR_REGS.
35290 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
35291 (IRA_COVER_CLASSES): Add MDR_REGS.
35292 (REGNO_REG_CLASS): Handle MDR_REG.
35293 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
35294 (mn10300_register_move_cost): Likewise.
35295 * config/mn10300/mn10300.md (MDR_REG): New.
35296 (*movsi_internal): Handle moves to/from MDR_REGS.
35297
36846b26
RH
35298 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
35299 POST_MODIFY.
35300 (mn10300_secondary_reload): Tidy combination reload classes.
35301 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
35302 addresses for AM33. Allow symbolic offsets for reg+imm.
35303 (mn10300_regno_in_class_p): New.
35304 (mn10300_legitimize_reload_address): New.
35305 * config/mn10300/mn10300.h (enum reg_class): Remove
35306 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
35307 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
35308 SP_OR_GENERAL_REGS.
35309 (REG_CLASS_NAMES): Update to match.
35310 (REG_CLASS_CONTENTS): Likewise.
35311 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
35312 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
35313 (REGNO_IN_RANGE_P): Remove.
35314 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
35315 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
35316 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
35317 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
35318 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
35319 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
35320 (REGNO_GENERAL_P): New.
35321 (HAVE_POST_MODIFY_DISP): New.
35322 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
35323 (LEGITIMIZE_RELOAD_ADDRESS): New.
35324 * config/mn10300/mn10300-protos.h: Update.
35325
8b119bb6
RH
35326 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
35327 DATA_REGS for AM33 stack-pointer destination.
35328 (mn10300_preferred_output_reload_class): Likewise.
35329 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
35330 into a form appropriate for ...
35331 (TARGET_SECONDARY_RELOAD): New.
35332 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
35333 * config/mn10300/mn10300-protos.h: Update.
35334 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
35335 reload_insi; use the "A" constraint for the scratch; handle AM33
35336 moves of sp to non-address registers.
35337
b1efde2a
RH
35338 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
35339 (*movqi_internal): ... here.
35340 (*am33_movhi, *mn10300_movhi): Merge into...
35341 (*movhi_internal): ... here.
35342 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
35343 as the source/destination of moves from/to SP.
35344 (movsf): Only allow for AM33-2.
1c3ba85b 35345 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
35346 any integer constant constraint. Only allow for AM33-2. Tidy
35347 all of the alternative outputs.
35348 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
35349 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
35350 for MN103.
35351 (udivsi3, umodsi3): New patterns for MN103 only.
35352
b899fd78
JR
353532011-01-19 Joern Rennecke <amylaar@spamcop.net>
35354
35355 * doc/tm.texi.in: Spell out that a lack of register class unions
35356 can lead to ICEs.
35357 * doc/tm.texi: Regenerate.
35358
afaaa67d
JJ
353592011-01-19 Jakub Jelinek <jakub@redhat.com>
35360
2e0642cd
JJ
35361 PR rtl-optimization/47337
35362 * dce.c (check_argument_store): New function.
35363 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
35364
afaaa67d
JJ
35365 PR tree-optimization/47290
35366 * tree-eh.c (infinite_empty_loop_p): New function.
35367 (cleanup_empty_eh): Use it.
35368
d2cd871f
SE
353692011-01-18 Steve Ellcey <sje@cup.hp.com>
35370
35371 PR target/46997
35372 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
35373 (a64_expand_widen_sum): Ditto.
35374 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
35375 (vec_extract_evenodd_help): Ditto.
35376 (vec_extract_evenv4hi): Ditto.
35377 (vec_extract_oddv4hi): Ditto.
35378 (vec_extract_evenv2si): Ditto.
35379 (vec_extract_oddv2si): Ditto.
35380 (vec_extract_evenv2sf): Ditto.
35381 (vec_extract_oddv2sf): Ditto.
35382 (vec_pack_trunc_v4hi: Ditto.
35383 (vec_pack_trunc_v2si): Ditto.
35384 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
35385 (vec_interleave_highv8qi): Ditto.
35386 (mix1_r): Ditto.
35387 (vec_extract_oddv8qi): Ditto.
35388 (vec_interleave_lowv4hi): Ditto.
35389 (vec_interleave_highv4hi): Ditto.
35390 (vec_interleave_lowv2si): Ditto.
35391 (vec_interleave_highv2si): Ditto.
35392
41a1208a
JDA
353932011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35394
35395 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
35396 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
35397 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
35398 (pa_c_mode_for_suffix): New.
35399 (TARGET_EXPAND_BUILTIN): Define.
35400 (TARGET_C_MODE_FOR_SUFFIX): Define.
35401 (pa_builtins): Define.
35402 (pa_init_builtins): Register __float128 type and init new support
35403 builtins.
35404 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
35405 * config/pa/quadlib.c (_U_Qfcopysign): New.
35406
1ecad98e
EB
354072011-01-18 Eric Botcazou <ebotcazou@adacore.com>
35408
35409 PR middle-end/46894
35410 * explow.c (allocate_dynamic_stack_space): Do not assume more than
35411 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
35412 are defined.
35413
d4f2460a
UW
354142011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35415
35416 PR tree-optimization/47179
35417 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
35418 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
35419
4994da65
RG
354202011-01-18 Richard Guenther <rguenther@suse.de>
35421
35422 PR rtl-optimization/47216
35423 * emit-rtl.c: Include tree-flow.h.
35424 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
35425 of replicating it with different semantics.
35426 * Makefile.in (emit-rtl.o): Adjust.
35427
1eb458d1
RR
354282011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35429
38be4072 35430 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 35431 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 35432
e7ef91dc
JJ
354332011-01-18 Jakub Jelinek <jakub@redhat.com>
35434
35435 PR rtl-optimization/47299
35436 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 35437 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
35438 * expmed.c (expand_widening_mult): Don't try to optimize constant
35439 multiplication if op0 has VOIDmode. Convert op1 constant to mode
35440 before using it.
35441
535b7874
RW
354422011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35443
35444 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
35445 spacing after 'e.g.', typos, comma, hyphenation.
35446
27bf36f3
RH
354472011-01-17 Richard Henderson <rth@redhat.com>
35448
8a5b5449
RH
35449 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
35450 (rx_restricted_mem_operand): New.
35451 (rx_shift_operand): Use register_operand.
35452 (rx_source_operand, rx_compare_operand): Likewise.
35453 * config/rx/rx.md (addsi3_flags): New expander.
35454 (adddi3): Rewrite as expander.
35455 (adc_internal, *adc_flags, adddi3_internal): New patterns.
35456 (subsi3_flags): New expander.
35457 (subdi3): Rewrite as expander.
35458 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
35459
784f69be
RH
35460 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
35461 (rx_init_builtins): Remove sat builtin.
35462 (rx_expand_builtin): Likewise.
35463 * config/rx/rx.md (ssaddsi3): New.
35464 (*sat): Rename from sat. Represent the CC_REG input.
35465
f033541c
RH
35466 * config/rx/predicates.md (rshift_operator): New.
35467 * config/rx/rx.c (rx_expand_insv): Remove.
35468 * config/rx/rx-protos.h: Update.
35469 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
35470 operand to the canonical position.
35471 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
35472 (*bitclr, *bitclr_in_memory): Similarly.
35473 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
35474 (insv): Retain the zero_extract in the expansion.
35475
34fee389
RH
35476 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
35477 (bswaphi2, bitinvert, revw): Likewise.
35478
265c835f
RH
35479 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
35480 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
35481 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
35482 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
35483 (bitset, bitset_in_memory): Likewise.
35484 (bitinvert, bitinvert_in_memory): Likewise.
35485 (bitclr, bitclr_in_memory): Likewise.
35486 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
35487 (rx_strend, rx_cmpstrn): Likewise.
35488 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
35489 (bitop peep2 patterns): Remove.
35490
b4d83be3
RH
35491 * config/rx/rx.c (rx_match_ccmode): New.
35492 * config/rx/rx-protos.h: Update.
35493 * config/rx/rx.md (abssi2): Clobber, don't set flags.
35494 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
35495 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
35496 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
35497 (fix_truncsfsi2, floatsisf2): Likewise.
35498 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
35499 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
35500 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
35501 (*subsi3_flags, *xorsi3_flags): New.
35502
d0acb939
RH
35503 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
35504
c06fc3d9
RH
35505 * config/rx/rx.c (rx_print_operand): Remove workaround for
35506 unsplit comparison operations.
35507
2882702b
RH
35508 * config/rx/rx.md (movsicc): Split after reload.
35509 (*movsicc): Merge *movsieq and *movsine via match_operator.
35510 (*stcc): New pattern.
35511
6f7310f2
RH
35512 * config/rx/rx.c (rx_float_compare_mode): Remove.
35513 * config/rx/rx.h (rx_float_compare_mode): Remove.
35514 * config/rx/rx.md (cstoresi4): Split after reload.
35515 (*sccc): New pattern.
35516
e963cb1a
RH
35517 * config/rx/predicates.md (label_ref_operand): New.
35518 (rx_z_comparison_operator): New.
35519 (rx_zs_comparison_operator): New.
35520 (rx_fp_comparison_operator): New.
35521 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
35522 Validate that the flags are set properly for the comparison.
35523 (rx_gen_cond_branch_template): Remove.
35524 (rx_cc_modes_compatible): Remove.
35525 (mode_from_flags): New.
35526 (flags_from_code): Rename from flags_needed_for_conditional.
35527 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
35528 (rx_select_cc_mode): Likewise.
35529 (rx_split_fp_compare): New.
35530 (rx_split_cbranch): New.
35531 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
35532 (*cbranchsi4): Use match_operator and rx_split_cbranch.
35533 (*cbranchsf4): Similarly.
35534 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
35535 match_operator and rx_split_cbranch.
35536 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
35537 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
35538 (*cmpsi): Rename from cmpsi.
35539 (*tstsi): Rename from tstsi.
35540 (*cmpsf): Rename from cmpsf; use CC_Fmode.
35541 (*conditional_branch): Rename from conditional_branch.
35542 (*reveresed_conditional_branch): Remove.
35543 (b<code>): Remove expander.
35544 * config/rx/rx-protos.h: Update.
35545
af530bb4
RH
35546 * config/rx/rx.c (rx_compare_redundant): Remove.
35547 * config/rx/rx.md (cmpsi): Don't use it.
35548 * config/rx/rx-protos.h: Update.
35549
27bf36f3
RH
35550 * config/rx/rx-modes.def (CC_F): New mode.
35551 * config/rx/rx.c (rx_select_cc_mode): New.
35552 * config/rx/rx.h (SELECT_CC_MODE): Use it.
35553 * config/rx/rx-protos.h: Update.
35554
d7fde127
RH
355552011-01-17 Richard Henderson <rth@redhat.com>
35556
35557 * except.c (dump_eh_tree): Fix stray ; after for statement.
35558
6ff38230
RG
355592011-01-17 Richard Guenther <rguenther@suse.de>
35560
35561 PR tree-optimization/47313
35562 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
35563 handling before copying the body. Properly deal with
35564 by-reference result in SSA form.
35565
114ce554
ILT
355662011-01-17 Ian Lance Taylor <iant@google.com>
35567
bf5cd92b 35568 PR target/47219
114ce554
ILT
35569 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
35570 (struct_value_alias_set): Don't define.
35571 (sparc_option_override): Don't set sparc_sr_alias_set and
35572 struct_value_alias_set.
35573 (save_or_restore_regs): Use gen_frame_mem rather than calling
35574 set_mem_alias_set.
35575 (sparc_struct_value_rtx): Likewise.
35576
98c6d93c
L
355772011-01-17 H.J. Lu <hongjiu.lu@intel.com>
35578
35579 PR target/47318
7a81008b 35580 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
35581 (_mm_maskstore_pd): Likewise.
35582 (_mm_maskload_ps): Likewise.
35583 (_mm_maskstore_ps): Likewise.
35584 (_mm256_maskload_pd): Change mask to __m256i.
35585 (_mm256_maskstore_pd): Likewise.
35586 (_mm256_maskload_ps): Likewise.
35587 (_mm256_maskstore_ps): Likewise.
35588
35589 * config/i386/i386-builtin-types.def: Updated.
35590 (ix86_expand_special_args_builtin): Likewise.
35591
35592 * config/i386/i386.c (bdesc_special_args): Update
35593 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
35594 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
35595 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
35596 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
35597
35598 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
35599 Use <avxpermvecmode> on mask register.
35600 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
35601
b9361af2 356022011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
35603 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35604 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
35605
35606 PR target/46655
35607 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
35608 if <= USHRT_MAX in 32-bit mode.
35609
b7ae9eb5
RW
356102011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35611
35612 * doc/install.texi (Configuration, Specific): Wrap long
35613 lines in examples. Allow line wrapping in long options
35614 and URLs where beneficial for PDF output.
35615
4377fad9
RS
356162011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
35617
35618 * config/mips/mips.c (mips_classify_symbol): Don't return
35619 SYMBOL_PC_RELATIVE for nonlocal labels.
35620
55959ffa 356212011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 35622
55959ffa
EB
35623 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
35624
356252011-01-15 Jan Hubicka <jh@suse.cz>
35626
35627 PR tree-optimization/47276
be46831f
JH
35628 * ipa.c (function_and_variable_visibility): Do not try to mark alias
35629 declarations as needed.
35630
05842ff5
MJ
356312011-01-15 Martin Jambor <mjambor@suse.cz>
35632
35633 * common.opt (fdevirtualize): New flag.
35634 * doc/invoke.texi (Option Summary): Document it.
35635 * opts.c (default_options_table): Add devirtualize flag.
35636 * ipa-prop.c (detect_type_change): Return immediately if
35637 devirtualize flag is not set.
35638 (detect_type_change_ssa): Likewise.
35639 (compute_known_type_jump_func): Likewise.
35640 (ipa_analyze_virtual_call_uses): Likewise.
35641
f65cf2b7
MJ
356422011-01-14 Martin Jambor <mjambor@suse.cz>
35643
35644 PR tree-optimization/45934
35645 PR tree-optimization/46302
35646 * ipa-prop.c (type_change_info): New type.
35647 (stmt_may_be_vtbl_ptr_store): New function.
35648 (check_stmt_for_type_change): Likewise.
35649 (detect_type_change): Likewise.
35650 (detect_type_change_ssa): Likewise.
35651 (compute_complex_assign_jump_func): Check for dynamic type change.
35652 (compute_complex_ancestor_jump_func): Likewise.
35653 (compute_known_type_jump_func): Likewise.
35654 (compute_scalar_jump_functions): Likewise.
35655 (ipa_analyze_virtual_call_uses): Likewise.
35656 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
35657
eb5bb0fd
JM
356582011-01-14 Joseph Myers <joseph@codesourcery.com>
35659
35660 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
35661 * config/i386/i386.opt (msse5): New Alias.
35662
f2060fbe
JM
356632011-01-14 Joseph Myers <joseph@codesourcery.com>
35664
35665 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
35666 * config/sparc/linux64.h (CC1_SPEC): Likewise.
35667 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35668 * config/sparc/sparc.h (CC1_SPEC): Likewise.
35669
3a7b4385
JM
356702011-01-14 Joseph Myers <joseph@codesourcery.com>
35671
35672 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
35673 -mcpu options.
35674 * config/sparc/linux64.h (CC1_SPEC): Likewise.
35675 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
35676 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
35677 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
35678 Likewise.
35679 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
35680
a7b778f8
JM
356812011-01-14 Joseph Myers <joseph@codesourcery.com>
35682
38be4072 35683 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 35684
a7edae0a
MS
356852011-01-14 Mike Stump <mikestump@comcast.net>
35686
35687 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
35688 * config/fr30/fr30.md: Likweise
35689 (movsi_push): Likewise.
35690 (movsi_pop): Likewise.
35691 (enter_func): Likewise.
35692 * config/moxie/moxie.md (movsi_push): Likewise.
35693 (movsi_pop): Likewise.
35694
cbabf03f
JM
356952011-01-14 Joseph Myers <joseph@codesourcery.com>
35696
35697 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
35698 %{no_archive} %{exact_version}.
35699 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
35700 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
35701 %{no_archive} %{exact_version}.
35702 * config/mips/openbsd.h (LINK_SPEC): Likewise.
35703 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
35704 * config/mips/vxworks.h: Likewise.
35705
438da41a
JM
357062011-01-14 Joseph Myers <joseph@codesourcery.com>
35707
38be4072 35708 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 35709
da290a42
JM
357102011-01-14 Joseph Myers <joseph@codesourcery.com>
35711
35712 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
35713 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
35714
8989d00e
JM
357152011-01-14 Joseph Myers <joseph@codesourcery.com>
35716
35717 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
35718 -nodefaultlib.
35719
a3010a69
JM
357202011-01-14 Joseph Myers <joseph@codesourcery.com>
35721
35722 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
35723 for mcpu not cpu.
35724 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
35725 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
35726 not cpu.
35727 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
35728 Don't handle -shlib.
35729
e7f2f537
JM
357302011-01-14 Joseph Myers <joseph@codesourcery.com>
35731
35732 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
35733 (CC1_SPEC): Don't handle -profile.
35734
34830bfd
JM
357352011-01-14 Joseph Myers <joseph@codesourcery.com>
35736
35737 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
35738 * config/mips/mips.h (CC1_SPEC): Likewise.
35739
b2d36e74
JM
357402011-01-14 Joseph Myers <joseph@codesourcery.com>
35741
35742 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
35743 * config/mips/mips.h (CC1_SPEC): Likewise.
35744
dabadc52
JM
357452011-01-14 Joseph Myers <joseph@codesourcery.com>
35746
35747 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
35748 * config/m32r/linux.h (LINK_SPEC): Likewise.
35749 * config/mips/linux.h (LINK_SPEC): Likewise.
35750 * config/mips/linux64.h (LINK_SPEC): Likewise.
35751 * config/sparc/linux.h (LINK_SPEC): Likewise.
35752 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
35753 LINK_SPEC): Likewise.
35754 * config/xtensa/linux.h (LINK_SPEC): Likewise.
35755
43ee6785
JM
357562011-01-14 Joseph Myers <joseph@codesourcery.com>
35757
35758 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
35759 %{version:-v}.
35760 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
35761
45e79dfd
JM
357622011-01-14 Joseph Myers <joseph@codesourcery.com>
35763
35764 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
35765 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
35766
37e9e71d
JM
357672011-01-14 Joseph Myers <joseph@codesourcery.com>
35768
35769 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
35770
bb127cd8
RO
357712011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35772
35773 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
35774 supports -Bstatic/-Bdynamic.
35775 * configure: Regenerate.
35776
89a012ea 357772011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 35778 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
35779
35780 PR target/46037
35781 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
35782 when checking debug_info_level. Test write_symbols instead of
35783 debug_hooks->var_location when setting flag_var_tracking_uninit.
35784
7352c013
RG
357852011-01-14 Richard Guenther <rguenther@suse.de>
35786
35787 PR tree-optimization/47179
35788 * target.def (ref_may_alias_errno): New target hook.
35789 * targhooks.h (default_ref_may_alias_errno): Declare.
35790 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
35791 (default_ref_may_alias_errno): New function.
35792 * target.h (struct ao_ref_s): Declare.
35793 * tree-ssa-alias.c: Include target.h.
35794 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
35795 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
35796 (targhooks.o): Likewise.
35797 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
35798 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
35799
9a6c9288
RG
358002011-01-14 Richard Guenther <rguenther@suse.de>
35801
35802 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
35803
0fdb0d27
RG
358042011-01-14 Richard Guenther <rguenther@suse.de>
35805
35806 PR tree-optimization/47280
35807 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
35808 return CFG changes.
35809 (tree_ssa_forward_propagate_single_use_vars): Deal with
35810 CFG changes from associate_plusminus.
35811
8f66db3b
RG
358122011-01-14 Richard Guenther <rguenther@suse.de>
35813
35814 PR middle-end/47281
35815 Revert
35816 2011-01-11 Richard Guenther <rguenther@suse.de>
35817
280d9630
EB
35818 PR tree-optimization/46076
35819 * tree-ssa.c (useless_type_conversion_p): Conversions from
35820 unprototyped to empty argument list function types are useless.
8f66db3b 35821
6c0c92e6
RG
358222011-01-14 Richard Guenther <rguenther@suse.de>
35823
35824 PR tree-optimization/47286
280d9630 35825 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 35826
db09f943
MJ
358272011-01-14 Martin Jambor <mjambor@suse.cz>
35828
35829 PR middle-end/46823
35830 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
35831
dde8a3a4
AS
358322011-01-13 Anatoly Sokolov <aesok@post.ru>
35833
35834 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
35835 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
35836 * config/xtensa/xtensa.c (xtensa_libcall_value,
35837 xtensa_function_value_regno_p): New functions.
35838 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
35839
a2b63a20
KT
358402011-01-13 Kai Tietz <kai.tietz@onevision.com>
35841
35842 PR c++/47213
35843 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
35844 PE specific hook.
35845 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
35846 New function prototype.
35847 * config/i386/winnt.c (i386_pe_assemble_visibility):
35848 Warn only if attribute was specified by user.
35849
b41f0b34
MM
358502011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
35851
35852 PR target/47251
35853 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
35854 floating point.
35855 (floatunsdidf2_fcfidu): Ditto.
35856
3f3c098d
AK
358572011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35858
35859 * config/s390/s390.c (print_operand_address): Replace 'error' with
35860 'output_operand_lossage'.
35861 (print_operand): Likewise.
35862
29fa95ed
JL
358632011-01-13 Jeff Law <law@redhat.com>
35864
280d9630 35865 PR rtl-optimization/39077
29fa95ed
JL
35866 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
35867 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
35868 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
35869 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
35870 * gcse.c (prune_insertions_deletions): New function.
35871 (compute_pre_data): Use it.
35872
71d12276
DS
358732011-01-13 Dodji Seketeli <dodji@redhat.com>
35874
35875 PR debug/PR46973
35876 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
35877 static function.
61052244 35878 (prune_unused_types_mark): Use it.
71d12276 35879
9b0f04e7
AB
358802011-01-13 Andrey Belevantsev <abel@ispras.ru>
35881
35882 PR rtl-optimization/45352
1c3ba85b 35883 * sel-sched.c: Update copyright years.
9b0f04e7 35884 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 35885 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 35886
d6a3e264
RH
358872011-01-12 Richard Henderson <rth@redhat.com>
35888
a49b692a
RH
35889 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
35890 (TARGET_MD_ASM_CLOBBERS): New.
35891
126b1483
RH
35892 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
35893 (TARGET_DELEGITIMIZE_ADDRESS): New.
35894
f3d9d2e0
RH
35895 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
35896 (clzsi2, *bsch): New patterns.
35897
d84760c9
RH
35898 * config/mn10300/mn10300.md (INT): New mode iterator.
35899 (*mov<INT>_clr): New pattern, and peep2 to generate it.
35900
ec815d65
RH
35901 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
35902 flag_split_wide_types.
35903
d6a3e264
RH
35904 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
35905 (mn10300_trampoline_init): Rewrite without a template, an immediate
35906 load and a direct branch.
35907 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
35908
0f8ab434
AS
359092011-01-12 Anatoly Sokolov <aesok@post.ru>
35910
35911 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35912 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
35913 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
35914 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35915
d8a24b65
KT
359162011-01-12 Kai Tietz <kai.tietz@onevision.com>
35917
35918 PR debug/47209
35919 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
35920 of type.
35921
56e22cab
JH
359222011-01-12 Jan Hubicka <jh@suse.cz>
35923
35924 PR driver/47244
35925 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
35926 (PLUGIN_COND_CLOSE): New macro.
35927 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
35928
4b18b3c2
RG
359292011-01-12 Richard Guenther <rguenther@suse.de>
35930
35931 PR lto/47259
35932 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
35933 register variables in a MEM_REF.
35934
8e38461c
JM
359352011-01-12 Joseph Myers <joseph@codesourcery.com>
35936
35937 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
35938 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
35939 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
35940 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
35941 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
35942 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
35943 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
35944 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
35945 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
35946 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
35947 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
35948 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
35949 * config/gnu-user.h: New. Copied from linux.h.
35950 (LINUX_TARGET_STARTFILE_SPEC): Rename to
35951 GNU_USER_TARGET_STARTFILE_SPEC.
35952 (LINUX_TARGET_ENDFILE_SPEC): Rename to
35953 GNU_USER_TARGET_ENDFILE_SPEC.
35954 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
35955 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
35956 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
35957 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
35958 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
35959 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
35960 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
35961 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
35962 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
35963 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
35964 * config/arm/linux-eabi.h (CC1_SPEC): Use
35965 GNU_USER_TARGET_CC1_SPEC.
35966 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
35967 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
35968 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
35969 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
35970 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
35971 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
35972 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
35973 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
35974
a570fc16
RG
359752011-01-12 Richard Guenther <rguenther@suse.de>
35976
35977 PR other/46946
35978 * doc/invoke.texi (ffast-math): Document it is turned on
35979 with -Ofast.
35980
b0223c3e
JH
359812011-01-12 Jan Hubicka <jh@suse.cz>
35982
35983 PR tree-optimization/47233
ca1e00b3
EB
35984 * opts.c (common_handle_option): Disable ipa-reference with profile
35985 feedback.
b0223c3e 35986
1c3ba85b 359872011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
35988
35989 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
35990 error message.
35991
d853ee42
NP
359922011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
35993
35994 * c-parser.c (c_lex_one_token): Updated and reindented some
35995 comments. No changes in code.
35996
4053a5a0
ILT
359972011-01-11 Ian Lance Taylor <iant@google.com>
35998
35999 * godump.c (go_output_var): Don't output the variable if there is
36000 already a type with the same name.
36001
fa3e04d2
ILT
360022011-01-11 Ian Lance Taylor <iant@google.com>
36003
36004 * godump.c (go_format_type): Don't generate float80.
36005
885fe07c
RH
360062011-01-11 Richard Henderson <rth@redhat.com>
36007
72d6e3c5
RH
36008 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
36009 declaration. Rewrite for both speed and size.
36010 (mn10300_address_cost_1): Remove.
36011 (mn10300_register_move_cost): New.
36012 (mn10300_memory_move_cost): New.
36013 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
36014 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
36015 extensions, shifts, BSWAP, CLZ.
36016 (mn10300_wide_const_load_uses_clr): Remove.
36017 (TARGET_REGISTER_MOVE_COST): New.
36018 (TARGET_MEMORY_MOVE_COST): New.
36019 * config/mn10300/mn10300-protos.h: Update.
36020 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
36021
df37c023
RH
36022 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
36023 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
36024 * config/mn10300/mn10300-protos.h: Update.
36025 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
36026 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
36027 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
36028 (*test_int_bitfield, *test_byte_bitfield): Remove.
36029 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 36030 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 36031
85a337b5
RH
36032 * config/mn10300/constraints.md ("c"): Rename from "A".
36033 ("A", "D"): New constraint letters.
36034 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
36035 (fmssf4, fnmasf4, fnmssf4): Likewise.
36036
a5c727e3
RH
36037 * config/mn10300/mn10300.md (isa): New attribute.
36038 (enabled): New attribute.
36039
0d9e23f4
RH
36040 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
36041 (abssf2, negsf2): Define only for hardware fp.
36042 (sqrtsf2): Reformat.
36043 (addsf3, subsf3, mulsf3): Merge expander and insn.
36044
c157b3f0
RH
36045 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
36046 (DEBUGGER_AUTO_OFFSET): Remove.
36047 (DEBUGGER_ARG_OFFSET): Remove.
36048
cc909bba
RH
36049 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
36050 Emit register stores with the same offsets as the hardware.
36051 (mn10300_store_multiple_operation): Don't check that the register
36052 save offsets are monotonic.
36053 * config/mn10300/mn10300-protos.h: Update.
36054
e3b5c2f3
RH
36055 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
36056
885fe07c
RH
36057 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
36058 in terms of the value on the stack, not the MDR register.
36059
6e701822
JH
360602011-01-11 Jan Hubicka <jh@suse.cz>
36061
36062 PR lto/45721
36063 PR lto/45375
36064 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
36065 (symbol_alias_set_destroy, symbol_alias_set_contains,
36066 propagate_aliases_backward): Declare.
36067 * lto-streamer-out.c (struct sets): New sturcture.
36068 (trivally_defined_alias): New function.
36069 (output_alias_pair_p): Rewrite.
36070 (output_unreferenced_globals): Fix output of alias pairs.
36071 (produce_symtab): Likewise.
36072 * ipa.c (function_and_variable_visibility): Set weak alias destination
36073 as needed in lto.
36074 * varasm.c (symbol_alias_set_t): Remove.
36075 (symbol_alias_set_destroy): Export.
36076 (propagate_aliases_forward, propagate_aliases_backward): New functions
36077 based on ...
36078 (compute_visible_aliases): ... this one; remove.
36079 (trivially_visible_alias): New
36080 (trivially_defined_alias): New.
36081 (remove_unreachable_alias_pairs): Rewrite.
36082 (finish_aliases_1): Reorganize code checking if alias is defined.
36083 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
36084 in LTO mode.
36085
1b248907
RG
360862011-01-11 Richard Guenther <rguenther@suse.de>
36087
36088 PR tree-optimization/46076
36089 * tree-ssa.c (useless_type_conversion_p): Conversions from
36090 unprototyped to empty argument list function types are useless.
36091
b1923f0a
RG
360922011-01-11 Richard Guenther <rguenther@suse.de>
36093
36094 PR middle-end/45235
36095 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
36096 volatile MEMs as MEM_READONLY_P.
36097
e98965af
RG
360982011-01-11 Richard Guenther <rguenther@suse.de>
36099
36100 PR tree-optimization/47239
36101 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
36102
9f9ca914
JL
361032011-01-11 Jeff Law <law@redhat.com>
36104
1ee3ea05 36105 PR tree-optimization/47086
9f9ca914
JL
36106 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
36107 IVs from statements that might throw.
36108
345fdcb7
JH
361092011-01-10 Jan Hubicka <jh@suse.cz>
36110
36111 PR lto/45375
36112 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
36113
c459c97b
JH
361142011-01-10 Jan Hubicka <jh@suse.cz>
36115
36116 PR lto/45375
36117 * profile.c (read_profile_edge_counts): Ignore profile inconistency
36118 when correcting profile.
36119
06c9eb51
JH
361202011-01-10 Jan Hubicka <jh@suse.cz>
36121
36122 PR lto/46083
36123 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
36124 DECL_FINI_PRIORITY.
36125 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
36126 Restore DECL_FINI_PRIORITY.
36127
ae9fd815
RW
361282011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36129
36130 * doc/gimple.texi: Fix quoting of multi-word return values in
36131 @deftypefn statements. Ensure presence of return value. Wrap
36132 overlong @deftypefn lines.
36133 (is_gimple_operand, is_gimple_min_invariant_address): Remove
36134 descriptions of removed functions.
36135 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
36136 of multi-word return value in @deftypefn statement.
36137
0ecb4a7c
RW
361382011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36139
36140 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
36141 (Conditional Expressions, Logical Operators)
36142 (Statement and operand traversals): Do not indent smallexample
36143 code. Fix duplicate function argument in example.
36144
2e5e346d
JL
361452011-01-10 Jeff Law <law@redhat.com>
36146
1ee3ea05 36147 PR tree-optimization/47141
2e5e346d
JL
36148 * ipa-split.c (split_function): Handle case where we are
36149 returning a value and the return block has a virtual operand phi.
36150
cf9712cc
JH
361512011-01-10 Jan Hubicka <jh@suse.cz>
36152
1c3ba85b 36153 PR tree-optimization/47234
cf9712cc
JH
36154 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
36155 (pass_feedback_split_functions): Declare.
36156 * passes.c (init_optimization_passes): Add ipa-split as subpass of
36157 tree-profile.
36158 * ipa-split.c (gate_split_functions): Update comments; disable
36159 split-functions for profile_arc_flag and branch_probabilities.
36160 (gate_feedback_split_functions): New function.
36161 (execute_feedback_split_functions): New function.
36162 (pass_feedback_split_functions): New global var.
36163
94cd932c
L
361642011-01-10 H.J. Lu <hongjiu.lu@intel.com>
36165
36166 PR lto/46760
36167 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
36168 calling gimple_call_set_cannot_inline.
36169
fbbfcaf1
IS
361702011-01-10 Iain Sandoe <iains@gcc.gnu.org>
36171
36172 * config/darwin-sections.def: Remove unused section.
36173
d06865bf
DK
361742011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
36175
36176 PR c++/47218
36177 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
36178
96bbfbac
NP
361792011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
36180
36181 PR objc/47232
36182 * c-parser.c (c_parser_declaration_or_fndef): Improved
36183 error message.
36184
1ba6516f
KT
361852011-01-09 Kai Tietz <kai.tietz@onevision.com>
36186
36187 * config/i386/winnt.c (i386_pe_start_function): Make sure
36188 to switch back to function's section.
36189
0c5d770e
IS
361902011-01-09 Iain Sandoe <iains@gcc.gnu.org>
36191
36192 PR gcc/46902
36193 PR testsuite/46912
36194 * plugin.c: Move include of dlfcn.h from here...
36195 * system.h: ... to here.
36196
361972011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
36198
36199 * doc/cpp.texi (C++ Named Operators): Fix markup for header
36200 file name.
36201 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
36202 two extra empty pages in PDF output.
36203
046608a3
NP
362042011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
36205
36206 PR objc/47078
36207 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
36208 for error recovery purposes behave as if it was not specified so
36209 that the default type is usd.
36210
8cb114b9
JH
362112011-01-07 Jan Hubicka <jh@suse.cz>
36212
36213 PR tree-optmization/46469
36214 * ipa.c (function_and_variable_visibility): Clear needed flags on
36215 nodes with external decls; handle weakrefs merging correctly.
36216
b294a75e
JM
362172011-01-07 Joseph Myers <joseph@codesourcery.com>
36218
36219 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
36220 not false.
36221
96bdf9b4
JH
362222011-01-07 Jan Hubicka <jh@suse.cz>
36223
f60c2554 36224 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
36225 and no longer claim that gold is required for linker plugin.
36226 * configure: Regenerate.
36227 * gcc.c (PLUGIN_COND): New macro.
36228 (LINK_COMMAND_SPEC): Use it.
36229 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
36230 * config.in (HAVE_LTO_PLUGIN): New.
36231 * configure.ac (--with-lto-plugin): New parameter; autodetect
36232 HAVE_LTO_PLUGIN.
36233
17afc0fe
JH
362342011-01-07 Jan Hubicka <jh@suse.cz>
36235
36236 PR tree-optimization/46367
36237 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
36238 when we can update original.
36239 (cgraph_mark_inline_edge): Sanity check.
36240 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
36241
d4c48c0f
UW
362422011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36243
36244 * config/spu/spu.h (ASM_COMMENT_START): Define.
36245
96f5b137
L
362462011-01-07 H.J. Lu <hongjiu.lu@intel.com>
36247
36248 PR driver/42445
36249 * gcc.c (%>S): New.
36250 (SWITCH_KEEP_FOR_GCC): Likewise.
36251 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
36252 (do_spec_1): Handle "%>".
36253
36254 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
36255
c6a8f6de
JJ
362562011-01-07 Jakub Jelinek <jakub@redhat.com>
36257
c21bbd7a
JJ
36258 PR target/47201
36259 * config/i386/i386.c (ix86_delegitimize_address): If
36260 simplify_gen_subreg fails, return orig_x.
36261
c6a8f6de
JJ
36262 PR bootstrap/47187
36263 * value-prof.c (gimple_stringop_fixed_value): Handle
36264 lhs of the call properly.
36265
fe95fbf9
JH
362662011-01-07 Jan Hubicka <jh@suse.cz>
36267
36268 PR lto/45375
36269 * lto-opt.c (lto_reissue_options): Set flag_shlib.
36270
14d11d40
IS
362712011-01-07 Iain Sandoe <iains@gcc.gnu.org>
36272
72e961c8
EB
36273 * target.def (function_switched_text_sections): New hook.
36274 * doc/tm.texi: Regenerated.
36275 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 36276 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
36277 (final_scan_insn): Call function_switched_text_sections when a
36278 mid-function section change occurs.
14d11d40 36279 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
36280 * config/darwin-protos.h (darwin_function_switched_text_sections):
36281 Likewise.
14d11d40 36282 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 36283 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 36284
0b764288
IS
362852011-01-07 Iain Sandoe <iains@gcc.gnu.org>
36286
36287 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
36288 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
36289 the secondary code fragment when outputting for DWARF == 2.
36290
2ac6bb04
AS
362912011-01-07 Anatoly Sokolov <aesok@post.ru>
36292
36293 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
36294 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
36295 Remove.
36296 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
36297 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
36298
9f82de11
EB
362992011-01-06 Eric Botcazou <ebotcazou@adacore.com>
36300
36301 PR debug/46704
280d9630
EB
36302 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
36303 when it is not empty.
9f82de11
EB
36304
363052011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 36306
1ed72abf 36307 Bobcat Enablement
14b52538 36308 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 36309 (case ${target}): Add btver1.
14b52538 36310 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 36311 -march=native recognize btver1 processors.
14b52538 36312 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 36313 btver1 def_and_undef
14b52538 36314 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
36315 btver1 cost table.
36316 (m_BTVER1): New definition.
36317 (m_AMD_MULTIPLE): Includes m_BTVER1.
36318 (initial_ix86_tune_features): Add btver1 tune.
36319 (processor_target_table): Add btver1 entry.
36320 (static const char *const cpu_names): Add btver1 entry.
36321 (software_prefetching_beneficial_p): Add btver1.
36322 (ix86_option_override_internal): Add btver1 instruction sets.
36323 (ix86_issue_rate): Add btver1.
36324 (ix86_adjust_cost): Add btver1.
14b52538 36325 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
36326 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
36327 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
36328 * config/i386/i386.md (define_attr "cpu"): Add btver1.
36329
e1a973d8
RO
363302011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36331
36332 PR target/43309
36333 * config/i386/i386.c (legitimize_tls_address)
36334 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
36335 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
36336 (tls_initial_exec_64_sun): New pattern.
36337
c73f67c5
GP
363382011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
36339
36340 * doc/invoke.texi (Overall Options): Improve wording and markup
36341 of the description of -wrapper.
36342
bc4c6f9c
JM
363432011-01-06 Joseph Myers <joseph@codesourcery.com>
36344
36345 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
36346 rdynamic, threads): New Driver options.
36347
adb75db0
RO
363482011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36349
36350 PR target/38118
36351 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
36352 if coming from .tdata.
36353 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
36354
402c1cb4
JH
363552011-01-06 Jan Hubicka <jh@suse.cz>
36356
36357 PR lto/47188
36358 * collect2.c (main): Do not enable LTOmode when plugin is active.
36359
a4da6485
RO
363602011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36361
36362 PR other/45915
36363 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
36364 --version output if supported.
36365 * configure: Regenerate.
36366
028dbdf4
JM
363672011-01-06 Joseph Myers <joseph@codesourcery.com>
36368
36369 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
36370 Driver options.
36371
dfe776dd
JJ
363722011-01-06 Jakub Jelinek <jakub@redhat.com>
36373
36374 PR c/47150
36375 * c-convert.c (convert): When converting a complex expression
36376 other than COMPLEX_EXPR to a different complex type, ensure
36377 c_save_expr is called instead of save_expr, unless in_late_binary_op.
36378 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
36379 when converting COMPLEX_TYPE.
36380
210dedfe
IR
363812011-01-06 Ira Rosen <irar@il.ibm.com>
36382
36383 PR tree-optimization/47139
36384 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
36385 only the last reduction value is used outside the loop. Update
36386 documentation.
36387
cd33a412
JM
363882011-01-05 Joseph Myers <joseph@codesourcery.com>
36389
36390 * config/rtems.opt: New.
36391 * config.gcc (*-*-rtems*): Use rtems.opt.
36392
819edd94
CF
363932011-01-05 Changpeng Fang <changpeng.fang@amd.com>
36394
36395 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
36396 processors do not support 3DNow instructions.
36397
dc242c4a
UW
363982011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36399
36400 * config/spu/spu.c (spu_option_override): Set parameter
36401 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
36402
be286227
JH
364032011-01-05 Jan Hubicka <jh@suse.cz>
36404
36405 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
36406 at the command line.
36407
644e637f
MJ
364082011-01-05 Martin Jambor <mjambor@suse.cz>
36409
36410 PR lto/47162
36411 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
36412 deltas on streamed outgoing edges.
36413 (output_node_opt_summary): Output info for outgoing edges only when
36414 the node is in new parameter set.
36415 (output_cgraph_opt_summary): New parameter set, passed to the two
36416 aforementioned functions. Update its forward declaration and its
36417 callee too.
36418
7bd11157
TT
364192011-01-05 Tom Tromey <tromey@redhat.com>
36420
36421 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
36422 operator to c_finish_omp_atomic.
36423 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
36424 (build_unary_op): Update.
36425 (build_modify_expr): Update.
36426 (build_asm_expr): Update.
36427
f626b979
UW
364282011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36429
36430 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
36431 newly inserted insns.
36432 (pad_bb): Likewise.
36433 (spu_emit_branch_hint): Likewise.
36434 (insert_hbrp_for_ilb_runout): Likewise.
36435 (spu_machine_dependent_reorg): Call df_finish_pass after
36436 schedule_insns returns.
36437
4c825c02
UW
364382011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36439
36440 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
36441
5e9fba51
EB
364422011-01-05 Eric Botcazou <ebotcazou@adacore.com>
36443
36444 PR tree-optimization/47005
36445 * tree-sra.c (struct access): Add 'non_addressable' bit.
36446 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
36447 (decide_one_param_reduction): Return 0 if the parameter is passed by
36448 reference and one of the accesses in the group is non_addressable.
36449
3ebb5ca6
EB
364502011-01-04 Eric Botcazou <ebotcazou@adacore.com>
36451
36452 PR tree-optimization/47056
36453 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
36454 (mark_load): Likewise. Handle FUNCTION_DECL specially.
36455 (mark_store): Likewise. Pass STMT to ipa_record_reference.
36456
d5d4d14e
EB
364572011-01-04 Eric Botcazou <ebotcazou@adacore.com>
36458
36459 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
36460 initializer. Skip view conversions from aggregate types.
36461
d996ef70
KT
364622011-01-04 Kai Tietz <kai.tietz@onevision.com>
36463
36464 PR bootstrap/47055
36465 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
36466
509d65dd 364672011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
36468
36469 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
36470 obvious typo.
36471
55c623b5
UW
364722011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36473
36474 * function.c (thread_prologue_and_epilogue_insns): Do not crash
36475 on empty epilogue sequences.
36476
b98d6b35
JM
364772011-01-04 Joseph Myers <joseph@codesourcery.com>
36478
36479 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
36480 non-static): New Driver options.
36481
a0d43bac
JZ
364822011-01-04 Jie Zhang <jie@codesourcery.com>
36483
36484 PR driver/47137
36485 * gcc.c (default_compilers[]): Set combinable field to 0
36486 for all assembly languages.
36487
2b18eb32
MX
364882011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
36489
36490 * config/mips/loongson3a.md: New file.
36491 * config/mips/mips.md: Include loongson3a.md.
36492 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
36493 TUNE_LOONGSON_3A.
36494
42a48c4f
EB
364952011-01-03 Eric Botcazou <ebotcazou@adacore.com>
36496
36497 PR middle-end/47017
36498 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
36499 instead of convert_memory_address_addr_space on the base expression.
36500
9c1732c4
UW
365012011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36502
36503 * config/spu/spu.c (spu_option_override): Update error text
36504 for bad -march= / -mtune= values.
36505
aa474365
UW
365062011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36507
36508 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
36509 if branch-hint optimization will be performed.
36510
9766135b
JJ
365112011-01-03 Jakub Jelinek <jakub@redhat.com>
36512
371556ee
JJ
36513 PR tree-optimization/47148
36514 * ipa-split.c (split_function): Convert arguments to
36515 DECL_ARG_TYPE if possible.
36516
1ac12fa2
JJ
36517 PR tree-optimization/47155
36518 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
36519 when computing uns.
36520
9766135b
JJ
36521 PR rtl-optimization/47157
36522 * combine.c (try_combine): If undobuf.other_insn becomes
36523 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
36524 and set *new_direct_jump_p too.
36525
f4a2e571
SP
365262011-01-03 Sebastian Pop <sebastian.pop@amd.com>
36527
36528 PR tree-optimization/47021
36529 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
36530
9f8e43c0
JJ
365312011-01-03 Jakub Jelinek <jakub@redhat.com>
36532
36533 * gcc.c (process_command): Update copyright notice dates.
36534 * gcov.c (print_version): Likewise.
36535 * gcov-dump.c (print_version): Likewise.
36536 * mips-tfile.c (main): Likewise.
36537 * mips-tdump.c (main): Likewise.
36538
1a2e38f3
MJ
365392011-01-03 Martin Jambor <mjambor@suse.cz>
36540
36541 PR tree-optimization/46801
36542 * tree-sra.c (type_internals_preclude_sra_p): Check whether
36543 aggregate fields start at byte boundary instead of the bit-field flag.
36544
56b721c5
L
365452011-01-03 H.J. Lu <hongjiu.lu@intel.com>
36546
36547 PR driver/47137
36548 * gcc.c (main): Revert revision 168407.
36549
839d549b
MJ
365502011-01-03 Martin Jambor <mjambor@suse.cz>
36551
36552 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
36553
4ce99a20 365542011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
36555
36556 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
36557 vector optab to expand vector/scalar shift, update gimple to vector.
36558
76df0ae6
MJ
365592011-01-03 Martin Jambor <mjambor@suse.cz>
36560
36561 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
36562 a thunk.
36563
ce47fda3
MJ
365642011-01-03 Martin Jambor <mjambor@suse.cz>
36565
36566 PR tree-optimization/46984
36567 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
36568 HOST_WIDE_INT.
36569 (cgraph_create_indirect_edge): Fixed line length.
36570 (cgraph_indirect_call_info): Declare.
36571 (cgraph_make_edge_direct) Update declaration.
36572 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
36573 (cgraph_create_indirect_edge): Use it.
36574 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
36575 callees.
36576 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
36577 the new thunk_delta representation.
36578 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
36579 HOST_WIDE_INT.
36580 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
36581 (ipa_read_indirect_edge_info): Likewise.
36582 * lto-cgraph.c (output_edge_opt_summary): New function.
36583 (output_node_opt_summary): Call it on all outgoing edges.
36584 (input_edge_opt_summary): New function.
36585 (input_node_opt_summary): Call it on all outgoing edges.
36586
1e67fa1f
L
365872011-01-02 H.J. Lu <hongjiu.lu@intel.com>
36588
36589 PR driver/47137
36590 * gcc.c (main): Don't check have_o when settting combine_inputs.
36591
6656b2ac
EB
365922011-01-02 Eric Botcazou <ebotcazou@adacore.com>
36593
36594 * regrename.c: Add general comment describing the pass.
36595 (struct du_head): Remove 'length' field.
36596 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
36597 (regrename_optimize): Do not sort chains. Rework comments, add others.
36598 Force renaming to the preferred class (if any) in the first pass and do
36599 not consider registers that belong to it in the second pass.
36600 (create_new_chain): Do not set 'length' field.
36601 (scan_rtx_reg): Likewise.
36602
bc470c24
JJ
366032011-01-02 Jakub Jelinek <jakub@redhat.com>
36604
4e996296
JJ
36605 PR tree-optimization/47140
36606 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
36607 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
36608 to bit_value_binop.
36609
bc470c24 36610 PR rtl-optimization/47028
6656b2ac
EB
36611 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
36612 parm_birth_insn instead of at the beginning of first bb.
bc470c24 36613
5af62fcd 366142011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
36615
36616 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
36617 Remove the word "see" before "@pxref".
36618 * doc/rtl.texi: Remove the word "see" before "@pxref".
36619
0e20c89f
JH
366202011-01-01 Jan Hubicka <jh@suse.cz>
36621
6656b2ac
EB
36622 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
36623 memory.
0e20c89f 36624
220e83ca
KT
366252011-01-01 Kai Tietz <kai.tietz@onevision.com>
36626
36627 PR target/38662
6656b2ac 36628 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 36629
ad41bd84 36630\f
797103eb 36631Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
36632
36633Copying and distribution of this file, with or without modification,
36634are permitted in any medium without royalty provided the copyright
36635notice and this notice are preserved.
This page took 7.017629 seconds and 5 git commands to generate.