]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
frv.c (frv_init_cumulative_args): Fix wrong cast.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
8ad8afaf
JBG
12013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2
3 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
4
c0e081a9
RB
52013-10-18 Richard Biener <rguenther@suse.de>
6
7 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
8 or TYPE_UNSIGNED of integral types.
9 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10 NULL_TREE for zero-precision integral types.
11
054fceb5
JG
122013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
13
14 * config/aarch64/arm_neon.h
15 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
16
70e8b89b
ST
172013-10-17 Sriraman Tallam <tmsriram@google.com>
18
19 * opth-gen.awk: Define target_flags_explicit.
20
3170766c 212013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5845f602
MM
22
23 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
24 fields to the reg_addr array that describes the valid addressing
25 mode for any register, general purpose registers, floating point
26 registers, and Altivec registers.
27 (FIRST_RELOAD_REG_CLASS): Likewise.
28 (LAST_RELOAD_REG_CLASS): Likewise.
29 (struct reload_reg_map_type): Likewise.
30 (reload_reg_map_type): Likewise.
31 (RELOAD_REG_VALID): Likewise.
32 (RELOAD_REG_MULTIPLE): Likewise.
33 (RELOAD_REG_INDEXED): Likewise.
34 (RELOAD_REG_OFFSET): Likewise.
35 (RELOAD_REG_PRE_INCDEC): Likewise.
36 (RELOAD_REG_PRE_MODIFY): Likewise.
37 (reg_addr): Likewise.
38 (mode_supports_pre_incdec_p): New helper functions to say whether
39 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
40 (mode_supports_pre_modify_p): Likewise.
41 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
42 print the valid address mode bits for each mode.
43 (rs6000_debug_print_mode): Likewise.
44 (rs6000_debug_reg_global): Likewise.
45 (rs6000_setup_reg_addr_masks): New function to set up the address
46 mask bits for each type.
47 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
48 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
49 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
50 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
51 PRE_MODIFY are supported.
3170766c
MM
52 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
53 registers, instead of {src,dest}_av_p.
5845f602
MM
54 (rs6000_print_options_internal): Tweak the debug output slightly.
55
82e33890
UB
562013-10-17 Uros Bizjak <ubizjak@gmail.com>
57
58 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
59 isa attribute.
60
0645c1a2
AM
612013-10-17 Andrew MacLeod <amacleod@redhat.com>
62
63 * tree-flow.h (struct omp_region): Move to omp-low.c.
64 Remove omp_ prototypes and variables.
65 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
66 (copy_var_decl): Relocate prototype from tree-flow.h.
67 * gimple.c (copy_var_decl): Relocate from omp-low.c.
68 * tree.h: Move prototype to omp-low.h.
69 * omp-low.h: New File. Relocate prototypes here.
70 * omp-low.c (struct omp_region): Make local here.
71 (root_omp_region): Make static.
72 (copy_var_decl) Move to gimple.c.
73 (new_omp_region): Make static.
74 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
75 * tree-cfg.c: Include omp-low.h.
76 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
77 * gimplify.c: Include omp-low.h.
78 * tree-parloops.c: Likewise.
79
6f1abb55
UB
802013-10-17 Uros Bizjak <ubizjak@gmail.com>
81
82 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
83 operands are in memory, prefer to force non-matched operand 1 to
84 the register.
85
1ddbbbc0
MM
862013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
87
88 PR target/58673
89 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
90 restrict TImode addresses to single indirect registers if both
91 -mquad-memory and -mvsx-timode are used.
92 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
93 we should emit load/store quad. Remove using %y for quad memory
94 addresses.
95
96 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
97 constraints to allow load/store quad on machines where TImode is
98 not allowed in VSX registers. Use 'n' instead of 'F' constraint
99 for TImode to load integer constants.
100
f541a481
KT
1012013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
102
103 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
104
51bb310d
MS
1052013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
106
107 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
108 handling of STACK_REG.
109
f4bed77b
RB
1102013-10-17 Richard Biener <rguenther@suse.de>
111
112 PR tree-optimization/58143
113 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
114 New function.
115 (rewrite_to_defined_overflow): Likewise.
116 (move_computations_dom_walker::before_dom): Rewrite stmts
117 with undefined signed overflow that are not always executed
118 into unsigned arithmetic.
119
d358fb9d
MM
1202013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
121
122 PR target/57756
123 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
124 explicit isa flag to be an options variable, instead of using
125 global_options_set. Remove define from rs6000.h.
126 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
127
128 * config/rs6000/rs6000.c (rs6000_option_override_internal):
129 Initialize rs6000_isa_flags_explicit.
130 (rs6000_function_specific_save): Add gcc_options* parameter, so
131 that the powerpc builds after the 2013-10-15 changes.
132 (rs6000_function_specific_restore): Likewise.
133
c71aed47
DD
1342013-10-16 DJ Delorie <dj@redhat.com>
135
136 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
137 op is a REG before checking REGNO.
138 (rl78_alloc_physical_registers): Verify pattern is a SET before
139 checking SET_SRC.
140
90d3bd51
BS
1412013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
142
143 * gcc/config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
144 endianness.
145 (vec_unpacks_lo_v4sf): Likewise.
146 (vec_unpacks_float_hi_v4si): Likewise.
147 (vec_unpacks_float_lo_v4si): Likewise.
148 (vec_unpacku_float_hi_v4si): Likewise.
149 (vec_unpacku_float_lo_v4si): Likewise.
150
de75c876
BS
1512013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
152
153 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
154 (vsx_concat_v2sf): Likewise.
155
21216998
JG
1562013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
157
158 * config/aarch64/aarch64.md
159 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
160
1ef88893 1612013-10-16 Andrew MacLeod <amacleod@redhat.com>
7ab4168e 162
1ef88893 163 PR tree-optimization/58697
7ab4168e 164 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
1ef88893
AM
165 estimated_loop_iterations_int.
166 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7ab4168e 167 (get_max_loop_iterations_int): New. HWINT version of
1ef88893
AM
168 get_max_loop_iterations.
169 * cfgloop.h: Add prototypes.
170 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7ab4168e 171 * loop-unroll.c (decide_peel_once_rolling): Call
1ef88893
AM
172 get_estimated_loop_iterations_int.
173 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
174 * tree-ssa-loop-niter.h: Tweak prototypes.
175
c22df64f
DM
1762013-10-16 David Malcolm <dmalcolm@redhat.com>
177
178 * gengtype-parse.c (struct_field_seq): Ignore access-control
179 keywords ("public:" etc).
180
f24bb080
MS
1812013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
182
183 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
184 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
185
c281bf26
YR
1862013-10-16 Yvan Roux <yvan.roux@linaro.org>
187
188 * config/arm/arm.opt (mlra): New option.
189 * config/arm/arm.c (arm_lra_p): New function.
190 (TARGET_LRA_P): Define.
191
5806f481
PM
1922013-10-16 Paulo Matos <pmatos@broadcom.com>
193
194 * tree-core.h (tree_code_name): Remove.
195 * tree.h (get_tree_code_name): New prototype.
196 * tree.c (tree_code_name): Make static.
197 (get_tree_code_name): New function.
198 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
199 tree_class_check_failed, tree_range_check_failed,
200 tree_not_class_check_failed, omp_clause_check_failed,
201 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
202 wrapper get_tree_code_name instead of calling tree_code_name directly.
203 * tree-vrp.c (dump_asserts_for): Likewise.
204 * tree-dump.c (dequeue_and_dump): Likewise.
205 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
206 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
207 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
208 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
209 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
210 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
211 dump_gimple_omp_for): Likewise.
212 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
213 * tree-ssa-pre.c (print_pre_expr): Likewise.
214 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
215 * print-tree.c (print_node_brief, print_node): Likewise.
216 * gimple.c (gimple_check_failed): Likewise.
217 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
218 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
219 * config/mep/mep.c (mep_validate_vliw): Likewise.
220 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
221 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
222
82c9df56
GG
2232013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
224
225 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
226 for AMD bdver3.
227
b82d0df9
HPN
2282013-10-16 Hans-Peter Nilsson <hp@axis.com>
229
230 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
231 (MULTILIB_MATCHES): Add multilib for -march=v8.
232
bf7b5747
ST
2332013-10-15 Sriraman Tallam <tmsriram@google.com>
234
235 PR target/57756
236 * optc-save-gen.awk: Add extra parameter to the save and restore
237 target calls.
238 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
239 * tree.c (build_optimization_node): New parameter. Add extra parameter
240 to call to cl_optimization_save.
241 (build_target_option_node): New parameter. Add extra parameter
242 to call to cl_target_option_save.
243 * tree.h (build_optimization_node): New parameter.
244 (build_target_option_node): New parameter.
245 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
246 build_optimization_node and build_target_option_node.
247 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
248 (handle_pragma_push_options): Ditto.
249 * toplev.c (process_options): Ditto.
250 * opts.c (init_options_struct): Check for opts_set non-null.
251 * target.def (target_option.save): New parameter.
252 (target_option.restore): New parameter.
253 * tm.texi: Generate.
254 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
255 (ix86_pragma_target_parse): Ditto.
256 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
257 parameters.
258 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
259 to build_optimization_node and build_target_option_node.
260 (rs6000_valid_attribute_p): Ditto.
261 (rs6000_pragma_target_parse): Ditto.
262 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
263 data.
264 * config/i386/i386.h:
265 TARGET_64BIT_P: New Macro
266 TARGET_MMX_P: New Macro.
267 TARGET_3DNOW_P: New Macro.
268 TARGET_3DNOW_A_P: New Macro.
269 TARGET_SSE_P: New Macro.
270 TARGET_SSE2_P: New Macro.
271 TARGET_SSE3_P: New Macro.
272 TARGET_SSSE3_P: New Macro.
273 TARGET_SSE4_1_P: New Macro.
274 TARGET_SSE4_2_P: New Macro.
275 TARGET_AVX_P: New Macro.
276 TARGET_AVX2_P: New Macro.
277 TARGET_AVX512F_P: New Macro.
278 TARGET_AVX512PF_P: New Macro.
279 TARGET_AVX512ER_P: New Macro.
280 TARGET_AVX512CD_P: New Macro.
281 TARGET_FMA_P: New Macro.
282 TARGET_SSE4A_P: New Macro.
283 TARGET_FMA4_P: New Macro.
284 TARGET_XOP_P: New Macro.
285 TARGET_LWP_P: New Macro.
286 TARGET_ABM_P: New Macro.
287 TARGET_BMI_P: New Macro.
288 TARGET_BMI2_P: New Macro.
289 TARGET_LZCNT_P: New Macro.
290 TARGET_TBM_P: New Macro.
291 TARGET_POPCNT_P: New Macro.
292 TARGET_SAHF_P: New Macro.
293 TARGET_MOVBE_P: New Macro.
294 TARGET_CRC32_P: New Macro.
295 TARGET_AES_P: New Macro.
296 TARGET_PCLMUL_P: New Macro.
297 TARGET_CMPXCHG16B_P: New Macro.
298 TARGET_FSGSBASE_P: New Macro.
299 TARGET_RDRND_P: New Macro.
300 TARGET_F16C_P: New Macro.
301 TARGET_RTM_P: New Macro.
302 TARGET_HLE_P: New Macro.
303 TARGET_RDSEED_P: New Macro.
304 TARGET_PRFCHW_P: New Macro.
305 TARGET_ADX_P: New Macro.
306 TARGET_FXSR_P: New Macro.
307 TARGET_XSAVE_P: New Macro.
308 TARGET_XSAVEOPT_P: New Macro.
309 TARGET_LP64_P: New Macro.
310 TARGET_X32_P: New Macro.
311 TARGET_FPMATH_DEFAULT_P: New Macro.
312 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
313 * config/i386/i386.c (ix86_option_override_internal): New parameters.
314 opts and opts_set.
315 Change ix86_tune_string to access opts->x_ix86_tune_string.
316 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
317 Change ix86_arch_string to access opts->x_ix86_arch_string.
318 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
319 Change ix86_pmode to access opts->x_ix86_pmode.
320 Change ix86_abi to access opts->x_ix86_abi.
321 Change ix86_cmodel to access opts->x_ix86_cmodel.
322 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
323 Change ix86_isa_flags_explicit to access
324 opts->x_ix86_isa_flags_explicit.
325 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
326 Change ix86_regparm to access opts->x_ix86_regparm.
327 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
328 Change ix86_preferred_stack_boundary_arg to access
329 opts->x_ix86_preferred_stack_boundary_arg.
330 Change ix86_force_align_arg_pointer to access
331 opts->x_ix86_force_align_arg_pointer.
332 Change ix86_incoming_stack_boundar_arg to access
333 opts->x_ix86_incoming_stack_boundar_arg.
334 Change ix86_fpmath to access opts->x_ix86_fpmath.
335 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
336 Change ix86_recip_name to access opts->x_ix86_recip_name.
337 Change ix86_stack_protector_guard to access
338 opts->x_ix86_stack_protector_guard.
339 Change ix86_tune_memcpy_strategy to access
340 opts->x_ix86_tune_memcpy_strategy.
341 Change ix86_tune_memset_strategy to access
342 opts->x_ix86_tune_memset_strategy.
343 Change global_options to access opts.
344 Change global_options_set to access opts_set.
6f1abb55
UB
345 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
346 Change TARGET_MMX to TARGET_MMX_P (opts->...).
347 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
348 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
349 Change TARGET_SSE to TARGET_SSE_P (opts->...).
350 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
351 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
352 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
353 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
354 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
355 Change TARGET_AVX to TARGET_AVX_P (opts->...).
356 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
357 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
358 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
359 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
360 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
361 Change TARGET_FMA to TARGET_FMA_P (opts->...).
362 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
363 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
364 Change TARGET_XOP to TARGET_XOP_P (opts->...).
365 Change TARGET_LWP to TARGET_LWP_P (opts->...).
366 Change TARGET_ABM to TARGET_ABM_P (opts->...).
367 Change TARGET_BMI to TARGET_BMI_P (opts->...).
368 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
369 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
370 Change TARGET_TBM to TARGET_TBM_P (opts->...).
371 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
372 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
373 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
374 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
375 Change TARGET_AES to TARGET_AES_P (opts->...).
376 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
377 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
378 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
379 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
380 Change TARGET_F16C to TARGET_F16C_P (opts->...).
381 Change TARGET_RTM to TARGET_RTM_P (opts->...).
382 Change TARGET_HLE to TARGET_HLE_P (opts->...).
383 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
384 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
385 Change TARGET_ADX to TARGET_ADX_P (opts->...).
386 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
387 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
388 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
389 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
390 Change TARGET_X32 to TARGET_X32_P (opts->...).
391 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
392 Change TARGET_FLOAT_RETURNS_IN_80387 to
393 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
bf7b5747
ST
394 (ix86_function_specific_save): New parameter. Use opts-> fields
395 to replace global fields.
396 (ix86_function_specific_restore): Ditto.
397 (ix86_valid_target_attribute_inner_p): New parameters.
398 Fix recursive call.
399 Fix call to ix86_handle_option and set_option.
400 (ix86_valid_target_attribute_tree): New parameters.
401 Change global_options to access opts.
402 Change global_options_set to access opts_set.
403 Fix call to ix86_valid_target_attribute_inner_p.
404 Change ix86_tune_string to access opts->x_ix86_tune_string.
405 Change ix86_arch_string to access opts->x_ix86_arch_string.
406 Change ix86_fpmath to access opts->x_ix86_fpmath
407 Fix call to ix86_option_override_internal.
408 Fix call to ix86_add_new_builtins.
409 Fix calls to build_optimization_node and build_target_option_node.
410 (ix86_valid_target_attribute_p): Remove access to global_options.
411 Use new gcc_options structure func_options.
412 Fix call to ix86_valid_target_attribute_tree.
413 Fix call to build_optimization_node.
414 (get_builtin_code_for_version): Fix call to
415 ix86_valid_target_attribute_tree.
416
459260ec
DM
4172013-10-15 David Malcolm <dmalcolm@redhat.com>
418
419 * Makefile.in (PICFLAG): New.
420 (enable_host_shared): New.
421 (INTERNAL_CFLAGS): Use PICFLAG.
422 (LIBIBERTY): Use pic build of libiberty.a if configured with
423 --enable-host-shared.
424 * configure.ac: Add --enable-host-shared, setting up new
425 PICFLAG variable.
426 * configure: Regenerate.
6f1abb55 427 * doc/install.texi (--enable-shared): Add note contrasting it with ...
459260ec
DM
428 (--enable-host-shared): New option.
429
16022041
RS
4302013-10-15 Richard Biener <rguenther@suse.de>
431
432 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
433 for built-in functions.
434
b114bfb4
ZC
4352013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
436
437 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
438 (optimize_range_tests_1): New function,
439 extracted from optimize_range_tests.
440 (optimize_range_tests_xor): Similarly.
441 (optimize_range_tests_diff): New function.
442 (optimize_range_tests): Use optimize_range_tests_1.
443
69b8f2f9
CH
4442013-10-15 Cong Hou <congh@google.com>
445
7ab4168e
MS
446 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
447 requirement of the reduction pattern so that one operand of the
69b8f2f9
CH
448 reduction operation can come from outside of the loop.
449
8ff5a4e4
JG
4502013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
451
452 * config/arm/neon-schedgen.ml: Remove.
453 * config/arm/cortex-a9-neon.md: Remove comment regarding
454 neon-schedgen.ml.
455
52b69ad2
JG
4562013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
457
458 * config/arm/types: Remove old neon types.
459
e7c6a556
JG
4602013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
461
462 * config/arm/cortex-a7.md
463 (cortex_a7_neon_type): New.
464 (cortex_a7_neon_mul): Update for new types.
465 (cortex_a7_neon_mla): Likewise.
466 (cortex_a7_neon): Likewise.
467
795dd8d5
JG
4682013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
469
470 * config/arm/cortex-a15-neon.md
471 (cortex_a15_neon_type): New,
472
473 (cortex_a15_neon_int_1): Remove.
474 (cortex_a15_neon_int_2): Likewise.
475 (cortex_a15_neon_int_3): Likewise.
476 (cortex_a15_neon_int_4): Likewise.
477 (cortex_a15_neon_int_5): Likewise.
478 (cortex_a15_neon_vqneg_vqabs): Likewise.
479 (cortex_a15_neon_vmov): Likewise.
480 (cortex_a15_neon_vaba): Likewise.
481 (cortex_a15_neon_vaba_qqq): Likewise.
482 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
483 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
484 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
485 Likewise.
486 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
487 (cortex_a15_neon_mla_qqq_8_16): Likewise.
488 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
489 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
490 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
491 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
492 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
493 (cortex_a15_neon_shift_1): Likewise.
494 (cortex_a15_neon_shift_2): Likewise.
495 (cortex_a15_neon_shift_3): Likewise.
496 (cortex_a15_neon_vshl_ddd): Likewise.
497 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
498 (cortex_a15_neon_vsra_vrsra): Likewise.
499 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
500 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
501 (cortex_a15_neon_bp_3cycle): Likewise.
502 (cortex_a15_neon_ldm_2): Likewise.
503 (cortex_a15_neon_stm_2): Likewise.
504 (cortex_a15_neon_mcr): Likewise.
505 (cortex_a15_neon_mrc): Likewise.
506 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
507 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
508 (cortex_a15_neon_fp_vmul_ddd): Likewise.
509 (cortex_a15_neon_fp_vmul_qqd): Likewise.
510 (cortex_a15_neon_fp_vmla_ddd): Likewise.
511 (cortex_a15_neon_fp_vmla_qqq): Likewise.
512 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
513 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
514 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
515 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
516 (cortex_a15_neon_bp_simple): Likewise.
517 (cortex_a15_neon_bp_2cycle): Likewise.
518 (cortex_a15_neon_bp_3cycle): Likewise.
519 (cortex_a15_neon_vld1_1_2_regs): Likewise.
520 (cortex_a15_neon_vld1_3_4_regs): Likewise.
521 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
522 (cortex_a15_neon_vld2_4_regs): Likewise.
523 (cortex_a15_neon_vld3_vld4): Likewise.
524 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
525 (cortex_a15_neon_vst1_3_4_regs): Likewise.
526 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
527 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
528 (cortex_a15_neon_vst3_vst4): Rename to...
529 (cortex_a15_neon_vst4): This, update for new attributes.
530 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
531 (cortex_a15_neon_vld3_vld4_lane): Likewise.
532 (cortex_a15_neon_vst1_vst2_lane): Likewise.
533 (cortex_a15_neon_vst3_vst4_lane): Likewise.
534 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
535 (cortex_a15_neon_ldm_2): Likewise.
536 (cortex_a15_neon_stm_2): Likewise.
537 (cortex_a15_neon_mcr): Likewise.
538 (cortex_a15_neon_mcr_2_mcrr): Likewise.
539 (cortex_a15_neon_mrc): Likewise.
540 (cortex_a15_neon_mrrc): Likewise.
541
542 (cortex_a15_neon_abd): New.
543 (cortex_a15_neon_abd_q): Likewise.
544 (cortex_a15_neon_aba): Likewise.
545 (cortex_a15_neon_aba_q): Likewise.
546 (cortex_a15_neon_acc): Likewise.
547 (cortex_a15_neon_acc_q): Likewise.
548 (cortex_a15_neon_arith_basic): Likewise.
549 (cortex_a15_neon_arith_complex): Likewise.
550 (cortex_a15_neon_multiply): Likewise.
551 (cortex_a15_neon_multiply_q): Likewise.
552 (cortex_a15_neon_mla): Likewise.
553 (cortex_a15_neon_mla_q): Likewise.
554 (cortex_a15_neon_sat_mla_long): Likewise.
555 (cortex_a15_neon_shift_acc): Likewise.
556 (cortex_a15_neon_shift_imm_basic): Likewise.
557 (cortex_a15_neon_shift_imm_complex): Likewise.
558 (cortex_a15_neon_shift_reg_basic): Likewise.
559 (cortex_a15_neon_shift_reg_basic_q): Likewise.
560 (cortex_a15_neon_shift_reg_complex): Likewise.
561 (cortex_a15_neon_shift_reg_complex_q): Likewise.
562 (cortex_a15_neon_fp_negabs): Likewise
563 (cortex_a15_neon_fp_arith): Likewise
564 (cortex_a15_neon_fp_arith_q): Likewise
565 (cortex_a15_neon_fp_cvt_int): Likewise
566 (cortex_a15_neon_fp_cvt_int_q): Likewise
567 (cortex_a15_neon_fp_cvt_16): Likewise
568 (cortex_a15_neon_fp_mul): Likewise
569 (cortex_a15_neon_fp_mul_q): Likewise
570 (cortex_a15_neon_fp_mla): Likewise
571 (cortex_a15_neon_fp_mla_q): Likewise
572 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
573 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
574 (cortex_a15_neon_bitops): Likewise.
575 (cortex_a15_neon_bitops_q): Likewise.
576 (cortex_a15_neon_from_gp): Likewise.
577 (cortex_a15_neon_from_gp_q): Likewise.
578 (cortex_a15_neon_tbl3_tbl4): Likewise.
579 (cortex_a15_neon_zip_q): Likewise.
580 (cortex_a15_neon_to_gp): Likewise.
581 (cortex_a15_neon_load_a): Likewise.
582 (cortex_a15_neon_load_b): Likewise.
583 (cortex_a15_neon_load_c): Likewise.
584 (cortex_a15_neon_load_d): Likewise.
585 (cortex_a15_neon_load_e): Likewise.
586 (cortex_a15_neon_load_f): Likewise.
587 (cortex_a15_neon_store_a): Likewise.
588 (cortex_a15_neon_store_b): Likewise.
589 (cortex_a15_neon_store_c): Likewise.
590 (cortex_a15_neon_store_d): Likewise.
591 (cortex_a15_neon_store_e): Likewise.
592 (cortex_a15_neon_store_f): Likewise.
593 (cortex_a15_neon_store_g): Likewise.
594 (cortex_a15_neon_store_h): Likewise.
595 (cortex_a15_vfp_to_from_gp): Likewise.
596
bc5e57e3
JG
5972013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
598
599 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
600
601 (cortex_a9_neon_vshl_ddd): Remove.
602 (cortex_a9_neon_vst3_vst4): Likewise.
603 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
604
605 (cortex_a9_neon_bit_ops_q): New.
606
607 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
608 (cortex_a9_neon_int_2): Likewise.
609 (cortex_a9_neon_int_3): Likewise.
610 (cortex_a9_neon_int_4): Likewise.
611 (cortex_a9_neon_int_5): Likewise.
612 (cortex_a9_neon_vqneg_vqabs): Likewise.
613 (cortex_a9_neon_vmov): Likewise.
614 (cortex_a9_neon_vaba): Likewise.
615 (cortex_a9_neon_vaba_qqq): Likewise.
616 (cortex_a9_neon_shift_1): Likewise.
617 (cortex_a9_neon_shift_2): Likewise.
618 (cortex_a9_neon_shift_3): Likewise.
619 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
620 (cortex_a9_neon_vsra_vrsra): Likewise.
621 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
622 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
623 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
624 Likewise.
625 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
626 (cortex_a9_neon_mla_qqq_8_16): Likewise.
627 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
628 Likewise.
629 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
630 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
631 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
632 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
633 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
634 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
635 (cortex_a9_neon_fp_vsum): Likewise.
636 (cortex_a9_neon_fp_vmul_ddd): Likewise.
637 (cortex_a9_neon_fp_vmul_qqd): Likewise.
638 (cortex_a9_neon_fp_vmla_ddd): Likewise.
639 (cortex_a9_neon_fp_vmla_qqq): Likewise.
640 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
641 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
642 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
643 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
644 (cortex_a9_neon_bp_simple): Likewise.
645 (cortex_a9_neon_bp_2cycle): Likewise.
646 (cortex_a9_neon_bp_3cycle): Likewise.
647 (cortex_a9_neon_ldr): Likewise.
648 (cortex_a9_neon_str): Likewise.
649 (cortex_a9_neon_vld1_1_2_regs): Likewise.
650 (cortex_a9_neon_vld1_3_4_regs): Likewise.
651 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
652 (cortex_a9_neon_vld2_4_regs): Likewise.
653 (cortex_a9_neon_vld3_vld4): Likewise.
654 (cortex_a9_neon_vld1_vld2_lane): Likewise.
655 (cortex_a9_neon_vld3_vld4_lane): Likewise.
656 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
657 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
658 (cortex_a9_neon_vst1_3_4_regs): Likewise.
659 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
660 (cortex_a9_neon_vst1_vst2_lane): Likewise.
661 (cortex_a9_neon_vst3_vst4_lane): Likewise.
662 (cortex_a9_neon_mcr): Likewise.
663 (cortex_a9_neon_mcr_2_mcrr): Likewise.
664 (cortex_a9_neon_mrc): Likewise.
665 (cortex_a9_neon_mrrc): Likewise.
666
9deda8cb
JG
6672013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
668
669 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
670
671 (cortex_a8_neon_vshl_ddd): Remove.
672 (cortex_a8_neon_vst3_vst4): Likewise.
673 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
674
675 (cortex_a8_neon_bit_ops_q): New.
676
677 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
678 (cortex_a8_neon_int_2): Likewise..
679 (cortex_a8_neon_int_3): Likewise.
680 (cortex_a8_neon_int_5): Likewise.
681 (cortex_a8_neon_vqneg_vqabs): Likewise.
682 (cortex_a8_neon_int_4): Likewise.
683 (cortex_a8_neon_vaba): Likewise.
684 (cortex_a8_neon_vaba_qqq): Likewise.
685 (cortex_a8_neon_shift_1): Likewise.
686 (cortex_a8_neon_shift_2): Likewise.
687 (cortex_a8_neon_shift_3): Likewise.
688 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
689 (cortex_a8_neon_vsra_vrsra): Likewise.
690 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
691 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
692 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
693 Likewise.
694 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
695 (cortex_a8_neon_mla_qqq_8_16): Likewise.
696 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
697 Likewise.
698 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
699 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
700 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
701 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
702 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
703 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
704 (cortex_a8_neon_fp_vsum): Likewise.
705 (cortex_a8_neon_fp_vmul_ddd): Likewise.
706 (cortex_a8_neon_fp_vmul_qqd): Likewise.
707 (cortex_a8_neon_fp_vmla_ddd): Likewise.
708 (cortex_a8_neon_fp_vmla_qqq): Likewise.
709 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
710 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
711 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
712 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
713 (cortex_a8_neon_bp_simple): Likewise.
714 (cortex_a8_neon_bp_2cycle): Likewise.
715 (cortex_a8_neon_bp_3cycle): Likewise.
716 (cortex_a8_neon_ldr): Likewise.
717 (cortex_a8_neon_str): Likewise.
718 (cortex_a8_neon_vld1_1_2_regs): Likewise.
719 (cortex_a8_neon_vld1_3_4_regs): Likewise.
720 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
721 (cortex_a8_neon_vld2_4_regs): Likewise.
722 (cortex_a8_neon_vld3_vld4): Likewise.
723 (cortex_a8_neon_vld1_vld2_lane): Likewise.
724 (cortex_a8_neon_vld3_vld4_lane): Likewise.
725 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
726 (cortex_a8_neon_vst1_3_4_regs): Likewise.
727 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
728 (cortex_a8_neon_vst1_vst2_lane): Likewise.
729 (cortex_a8_neon_vst3_vst4_lane): Likewise.
730 (cortex_a8_neon_mcr): Likewise.
731 (cortex_a8_neon_mcr_2_mcrr): Likewise.
732 (cortex_a8_neon_mrc): Likewise.
733 (cortex_a8_neon_mrrc): Likewise.
734
0f686aa9
JG
7352013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
736
737 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
738 (fp): New.
739 * config/aarch64/aarch64-simd.md (neon_type): Remove.
740 (aarch64_simd_dup<mode>): Add "type" attribute.
741 (aarch64_dup_lane<mode>): Likewise.
742 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
743 (*aarch64_simd_mov<mode>): Likewise.
744 (aarch64_simd_mov_from_<mode>low): Likewise.
745 (aarch64_simd_mov_from_<mode>high): Likewise.
746 (orn<mode>3): Likewise.
747 (bic<mode>3): Likewise.
748 (add<mode>3): Likewise.
749 (sub<mode>3): Likewise.
750 (mul<mode>3): Likewise.
751 (*aarch64_mul3_elt<mode>): Likewise.
752 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
753 (*aarch64_mul3_elt_to_128df): Likewise.
754 (*aarch64_mul3_elt_to_64v2df): Likewise.
755 (neg<mode>2): Likewise.
756 (abs<mode>2): Likewise.
757 (abd<mode>_3): Likewise.
758 (aba<mode>_3): Likewise.
759 (fabd<mode>_3): Likewise.
760 (*fabd_scalar<mode>3): Likewise.
761 (and<mode>3): Likewise.
762 (ior<mode>3): Likewise.
763 (xor<mode>3): Likewise.
764 (one_cmpl<mode>2): Likewise.
765 (aarch64_simd_vec_set<mode>): Likewise.
766 (aarch64_simd_lshr<mode>): Likewise.
767 (aarch64_simd_ashr<mode>): Likewise.
768 (aarch64_simd_imm_shl<mode>): Likewise.
769 (aarch64_simd_reg_sshl<mode): Likewise.
770 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
771 (aarch64_simd_reg_shl<mode>_signed): Likewise.
772 (aarch64_simd_vec_setv2di): Likewise.
773 (aarch64_simd_vec_set<mode>): Likewise.
774 (aarch64_mla<mode>): Likewise.
775 (*aarch64_mla_elt<mode>): Likewise.
776 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
777 (aarch64_mls<mode>): Likewise.
778 (*aarch64_mls_elt<mode>): Likewise.
779 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
780 (<su><maxmin><mode>3): Likewise.
781 (move_lo_quad_<mode>): Likewise.
782 (aarch64_simd_move_hi_quad_<mode>): Likewise.
783 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
784 (vec_pack_trunc_<mode>): Likewise.
785 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
786 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
787 (*aarch64_<su>mlal_lo<mode>): Likewise.
788 (*aarch64_<su>mlal_hi<mode>): Likewise.
789 (*aarch64_<su>mlsl_lo<mode>): Likewise.
790 (*aarch64_<su>mlsl_hi<mode>): Likewise.
791 (*aarch64_<su>mlal<mode>): Likewise.
792 (*aarch64_<su>mlsl<mode>): Likewise.
793 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
794 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
795 (add<mode>3): Likewise.
796 (sub<mode>3): Likewise.
797 (mul<mode>3): Likewise.
798 (div<mode>3): Likewise.
799 (neg<mode>2): Likewise.
800 (abs<mode>2): Likewise.
801 (fma<mode>4): Likewise.
802 (*aarch64_fma4_elt<mode>): Likewise.
803 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
804 (*aarch64_fma4_elt_to_128df): Likewise.
805 (*aarch64_fma4_elt_to_64v2df): Likewise.
806 (fnma<mode>4): Likewise.
807 (*aarch64_fnma4_elt<mode>): Likewise.
808 (*aarch64_fnma4_elt_<vswap_width_name><mode>
809 (*aarch64_fnma4_elt_to_128df): Likewise.
810 (*aarch64_fnma4_elt_to_64v2df): Likewise.
811 (<frint_pattern><mode>2): Likewise.
812 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
813 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
814 (vec_unpacks_lo_v4sf): Likewise.
815 (aarch64_float_extend_lo_v2df): Likewise.
816 (vec_unpacks_hi_v4sf): Likewise.
817 (aarch64_float_truncate_lo_v2sf): Likewise.
818 (aarch64_float_truncate_hi_v4sf): Likewise.
819 (aarch64_vmls<mode>): Likewise.
820 (<su><maxmin><mode>3): Likewise.
821 (<maxmin_uns><mode>3): Likewise.
822 (reduc_<sur>plus_<mode>): Likewise.
823 (reduc_<sur>plus_v2di): Likewise.
824 (reduc_<sur>plus_v2si): Likewise.
825 (reduc_<sur>plus_<mode>): Likewise.
826 (aarch64_addpv4sf): Likewise.
827 (clz<mode>2): Likewise.
828 (reduc_<maxmin_uns>_<mode>): Likewise.
829 (reduc_<maxmin_uns>_v2di): Likewise.
830 (reduc_<maxmin_uns>_v2si): Likewise.
831 (reduc_<maxmin_uns>_<mode>): Likewise.
832 (reduc_<maxmin_uns>_v4sf): Likewise.
833 (aarch64_simd_bsl<mode>_internal): Likewise.
834 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
835 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
836 (aarch64_get_lane<mode>): Likewise.
837 (*aarch64_combinez<mode>): Likewise.
838 (aarch64_combine<mode>): Likewise.
839 (aarch64_simd_combine<mode>): Likewise.
840 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
841 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
842 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
843 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
844 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
845 (aarch64_<sur>h<addsub><mode>): Likewise.
846 (aarch64_<sur><addsub>hn<mode>): Likewise.
847 (aarch64_<sur><addsub>hn2<mode>): Likewise.
848 (aarch64_pmul<mode>): Likewise.
849 (aarch64_<su_optab><optab><mode>): Likewise.
850 (aarch64_<sur>qadd<mode>): Likewise.
851 (aarch64_sqmovun<mode>): Likewise.
852 (aarch64_<sur>qmovn<mode>): Likewise.
853 (aarch64_s<optab><mode>): Likewise.
854 (aarch64_sq<r>dmulh<mode>): Likewise.
855 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
856 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
857 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
858 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
859 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
860 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
861 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
862 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
863 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
864 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
865 (aarch64_sqdmull<mode>): Likewise.
866 (aarch64_sqdmull_lane<mode>_internal): Likewise.
867 (aarch64_sqdmull_n<mode>): Likewise.
868 (aarch64_sqdmull2<mode>_internal): Likewise.
869 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
870 (aarch64_sqdmull2_n<mode>_internal): Likewise.
871 (aarch64_<sur>shl<mode>): Likewise.
872 (aarch64_<sur>q<r>shl<mode>
873 (aarch64_<sur>shll_n<mode>): Likewise.
874 (aarch64_<sur>shll2_n<mode>): Likewise.
875 (aarch64_<sur>shr_n<mode>): Likewise.
876 (aarch64_<sur>sra_n<mode>): Likewise.
877 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
878 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
879 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
880 (aarch64_cm<optab><mode>): Likewise.
881 (aarch64_cm<optab>di): Likewise.
882 (aarch64_cm<optab><mode>): Likewise.
883 (aarch64_cm<optab>di): Likewise.
884 (aarch64_cmtst<mode>): Likewise.
885 (aarch64_cmtstdi): Likewise.
886 (aarch64_cm<optab><mode>): Likewise.
887 (*aarch64_fac<optab><mode>): Likewise.
888 (aarch64_addp<mode>): Likewise.
889 (aarch64_addpdi): Likewise.
890 (sqrt<mode>2): Likewise.
891 (vec_load_lanesoi<mode>): Likewise.
892 (vec_store_lanesoi<mode>): Likewise.
893 (vec_load_lanesci<mode>): Likewise.
894 (vec_store_lanesci<mode>): Likewise.
895 (vec_load_lanesxi<mode>): Likewise.
896 (vec_store_lanesxi<mode>): Likewise.
897 (*aarch64_mov<mode>): Likewise.
898 (aarch64_ld2<mode>_dreg): Likewise.
899 (aarch64_ld2<mode>_dreg): Likewise.
900 (aarch64_ld3<mode>_dreg): Likewise.
901 (aarch64_ld3<mode>_dreg): Likewise.
902 (aarch64_ld4<mode>_dreg): Likewise.
903 (aarch64_ld4<mode>_dreg): Likewise.
904 (aarch64_tbl1<mode>): Likewise.
905 (aarch64_tbl2v16qi): Likewise.
906 (aarch64_combinev16qi): Likewise.
907 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
908 (aarch64_st2<mode>_dreg): Likewise.
909 (aarch64_st2<mode>_dreg): Likewise.
910 (aarch64_st3<mode>_dreg): Likewise.
911 (aarch64_st3<mode>_dreg): Likewise.
912 (aarch64_st4<mode>_dreg): Likewise.
913 (aarch64_st4<mode>_dreg): Likewise.
914 (*aarch64_simd_ld1r<mode>): Likewise.
915 (aarch64_frecpe<mode>): Likewise.
916 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
917 (aarch64_frecps<mode>): Likewise.
918
f7379e5e
JG
9192013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
920
921 * config/arm/iterators.md (V_elem_ch): New.
922 (q): Likewise.
923 (VQH_type): Likewise.
924 * config/arm/arm.md (is_neon_type): New.
925 (conds): Use is_neon_type.
926 (anddi3_insn): Update type attribute.
927 (xordi3_insn): Likewise.
928 (one_cmpldi2): Likewise.
929 * gcc/config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
930 * gcc/config/arm/neon.md (neon_mov): Update type attribute.
931 (*movmisalign<mode>_neon_store): Likewise.
932 (*movmisalign<mode>_neon_load): Likewise.
933 (vec_set<mode>_internal): Likewise.
934 (vec_set<mode>_internal): Likewise.
935 (vec_setv2di_internal): Likewise.
936 (vec_extract<mode>): Likewise.
937 (vec_extract<mode>): Likewise.
938 (vec_extractv2di): Likewise.
939 (*add<mode>3_neon): Likewise.
940 (adddi3_neon): Likewise.
941 (*sub<mode>3_neon): Likewise.
942 (subdi3_neon): Likewise.
943 (fma<VCVTF:mode>4): Likewise.
944 (fma<VCVTF:mode>4_intrinsic): Likewise.
945 (*fmsub<VCVTF:mode>4): Likewise.
946 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
947 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
948 (ior<mode>3): Likewise.
949 (and<mode>3): Likewise.
950 (orn<mode>3_neon): Likewise.
951 (orndi3_neon): Likewise.
952 (bic<mode>3_neon): Likewise.
953 (bicdi3_neon): Likewise.
954 (xor<mode>3): Likewise.
955 (one_cmpl<mode>2): Likewise.
956 (abs<mode>2): Likewise.
957 (neg<mode>2): Likewise.
958 (negdi2_neon): Likewise.
959 (*umin<mode>3_neon): Likewise.
960 (*umax<mode>3_neon): Likewise.
961 (*smin<mode>3_neon): Likewise.
962 (*smax<mode>3_neon): Likewise.
963 (vashl<mode>3): Likewise.
964 (vashr<mode>3_imm): Likewise.
965 (vlshr<mode>3_imm): Likewise.
966 (ashl<mode>3_signed): Likewise.
967 (ashl<mode>3_unsigned): Likewise.
968 (neon_load_count): Likewise.
969 (ashldi3_neon_noclobber): Likewise.
970 (ashldi3_neon): Likewise.
971 (signed_shift_di3_neon): Likewise.
972 (unsigned_shift_di3_neon): Likewise.
973 (ashrdi3_neon_imm_noclobber): Likewise.
974 (lshrdi3_neon_imm_noclobber): Likewise.
975 (<shift>di3_neon): Likewise.
976 (widen_ssum<mode>3): Likewise.
977 (widen_usum<mode>3): Likewise.
978 (quad_halves_<code>v4si): Likewise.
979 (quad_halves_<code>v4sf): Likewise.
980 (quad_halves_<code>v8hi): Likewise.
981 (quad_halves_<code>v16qi): Likewise.
982 (reduc_splus_v2di): Likewise.
983 (neon_vpadd_internal<mode>): Likewise.
984 (neon_vpsmin<mode>): Likewise.
985 (neon_vpsmax<mode>): Likewise.
986 (neon_vpumin<mode>): Likewise.
987 (neon_vpumax<mode>): Likewise.
988 (*ss_add<mode>_neon): Likewise.
989 (*us_add<mode>_neon): Likewise.
990 (*ss_sub<mode>_neon): Likewise.
991 (*us_sub<mode>_neon): Likewise.
992 (neon_vadd<mode>_unspec): Likewise.
993 (neon_vaddl<mode>): Likewise.
994 (neon_vaddw<mode>): Likewise.
995 (neon_vhadd<mode>): Likewise.
996 (neon_vqadd<mode>): Likewise.
997 (neon_vaddhn<mode>): Likewise.
998 (neon_vmul<mode>): Likewise.
999 (neon_vfms<VCVTF:mode>): Likewise.
1000 (neon_vmlal<mode>): Likewise.
1001 (neon_vmls<mode>): Likewise.
1002 (neon_vmlsl<mode>): Likewise.
1003 (neon_vqdmulh<mode>): Likewise.
1004 (neon_vqdmlal<mode>): Likewise.
1005 (neon_vqdmlsl<mode>): Likewise.
1006 (neon_vmull<mode>): Likewise.
1007 (neon_vqdmull<mode>): Likewise.
1008 (neon_vsub<mode>_unspec): Likewise.
1009 (neon_vsubl<mode>): Likewise.
1010 (neon_vsubw<mode>): Likewise.
1011 (neon_vqsub<mode>): Likewise.
1012 (neon_vhsub<mode>): Likewise.
1013 (neon_vsubhn<mode>): Likewise.
1014 (neon_vceq<mode>): Likewise.
1015 (neon_vcge<mode>): Likewise.
1016 (neon_vcgeu<mode>): Likewise.
1017 (neon_vcgt<mode>): Likewise.
1018 (neon_vcgtu<mode>): Likewise.
1019 (neon_vcle<mode>): Likewise.
1020 (neon_vclt<mode>): Likewise.
1021 (neon_vcage<mode>): Likewise.
1022 (neon_vcagt<mode>): Likewise.
1023 (neon_vtst<mode>): Likewise.
1024 (neon_vabd<mode>): Likewise.
1025 (neon_vabdl<mode>): Likewise.
1026 (neon_vaba<mode>): Likewise.
1027 (neon_vabal<mode>): Likewise.
1028 (neon_vmax<mode>): Likewise.
1029 (neon_vmin<mode>): Likewise.
1030 (neon_vpaddl<mode>): Likewise.
1031 (neon_vpadal<mode>): Likewise.
1032 (neon_vpmax<mode>): Likewise.
1033 (neon_vpmin<mode>): Likewise.
1034 (neon_vrecps<mode>): Likewise.
1035 (neon_vrsqrts<mode>): Likewise.
1036 (neon_vqabs<mode>): Likewise.
1037 (neon_vqneg<mode>): Likewise.
1038 (neon_vcls<mode>): Likewise.
1039 (clz<mode>2): Likewise.
1040 (popcount<mode>2): Likewise.
1041 (neon_vrecpe<mode>): Likewise.
1042 (neon_vrsqrte<mode>): Likewise.
1043 (neon_vget_lane<mode>_sext_internal): Likewise.
1044 (neon_vget_lane<mode>_zext_internal): Likewise.
1045 (neon_vdup_n<mode>): Likewise.
1046 (neon_vdup_n<mode>): Likewise.
1047 (neon_vdup_nv2di): Likewise.
1048 (neon_vdup_lane<mode>_interal): Likewise.
1049 (*neon_vswp<mode>): Likewise.
1050 (neon_vcombine<mode>): Likewise.
1051 (float<mode><V_cvtto>2): Likewise.
1052 (floatuns<mode><V_cvtto>2): Likewise.
1053 (fix_trunc<mode><V_cvtto>2): Likewise.
1054 (fixuns_trunc<mode><V_cvtto>2
1055 (neon_vcvt<mode>): Likewise.
1056 (neon_vcvt<mode>): Likewise.
1057 (neon_vcvtv4sfv4hf): Likewise.
1058 (neon_vcvtv4hfv4sf): Likewise.
1059 (neon_vcvt_n<mode>): Likewise.
1060 (neon_vcvt_n<mode>): Likewise.
1061 (neon_vmovn<mode>): Likewise.
1062 (neon_vqmovn<mode>): Likewise.
1063 (neon_vqmovun<mode>): Likewise.
1064 (neon_vmovl<mode>): Likewise.
1065 (neon_vmul_lane<mode>): Likewise.
1066 (neon_vmul_lane<mode>): Likewise.
1067 (neon_vmull_lane<mode>): Likewise.
1068 (neon_vqdmull_lane<mode>): Likewise.
1069 (neon_vqdmulh_lane<mode>): Likewise.
1070 (neon_vqdmulh_lane<mode>): Likewise.
1071 (neon_vmla_lane<mode>): Likewise.
1072 (neon_vmla_lane<mode>): Likewise.
1073 (neon_vmlal_lane<mode>): Likewise.
1074 (neon_vqdmlal_lane<mode>): Likewise.
1075 (neon_vmls_lane<mode>): Likewise.
1076 (neon_vmls_lane<mode>): Likewise.
1077 (neon_vmlsl_lane<mode>): Likewise.
1078 (neon_vqdmlsl_lane<mode>): Likewise.
1079 (neon_vext<mode>): Likewise.
1080 (neon_vrev64<mode>): Likewise.
1081 (neon_vrev32<mode>): Likewise.
1082 (neon_vrev16<mode>): Likewise.
1083 (neon_vbsl<mode>_internal): Likewise.
1084 (neon_vshl<mode>): Likewise.
1085 (neon_vqshl<mode>): Likewise.
1086 (neon_vshr_n<mode>): Likewise.
1087 (neon_vshrn_n<mode>): Likewise.
1088 (neon_vqshrn_n<mode>): Likewise.
1089 (neon_vqshrun_n<mode>): Likewise.
1090 (neon_vshl_n<mode>): Likewise.
1091 (neon_vqshl_n<mode>): Likewise.
1092 (neon_vqshlu_n<mode>): Likewise.
1093 (neon_vshll_n<mode>): Likewise.
1094 (neon_vsra_n<mode>): Likewise.
1095 (neon_vsri_n<mode>): Likewise.
1096 (neon_vsli_n<mode>): Likewise.
1097 (neon_vtbl1v8qi): Likewise.
1098 (neon_vtbl2v8qi): Likewise.
1099 (neon_vtbl3v8qi): Likewise.
1100 (neon_vtbl4v8qi): Likewise.
1101 (neon_vtbl1v16qi): Likewise.
1102 (neon_vtbl2v16qi): Likewise.
1103 (neon_vcombinev16qi): Likewise.
1104 (neon_vtbx1v8qi): Likewise.
1105 (neon_vtbx2v8qi): Likewise.
1106 (neon_vtbx3v8qi): Likewise.
1107 (neon_vtbx4v8qi): Likewise.
1108 (*neon_vtrn<mode>_insn): Likewise.
1109 (*neon_vzip<mode>_insn): Likewise.
1110 (*neon_vuzp<mode>_insn): Likewise.
1111 (neon_vld1<mode>): Likewise.
1112 (neon_vld1_lane<mode>): Likewise.
1113 (neon_vld1_lane<mode>): Likewise.
1114 (neon_vld1_dup<mode>): Likewise.
1115 (neon_vld1_dup<mode>): Likewise.
1116 (neon_vld1_dupv2di): Likewise.
1117 (neon_vst1<mode>): Likewise.
1118 (neon_vst1_lane<mode>): Likewise.
1119 (neon_vst1_lane<mode>): Likewise.
1120 (neon_vld2<mode>): Likewise.
1121 (neon_vld2<mode>): Likewise.
1122 (neon_vld2_lane<mode>): Likewise.
1123 (neon_vld2_lane<mode>): Likewise.
1124 (neon_vld2_dup<mode>): Likewise.
1125 (neon_vst2<mode>): Likewise.
1126 (neon_vst2<mode>): Likewise.
1127 (neon_vst2_lane<mode>): Likewise.
1128 (neon_vst2_lane<mode>): Likewise.
1129 (neon_vld3<mode>): Likewise.
1130 (neon_vld3qa<mode>): Likewise.
1131 (neon_vld3qb<mode>): Likewise.
1132 (neon_vld3_lane<mode>): Likewise.
1133 (neon_vld3_lane<mode>): Likewise.
1134 (neon_vld3_dup<mode>): Likewise.
1135 (neon_vst3<mode>): Likewise.
1136 (neon_vst3qa<mode>): Likewise.
1137 (neon_vst3qb<mode>): Likewise.
1138 (neon_vst3_lane<mode>): Likewise.
1139 (neon_vst3_lane<mode>): Likewise.
1140 (neon_vld4<mode>): Likewise.
1141 (neon_vld4qa<mode>): Likewise.
1142 (neon_vld4qb<mode>): Likewise.
1143 (neon_vld4_lane<mode>): Likewise.
1144 (neon_vld4_lane<mode>): Likewise.
1145 (neon_vld4_dup<mode>): Likewise.
1146 (neon_vst4<mode>): Likewise.
1147 (neon_vst4qa<mode>): Likewise.
1148 (neon_vst4qb<mode>): Likewise.
1149 (neon_vst4_lane<mode>): Likewise.
1150 (neon_vst4_lane<mode>): Likewise.
1151 (neon_vec_unpack<US>_lo_<mode>): Likewise.
1152 (neon_vec_unpack<US>_hi_<mode>): Likewise.
1153 (neon_vec_<US>mult_lo_<mode>): Likewise.
1154 (neon_vec_<US>mult_hi_<mode>): Likewise.
1155 (neon_vec_<US>shiftl_<mode>): Likewise.
1156 (neon_unpack<US>_<mode>): Likewise.
1157 (neon_vec_<US>mult_<mode>): Likewise.
1158 (vec_pack_trunc_<mode>): Likewise.
1159 (neon_vec_pack_trunc_<mode>): Likewise.
1160 (neon_vabd<mode>_2): Likewise.
1161 (neon_vabd<mode>_3): Likewise.
1162
a9e66678
JG
11632013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
1164
1165 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
1166 (load_pair): Update type attribute.
1167 (store_pair): Update type attribute.
1168 * config/aarch64/iterators.md (q): New.
1169
20445ed6
JG
11702013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
1171
1172 * config/arm/types.md: Add new types for Neon insns.
1173
afb4ac68
AI
11742013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1175 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1176 Sergey Lega <sergey.s.lega@intel.com>
1177 Anna Tikhonova <anna.tikhonova@intel.com>
1178 Ilya Tocar <ilya.tocar@intel.com>
1179 Andrey Turetskiy <andrey.turetskiy@intel.com>
1180 Ilya Verbin <ilya.verbin@intel.com>
1181 Kirill Yukhin <kirill.yukhin@intel.com>
1182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1183
1184 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
1185 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
1186 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
1187 (rcp14<mode>): New.
1188 (srcp14<mode>): Ditto.
1189 (rsqrt14<mode>): Ditto.
1190 (rsqrt14<mode>): Ditto.
1191 (avx512f_vmscalef<mode>): Ditto.
1192 (avx512f_scalef<mode>): Ditto.
1193 (avx512f_getexp<mode>): Ditto.
1194 (avx512f_sgetexp<mode>): Ditto.
1195 (avx512f_fixupimm<mode>): Ditto.
1196 (avx512f_sfixupimm<mode>): Ditto.
1197 (avx512f_rndscale<mode>): Ditto.
1198 (*avx512er_exp2<mode>): Ditto.
1199 (*avx512er_rcp28<mode>): Ditto.
1200 (avx512er_rsqrt28<mode>): Ditto.
1201 (avx512f_getmant<mode>): Ditto.
1202 (avx512f_getmant<mode>): Ditto.
1203 (avx512f_rndscale<mode>): Fix formatting.
1204
a1b499a3
JL
12052013-10-15 Martin Jambor <mjambor@suse.cz>
1206
1207 * ipa-utils.h (ipa_edge_within_scc): Declare.
1208 * ipa-cp.c (edge_within_scc): Moved...
1209 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
afb4ac68 1210
2e2206fa
AI
12112013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1213 Sergey Lega <sergey.s.lega@intel.com>
1214 Anna Tikhonova <anna.tikhonova@intel.com>
1215 Ilya Tocar <ilya.tocar@intel.com>
1216 Andrey Turetskiy <andrey.turetskiy@intel.com>
1217 Ilya Verbin <ilya.verbin@intel.com>
1218 Kirill Yukhin <kirill.yukhin@intel.com>
1219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1220
1221 * config/i386/predicates.md (const_8_to_15_operand): New.
1222 (const_16_to_31_operand): Ditto.
1223 * config/i386/sse.md (V8FI): New.
1224 (V16FI): Ditto.
1225 (reduc_splus_v8df): Ditto.
1226 (reduc_splus_v16sf): Ditto.
1227 (avx512f_vextract<shuffletype>32x4_1): Ditto.
1228 (vec_extract_hi_<mode>): Ditto.
1229 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
1230 (vec_set_lo_<mode>): Ditto.
1231 (vec_set_hi_<mode>): Ditto.
1232 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
1233 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
1234 (avx512f_pshufd_1): Ditto.
1235 (avx512f_broadcast<mode>): Ditto.
1236 (avx512f_broadcast<mode>): Ditto.
1237 (define_split): Split vec_extract_lo into move.
1238 (ssequartermode): Ditto.
1239 (ssedoublemode): Extened with wider modes.
1240 (vec_extract_lo_<mode>): Ditto.
1241
0fe65b75
AI
12422013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1243 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1244 Sergey Lega <sergey.s.lega@intel.com>
1245 Anna Tikhonova <anna.tikhonova@intel.com>
1246 Ilya Tocar <ilya.tocar@intel.com>
1247 Andrey Turetskiy <andrey.turetskiy@intel.com>
1248 Ilya Verbin <ilya.verbin@intel.com>
1249 Kirill Yukhin <kirill.yukhin@intel.com>
1250 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1251
1252 * config/i386/predicates.md (register_or_constm1_operand): New.
1253 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
1254 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
1255 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
1256 UNSPEC_SCATTER_PREFETCH
1257 (VI48_512): New.
1258 (avx512f_ucmp<mode>3): Ditto.
1259 (avx512f_vternlog<mode>): Ditto.
1260 (avx512f_align<mode>): Ditto.
1261 (<shift_insn><mode>3): Ditto.
1262 (avx512f_<rotate>v<mode>): Ditto.
1263 (avx512f_<rotate><mode>): Ditto.
1264 (avx512f_eq<mode>3): Ditto.
1265 (avx512f_eq<mode>3_1): Ditto.
1266 (avx512f_gt<mode>3): Ditto.
1267 (avx512f_testm<mode>3): Ditto.
1268 (avx512f_testnm<mode>3): Ditto.
1269 (avx512pf_gatherpf<mode>): Ditto.
1270 (*avx512pf_gatherpf<mode>_mask): Ditto.
1271 (*avx512pf_gatherpf<mode>): Ditto.
1272 (avx512pf_scatterpf<mode>): Ditto.
1273 (*avx512pf_scatterpf<mode>_mask): Ditto.
1274 (*avx512pf_scatterpf<mode>): Ditto.
1275 (avx512f_vec_dup_gpr<mode>): Ditto.
1276 (clz<mode>2): Ditto.
1277 (conflict<mode>): Ditto.
1278 (REDUC_SMINMAX_MODE): Extened with wider modes.
1279 (reduc_<code>_<mode>): Ditto.
1280 (vlshr<mode>3): Ditto.
1281 (vashl<mode>3): Ditto.
1282
ab931c71
AI
12832013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1284 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1285 Sergey Lega <sergey.s.lega@intel.com>
1286 Anna Tikhonova <anna.tikhonova@intel.com>
1287 Ilya Tocar <ilya.tocar@intel.com>
1288 Andrey Turetskiy <andrey.turetskiy@intel.com>
1289 Ilya Verbin <ilya.verbin@intel.com>
1290 Kirill Yukhin <kirill.yukhin@intel.com>
1291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1292
1293 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
1294 UNSPEC_SCATTER.
1295 (VI48F_512): New.
1296 (avx512fmaskmode): Ditto.
1297 (bcstscalarsuff): Ditto.
1298 (avx512f_blendm<mode>): Ditto.
1299 (cmp_imm_predicate): Ditto.
1300 (avx512f_cmp<mode>3): Ditto.
1301 (avx512f_vec_dup<mode>): Ditto.
1302 (avx512f_vec_dup_mem<mode>): Ditto.
1303 (avx512f_vpermi2var<mode>3): Ditto.
1304 (avx512f_vpermt2var<mode>3): Ditto.
1305 (vec_init<mode>): Ditto.
1306 (avx512f_gathersi<mode>): Ditto.
1307 (*avx512f_gathersi<mode>): Ditto.
1308 (*avx512f_gathersi<mode>_2): Ditto.
1309 (avx512f_gatherdi<mode>): Ditto.
1310 (*avx512f_gatherdi<mode>): Ditto.
1311 (*avx512f_gatherdi<mode>_2): Ditto.
1312 (avx512f_scattersi<mode>): Ditto.
1313 (*avx512f_scattersi<mode>): Ditto.
1314 (avx512f_scatterdi<mode>): Ditto.
1315 (*avx512f_scatterdi<mode>): Ditto.
1316 (sseintprefix): Extened with wider modes.
1317 (VEC_GATHER_IDXSI): Ditto.
1318 (VEC_GATHER_IDXDI): Ditto.
1319 (VEC_GATHER_SRCDI): Ditto.
1320
c9acb877
MGD
13212013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1322 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1323
1324 * config/arm/t-aprofile: New file.
1325 * config.gcc: Handle --with-multilib-list option.
1326
ecbda484
BS
13272013-10-15 Bernd Schmidt <bernds@codesourcery.com>
1328
6f1abb55
UB
1329 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
1330 the input for r2.
ecbda484 1331
24f161fd
RB
13322013-10-15 Richard Biener <rguenther@suse.de>
1333
1334 * tree-loop-distribution.c (build_empty_rdg): Inline into
1335 single user.
1336 (rdg_flag_vertex): Inline into single user.
1337 (rdg_flag_vertex_and_dependent): Likewise.
1338 (build_rdg_partition_for_vertex): Remove processed bitmap.
1339 (rdg_build_partitions): Simplify.
1340
5de989ed
RB
13412013-10-15 Richard Biener <rguenther@suse.de>
1342
1343 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1344 Restructure forwarding through conversions and copies to
1345 avoid performing copy-propagation the wrong way. Adjust
1346 recursion invocations.
1347 (forward_propagate_addr_expr): Add argument stating if we
1348 are recursing from a single-use.
1349 (ssa_forward_propagate_and_combine): Adjust.
1350
47e0da37
DM
13512013-10-14 David Malcolm <dmalcolm@redhat.com>
1352
1353 * dumpfile.h (gcc::dump_manager): New class, to hold state
1354 relating to dumpfile management.
1355 (get_dump_file_name): Remove in favor of method of dump_manager.
1356 (dump_initialized_p): Likewise.
1357 (dump_start): Likewise.
1358 (dump_finish): Likewise.
1359 (dump_switch_p): Likewise.
1360 (dump_register): Likewise.
1361 (get_dump_file_info): Likewise.
1362 * context.c (gcc::context::context): Construct the dump_manager
1363 instance.
1364 * context.h (gcc::context::get_dumps): New.
1365 (gcc::context::m_dumps): New.
1366 * coverage.c (coverage_init): Port to dump_manager API.
6f1abb55 1367 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
47e0da37
DM
1368 (extra_dump_files_in_use): Likewise.
1369 (extra_dump_files_alloced): Likewise.
1370 (gcc::dump_manager::dump_manager): New.
1371 (dump_register): Convert to...
1372 (gcc::dump_manager::dump_register): ...method, replacing
1373 function-static next_dump with m_next_dump field.
1374 (get_dump_file_info): Convert to...
1375 (gcc::dump_manager::get_dump_file_info): ...method.
1376 (get_dump_file_name): Convert to...
1377 (gcc::dump_manager::get_dump_file_name): ...method.
1378 (dump_start): Convert to...
1379 (gcc::dump_manager::dump_start): ...method.
1380 (dump_finish): Convert to...
1381 (gcc::dump_manager::dump_finish): ...method.
1382 (dump_begin): Replace body with...
1383 (gcc::dump_manager::dump_begin): ...new method.
1384 (dump_phase_enabled_p): Convert to...
1385 (gcc::dump_manager::dump_phase_enabled_p): ...method.
1386 (dump_phase_enabled_p): Convert to...
1387 (gcc::dump_manager::dump_phase_enabled_p): ...method.
1388 (dump_initialized_p): Convert to...
1389 (gcc::dump_manager::dump_initialized_p): ...method.
1390 (dump_flag_name): Replace body with...
1391 (gcc::dump_manager::dump_flag_name): ...new method.
1392 (dump_enable_all): Convert to...
1393 (gcc::dump_manager::dump_enable_all): ...new method.
1394 (opt_info_enable_passes): Convert to...
1395 (gcc::dump_manager::opt_info_enable_passes): ...new method.
1396 (dump_switch_p_1): Convert to...
1397 (gcc::dump_manager::dump_switch_p_1): ...new method.
1398 (dump_switch_p): Convert to...
1399 (gcc::dump_manager::dump_switch_p): ...new method.
1400 (opt_info_switch_p): Port to dump_manager API.
1401 (enable_rtl_dump_file): Likewise.
1402 * opts-global.c (handle_common_deferred_options): Port to new
1403 dump_manager API.
1404 * passes.c (pass_manager::finish_optimization_passes): Likewise.
1405 (pass_manager::register_one_dump_file): Likewise.
1406 (pass_manager::register_pass): Likewise.
1407 (pass_init_dump_file): Likewise.
1408 (pass_fini_dump_file): Likewise.
1409 * statistics.c (statistics_early_init): Likewise.
1410
83fd5d11
RB
14112013-10-14 Richard Biener <rguenther@suse.de>
1412
1413 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
1414 iterative_hash_canonical_type, gimple_canonical_type_hash,
1415 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
1416 gimple_register_canonical_type, print_gimple_types_stats,
1417 free_gimple_type_tables): Move to lto/lto.c
1418 (gt-gimple.h): Do not include.
1419 * gimple.h (gimple_register_canonical_type,
1420 print_gimple_types_stats, free_gimple_type_tables): Remove.
1421 * Makefile.in (GTFILES): Remove gimple.c.
1422
a6dbd0f7
TS
14232013-10-14 Travis Snoozy <quandary@remstate.com>
1424
1425 PR target/58716
1426 * config/msp430/msp430.c (msp430_option_override): Correct thinko
1427 scanning for msp430x targets.
1428
b5ccb9ed
EB
14292013-10-14 Eric Botcazou <ebotcazou@adacore.com>
1430
1431 PR bootstrap/58509
1432 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
1433 (registers_ok_for_ldd_peep): Move around.
1434 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
1435 * config/sparc/sparc.md (widening peepholes): Use it.
1436
fd7e5084
RB
14372013-10-14 Richard Biener <rguenther@suse.de>
1438
1439 PR middle-end/58712
1440 PR middle-end/55358
1441 * gimple.c (iterative_hash_canonical_type): Make sure to
1442 record the hash into the correct hashtable slot.
1443
3246afaa
EB
14442013-10-13 Eric Botcazou <ebotcazou@adacore.com>
1445
1446 PR rtl-optimization/58662
1447 * combine.c (try_combine): Take into account death nodes on I2 when
1448 splitting a PARALLEL of two independent SETs. Fix dump message.
1449
5d30dc5b
OE
14502013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1451
1452 PR target/51244
1453 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
1454 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
1455 * config/sh/t-sh (sh_treg_combine.o): New entry.
1456 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
1457 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
1458 (register_sh_passes): New function. Register sh_treg_combine pass.
1459 (sh_option_override): Invoke it.
1460 (sh_canonicalize_comparison): Handle op0_preserve_value.
1461 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
1462 opportunities. Canonicalize branch condition.
1463 (nott): Allow only if pseudos can be created for non-SH2A.
1464
37d1c5db
L
14652013-10-12 H.J. Lu <hongjiu.lu@intel.com>
1466
1467 PR target/58690
1468 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
1469 (ix86_expand_movmem): Replace copy_addr_to_reg with
1470 ix86_copy_addr_to_reg.
1471 (ix86_expand_setmem): Likewise.
1472
b86a70ff
AM
14732013-10-12 Alexander Monakov <amonakov@ispras.ru>
1474
1475 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
1476 provided by ix86_fp_compare_mode instead of CCFPUmode.
1477
6e1d5961
JG
14782013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1479
1480 * config/aarch64/arm_neon.h
1481 (vtbx<1,3>_<psu>8): Fix register constriants.
1482
ef3cfba2
JL
14832013-10-11 Jeff Law <law@redhat.com>
1484
1485 PR tree-optimization/58640
adcfd489
UB
1486 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
1487 threading paths that cross over two loop entry points.
ef3cfba2 1488
6e8b7d9c
BS
14892013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1490
1491 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
1492 handle vector float as well.
1493 (*vsx_le_perm_load_v4si): Likewise.
1494 (*vsx_le_perm_store_v2di): Likewise.
1495 (*vsx_le_perm_store_v4si): Likewise.
1496
f200869a
BS
14972013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1498
1499 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
1500 directly to circumvent subtract from splat{31} workaround.
1501 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
1502 prototype.
1503 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
1504 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
1505 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
1506 (altivec_vperm_<mode>): Convert to define_insn_and_split to
1507 separate big and little endian logic.
1508 (*altivec_vperm_<mode>_internal): New define_insn.
1509 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
1510 separate big and little endian logic.
1511 (*altivec_vperm_<mode>_uns_internal): New define_insn.
1512 (vec_permv16qi): Add little endian logic.
1513
8d28e3fc
MG
15142013-10-11 Marc Glisse <marc.glisse@inria.fr>
1515
1516 * doc/extend.texi (returns_nonnull): Remove arguments.
1517
3c87b77b
AI
15182013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1520 Sergey Lega <sergey.s.lega@intel.com>
1521 Anna Tikhonova <anna.tikhonova@intel.com>
1522 Ilya Tocar <ilya.tocar@intel.com>
1523 Andrey Turetskiy <andrey.turetskiy@intel.com>
1524 Ilya Verbin <ilya.verbin@intel.com>
1525 Kirill Yukhin <kirill.yukhin@intel.com>
1526 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1527
1528 * config/i386/sse.md (VI48F_256_512): New.
1529 (avx2_permvar<mode>): Change to ...
1530 (<avx2_avx512f>_permvar<mode>): This.
1531
50e60d7d
AI
15322013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1533 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1534 Sergey Lega <sergey.s.lega@intel.com>
1535 Anna Tikhonova <anna.tikhonova@intel.com>
1536 Ilya Tocar <ilya.tocar@intel.com>
1537 Andrey Turetskiy <andrey.turetskiy@intel.com>
1538 Ilya Verbin <ilya.verbin@intel.com>
1539 Kirill Yukhin <kirill.yukhin@intel.com>
1540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1541
6f1abb55 1542 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
50e60d7d
AI
1543 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
1544 * config/i386/sse.md (VI4_AVX): New.
1545 (sf2simodelower): Ditto.
1546 (sse2_cvtps2dq): Change to ...
1547 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
1548
f62ce24f
AI
15492013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1551 Sergey Lega <sergey.s.lega@intel.com>
1552 Anna Tikhonova <anna.tikhonova@intel.com>
1553 Ilya Tocar <ilya.tocar@intel.com>
1554 Andrey Turetskiy <andrey.turetskiy@intel.com>
1555 Ilya Verbin <ilya.verbin@intel.com>
1556 Kirill Yukhin <kirill.yukhin@intel.com>
1557 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1558
1559 * config/i386/sse.md (V_512): New.
1560 (VI_512): Ditto.
1561 (vcond<V_512:mode><VF_512:mode>): Ditto.
1562 (vcond<V_512:mode><VI_512:mode>): Ditto.
1563 (vcondu<V_512:mode><VI_512:mode>): Ditto.
1564
558d9f79
AI
15652013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1567 Sergey Lega <sergey.s.lega@intel.com>
1568 Anna Tikhonova <anna.tikhonova@intel.com>
1569 Ilya Tocar <ilya.tocar@intel.com>
1570 Andrey Turetskiy <andrey.turetskiy@intel.com>
1571 Ilya Verbin <ilya.verbin@intel.com>
1572 Kirill Yukhin <kirill.yukhin@intel.com>
1573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1574
1575 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
1576 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
1577 (FMAMODE): Ditto.
1578 (fma<mode>4): Removed condition.
1579 (fms<mode>4): Ditto.
1580 (fnma<mode>4): Ditto.
1581 (fnms<mode>4): Ditto.
1582 (fma4i_fmadd_<mode>): Ditto.
1583 (*fma_fmadd_<mode>): Ditto.
1584 (*fma_fmsub_<mode>): Ditto.
1585 (*fma_fnmadd_<mode>): Ditto.
1586 (*fma_fnmsub_<mode>): Ditto.
1587 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
1588 (*fma_fmaddsub_<mode>): Ditto.
1589 (*fma_fmsubadd_<mode>): Ditto.
1590 (*fmai_fmadd_<mode>): Ditto.
1591 (*fmai_fmsub_<mode>): Ditto.
1592 (*fmai_fnmadd_<mode>): Ditto.
1593 (*fmai_fnmsub_<mode>): Ditto.
1594
e8d08206
AI
15952013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1596 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1597 Sergey Lega <sergey.s.lega@intel.com>
1598 Anna Tikhonova <anna.tikhonova@intel.com>
1599 Ilya Tocar <ilya.tocar@intel.com>
1600 Andrey Turetskiy <andrey.turetskiy@intel.com>
1601 Ilya Verbin <ilya.verbin@intel.com>
1602 Kirill Yukhin <kirill.yukhin@intel.com>
1603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1604
1605 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
1606 (VI124_256): Changed to ...
1607 (VI124_256_48_512): This.
1608 (ssepackmode): Extended with wider modes.
1609 (<code><mode>3): Changed iterator.
1610 (*avx2_<code><mode>3): Ditto.
1611 (vec_pack_trunc_<mode>): Ditto.
1612
16821545
AI
16132013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1614 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1615 Sergey Lega <sergey.s.lega@intel.com>
1616 Anna Tikhonova <anna.tikhonova@intel.com>
1617 Ilya Tocar <ilya.tocar@intel.com>
1618 Andrey Turetskiy <andrey.turetskiy@intel.com>
1619 Ilya Verbin <ilya.verbin@intel.com>
1620 Kirill Yukhin <kirill.yukhin@intel.com>
1621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1622
1623 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
1624 (VI8F_256_512): Ditto.
1625 (abs<mode>2): Changed iterator.
1626 (avx2_perm<mode>): Changed to ...
1627 (<avx2_avx512f>_perm<mode>): This.
1628 (avx2_perm<mode>_1): Changed to ...
1629 (<avx2_avx512f>_perm<mode>_1): This.
1630
5348cff8
AI
16312013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1633 Sergey Lega <sergey.s.lega@intel.com>
1634 Anna Tikhonova <anna.tikhonova@intel.com>
1635 Ilya Tocar <ilya.tocar@intel.com>
1636 Andrey Turetskiy <andrey.turetskiy@intel.com>
1637 Ilya Verbin <ilya.verbin@intel.com>
1638 Kirill Yukhin <kirill.yukhin@intel.com>
1639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1640
1641 * config/i386/sse.md (VI48_AVX512F): New.
1642 (VI48_AVX2): Changed to ...
1643 (VI48_AVX2_48_AVX512F): This.
1644 (avx2_ashrv<mode>): Changed to ...
1645 (<avx2_avx512f>_ashrv<mode>): This.
1646 (avx2_<shift_insn>v<mode>): Changed to ...
1647 (<avx2_avx512f>_<shift_insn>v<mode>): This.
1648
f5f41d88
AI
16492013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1651 Sergey Lega <sergey.s.lega@intel.com>
1652 Anna Tikhonova <anna.tikhonova@intel.com>
1653 Ilya Tocar <ilya.tocar@intel.com>
1654 Andrey Turetskiy <andrey.turetskiy@intel.com>
1655 Ilya Verbin <ilya.verbin@intel.com>
1656 Kirill Yukhin <kirill.yukhin@intel.com>
1657 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1658
1659 * config/i386/sse.md (VI4_AVX512F): New.
1660 (VI8_AVX2_AVX512F): Ditto.
1661 (mul<mode>3): Extended with wider modes.
1662 (*<sse4_1_avx2>_mul<mode>3): Ditto.
1663 (mul<mode>3): Ditto.
1664 (vec_widen_<s>mult_odd_<mode>): Ditto.
1665
3bdf6340
AI
16662013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1667 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1668 Sergey Lega <sergey.s.lega@intel.com>
1669 Anna Tikhonova <anna.tikhonova@intel.com>
1670 Ilya Tocar <ilya.tocar@intel.com>
1671 Andrey Turetskiy <andrey.turetskiy@intel.com>
1672 Ilya Verbin <ilya.verbin@intel.com>
1673 Kirill Yukhin <kirill.yukhin@intel.com>
1674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1675
1676 * config/i386/sse.md (VI2_AVX512F): New.
1677 (VI124_AVX512F): Ditto.
1678 (sseunpackmode): Extended with wider modes.
1679 (sseunpackfltmode): Ditto.
1680 (vec_unpacks_float_hi_<mode>): Ditto.
1681 (vec_unpacks_float_lo_<mode>): Ditto.
1682 (vec_unpacku_float_hi_<mode>): Ditto.
1683 (vec_unpacku_float_lo_<mode>): Ditto.
1684 (vec_unpacks_lo_<mode>): Ditto.
1685 (vec_unpacks_hi_<mode>): Ditto.
1686 (vec_unpacku_lo_<mode>): Ditto.
1687 (vec_unpacku_hi_<mode>): Ditto.
1688
67f783cb
AI
16892013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1691 Sergey Lega <sergey.s.lega@intel.com>
1692 Anna Tikhonova <anna.tikhonova@intel.com>
1693 Ilya Tocar <ilya.tocar@intel.com>
1694 Andrey Turetskiy <andrey.turetskiy@intel.com>
1695 Ilya Verbin <ilya.verbin@intel.com>
1696 Kirill Yukhin <kirill.yukhin@intel.com>
1697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1698
1699 * config/i386/i386.md (multdiv): New.
1700 (multdiv_mnemonic): Ditto.
1701 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
1702 (<sse>_vm<multdiv_mnemonic><mode>3): This.
1703 (<sse>_vmdiv<mode>3): Removed.
1704
ec5e777c
AI
17052013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1706 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1707 Sergey Lega <sergey.s.lega@intel.com>
1708 Anna Tikhonova <anna.tikhonova@intel.com>
1709 Ilya Tocar <ilya.tocar@intel.com>
1710 Andrey Turetskiy <andrey.turetskiy@intel.com>
1711 Ilya Verbin <ilya.verbin@intel.com>
1712 Kirill Yukhin <kirill.yukhin@intel.com>
1713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1714
1715 * config/i386/sse.md (V): Extended with wider modes.
1716 (VF2): Ditto.
1717 (ssehalfvecmode): Ditto.
1718 (i128): Ditto.
1719 (ssepackfltmode): Ditto.
1720 (avx_vec_concat<mode>): Ditto.
1721 (V_256_512): New iterator.
1722 (VF2_512_256): Ditto.
1723 (si2dfmode): New attribute.
1724 (si2dfmodelower): Ditto.
1725 (sf2dfmode): Ditto.
1726 (concat_tg_mode): Ditto.
1727 (floatv4siv4df2): Changed to ...
1728 (float<si2dfmodelower><mode>2): This.
1729 (avx_cvtps2pd256): Changed to ...
1730 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
1731 (vec_pack_trunc_v4df): Changed to ...
1732 (vec_pack_trunc_<mode>): This.
1733 (avx_vpermil<mode>): Changed to ...
1734 (<sse2_avx_avx512f>_vpermil<mode>): This.
1735 (<fixsuffix>fix_truncv8dfv8si2): New.
1736 (vec_pack_sfix_trunc_v8df): Ditto.
1737 (avx512f_rndscale<mode>): Ditto.
1738 (avx512f_roundpd512): Ditto.
1739 (vec_pack_ufix_trunc_<mode>): Updated iterator.
1740
a9ccbba2
AI
17412013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1743 Sergey Lega <sergey.s.lega@intel.com>
1744 Anna Tikhonova <anna.tikhonova@intel.com>
1745 Ilya Tocar <ilya.tocar@intel.com>
1746 Andrey Turetskiy <andrey.turetskiy@intel.com>
1747 Ilya Verbin <ilya.verbin@intel.com>
1748 Kirill Yukhin <kirill.yukhin@intel.com>
1749 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1750
1751 * config/i386/i386.md (any_fix): New iterator.
1752 (fixsuffix): New attribute.
1753 * config/i386/sse.md (VF1): Extened with wider modes.
1754 (VI): Ditto.
1755 (VI_AVX2): Ditto.
1756 (VI8): Ditto.
1757 (sseintvecmodelower): Ditto.
1758 (ssescalarmode): Ditto.
1759 (ssescalarnum): Ditto.
1760 (VF1_128_256): New.
1761 (ssexmmmode): Ditto.
1762 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
1763 (<sse>_rcp<mode>2): Change iterator.
1764 (rsqrt<mode>2): Ditto.
1765 (<sse>_rsqrt<mode>2): Ditto.
1766 (avx2_vec_dup<mode>): Ditto.
1767 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
1768 (round<mode>2_sfix): Ditto.
1769 (avx2_pbroadcast<mode>): Ditto.
1770 (*andnot<mode>3): Handle XI mode.
1771 (*<code><mode>3): Ditto.
1772 (AVXTOSSEMODE): Removed.
1773 (avx_vpermil<mode>): Changed to ...
1774 (<sse2_avx_avx512f>_vpermil<mode>): This.
1775
2b1ebb0c
AI
17762013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1778 Sergey Lega <sergey.s.lega@intel.com>
1779 Anna Tikhonova <anna.tikhonova@intel.com>
1780 Ilya Tocar <ilya.tocar@intel.com>
1781 Andrey Turetskiy <andrey.turetskiy@intel.com>
1782 Ilya Verbin <ilya.verbin@intel.com>
1783 Kirill Yukhin <kirill.yukhin@intel.com>
1784 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1785
1786 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
1787 (<sse>_comi): Ditto.
1788 (<sse>_ucomi): Ditto.
1789 (sse_cvtss2siq_2): Ditto.
1790 (sse2_cvtsd2si): Ditto.
1791 (sse2_cvtsd2siq): Ditto.
1792 (sse2_cvttsd2si): Ditto.
1793 (sse2_cvttsd2siq): Ditto.
1794 (<shift_insn><mode>3): Ditto.
1795 (sse2_cvtsi2sdq): Update constraint and prefix.
1796 (sse_cvtsi2ss): Update prefix.
1797 (sse_cvtsi2ssq): Ditto.
1798
d89124ed
JJ
17992013-10-11 Jakub Jelinek <jakub@redhat.com>
1800
1801 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
1802 ignore internal calls.
1803
e6ad28c3
RB
18042013-10-11 Richard Biener <rguenther@suse.de>
1805
6f1abb55
UB
1806 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
1807 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
1808 TREE_OVERFLOW is set.
e6ad28c3 1809
d1227447
TS
18102013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1811
1ac4b8e4
TS
1812 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
1813
7d05cebb
TS
1814 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
1815 * gimple.h: Likewise.
1816
adcfd489 1817 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
6545f0b3 1818
1a79fb8a
TS
1819 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
1820 macros.
1821
3afd2873
TS
1822 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
1823
adcfd489 1824 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
d1227447
TS
1825 * configure: Regenerate.
1826
acf0174b
JJ
18272013-10-11 Jakub Jelinek <jakub@redhat.com>
1828
1829 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
1830 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
1831 formatting fixes, use pp_colon instead of pp_character (..., ':'),
1832 similarly pp_right_paren.
1833 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
1834 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
1835 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
1836 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
1837 clauses.
1838 (omp_declare_simd_clauses_equal,
1839 omp_remove_redundant_declare_simd_attrs): New functions.
1840 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
1841 (walk_tree_1): Handle new OpenMP 4.0 clauses.
1842 * tree.h (OMP_LOOP_CHECK): Define.
1843 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
1844 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
1845 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
1846 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
1847 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
1848 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
1849 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
1850 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
1851 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
1852 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
1853 OMP_CLAUSE_SIMDLEN_EXPR): Define.
1854 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
1855 (omp_remove_redundant_declare_simd_attrs): New prototype.
1856 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
1857 GIMPLE_OMP_TEAMS): New codes.
1858 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
1859 * omp-low.c (struct omp_context): Add cancel_label and cancellable
1860 fields.
1861 (target_nesting_level): New variable.
1862 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
1863 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
1864 for collapse > 1 static schedule unless ordered.
1865 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
1866 (determine_parallel_type): Adjust get_ws_args_for caller.
1867 (install_var_field): Handle mask & 4 for double indirection.
1868 (scan_sharing_clauses): Ignore shared clause on teams construct.
1869 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
1870 (create_omp_child_function): If inside target or declare target
adcfd489 1871 constructs, set "omp declare target" attribute on the child function.
acf0174b
JJ
1872 (find_combined_for): New function.
1873 (scan_omp_parallel): Handle combined loops.
1874 (scan_omp_target, scan_omp_teams): New functions.
1875 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
1876 restrictions and set ctx->cancellable for cancellable constructs.
1877 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
1878 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
1879 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
adcfd489 1880 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
acf0174b 1881 (omp_clause_aligned_alignment): New function.
6f1abb55 1882 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
acf0174b
JJ
1883 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
1884 on teams constructs. Handle user defined reductions and new
1885 OpenMP 4.0 clauses.
1886 (lower_reduction_clauses): Don't set placeholder to address of ref
1887 if it has already the right type.
1888 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
1889 (expand_parallel_call): Use the new non-_start suffixed builtins,
1890 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
1891 and GOMP_parallel_end after the call.
1892 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
1893 (expand_omp_for_init_counts): Handle combined loops.
1894 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
1895 loops.
1896 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
1897 end of cancellable loops.
1898 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1899 Likewise. Handle collapse > 1 loops.
1900 (expand_omp_simd): Handle combined loops.
1901 (expand_omp_for): Add inner_stmt argument, adjust callers of
1902 expand_omp_for* functions, use expand_omp_for_static*chunk even
1903 for collapse > 1 unless ordered.
1904 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
1905 of cancellable sections.
1906 (expand_omp_single): Remove need_barrier variable, just rely on
1907 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
1908 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
1909 (expand_omp_atomic_load, expand_omp_atomic_store,
1910 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
1911 (expand_omp_target): New function.
1912 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
1913 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
1914 (build_omp_regions_1): Immediately close region for
1915 GF_OMP_TARGET_KIND_UPDATE.
1916 (maybe_add_implicit_barrier_cancel): New function.
1917 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
1918 cancellation.
1919 (lower_omp_single): Likewise. Add clobber after the barrier.
1920 (lower_omp_taskgroup): New function.
1921 (lower_omp_for): Handle combined loops. Adjust
1922 lower_rec_input_clauses caller. Handle cancellation.
1923 (lower_depend_clauses): New function.
1924 (lower_omp_taskreg): Lower depend clauses. Adjust
1925 lower_rec_input_clauses caller. Add clobber after the call. Handle
1926 cancellation.
1927 (lower_omp_target, lower_omp_teams): New functions.
1928 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
1929 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
1930 and GOMP_cancellation_point calls.
1931 (lower_omp): Fold stmts inside of target region.
1932 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
1933 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
1934 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
1935 (BT_FN_VOID_OMPFN_PTR_UINT,
1936 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
1937 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
1938 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
1939 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
1940 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
1941 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
1942 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
1943 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1944 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1945 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
1946 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1947 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
1948 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
1949 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
1950 BUILT_IN_GOMP_PARALLEL_END.
1951 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
1952 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
1953 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
1954 GF_OMP_FOR_KIND_DISTRIBUTE.
1955 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
1956 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
1957 (dump_gimple_omp_return): Print lhs if it has any.
1958 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
1959 gimple_omp_atomic_seq_cst_p.
1960 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
1961 and GIMPLE_OMP_TEAMS.
1962 * langhooks.c (lhd_omp_mappable_type): New function.
1963 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
1964 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
1965 hook.
1966 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
1967 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
6f1abb55 1968 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
acf0174b
JJ
1969 (struct gimplify_omp_ctx): Add combined_loop field.
1970 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
1971 on stmts inside of target region.
1972 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
1973 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
1974 ORT_TARGET and ORT_TARGET_DATA.
1975 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
1976 Handle GOVD_MAP.
1977 (omp_notice_threadprivate_variable): Complain about threadprivate
1978 variables in target region.
1979 (omp_notice_variable): Complain about vars with non-mappable type
1980 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
1981 (omp_check_private): Ignore ORT_TARGET* regions.
1982 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
1983 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
1984 (find_combined_omp_for): New function.
1985 (gimplify_omp_for): Handle gimplification of combined loops.
1986 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
1987 OMP_TEAMS.
1988 (gimplify_omp_target_update): New function.
1989 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
1990 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
1991 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
1992 (gimplify_body): If fndecl has "omp declare target" attribute, add
1993 implicit ORT_TARGET context around it.
1994 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
1995 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
1996 * tree-nested.c (convert_nonlocal_reference_stmt,
1997 convert_local_reference_stmt, convert_gimple_call): Handle
1998 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
1999 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
2000 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
2001 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
2002 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
2003 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
2004 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
2005 BUILT_IN_GOMP_LOOP_END_CANCEL,
2006 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
2007 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
2008 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
2009 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
2010 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
2011 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
2012 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
2013 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
2014 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2015 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2016 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2017 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2018 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
2019 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
2020 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
2021 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2022 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
2023 gimple_build_omp_teams): New functions.
2024 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
2025 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
2026 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
2027 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2028 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
2029 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
2030 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
2031 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
2032 GF_OMP_ATOMIC_SEQ_CST): New.
2033 (gimple_build_omp_taskgroup, gimple_build_omp_target,
2034 gimple_build_omp_teams): New prototypes.
2035 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
2036 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2037 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
2038 GIMPLE_OMP_SINGLE as end of range.
2039 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2040 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
2041 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
2042 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
2043 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
2044 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
2045 gimple_omp_target_kind, gimple_omp_target_set_kind,
2046 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
2047 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
2048 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
2049 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
2050 gimple_omp_teams_set_clauses): New inlines.
2051 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
2052 and GIMPLE_OMP_TASKGROUP.
adcfd489 2053 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
acf0174b
JJ
2054 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
2055 enum omp_clause_proc_bind_kind): New.
2056 (union omp_clause_subcode): Add depend_kind, map_kind and
2057 proc_bind_kind fields.
2058 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
2059 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2060 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
2061 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
2062 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2063
67fa7880
TJ
20642013-10-10 Teresa Johnson <tejohnson@google.com>
2065
2066 * predict.c (tree_estimate_probability): Add new parameter
2067 for estimate_bb_frequencies.
2068 (estimate_bb_frequencies): Add new parameter to force estimation.
2069 (rebuild_frequencies): When max frequency in function is small,
2070 recompute counts from frequencies.
2071 * predict.h (estimate_bb_frequencies): New parameter.
2072
b591a8b7
DM
20732013-10-10 David Malcolm <dmalcolm@redhat.com>
2074
2075 * ipa-inline.c (ipa_inline): Fix leak of "order" when
2076 optimizations are disabled.
2077
782f0db2
DM
20782013-10-10 David Malcolm <dmalcolm@redhat.com>
2079
2080 * coverage.c (coverage_finish): Fix leak of da_file_name.
2081
13ef00fa
JH
20822013-10-10 Jan Hubicka <jh@suse.cz>
2083
2084 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
2085 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
2086 Bobcat and generic.
2087
a1d50386
JJ
20882013-10-10 Jakub Jelinek <jakub@redhat.com>
2089
2090 PR middle-end/58670
2091 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
2092 if any labels are in FALLTHRU_BB, use a special label emitted
2093 immediately after the asm goto insn rather than label_rtx
2094 of the LABEL_DECL.
2095 (expand_asm_stmt): Adjust caller.
2096 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
2097 edge if the last insn in predecessor is a jump with single successor,
2098 but it isn't simplejump_p.
2099
e2c2fde2
RB
21002013-10-10 Richard Biener <rguenther@suse.de>
2101
2102 PR tree-optimization/58656
6f1abb55 2103 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
e2c2fde2 2104
de6a5608
AM
21052013-10-10 Andrew MacLeod <amacleod@redhat.com>
2106
adcfd489
UB
2107 * gimplify.c: Include expr.h and tm_p.h for targets with special
2108 va-arg padding requirements.
de6a5608 2109
b184c8f1
AM
21102013-10-10 Andrew MacLeod <amacleod@redhat.com>
2111
2112 * tree-flow.h: Move some prototypes to gimple.h.
2113 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
2114 * gimple.h: Relocate some prototypes from tree-flow.h
2115 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
2116 Move to gimplify.c.
2117 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
2118 (build_va_arg_indirect_ref): Relocate and make static.
2119 (std_gimplify_va_arg_expr): Relocate here.
2120 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
2121 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
2122
13b72c22
AK
21232013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2124
2125 * doc/md.texi: Document the mnemonic attribute.
2126
5db40447
AK
21272013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2128
2129 PR target/57377
2130 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
2131 (set_attr_alternative x ...) when searching for user defined
2132 mnemonic attribute.
2133
ed018d4b
AM
21342013-10-10 Andrew MacLeod <amacleod@redhat.com>
2135
2136 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
2137
4d5b5e9f
ER
21382013-10-09 Easwaran Raman <eraman@google.com>
2139
2140 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
2141 * cfgexpand.c (defer_stack_allocation): ...use here
2142 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
2143
c9ef86a1
ZC
21442013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
2145
2146 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
2147 (operand_equal_for_value_replacement): New function, extracted from
2148 value_replacement and enhanced to catch more cases.
2149 (value_replacement): Use operand_equal_for_value_replacement.
2150
2431114f
AM
21512013-10-09 Andrew MacLeod <amacleod@redhat.com>
2152
adcfd489 2153 * loop-doloop.c (doloop_modify, doloop_optimize): Use
2431114f
AM
2154 get_max_loop_iterations.
2155
1dd2a9a0
KT
21562013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2157
2158 * config/arm/aarch-common.c (arm_early_load_addr_dep):
2159 Place comment above function.
2160
c1bf2a39
AM
21612013-10-09 Andrew MacLeod <amacleod@redhat.com>
2162
2163 * tree-flow.h: Remove all remaining prototypes, enums and structs that
2164 are not related to tree-cfg.c.
2165 * tree-ssa-address.h: New file. Relocate prototypes.
2166 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
2167 (addr_for_mem_ref): New. Combine call to get_address_description and
2168 return addr_for_mem_ref.
2169 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
2170 * tree-ssa-live.h: Adjust prototypes.
2171 * passes.c: Include tree-ssa-live.h.
2172 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
2173 * graphite.c (graphite_transform_loops): Make static.
2174 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
adcfd489 2175 make_pass_graphite, pass_data_graphite_transforms,
c1bf2a39
AM
2176 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
2177 * ipa-pure-const.c (warn_function_noreturn): Make static.
2178 (execute_warn_function_noreturn, gate_warn_function_noreturn,
2179 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
2180 Relocate from tree-cfg.c
2181 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
2182 static.
2183 (execute_warn_function_noreturn, gate_warn_function_noreturn,
2184 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
2185 Move to ipa-pure-const.c.
adcfd489
UB
2186 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
2187 Relocate from tree-optimize.c.
c1bf2a39
AM
2188 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
2189 make_pass_fixup_cfg): Move to tree-cfg.c.
2190 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
2191 Relocate some prototypes.
2192 * tree-data-ref.h (tree_check_data_deps) Add prototype.
2193 * tree-dump.c (dump_function_to_file): Remove prototype.
2194 Add tree-flow.h to the include file.
2195 * tree-dump.h: Remove prototype.
2196 * tree-parloops.h: New File. Add prototypes.
2197 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
2198 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
2199 from tree-ssa-loop.c.
2200 * tree-predcom.c (run_tree_predictive_commoning,
2201 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
2202 Relocate here from tree-ssa-loop.c.
adcfd489 2203 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
c1bf2a39
AM
2204 ssa_name_values.release ().
2205 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
2206 (ssa_name_values): Relocate from tree-flow.h.
2207 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
2208 * tree-ssa-loop.c (run_tree_predictive_commoning,
2209 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
2210 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
2211 make_pass_graphite, pass_data_graphite_transforms,
2212 make_pass_graphite_transforms, gate_tree_parallelize_loops,
2213 tree_parallelize_loops, pass_data_parallelize_loops,
2214 make_pass_parallelize_loops): Move to other files.
2215 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
2216 moved here.
2217 * tree.h: Remove prototypes from tree-address.c.
2218
cc524fc7
AM
22192013-10-09 Andrew MacLeod <amacleod@redhat.com>
2220
2221 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
2222 (struct int_tree_map): Move to tree-hasher.h
2223 (SCALE, LABEL, PERCENT): Move to gimple.h
2224 * tree-flow-inline.h: Delete. Move functions to other files.
2225 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
2226 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
2227 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
2228 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
2229 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
2230 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
2231 * tree-hasher.h: Don't include tree-flow.h.
2232 (struct int_tree_map): Relocate from tree-flow.h.
2233 * tree-sra.c (contains_view_convert_expr_p): Relocate from
2234 tree-flow-inline.h and make static.
adcfd489
UB
2235 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
2236 tree-flow-inline.h.
cc524fc7
AM
2237 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
2238 tree-flow-inline.h and make static.
2239 * tree.h (is_global_var, may_be_aliased): Relocate from
2240 tree-flow-inline.h.
2241 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
2242 * value-prof.c: No longer include tree-flow-inline.h.
2243 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
2244
71343877
AM
22452013-10-09 Andrew MacLeod <amacleod@redhat.com>
2246
2247 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
2248 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
2249 (enum move_pos): Move to tree-ssa-loop-im.h
2250 * cfgloop.h: Move some prototypes.
2251 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
2252 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
2253 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
2254 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
2255 (loop_containing_stmt): Relocate from tree-flow-inline.h.
2256 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
2257 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
2258 (enum move_pos): Relocate here.
2259 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
2260 tree-ssa-loop.c.
2261 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
adcfd489
UB
2262 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
2263 make_pass_lim): Relocate here from tree-ssa-loop.c.
2264 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
71343877
AM
2265 tree-ssa-loop.c.
2266 (loop_edge_to_cancel, unloop_loops): Make static.
2267 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
2268 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
2269 (tree_complete_unroll, gate_tree_complete_unroll,
2270 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
2271 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
2272 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
2273 * tree-ssa-loop-ivopts.c: Remove local prototypes.
2274 (stmt_invariant_in_loop_p): Remove unused function.
2275 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
2276 * tree-ssa-loop-manip.h: New file. Add prototypes.
2277 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
2278 (gcov_type_to_double_int): Move to cfgloop.h.
2279 (double_int_cmp, bound_index,
2280 estimate_numbers_of_iterations_loop): Make static.
2281 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
2282 (max_loop_iterations): Factor out get_max_loop_iterations.
2283 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
2284 cfgloop.c.
2285 * tree-ssa-loop-niter.h: New file. Add prototypes.
2286 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
2287 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
2288 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
2289 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
2290 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
2291 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
2292 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
2293 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
2294 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
2295 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
2296 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
2297 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
2298 pass_data_complete_unroll, make_pass_complete_unroll,
2299 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
2300 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
2301 tree-ssa-loop-ivcanon.c.
2302 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
2303 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
2304 tree-ssa-loop-prefetch.c.
2305 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
2306 tree-ssa-loop-im.c.
2307 (get_lsm_tmp_name): Relocate and add suffix parameter.
2308 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
2309 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
2310 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
2311 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
adcfd489 2312 (get_estimated_loop_iterations): Factor out accessor from
71343877 2313 estimated_loop_iterations in tree-ssa-loop-niter.c.
adcfd489
UB
2314 (get_max_loop_iterations): Factor out accessor from
2315 _max_loop_iterations in tree-ssa-niter.c.
71343877
AM
2316 * loop-unroll.c (decide_unroll_constant_iterations,
2317 decide_unroll_runtime_iterations, decide_peel_simple,
2318 decide_unroll_stupid): Use new get_* accessors.
2319
826cacfe
MG
23202013-10-09 Marc Glisse <marc.glisse@inria.fr>
2321
2322 PR tree-optimization/20318
2323 * doc/extend.texi (returns_nonnull): New function attribute.
2324 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
2325 attribute.
2326 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
2327 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
2328
378f8976
EB
23292013-10-09 Eric Botcazou <ebotcazou@adacore.com>
2330
2331 PR middle-end/58570
2332 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
2333 false if both components are bitfields.
2334
0fe04f5c
AV
23352013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2336
2337 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
2338 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
2339 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
2340 * config/aarch64/aarch64.h
2341 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
2342 * config/aarch64/aarch64-simd-builtins.def
2343 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
2344
bed9bae4
AV
23452013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2346
2347 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
2348
7f3d8b19
AV
23492013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2350
2351 * config/aarch64/arm_neon.h (vdiv_f64): Added.
2352
7df625a6
AV
23532013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2354
2355 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
2356 (vneg_f64): New intrinsic.
2357 (vneg_s8): Asm replaced with C.
2358 (vneg_s16): Likewise.
2359 (vneg_s32): Likewise.
2360 (vneg_s64): New intrinsic.
2361 (vnegq_f32): Asm replaced with C.
2362 (vnegq_f64): Likewise.
2363 (vnegq_s8): Likewise.
2364 (vnegq_s16): Likewise.
2365 (vnegq_s32): Likewise.
2366 (vnegq_s64): Likewise.
2367
2b86fca7
RL
23682013-10-09 Renlin Li <Renlin.Li@arm.com>
2369
2370 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
2371
e179df83
AK
23722013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2373
2374 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
2375 packed stack special handling.
2376 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
2377 back to fixed stack slots for FPRs saved due to stdarg.
2378
74129172
AK
23792013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2380
2381 * config/s390/s390.c (s390_frame_info): Restructure function.
2382
6455a49e
AK
23832013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2384
2385 * config/s390/s390.c (struct s390_frame_layout): New field
2386 gpr_save_slots.
2387 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
2388 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
2389 regs_ever_clobbered to char*.
adcfd489
UB
2390 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
2391 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
6455a49e
AK
2392 (s390_register_info): Enable FPR save slots. Move/Copy some
2393 functionality into ...
2394 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
2395 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
2396 function.
2397 (s390_frame_info): Do gpr slot allocation here now. stdarg does
2398 not imply a stack frame.
2399 (s390_init_frame_layout): Remove variable clobbered_regs.
2400 (s390_update_register_info): Remove function.
2401 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
2402 cannot be used for register renaming.
2403 (s390_hard_regno_scratch_ok): New function.
2404 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
2405 (s390_initial_elimination_offset): Change offset calculation of
2406 the return address pointer.
adcfd489 2407 (save_gprs): Deal with only r6 being saved from the call-saved regs.
6455a49e 2408 (restore_gprs): Set frame related flag.
adcfd489 2409 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
6455a49e
AK
2410 (s390_emit_prologue): Call s390_register_info instead of
2411 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
2412 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
2413 (s390_optimize_prologue): Call s390_optimize_register_info.
2414 Try to remove also FPR slot save/restore INSNs. Remove frame
2415 related flags from restore INSNs.
2416
59d96342
DD
24172013-10-08 DJ Delorie <dj@redhat.com>
2418
0dc7adad
DD
2419 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
2420 (movhi): Likewise.
2421
59d96342
DD
2422 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
2423 avoid conflict with the MI use of %c.
2424 * config/rl78/rl78-real.md: change %c to %C throughout.
2425 * config/rl78/rl78-virt.md: Likewise.
2426
a81169d8
JH
24272013-10-08 Jan Hubicka <jh@suse.cz>
2428
2429 * config/i386/i386.c (ix86_option_override_internal): Switch
2430 to SSE math for -ffast-math when target ISA supports SSE2.
2431
481d1b81
AM
24322013-10-08 Andrew MacLeod <amacleod@redhat.com>
2433
2434 * tree-flow.h: Remove some prototypes.
2435 * tree.h: Remove some protypes, add a couple.
2436 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
2437 using_eh_for_cleanups_p): Add interface routines for front ends.
2438 * tree-eh.h: New file. Add protoptyes.
2439 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
2440 (add_stmt_to_eh_lp_fn): Make static.
2441 (lower_try_finally): Use new using_eh_for_cleanups_p.
2442 * emit-rtl.c: Include tree-eh.h.
2443 * gimple.h: Include tree-eh.h.
2444
0e6a0e48
MG
24452013-10-08 Marc Glisse <marc.glisse@inria.fr>
2446
2447 PR tree-optimization/58480
2448 * tree-vrp.c (infer_nonnull_range): New function.
2449 (infer_value_range): Call infer_nonnull_range.
2450
ef6179d1
DC
24512013-10-08 Dehao Chen <dehao@google.com>
2452
2453 PR tree-optimization/58619
2454 * tree-inline.c (copy_phis_for_bb): Combine location data
2455 only if non-null.
2456
07d964d5
ZC
24572013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2458
2459 PR target/58423
2460 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
2461 RTX_FRAME_RELATED_P on INSN.
2462
19e9b2a3
BS
24632013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2464
2465 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
2466 (altivec_expand_vec_perm_const): Call it.
2467
0cf68694
BS
24682013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2469
2470 * config/rs6000/vector.md (mov<mode>): Emit permuted move
2471 sequences for LE VSX loads and stores at expand time.
2472 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
2473 prototype.
2474 * config/rs6000/rs6000.c (rs6000_const_vec): New.
2475 (rs6000_gen_le_vsx_permute): New.
2476 (rs6000_gen_le_vsx_load): New.
2477 (rs6000_gen_le_vsx_store): New.
2478 (rs6000_gen_le_vsx_move): New.
2479 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
2480 (*vsx_le_perm_load_v4si): New.
2481 (*vsx_le_perm_load_v8hi): New.
2482 (*vsx_le_perm_load_v16qi): New.
2483 (*vsx_le_perm_store_v2di): New.
2484 (*vsx_le_perm_store_v4si): New.
2485 (*vsx_le_perm_store_v8hi): New.
2486 (*vsx_le_perm_store_v16qi): New.
2487 (*vsx_xxpermdi2_le_<mode>): New.
2488 (*vsx_xxpermdi4_le_<mode>): New.
2489 (*vsx_xxpermdi8_le_V8HI): New.
2490 (*vsx_xxpermdi16_le_V16QI): New.
2491 (*vsx_lxvd2x2_le_<mode>): New.
2492 (*vsx_lxvd2x4_le_<mode>): New.
2493 (*vsx_lxvd2x8_le_V8HI): New.
2494 (*vsx_lxvd2x16_le_V16QI): New.
2495 (*vsx_stxvd2x2_le_<mode>): New.
2496 (*vsx_stxvd2x4_le_<mode>): New.
2497 (*vsx_stxvd2x8_le_V8HI): New.
2498 (*vsx_stxvd2x16_le_V16QI): New.
2499
9520e1eb
RL
25002013-10-07 Renlin Li <Renlin.Li@arm.com>
2501
2502 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
2503
36c0bd4f
AK
25042013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2505
2506 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
2507 loop to work also for 31bit ABI.
2508 Save the stack pointer for frame_size > 0.
2509
ee163e72
AK
25102013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2511
2512 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
2513 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
2514 constraint letters from expanders.
2515 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
2516 retry count to general_operand.
2517 ("tabort"): Give operand 0 a mode.
2518 ("tabort_1"): Add mode and constraint letter for operand 0.
2519 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
2520
45d99234
JL
25212013-10-04 Jeff Law <law@redhat.com>
2522
2523 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
2524
adcfd489
UB
2525 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
2526 out of ...
45d99234
JL
2527 (thread_across_edge): Here. Call it.
2528
7c327f7b
CC
25292013-10-04 Cary Coutant <ccoutant@google.com>
2530
2531 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
adcfd489 2532 discarding a location list expression (or a piece of one).
7c327f7b 2533
6867e128
JH
25342013-10-03 Jan Hubicka <jh@suse.cz>
2535
65efa7e7
UB
2536 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
2537 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
3700bce3 2538 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
6867e128 2539
c7f36d55
JH
25402013-10-03 Jan Hubicka <jh@suse.cz>
2541
65efa7e7 2542 * config/i386/i386.c (ix86_option_override_internal): Do not enable
c7f36d55
JH
2543 accumulate-outgoing-args when producing unwind info.
2544
4f0bee4c
WM
25452013-10-03 Wei Mi <wmi@google.com>
2546
2547 * lra-constraints.c (insert_move_for_subreg): New function
2548 extracted from simplify_operand_subreg.
2549 (simplify_operand_subreg): Add reload for paradoxical subreg.
2550
111c3f39
RX
25512013-10-03 Rong Xu <xur@google.com>
2552
65efa7e7
UB
2553 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
2554 the candidate of builtin_expect such that we should fix the
2555 size/time estimation.
2556 (estimate_function_body_sizes): Do the acutally size/time fix-up
2557 for builtin_expect.
111c3f39 2558
942df739
RX
25592013-10-03 Rong Xu <xur@google.com>
2560
65efa7e7
UB
2561 * predict.c (tree_predict_by_opcode): Get the probability
2562 for builtin_expect from param builtin_expect_probability.
2563 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
2564 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
2565 * doc/invoke.texi: Add documentation for builtin-expect-probability.
942df739 2566
2284b034
MG
25672013-10-03 Marc Glisse <marc.glisse@inria.fr>
2568
2569 PR c++/19476
2570 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
2571 * calls.c (alloca_call_p): Use get_callee_fndecl.
2572 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
2573 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
2574 Likewise.
2575 (vrp_visit_stmt): Remove duplicated code.
2576
0609bdf2
MM
25772013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2578
2579 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
2580 ceildf2, btruncdf2, instead of vsx_* name.
2581
2582 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
2583 iterators to only do V2DF and V4SF here. Move the DF code to
2584 rs6000.md where it is combined with SF mode. Replace <VSv> with
2585 just 'v' since only vector operations are handled with these insns
2586 after moving the DF support to rs6000.md.
2587 (vsx_sub<mode>3): Likewise.
2588 (vsx_mul<mode>3): Likewise.
2589 (vsx_div<mode>3): Likewise.
2590 (vsx_fre<mode>2): Likewise.
2591 (vsx_neg<mode>2): Likewise.
2592 (vsx_abs<mode>2): Likewise.
2593 (vsx_nabs<mode>2): Likewise.
2594 (vsx_smax<mode>3): Likewise.
2595 (vsx_smin<mode>3): Likewise.
2596 (vsx_sqrt<mode>2): Likewise.
2597 (vsx_rsqrte<mode>2): Likewise.
2598 (vsx_fms<mode>4): Likewise.
2599 (vsx_nfma<mode>4): Likewise.
2600 (vsx_copysign<mode>3): Likewise.
2601 (vsx_btrunc<mode>2): Likewise.
2602 (vsx_floor<mode>2): Likewise.
2603 (vsx_ceil<mode>2): Likewise.
2604 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
2605 (vsx_sminsf3): Likewise.
2606 (vsx_fmadf4): Likewise.
2607 (vsx_fmsdf4): Likewise.
2608 (vsx_nfmadf4): Likewise.
2609 (vsx_nfmsdf4): Likewise.
2610 (vsx_cmpdf_internal1): Likewise.
2611
2612 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
2613 simpler to select whether a target has SPE or traditional floating
2614 point support in iterators.
2615 (TARGET_DF_SPE): Likewise.
2616 (TARGET_SF_FPR): Likewise.
2617 (TARGET_DF_FPR): Likewise.
2618 (TARGET_SF_INSN): Macros to say whether floating point support
2619 exists for a given operation for expanders.
2620 (TARGET_DF_INSN): Likewise.
2621
2622 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
2623 combining of SF/DF mode operations, using both traditional and VSX
2624 registers.
2625 (Fvsx): Likewise.
2626 (Ff): Likewise.
2627 (Fv): Likewise.
2628 (Fs): Likewise.
2629 (Ffre): Likewise.
2630 (FFRE): Likewise.
2631 (abs<mode>2): Combine SF/DF modes using traditional floating point
2632 instructions. Add support for using the upper DF registers with
2633 VSX support, and SF registers with power8-vector support. Update
2634 expanders for operations supported by both the SPE and traditional
2635 floating point units.
2636 (abs<mode>2_fpr): Likewise.
2637 (nabs<mode>2): Likewise.
2638 (nabs<mode>2_fpr): Likewise.
2639 (neg<mode>2): Likewise.
2640 (neg<mode>2_fpr): Likewise.
2641 (add<mode>3): Likewise.
2642 (add<mode>3_fpr): Likewise.
2643 (sub<mode>3): Likewise.
2644 (sub<mode>3_fpr): Likewise.
2645 (mul<mode>3): Likewise.
2646 (mul<mode>3_fpr): Likewise.
2647 (div<mode>3): Likewise.
2648 (div<mode>3_fpr): Likewise.
2649 (sqrt<mode>3): Likewise.
2650 (sqrt<mode>3_fpr): Likewise.
2651 (fre<Fs>): Likewise.
2652 (rsqrt<mode>2): Likewise.
2653 (cmp<mode>_fpr): Likewise.
2654 (smax<mode>3): Likewise.
2655 (smin<mode>3): Likewise.
2656 (smax<mode>3_vsx): Likewise.
2657 (smin<mode>3_vsx): Likewise.
2658 (negsf2): Delete SF operations that are merged with DF.
2659 (abssf2): Likewise.
2660 (addsf3): Likewise.
2661 (subsf3): Likewise.
2662 (mulsf3): Likewise.
2663 (divsf3): Likewise.
2664 (fres): Likewise.
2665 (fmasf4_fpr): Likewise.
2666 (fmssf4_fpr): Likewise.
2667 (nfmasf4_fpr): Likewise.
2668 (nfmssf4_fpr): Likewise.
2669 (sqrtsf2): Likewise.
2670 (rsqrtsf_internal1): Likewise.
2671 (smaxsf3): Likewise.
2672 (sminsf3): Likewise.
2673 (cmpsf_internal1): Likewise.
2674 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
2675 (negdf2): Delete DF operations that are merged with SF.
2676 (absdf2): Likewise.
2677 (nabsdf2): Likewise.
2678 (adddf3): Likewise.
2679 (subdf3): Likewise.
2680 (muldf3): Likewise.
2681 (divdf3): Likewise.
2682 (fred): Likewise.
2683 (rsqrtdf_internal1): Likewise.
2684 (fmadf4_fpr): Likewise.
2685 (fmsdf4_fpr): Likewise.
2686 (nfmadf4_fpr): Likewise.
2687 (nfmsdf4_fpr): Likewise.
2688 (sqrtdf2): Likewise.
2689 (smaxdf3): Likewise.
2690 (smindf3): Likewise.
2691 (cmpdf_internal1): Likewise.
2692 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
2693 (btrunc<mode>2): Delete separate expander, and combine with the
2694 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
2695 (btrunc<mode>2_fpr): Likewise.
2696 (ceil<mode>2): Likewise.
2697 (ceil<mode>2_fpr): Likewise.
2698 (floor<mode>2): Likewise.
2699 (floor<mode>2_fpr): Likewise.
2700 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
2701 Add support for using the upper registers with VSX and
2702 power8-vector. Move insns to be closer to the define_expands. On
2703 VSX systems, prefer the traditional form of FMA over the VSX
2704 version, since the traditional form allows the target not to
2705 overlap with the inputs.
2706 (fms<mode>4_fpr): Likewise.
2707 (nfma<mode>4_fpr): Likewise.
2708 (nfms<mode>4_fpr): Likewise.
2709
5bea0c6c 27102013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65efa7e7 2711 Richard Earnshaw <richard.earnshaw@arm.com>
5bea0c6c
KT
2712
2713 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
2714 (struct mult_cost_table): Likewise.
2715 (struct mem_cost_table): Likewise.
2716 (struct fp_cost_table): Likewise.
2717 (struct vector_cost_table): Likewise.
2718 (cpu_cost_table): Likewise.
2719 * config/arm/arm.opt (mold-rts-costs): New option.
2720 (mnew-generic-costs): Likewise.
2721 * config/arm/arm.c (generic_extra_costs): New table.
2722 (cortexa15_extra_costs): Likewise.
2723 (arm_slowmul_tune): Use NULL as new costs.
2724 (arm_fastmul_tune): Likewise.
2725 (arm_strongarm_tune): Likewise.
2726 (arm_xscale_tune): Likewise.
2727 (arm_9e_tune): Likewise.
2728 (arm_v6t2_tune): Likewise.
2729 (arm_cortex_a5_tune): Likewise.
2730 (arm_cortex_a9_tune): Likewise.
2731 (arm_v6m_tune): Likewise.
2732 (arm_fa726te_tune): Likewise.
2733 (arm_cortex_a15_tune): Use cortex15_extra_costs.
2734 (arm_cortex_tune): Use generict_extra_costs.
2735 (shifter_op_p): New function.
2736 (arm_unspec_cost): Likewise.
2737 (LIBCALL_COST): Define.
2738 (arm_new_rtx_costs): New function.
2739 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
2740 table is available. Use old costs otherwise unless mnew-generic-costs
2741 is specified.
2742 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
2743 (cpu_cost_table): Declare.
2744
24c56925
MS
27452013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
2746
2747 PR target/58460
2748 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
2749 (*subs_mul_imm_<mode>)
2750 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
2751 (*sub_<shift>_<mode>)
2752 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
2753 Remove k constraint.
2754
2ab8f063
IB
27552013-10-03 Ian Bolton <ian.bolton@arm.com>
2756
2757 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
2758 code.
2759 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
2760
79221839
TJ
27612013-10-02 Teresa Johnson <tejohnson@google.com>
2762
2763 * predict.c (probably_never_executed): New function.
2764 (probably_never_executed_bb_p): Invoke probably_never_executed.
2765 (probably_never_executed_edge_p): Ditto.
2766 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2767 Treat profile insanities conservatively.
2768
d441afe0
JDA
27692013-10-02 John David Anglin <danglin@gcc.gnu.org>
2770
2771 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
2772
80f466c4
VM
27732013-10-02 Vladimir Makarov <vmakarov@redhat.com>
2774
2775 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
2776 use it. Use smaller increase for scratch. Don't increase reject
2777 for early clobber scratch.
2778 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
2779 setting eliminated regs except setting fp from hfp.
2780 (lra_eliminate): Check lra_insn_recog_data on NULL.
2781
6e228b4b
MM
27822013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2783
2784 PR target/58587
2785 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
65efa7e7 2786 setting -mvsx-timode by default until the underlying problem is fixed.
6e228b4b
MM
2787 (RS6000_CPU, power7 defaults): Likewise.
2788
11b54a5a
UB
27892013-10-02 Uros Bizjak <ubizjak@gmail.com>
2790
2791 * config/x-linux (host-linux.o): Remove header dependencies.
2792 Use $(COMPILE) and $(POSTCOMPILE).
2793 * config/t-linux-android (linux-android.o): Ditto.
2794
bbc02b69
UB
27952013-10-02 Uros Bizjak <ubizjak@gmail.com>
2796
2797 * Makefile.in (expmed.o-warn): Remove.
2798
440917de
AM
27992013-10-02 Andrew MacLeod <amacleod@redhat.com>
2800
2801 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
2802 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
2803
99206ca9
TJ
28042013-10-02 Teresa Johnson <tejohnson@google.com>
2805
2806 * dojump.c (do_jump_1): Divide probability between
2807 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
2808
56e82b14
TT
28092013-10-02 Tom Tromey <tromey@redhat.com>
2810
2811 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
2812
3d9c733e
AM
28132013-10-02 Andrew MacLeod <amacleod@redhat.com>
2814
2815 * tree-flow.h: Remove some prototypes.
2816 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
2817 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
2818 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
2819 mark_virtual_phi_result_for_renaming): Relocate here.
2820 * tree-into-ssa.h: Add prototypes.
bbc02b69 2821 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
3d9c733e
AM
2822 single_pred_before_succ_order.
2823 (blocks_in_phiopt_order): Rename and move to cfganal.c.
2824 (nonfreeing_call_p) Move to gimple.c.
2825 * cfganal.c (single_pred_before_succ_order): Move and renamed from
2826 tree-ssa-phiopt.c.
2827 * basic-block.h (single_pred_before_succ_order): Add prototype.
2828 * gimple.c (nonfreeing_call_p): Relocate here.
2829 * gimple.h: Add prototype.
2830 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
2831 * tree-ssa-dom.h: New file. Relocate prototypes here.
2832 * tree-ssa.h: Include tree-ssa-dom.h.
2833
78cedfb1
UB
28342013-10-02 Uros Bizjak <ubizjak@gmail.com>
2835
2836 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
2837 Use $(COMPILE) and $(POSTCOMPILE).
2838
2839 * config/alpha/x-alpha (driver-alpha.o): Ditto.
2840
744730a4
AM
28412013-10-02 Andrew MacLeod <amacleod@redhat.com>
2842
2843 * tree-flow.h: Remove some prototypes.
2844 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
2845 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
2846 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
2847 propagate_tree_value*): Move from here to...
2848 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
2849 propagate_tree_value*): Relocate here.
2850 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
2851 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
2852 * gimple-fold.c: Remove gimple-fold.h from include list.
2853 * tree-vrp.c: Remove gimple-fold.h from include list.
2854 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
2855 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
2856 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
2857 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
2858 * sese.c: Add tree-ssa-propagate.h to include list.
2859
826a536d
RB
28602013-10-02 Richard Biener <rguenther@suse.de>
2861
2862 * tree-loop-distribution.c: Include tree-vectorizer.h for
2863 find_loop_location.
2864 (enum partition_kind): Remove PKIND_REDUCTION.
78cedfb1 2865 (struct partition_s): Remove has_writes member, add reduction_p member.
826a536d
RB
2866 (partition_alloc): Adjust.
2867 (partition_builtin_p): Likewise.
2868 (partition_has_writes): Remove.
2869 (partition_reduction_p): New function.
2870 (partition_merge_into): Likewise.
2871 (generate_code_for_partition): Commonize builtin partition
2872 handling tail.
2873 (rdg_cannot_recompute_vertex_p): Remove.
2874 (already_processed_vertex_p): Likewise.
2875 (rdg_flag_vertex): Do not set has_writes.
2876 (classify_partition): Adjust.
2877 (rdg_build_partitions): Do not set has_writes, treat all
2878 partitions as useful.
78cedfb1 2879 (distribute_loop): Record number of library calls generated. Adjust.
826a536d
RB
2880 (tree_loop_distribution): Report number of loops and library
2881 calls generated as opt-info.
2882
4b403ece
AM
28832013-10-02 Andrew MacLeod <amacleod@redhat.com>
2884
2885 * tree-flow.h: Include new .h files. Move prototypes.
2886 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
2887 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
2888 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
2889 * tree-pretty-print.h: Add prototypes from tree-flow.h.
2890 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
2891 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
2892 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
2893 * tree.h (get_ref_base_and_extent): Move prototype out.
78cedfb1 2894 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
4b403ece
AM
2895 tree-dfa.h.
2896 * gimple-low.h: New File. Add prototypes from tree-flow.h.
2897 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
2898 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
2899 * tree-scalar-evolution.c: Include tree.h.
2900 * sese.c: Include tree.h.
2901 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
2902 * dwarf2out.c: Include tree-dfa.h.
2903 * tree-chrec.c: Include tree.h.
2904 * tree-data-ref.c: Include tree.h.
2905
1d2151c6
YZ
29062013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
2907
2908 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
2909 Fix whitespace.
2910
441ad147
RO
29112013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2912
2913 * config/t-sol2 (sol2-c.o): Remove header dependencies.
2914 Use $(COMPILE) and $(POSTCOMPILE).
2915 (sol2-cxx.o): Likewise.
2916 (sol2-stubs.o): Likewise.
2917 (sol2.o): Likewise.
2918 * config/x-solaris (host-solaris.o): Likewise.
2919
2920 * config/sparc/t-sparc (sparc.o): Remove.
2921 (sparc-c.o): Remove header dependencies.
2922 Use $(COMPILE) and $(POSTCOMPILE).
2923 * config/sparc/x-sparc: Likewise.
2924
2deaf8b0
JR
29252013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
2926
2927 * config/arc/arc-opts.h: Add 2013 to Copyright years.
2928 * config/arc/arc700.md: Likewise.
2929 * config/arc/arc-modes.def: Likewise.
2930 * config/arc/arc-simd.h: Likewise.
2931 * config/arc/t-arc-uClibc: Likewise.
2932 * config/arc/t-arc-newlib: Likewise.
2933
f6fe771a
RL
29342013-10-02 Renlin Li <renlin.li@arm.com>
2935
78cedfb1
UB
2936 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
2937 plus_constant.
f6fe771a
RL
2938 (aarch64_expand_epilogue): Likewise.
2939
0916f876
YZ
29402013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2941 Yufeng Zhang <yufeng.zhang@arm.com>
2942
2943 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
2944 declaration.
2945 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
2946 'base_in' represent a conversion and legal_cast_p_1 holds; set
2947 'base_in' with the returned value from get_unwidened.
2948
ebfcd719
KT
29492013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2950
2951 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
2952 plus_constant is not used.
2953
157ca3e9
WM
29542013-10-01 Wei Mi <wmi@google.com>
2955
78cedfb1 2956 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
157ca3e9
WM
2957 * config/i386/i386.md: Add define_peephole2 to
2958 break partial reg stall for cvtss2sd/cvtsd2ss.
2959
cd4dd8f0
JR
29602013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
2961
2962 * config/arc/arc.c (pass_arc_ifcvt::clone):
78cedfb1 2963 Update for ctxt_ -> m_ctxt change.
cd4dd8f0 2964
1465e5cf
JL
29652013-10-01 Jeff Law <law@redhat.com>
2966
2967 * tree-ssa-threadupdate.c (struct redirection_data): Delete
2968 outgoing_edge and intermediate_edge fields. Instead store the path.
2969 (redirection_data::hash): Hash on the last edge's destination index.
2970 (redirection_data::equal): Check the entire thread path.
2971 (lookup_redirectio_data): Corresponding changes.
2972 (create_edge_and_update_destination_phis): Likewise.
2973 (thread_single_edge): Likewise.
2974
25c606cb 29752013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 2976 Diego Novillo <dnovillo@google.com>
25c606cb
JR
2977
2978 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
2979 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
2980 (vld32wh_insn, vld32wl_insn): Delete commented-out old
2981 versions of these patterns.
2982
0ccbc132
JR
2983 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
2984 (__builtin_arc_aligned): Likewise.
2985
f55d4a20
JR
2986 * config/arc/arc.md: Expand adc_0 comment stating the intended
2987 purpose and why it isn't ready.
2988 Replace commented out call_value_via_label_mixed with a
2989 plain comment about bl_s.
2990
5719867d 2991 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
2992 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
2993 Remove if (1) condition.
2994 (arc_encode_section_info): Fix comment.
2995
6462fab0
JR
29962013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
2997
2998 * config/arc/arc.c (arc_conditional_register_usage):
2999 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
3000 Also set reg_alloc_order for DMA config regs.
3001
5d5f6720
JR
30022013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3003 Jeremy Bennett <jeremy.bennett@embecosm.com>
3004
3005 * doc/install.texi (--with-cpu): Mention ARC.
3006 (arc-*-elf32): New paragraph.
3007 (arc-linux-uclibc): Likewise.
3008 * doc/md.texi (Machine Constraints): Add ARC part.
3009 * doc/invoke.texi: (menu): Add ARC Options.
3010 (Machine Dependent Options) <ARC Options>: Add synopsis.
3011 (node ARC Options): Add.
3012 * doc/extend.texi (long_call / short_call attribute): Add ARC.
3013 (ARC Built-in Functions): New section defining
3014 generic ARC built-in functions.
3015 (ARC SIMD Built-in Functions): New section defining SIMD specific
3016 built-in functions.
3017 (Declaring Attributes of Functions): Extended
3018 description of short_call and long_call attributes for ARC and
3019 added index entries.
3020
526b7aee
SV
30212013-10-01 Saurabh Verma <saurabh.verma@codito.com>
3022 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3023 Joern Rennecke <joern.rennecke@embecosm.com>
3024 Muhammad Khurram Riaz <khurram.riaz@arc.com>
3025 Brendan Kehoe <brendan@zen.org>
3026 Michael Eager <eager@eagercon.com>
3027 Simon Cook <simon.cook@embecosm.com>
3028 Jeremy Bennett <jeremy.bennett@embecosm.com>
3029
3030 * config/arc, common/config/arc: New directories.
3031
53426f6c
JR
30322013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3033 Brendan Kehoe <brendan@zen.org>
3034 Simon Cook <simon.cook@embecosm.com>
3035
3036 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
3037
1df9f5a9
AM
30382013-10-01 Andrew MacLeod <amacleod@redhat.com>
3039
3040 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
3041 * tree-ssa-coalesce.h: New. Move prototype to here.
3042 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
3043 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
3044 (gimple_can_coalesce_p): Move to...
3045 * gimple.c (gimple_can_coalesce_p): Here.
3046
80560f95
AM
30472013-10-01 Andrew MacLeod <amacleod@redhat.com>
3048
3049 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
3050 (dump_decl_set): Move to gimple.c.
3051 * gimple.h: Don't include tree-ssa-operands.h.
3052 (dump_decl_set): Add prototype.
3053 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
3054 Move to gimple-ssa.h.
3055 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
3056 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
3057 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
3058 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
3059 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
3060 than PHI_ARG_DEF.
3061 (dump_decl_set): Relocate here.
3062 * gimple-ssa.h: New file.
3063 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
3064 Relocate from gimple.h.
3065 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
3066 * tree-ssa-operands.c (swap_ssa_operands): Rename from
3067 swap_tree_operands and remove non-ssa path.
3068 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
3069 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
3070 swap_ssa_operands.
3071 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
3072 vect_is_simple_reduction_1): Use swap_ssa_operands.
3073 * tree-flow.h: Move various prototypes to tree-phinodes.h.
3074 (enum need_phi_state): Move to tree-into-ssa.c.
3075 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
3076 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
3077 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
3078 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
3079 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
3080 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
3081 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
3082 num_imm_uses): Move to ssa-iterators.h.
3083 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
7ab4168e 3084 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
80560f95
AM
3085 tree-phinodes.h.
3086 (op_iter_done, op_iter_next_def, op_iter_next_tree,
3087 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
3088 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
3089 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
3090 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
3091 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
3092 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
3093 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
3094 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
3095 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
3096 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
3097 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
3098 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
3099 (set_phi_nodes): Move to tree-phinodes.h.
3100 * tree-ssa-operands.h (enum ssa_op_iter_type,
3101 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
3102 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
3103 (dump_decl_set): Remove prototype.
3104 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
3105 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
3106 (set_phi_nodes): Relocate from tree-flow-inline.h.
3107 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
3108 tree-flow-inline.h
3109 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
3110 include list. Temporarily add gimple.h to include list.
3111 * ssa-iterators.h: New file.
3112 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
3113 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
3114 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
3115 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
3116 Relocate from tree-ssa-operands.h.
3117 (delink_imm_use, link_imm_use_to_list, link_imm_use,
3118 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
3119 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
3120 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
3121 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
3122 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
3123 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
3124 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
3125 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
3126 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
3127 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
3128 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
3129 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
3130 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
3131 Relocate from tree-flow-inline.h.
3132 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
3133
8da00d65
VP
31342013-10-01 Vidya Praveen <vidyapraveen@arm.com>
3135
3136 * aarch64-simd.md
3137 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
3138 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
3139 Insert '\t' to output template.
3140 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
3141 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
3142 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
3143 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
3144
e2ebe1c2
UB
31452013-10-01 Uros Bizjak <ubizjak@gmail.com>
3146
3147 * doc/install.texi (Host/target specific installation notes for GCC):
3148 Put @anchor before @heading.
3149 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
3150 Use @email for email addresses.
3151
aee2d611
JL
31522013-10-01 Jeff Law <law@redhat.com>
3153
3154 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
3155 a vec. Only delete the path if we create one without successfully
3156 registering a jump thread.
3157 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
3158 as a pointer.
3159 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
3160 (paths): New vector of jump threading paths.
3161 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
3162 (THREAD_PATH): New accessor macro for the entire thread path.
3163 (lookup_redirection_data): Get intermediate and final outgoing edge
3164 from the thread path.
3165 (create_edge_and_update_destination_phis): Copy the threading path.
3166 (ssa_fix_duplicate_block_edges): Get edges and block types from the
3167 jump threading path.
3168 (ssa_redirect_edges): Get edges and block types from the jump threading
3169 path. Free the path vector.
3170 (thread_block): Get edges from the jump threading path. Look at the
3171 entire path to see if we thread to a loop exit. If we cancel a jump
3172 thread request, then free the path vector.
3173 (thread_single_edge): Get edges and block types from the jump threading
3174 path. Free the path vector.
3175 (thread_through_loop_header): Get edges and block types from the jump
3176 threading path. Free the path vector.
3177 (mark_threaded_blocks): Iterate over the vector of paths and store
3178 the path on the appropriate edge. Get edges and block types from the
3179 jump threading path.
3180 (mark_threaded_blocks): Get edges and block types from the jump
3181 threading path. Free the path vector.
3182 (thread_through_all_blocks): Use the vector of paths rather than
3183 a vector of 3-edge sets.
3184 (register_jump_thread): Accept pointer to a path vector rather
3185 than the path vector itself. Store the path vector for later use.
3186 Simplify.
3187
966f97ac 31882013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 3189 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
3190
3191 PR target/58574
3192 * config/s390/s390.c (s390_split_branches): Modify check for table
3193 jump insns.
3194 (s390_chunkify_start): Rearrange table jump insn check in order to
3195 deal with compare and branch insns correctly.
3196
3a323a38
KV
31972013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
3198
3199 PR target/58578
3200 Revert
3201 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3202 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
3203 define_insn_and_split.
3204 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3205 (shiftsi3_compare): New pattern.
3206 (rrx): New pattern.
3207 * config/arm/unspecs.md (UNSPEC_RRX): New.
3208
90444831
AM
32092013-10-01 Alan Modra <amodra@gmail.com>
3210
3211 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
3212 casing inout operands.
3213
818625cf
RB
32142013-10-01 Richard Biener <rguenther@suse.de>
3215
3216 PR tree-optimization/58553
3217 * tree-loop-distribution.c (struct partition_s): Add niter member.
3218 (classify_partition): Populate niter member for the partition
3219 and properly identify whether the relevant store happens before
3220 or after the loop exit.
3221 (generate_memset_builtin): Use niter member from the partition.
3222 (generate_memcpy_builtin): Likewise.
3223
30f641cd
RS
32242013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
3225
3226 * vec.h (vec_prefix, vec): Prefix member names with "m_".
3227 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
3228
65d3284b
RS
32292013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
3230
3231 * basic-block.h (edge_list): Prefix member names with "m_".
3232 * context.h (context): Likewise.
3233 * domwalk.h (dom_walker): Likewise.
3234 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
3235 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
3236 * hash-table.h (hash_table): Likewise.
3237 * machmode.h (bit_field_mode_iterator): Likewise.
3238 * pass_manager.h (pass_list): Likewise.
3239 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
3240 * tree-pass.h (pass_data): Likewise.
3241 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
3242 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
3243 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
3244 * asan.c (pass_data_asan): Update accordingly.
3245 * cfganal.c (control_dependences::find_control_dependence): Likewise.
3246 (control_dependences::control_dependences): Likewise.
3247 (control_dependences::~control_dependences): Likewise.
3248 (control_dependences::~control_dependences): Likewise.
3249 (control_dependences::get_edges_dependent_on): Likewise.
3250 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
3251 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
3252 * context.c (gcc::context::context): Likewise.
3253 * cprop.c (pass_rtl_cprop::clone): Likewise.
3254 * domwalk.c (dom_walker::walk): Likewise.
3255 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
3256 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
3257 * mode-switching.c (pass_mode_switching::clone): Likewise.
3258 * passes.c (opt_pass::opt_pass): Likewise.
3259 (pass_manager::pass_manager): Likewise.
3260 * predict.c (pass_strip_predict_hints::clone): Likewise.
3261 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
3262 (pass_split_all_insns::clone): Likewise.
3263 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
3264 Likewise.
3265 (bit_field_mode_iterator::next_mode): Likewise.
3266 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
3267 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
3268 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
3269 * tree-complex.c (pass_lower_complex::clone): Likewise.
3270 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
3271 * tree-object-size.c (pass_object_sizes::clone): Likewise.
3272 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
3273 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
3274 (pass_fold_builtins::clone): Likewise.
3275 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
3276 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
3277 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
3278 (pass_cd_dce::clone): Likewise.
3279 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
3280 (pass_phi_only_cprop::clone): Likewise.
3281 * tree-ssa-dse.c (pass_dse::clone): Likewise.
3282 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
3283 * tree-ssa-loop.c (pass_lim::clone): Likewise.
3284 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
3285 * tree-ssa-pre.c (pass_fre::clone): Likewise.
3286 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
3287 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
3288 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
3289 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
3290 * tree-vrp.c (pass_vrp::clone): Likewise.
3291 * tsan.c (pass_tsan::clone): Likewise.
3292
f66d0891
JJ
32932013-09-30 Jakub Jelinek <jakub@redhat.com>
3294
d2a365a8
JJ
3295 PR middle-end/58564
3296 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
3297 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
3298
f66d0891
JJ
3299 PR middle-end/58564
3300 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
3301 optimization, punt if sign_bit_p looked through any zero extension.
3302
05357ac3
TJ
33032013-09-30 Teresa Johnson <tejohnson@google.com>
3304
3305 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
3306 Update redirected out edge count in joiner case.
3307 (ssa_redirect_edges): Common the joiner and non-joiner cases
3308 so that joiner case gets profile updates.
3309
ca406576
RB
33102013-09-30 Richard Biener <rguenther@suse.de>
3311
3312 PR tree-optimization/58554
e2ebe1c2
UB
3313 * tree-loop-distribution.c (classify_partition): Require
3314 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
3315 (tree_loop_distribution): Calculate dominance info.
3316
92d649c4
VK
33172013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3318
3319 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
3320 (NO_PROFILE_COUNTERS): Likewise.
3321 (PROFILE_HOOK): Likewise.
3322 (FUNCTION_PROFILER): Likewise.
3323 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
3324
bd9534e2
IS
33252013-09-30 Iain Sandoe <iain@codesourcery.com>
3326
3327 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
3328 calls and defines in TARGET_MACHO conditional.
3329 (load_macho_picbase_di): Likewise.
3330 (reload_macho_picbase): Likewise.
3331 (reload_macho_picbase_si): Likewise.
3332 (reload_macho_picbase_di): Likewise.
3333 (nonlocal_goto_receiver): Likewise.
3334
4494fbc9
NC
33352013-09-30 Nick Clifton <nickc@redhat.com>
3336
3337 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
3338 that use the MSP430X ISA.
3339 (msp430_option_override): Scan -mmcu command line option for any
3340 MCU name that supports the MSP430X ISA.
3341 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
3342 -mmcu options which enable the MSP430X ISA.
3343
791d9044
RB
33442013-09-30 Richard Biener <rguenther@suse.de>
3345
3346 PR middle-end/58532
3347 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
3348 before looking for setjmp-like calls.
3349
e1c5c877
IS
33502013-09-29 Iain Sandoe <iain@codesourcery.com>
3351
3352 PR target/10901
3353 * config/darwin-protos.h (machopic_get_function_picbase): New.
3354 * config/darwin.c (machopic_get_function_picbase): New.
3355 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
3356 label for a new func. (load_macho_picbase_di): Likewise.
3357 (reload_macho_picbase): New expand.
3358 (reload_macho_picbase_si): New insn.
3359 (reload_macho_picbase_di): New insn.
3360 (nonlocal_goto_receiver): New define and split.
3361 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
3362 (unspecv enum): Add UNSPECV_NLGR.
3363
749278c5
IS
33642013-09-29 Iain Sandoe <iain@codesourcery.com>
3365
3366 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
3367 that altivec registers are correctly sized on Darwin.
3368
2c43a51c
IS
33692013-09-29 Iain Sandoe <iain@codesourcery.com>
3370
3371 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
3372 darwin-driver.o): Use COMPILE and POSTCOMPILE.
3373 * config/x-darwin (host-darwin.o): Likewise.
3374 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
3375 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
3376 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
3377
7a5911d3
UB
33782013-09-29 Uros Bizjak <ubizjak@gmail.com>
3379
3380 * doc/invoke.texi: Fix usage of @tie{} command.
3381
3f67a73d
EB
33822013-09-29 Eric Botcazou <ebotcazou@adacore.com>
3383
3384 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
3385
9ac2f538
JH
33862013-09-28 Jan Hubicka <jh@suse.cz>
3387
3388 * config/i386/x86-tune.def: Add documentation for each of the options;
3389 add whitespace.
3390
b0ff06da
JH
33912013-09-28 Jan Hubicka <jh@suse.cz>
3392
7a5911d3
UB
3393 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
3394 generic.
b0ff06da
JH
3395 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
3396 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
3397 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
3398 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
3399 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
3400
c3284718
RS
34012013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
3402
3403 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
3404 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
3405 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
3406 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
3407 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
3408 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
3409 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
3410 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
3411 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
3412 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
3413 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
3414 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
3415 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
3416 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
3417 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
3418 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
3419 gimple.h, godump.c, graphite-clast-to-gimple.c,
3420 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
3421 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
3422 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
3423 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
3424 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
3425 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
3426 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
3427 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
3428 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
3429 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
3430 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
3431 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
3432 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
3433 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
3434 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
3435 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
3436 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
3437 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
3438 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
3439 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
3440 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
3441 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
3442 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
3443 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
3444 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
3445 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3446 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
3447 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
3448 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3449 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
3450 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
3451 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
3452 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
3453 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
3454 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
3455 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
3456 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
3457 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
3458 whitespace before "(".
3459
c6285bd7
SL
34602013-09-28 Sandra Loosemore <sandra@codesourcery.com>
3461
3462 * expr.h (extract_bit_field): Remove packedp parameter.
3463 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
3464 from forward declaration.
3465 (store_split_bit_field): Remove packedp arg from calls to
3466 extract_fixed_bit_field.
3467 (extract_bit_field_1): Remove packedp parameter and packedp
3468 argument from recursive calls and calls to extract_fixed_bit_field.
3469 (extract_bit_field): Remove packedp parameter and corresponding
3470 arg to extract_bit_field_1.
3471 (extract_fixed_bit_field): Remove packedp parameter. Remove code
3472 to issue warnings.
3473 (extract_split_bit_field): Remove packedp arg from call to
3474 extract_fixed_bit_field.
3475 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3476 (copy_blkmode_from_reg): Likewise.
3477 (copy_blkmode_to_reg): Likewise.
3478 (read_complex_part): Likewise.
3479 (store_field): Likewise.
3480 (expand_expr_real_1): Likewise.
3481 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
3482 to extract_bit_field.
3483 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
3484 call to extract_bit_field.
3485 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
3486 call to extract_bit_field.
3487 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
3488 and special packedp behavior from -fstrict-volatile-bitfields
3489 documentation.
3490
522d4efc
JBG
34912013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3492
3493 * lra-eliminations.c (init_elim_table): Guard value_p.
3494
19cdb489
MM
34952013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3496
3497 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3498 DFmode, DImode, and SFmode in the upper VSX registers based on the
3499 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
3500 if -mpower8-vector. Combine -mvsx-timode handling with the rest
3501 of the VSX register handling.
3502
3503 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
3504 (f32_sv): Likewise.
3505 (zero_extendsidi2_lfiwzx): Add support for loading into the
3506 Altivec registers with -mpower8-vector. Use wu/wv constraints to
3507 only do VSX memory options on Altivec registers.
3508 (extendsidi2_lfiwax): Likewise.
3509 (extendsfdf2_fpr): Likewise.
3510 (mov<mode>_hardfloat, SF/SD modes): Likewise.
3511 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
3512 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
3513 (movdi_internal64): Likewise.
3514
d6d11272
XDL
35152013-09-27 Xinliang David Li <davidxl@google.com>
3516
3517 * opts.c (finish_options): Adjust parameters
3518 according to vect cost model.
3519 (common_handle_option): Set dynamic vect cost
3520 model for FDO.
3521 targhooks.c (default_add_stmt_cost): Compute stmt cost
3522 unconditionally.
3523 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3524 Use helper function.
3525 * tree-vectorizer.h (unlimited_cost_model): New function.
3526 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
3527 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
3528 function.
3529 (vect_enhance_data_refs_alignment): Ditto.
3530 * flag-types.h: New enum.
3531 * common/config/i386/i386-common.c (ix86_option_init_struct):
3532 No need to initialize vect_cost_model flag.
3533 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
3534 unconditionally.
3535
ac1857a3
DN
35362013-09-27 Diego Novillo <dnovillo@google.com>
3537
3538 * gimple.h (enum ssa_mode): Remove.
3539
0d0e2af6
PM
35402013-09-27 Paulo Matos <pmatos@broadcom.com>
3541
3542 * cfgloop.h (number_of_loops): Fix typo in check for null.
3543
09dc585e
JJ
35442013-09-27 Jakub Jelinek <jakub@redhat.com>
3545
3546 PR middle-end/58551
3547 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
3548 are children of outermost saved_cfun's loop, and set it up to
3549 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
3550 if loop != loop0 and SESE region contains bbs that belong to loop0.
3551
ec5a3504
RS
35522013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3553
3554 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
3555 (binary_scale_code_p, get_base_term, get_index_term): New functions.
3556 (set_address_segment, set_address_base, set_address_index)
3557 (set_address_disp): Accept the argument unconditionally.
3558 (baseness): Remove must_be_base_p and must_be_index_p checks.
3559 (decompose_normal_address): Classify as much as possible in the
3560 main loop.
3561
f91aec98
RS
35622013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3563
3564 * cse.c (count_reg_usage): Handle INT_LIST.
3565 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
3566 * reginfo.c (reg_scan_mark_refs): Likewise.
3567 * reload1.c (eliminate_regs_1): Likewise.
3568
a9195970
IS
35692013-09-27 Iain Sandoe <iain@codesourcery.com>
3570
3571 PR middle-end/58547
3572 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
3573 signed.
3574
e6f1c509
RB
35752013-09-27 Richard Biener <rguenther@suse.de>
3576
3577 PR tree-optimization/58459
3578 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
3579 restriction not propagating into loops.
3580
84f48495
FW
35812013-09-26 Florian Weimer <fw@deneb.enyo.de>
3582
3583 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
3584 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
3585 * doc/tree-ssa.texi (Walking use-def chains): Delete.
3586
74fc8b8a
RB
35872013-09-26 Richard Biener <rguenther@suse.de>
3588
7a5911d3 3589 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 3590
b4ada065
RB
35912013-09-26 Richard Biener <rguenther@suse.de>
3592
3593 * alias.h (component_uses_parent_alias_set): Rename to ...
3594 (component_uses_parent_alias_set_from): ... this.
3595 * alias.c (component_uses_parent_alias_set): Rename to ...
3596 (component_uses_parent_alias_set_from): ... this and return
3597 the desired parent.
3598 (reference_alias_ptr_type_1): Use the result from
3599 component_uses_parent_alias_set_from instead of stripping
3600 components one at a time.
3601 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
3602
78bca40d
AM
36032013-09-26 Andrew MacLeod <amacleod@redhat.com>
3604
7a5911d3
UB
3605 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
3606 Move prototypes to...
78bca40d
AM
3607 * tree-ssa-ter.h: New File. Move prototypes here.
3608 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
3609 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
3610 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 3611 from is_replaceable_p.
78bca40d
AM
3612 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
3613 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
3614 (process_replaceable): Use ter_is_replaceable_p.
3615 (find_replaceable_in_bb): Use ter_is_replaceable_p.
3616 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
3617 newly refactored ssa_is_replaceable_p.
3618 * cfgexpand.c: Include tree-outof-ssa.h.
3619 * ssaexpand.h: Delete.
3620
ff2a63a7
AM
36212013-09-26 Andrew MacLeod <amacleod@redhat.com>
3622
3623 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
3624 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
3625 tree-ssa.c
3626 (create_gimple_tmp): Delete.
3627 (get_expr_type, build_assign, build_type_cast): Move to...
3628 * gimple-builder.c: New File.
3629 (get_expr_type): Relocate from gimple.c.
3630 (build_assign, build_type_cast): Change to only create ssanames.
3631 * gimple.h: Move prototypes to...
3632 * gimple-builder.h: New File. Here.
3633 * tree-ssa.h: And here.
3634 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
3635 count_uses_and_derefs): Relocate from gimple.c.
3636 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
3637 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
3638 * tree-ssa-math-opts (execute_cse_reciprocals): Use
3639 gimple_replace_ssa_lhs.
3640 * asan.c: Include gimple-builder.h.
3641 * Makefile.in: Add gimple-builder.o.
3642
a2544177
RB
36432013-09-26 Richard Biener <rguenther@suse.de>
3644
3645 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
3646 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
3647 (loe_visit_block): Use gcc_checking_assert.
3648 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
3649 gimple_assign_ssa_name_copy_p.
3650 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
3651 change.
3652
6d1ca9a0
DE
36532013-09-26 David Edelsohn <dje.gcc@gmail.com>
3654
3655 * config/rs6000/t-rs6000 (rs6000.o): Remove.
3656 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
3657
46e950db
RB
36582013-09-26 Richard Biener <rguenther@suse.de>
3659
3660 PR tree-optimization/58539
3661 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
3662 the fact that debug statements are not taking part in loop-closed
3663 SSA construction.
3664
40ada30a
NC
36652013-09-26 Nick Clifton <nickc@redhat.com>
3666
3667 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
3668 time warning message.
3669 (msp430_print_operand_raw): Delete unused letter parameter.
3670 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3671 (msp430_print_operand_address): New function.
3672 (msp430_print_operand): Move address printing code from here to
3673 new function.
3674 * config/msp430/msp430.md (movsipsi2): Add comment in generated
3675 assembler.
3676 (zero_extendpsisi2): Likewise.
3677 (extendpsisi2): New pattern.
3678 (andneghi3): New pattern.
3679
38e8f663
YR
36802013-09-26 Yvan Roux <yvan.roux@linaro.org>
3681
3682 * config/aarch64/aarch64.opt (mlra): New option.
3683 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
3684 (TARGET_LRA_P): Define.
3685
4167e8d4
EB
36862013-09-26 Eric Botcazou <ebotcazou@adacore.com>
3687
3688 * expr.c (expand_assignment): Remove obsolete comment.
3689
5254eac4
JL
36902013-09-25 Jeff Law <law@redhat.com>
3691
3692 * tree-flow.h (thread_through_all_blocks): Prototype moved into
3693 tree-ssa-threadupdate.h.
3694 (register_jump_thread): Similarly.
3695 * tree-ssa-threadupdate.h: New header file.
3696 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
3697 * tree-vrp.c: Likewise.
3698 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
3699 (thread_around_empty_blocks): Change type of path vector argument to
3700 an edge,type pair from just an edge. Initialize both elements when
3701 appending to a jump threading path. Tweak references to elements
3702 appropriately.
3703 (thread_across_edge): Similarly. Release memory for the elements
3704 as needed.
3705 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
3706 (dump_jump_thread_path): New function broken out from
3707 register_jump_thread.
3708 (register_jump_thread): Use dump_jump_thread_path. Change type of
3709 path vector entries. Search the path for NULL edges and dump
3710 the path if one is found. Tweak the conversion of path to 3-edge
3711 form to use the block copy type information embedded in the path.
3712
20f114a3
YR
37132013-09-25 Yvan Roux <yvan.roux@linaro.org>
3714
3715 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
3716
3936bafc
YR
37172013-09-25 Yvan Roux <yvan.roux@linaro.org>
3718 Vladimir Makarov <vmakarov@redhat.com>
3719
3720 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
3721 from the least significant bit.
3722 (strip_address_mutations): Add bitfield operations handling.
3723 (must_be_index_p): Add shifting and rotate operations handling.
3724 (set_address_base): Use must_be_base_p predicate.
4167e8d4 3725 (set_address_index): Use must_be_index_p predicate.
3936bafc 3726
b86f6e9e
AI
37272013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3729 Sergey Lega <sergey.s.lega@intel.com>
3730 Anna Tikhonova <anna.tikhonova@intel.com>
3731 Ilya Tocar <ilya.tocar@intel.com>
3732 Andrey Turetskiy <andrey.turetskiy@intel.com>
3733 Ilya Verbin <ilya.verbin@intel.com>
3734 Kirill Yukhin <kirill.yukhin@intel.com>
3735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3736
3737 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3738 Use new names.
3739 (ix86_expand_vector_move_misalign): Support new unaligned load and
3740 stores and use new names.
3741 (CODE_FOR_sse2_storedqu): Rename to ...
3742 (CODE_FOR_sse2_storedquv16qi): ... this.
3743 (CODE_FOR_sse2_loaddqu): Rename to ...
3744 (CODE_FOR_sse2_loaddquv16qi): ... this.
3745 (CODE_FOR_avx_loaddqu256): Rename to ...
3746 (CODE_FOR_avx_loaddquv32qi): ... this.
3747 (CODE_FOR_avx_storedqu256): Rename to ...
3748 (CODE_FOR_avx_storedquv32qi): ... this.
3749 * config/i386/i386.md (fpint_logic): New.
3750 * config/i386/sse.md (VMOVE): Extend for AVX512.
3751 (VF): Ditto.
3752 (VF_128_256): New.
3753 (VF_512): Ditto.
3754 (VI_UNALIGNED_LOADSTORE): Ditto.
3755 (sse2_avx_avx512f): Ditto.
3756 (sse2_avx2): Extend for AVX512.
3757 (sse4_1_avx2): Ditto.
3758 (avx2_avx512f): New.
3759 (sse): Extend for AVX512.
3760 (sse2): Ditto.
3761 (sse4_1): Ditto.
3762 (avxsizesuffix): Ditto.
3763 (sseintvecmode): Ditto.
3764 (ssePSmode): Ditto.
3765 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
3766 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
3767 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
3768 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
3769 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
3770 (<sse2_avx_avx512f>_storedqu<mode): ... this.
3771 (<sse>_movnt<mode>): Replace constraint "x" with "v".
3772 (STORENT_MODE): Extend for AVX512.
3773 (*absneg<mode>2): Replace constraint "x" with "v".
3774 (*mul<mode>3): Ditto.
3775 (*ieee_smin<mode>3): Ditto.
3776 (*ieee_smax<mode>3): Ditto.
3777 (avx_cmp<mode>3): Replace VF with VF_128_256.
3778 (*<sse>_maskcmp<mode>3_comm): Ditto.
3779 (<sse>_maskcmp<mode>3): Ditto.
3780 (<sse>_andnot<mode>3): Extend for AVX512.
3781 (<code><mode>3, anylogic): Replace VF with VF_128_256.
3782 (<code><mode>3, fpint_logic): New.
3783 (*<code><mode>3): Extend for AVX512.
3784 (avx512flogicsuff): New.
3785 (avx512f_<logic><mode>): Ditto.
3786 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
3787 VF_128_256.
3788 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
3789 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
3790 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
3791 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
3792 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
3793 (xop_vpermil2<mode>3): Ditto.
3794 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
3795 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
3796 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
3797 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
3798
4d44d03c
TT
37992013-09-25 Tom Tromey <tromey@redhat.com>
3800
3801 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
3802 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
3803 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
3804 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
3805 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
3806 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
3807 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
3808 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
3809 (GRAPHITE_HTAB_H): Remove.
3810
86aaf68d
TT
38112013-09-25 Tom Tromey <tromey@redhat.com>
3812
3813 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
3814
c987deb8
TT
38152013-09-25 Tom Tromey <tromey@redhat.com>
3816
3817 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
3818
9439747e
TT
38192013-09-25 Tom Tromey <tromey@redhat.com>
3820
3821 * config/i386/t-i386 (i386.o): Remove.
3822 (i386-c.o): Use COMPILE and POSTCOMPILE.
3823
aefc31a1
TT
38242013-09-25 Tom Tromey <tromey@redhat.com>
3825
3826 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
3827
b6541edc
TT
38282013-09-25 Tom Tromey <tromey@redhat.com>
3829
3830 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
3831 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
3832 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
3833 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
3834 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
3835 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
3836 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
3837 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
3838 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
3839 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
3840 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
3841 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
3842 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
3843 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
3844 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
3845 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
3846 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
3847 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
3848 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
3849 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
3850 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
3851 (tree-ssa-pre.o, tree-ssa-sccvn.o)
3852 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
3853 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
3854 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
3855 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
3856 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
3857 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
3858 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
3859 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
3860 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
3861 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
3862 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
3863 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
3864 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
3865 (graphite-clast-to-gimple.o, graphite-dependences.o)
3866 (graphite-interchange.o, graphite-poly.o)
3867 (graphite-scop-detection.o, graphite-sese-to-poly.o)
3868 (graphite-optimize-isl.o, tree-vect-loop.o)
3869 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
3870 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
3871 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
3872 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
3873 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
3874 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
3875 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
3876 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
3877 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
3878 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
3879 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
3880 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
3881 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
3882 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
3883 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
3884 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
3885 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
3886 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
3887 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
3888 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
3889 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
3890 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
3891 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
3892 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
3893 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
3894 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
3895 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
3896 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
3897 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
3898 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
3899 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
3900 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
3901 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
3902 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
3903 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
3904 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
3905 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
3906 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
3907 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
3908 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
3909 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
3910 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
3911 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
3912 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
3913 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
3914 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
3915 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
3916 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
3917 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
3918 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
3919 (gcov-dump.o): Remove.
3920 (default-c.o): Use COMPILE and POSTCOMPILE.
3921 (CFLAGS-gcc.o): New variable.
3922 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
3923
8c796d19
TT
39242013-09-25 Tom Tromey <tromey@redhat.com>
3925
3926 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
3927 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
3928 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
3929 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
3930 (c-family/c-pragma.o, c-family/c-pretty-print.o)
3931 (c-family/c-semantics.o, c-family/c-ada-spec.o)
3932 (c-family/array-notation-common.o, c-family/stub-objc.o)
3933 (c-family/c-ubsan.o): Remove.
3934
0a6c2227
TT
39352013-09-25 Tom Tromey <tromey@redhat.com>
3936
3937 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
3938
f3bc55f0
TT
39392013-09-25 Tom Tromey <tromey@redhat.com>
3940
3941 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
3942 to add -DENABLE_SHARED_LIBGCC.
3943 (gcc.o): Don't use subshell.
3944
c11c795e
TT
39452013-09-25 Tom Tromey <tromey@redhat.com>
3946
3947 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
3948 * configure.ac: Don't invoke AM_PROG_CC_C_O.
3949 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
3950 * configure, config.in: Rebuild.
3951
043378c3
TT
39522013-09-25 Tom Tromey <tromey@redhat.com>
3953
3954 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
3955 (COMPILE, POSTCOMPILE): New variables.
3956 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
3957 (DEPFILES): New variable.
3958 Include ".Po" files.
3959 * configure.ac: Add checks for dependency checking.
3960 * configure, aclocal.m4: Regenerate.
3961
eab34643
TT
39622013-09-25 Tom Tromey <tromey@redhat.com>
3963
3964 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 3965 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 3966
d2db5e91
TT
39672013-09-25 Tom Tromey <tromey@redhat.com>
3968
3969 * Makefile.in (generated_files): Add options.h,
3970 target-hooks-def.h, insn-opinit.h,
3971 common/common-target-hooks-def.h, pass-instances.def,
3972 c-family/c-target-hooks-def.h.
3973
af33629e
JL
39742013-09-25 Jeff Law <law@redhat.com>
3975
3976 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
3977 than foo[foo.length () - 1] to access last member in a vec.
3978 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
3979
ed0d3051
RB
39802013-09-25 Richard Biener <rguenther@suse.de>
3981
3982 PR middle-end/58521
3983 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
3984
123485ca
JH
39852013-09-25 Jan Hubicka <jh@suse.cz>
3986
3987 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
3988 test.
3989
d70b0f1f
MP
39902013-09-25 Marek Polacek <polacek@redhat.com>
3991
3992 PR sanitizer/58420
3993 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
3994 when determining the type name.
3995
e3f02798
OE
39962013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
3997
3998 * config/sh/sh.md: Fix formatting.
3999
7a5911d3 40002013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 4001
7a5911d3
UB
4002 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
4003 max peel iterations parameter.
4f17aa0b
XDL
4004 * param.def: New parameter.
4005 * doc/invoke.texi: Document New parameter.
4006
0498471b
CL
40072013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
4008
4009 * gimple-pretty-print.c: Various whitespace tweaks.
4010 * tree-core.h: Likewise.
4011 * tree-pretty-print.c: Likewise.
4012 * tree-ssa-alias.c: Likewise.
4013 * tree-ssa-copy.c: Likewise.
4014 * tree-ssanames.c: Likewise.
4015 * tree-ssanames.h: Likewise.
4016 * tree-vrp.c: Likewise.
4017
5a8c2b57
AM
40182013-09-24 Alan Modra <amodra@gmail.com>
4019
4020 PR middle-end/57134
4021 PR middle-end/57586
7a5911d3
UB
4022 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
4023 for output operands that disallow regs. Don't use EXPAND_WRITE on
4024 inout operands.
5a8c2b57 4025
f40333af
RB
40262013-09-24 Richard Biener <rguenther@suse.de>
4027
4028 PR middle-end/58513
4029 * tree.c (reference_alias_ptr_type): Move ...
4030 * alias.c (reference_alias_ptr_type): ... here and implement
4031 in terms of the new reference_alias_ptr_type_1.
4032 (ref_all_alias_ptr_type_p): New helper.
4033 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
4034 use ref_all_alias_ptr_type_p.
4035 (get_deref_alias_set): Add flag_strict_aliasing check here.
4036 (reference_alias_ptr_type_1): New function, split out from ...
4037 (get_alias_set): ... here.
4038 (alias_ptr_types_compatible_p): New function.
4039 * alias.h (reference_alias_ptr_type): Declare.
4040 (alias_ptr_types_compatible_p): Likewise.
4041 * tree.h (reference_alias_ptr_type): Remove.
4042 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
4043 to compare MEM_REF alias types.
4044
583e8bf5
RB
40452013-09-24 Richard Biener <rguenther@suse.de>
4046
4047 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
4048
5e8586d7
MM
40492013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4050
19c3e797
MM
4051 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
4052 reload helper function arrays into a single array reg_addr.
4053 (reload_fpr_gpr): Likewise.
4054 (reload_gpr_vsx): Likewise.
4055 (reload_vsx_gpr): Likewise.
4056 (struct rs6000_reg_addr): Likewise.
4057 (reg_addr): Likewise.
4058 (rs6000_debug_reg_global): Change rs6000_vector_reload,
4059 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
4060 (rs6000_init_hard_regno_mode_ok): Likewise.
4061 (rs6000_secondary_reload_direct_move): Likewise.
4062 (rs6000_secondary_reload): Likewise.
4063
5e8586d7
MM
4064 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
4065 constraints: wu, ww, and wy. Repurpose wv constraint added during
4066 power8 changes. Put wg constraint in alphabetical order.
4067
4068 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
4069 for future work to add ISA 2.07 VSX single precision support.
4070 (-mvsx-scalar-double): Change default from -1 to 1, update
4071 documentation comment.
4072 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
4073 (-mupper-regs-df): New debug switch to control whether DF values
4074 can go in the traditional Altivec registers.
4075 (-mupper-regs-sf): New debug switch to control whether SF values
4076 can go in the traditional Altivec registers.
4077
4078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
4079 and wy constraints.
4080 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
4081 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
4082 Add new constraints, wu/ww/wy. Repurpose wv constraint.
4083 (rs6000_debug_legitimate_address_p): Print if we are running
4084 before, during, or after reload.
4085 (rs6000_secondary_reload): Add a comment.
4086 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
4087
4088 * config/rs6000/constraints.md (wa constraint): Sort w<x>
4089 constraints. Update documentation string.
4090 (wd constraint): Likewise.
4091 (wf constraint): Likewise.
4092 (wg constraint): Likewise.
4093 (wn constraint): Likewise.
4094 (ws constraint): Likewise.
4095 (wt constraint): Likewise.
4096 (wx constraint): Likewise.
4097 (wz constraint): Likewise.
4098 (wu constraint): New constraint for ISA 2.07 SFmode scalar
4099 instructions.
4100 (ww constraint): Likewise.
4101 (wy constraint): Likewise.
358e1993
MM
4102 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
4103 in the previous submissions.
5e8586d7
MM
4104 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
4105
e5af9ddd
RS
41062013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
4107
4108 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
4109 (REG_BR_PROB): Say that the probability is stored in an int_list.
4110 * reg-notes.def: Update commentary to mention INT_LIST.
4111 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
4112 (INT_LIST): New rtx.
4113 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
4114 * rtlanal.c (int_reg_note_p): New function.
4115 (alloc_reg_note): Assert that the note does not have an int argument.
4116 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
4117 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
4118 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
4119 rather than an INSN_LIST. Handle INT_LIST.
4120 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
4121 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
4122 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
4123 Manipulate them as ints rather than rtxes.
4124 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
4125 * regmove.c (copy_src_to_dest): Likewise.
4126 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
4127
4128 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
4129 into the cases that need it.
4130 * config/arm/arm.c (arm_unwind_emit): Likewise.
4131
4132 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
4133 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
4134 * loop-doloop.c (add_test, doloop_modify): Likewise.
4135 * loop-unswitch.c (compare_and_jump_seq): Likewise.
4136 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
4137 * predict.c (combine_predictions_for_insn): Likewise.
4138 * print-rtl.c (print_rtx): Handle INT_LIST.
4139 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
4140 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4141 * config/arm/arm.c (emit_unlikely_jump): Likewise.
4142 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4143 (ix86_split_fp_branch, predict_jump): Likewise.
4144 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
4145 * config/sh/sh.c (expand_cbranchsi4): Likewise.
4146 * config/spu/spu.c (ea_load_store_inline): Likewise.
4147
4148 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
4149 value of a REG_BR_PROB note.
4150 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4151 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
4152 * emit-rtl.c (try_split): Likewise.
4153 * predict.c (br_prob_note_reliable_p): Likewise.
4154 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
4155 * reorg.c (mostly_true_jump): Likewise.
4156 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
4157 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4158 * config/i386/i386.c (ix86_print_operand): Likewise.
4159 * config/ia64/ia64.c (ia64_print_operand): Likewise.
4160 * config/mmix/mmix.c (mmix_print_operand): Likewise.
4161 * config/rs6000/rs6000.c (output_cbranch): Likewise.
4162 * config/s390/s390.c (s390_expand_tbegin): Likewise.
4163 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
4164 * config/sparc/sparc.c (output_cbranch): Likewise.
4165 * config/spu/spu.c (get_branch_target): Likewise.
4166 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
4167 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
4168
450ad0cd
JH
41692013-09-23 Jan Hubicka <jh@suse.cz>
4170
4171 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
4172 for ipa-devirt.
4173 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
4174 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
4175 of external calls
4176 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
4177 (gimple_fold_call): Dump inconsistent devirtualizations; add
4178 sanity check for type based devirtualizations.
4179 * ipa-prop.c: Include ipa-utils.h
4180 (ipa_intraprocedural_devirtualization): Add sanity check.
4181 (try_make_edge_direct_virtual_call): Likewise.
4182
cefce769
EB
41832013-09-23 Eric Botcazou <ebotcazou@adacore.com>
4184
4185 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
4186 assignment statements.
4187
a895a2b8
KV
41882013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4189
4190 * gimple-pretty-print.c (dump_ssaname_info): New function.
4191 (dump_gimple_phi): Call it.
4192 (pp_gimple_stmt_1): Likewise.
4193 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
4194 (range_info_def): Declare.
4195 * tree-pretty-print.c (pp_double_int): New function.
4196 (dump_generic_node): Call it.
4197 * tree-pretty-print.h (pp_double_int): Declare.
4198 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
4199 * tree-ssanames.h (range_info_def): New structure.
4200 (value_range_type): Move definition here.
4201 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
4202 Declare.
4203 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
4204 initialization.
4205 (set_range_info): New function.
4206 (get_range_info): Likewise.
4207 (duplicate_ssa_name_range_info): Likewise.
4208 (duplicate_ssa_name_fn): Check pointer type and call
4209 duplicate_ssa_name_range_info.
4210 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4211 * tree-vrp.c (value_range_type): Remove definition, now in
4212 tree-ssanames.h.
7a5911d3 4213 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
4214 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
4215 (SSA_NAME_RANGE_INFO): New macro.
4216
984af6ac
RB
42172013-09-23 Richard Biener <rguenther@suse.de>
4218
4219 PR tree-optimization/58464
4220 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 4221 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
4222 (phi_translate_1): Remove recursion detection here.
4223 (phi_translate): Pre-seed the cache with NULL to catch
4224 recursion here in a more generic way.
4225 (bitmap_find_leader): Adjust comment.
4226 (get_representative_for): Dump value-numbers.
4227 (create_expression_by_pieces): Likewise.
4228 (insert_into_preds_of_block): Likewise.
4229
0e26cf79
CB
42302013-09-23 Christian Bruel <christian.bruel@st.com>
4231
4232 PR target/58475
4233 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
4234 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
4235
4d0e5b54
JG
42362013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4237
4238 Revert r202780:
4239 2013-09-20 Renlin Li <renlin.li@arm.com>
4240
7a5911d3
UB
4241 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
4242 plus_constant.
4d0e5b54
JG
4243 (aarch64_expand_epilogue): Likewise.
4244 (aarch64_legitimize_reload_address): Likewise.
4245
ca081cc8
EB
42462013-09-22 Eric Botcazou <ebotcazou@adacore.com>
4247
4248 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
4249 NULL_TREE before pushing them onto the vector. Likewise for labels.
4250
8fc53a5f
EB
42512013-09-21 Eric Botcazou <ebotcazou@adacore.com>
4252
4253 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
4254 comparison operators when -fno-trapping-math is in effect.
4255 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
4256 comparison operators in TFmode and assert that unsupported operators
4257 cannot reach here.
4258 (ia64_print_operand): Likewise.
4259
42602013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
4261
4262 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
4263 (sse_typeless_stores): Enable for core
4264 (sse_load0_by_pxor): Likewise.
4265 (four_jump_limit): Disable for core.
4266 (pad_returns): Likewise.
4267 (avoid_vector_decode): Likewise.
4268 (fuse_cmp_and_branch): Enable for cores.
4269 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
4270
578e51e6
JDA
42712013-09-20 John David Anglin <danglin@gcc.gnu.org>
4272
96ce28a3
JDA
4273 PR middle-end/56791
4274 * config/pa/pa.c (pa_option_override): Disable auto increment and
4275 decrement instructions until reload is completed.
4276
578e51e6
JDA
4277 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
4278 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
4279 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4280
6fcd3a13 42812013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 4282 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
4283
4284 * config/rl78/rl78.c: Various whitespace and comment tweaks.
4285 (need_to_save): Save bank 0 on interrupts.
4286 (characterize_address): Strip far address wrappers.
4287 (rl78_as_legitimate_address): Likewise.
4288 (transcode_memory_rtx): Likewise.
4289 (rl78_peep_movhi_p): Disable this peephole after devirt.
4290 (rl78_propogate_register_origins): Forget all origins when a
4291 CLOBBER is seen.
4292 * config/rl78/rl78-virt.md: Various whitespace tweaks.
4293 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
4294 peephole2's.
4295 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
4296 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
4297 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
4298 relocating.
4299 * config/rl78/constraints.md: Various whitespace and paren tweaks.
4300
4a08db33
JDA
43012013-09-20 John David Anglin <danglin@gcc.gnu.org>
4302
4303 * config/pa/pa.md: In "scc" insn patterns, change output template to
4304 handle const0_rtx in reg_or_0_operand operands.
4305
7691132c
JBG
43062013-09-20 Martin Husemann <martin@NetBSD.org>
4307
4308 PR target/56875
4309 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
4310 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
4311
a3cc13cc
RB
43122013-09-20 Richard Biener <rguenther@suse.de>
4313
4314 PR middle-end/58484
4315 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
4316 remembering SSA name version and block index.
4317 (new_scev_info_str): Adjust.
4318 (hash_scev_info): Likewise. Also hash the block index.
4319 (eq_scev_info): Adjust.
4320 (find_var_scev_info): Likewise.
4321 (struct instantiate_cache_entry): Remove.
4322 (struct instantiate_cache_type): Use a htab to map name, block
4323 to chrec.
4324 (instantiate_cache_type::~instantiate_cache_type): Adjust.
4325 (get_instantiated_value_entry): Likewise.
4326 (hash_idx_scev_info, eq_idx_scev_info): New functions.
4327 (instantiate_scev_name): Adjust.
4328
925f3871
JL
43292013-09-20 Jeff Law <law@redhat.com>
4330
4331 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
4332
2888c331
YZ
43332013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
4334
4335 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
4336 Call aarch64_simd_expand_args to update op[argc].
4337
0a811e96
BS
43382013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
4339
7a5911d3
UB
4340 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
4341 plugin argument.
0a811e96 4342
0078f462
BS
43432013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
4344
7a5911d3
UB
4345 * gengtype.c (file_rules): Added rule for *.cc files.
4346 (get_output_file_with_visibility): Give fatal message when no
4347 rules found.
0078f462 4348
d20e48b0
RL
43492013-09-20 Renlin Li <renlin.li@arm.com>
4350
4351 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
4352 (aarch64_expand_epilogue): Likewise.
4353 (aarch64_legitimize_reload_address): Likewise.
4354
59bb1544
BE
43552013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4356
4357 PR middle-end/57748
4358 * expr.c (expand_assignment): Remove misalignp code path.
4359
a5430019
MP
43602013-09-20 Marek Polacek <polacek@redhat.com>
4361
4362 PR sanitizer/58413
4363 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
4364 TYPE_PRECISION. Add asserts.
4365
9fed7f3a
RB
43662013-09-20 Richard Biener <rguenther@suse.de>
4367
4368 PR tree-optimization/58453
4369 * tree-loop-distribution.c (distribute_loop): Apply the cost
4370 model for -ftree-loop-distribute-patterns, too.
4371
a820c834
RB
43722013-09-20 Richard Biener <rguenther@suse.de>
4373
4374 PR middle-end/58473
4375 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
4376 make type comparison less strict.
4377
3cbe17f7
AM
43782013-09-20 Alan Modra <amodra@gmail.com>
4379
4380 * configure: Regenerate.
4381 * aclocal.m4: Regenerate.
4382
87fccdbb
MP
43832013-09-20 Marek Polacek <polacek@redhat.com>
4384
4385 PR other/58467
4386 * doc/extend.texi: Document that attribute used is meant to be used
4387 on variables with static storage duration.
4388
8928eff3
JJ
43892013-09-19 Jakub Jelinek <jakub@redhat.com>
4390
4391 PR tree-optimization/58472
4392 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
4393 simd_lane_access set inv_p = false.
4394 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
4395 the simduid magic VAR_DECL.
4396
b7b28c53
JH
43972013-09-19 Jan Hubicka <jh@suse.cz>
4398
4399 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
4400
83ae86f5
JL
44012013-09-17 Jeff Law <law@redhat.com>
4402
4403 * tree-ssa-dom.c (record_temporary_equivalences): New function
4404 split out of dom_opt_dom_walker::after_dom_children.
4405 (dom_opt_dom_walker::thread_across_edge): Move common code
4406 in here from dom_opt_dom_walker::after_dom_children.
4407 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
4408
9d532162
JH
44092013-09-19 Jan Hubicka <jh@suse.cz>
4410
4411 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
4412 (TARGET_GENERIC): Use PROCESOR_GENERIC
4413 (enum processor_type): Unify generic32 and 64.
4414 * i386.md (cpu): Likewise.
4415 * x86-tune.def (use_leave): Enable for generic32.
4416 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
4417 * athlon.md: Change generic64 to generic in all occurences.
4418 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
4419 (ix86_target_macros_internal): Likewise.
4420 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
4421 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
4422 to ..
9d532162
JH
4423 (generic_memcpy, generic_memset, generic_cost): This one.
4424 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
4425 (m_GENERIC32, m_GENERIC64): Remove.
4426 (m_GENERIC): Turn into one flag.
4427 (processor_target): Unify generic tunnings.
4428 (ix86_option_override_internal): Replace generic32/64 by generic.
4429 (ix86_issue_rate): Likewise.
4430 (ix86_adjust_cost): Likewise.
4431
188c7d00
JH
44322013-09-19 Jan Hubicka <jh@suse.cz>
4433
4434 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
4435 of speculative flag.
4436
4befd127
JJ
44372013-09-19 Jakub Jelinek <jakub@redhat.com>
4438
4439 * omp-low.c (expand_omp_sections): Always pass len - 1 to
4440 GOMP_sections_start, even if !exit_reachable.
4441
8a26ad39
VM
44422013-09-18 Vladimir Makarov <vmakarov@redhat.com>
4443
4444 * lra-constraints.c (need_for_all_save_p): Use macro
4445 HARD_REGNO_CALL_PART_CLOBBERED.
4446 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
4447 set up pseudo conflict hard regs.
4448
09487185
MM
44492013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4450
4451 PR target/58452
4452 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
4453 operands.
4454
080cbf9e
VM
44552013-09-18 Vladimir Makarov <vmakarov@redhat.com>
4456
4457 PR rtl-optimization/58438
4458 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
4459 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
4460 from previous subpasses.
4461
a0f70fcb
RE
44622013-09-18 Richard Earnshaw <rearnsha@arm.com>
4463
4464 * arm.c (arm_get_frame_offsets): Validate architecture supports
4465 LDRD/STRD before accepting the tuning preference.
4466 (arm_expand_prologue): Likewise.
4467 (arm_expand_epilogue): Likewise.
4468
0547c9b6
RB
44692013-09-18 Richard Biener <rguenther@suse.de>
4470
4471 PR tree-optimization/58417
4472 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
4473 have chrecs with symbols defined in the loop as operands.
4474 (chrec_fold_multiply): Likewise.
4475 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
4476 parameters before folding binary operations.
4477 (struct instantiate_cache_entry_hasher): Remove.
4478 (struct instantiate_cache_type): Use a pointer-map.
4479 (instantiate_cache_type::instantiate_cache_type): New function.
4480 (instantiate_cache_type::get): Likewise.
4481 (instantiate_cache_type::set): Likewise.
4482 (instantiate_cache_type::~instantiate_cache_type): Adjust.
4483 (get_instantiated_value_entry): Likewise.
4484 (global_cache): New global.
4485 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
4486 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
4487 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
4488 (instantiate_scev_name): Adjust.
4489 (instantiate_scev): Construct global instead of local cache.
4490 (resolve_mixers): Likewise.
4491
309dc1aa
DM
44922013-09-18 Daniel Morris <danielm@ecoscentric.com>
4493 Paolo Carlini <paolo.carlini@oracle.com>
4494
4495 PR c++/58458
4496 * doc/implement-cxx.texi: Fix references to the C++ standards.
4497
995a1b4a
JJ
44982013-09-18 Jakub Jelinek <jakub@redhat.com>
4499
4500 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
4501 * tree-vect-data-refs.c (vect_analyze_data_refs): For
4502 simd_lane_access drs, update also DR_ALIGNED_TO.
4503
ce6923c5
MP
45042013-09-18 Marek Polacek <polacek@redhat.com>
4505
4506 PR sanitizer/58411
4507 * doc/extend.texi: Document no_sanitize_undefined attribute.
4508 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
4509 no_sanitize_undefined attribute.
4510
d30d00a2
NC
45112013-09-18 Nick Clifton <nickc@redhat.com>
4512
4513 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
4514 (ASM_DECLARE_FUNCTION_NAME): Define.
4515
4d9192b5
TS
45162013-09-17 Trevor Saunders <tsaunders@mozilla.com>
4517
4518 * compare-elim.c (find_comparison_dom_walker): New class
4519 (find_comparisons_in_bb): Rename to
4520 find_comparison_dom_walker::before_dom_children
4521 (find_comparisons): Adjust
4522 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
4523 adjust.
4524 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
4525 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
4526 (init_walk_dominator_tree): Remove declaration.
4527 (fini_walk_dominator_tree): Remove declaration.
4528 * fwprop.c (single_def_use_dom_walker): New class
4529 (single_def_use_enter_block): Convert to
4530 single_def_use_dom_walker::before_dom_children.
4531 (single_def_use_leave_block): Convert to
4532 single_def_use_dom_walker::after_dom_children.
4533 (build_single_def_use_links): Adjust.
4534 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
4535 class.
4536 (find_candidates_in_block): Convert to
4537 find_candidates_dom_walker::before_dom_children.
4538 (execute_strength_reduction): Adjust.
4539 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
4540 (sese_dom_walker): New class.
4541 (sese_dom_walker::sese_dom_walker): New constructor.
4542 (sese_dom_walker::~sese_dom_walker): New destructor.
4543 (build_sese_conditions_before): Convert to
4544 sese_dom_walker::before_dom_children.
4545 (build_sese_conditions_after): Convert to
4546 sese_dom_walker::after_dom_children.
4547 (build_poly_scop): Adjust
4548 * tree-into-ssa.c (rewrite_dom_walker): New class
4549 (rewrite_enter_block): Convert to
4550 rewrite_dom_walker::before_dom_children.
4551 (rewrite_leave_block): Convert to
4552 rewrite_dom_walker::after_dom_children.
4553 (rewrite_update_dom_walker): New class.
4554 (rewrite_update_enter_block): Convert to
4555 rewrite_update_dom_walker::before_dom_children.
4556 (rewrite_update_leave_block): Convert to
4557 rewrite_update_dom_walker::after_dom_children.
4558 (rewrite_blocks, rewrite_into_ssa): Adjust.
4559 (mark_def_dom_walker): New class.
4560 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
4561 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
4562 (mark_def_sites_blocks): Convert to
4563 mark_def_dom_walker::before_dom_children.
4564 (mark_def_site_blocks): Remove.
4565 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
4566 (tree_ssa_dominator_optimize): Adjust.
4567 (dom_thread_across_edge): Convert to method
4568 dom_opt_dom_walker::thread_across_edge.
4569 (dom_opt_enter_block): Convert to member function
4570 dom_opt_dom_walker::before_dom_children.
4571 (dom_opt_leave_block): Convert to member function
4572 dom_opt_dom_walker::after_dom_children.
4573 * tree-ssa-dse.c (dse_dom_walker): New class.
4574 (dse_enter_block): Convert to member function
4575 dse_dom_walker::before_dom_children.
4576 (tree_ssa_dse): Adjust.
4577 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
4578 (determine_invariantness_stmt): Convert to method
4579 invariantness_dom_walker::before_dom_children.
4580 (determine_invariantness): Remove
4581 (move_computations_dom_walker): New class.
4582 (move_computations_stmt): Convert to method
4583 move_computations_dom_walker::before_dom_children.
4584 (move_computations, tree_ssa_lim): Adjust.
4585 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
4586 (nt_init_block): Make method
4587 notrappping_dom_walker::before_dom_children.
4588 (nt_fini_block): Make
4589 method nontrapping_dom_walker::after_dom_children.
4590 (get_non_trapping): Adjust.
4591 * tree-ssa-pre.c (eliminate_dom_walker): New class.
4592 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
4593 (eliminate_leave_block): Make method.
4594 eliminate_dom_walker::after_dom_children.
4595 (eliminate): Adjust
4596 * tree-ssa-strlen.c (strlen_dom_walker): New class.
4597 (strlen_enter_block): Make method
4598 strlen_dom_walker::before_dom_children.
4599 (strlen_leave_block): Make
4600 method strlen_dom_walker::after_dom_children.
4601 (tree_ssa_strlen): Adjust.
4602 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
4603 (tree_ssa_uncprop): Adjust.
4604 (uncprop_leave_block): Make method
4605 uncprop_dom_walker::after_dom_children.
4606 (uncprop_leave_block): Make method
4607 uncprop_dom_walker::before_dom_children.
4608
3b3cc26b
BC
46092013-09-18 Bin Cheng <bin.cheng@arm.com>
4610
7a5911d3
UB
4611 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
4612 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 4613
b5ba3a9b
NC
46142013-09-17 Nick Clifton <nickc@redhat.com>
4615
4616 * config/rl78/rl78-real.md (bf): New pattern.
4617 (bt): New pattern.
4618 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
4619 (rl78_print_operand): Do not put a # before a %B.
4620 * config/rl78/rl78.opt: Tweak doc strings.
4621
09d5094b
DD
46222013-09-17 DJ Delorie <dj@redhat.com>
4623
4624 * config/rl78/constraints.md (Wcv): Allow up to $r31.
4625 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
4626 (rl78_option_override): Likewise, if -mallregs.
4627 (is_virtual_register): Likewise.
4628 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
4629 (REGNO_OK_FOR_BASE_P): Likewise.
4630 * config/rl78/rl78.opt (-mallregs): New.
4631
2ba1dca1
NC
46322013-09-17 Nick Clifton <nickc@redhat.com>
4633
4634 * config/rl78/rl78.c (need_to_save): Change return type to bool.
4635 For interrupt functions: save all call clobbered registers if the
4636 interrupt handler is not a leaf function.
4637 (rl78_expand_prologue): Always recompute the frame information.
4638 For interrupt functions: only select bank 0 if one of the bank 0
4639 registers is going to be psuhed.
4640
2e7c3f21
DD
46412013-09-17 DJ Delorie <dj@redhat.com>
4642
4643 * config/rl78/constraints.md: For each W* constraint, rename to C*
4644 and create a W* constraint that checks for an optional ES: prefix
4645 pattern also.
4646 * config/rl78/rl78.md (UNS_ES_ADDR): New.
4647 (es_addr): New. Used to wrap far addresses.
4648 * config/rl78/rl78-protos.h (rl78_es_addr): New.
4649 (rl78_es_base): New.
4650 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
4651 wrapped far addresses.
4652 (rl78_print_operand_1): Unwrap far addresses before processing.
4653 (rl78_lo16): Wrap far addresses in unspecs.
4654 (rl78_es_addr): New.
4655 (rl78_es_base): New.
4656 (insn_ok_now): Check for not-yet-wrapped far addresses.
4657 (transcode_memory_rtx): Properly re-wrap far addresses.
4658
5c26a69a
SH
46592013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4660
4661 * config/sparc/t-rtems: Add leon3 multilibs.
4662
181f5f3e
CH
46632013-09-17 Cong Hou <congh@google.com>
4664
4665 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
4666 when checking the dot production pattern. The type of rhs operand
4667 of multiply is now checked correctly.
4668
8d34e421
JL
46692013-09-17 Jeff Law <law@redhat.com>
4670
4671 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
4672 edge implied equivalences into successor phis.
4673 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
4674 here from tree-ssa-threadedge.c.
4675 (mark_threaded_blocks): When threading through a joiner, if both
4676 successors of the joiner's clone reach the same block, verify the
4677 PHI arguments are equal. If not, cancel the jump threading request.
4678 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
4679 tree-ssa-threadupdate.c
4680 (thread_across_edge): Don't check PHI argument equality when
4681 threading through joiner block here.
7a5911d3 4682
c152901f
AM
46832013-09-17 Andrew MacLeod <amacleod@redhat.com>
4684
4685 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
4686 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
4687 (warn_uninit, warn_uninitialized_vars,
4688 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
4689 Move to tree-ssa-uninit.c.
78cedfb1 4690 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
7a5911d3 4691 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
4692 ssa_undefined_value_p.
4693 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
4694 (warn_uninit, warn_uninitialized_vars,
4695 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
4696 Move from tree-ssa.c.
4697 * tree-ssa.h: Adjust prototypes.
c152901f 4698
b631d45a
JH
46992013-09-17 Jan Hubicka <jh@suse.cz>
4700
4701 PR middle-end/58332
4702 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
4703 * ipa-inline.c (can_inline_edge_p): Do not downgrade
4704 FUNCTION_NOT_OPTIMIZED.
4705 * ipa-inline-analysis.c (compute_inline_parameters): Function
4706 not optimized is not inlinable unless it is alwaysinline.
4707 (inline_analyze_function): Force calls in not optimized
4708 function not inlinable.
4709
5b79657a
JH
47102013-09-17 Jan Hubicka <jh@suse.cz>
4711
4712 PR middle-end/58329
4713 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
4714 to return NULL.
4715 * ipa.c (function_and_variable_visibility): Likewise.
4716 * ipa-profile.c (ipa_profile): Likewise.
4717
27442c24
BE
47182013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4719
4720 PR ipa/58398
4721 * cgraph.c (cgraph_function_body_availability): Check for ifunc
4722 attribute, and don't inline the resolver in this case.
4723
753b9bc3
TJ
47242013-09-17 Teresa Johnson <tejohnson@google.com>
4725
4726 * coverage.c (get_coverage_counts): Add missing newline.
4727
e3d3cfb4
KT
47282013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4729
4730 PR tree-optimization/58088
4731 * fold-const.c (mask_with_trailing_zeros): New function.
4732 (fold_binary_loc): Make sure we don't recurse infinitely
4733 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
4734 Use mask_with_trailing_zeros where appropriate.
4735
9a0ac98f
YR
47362013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
4737
4738 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
4739 of 'prev' var to get better distance estimation.
4740
78bbd765
EB
47412013-09-17 Eric Botcazou <ebotcazou@adacore.com>
4742
4743 * tree-inline.h (struct copy_body_data): Add transform_parameter.
4744 * tree-inline.c (is_parameter_of): New predicate.
4745 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
4746 a parameter has been remapped.
4747 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
4748 (optimize_inline_calls): Initialize transform_parameter.
4749 (copy_gimple_seq_and_replace_locals): Likewise.
4750 (tree_function_versioning): Likewise.
4751 (maybe_inline_call_in_expr): Likewise.
4752
cad055a4
NC
47532013-09-17 Nick Clifton <nickc@redhat.com>
4754
4755 * config/msp430/msp430-protos.h: Add prototypes for new functions.
4756 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
4757 interrupt handlers.
4758 (is_attr_func): New function.
4759 (msp430_is_interrupt_func): New function.
4760 (is_naked_func): New function.
4761 (is_reentrant_func): New function.
4762 (is_critical_func): New function.
4763 (msp430_start_function): Add annotations for function attributes.
4764 (msp430_attr): New function.
4765 (msp430_attribute_table): New.
4766 (msp430_function_section): New function.
4767 (TARGET_ASM_FUNCTION_SECTION): Define.
4768 (msp430_builtin): New enum.
4769 (msp430_init_builtins): New function.
4770 (msp430_builtin_devl): New function.
4771 (msp430_expand_builtin): New function.
4772 (TARGET_INIT_BUILTINS): Define.
4773 (TARGET_EXPAND_BUILTINS): Define.
4774 (TARGET_BUILTIN_DECL): Define.
4775 (msp430_expand_prologue): Add support for naked, interrupt,
4776 critical and reentrant functions.
4777 (msp430_expand_epilogue): Likewise.
4778 (msp430_print_operand): Handle 'O' character.
4779 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
4780 NO_TRAMPOLINES.
4781 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
4782 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
4783 (pushm): Use a 'n' rather than an 'i' constraint.
4784 (msp_return): Add generation of the interrupt return instruction.
4785 (disable_interrupts): New pattern.
4786 (enable_interrupts): New pattern.
4787 (push_intr_state): New pattern.
4788 (pop_intr_state): New pattern.
4789 (bic_SR): New pattern.
4790 (bis_SR): New pattern.
4791 * doc/extend.texi: Document MSP430 function attributes and builtin
4792 functions.
4793
deb6c11a
RB
47942013-09-17 Richard Biener <rguenther@suse.de>
4795
4796 PR tree-optimization/58432
4797 * tree-loop-distribution.c (tree_loop_distribution): Also
4798 scan PHIs for outside loop uses and seed a partition from them.
4799
c068654b
BC
48002013-09-17 Bin Cheng <bin.cheng@arm.com>
4801
4802 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
4803 (restructure_reference): Call backtrace_base_for_ref.
4804
567969e4
AM
48052013-09-17 Alan Modra <amodra@gmail.com>
4806
4807 PR target/57589
7a5911d3
UB
4808 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
4809 patch.
567969e4 4810
5c0029de
DD
48112013-09-16 DJ Delorie <dj@redhat.com>
4812
4813 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
4814 vregs location for RL78/G10.
4815 (rl78_expand_prologue): Avoid SEL on G10.
4816 (rl78_expand_epilogue): Likewise.
4817 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
4818 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
4819 __RL78_G10__ when appropriate.
4820 (ASM_SPEC): Pass -mg10 along to the assembler.
4821 * config/rl78/rl78.md (sel_rb): Disable for G10.
4822 * config/rl78/rl78.opt: Add -mg10 option.
4823 * config/rl78/t-rl78: Add -mg10 multilib.
4824
ea0f3e87
XDL
48252013-09-16 Xinliang David Li <davidxl@google.com>
4826
4827 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
4828 * omp-low.c (omp_max_vf): Ditto.
4829 (expand_omp_simd): Ditto.
4830 * tree-vectorizer.c (vectorize_loops): Ditto.
4831 (gate_vect_slp): Ditto.
4832 (gate_increase_alignment): Ditto.
4833 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
4834 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
4835 (gate_tree_vectorize): Name change.
4836 (tree_vectorize): Ditto.
4837 (pass_vectorize::gate): Call new function.
4838 (pass_vectorize::execute): Ditto.
7a5911d3 4839 * opts.c: O3 default setting change.
ea0f3e87
XDL
4840 (finish_options): Check new flag.
4841 * doc/invoke.texi: Document new flags.
4842 * common.opt: New flags.
4843
4f3da2e5
AS
48442013-09-16 Andreas Schwab <schwab@linux-m68k.org>
4845
4846 * doc/tm.texi.in (Cond Exec Macros): Remove node.
4847 (Condition Code): Don't reference it.
4848 * doc/tm.texi: Regenerate.
4849
aa940f7c
VM
48502013-09-16 Vladimir Makarov <vmakarov@redhat.com>
4851
4852 PR middle-end/58418
4853 * lra-constraints.c (undo_optional_reloads): Consider all optional
4854 reload even if it did not get a hard reg.
4855
e645e942
TJ
48562013-09-16 Teresa Johnson <tejohnson@google.com>
4857
4858 * dumpfile.c (dump_loc): Remove newline emission.
4859 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
4860 emission to dump_printf_loc calls where missing.
4861 (vect_mark_for_runtime_alias_test): Ditto.
4862 (vect_analyze_data_ref_dependence): Ditto.
4863 (vect_analyze_data_ref_dependences): Ditto.
4864 (vect_slp_analyze_data_ref_dependence): Ditto.
4865 (vect_slp_analyze_data_ref_dependences): Ditto.
4866 (vect_compute_data_ref_alignment): Ditto.
4867 (vect_update_misalignment_for_peel): Ditto.
4868 (vect_verify_datarefs_alignment): Ditto.
4869 (vector_alignment_reachable_p): Ditto.
4870 (vect_get_data_access_cost): Ditto.
4871 (vect_enhance_data_refs_alignment): Ditto.
4872 (vect_find_same_alignment_drs): Ditto.
4873 (vect_analyze_data_refs_alignment): Ditto.
4874 (vect_analyze_group_access): Ditto.
4875 (vect_analyze_data_ref_access): Ditto.
4876 (vect_analyze_data_ref_accesses): Ditto.
4877 (vect_prune_runtime_alias_test_list): Ditto.
4878 (vect_analyze_data_refs): Ditto.
4879 (vect_create_addr_base_for_vector_ref): Ditto.
4880 (vect_create_data_ref_ptr): Ditto.
4881 (vect_grouped_store_supported): Ditto.
4882 (vect_grouped_load_supported): Ditto.
4883 * value-prof.c (check_counter): Ditto.
4884 (check_ic_target): Ditto.
4885 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
4886 (vect_recog_widen_mult_pattern): Ditto.
4887 (vect_recog_widen_sum_pattern): Ditto.
4888 (vect_recog_over_widening_pattern): Ditto.
4889 (vect_recog_widen_shift_pattern): Ditto.
4890 (vect_recog_rotate_pattern): Ditto.
4891 (vect_recog_vector_vector_shift_pattern): Ditto.
4892 (vect_recog_divmod_pattern): Ditto.
4893 (vect_recog_mixed_size_cond_pattern): Ditto.
4894 (vect_recog_bool_pattern): Ditto.
4895 (vect_pattern_recog_1): Ditto.
4896 (vect_pattern_recog): Ditto.
4897 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
4898 (vect_is_simple_iv_evolution): Ditto.
4899 (vect_analyze_scalar_cycles_1): Ditto.
4900 (vect_get_loop_niters): Ditto.
4901 (vect_analyze_loop_1): Ditto.
4902 (vect_analyze_loop_form): Ditto.
4903 (vect_analyze_loop_operations): Ditto.
4904 (vect_analyze_loop_2): Ditto.
4905 (vect_analyze_loop): Ditto.
4906 (report_vect_op): Ditto.
4907 (vect_is_slp_reduction): Ditto.
4908 (vect_is_simple_reduction_1): Ditto.
4909 (vect_get_known_peeling_cost): Ditto.
4910 (vect_estimate_min_profitable_iters): Ditto.
4911 (vect_model_reduction_cost): Ditto.
4912 (vect_model_induction_cost): Ditto.
4913 (get_initial_def_for_induction): Ditto.
4914 (vect_create_epilog_for_reduction): Ditto.
4915 (vectorizable_reduction): Ditto.
4916 (vectorizable_induction): Ditto.
4917 (vectorizable_live_operation): Ditto.
4918 (vect_loop_kill_debug_uses): Ditto.
4919 (vect_transform_loop): Ditto.
4920 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
4921 (vect_stmt_relevant_p): Ditto.
4922 (process_use): Ditto.
4923 (vect_mark_stmts_to_be_vectorized): Ditto.
4924 (vect_model_simple_cost): Ditto.
4925 (vect_model_promotion_demotion_cost): Ditto.
4926 (vect_model_store_cost): Ditto.
4927 (vect_get_store_cost): Ditto.
4928 (vect_model_load_cost): Ditto.
4929 (vect_get_load_cost): Ditto.
4930 (vect_init_vector_1): Ditto.
4931 (vect_get_vec_def_for_operand): Ditto.
4932 (vect_finish_stmt_generation): Ditto.
4933 (vectorizable_call): Ditto.
4934 (vectorizable_conversion): Ditto.
4935 (vectorizable_assignment): Ditto.
4936 (vectorizable_shift): Ditto.
4937 (vectorizable_operation): Ditto.
4938 (vectorizable_store): Ditto.
4939 (vectorizable_load): Ditto.
4940 (vectorizable_condition): Ditto.
4941 (vect_analyze_stmt): Ditto.
4942 (vect_transform_stmt): Ditto.
4943 (vect_is_simple_use): Ditto.
4944 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
4945 (vect_can_advance_ivs_p): Ditto.
4946 (vect_update_ivs_after_vectorizer): Ditto.
4947 (vect_do_peeling_for_loop_bound): Ditto.
4948 (vect_gen_niters_for_prolog_loop): Ditto.
4949 (vect_update_inits_of_drs): Ditto.
4950 (vect_create_cond_for_alias_checks): Ditto.
4951 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
4952 (vect_build_slp_tree_1): Ditto.
4953 (vect_supported_load_permutation_p): Ditto.
4954 (vect_analyze_slp_instance): Ditto.
4955 (vect_analyze_slp): Ditto.
4956 (vect_make_slp_decision): Ditto.
4957 (vect_detect_hybrid_slp): Ditto.
4958 (vect_bb_vectorization_profitable_p): Ditto.
4959 (vect_slp_analyze_bb_1): Ditto.
4960 (vect_update_slp_costs_according_to_vf): Ditto.
4961 (vect_get_mask_element): Ditto.
4962 (vect_transform_slp_perm_load): Ditto.
4963 (vect_schedule_slp_instance): Ditto.
4964 (vect_schedule_slp): Ditto.
4965 (vect_slp_transform_bb): Ditto.
4966 * profile.c (read_profile_edge_counts): Ditto.
4967 (compute_branch_probabilities): Ditto.
4968 * coverage.c (get_coverage_counts): Ditto.
4969
46f851f3
DN
49702013-09-16 Diego Novillo <dnovillo@google.com>
4971
7a5911d3 4972 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 4973
1632a686
JH
49742013-09-16 Jan Hubicka <jh@suse.cz>
4975
4976 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 4977 abstract functions; for static functions check the presence of body.
1632a686 4978
828e70c1
JG
49792013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
4980
4981 * config/aarch64/aarch64-simd-builtins.def (fma): New.
4982 * config/aarch64/aarch64-simd.md
4983 (aarch64_mla_elt<mode>): New.
4984 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
4985 (aarch64_mls_elt<mode>): Likewise.
4986 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
4987 (aarch64_fma4_elt<mode>): Likewise.
4988 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
4989 (aarch64_fma4_elt_to_128v2df): Likewise.
4990 (aarch64_fma4_elt_to_64df): Likewise.
4991 (fnma<mode>4): Likewise.
4992 (aarch64_fnma4_elt<mode>): Likewise.
4993 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
4994 (aarch64_fnma4_elt_to_128v2df): Likewise.
4995 (aarch64_fnma4_elt_to_64df): Likewise.
4996 * config/aarch64/iterators.md (VDQSF): New.
4997 * config/aarch64/arm_neon.h
4998 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
4999 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
5000
779aea46
JG
50012013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
5002
5003 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
5004 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
5005 (aarch64_mul3_elt_to_128df): Likewise.
5006 (aarch64_mul3_elt_to_64v2df): Likewise.
5007 * config/aarch64/iterators.md (VEL): Also handle DFmode.
5008 (VMUL): New.
5009 (VMUL_CHANGE_NLANES) Likewise.
5010 (h_con): Likewise.
5011 (f): Likewise.
5012 * config/aarch64/arm_neon.h
5013 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
5014
a407a750
JG
50152013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
5016
5017 * config/aarch64/arm_neon.h
5018 (vcvtx_high_f32_f64): Fix parameters.
5019
f77e2d2d 50202013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 5021 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 5022
a5bd71fa 5023 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 5024
36875e8f
RB
50252013-09-16 Richard Biener <rguenther@suse.de>
5026
5027 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
5028 (dot_rdg_1): Handle control_dd.
5029 (create_edge_for_control_dependence): New function.
5030 (create_rdg_edges): Add control dependences if asked for.
5031 (build_rdg): Likewise.
5032 (generate_loops_for_partition): If there are not necessary
5033 control stmts remove all their dependencies.
5034 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
5035 (distribute_loop): Pass on control dependences.
5036 (tree_loop_distribution): Compute control dependences and remove
5037 restriction on number of loop nodes.
5038
96e24d49
JJ
50392013-09-16 Jakub Jelinek <jakub@redhat.com>
5040
5041 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
5042 for internal calls.
5043
40dbb05c
RS
50442013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
5045
5046 * cse.c (try_const_anchors): Punt on CC modes.
5047
97191ad0
JBG
50482013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5049
5050 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
5051
403a3fb7
JDA
50522013-09-14 John David Anglin <danglin@gcc.gnu.org>
5053
5054 PR target/58382
5055 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
5056 calls to word_mode.
5057
fb5610fb
IS
50582013-09-14 Iain Sandoe <iain@codesourcery.com>
5059
5060 PR target/48094
5061 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
5062 seen.
5063 (darwin_objc1_section): Likewise.
fb5610fb
IS
5064 (darwin_file_end): Emit Image Info section when required.
5065
afdec9bd
JH
50662013-09-14 Jan Hubicka <jh@suse.cz>
5067
5068 * tree-into-ssa.c (gate_into_ssa): New.
5069 (pass_data_build_ssa): Use it.
5070 * cgraph.h (expand_thunk): Update prototype.
5071 * cgraphunit.c (analyze_function): Expand thunks early.
5072 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
5073 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
5074 set lowered flag; do not add new function.
5075 (assemble_thunks_and_aliases): Update.
5076 * tree-ssa.c (gate_init_datastructures): New gate.
5077 (pass_data_init_datastructures): Use it.
5078
492d1e0a
IS
50792013-09-14 Iain Sandoe <iain@codesourcery.com>
5080
5081 PR target/58269
f77e2d2d 5082 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
5083 xmm register set described in the psABI.
5084
d13c6b70
EG
50852013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
5086
f77e2d2d
JBG
5087 * dwarf2out.c (should_emit_struct_debug): Add check
5088 for type_decl variable is not NULL.
d13c6b70 5089
88b0e79e
JC
50902013-09-13 Jacek Caban <jacek@codeweavers.com>
5091
5092 * config.gcc: Use new winnt-c.c target hooks
5093 * config/t-winnt: New file
5094 * config/winnt-c.c: New file
5095 * doc/tm.texi.in: Document new hook
5096 * doc/tm.texi: Regenerated
5097
19ba6aab
JH
50982013-09-13 Jan Hubicka <jh@suse.cz>
5099
5100 PR middle-end/58094
5101 * ipa-inline.c (check_callers): New function.
5102 (check_caller_edge): Remove.
5103 (want_inline_function_to_all_callers_p): Also permit alises that are
5104 called dirrectly.
5105 (inline_to_all_callers): Terminate the walk when devirtualization
5106 introduce new calls.
5107
a93c18c8
JH
51082013-09-13 Jan Hubicka <jh@suse.cz>
5109
5110 * ipa-inline-analysis.c (struct growth_data): Add node.
5111 (do_estimate_growth_1): Fix detection of recursion.
5112
f3b331d1
JJ
51132013-09-13 Jakub Jelinek <jakub@redhat.com>
5114
5115 PR tree-optimization/58392
5116 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
5117 to avoid shadowing of outer loop variable. If
5118 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
5119 replace_by_duplicate_decl simduid of loops that have it set and
5120 set dest_cfun->has_simduid_loops and/or
5121 dest_cfun->has_force_vect_loops.
5122 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
5123 instead of maybe_lookup_decl.
5124 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
5125 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
5126 call. Copy over force_vect and copy and remap simduid. Set
5127 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
5128 (copy_cfg_body): Remove blocks_to_copy argument. Use
5129 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
5130 caller. Don't set cfun->has_simduid_loops and/or
5131 cfun->has_force_vect_loops here.
5132 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
5133 caller.
5134 (expand_call_inline, tree_function_versioning): Adjust copy_body
5135 callers.
5136
ae6d0907
MJ
51372013-09-13 Martin Jambor <mjambor@suse.cz>
5138
5139 PR bootstrap/58388
5140 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
5141 the assert if the edge was a speculative one.
5142
2fd5894f
RB
51432013-09-13 Richard Biener <rguenther@suse.de>
5144
5145 * tree-data-ref.h (known_dependences_p): Move here ...
5146 * tree-loop-distribution.c (known_dependences_p): ... from here.
5147 (dump_rdg_component, debug_rdg_component): Remove.
5148 (dump_rdg): Adjust.
5149 (generate_loops_for_partition): Use gimple_uid instead of
5150 relying on matching stmt visit order.
5151 (rdg_build_partitions): Take starting stmt vector.
5152 (ldist_gen): Merge into ...
5153 (distribute_loop): ... this function. Do not compute starting
5154 vertices vector.
5155 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
5156
86eb4bd7
KT
51572013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5158
5159 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
5160 Set type attribute correctly. Set predicable_short_it attribute.
5161 (cmpsi_shiftsi): Remove %? from output template.
5162
83a95546
RB
51632013-09-13 Richard Biener <rguenther@suse.de>
5164
5165 * tree-loop-distribution.c (struct rdg_component,
5166 rdg_defs_used_in_other_loops_p, free_rdg_components,
5167 rdg_build_components): Remove.
5168 (stmts_from_loop): Do not record virtual PHIs.
5169 (generate_loops_for_partition): Skip virtual PHIs.
5170 (build_rdg_partition_for_component): Rename to ...
5171 (build_rdg_partition_for_vertex): ... this and adjust.
5172 (rdg_build_partitions): Take a vector of starting vertices
5173 instead of components. Remove unnecessary leftover handling.
5174 (ldist_gen): Do not build components or record other stores.
5175 (distribute_loop): Do not distribute loops containing stmts
5176 with side-effects.
5177
c0ecf7f1
CB
51782013-09-13 Christian Bruel <christian.bruel@st.com>
5179
5180 PR target/58314
5181 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
5182
34f56efc
KT
51832013-09-13 Kai Tietz <ktietz@redhat.com>
5184
740f2bf3
KT
5185 * config.gcc: Separate cases for mingw and cygwin targets,
5186 and add 64-bit cygwin target case.
5187
34f56efc
KT
5188 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
5189 dll-export inline-functions.
5190 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
5191
5192
51932013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
5194
5195 PR middle-end/58387
5196 Revert:
5197 2013-09-06 Jeff Law <law@redhat.com>
5198
5199 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
5200 edge implied equivalences into successor phis.
5201
aadb52ad
DD
52022013-09-12 DJ Delorie <dj@redhat.com>
5203
5204 * config/rl78/rl78-virt.md: Change from | to \; for asm line
5205 separators.
5206
90ae7019
BM
52072013-09-12 Brooks Moses <bmoses@google.com>
5208
5209 PR driver/42955
5210 * Makefile.in: Do not install driver binaries in $(target)/bin.
5211
17b2557c
DD
52122013-09-12 DJ Delorie <dj@redhat.com>
5213
c5215a9b
DD
5214 * config/rl78/rl78.opt (mrelax): New.
5215 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
5216 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
5217
17b2557c
DD
5218 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
5219 between SP and FP.
5220 (rl78_expand_epilogue): Likewise.
5221
ecafcf05
VM
52222013-09-12 Vladimir Makarov <vmakarov@redhat.com>
5223
5224 PR middle-end/58335
84f6d9fa 5225 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
5226 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
5227 pointer elimination with using remove_reg_equal_offset_note.
5228
8369f38a
DD
52292013-09-12 DJ Delorie <dj@redhat.com>
5230
f6a83b4a
DD
5231 * config/msp430/: New port.
5232 * config.gcc (msp430): Added.
5233 * doc/invoke.texi: Document MSP430 options.
5234 * doc/install.texi: Document msp430-elf
5235 * doc/md.texi: Document msp430-elf
5236 * doc/contrib.texi: Document msp430-elf
5237
8369f38a
DD
5238 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
5239 PSImode.
5240
a854f856
MJ
52412013-09-12 Martin Jambor <mjambor@suse.cz>
5242
5243 PR ipa/58389
5244 * ipa-prop.c (remove_described_reference): Give up if the edge in the
5245 reference descriptor is NULL.
5246 (ipa_edge_removal_hook): If owning a reference descriptor, set its
5247 edge to NULL.
5248
b12ebd96
AM
52492013-09-12 Andrew MacLeod <amacleod@redhat.com>
5250
5251 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
5252 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
5253 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
5254 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
5255 make_temp_ssa_name): move to tree-ssanames.h
5256 * tree-ssa-alias.h: Move prototype.
5257 * tree-ssa.h: Include tree-ssanames.h.
5258 * tree-ssanames.c (FREE_SSANAMES): Move to here.
5259 * tree-ssanames.h: New. Move items from tree-flow*.h
5260 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
5261
e1fb4ad3
RB
52622013-09-12 Richard Biener <rguenther@suse.de>
5263
5264 PR tree-optimization/58404
5265 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
5266 propagate non-invariant addresses into dereferences wrapped
5267 in component references.
5268
154c9188
RB
52692013-09-12 Richard Biener <rguenther@suse.de>
5270
5271 PR tree-optimization/58402
5272 * passes.def: Move pass_late_warn_uninitialized later.
5273
7a300452
AM
52742013-09-12 Andrew MacLeod <amacleod@redhat.com>
5275
5276 * tree-ssa.h: New. Move content from tree-flow.h and
5277 tree-flow-inline.h.
5278 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
5279 Move prototypes belonging to tree-ssa.c.
f77e2d2d 5280 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
5281 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
5282 tree-ssa.h.
5283 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
5284 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
5285 to...
5286 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
5287 * tree.h: Move prototype to tree-ssa.h.
5288 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
5289 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
5290 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
5291 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
5292 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
5293 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
5294 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
5295 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
5296 graphite-blocking.c, graphite-clast-to-gimple.c,
5297 graphite-dependences.c, graphite-interchange.c,
5298 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
5299 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
5300 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
5301 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
5302 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
5303 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
5304 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
5305 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
5306 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
5307 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
5308 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
5309 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
5310 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
5311 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
5312 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
5313 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
5314 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
5315 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
5316 value-prof.c, var-tracking.c,
5317 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
5318
97463b2b
RB
53192013-09-12 Richard Biener <rguenther@suse.de>
5320
5321 PR tree-optimization/58396
5322 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
5323 (build_rdg): Take a loop-nest parameter, fix memleaks.
5324 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
5325
80ecd89d
YR
53262013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
5327
5328 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
5329 for SLM.
5330
893e85fa
CM
53312013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
5332
5333 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
5334 The FMA instruction names should have a 'v' prefix.
5335
174ec470
RB
53362013-09-12 Richard Biener <rguenther@suse.de>
5337
5338 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
5339 (dot_rdg): Use popen instead of system in optional code.
5340 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
5341 (already_processed_vertex_p): Adjust.
5342 (has_anti_or_output_dependence, predecessor_has_mem_write,
5343 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
5344 rdg_flag_uses): Remove.
5345 (rdg_flag_vertex): Simplify.
5346 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
5347 remove recursion.
5348 (build_rdg_partition_for_component): Process the first vertex
5349 of a component only.
5350 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
5351
38c89763
AM
53522013-09-12 Alan Modra <amodra@gmail.com>
5353
5354 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
5355
3e3d9d17
DD
53562013-09-11 DJ Delorie <dj@redhat.com>
5357 Nick Clifton <nickc@redhat.com>
5358
5359 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
5360 (rl78_stack_based_mem): New.
5361 * config/rl78/constraints.md (Iv08): New.
5362 (Iv16): New.
5363 (Iv24): New.
5364 (Is09): New.
5365 (Is17): New.
5366 (Is25): New.
5367 (ISsi): New.
5368 (IShi): New.
5369 (ISqi): New.
5370 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
5371 (movhi): Likewise.
5372 (movsi): Change from expand to insn-and-split.
5373 (ashrsi3): Clobber AX.
5374 (lshrsi3): New.
5375 (ashlsi3): New.
5376 (cbranchsi4): New.
5377 * config/rl78/rl78.md (CC_REG): Fix.
5378 (addsi3): Allow memory and immediate operands.
5379 (addsi3_internal): Split into...
5380 (addsi3_internal_virt): ...new, and ...
5381 (addsi3_internal_real): ...new.
5382 (subsi): New.
5383 (subsi3_internal_virt): New.
5384 (subsi3_internal_real): New.
5385 (mulsi3): Add memory operand.
5386 (mulsi3_rl78): Likewise.
5387 (mulsi3_g13): Likewise.
5388 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
5389 (cbranchqi4_real): Add more constraint options.
5390 (cbranchhi4_real): Expand pattern.
5391 (cbranchhi4_real_signed): New.
5392 (cbranchhi4_real_inverted): New.
5393 (cbranchsi4_real_lt): New.
5394 (cbranchsi4_real_ge): New.
5395 (cbranchsi4_real_signed): New.
5396 (cbranchsi4_real): New.
5397 (peephole2): New.
893e85fa
CM
5398 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
5399 constant shifts.
3e3d9d17
DD
5400 (lshrsi3_virt): Likewise.
5401 (ashlsi3_virt): Likewise.
5402 (cbranchqi4_virt_signed): New.
5403 (cbranchhi4_virt_signed): New.
5404 (cbranchsi4_virt): New.
5405 * config/rl78/rl78.c: Whitespace fixes throughout.
5406 (move_elim_pass): New.
5407 (pass_data_rl78_move_elim): New.
5408 (pass_rl78_move_elim): New.
5409 (make_pass_rl78_move_elim): New.
5410 (rl78_devirt_info): Run devirt earlier.
5411 (rl78_move_elim_info): New.
5412 (rl78_asm_file_start): Register it.
5413 (rl78_split_movsi): New.
5414 (rl78_as_legitimate_address): Allow virtual base registers when
5415 appropriate.
5416 (rl78_addr_space_convert): Remove spurious debug stuff.
5417 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
5418 (rl78_print_operand): More cases for not printing '#'.
5419 (rl78_expand_compare): Remove most of the logic.
5420 (content_memory): New.
5421 (clear_content_memory): New.
5422 (get_content_index): New.
5423 (get_content_name): New.
5424 (display_content_memory): New.
5425 (update_content): New.
5426 (record_content): New.
5427 (already_contains): New.
5428 (insn_ok_now): Re-recog insns with virtual registers.
5429 (add_postponed_content_update): New.
5430 (process_postponed_content_update): New.
5431 (gen_and_emit_move): New.
893e85fa
CM
5432 (transcode_memory_rtx): Record new location content.
5433 Use gen_and_emit_move.
3e3d9d17
DD
5434 (force_into_acc): New.
5435 (move_to_acc): Use gen_and_emit_move.
5436 (move_from_acc): Likewise.
5437 (move_acc_to_reg): Likewise.
5438 (move_to_x): Likewise.
5439 (move_to_hl): Likewise.
5440 (move_to_de): Likewise.
5441 (rl78_alloc_physical_registers_op1): Record location content.
5442 (has_constraint): New.
5443 (rl78_alloc_physical_registers_op2): Record location content.
5444 Optimize use of HL.
5445 (rl78_alloc_physical_registers_ro1): Likewise.
5446 (rl78_alloc_physical_registers_cmp): Likewise.
5447 (rl78_alloc_physical_registers_umul): Likewise.
5448 (rl78_alloc_address_registers_macax): New.
5449 (rl78_alloc_physical_registers): Initialize and set location
5450 content memory as needed.
5451 (rl78_reorg): Make sure split2 is called.
5452 (rl78_rtx_costs): New.
5453
088845a5
RS
54542013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5455
5456 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
5457 for (not (neg ...)) and (neg (not ...)) cases.
5458
5c2961cf
RB
54592013-09-11 Richard Biener <rguenther@suse.de>
5460
5461 PR middle-end/58377
5462 * passes.def: Split critical edges before late uninit warning passes.
5463 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
5464
427e6a14
JJ
54652013-09-11 Jakub Jelinek <jakub@redhat.com>
5466
5467 PR tree-optimization/58385
5468 * fold-const.c (build_range_check): If both low and high are NULL,
5469 use omit_one_operand_loc to preserve exp side-effects.
5470
df45c0cc
KT
54712013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5472
5473 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
5474
80ab0b19
RB
54752013-09-11 Richard Biener <rguenther@suse.de>
5476
5477 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
5478 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
5479 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
5480 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
5481 stmts_from_loop, known_dependences_p, build_empty_rdg,
5482 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
5483 * tree-loop-distribution.c: ... here.
5484 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
5485 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
5486 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
5487 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
5488 * tree-loop-distribution.c: ... here.
5489 * tree-loop-distribution.c: Include gimple-pretty-print.h.
5490 (struct partition_s): Add loops member.
5491 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
5492 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
5493 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
5494
85a77221
AI
54952013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5497 Sergey Lega <sergey.s.lega@intel.com>
5498 Anna Tikhonova <anna.tikhonova@intel.com>
5499 Ilya Tocar <ilya.tocar@intel.com>
5500 Andrey Turetskiy <andrey.turetskiy@intel.com>
5501 Ilya Verbin <ilya.verbin@intel.com>
5502 Kirill Yukhin <kirill.yukhin@intel.com>
5503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5504
5505 * config/i386/constraints.md (k): New.
5506 (Yk): Ditto.
5507 * config/i386/i386.c (const regclass_map): Add new mask registers.
5508 (dbx_register_map): Ditto.
5509 (dbx64_register_map): Ditto.
5510 (svr4_dbx_register_map): Ditto.
5511 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
5512 disabled.
5513 (ix86_preferred_reload_class): Disable constants for mask registers.
5514 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
5515 (ix86_hard_regno_mode_ok): Support new mask registers.
5516 (x86_order_regs_for_local_alloc): Ditto.
5517 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
5518 (FIXED_REGISTERS): Add new mask registers.
5519 (CALL_USED_REGISTERS): Ditto.
5520 (REG_ALLOC_ORDER): Ditto.
5521 (VALID_MASK_REG_MODE): New.
5522 (FIRST_MASK_REG): Ditto.
5523 (LAST_MASK_REG): Ditto.
5524 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
5525 (MAYBE_MASK_CLASS_P): New.
5526 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
5527 (REG_CLASS_CONTENTS): Ditto.
5528 (MASK_REGNO_P): New.
5529 (ANY_MASK_REG_P): Ditto.
5530 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
5531 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
5532 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
5533 mask registers.
85a77221
AI
5534 (attribute "type"): Add mskmov, msklog.
5535 (attribute "length_immediate"): Support them.
5536 (attribute "memory"): Ditto.
5537 (attribute "prefix_0f"): Ditto.
5538 (*movhi_internal): Support new mask registers.
5539 (*movqi_internal): Ditto.
5540 (define_split): Split out clobber pattern is a logic
5541 insn on mask registers.
5542 (*k<logic><mode>): New.
5543 (*andhi_1): Extend to support mask regs.
5544 (*andqi_1): Extend to support mask regs.
5545 (kandn<mode>): New.
5546 (define_split): Split and-not to and and not if operands
5547 are not mask regs.
5548 (*<code><mode>_1): Separate HI mode to new pattern...
5549 (*<code>hi_1): This.
5550 (*<code>qi_1): Extend to support mask regs.
5551 (kxnor<mode>): New.
5552 (kortestzhi): Ditto.
5553 (kortestchi): Ditto.
5554 (kunpckhi): Ditto.
5555 (*one_cmpl<mode>2_1): Remove HImode and handle it...
5556 (*one_cmplhi2_1): ...Here, now with mask registers support.
5557 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
5558 (HI/QImode arithmetics splitter): Don't split if mask registers
5559 are used.
85a77221
AI
5560 (HI/QImode not splitter): Ditto.
5561 * config/i386/predicated.md (mask_reg_operand): New.
5562 (general_reg_operand): Ditto.
5563
7e570821
AI
55642013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5565
5566 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
5567 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
5568
9e1376e9
JL
55692013-09-10 Jeff Law <law@redhat.com>
5570
5571 PR tree-optimization/58380
5572 * tree-ssa-threadupdate.c (thread_block): Recognize another case
5573 of threading through a buried loop header.
5574
5575 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
5576 return value for single successor case.
5577
5bbcb888
JH
55782013-09-10 Jan Hubicka <jh@suse.cz>
5579
5580 * ipa-devirt.c (ipa_devirt): Enable with LTO.
5581
d742ff4b
RE
55822013-09-10 Richard Earnshaw <rearnsha@arm.com>
5583
5584 PR target/58361
5585 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
5586 support conditional execution.
5587 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
5588
b0681c9e
VM
55892013-09-10 Vladimir Makarov <vmakarov@redhat.com>
5590
5591 * lra.c (lra): Clear lra_optional_reload_pseudos before every
5592 constraint pass.
f77e2d2d
JBG
5593 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
5594 Check destination too to check move insn.
b0681c9e 5595 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
5596 changed its allocation and the optional reload was inherited on last
5597 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
5598 (lra_undo_inheritance): Add check that inherited pseudo still in
5599 memory.
5600
c9b1c957
JG
56012013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
5602
5603 * config/aarch64/aarch64.md (generic_sched): New.
5604 * config/aarch64/aarch64-generic.md (load): Make conditional
5605 on generic_sched attribute.
5606 (nonload): Likewise.
5607
82d618d3
JH
56082013-09-10 Jan Hubicka <jh@suse.cz>
5609
5610 * lto-cgraph.c: Include ipa-utils.h.
5611 (compute_ltrans_boundary): Also add possible targets into the boundary.
5612
668b6894
JH
56132013-09-10 Jan Hubicka <jh@suse.cz>
5614
5615 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
5616 VAR_DECL of vtable rather than full expression.
5617
4f90d3e0
JH
56182013-09-10 Jan Hubicka <jh@suse.cz>
5619 Paolo Carlini <paolo.carlini@oracle.com>
5620
5621 * cgraphunit.c (analyze_functions): Save input_location, set it
5622 to UNKNOWN_LOCATION and restore it at the end.
5623
39e87baf
MJ
56242013-09-10 Martin Jambor <mjambor@suse.cz>
5625
5626 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
5627 represented by a thunk.
5628
581aedec
JL
56292013-09-10 Jeff Law <law@redhat.com>
5630
5631 PR tree-optimization/58343
5632 * tree-ssa-threadupdate.c (thread_block): Identify and disable
5633 jump threading requests through loop headers buried in the middle
5634 of a jump threading path.
5635
5636 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
5637 in return value/type.
5638
84cf4ab6
JJ
56392013-09-10 Jakub Jelinek <jakub@redhat.com>
5640
5641 PR rtl-optimization/58365
5642 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
5643 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
5644 it differs.
5645
447dd906
RB
56462013-09-10 Richard Biener <rguenther@suse.de>
5647
5648 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
5649 * tree-data-ref.c (create_rdg_vertices): Collect all data
5650 references, signal failure to the caller, use data-ref API.
893e85fa
CM
5651 (build_rdg): Compute data references only once. Maintain lifetime
5652 of data references and data dependences from within RDG.
447dd906
RB
5653 (free_rdg): Free dependence relations.
5654 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
5655 inventing extra dependences.
5656 (distribute_loop): Update for RDG API changes.
5657
f14a7324
KT
56582013-09-10 Kai Tietz <ktietz@redhat.com>
5659
5660 * doc/invoke.texi (fms-extensions): Document changed
5661 behavior for ms-abi targets.
5662 * config/i386/i386.c (ix86_option_override_internal):
5663 Set default value of option -fms-extension for ms-abi targets.
5664
ff131f26
MZ
56652013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
5666
5667 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
5668
33115a2c
AM
56692013-09-10 Alan Modra <amodra@gmail.com>
5670
5671 PR target/58330
5672 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
5673
b6872a13
AM
56742013-09-10 Alan Modra <amodra@gmail.com>
5675
5676 * config/rs6000/predicates.md (add_cint_operand): New.
5677 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
5678 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
5679 using add_cint_operand.
5680 (largetoc_high_plus_aix): Likewise.
5681
28fd0ba2
JJ
56822013-09-09 Jakub Jelinek <jakub@redhat.com>
5683
5684 PR tree-optimization/58364
5685 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
5686 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
5687 the current range can't be an unconditional true or false.
5688
552d99fe
JG
56892013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5690
5691 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
5692
f43245d1
UB
56932013-09-09 Uros Bizjak <ubizjak@gmail.com>
5694
5695 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
5696
c9b0866a
PC
56972013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5698
5699 PR c++/43452
5700 * doc/invoke.texi (-Wdelete-incomplete): Document it.
5701
78d8b9f0
IB
57022013-09-09 Ian Bolton <ian.bolton@arm.com>
5703
5704 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
5705 NO_REGS for immediate that can't be moved directly into FP_REGS.
5706
274b2532
KT
57072013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5708
5709 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
5710 comparison with negated operand.
c9b0866a
PC
5711 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
5712 RTL form.
274b2532 5713
467a3558
RB
57142013-09-09 Richard Biener <rguenther@suse.de>
5715
5716 PR middle-end/58326
5717 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
5718 of a subloop record all its block as affecting loop-closed SSA form.
5719
088c5368
RS
57202013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5721
5722 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
5723 of an rtx/bitpos pair.
5724 (store_fixed_bit_field): Update accordingly.
5725
69db2d57
RS
57262013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5727
5728 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
5729 GEN_INT.
5730 * builtins.c (expand_errno_check): Likewise.
5731 * dwarf2cfi.c (init_return_column_size): Likewise.
5732 * except.c (sjlj_mark_call_sites): Likewise.
5733 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
5734 * lra-constraints.c (emit_inc): Likewise.
5735 * ree.c (combine_set_extension): Likewise.
5736 * regmove.c (fixup_match_2): Likewise.
5737 * reload1.c (inc_for_reload): Likewise.
5738
69a59f0f
RS
57392013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5740
5741 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
5742 (force_to_mode, simplify_shift_const_1, simplify_comparison):
5743 Use gen_int_mode with the mode of the associated simplify_* call.
5744 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
5745 * expmed.c (expand_shift_1): Likewise.
5746 * function.c (instantiate_virtual_regs_in_insn): Likewise.
5747 * loop-iv.c (iv_number_of_iterations): Likewise.
5748 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
5749 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5750
2f1cd2eb
RS
57512013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5752
5753 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
5754 of the associated expand_* call.
5755 (asan_emit_stack_protection): Likewise.
5756 * builtins.c (round_trampoline_addr): Likewise.
5757 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
5758 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
5759 (emit_store_flag): Likewise.
5760 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
5761 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
5762 Likewise.
5763 * function.c (instantiate_virtual_regs_in_insn): Likewise.
5764 * ifcvt.c (noce_try_store_flag_constants): Likewise.
5765 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
5766 * modulo-sched.c (generate_prolog_epilog): Likewise.
5767 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
5768 (expand_ctz, expand_ffs, expand_unop): Likewise.
5769
4789c0ce
RS
57702013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5771
5772 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
5773 of the associated gen_rtx_* call.
5774 * caller-save.c (init_caller_save): Likewise.
5775 * combine.c (find_split_point, make_extraction): Likewise.
5776 (make_compound_operation): Likewise.
5777 * dwarf2out.c (mem_loc_descriptor): Likewise.
5778 * explow.c (plus_constant, probe_stack_range): Likewise.
5779 * expmed.c (expand_mult_const): Likewise.
5780 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
5781 * reload1.c (init_reload): Likewise.
5782 * valtrack.c (cleanup_auto_inc_dec): Likewise.
5783 * var-tracking.c (adjust_mems): Likewise.
5784 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
5785 rather than gen_rtx_fmt_ee.
5786
a811f7cb
JH
57872013-09-09 Jan Hubicka <jh@suse.cz>
5788
5789 PR middle-end/58294
5790 * value-prof.c (gimple_ic): Copy also abnormal edges.
5791
dcad1dd3
RS
57922013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5793
5794 * asan.c (asan_shadow_cst): Use gen_int_mode.
5795
daf5c770
JH
57962013-09-08 Jan Hubicka <jh@suse.cz>
5797
5798 * ipa-profile.c: Add toplevel comment.
5799 (ipa_propagate_frequency_1): Be more conservative when profile is read.
5800 (contains_hot_call_p): New function.
5801 (ipa_propagate_frequency): Set frequencies based on counts when
5802 profile is read.
5803 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
5804 profile; do not tamper with profile after inlining if it is read.
5805
a12cd2db
JH
58062013-09-08 Jan Hubicka <jh@suse.cz>
5807
5808 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
5809 speculative edges.
5810
856a1588
JH
58112013-09-08 Jan Hubicka <jh@suse.cz>
5812
5813 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
5814 summary generation.
5815
4f4b0b73
JL
58162013-09-08 Jeff Law <law@redhat.com>
5817
5818 PR bootstrap/58340
5819 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
5820 of 'found'.
5821
cc4029ee
AK
58222013-09-08 Andi Kleen <ak@linux.intel.com>
5823
5824 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
5825
7b395ddd
JH
58262013-09-08 Jan Hubicka <jh@suse.cz>
5827
5828 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
5829
c34c46dd
RS
58302013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
5831
5832 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
5833 for non-debug insns.
5834 * lra.c (new_insn_reg): Take the containing insn as a parameter.
5835 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
5836 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
5837 accordingly.
5838
3462aa02
JH
58392013-09-08 Jan Hubicka <jh@suse.cz>
5840
5841 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
5842 targets and devirtualize to BUILT_IN_UNREACHABLE.
5843 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
5844 * ipa.c (walk_polymorphic_call_targets): New function.
5845 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
5846 functions; use the new timevar.
5847 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
5848 was removed from the program.
5849 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
5850 not consider it in the walk when its vtable is dead.
5851 (possible_polymorphic_call_targets_1): Pass anonymous flag to
5852 record_binfo.
5853 (devirt_variable_node_removal_hook): New function.
5854 (possible_polymorphic_call_targets): Also register
5855 devirt_variable_node_removal_hook.
5856 (ipa_devirt): Do not do non-speculative devirtualization.
5857 (gate_ipa_devirt): One execute if devirtualizing speculatively.
5858
26e5b0fd
JH
58592013-09-08 Jan Hubicka <jh@suse.cz>
5860
5861 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
5862 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
5863 varpool_remove_variable_insertion_hook): Declare.
5864 * varpool.c (varpool_node_hook_list): New structure.
5865 (first_varpool_node_removal_hook,
5866 first_varpool_variable_insertion_hook): New variables.
5867 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
5868 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
5869 varpool_remove_variable_insertion_hook,
5870 varpool_call_variable_insertion_hooks): New functions.
5871 (varpool_remove_node): Use it.
5872
97f1f314 58732013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 5874
97f1f314
PC
5875 PR c++/54941
5876 * diagnostic.c (diagnostic_build_prefix): When s.file is
5877 "<built-in>" don't output line and column numbers.
6df2ca09 5878
bcb650cb
JH
58792013-09-06 Jan Hubicka <jh@suse.cz>
5880
5881 * cgraphunit.c (expand_thunk): Get body before touching arguments.
5882 * lto-streamer-out.c: Stream thunks, too.
5883 * lto-streamer-in.c (input_function): Pop cfun here
5884 (lto_read_body): Instead of here.
5885
87f3fea8
CT
58862013-09-06 Caroline Tice <cmtice@google.com>
5887
5888 * doc/install.texi: Add documentation for the --enable-vtable-verify
5889 and the --disable-libvtv configure options.
5890
5e8d9b45
JL
58912013-09-06 Jeff Law <law@redhat.com>
5892
5893 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
5894 edge implied equivalences into successor phis.
5895
3a001aff
JR
58962013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
5897
5898 * resource.c (mark_referenced_resources): Handle COND_EXEC.
5899
59002013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
5901
5902 * resource.c (mark_target_live_regs): Compute resources taking
5903 into account if a call is predicated or not.
5904
2c641f8b
EB
59052013-09-06 Eric Botcazou <ebotcazou@adacore.com>
5906
5907 * toplev.c (output_stack_usage): Be prepared for suffixes created by
5908 the compiler in the function names.
5909
a81b0a3d
JH
59102013-09-06 Jan Hubicka <jh@suse.cz>
5911
5912 PR middle-end/58094
5913 * ipa-inline.c (has_caller_p): New function.
5914 (want_inline_function_to_all_callers_p): Use it.
5915 (sum_callers, inline_to_all_callers): Break out from ...
5916 (ipa_inline): ... here.
5917
68e4ca7e
JH
59182013-09-06 Jan Hubicka <jh@suse.cz>
5919
2c641f8b
EB
5920 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
5921 only when AVX is enabled.
68e4ca7e 5922
3c73e2fe
JG
59232013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
5924
5925 * config/aarch64/aarch64.md
5926 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
5927 is fpsimd_<load/store>2.
5928 (load_pair<mode>): Likewise.
5929 (store_pair<mode>): Likewise.
5930
8c48eecd
JG
59312013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
5932
5933 * config/arm/types.md (type): Add "mrs" type.
5934 * config/aarch64/aarch64.md
5935 (aarch64_load_tp_hard): Make type "mrs".
5936 * config/arm/arm.md
5937 (load_tp_hard): Make type "mrs".
5938 * config/arm/cortex-a15.md: Update with new attributes.
5939 * config/arm/cortex-a5.md: Update with new attributes.
5940 * config/arm/cortex-a53.md: Update with new attributes.
5941 * config/arm/cortex-a7.md: Update with new attributes.
5942 * config/arm/cortex-a8.md: Update with new attributes.
5943 * config/arm/cortex-a9.md: Update with new attributes.
5944 * config/arm/cortex-m4.md: Update with new attributes.
5945 * config/arm/cortex-r4.md: Update with new attributes.
5946 * config/arm/fa526.md: Update with new attributes.
5947 * config/arm/fa606te.md: Update with new attributes.
5948 * config/arm/fa626te.md: Update with new attributes.
5949 * config/arm/fa726te.md: Update with new attributes.
5950
9ea187a5
JG
59512013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
5952
5953 * config/aarch64/aarch64.md
5954 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
5955 (*movtf_aarch64): Likewise.
5956 * config/arm/arm.md
5957 (thumb1_movdi_insn): Use "multiple" for type where more than one
5958 instruction is used for a move.
5959 (*arm32_movhf): Likewise.
5960 (*thumb_movdf_insn): Likewise.
5961
292b89b3
JG
59622013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
5963
5964 * config/arm/types.md (type): Rename fcpys to fmov.
5965 * config/arm/vfp.md
5966 (*arm_movsi_vfp): Rename type fcpys as fmov.
5967 (*thumb2_movsi_vfp): Likewise
5968 (*movhf_vfp_neon): Likewise
5969 (*movhf_vfp): Likewise
5970 (*movsf_vfp): Likewise
5971 (*thumb2_movsf_vfp): Likewise
5972 (*movsfcc_vfp): Likewise
5973 (*thumb2_movsfcc_vfp): Likewise
5974 * config/aarch64/aarch64-simd.md
5975 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
5976 * config/aarch64/aarch64.md
5977 (*movsi_aarch64): Replace type mov_reg with fmovs.
5978 (*movdi_aarch64): Likewise
5979 (*movsf_aarch64): Likewise
5980 (*movdf_aarch64): Likewise
5981 * config/arm/arm.c
5982 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
5983 * config/arm/iwmmxt.md
5984 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
5985 * config/arm/arm1020e.md: Update with new attributes.
5986 * config/arm/cortex-a15-neon.md: Update with new attributes.
5987 * config/arm/cortex-a5.md: Update with new attributes.
5988 * config/arm/cortex-a53.md: Update with new attributes.
5989 * config/arm/cortex-a7.md: Update with new attributes.
5990 * config/arm/cortex-a8-neon.md: Update with new attributes.
5991 * config/arm/cortex-a9.md: Update with new attributes.
5992 * config/arm/cortex-m4-fpu.md: Update with new attributes.
5993 * config/arm/cortex-r4f.md: Update with new attributes.
5994 * config/arm/marvell-pj4.md: Update with new attributes.
5995 * config/arm/vfp11.md: Update with new attributes.
5996
6a24a83e
JG
59972013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
5998
5999 * config/aarch64/aarch64.md
6000 (*madd<mode>): Fix type attribute.
6001 (*maddsi_uxtw): Likewise.
6002 (*msub<mode>): Likewise.
6003 (*msubsi_uxtw): Likewise.
6004 (<su_optab>maddsidi4): Likewise.
6005 (<su_optab>msubsidi4): Likewise.
6006
b86923f0
JG
60072013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6008
6009 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
6010 * config/arm/arm.md (core_cycles): Remove fdiv.
6011 * config/arm/vfp.md:
6012 (*sqrtsf2_vfp): Update for attribute changes.
6013 (*sqrtdf2_vfp): Likewise.
6014 * config/aarch64/aarch64.md:
6015 (sqrt<mode>2): Update for attribute changes.
6016 * config/arm/arm1020e.md: Update with new attributes.
6017 * config/arm/cortex-a15-neon.md: Update with new attributes.
6018 * config/arm/cortex-a5.md: Update with new attributes.
6019 * config/arm/cortex-a53.md: Update with new attributes.
6020 * config/arm/cortex-a7.md: Update with new attributes.
6021 * config/arm/cortex-a8-neon.md: Update with new attributes.
6022 * config/arm/cortex-a9.md: Update with new attributes.
6023 * config/arm/cortex-m4-fpu.md: Update with new attributes.
6024 * config/arm/cortex-r4f.md: Update with new attributes.
6025 * config/arm/marvell-pj4.md: Update with new attributes.
6026 * config/arm/vfp11.md: Update with new attributes.
6027
7b49c9e1
JG
60282013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6029
6030 * config/arm/types.md
6031 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
6032 * config/aarch64/aarch64.md
6033 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
6034 new attributes.
6035 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6036 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
6037 (float<GPI:mode><GPF:mode>2): Likewise.
6038 * config/arm/vfp.md
6039 (*truncsisf2_vfp): Update with new attributes.
6040 (*truncsidf2_vfp): Likewise.
6041 (fixuns_truncsfsi2): Likewise.
6042 (fixuns_truncdfsi2): Likewise.
6043 (*floatsisf2_vfp): Likewise.
6044 (*floatsidf2_vfp): Likewise.
6045 (floatunssisf2): Likewise.
6046 (floatunssidf2): Likewise.
6047 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
6048 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
6049 * config/arm/arm1020e.md: Update with new attributes.
6050 * config/arm/cortex-a15-neon.md: Update with new attributes.
6051 * config/arm/cortex-a5.md: Update with new attributes.
6052 * config/arm/cortex-a53.md: Update with new attributes.
6053 * config/arm/cortex-a7.md: Update with new attributes.
6054 * config/arm/cortex-a8-neon.md: Update with new attributes.
6055 * config/arm/cortex-a9.md: Update with new attributes.
6056 * config/arm/cortex-m4-fpu.md: Update with new attributes.
6057 * config/arm/cortex-r4f.md: Update with new attributes.
6058 * config/arm/marvell-pj4.md: Update with new attributes.
6059 * config/arm/vfp11.md: Update with new attributes.
6060
e7df8af8
JG
60612013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6062
6063 * config/aarch64/arm_neon.h
6064 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
6065 (vqtbx<1,2,3,4><q>_s8): Likewise.
6066
594726e4
JG
60672013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6068
f43245d1
UB
6069 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
6070 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
6071 (add<mode>3): Add type attribute.
6072 (add<mode>3): Likewise.
6073 (usadd<mode>3): Likewise.
6074 (ssadd<mode>3): Likewise.
6075 (sub<mode>3): Likewise.
6076 (sub<mode>3): Likewise.
6077 (ussub<mode>3): Likewise.
6078 (sssub<mode>3): Likewise.
6079 (ssmulsa3): Likewise.
6080 (usmulusa3): Likewise.
6081 (arm_usatsihi): Likewise.
6082 * config/arm/vfp.md
6083 (*movdi_vfp): Add types for all instructions.
6084 (*movdi_vfp_cortexa8): Likewise.
6085 (*movhf_vfp_neon): Likewise.
6086 (*movhf_vfp): Likewise.
6087 (*movdf_vfp): Likewise.
6088 (*thumb2_movdf_vfp): Likewise.
6089 (*thumb2_movdfcc_vfp): Likewise.
6090 * config/arm/arm.md: Add type attribute to all insn patterns.
6091 (*thumb1_adddi3): Add type attribute.
6092 (*arm_adddi3): Likewise.
6093 (*adddi_sesidi_di): Likewise.
6094 (*adddi_zesidi_di): Likewise.
6095 (*thumb1_addsi3): Likewise.
6096 (addsi3_compare0): Likewise.
6097 (*addsi3_compare0_scratch): Likewise.
6098 (*compare_negsi_si): Likewise.
6099 (cmpsi2_addneg): Likewise.
6100 (*addsi3_carryin_<optab>): Likewise.
6101 (*addsi3_carryin_alt2_<optab>): Likewise.
6102 (*addsi3_carryin_clobercc_<optab>): Likewise.
6103 (*subsi3_carryin): Likewise.
6104 (*subsi3_carryin_const): Likewise.
6105 (*subsi3_carryin_compare): Likewise.
6106 (*subsi3_carryin_compare_const): Likewise.
6107 (*arm_subdi3): Likewise.
6108 (*thumb_subdi3): Likewise.
6109 (*subdi_di_zesidi): Likewise.
6110 (*subdi_di_sesidi): Likewise.
6111 (*subdi_zesidi_di): Likewise.
6112 (*subdi_sesidi_di): Likewise.
6113 (*subdi_zesidi_ze): Likewise.
6114 (thumb1_subsi3_insn): Likewise.
6115 (*arm_subsi3_insn): Likewise.
6116 (*anddi3_insn): Likewise.
6117 (*anddi_zesidi_di): Likewise.
6118 (*anddi_sesdi_di): Likewise.
6119 (*ne_zeroextracts): Likewise.
6120 (*ne_zeroextracts): Likewise.
6121 (*ite_ne_zeroextr): Likewise.
6122 (*ite_ne_zeroextr): Likewise.
6123 (*anddi_notdi_di): Likewise.
6124 (*anddi_notzesidi): Likewise.
6125 (*anddi_notsesidi): Likewise.
6126 (andsi_notsi_si): Likewise.
6127 (thumb1_bicsi3): Likewise.
6128 (*iordi3_insn): Likewise.
6129 (*iordi_zesidi_di): Likewise.
6130 (*iordi_sesidi_di): Likewise.
6131 (*thumb1_iorsi3_insn): Likewise.
6132 (*xordi3_insn): Likewise.
6133 (*xordi_zesidi_di): Likewise.
6134 (*xordi_sesidi_di): Likewise.
6135 (*arm_xorsi3): Likewise.
6136 (*andsi_iorsi3_no): Likewise.
6137 (*smax_0): Likewise.
6138 (*smax_m1): Likewise.
6139 (*arm_smax_insn): Likewise.
6140 (*smin_0): Likewise.
6141 (*arm_smin_insn): Likewise.
6142 (*arm_umaxsi3): Likewise.
6143 (*arm_uminsi3): Likewise.
6144 (*minmax_arithsi): Likewise.
6145 (*minmax_arithsi_): Likewise.
6146 (*satsi_<SAT:code>): Likewise.
6147 (arm_ashldi3_1bit): Likewise.
6148 (arm_ashrdi3_1bit): Likewise.
6149 (arm_lshrdi3_1bit): Likewise.
6150 (*arm_negdi2): Likewise.
6151 (*thumb1_negdi2): Likewise.
6152 (*arm_negsi2): Likewise.
6153 (*thumb1_negsi2): Likewise.
6154 (*negdi_extendsid): Likewise.
6155 (*negdi_zero_extend): Likewise.
6156 (*arm_abssi2): Likewise.
6157 (*thumb1_abssi2): Likewise.
6158 (*arm_neg_abssi2): Likewise.
6159 (*thumb1_neg_abss): Likewise.
6160 (one_cmpldi2): Likewise.
6161 (extend<mode>di2): Likewise.
6162 (*compareqi_eq0): Likewise.
6163 (*arm_extendhisi2addsi): Likewise.
6164 (*arm_movdi): Likewise.
6165 (*thumb1_movdi_insn): Likewise.
6166 (*arm_movt): Likewise.
6167 (*thumb1_movsi_insn): Likewise.
6168 (pic_add_dot_plus_four): Likewise.
6169 (pic_add_dot_plus_eight): Likewise.
6170 (tls_load_dot_plus_eight): Likewise.
6171 (*thumb1_movhi_insn): Likewise.
6172 (*thumb1_movsf_insn): Likewise.
6173 (*movdf_soft_insn): Likewise.
6174 (*thumb_movdf_insn): Likewise.
6175 (cbranchsi4_insn): Likewise.
6176 (cbranchsi4_scratch): Likewise.
6177 (*negated_cbranchsi4): Likewise.
6178 (*tbit_cbranch): Likewise.
6179 (*tlobits_cbranch): Likewise.
6180 (*tstsi3_cbranch): Likewise.
6181 (*cbranchne_decr1): Likewise.
6182 (*addsi3_cbranch): Likewise.
6183 (*addsi3_cbranch_scratch): Likewise.
6184 (*arm_cmpdi_insn): Likewise.
6185 (*arm_cmpdi_unsig): Likewise.
6186 (*arm_cmpdi_zero): Likewise.
6187 (*thumb_cmpdi_zero): Likewise.
6188 (*deleted_compare): Likewise.
6189 (*mov_scc): Likewise.
6190 (*mov_negscc): Likewise.
6191 (*mov_notscc): Likewise.
6192 (*cstoresi_eq0_thumb1_insn): Likewise.
6193 (cstoresi_nltu_thumb1): Likewise.
6194 (cstoresi_ltu_thu): Likewise.
6195 (thumb1_addsi3_addgeu): Likewise.
6196 (*arm_jump): Likewise.
6197 (*thumb_jump): Likewise.
6198 (*check_arch2): Likewise.
6199 (arm_casesi_internal): Likewise.
6200 (thumb1_casesi_dispatch): Likewise.
6201 (*arm_indirect_jump): Likewise.
6202 (*thumb1_indirect_jump): Likewise.
6203 (nop): Likewise.
6204 (*and_scc): Likewise.
6205 (*ior_scc): Likewise.
6206 (*compare_scc): Likewise.
6207 (*cond_move): Likewise.
6208 (*cond_arith): Likewise.
6209 (*cond_sub): Likewise.
6210 (*cmp_ite0): Likewise.
6211 (*cmp_ite1): Likewise.
6212 (*cmp_and): Likewise.
6213 (*cmp_ior): Likewise.
6214 (*ior_scc_scc): Likewise.
6215 (*ior_scc_scc_cmp): Likewise.
6216 (*and_scc_scc): Likewise.
6217 (*and_scc_scc_cmp): Likewise.
6218 (*and_scc_scc_nod): Likewise.
6219 (*negscc): Likewise.
6220 (movcond_addsi): Likewise.
6221 (movcond): Likewise.
6222 (*ifcompare_plus_move): Likewise.
6223 (*if_plus_move): Likewise.
6224 (*ifcompare_move_plus): Likewise.
6225 (*if_move_plus): Likewise.
6226 (*ifcompare_arith_arith): Likewise.
6227 (*if_arith_arith): Likewise.
6228 (*ifcompare_arith_move): Likewise.
6229 (*if_arith_move): Likewise.
6230 (*ifcompare_move_arith): Likewise.
6231 (*if_move_arith): Likewise.
6232 (*ifcompare_move_not): Likewise.
6233 (*if_move_not): Likewise.
6234 (*ifcompare_not_move): Likewise.
6235 (*if_not_move): Likewise.
6236 (*ifcompare_shift_move): Likewise.
6237 (*if_shift_move): Likewise.
6238 (*ifcompare_move_shift): Likewise.
6239 (*if_move_shift): Likewise.
6240 (*ifcompare_shift_shift): Likewise.
6241 (*ifcompare_not_arith): Likewise.
6242 (*ifcompare_arith_not): Likewise.
6243 (*if_arith_not): Likewise.
6244 (*ifcompare_neg_move): Likewise.
6245 (*if_neg_move): Likewise.
6246 (*ifcompare_move_neg): Likewise.
6247 (*if_move_neg): Likewise.
6248 (prologue_thumb1_interwork): Likewise.
6249 (*cond_move_not): Likewise.
6250 (*sign_extract_onebit): Likewise.
6251 (*not_signextract_onebit): Likewise.
6252 (stack_tie): Likewise.
6253 (align_4): Likewise.
6254 (align_8): Likewise.
6255 (consttable_end): Likewise.
6256 (consttable_1): Likewise.
6257 (consttable_2): Likewise.
6258 (consttable_4): Likewise.
6259 (consttable_8): Likewise.
6260 (consttable_16): Likewise.
6261 (*thumb1_tablejump): Likewise.
6262 (prefetch): Likewise.
6263 (force_register_use): Likewise.
6264 (thumb_eh_return): Likewise.
6265 (load_tp_hard): Likewise.
6266 (load_tp_soft): Likewise.
6267 (tlscall): Likewise.
6268 (*arm_movtas_ze): Likewise.
6269 (*arm_rev): Likewise.
6270 (*arm_revsh): Likewise.
6271 (*arm_rev16): Likewise.
6272 * config/arm/thumb2.md
6273 (*thumb2_smaxsi3): Likewise.
6274 (*thumb2_sminsi3): Likewise.
6275 (*thumb32_umaxsi3): Likewise.
6276 (*thumb2_uminsi3): Likewise.
6277 (*thumb2_negdi2): Likewise.
6278 (*thumb2_abssi2): Likewise.
6279 (*thumb2_neg_abss): Likewise.
6280 (*thumb2_movsi_insn): Likewise.
6281 (tls_load_dot_plus_four): Likewise.
6282 (*thumb2_movhi_insn): Likewise.
6283 (*thumb2_mov_scc): Likewise.
6284 (*thumb2_mov_negs): Likewise.
6285 (*thumb2_mov_negs): Likewise.
6286 (*thumb2_mov_nots): Likewise.
6287 (*thumb2_mov_nots): Likewise.
6288 (*thumb2_movsicc_): Likewise.
6289 (*thumb2_movsfcc_soft_insn): Likewise.
6290 (*thumb2_indirect_jump): Likewise.
6291 (*thumb2_and_scc): Likewise.
6292 (*thumb2_ior_scc): Likewise.
6293 (*thumb2_ior_scc_strict_it): Likewise.
6294 (*thumb2_cond_move): Likewise.
6295 (*thumb2_cond_arith): Likewise.
6296 (*thumb2_cond_ari): Likewise.
6297 (*thumb2_cond_sub): Likewise.
6298 (*thumb2_negscc): Likewise.
6299 (*thumb2_movcond): Likewise.
6300 (thumb2_casesi_internal): Likewise.
6301 (thumb2_casesi_internal_pic): Likewise.
6302 (*thumb2_alusi3_short): Likewise.
6303 (*thumb2_mov<mode>_shortim): Likewise.
6304 (*thumb2_addsi_short): Likewise.
6305 (*thumb2_subsi_short): Likewise.
6306 (thumb2_addsi3_compare0): Likewise.
6307 (*thumb2_cbz): Likewise.
6308 (*thumb2_cbnz): Likewise.
6309 (*thumb2_one_cmplsi2_short): Likewise.
6310 (*thumb2_negsi2_short): Likewise.
6311 (*orsi_notsi_si): Likewise.
6312 * config/arm/arm1020e.md: Update with new attributes.
6313 * config/arm/arm1026ejs.md: Update with new attributes.
6314 * config/arm/arm1136jfs.md: Update with new attributes.
6315 * config/arm/arm926ejs.md: Update with new attributes.
6316 * config/arm/cortex-a15.md: Update with new attributes.
6317 * config/arm/cortex-a5.md: Update with new attributes.
6318 * config/arm/cortex-a53.md: Update with new attributes.
6319 * config/arm/cortex-a7.md: Update with new attributes.
6320 * config/arm/cortex-a8.md: Update with new attributes.
6321 * config/arm/cortex-a9.md: Update with new attributes.
6322 * config/arm/cortex-m4.md: Update with new attributes.
6323 * config/arm/cortex-r4.md: Update with new attributes.
6324 * config/arm/fa526.md: Update with new attributes.
6325 * config/arm/fa606te.md: Update with new attributes.
6326 * config/arm/fa626te.md: Update with new attributes.
6327 * config/arm/fa726te.md: Update with new attributes.
6328
1c83b673
JG
63292013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6330
6331 * config/aarch64/aarch64-simd.md
6332 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
6333 <vwx> iterator to ensure correct register choice.
6334 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
6335 (aarch64_sqdmull_n<mode>): Likewise.
6336 (aarch64_sqdmull2_n<mode>_internal): Likewise.
6337 * config/aarch64/arm_neon.h
6338 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
6339 (vml<as><q>_n_<su>16): Likewise.
6340 (vml<as>l_high_lane<q>_<su>16): Likewise.
6341 (vml<as>l_high_n_<su>16): Likewise.
6342 (vml<as>l_lane<q>_<su>16): Likewise.
6343 (vml<as>l_n_<su>16): Likewise.
6344 (vmul<q>_lane<q>_<su>16): Likewise.
6345 (vmul<q>_n_<su>16): Likewise.
6346 (vmull_lane<q>_<su>16): Likewise.
6347 (vmull_n_<su>16): Likewise.
6348 (vmull_high_lane<q>_<su>16): Likewise.
6349 (vmull_high_n_<su>16): Likewise.
6350 (vqrdmulh<q>_n_s16): Likewise.
6351
bb1ae543
TB
63522013-09-06 Tejas Belagod <tejas.belagod@arm.com>
6353
6354 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
6355 have the correct lane parameter.
6356
f23c0742
RB
63572013-09-06 Richard Biener <rguenther@suse.de>
6358
6359 * cfganal.c (control_dependences::~control_dependences):
6360 Properly free all of the vector.
6361
c1d49770
KY
63622013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
6363
6364 PR target/58269
6365 * config/i386/i386.c (ix86_conditional_register_usage):
6366 Proper initialize extended SSE registers.
6367
6da47f52
JH
63682013-09-06 Jan Hubicka <jh@suse.cz>
6369
6370 PR tree-optimization/58311
6371 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
6372
63732013-09-06 Jan Hubicka <jh@suse.cz>
6374
6375 * Makefile.in (tree-sra.o): Update dependencies.
6376 * tree-sra.c: Include ipa-utils.h
6377 (scan_function): Use recursive_call_p.
6378 (has_caller_p): New function.
6379 (cgraph_for_node_and_aliases): Count also callers of aliases.
6380
fc11f321
JH
63812013-09-06 Jan Hubicka <jh@suse.cz>
6382
6383 PR middle-end/58094
6384 * cgraph.h (symtab_semantically_equivalent_p): Declare.
6385 * tree-tailcall.c: Include ipa-utils.h.
6386 (find_tail_calls): Use it.
6387 * ipa-pure-const.c (check_call): Likewise.
6388 * ipa-utils.c (recursive_call_p): New function.
6389 * ipa-utils.h (recursive_call_p): Dclare.
6390 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
6391 (symtab_semantically_equivalent_p): New function.
6392 * Makefile.in (tree-tailcall.o): Update dependencies.
6393
9a6af450
EB
63942013-09-06 Eric Botcazou <ebotcazou@adacore.com>
6395
6396 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
6397 non-inlinable part.
6398
35f32ad4
RB
63992013-09-06 Richard Biener <rguenther@suse.de>
6400
6401 * lto-streamer.h (lto_global_var_decls): Remove.
6402 * Makefile.in (OBJS): Remove lto-symtab.o.
6403 (lto-symtab.o): Remove.
6404 (GTFILES): Remove lto-symtab.c
6405 * lto-symtab.c: Move to lto/
6406
d12a76f3
AK
64072013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6408
6409 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
6410 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
6411 (UNSPEC_FPINT_RINT): New constant definitions.
6412 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
6413 definition with 2 attributes.
6414 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
6415 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
6416 definitions.
6417
64182013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6419
f43245d1 6420 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
6421 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
6422 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
6423 attribute to "z196_alone".
6424 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
6425 "zEC12_simple".
6426
c8e9d8c3
RB
64272013-09-06 Richard Biener <rguenther@suse.de>
6428
6429 * basic-block.h (class control_dependences): New.
6430 * tree-ssa-dce.c (control_dependence_map): Remove.
6431 (cd): New global.
6432 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
6433 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
6434 find_pdom, find_control_dependence, find_all_control_dependences):
6435 Move to cfganal.c.
f43245d1
UB
6436 (mark_control_dependent_edges_necessary,
6437 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
6438 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
6439 * cfganal.c (set_control_dependence_map_bit,
6440 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
6441 find_all_control_dependences): Move from tree-ssa-dce.c and
6442 implement as methods of control_dependences class.
6443 (control_dependences::control_dependences): New.
6444 (control_dependences::~control_dependences): Likewise.
6445 (control_dependences::get_edges_dependent_on): Likewise.
6446 (control_dependences::get_edge): Likewise.
6447
7d2ba471
JH
64482013-09-04 Jan Hubicka <jh@suse.cz>
6449
6450 * tree.c (types_same_for_odr): Drop overactive check.
6451 * ipa-devirt.c (hash_type_name): Likewise.
6452
e18412fc
JH
64532013-09-04 Jan Hubicka <jh@suse.cz>
6454
6455 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
6456 (analyze_functions): ... here.
6457
d352b245
JH
64582013-09-04 Jan Hubicka <jh@suse.cz>
6459
6460 PR middle-end/58201
6461 * cgraphunit.c (analyze_functions): Clear AUX fields
6462 after processing; initialize assembler name has.
6463
770da076
JL
64642013-09-05 Jeff Law <law@redhat.com>
6465
6466 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
6467 from thread_around_empty_block. Record threading path into PATH.
6468 Recurse if threading through the initial block is successful.
6469 (thread_across_edge): Corresponding changes to slightly simplify.
6470
fe6f68e2
JG
64712013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6472
6473 * config/aarch64/aarch64.md
6474 (type): Remove frecpe, frecps, frecpx.
6475 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
6476 fix to be a TARGET_SIMD instruction.
6477 (aarch64_frecps): Remove.
6478 * config/aarch64/aarch64-simd.md
6479 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
6480 (aarch64_frecps<mode>): Handle all float/vector of float modes.
6481
6e4150e1
JG
64822013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6483 Sofiane Naci <sofiane.naci@arm.com>
6484
f43245d1 6485 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 6486 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
6487 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
6488 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
6489 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
6490 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
6491 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
6492 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
6493 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 6494 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 6495 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
6496 shift* types.
6497 * config/arm/arm-fixed.md: Update for attribute changes
6498 all occurrences of arlo_* types.
6499 * config/arm/thumb2.md: Update for attribute changes all occurrences
6500 of arlo_* types.
6501 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
6502 (cortexa7_older_only): Likewise.
6503 (cortexa7_younger): Likewise.
6504 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
6505 (1020alu_shift_op): Likewise.
6506 (1020alu_shift_reg_op): Likewise.
6507 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
6508 (alu_shift_op): Likewise.
6509 (alu_shift_reg_op): Likewise.
f43245d1 6510 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
6511 (11_alu_shift_op): Likewise.
6512 (11_alu_shift_reg_op): Likewise.
6513 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
6514 (9_alu_shift_reg_op): Likewise.
6515 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
6516 attribute changes.
6517 (cortex_a15_alu_shift): Likewise.
6518 (cortex_a15_alu_shift_reg): Likewise.
6519 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
6520 attribute changes.
6521 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
6522 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
6523 attribute changes.
6e4150e1 6524 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
6525 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
6526 attribute changes.
6e4150e1
JG
6527 (cortex_a7_alu_reg): Likewise.
6528 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
6529 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
6530 attribute changes.
6e4150e1
JG
6531 (cortex_a8_alu_shift): Likewise.
6532 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 6533 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 6534 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
6535 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
6536 attribute changes.
6e4150e1
JG
6537 * config/arm/cortex-r4.md
6538 (cortex_r4_alu): Update for attribute changes.
6539 (cortex_r4_mov): Likewise.
6540 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 6541 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 6542 (526_alu_shift_op): Likewise.
f43245d1
UB
6543 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
6544 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 6545 (626te_alu_shift_op): Likewise.
f43245d1 6546 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
6547 (726te_alu_shift_op): Likewise.
6548 (726te_alu_shift_reg_op): Likewise.
6549 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
6550 (mp626_alu_shift_op): Likewise.
6551 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
6552 (pj4_alu_conds): Likewise.
6553 (pj4_shift): Likewise.
6554 (pj4_shift_conds): Likewise.
6555 (pj4_alu_shift): Likewise.
6556 (pj4_alu_shift_conds): Likewise.
6557 * config/aarch64/aarch64.md: Update for attribute change
6558 all occurrences of arlo_* and shift* types.
6559
e6523306
MS
65602013-09-05 Mike Stump <mikestump@comcast.net>
6561
6562 * tree.h: Move documentation for tree_function_decl to tree-core.h
6563 with the declaration.
6564
80a18161
PB
65652013-09-05 Peter Bergner <bergner@vnet.ibm.com>
6566
6567 PR target/58139
6568 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
6569 looking for widest mode.
6570
6994430a
EB
65712013-09-05 Eric Botcazou <ebotcazou@adacore.com>
6572
6573 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
6574
e67f39f7
RB
65752013-09-05 Richard Biener <rguenther@suse.de>
6576
6577 PR tree-optimization/58137
6578 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6579 Do not create vectors of pointers.
6580 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
6581 types for the components of the vector initializer.
6582 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
6583 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
6584
568cda29
MJ
65852013-09-05 Martin Jambor <mjambor@suse.cz>
6586
6587 * ipa-prop.c (remove_described_reference): Accept missing references,
6588 return false if that hppens, otherwise return true.
6589 (cgraph_node_for_jfunc): New function.
6590 (try_decrement_rdesc_refcount): Likewise.
6591 (try_make_edge_direct_simple_call): Use them.
6592 (ipa_edge_removal_hook): Remove references from rdescs.
6593 (ipa_edge_duplication_hook): Clone rdescs and their references
6594 when the new edge has the same caller as the old one.
6595 * cgraph.c (cgraph_resolve_speculation): Remove speculative
6596 reference before removing any edges.
6597
5a200acb
RE
65982013-09-05 Richard Earnshaw <rearnsha@arm.com>
6599
6600 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
6601 initial store.
6602 * thumb2.md (thumb2_storewb_parisi): New pattern.
6603
5922847b
YZ
66042013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
6605
6606 * config/aarch64/aarch64-option-extensions.def: Add
6607 AARCH64_OPT_EXTENSION of 'crc'.
6608 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
6609 (AARCH64_ISA_CRC): Ditto.
6610 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
6611 description of the CRC extension.
6612
996746aa
AI
66132013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
6614
6615 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
6616 * config/rs6000/linux.h: Ditto.
6617 * alpha/linux.h: Ditto.
6618 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
6619 no_c99_libc_has_function.
6620 * config/c6x/uclinux-elf.h: Ditto.
6621 * config/lm32/uclinux-elf.h: Ditto.
6622 * config/m68k/uclinux.h: Ditto.
6623 * config/moxie/uclinux.h: Ditto.
6624 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
6625 (crisv32-*-linux*, cris-*-linux*): Ditto.
6626 * config/bfin/bfin.c: Include "tm_p.h".
6627
c370d99f
RB
66282013-09-05 Richard Biener <rguenther@suse.de>
6629
6630 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
6631 check for a definition without a basic-block.
6632
003bb7f3
JG
66332013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6634 Sofiane Naci <sofiane.naci@arm.com>
6635
6636 * config/aarch64/aarch64.md
6637 (*movti_aarch64): Rename r_2_f and f_2_r.
6638 (*movsf_aarch64): Likewise.
6639 (*movdf_aarch64): Likewise.
6640 (*movtf_aarch64): Likewise.
6641 (aarch64_movdi_<mode>low): Likewise.
6642 (aarch64_movdi_<mode>high): Likewise.
6643 (aarch64_mov<mode>high_di): Likewise.
6644 (aarch64_mov<mode>low_di): Likewise.
6645 (aarch64_movtilow_tilow): Likewise.
6646 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
6647 values to config/arm/types.md
6648 (attribute "conds"): Update for attribute change.
6649 (anddi3_insn): Likewise.
6650 (iordi3_insn): Likewise.
6651 (xordi3_insn): Likewise.
6652 (one_cmpldi2): Likewise.
6653 * config/arm/types.md (type): Add Neon types.
6654 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
6655 use "type" attribute.
6656 (movmisalign<mode>_neon_store): Likewise.
6657 (movmisalign<mode>_neon_load): Likewise.
6658 (vec_set<mode>_internal): Likewise.
6659 (vec_setv2di_internal): Likewise.
6660 (vec_extract<mode>): Likewise.
6661 (vec_extractv2di): Likewise.
6662 (add<mode>3_neon): Likewise.
6663 (adddi3_neon): Likewise.
6664 (sub<mode>3_neon): Likewise.
6665 (subdi3_neon): Likewise.
6666 (mul<mode>3_neon): Likewise.
6667 (mul<mode>3add<mode>_neon): Likewise.
6668 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6669 (fma<VCVTF:mode>4)): Likewise.
6670 (fma<VCVTF:mode>4_intrinsic): Likewise.
6671 (fmsub<VCVTF:mode>4)): Likewise.
6672 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
6673 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
6674 (ior<mode>3): Likewise.
6675 (and<mode>3): Likewise.
6676 (anddi3_neon): Likewise.
6677 (orn<mode>3_neon): Likewise.
6678 (orndi3_neon): Likewise.
6679 (bic<mode>3_neon): Likewise.
6680 (bicdi3_neon): Likewise.
6681 (xor<mode>3): Likewise.
6682 (one_cmpl<mode>2): Likewise.
6683 (abs<mode>2): Likewise.
6684 (neg<mode>2): Likewise.
6685 (umin<mode>3_neon): Likewise.
6686 (umax<mode>3_neon): Likewise.
6687 (smin<mode>3_neon): Likewise.
6688 (smax<mode>3_neon): Likewise.
6689 (vashl<mode>3): Likewise.
6690 (vashr<mode>3_imm): Likewise.
6691 (vlshr<mode>3_imm): Likewise.
6692 (ashl<mode>3_signed): Likewise.
6693 (ashl<mode>3_unsigned): Likewise.
6694 (neon_load_count): Likewise.
6695 (ashldi3_neon_noclobber): Likewise.
6696 (signed_shift_di3_neon): Likewise.
6697 (unsigned_shift_di3_neon): Likewise.
6698 (ashrdi3_neon_imm_noclobber): Likewise.
6699 (lshrdi3_neon_imm_noclobber): Likewise.
6700 (widen_ssum<mode>3): Likewise.
6701 (widen_usum<mode>3): Likewise.
6702 (quad_halves_<code>v4si): Likewise.
6703 (quad_halves_<code>v4sf): Likewise.
6704 (quad_halves_<code>v8hi): Likewise.
6705 (quad_halves_<code>v16qi): Likewise.
6706 (reduc_splus_v2di): Likewise.
6707 (neon_vpadd_internal<mode>): Likewise.
6708 (neon_vpsmin<mode>): Likewise.
6709 (neon_vpsmax<mode>): Likewise.
6710 (neon_vpumin<mode>): Likewise.
6711 (neon_vpumax<mode>): Likewise.
6712 (ss_add<mode>_neon): Likewise.
6713 (us_add<mode>_neon): Likewise.
6714 (ss_sub<mode>_neon): Likewise.
6715 (us_sub<mode>_neon): Likewise.
6716 (neon_vadd<mode>_unspec): Likewise.
6717 (neon_vaddl<mode>): Likewise.
6718 (neon_vaddw<mode>): Likewise.
6719 (neon_vhadd<mode>): Likewise.
6720 (neon_vqadd<mode>): Likewise.
6721 (neon_vaddhn<mode>): Likewise.
6722 (neon_vmul<mode>): Likewise.
6723 (neon_vmla<mode>): Likewise.
6724 (neon_vmlal<mode>): Likewise.
6725 (neon_vmls<mode>): Likewise.
6726 (neon_vmlsl<mode>): Likewise.
6727 (neon_vqdmulh<mode>): Likewise.
6728 (neon_vqdmlal<mode>): Likewise.
6729 (neon_vqdmlsl<mode>): Likewise.
6730 (neon_vmull<mode>): Likewise.
6731 (neon_vqdmull<mode>): Likewise.
6732 (neon_vsub<mode>_unspec): Likewise.
6733 (neon_vsubl<mode>): Likewise.
6734 (neon_vsubw<mode>): Likewise.
6735 (neon_vqsub<mode>): Likewise.
6736 (neon_vhsub<mode>): Likewise.
6737 (neon_vsubhn<mode>): Likewise.
6738 (neon_vceq<mode>): Likewise.
6739 (neon_vcge<mode>): Likewise.
6740 (neon_vcgeu<mode>): Likewise.
6741 (neon_vcgt<mode>): Likewise.
6742 (neon_vcgtu<mode>): Likewise.
6743 (neon_vcle<mode>): Likewise.
6744 (neon_vclt<mode>): Likewise.
6745 (neon_vcage<mode>): Likewise.
6746 (neon_vcagt<mode>): Likewise.
6747 (neon_vtst<mode>): Likewise.
6748 (neon_vabd<mode>): Likewise.
6749 (neon_vabdl<mode>): Likewise.
6750 (neon_vaba<mode>): Likewise.
6751 (neon_vabal<mode>): Likewise.
6752 (neon_vmax<mode>): Likewise.
6753 (neon_vmin<mode>): Likewise.
6754 (neon_vpaddl<mode>): Likewise.
6755 (neon_vpadal<mode>): Likewise.
6756 (neon_vpmax<mode>): Likewise.
6757 (neon_vpmin<mode>): Likewise.
6758 (neon_vrecps<mode>): Likewise.
6759 (neon_vrsqrts<mode>): Likewise.
6760 (neon_vqabs<mode>): Likewise.
6761 (neon_vqneg<mode>): Likewise.
6762 (neon_vcls<mode>): Likewise.
6763 (clz<mode>2): Likewise.
6764 (popcount<mode>2): Likewise.
6765 (neon_vrecpe): Likewise.
6766 (neon_vrsqrte): Likewise.
6767 (neon_vget_lane<mode>_sext_internal): Likewise.
6768 (neon_vget_lane<mode>_zext_internal): Likewise.
6769 (neon_vdup_n<mode>): Likewise.
6770 (neon_vdup_nv2di): Likewise.
6771 (neon_vdpu_lane<mode>_internal): Likewise.
6772 (neon_vswp<mode>): Likewise.
6773 (float<mode><V_cvtto>2): Likewise.
6774 (floatuns<mode><V_cvtto>2): Likewise.
6775 (fix_trunc<mode><V_cvtto>)2): Likewise
6776 (fixuns_trunc<mode><V_cvtto)2): Likewise.
6777 (neon_vcvt<mode>): Likewise.
6778 (neon_vcvtv4sfv4hf): Likewise.
6779 (neon_vcvtv4hfv4sf): Likewise.
6780 (neon_vcvt_n<mode>): Likewise.
6781 (neon_vmovn<mode>): Likewise.
6782 (neon_vqmovn<mode>): Likewise.
6783 (neon_vqmovun<mode>): Likewise.
6784 (neon_vmovl<mode>): Likewise.
6785 (neon_vmul_lane<mode>): Likewise.
6786 (neon_vmull_lane<mode>): Likewise.
6787 (neon_vqdmull_lane<mode>): Likewise.
6788 (neon_vqdmulh_lane<mode>): Likewise.
6789 (neon_vmla_lane<mode>): Likewise.
6790 (neon_vmlal_lane<mode>): Likewise.
6791 (neon_vqdmlal_lane<mode>): Likewise.
6792 (neon_vmls_lane<mode>): Likewise.
6793 (neon_vmlsl_lane<mode>): Likewise.
6794 (neon_vqdmlsl_lane<mode>): Likewise.
6795 (neon_vext<mode>): Likewise.
6796 (neon_vrev64<mode>): Likewise.
6797 (neon_vrev32<mode>): Likewise.
6798 (neon_vrev16<mode>): Likewise.
6799 (neon_vbsl<mode>_internal): Likewise.
6800 (neon_vshl<mode>): Likewise.
6801 (neon_vqshl<mode>): Likewise.
6802 (neon_vshr_n<mode>): Likewise.
6803 (neon_vshrn_n<mode>): Likewise.
6804 (neon_vqshrn_n<mode>): Likewise.
6805 (neon_vqshrun_n<mode>): Likewise.
6806 (neon_vshl_n<mode>): Likewise.
6807 (neon_vqshl_n<mode>): Likewise.
6808 (neon_vqshlu_n<mode>): Likewise.
6809 (neon_vshll_n<mode>): Likewise.
6810 (neon_vsra_n<mode>): Likewise.
6811 (neon_vsri_n<mode>): Likewise.
6812 (neon_vsli_n<mode>): Likewise.
6813 (neon_vtbl1v8qi): Likewise.
6814 (neon_vtbl2v8qi): Likewise.
6815 (neon_vtbl3v8qi): Likewise.
6816 (neon_vtbl4v8qi): Likewise.
6817 (neon_vtbx1v8qi): Likewise.
6818 (neon_vtbx2v8qi): Likewise.
6819 (neon_vtbx3v8qi): Likewise.
6820 (neon_vtbx4v8qi): Likewise.
6821 (neon_vtrn<mode>_internal): Likewise.
6822 (neon_vzip<mode>_internal): Likewise.
6823 (neon_vuzp<mode>_internal): Likewise.
6824 (neon_vld1<mode>): Likewise.
6825 (neon_vld1_lane<mode>): Likewise.
6826 (neon_vld1_dup<mode>): Likewise.
6827 (neon_vld1_dupv2di): Likewise.
6828 (neon_vst1<mode>): Likewise.
6829 (neon_vst1_lane<mode>): Likewise.
6830 (neon_vld2<mode>): Likewise.
6831 (neon_vld2_lane<mode>): Likewise.
6832 (neon_vld2_dup<mode>): Likewise.
6833 (neon_vst2<mode>): Likewise.
6834 (neon_vst2_lane<mode>): Likewise.
6835 (neon_vld3<mode>): Likewise.
6836 (neon_vld3qa<mode>): Likewise.
6837 (neon_vld3qb<mode>): Likewise.
6838 (neon_vld3_lane<mode>): Likewise.
6839 (neon_vld3_dup<mode>): Likewise.
6840 (neon_vst3<mode>): Likewise.
6841 (neon_vst3qa<mode>): Likewise.
6842 (neon_vst3qb<mode>): Likewise.
6843 (neon_vst3_lane<mode>): Likewise.
6844 (neon_vld4<mode>): Likewise.
6845 (neon_vld4qa<mode>): Likewise.
6846 (neon_vld4qb<mode>): Likewise.
6847 (neon_vld4_lane<mode>): Likewise.
6848 (neon_vld4_dup<mode>): Likewise.
6849 (neon_vst4<mode>): Likewise.
6850 (neon_vst4qa<mode>): Likewise.
6851 (neon_vst4qb<mode>): Likewise.
6852 (neon_vst4_lane<mode>): Likewise.
6853 (neon_vec_unpack<US>_lo_<mode>): Likewise.
6854 (neon_vec_unpack<US>_hi_<mode>): Likewise.
6855 (neon_vec_<US>mult_lo_<mode>): Likewise.
6856 (neon_vec_<US>mult_hi_<mode>): Likewise.
6857 (neon_vec_<US>shiftl_<mode>): Likewise.
6858 (neon_unpack<US>_<mode>): Likewise.
6859 (neon_vec_<US>mult_<mode>): Likewise.
6860 (vec_pack_trunc_<mode>): Likewise.
6861 (neon_vec_pack_trunk_<mode>): Likewise.
6862 (neon_vabd<mode>_2): Likewise.
6863 (neon_vabd<mode>_3): Likewise.
6864 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
6865 (thumb2_movsi_vfp): Likewise.
6866 (movdi_vfp): Likewise.
6867 (movdi_vfp_cortexa8): Likewise.
6868 (movhf_vfp_neon): Likewise.
6869 (movhf_vfp): Likewiwse.
6870 (movsf_vfp): Likewiwse.
6871 (thumb2_movsf_vfp): Likewiwse.
6872 (movdf_vfp): Likewise.
6873 (thumb2_movdf_vfp): Likewise.
6874 (movsfcc_vfp): Likewise.
6875 (thumb2_movsfcc_vfp): Likewise.
6876 (movdfcc_vfp): Likewise.
6877 (thumb2_movdfcc_vfp): Likewise.
6878 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
6879 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
6880 (v10_v2c): Likewise.
6881 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
6882 attribute change.
6883 (cortex_a15_neon_int_2): Likewise.
6884 (cortex_a15_neon_int_3): Likewise.
6885 (cortex_a15_neon_int_4): Likewise.
6886 (cortex_a15_neon_int_5): Likewise.
6887 (cortex_a15_neon_vqneg_vqabs): Likewise.
6888 (cortex_a15_neon_vmov): Likewise.
6889 (cortex_a15_neon_vaba): Likewise.
6890 (cortex_a15_neon_vaba_qqq): Likewise.
6891 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6892 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
6893 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
6894 scalar_64_32_long_scalar): Likewise.
6895 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
6896 (cortex_a15_neon_mla_qqq_8_16): Likewise.
6897 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
6898 lotype_qdd_64_32_long): Likewise.
6899 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
6900 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
6901 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
6902 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
6903 (cortex_a15_neon_shift_1): Likewise.
6904 (cortex_a15_neon_shift_2): Likewise.
6905 (cortex_a15_neon_shift_3): Likewise.
6906 (cortex_a15_neon_vshl_ddd): Likewise.
6907 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
6908 (cortex_a15_neon_vsra_vrsra): Likewise.
6909 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
6910 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
6911 (cortex_a15_neon_fp_vmul_ddd): Likewise.
6912 (cortex_a15_neon_fp_vmul_qqd): Likewise.
6913 (cortex_a15_neon_fp_vmla_ddd): Likewise.
6914 (cortex_a15_neon_fp_vmla_qqq): Likewise.
6915 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
6916 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
6917 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
6918 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
6919 (cortex_a15_neon_bp_simple): Likewise.
6920 (cortex_a15_neon_bp_2cycle): Likewise.
6921 (cortex_a15_neon_bp_3cycle): Likewise.
6922 (cortex_a15_neon_vld1_1_2_regs): Likewise.
6923 (cortex_a15_neon_vld1_3_4_regs): Likewise.
6924 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
6925 (cortex_a15_neon_vld2_4_regs): Likewise.
6926 (cortex_a15_neon_vld3_vld4): Likewise.
6927 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
6928 (cortex_a15_neon_vst1_3_4_regs): Likewise.
6929 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
6930 (cortex_a15_neon_vst3_vst4): Likewise.
6931 (cortex_a15_neon_vld1_vld2_lane): Likewise.
6932 (cortex_a15_neon_vld3_vld4_lane" 10
6933 (cortex_a15_neon_vst1_vst2_lane): Likewise.
6934 (cortex_a15_neon_vst3_vst4_lane): Likewise.
6935 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
6936 (cortex_a15_neon_ldm_2): Likewise.0
6937 (cortex_a15_neon_stm_2): Likewise.
6938 (cortex_a15_neon_mcr): Likewise.
6939 (cortex_a15_neon_mcr_2_mcrr): Likewise.
6940 (cortex_a15_neon_mrc): Likewise.
6941 (cortex_a15_neon_mrrc): Likewise.
6942 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
6943 change.
6944 (cortex_a15_alu_shift): Likewise.
6945 (cortex_a15_alu_shift_reg): Likewise.
6946 (cortex_a15_mult32): Likewise.
6947 (cortex_a15_mult64): Likewise.
6948 (cortex_a15_block): Likewise.
6949 (cortex_a15_branch): Likewise.
6950 (cortex_a15_load1): Likewise.
6951 (cortex_a15_load3): Likewise.
6952 (cortex_a15_store1): Likewise.
6953 (cortex_a15_store3): Likewise.
6954 (cortex_a15_call): Likewise.
f43245d1 6955 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
6956 (cortex_a5_f2r): Likewise.
6957 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
6958 change.
6959 (cortex_a53_f2r): Likewise.
6960 * config/arm/cortex-a7.md
6961 (cortex_a7_branch): Update for attribute change.
6962 (cortex_a7_call): Likewise.
6963 (cortex_a7_alu_imm): Likewise.
6964 (cortex_a7_alu_reg): Likewise.
6965 (cortex_a7_alu_shift): Likewise.
6966 (cortex_a7_mul): Likewise.
6967 (cortex_a7_load1): Likewise.
6968 (cortex_a7_store1): Likewise.
6969 (cortex_a7_load2): Likewise.
6970 (cortex_a7_store2): Likewise.
6971 (cortex_a7_load3): Likewise.
6972 (cortex_a7_store3): Likewise.
6973 (cortex_a7_load4): Likewise.
6974 (cortex_a7_store4): Likewise.
6975 (cortex_a7_fpalu): Likewise.
6976 (cortex_a7_fconst): Likewise.
6977 (cortex_a7_fpmuls): Likewise.
6978 (cortex_a7_neon_mul): Likewise.
6979 (cortex_a7_fpmacs): Likewise.
6980 (cortex_a7_neon_mla: Likewise.
6981 (cortex_a7_fpmuld: Likewise.
6982 (cortex_a7_fpmacd: Likewise.
6983 (cortex_a7_fpfmad: Likewise.
6984 (cortex_a7_fdivs: Likewise.
6985 (cortex_a7_fdivd: Likewise.
6986 (cortex_a7_r2f: Likewise.
6987 (cortex_a7_f2r: Likewise.
6988 (cortex_a7_f_flags: Likewise.
6989 (cortex_a7_f_loads: Likewise.
6990 (cortex_a7_f_loadd: Likewise.
6991 (cortex_a7_f_stores: Likewise.
6992 (cortex_a7_f_stored: Likewise.
6993 (cortex_a7_neon): Likewise.
6994 * config/arm/cortex-a8-neon.md
6995 (cortex_a8_neon_mrc): Update for attribute change.
6996 (cortex_a8_neon_mrrc): Likewise.
6997 (cortex_a8_neon_int_1): Likewise.
6998 (cortex_a8_neon_int_2): Likewise.
6999 (cortex_a8_neon_int_3): Likewise.
7000 (cortex_a8_neon_int_4): Likewise.
7001 (cortex_a8_neon_int_5): Likewise.
7002 (cortex_a8_neon_vqneg_vqabs): Likewise.
7003 (cortex_a8_neon_vmov): Likewise.
7004 (cortex_a8_neon_vaba): Likewise.
7005 (cortex_a8_neon_vaba_qqq): Likewise.
7006 (cortex_a8_neon_vsma): Likewise.
7007 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7008 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
7009 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
7010 long_scalar): Likewise.
003bb7f3
JG
7011 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7012 (cortex_a8_neon_mla_qqq_8_16): Likewise.
7013 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
7014 long_scalar_qdd_64_32_long): Likewise.
7015 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7016 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7017 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
7018 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7019 (cortex_a8_neon_shift_1): Likewise.
7020 (cortex_a8_neon_shift_2): Likewise.
7021 (cortex_a8_neon_shift_3): Likewise.
7022 (cortex_a8_neon_vshl_ddd): Likewise.
7023 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7024 (cortex_a8_neon_vsra_vrsra): Likewise.
7025 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
7026 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
7027 (cortex_a8_neon_fp_vsum): Likewise.
7028 (cortex_a8_neon_fp_vmul_ddd): Likewise.
7029 (cortex_a8_neon_fp_vmul_qqd): Likewise.
7030 (cortex_a8_neon_fp_vmla_ddd): Likewise.
7031 (cortex_a8_neon_fp_vmla_qqq): Likewise.
7032 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
7033 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
7034 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7035 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7036 (cortex_a8_neon_bp_simple): Likewise.
7037 (cortex_a8_neon_bp_2cycle): Likewise.
7038 (cortex_a8_neon_bp_3cycle): Likewise.
7039 (cortex_a8_neon_ldr): Likewise.
7040 (cortex_a8_neon_str): Likewise.
7041 (cortex_a8_neon_vld1_1_2_regs): Likewise.
7042 (cortex_a8_neon_vld1_3_4_regs): Likewise.
7043 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7044 (cortex_a8_neon_vld2_4_regs): Likewise.
7045 (cortex_a8_neon_vld3_vld4): Likewise.
7046 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7047 (cortex_a8_neon_vst1_3_4_regs): Likewise.
7048 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
7049 (cortex_a8_neon_vst3_vst4): Likewise.
7050 (cortex_a8_neon_vld1_vld2_lane): Likewise.
7051 (cortex_a8_neon_vld3_vld4_lane): Likewise.
7052 (cortex_a8_neon_vst1_vst2_lane): Likewise.
7053 (cortex_a8_neon_vst3_vst4_lane): Likewise.
7054 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
7055 (cortex_a8_neon_mcr): Likewise.
7056 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 7057 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
7058 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
7059 change.
7060 (ca9_neon_mrrc): Likewise.
7061 (cortex_a9_neon_int_1): Likewise.
7062 (cortex_a9_neon_int_2): Likewise.
7063 (cortex_a9_neon_int_3): Likewise.
7064 (cortex_a9_neon_int_4): Likewise.
7065 (cortex_a9_neon_int_5): Likewise.
7066 (cortex_a9_neon_vqneg_vqabs): Likewise.
7067 (cortex_a9_neon_vmov): Likewise.
7068 (cortex_a9_neon_vaba): Likewise.
7069 (cortex_a9_neon_vaba_qqq): Likewise.
7070 (cortex_a9_neon_vsma): Likewise.
7071 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7072 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
7073 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
7074 long_scalar): Likewise.
003bb7f3
JG
7075 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7076 (cortex_a9_neon_mla_qqq_8_16): Likewise.
7077 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
7078 long_scalar_qdd_64_32_long): Likewise.
7079 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7080 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7081 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
7082 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7083 (cortex_a9_neon_shift_1): Likewise.
7084 (cortex_a9_neon_shift_2): Likewise.
7085 (cortex_a9_neon_shift_3): Likewise.
7086 (cortex_a9_neon_vshl_ddd): Likewise.
7087 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7088 (cortex_a9_neon_vsra_vrsra): Likewise.
7089 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
7090 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
7091 (cortex_a9_neon_fp_vsum): Likewise.
7092 (cortex_a9_neon_fp_vmul_ddd): Likewise.
7093 (cortex_a9_neon_fp_vmul_qqd): Likewise.
7094 (cortex_a9_neon_fp_vmla_ddd): Likewise.
7095 (cortex_a9_neon_fp_vmla_qqq): Likewise.
7096 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
7097 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
7098 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7099 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7100 (cortex_a9_neon_bp_simple): Likewise.
7101 (cortex_a9_neon_bp_2cycle): Likewise.
7102 (cortex_a9_neon_bp_3cycle): Likewise.
7103 (cortex_a9_neon_ldr): Likewise.
7104 (cortex_a9_neon_str): Likewise.
7105 (cortex_a9_neon_vld1_1_2_regs): Likewise.
7106 (cortex_a9_neon_vld1_3_4_regs): Likewise.
7107 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7108 (cortex_a9_neon_vld2_4_regs): Likewise.
7109 (cortex_a9_neon_vld3_vld4): Likewise.
7110 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7111 (cortex_a9_neon_vst1_3_4_regs): Likewise.
7112 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
7113 (cortex_a9_neon_vst3_vst4): Likewise.
7114 (cortex_a9_neon_vld1_vld2_lane): Likewise.
7115 (cortex_a9_neon_vld3_vld4_lane): Likewise.
7116 (cortex_a9_neon_vst1_vst2_lane): Likewise.
7117 (cortex_a9_neon_vst3_vst4_lane): Likewise.
7118 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7119 (cortex_a9_neon_mcr): Likewise.
7120 (cortex_a9_neon_mcr_2_mcrr): Likewise.
7121 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
7122 (cortex_a9_fps): Likewise.
7123 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
7124 change.
7125 (cortex_m4_fmuls): Likewise.
7126 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
7127 change.
7128 (cortex_r4_mrc): Likewise.
7129 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 7130 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 7131 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
7132 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
7133 attribute change.
003bb7f3
JG
7134 (pj4_core_to_vfp): Likewise.
7135 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
7136 attribute change.
7137 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
7138 (vfp_fstore): Likewise.
7139 * doc/md.texi: Change references to neon_type to refer to type.
7140
fbe0dc78
DS
71412013-09-04 Dodji Seketeli <dodji@redhat.com>
7142
7143 * tree.h (DECL_BUILT_IN): Fix typo in comment.
7144
c167bc5b
DE
71452013-09-04 David Edelsohn <dje.gcc@gmail.com>
7146
7147 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
7148 lglobl if not weak.
7149
035cb59f
ER
71502013-09-04 Easwaran Raman <eraman@google.com>
7151
7152 PR middle-end/57370
7153 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
7154 (build_and_add_sum): Use it.
7155 (appears_later_in_bb): Simplify code.
7156
71191083
TJ
71572013-09-04 Teresa Johnson <tejohnson@google.com>
7158
7159 * dumpfile.c (dump_finish): Don't close stderr/stdout.
7160
0c488213
JG
71612013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
7162
7163 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
7164
61a74079
JH
71652013-09-04 Jan Hubicka <jh@suse.cz>
7166
7167 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
7168 * ipa-devirt.c: Include diganostic.h
7169 (odr_type_d): Add types and types_set.
7170 (hash_type_name): Work for types with vtables during LTO.
7171 (odr_hasher::remove): Fix comment; destroy types_set.
7172 (add_type_duplicate): New function,
7173 (get_odr_type): Use it.
7174 (dump_type_inheritance_graph): Dump type duplicates.
7175 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
7176 graph.
7177 * tree.c (types_same_for_odr): Give exact answers on types with
7178 virtual tables.
7179
24ba8195
DS
71802013-09-04 Dodji Seketeli <dodji@redhat.com>
7181
7182 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 7183 explaining their differences.
24ba8195 7184
0a04869e
SKS
71852013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
7186
7187 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
7188
3b18bc42
JL
71892013-09-03 Jeff Law <law@redhat.com>
7190
7191 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
7192 when not threading through a joiner block. Pass joiner/no joiner
7193 state to register_jump_thread.
7194 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
7195 state from argument rather than implying on path length.
7196 Dump the entire jump thread path into debugging dump.
7197 * tree-flow.h (register_jump_thread): Update prototype.
7198
ae84e151
XDL
71992013-08-29 Xinliang David Li <davidxl@google.com>
7200
7201 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7202 Remove a trivial gcc_assert.
7203
c716e67f
XDL
72042013-08-29 Xinliang David Li <davidxl@google.com>
7205
7206 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
7207 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
7208 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7209 Delay base decl alignment adjustment.
7210 * tree-vectorizer.c (vect_destroy_datarefs): New function.
7211 * tree-vectorizer.h: New data structure.
7212 (set_dr_misalignment): New function.
7213 (dr_misalignment): Ditto.
7214 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
7215 (vectorizable_load): Ditto.
7216 (ensure_base_align): New function.
7217 (vectorize_loops): Add dbg_cnt support.
7218 (execute_vect_slp): Ditto.
7219 * dbgcnt.def: New debug counter.
7220 * Makefile: New dependency.
7221
db8800bc
MI
72222013-09-03 Meador Inge <meadori@codesourcery.com>
7223
7224 Revert:
7225
7226 2013-08-30 Meador Inge <meadori@codesourcery.com>
7227
7228 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
7229
0d9b4f5c
DE
72302013-09-03 David Edelsohn <dje.gcc@gmail.com>
7231
7232 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
7233 function descriptor.
7234
29e810b9
RB
72352013-09-03 Richard Biener <rguenther@suse.de>
7236
7237 * tree-affine.c (add_elt_to_tree): Fix association issue,
7238 avoid useless converts and make sure to always return a
7239 properly typed result.
7240
dbfc2894
RB
72412013-09-03 Richard Biener <rguenther@suse.de>
7242
7243 PR middle-end/57656
7244 * fold-const.c (negate_expr_p): Fix division case.
7245 (negate_expr): Likewise.
7246
fa3bf4ce
RB
72472013-09-03 Richard Biener <rguenther@suse.de>
7248
7249 PR lto/58285
7250 * tree-streamer-out.c: Include tm.h.
7251 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
7252
a64bbb3f
JH
72532013-09-03 Jan Hubicka <jh@suse.cz>
7254
7255 * tree-profile.c (tree_profiling): Cleanup CFG when done.
7256
93ed07e2
AM
72572013-09-03 Alan Modra <amodra@gmail.com>
7258
7259 * config.gcc (powerpc*-*-linux*): Add support for little-endian
7260 multilibs to big-endian target and vice versa.
7261 * config/rs6000/t-linux64: Use := assignment on all vars.
7262 (MULTILIB_EXTRA_OPTS): Remove fPIC.
7263 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
7264 * config/rs6000/t-linux64le: New file.
7265 * config/rs6000/t-linux64bele: New file.
7266 * config/rs6000/t-linux64lebe: New file.
7267
07d6cd64
JH
72682013-09-02 Jan Hubicka <jh@suse.cz>
7269
7270 * ipa-inline-transform.c (inline_transform): Do not
7271 optimize_inline_calls when not optimizing.
7272
8e4c9a10
JH
72732013-09-02 Jan Hubicka <jh@suse.cz>
7274
7275 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
7276 duplicated nodes for assembler names.
7277 * symtab.c (symtab_unregister_node): Do not attempt to unlink
7278 hard registers from assembler name hash.
7279
c91061e6
JH
72802013-09-02 Jan Hubicka <jh@suse.cz>
7281
7282 * ipa-split.c (execute_split_functions): Split externally visible
7283 functions called once.
7284
2fd0985c
MJ
72852013-09-02 Martin Jambor <mjambor@suse.cz>
7286
7287 PR ipa/58106
7288 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
7289 linked list. When finding the correct duplicate, also consider also
7290 the caller in additon to its inlined_to node.
7291
91bd4114
JG
72922013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
7293
7294 * config/aarch64/aarch64-simd-builtins.def
7295 (dup_lane_scalar): Remove.
7296 * config/aarch64/aarch64-simd.md
7297 (aarch64_simd_dup): Add 'w->w' alternative.
7298 (aarch64_dup_lane<mode>): Allow for VALL.
7299 (aarch64_dup_lane_scalar<mode>): Remove.
7300 (aarch64_dup_lane_<vswap_width_name><mode>): New.
7301 (aarch64_get_lane_signed<mode>): Add w->w altenative.
7302 (aarch64_get_lane_unsigned<mode>): Likewise.
7303 (aarch64_get_lane<mode>): Likewise.
7304 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
7305 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
7306 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
7307 (VCON): Change container of V2SF.
7308 (vswap_width_name): Likewise.
7309 * config/aarch64/arm_neon.h
7310 (__aarch64_vdup_lane_any): New.
7311 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
7312 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
7313 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
7314
d617d2d8
EB
73152013-09-02 Eric Botcazou <ebotcazou@adacore.com>
7316
7317 PR middle-end/56382
7318 * expr.c (emit_move_complex): Do not move complex FP values as parts if
7319 the source or the destination is a single hard register.
7320
63fdb7be
RB
73212013-09-02 Richard Biener <rguenther@suse.de>
7322
7323 PR middle-end/57511
7324 * tree-scalar-evolution.c (instantiate_scev_name): Allow
7325 non-linear SCEVs.
7326
78de2333
RB
73272013-09-02 Richard Biener <rguenther@suse.de>
7328
7329 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
7330 arithmetic to sizetype.
7331
85ff4ec6
BC
73322013-09-02 Bin Cheng <bin.cheng@arm.com>
7333
7334 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
7335 Find auto-increment use both before and after candidate.
7336
576016fe
MP
73372013-09-02 Marek Polacek <polacek@redhat.com>
7338
7339 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
7340
08f835dc
JH
73412013-09-01 Jan Hubicka <jh@suse.cz>
7342
7343 * Makefile.in: Add ipa-profile.o
7344 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
7345 * cgraph.c (struct cgraph_propagate_frequency_data,
7346 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
7347 ipa-profile.c; replace cgraph_ by ipa_ prefix.
7348 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
7349 * ipa-inline-analysis.c: Include ipa-utils.h;
7350 drop duplicated cfgloop.h.
08f835dc
JH
7351 (inline_update_callee_summaries): Update.
7352 * ipa-profile.c: New file.
7353 * ipa-utils.h (ipa_propagate_frequency): Declare.
7354 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 7355 data-streamer.h, value-prof.h.
08f835dc
JH
7356 (symtab_remove_unreachable_nodes): Update profile.
7357 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
7358 account_time_size, cmp_counts, dump_histogram,
7359 ipa_profile_generate_summary, ipa_profile_write_summary,
7360 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
7361 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 7362 Move to ipa-profile.c.
08f835dc 7363
cec8583c
JDA
73642013-09-01 John David Anglin <danglin@gcc.gnu.org>
7365
7366 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
7367
bbc9396b
JH
73682013-09-01 Jan Hubicka <jh@suse.cz>
7369
7370 * common.opt (fdevirtualize-speculatively): New function.
7371 * invoke.texi (fdevirtualize-speculatively): Document.
7372 * ipa-devirt.c: Include ipa-inline.h
7373 (likely_target_p): New function.
7374 (ipa_devirt): New function.
7375 (gate_ipa_devirt): New function.
7376 (pass_data_ipa_devirt): New static var.
7377 (pass_ipa_devirt): Likewise.
7378 (make_pass_ipa_devirt): New function.
7379 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
7380 (common_handle_option): Disable devirtualization when
7381 value range profiling is available.
7382 * passes.def (pass_ipa_devirt): Add.
7383 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 7384 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 7385
0cea211e
IS
73862013-09-01 Iain Sandoe <iain@codesourcery.com>
7387
7388 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
7389 include sanitize(undefined).
7390
5e351e96
DN
73912013-08-31 Diego Novillo <dnovillo@google.com>
7392
7393 * Makefile.in (TREE_CORE_H): Define.
7394 (TREE_H): Use.
7395 (GTFILES): Add tree-core.h.
7396 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
7397 size the array.
7398 * tree-core.h: New file.
7399 Move all data structures, enum, typedefs, global
7400 declarations and constants from ...
7401 * tree.h: ... here.
7402
63bf9a90
JH
74032013-08-31 Jan Hubicka <jh@suse.cz>
7404
7405 * bulitins.c (expand_builtin): Do not early exit for gcov
7406 instrumented functions.
7407
5c0abd6a
MP
74082013-08-31 Marek Polacek <polacek@redhat.com>
7409
7410 * ubsan.c: Include tm_p.h.
7411
4843f032
JH
74122013-08-31 Jan Hubicka <jh@suse.cz>
7413
8356c89c
JH
7414 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
7415 warning.
7416
4843f032
JH
7417 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
7418 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 7419 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
7420 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
7421 (ipa_merge_profiles): New function.
7422 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
7423 (lto_input_function_body): Likewise.
5e581212
JH
7424 * ipa-utils.h (ipa_merge_profiles): Declare.
7425 * lto-streamer.h (lto_input_function_body): Update prototype.
7426 (emit_label_in_global_context_p): Remove.
7427 * lto-symtab.c: Include ipa-utils.h
7428 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 7429
57292ce9
JH
74302013-08-31 Jan Hubicka <jh@suse.cz>
7431
7432 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
7433
b9cbfeeb
JH
74342013-08-31 Jan Hubicka <jh@suse.cz>
7435
7436 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
7437
41dedebd
UB
74382013-08-31 Uros Bizjak <ubizjak@gmail.com>
7439
7440 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
7441 "cmp" RTX before signed_comparison_operator check to account
7442 for "code" changes.
7443
06d65050
JH
74442013-08-30 Jan Hubicka <jh@suse.cz>
7445
41dedebd 7446 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
7447 (detect_type_change_1): Rename to ...
7448 (detect_type_change): ... this one; early return on non-polymorphic
7449 types.
41dedebd 7450 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
7451 use of detect_type_change.
7452 (compute_complex_assign_jump_func): Add param_type parameter;
7453 update use of detect_type_change_ssa.
7454 (compute_complex_ancestor_jump_func): Likewise.
7455 (ipa_get_callee_param_type): New function.
7456 (ipa_compute_jump_functions_for_edge): Compute parameter type;
7457 update calls to the jump function computation functions.
7458
600b5b1d
TJ
74592013-08-30 Teresa Johnson <tejohnson@google.com>
7460 Steven Bosscher <steven@gcc.gnu.org>
7461
7462 * cfgrtl.c (fixup_new_cold_bb): New routine.
7463 (commit_edge_insertions): Invoke fixup_partitions.
7464 (find_partition_fixes): New routine.
7465 (fixup_partitions): Ditto.
7466 (verify_hot_cold_block_grouping): Update comments.
7467 (rtl_verify_edges): Invoke find_partition_fixes.
7468 (rtl_verify_bb_pointers): Update comments.
7469 (rtl_verify_bb_layout): Ditto.
7470 * basic-block.h (probably_never_executed_edge_p): Declare.
7471 (fixup_partitions): Ditto.
7472 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
7473 * bb-reorder.c (sanitize_hot_paths): New function.
7474 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
7475 sanitize_hot_paths.
7476 * predict.c (probably_never_executed_edge_p): New routine.
7477 * cfg.c (check_bb_profile): Add partition insanity warnings.
7478
0a6ea5c9
MI
74792013-08-30 Meador Inge <meadori@codesourcery.com>
7480
7481 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
7482
de5a5fa1
MP
74832013-08-30 Marek Polacek <polacek@redhat.com>
7484
7485 * Makefile.in (ubsan.o): Add.
7486 (c-family/c-ubsan.o): Add.
7487 (builtins.o): Add ubsan.h dependency.
7488 * ubsan.h: New file.
7489 * ubsan.c: New file.
7490 * common.opt: Add -fsanitize=undefined option.
7491 (flag_sanitize): Add variable.
7492 (fsanitize=): Add option. Add Driver.
7493 (fsanitize=thread): Remove option.
7494 (fsanitize=address): Likewise.
7495 (static-libubsan): New option.
7496 * doc/invoke.texi: Document the new flag and -static-libubsan.
7497 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
7498 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
7499 * builtin-attrs.def (ATTR_COLD): Define.
7500 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
7501 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
7502 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
7503 * flag-types.h (sanitize_code): New enum.
7504 * opts.c (common_handle_option): Parse command line arguments
7505 of -fsanitize=. Add -fsanitize=unreachable option.
7506 * varasm.c (get_variable_section): Adjust.
7507 (assemble_noswitch_variable): Likewise.
7508 (assemble_variable): Likewise.
7509 (output_constant_def_contents): Likewise.
7510 (categorize_decl_for_section): Likewise.
7511 (place_block_symbol): Likewise.
7512 (output_object_block): Likewise.
7513 * builtins.def: Likewise.
7514 * toplev.c (compile_file): Likewise.
7515 (process_options): Likewise.
7516 * cppbuiltin.c: Likewise.
7517 * tsan.c (tsan_pass): Likewise.
7518 (tsan_gate): Likewise.
7519 (tsan_gate_O0): Likewise.
7520 * cfgexpand.c (partition_stack_vars): Likewise.
7521 (expand_stack_vars): Likewise.
7522 (defer_stack_allocation): Likewise.
7523 (expand_used_vars): Likewise.
7524 * cfgcleanup.c (old_insns_match_p): Likewise.
7525 * asan.c (asan_finish_file): Likewise.
7526 (asan_instrument): Likewise.
7527 (gate_asan): Likewise.
7528 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
7529 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
7530 (asan_global_struct): Use pointer_sized_int_node instead
7531 calling build_nonstandard_integer_type.
7532 (initialize_sanitizer_builtins): Likewise.
7533 (asan_finish_file): Likewise.
7534 * gcc.c: Document %{%:function(args):X}.
7535 (static_spec_functions): Add sanitize.
7536 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
7537 store funcval != NULL there.
7538 (do_spec_1): Adjust handle_spec_function caller.
7539 (handle_braces): Allow %:function(args) as condition.
7540 (sanitize_spec_function): New function.
7541 (ADD_STATIC_LIBUBSAN_LIBS): Define.
7542 (LIBUBSAN_SPEC): Likewise.
7543 (LIBUBSAN_EARLY_SPEC): Likewise.
7544 (SANITIZER_SPEC): Handle libubsan.
7545 (SANITIZER_EARLY_SPEC): Likewise.
7546 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
7547 instead of fsanitize=address.
7548 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
7549 instead of fsanitize=address*.
7550 * builtins.c: Include ubsan.h.
7551 (fold_builtin_0): Instrument __builtin_unreachable.
7552 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
7553 instead of flag_asan.
7554 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
7555 (pointer_sized_int_node): Define.
41dedebd 7556 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 7557
f07f30cf
MS
75582013-08-30 Mike Stump <mikestump@comcast.net>
7559
7560 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
7561 with RE patterns.
7562
8a41354f
JH
75632013-08-29 Jan Hubicka <jh@suse.cz>
7564
7565 * cgraph.c (cgraph_function_body_availability): Handle weakref
7566 correctly.
7567 * passes.def: Remove pass_fixup_cfg.
7568 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
7569 track when we need to remove functions.
7570 (gate_ipa_inline): Execute inlining always; add comment why.
7571 (pass_data_ipa_inline): Remove TODO_remove_functions.
7572 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
7573 do not produce summaries.
7574 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
7575 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
7576 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
7577 constant pool and vtable.
7578
dc8d7a0f
TB
75792013-08-30 Tejas Belagod <tejas.belagod@arm.com>
7580
41dedebd
UB
7581 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
7582 New arm_neon.h's internal macros to specify 64-bit constants.
7583 Avoid using stdint.h's macros.
dc8d7a0f 7584
ac7eacd2
JR
75852013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
7586
7587 * recog.c (verify_changes): Verify that changes[i].old is non-zero
7588 before applying REG_P.
7589
8b29fd4e
JJ
75902013-08-30 Jakub Jelinek <jakub@redhat.com>
7591
7592 PR tree-optimization/58277
7593 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
7594 after seeing too many stmts with vdef in between dombb and current
7595 bb, invalidate everything.
7596
26d75703
RB
75972013-08-30 Richard Biener <rguenther@suse.de>
7598
7599 * fold-const.c (fold_single_bit_test): Fix overflow test.
7600
f7e088e7
EB
76012013-08-30 Eric Botcazou <ebotcazou@adacore.com>
7602
7603 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
7604 and which can live in a register, always retrieve the value on entry.
7605 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
7606 passed by invisible reference specially.
7607 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
7608 (vt_add_function_parameter): Correctly deal with a parameter passed by
7609 invisible reference.
7610
76112013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
7612
7613 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
7614
6e8dad05
RB
76152013-08-30 Richard Biener <rguenther@suse.de>
7616
7617 PR tree-optimization/58228
7618 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
7619 allow invariant loads in nested loop vectorization.
7620
062ef2c8
RB
76212013-08-30 Richard Biener <rguenther@suse.de>
7622
7623 PR tree-optimization/58223
7624 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
7625 (has_anti_or_output_dependence): ... this and adjust to also
7626 look for output dependences.
7627 (mark_nodes_having_upstream_mem_writes): Adjust.
7628 (rdg_flag_uses): Likewise.
7629
7a764c60
RB
76302013-08-30 Richard Biener <rguenther@suse.de>
7631
7632 PR tree-optimization/58010
7633 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7634 assert that we have a loop-closed PHI.
7635
82e9d642
JH
76362013-08-29 Jan Hubicka <jh@suse.cz>
7637
7638 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
7639 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
7640 * lto-section-in.c (lto_free_function_in_decl_state): New function.
7641 (lto_free_function_in_decl_state_for_node): New function.
7642
9cc1fb4b
XDL
76432013-08-29 Xinliang David Li <davidxl@google.com>
7644
41dedebd 7645 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
7646 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
7647 Emit alignment peeling message with default -fopt-info.
7648 (vect_loop_versioning): Emit loop version info message.
41dedebd 7649 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
7650 (execute_vect_slp): Ditto.
7651
440a5082
EB
76522013-08-29 Eric Botcazou <ebotcazou@adacore.com>
7653
7654 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
7655 of the clone from the DECL_NAME of the original function.
7656
3fa3690d
OE
76572013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
7658
7659 * passes.c (register_pass): Add overload.
7660 * tree-pass.h (register_pass): Forward declare it. Add comment.
7661
0170f33c
JH
76622013-08-29 Jan Hubicka <jh@suse.cz>
7663
41dedebd
UB
7664 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
7665 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
7666 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
7667 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
7668 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
7669 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 7670 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
7671 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
7672
103ff0d6
TJ
76732013-08-29 Teresa Johnson <tejohnson@google.com>
7674
7675 * dumpfile.c (dump_loc): Output column number.
7676 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
7677 * doc/invoke.texi: Document optall -fopt-info flag.
7678 * profile.c (read_profile_edge_counts): Use new dump framework.
7679 (compute_branch_probabilities): Ditto.
7680 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
7681 when pass not in any opt group.
7682 * pass_manager.h (pass_manager::get_pass_profile): New method.
7683 * value-prof.c (check_counter): Use new dump framework.
7684 (check_ic_target): Ditto.
7685 * coverage.c (get_coverage_counts): Ditto.
7686 (coverage_init): Setup new dump framework.
7687
301bbc16
RB
76882013-08-29 Richard Biener <rguenther@suse.de>
7689
7690 PR tree-optimization/58246
7691 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
7692 handle the dominance check inside a basic-block.
7693
1b275000
RB
76942013-08-29 Richard Biener <rguenther@suse.de>
7695
7696 PR middle-end/57287
7697 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
7698 of default defs that appear in abnormal PHI nodes.
7699
6b1184ba
RB
77002013-08-29 Richard Biener <rguenther@suse.de>
7701
7702 PR tree-optimization/57685
7703 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
7704 single-use operands to avoid exponential complexity.
7705
1b08b734
DC
77062013-08-28 Dehao Chen <dehao@google.com>
7707
7708 * ipa-inline.c (edge_badness): Fix integer underflow.
7709
48a3fa69
UB
77102013-08-28 Uros Bizjak <ubizjak@gmail.com>
7711
7712 * gtm-builtins.def (_ITM_free): Declare leaf.
7713
215f73e6
JJ
77142013-08-28 Jakub Jelinek <jakub@redhat.com>
7715
7716 PR target/58067
7717 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
7718 (*tls_local_dynamic_base_64_largepic): Likewise.
7719 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
7720 Remove predicate from call operand.
7721 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
7722 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
7723
34554d1a
JL
77242013-08-28 Jeff Law <law@redhat.com>
7725
7726 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
7727 checks for the number of predecessors and successors allowed.
7728 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
7729 which require copying a joiner block if there is a request which
7730 is a subpath that requires no joiner block copying.
7731
c01c111b
JH
77322013-08-28 Jan Hubicka <jh@suse.cz>
7733
7734 * lto-streamer-out.c (DFS_write_tree_body): Drop
7735 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
7736 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
7737 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
7738 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
7739 Do not read DECL_ERROR_ISSUED.
7740 (unpack_ts_decl_with_vis_value_fields): Do not read
7741 DECL_DEFER_OUTPUT.
48a3fa69
UB
7742 (lto_input_ts_binfo_tree_pointers): Do not read
7743 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
7744 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
7745 write DECL_ERROR_ISSUED..
7746 (pack_ts_decl_with_vis_value_fields): Do not write
7747 DECL_DEFER_OUTPUT.
7748 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 7749 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
7750 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
7751 * tree.h (tree_decl_common): Update comment.
7752 (DECL_ERROR_ISSUED): Remove.
7753
4b128ece
JJ
77542013-08-28 Jakub Jelinek <jakub@redhat.com>
7755
7756 PR middle-end/58257
7757 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
7758
12211b99 77592013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
7760
7761 * builtins.def (free): Declare leaf.
7762
8dce4dbc
DM
77632013-08-27 David Malcolm <dmalcolm@redhat.com>
7764
7765 * gdbhooks.py: New.
7766 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
7767 * configure: Regenerate.
7768
b8f6e610
MJ
77692013-08-27 Martin Jambor <mjambor@suse.cz>
7770
7771 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
7772 (ipa_ancestor_jf_data): Likewise.
7773 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
7774 (ipa_get_jf_pass_through_type_preserved): New function.
7775 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
7776 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 7777 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
7778 (ipa_get_jf_ancestor_result): Likewise.
7779 (propagate_vals_accross_pass_through): Use
7780 ipa_get_jf_pass_through_result to do all the value mappings.
7781 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
7782 type_preserved flag.
7783 (ipa_set_jf_cst_copy): New function.
7784 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
7785 (ipa_set_jf_arith_pass_through): Likewise.
7786 (ipa_set_ancestor_jf): Likewise.
7787 (compute_complex_assign_jump_func): Set type_preserved instead of
7788 punting.
7789 (ipa_compute_jump_functions_for_edge): Likewise.
7790 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
7791 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 7792 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
7793 (ipa_write_jump_function): Stream the type_preserved flags.
7794 (ipa_read_jump_function): Likewise.
7795
74bf76ed
JJ
77962013-08-27 Jakub Jelinek <jakub@redhat.com>
7797 Aldy Hernandez <aldyh@redhat.com>
7798
7799 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
7800 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
7801 * function.h (struct function): Add has_force_vect_loops and
7802 has_simduid_loops.
12211b99 7803 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
7804 * gimple.c (gimple_build_omp_critical): Add KIND argument and
7805 handle it.
7806 * gimple.def: Update CLAUSES comments.
7807 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
7808 (gimple_build_omp_for): Add argument to prototype.
7809 (gimple_omp_for_kind): New.
7810 (gimple_omp_for_set_kind): New.
7811 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
7812 GOVD_DATA_SHARE_CLASS.
7813 (enum omp_region_type): Add ORT_SIMD.
7814 (gimple_add_tmp_var): Handle ORT_SIMD.
7815 (gimplify_var_or_parm_decl): Same.
7816 (is_gimple_stmt): Same.
7817 (omp_firstprivatize_variable): Same.
7818 (omp_add_variable): Only use splay_tree_insert if lookup failed.
7819 (omp_notice_variable): Handle ORT_SIMD.
12211b99 7820 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
7821 (omp_check_private): Handle ORT_SIMD.
7822 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
7823 OMP_CLAUSE_SAFELEN.
7824 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
7825 Handle OMP_CLAUSE_LASTPRIVATE.
7826 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
7827 OMP_CLAUSE_SAFELEN.
7828 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
7829 (gimplify_expr): Handle OMP_SIMD.
7830 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
7831 (expand_GOMP_SIMD_VF): New.
7832 (expand_GOMP_SIMD_LAST_LANE): New.
7833 * internal-fn.def (GOMP_SIMD_LANE): New.
7834 (GOMP_SIMD_VF): New.
7835 (GOMP_SIMD_LAST_LANE): New.
7836 * omp-low.c: Include target.h.
7837 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
7838 OMP_CLAUSE_SAFELEN.
7839 (check_omp_nesting_restrictions): Same.
7840 (omp_max_vf): New.
7841 (lower_rec_simd_input_clauses): New.
7842 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
7843 OMP_CLAUSE_LINEAR.
7844 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
7845 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
7846 (expand_omp_build_assign): New.
7847 (expand_omp_for_init_counts): New.
7848 (expand_omp_for_init_vars): New.
7849 (extract_omp_for_update_vars): New.
7850 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
7851 and rewrite accordingly.
7852 (expand_omp_simd): New.
7853 (expand_omp_for): Use expand_omp_simd.
7854 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
7855 (lower_omp_for): Do not lower the body.
7856 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
7857 in their own loops.
7858 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
7859 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
7860 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
7861 (gate_tree_if_conversion): Similarly.
7862 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
7863 gimple_build_omp_for.
7864 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
7865 * tree-parloops (create_parallel_loop): Pass kind argument to
7866 gimple_build_omp_for.
7867 * tree-pretty-print.c (dump_omp_clause): Add cases for
7868 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
7869 OMP_CLAUSE__SIMDUID_.
7870 (dump_generic_node): Handle OMP_SIMD.
7871 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
7872 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
7873 unroll OMP_SIMD loops here.
12211b99 7874 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 7875 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 7876 loop->safelen.
74bf76ed
JJ
7877 (vect_analyze_data_refs): Handle simd loops.
7878 * tree-vect-loop.c (vectorizable_live_operation): Handle
7879 IFN_GOMP_SIMD*.
12211b99 7880 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
7881 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
7882 (vectorizable_load): Same.
12211b99 7883 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
7884 (struct simduid_to_vf): New.
7885 (simduid_to_vf::hash): New.
7886 (simduid_to-vf::equal): New.
7887 (struct simd_array_to_simduid): New.
7888 (simd_array_to_simduid::hash): New.
7889 (simd_array_to_simduid::equal): New.
7890 (adjust_simduid_builtins): New.
7891 (struct note_simd_array_uses_struct): New.
7892 (note_simd_array_uses_cb): New.
7893 (note_simd_array_uses): New.
7894 (vectorize_loops): Handle simd hints and adjust simd builtins
7895 accordingly.
7896 * tree-vectorizer.h (struct _stmt_vec_info): Add
7897 simd_lane_access_p field.
7898 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
7899 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
7900 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
7901 (omp_clause_code_name): Same.
7902 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
7903 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
7904 * tree.def (OMP_SIMD): New entry.
12211b99
UB
7905 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
7906 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
7907 (OMP_CLAUSE_DECL): Adjust range for new clauses.
7908 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
7909 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
7910 (OMP_CLAUSE_LINEAR_STEP): New.
7911 (OMP_CLAUSE_SAFELEN_EXPR): New.
7912 (OMP_CLAUSE__SIMDUID__DECL): New.
7913 (find_omp_clause): New prototype.
7914
d0cf4e84
L
79152013-08-27 H.J. Lu <hongjiu.lu@intel.com>
7916
7917 * config/i386/driver-i386.c (host_detect_local_cpu): Update
7918 Haswell processor detection.
7919
992592ec
CW
79202013-08-27 Christian Widmer <shadow@umbrox.de>
7921
7922 PR target/57927
7923 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
7924 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
7925 AVX2 capable processors.
7926
9116eb22
TB
79272013-08-27 Tejas Belagod <tejas.belagod@arm.com>
7928
7929 * config/aarch64/arm_neon.h: Replace all inline asm implementations
7930 of vget_low_* with implementations in terms of other intrinsics.
7931
1c5abb53
MG
79322013-08-27 Marc Glisse <marc.glisse@inria.fr>
7933
7934 PR middle-end/57219
7935 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
7936 values to -1, 0 and 1.
7937
2e100703
VP
79382013-08-27 Vidya Praveen <vidyapraveen@arm.com>
7939
7940 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
7941 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
7942 (<optab><mode>3_insn): Remove.
7943 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
7944 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7945 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7946 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
7947 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
7948 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
7949 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
7950 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
7951 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
7952 (ror<mode>3_insn): Likewise.
7953 * config/aarch64/predicates.md (aarch64_simd_register): New.
7954
4ded8276
RB
79552013-08-27 Richard Biener <rguenther@suse.de>
7956
7957 PR tree-optimization/57521
7958 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
7959 one edge is non-critical.
7960 (find_phi_replacement_condition): Make sure to use a non-critical
7961 edge. Cleanup and remove old bug workarounds.
7962 (bb_postdominates_preds): Remove.
7963 (if_convertible_loop_p_1): Do not compute post-dominators.
7964 (combine_blocks): Do not free post-dominators.
7965 (main_tree_if_conversion): Likewise.
7966 (pass_data_if_conversion): Add TODO_verify_ssa.
7967
5aa11061
DD
79682013-08-27 DJ Delorie <dj@redhat.com>
7969
7970 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
7971
fd91cfe3
YZ
79722013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
7973
7974 * function.c (assign_parm_find_data_types): Set passed_mode and
7975 nominal_mode to the TYPE_MODE of nominal_type for the built
7976 pointer type in case of the struct-pass-by-reference.
7977
907555ce
JR
79782013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
7979
7980 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
7981 (UINT16_TYPE): Change default to "unsigned int".
7982
67518c93
JR
7983 * config/avr/avr.opt (mfract-convert-truncate): New option.
7984 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
7985 is set, round negative fractional integers according to n1169
7986 when converting to integer types.
7987
d6d989fc
JH
79882013-08-26 Jan Hubicka <jh@suse.cz>
7989
7990 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
7991 methods can not be called indirectly when their address is not taken.
7992
2aa3da06
JH
79932013-08-26 Jan Hubicka <jh@suse.cz>
7994
12211b99
UB
7995 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
7996 ctor_for_folding.
2aa3da06 7997
0987ffe7
JH
79982013-08-26 Jan Hubicka <jh@suse.cz>
7999
8000 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
8001 can be unshared.
8002
befe8647
JR
80032013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
8004
8005 * reload.c (find_valid_class): Allow classes that do not include
8006 FIRST_PSEUDO_REGISTER - 1.
8007
a21e735e
JH
80082013-08-26 Jan Hubicka <jh@suse.cz>
8009
8010 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
8011 fix edge count/frequency when speculation failed; fix type check
8012 for the direct call.
8013
e067bd43
JH
80142013-08-26 Jan Hubicka <jh@suse.cz>
8015
8016 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
8017
e8aec975
JH
80182013-08-26 Jan Hubicka <jh@suse.cz>
8019
8020 * ipa-inline-transform.c (inline_transform): Be ready for basic block
8021 to be changed by edge redirection.
8022
d0b66480
JH
80232013-08-26 Jan Hubicka <jh@suse.cz>
8024
12211b99
UB
8025 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
8026 formating; add sanity check.
d0b66480
JH
8027 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
8028 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
8029 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
8030 (resolve_noninline_speculation): Update callee keys, too.
8031
0f9aaac7
JH
80322013-08-26 Jan Hubicka <jh@suse.cz>
8033
8034 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
8035 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
8036
4b37444e
JR
80372013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
8038
8039 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
8040 into proper place.
8041
5339fc0c
UB
80422013-08-26 Uros Bizjak <ubizjak@gmail.com>
8043
8044 * config/i386/i386.c (ix86_debug_options): Remove prototype.
8045 (x86_64_elf_select_section): Ditto.
8046 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
8047 arguments.
8048 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
8049 (output_set_got): Ditto.
8050 (ix86_unary_operator_ok): Ditto.
8051 (ix86_expand_builtin): Ditto.
8052
d5c3d3ef
JH
80532013-08-23 Jan Hubicka <jh@suse.cz>
8054
5339fc0c 8055 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 8056
5b1e7435
JH
80572013-08-23 Jan Hubicka <jh@suse.cz>
8058
8059 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
8060 (tree_decl_with_vis): Add FINAL field.
8061
ead69dac
JL
80622013-08-23 Jeff Law <law@redhat.com>
8063
8064 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
8065 the debugging dump when the expression is fully redundant.
8066
025311c4
GDR
80672013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
8068
8069 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
8070 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
8071 * pretty-print.c (pp_formatted_text_data): Likewise.
8072 (pp_write_text_to_stream): Likewise.
8073 (pp_write_text_as_dot_label_to_stream): Likewise.
8074 (pp_append_r): Likewise.
8075 (pp_format): Likewise.
8076 (pp_flush): Likewise.
8077 (pp_clear_output_area): Likewise.
8078 (pp_append_text): Likewise.
8079 (pp_formatted_text): Likewise.
8080 (pp_remaining_character_count_for_line): Likewise.
8081 (pp_newline): Likewise.
8082 (pp_character): Likewise.
8083 (output_buffer::~output_buffer): Define.
8084 (pretty_printer::~pretty_printer): Destruct output buffer.
8085 * pretty-print.h (output_buffer::~output_buffer): Declare.
8086 (pretty_printer::~pretty_printer): Declare virtual.
8087
0cadbfaa
MG
80882013-08-24 Marc Glisse <marc.glisse@inria.fr>
8089
8090 PR other/57324
8091 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
8092 HOST_WIDE_INT_M1U): New macros.
8093 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
8094 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
8095 unsigned -1 for lshift.
8096 * cse.c (cse_insn): Likewise.
8097 * double-int.c (rshift_double, lshift_double): Likewise.
8098 * builtins.c (fold_builtin_bitop): Likewise.
8099 * combine.c (force_to_mode): Likewise.
8100 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
8101 * simplify-rtx.c (simplify_const_unary_operation,
8102 simplify_const_binary_operation): Likewise.
8103 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
8104 check_va_list_escapes): Likewise.
8105 * rtlanal.c (nonzero_bits1): Likewise.
8106 * expmed.c (expand_smod_pow2): Likewise.
8107 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
8108
009e5353
JH
81092013-08-23 Jan Hubicka <jh@suse.cz>
8110
8111 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
8112 as having address taken.
8113
c4be6568
JH
81142013-08-23 Jan Hubicka <jh@suse.cz>
8115
64cbf23d
JH
8116 * ipa-utils.h (method_class_type): Declare.
8117 * ipa-devirt.c (method_class_type): Export.
8118
c4be6568
JH
8119 * cgraphunit.c (analyze_functions): Do basic devirtualization;
8120 do not walk base classes of anonymous types.
8121
97aba8e9
KK
81222013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
8123
8124 PR rtl-optimization/58220
8125 PR regression/58221
8126 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
8127 handle SEQUENCE insns properly.
8128
0fc80001
GDR
81292013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
8130
8131 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
8132 definition.
8133 (pp_newline_and_indent): Likewise.
8134 (pp_separate_with): Likewise.
8135 * pretty-print.c (pp_newline_and_flush): Define.
8136 (pp_newline_and_indent): Likewise.
8137 (pp_separate_with): Likewise.
8138
520a5868
JJ
81392013-08-23 Jakub Jelinek <jakub@redhat.com>
8140
8141 PR target/58218
8142 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
8143 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
8144
e500c62a
KY
81452013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
8146
f43245d1
UB
8147 * config/i386/predicates.md (ext_sse_reg_operand): New.
8148 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
8149 predicate to determine if EVEX is needed.
8150 (*movsi_internal): Ditto.
8151 (*movdf_internal): Ditto.
8152 (*movsf_internal): Ditto.
f43245d1 8153 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 8154
6b00d7dd
JJ
81552013-08-23 Jakub Jelinek <jakub@redhat.com>
8156
8157 PR tree-optimization/58209
8158 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
8159 (find_tail_calls): Give up for pointer result types if m is non-NULL.
8160 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
8161 emit POINTER_PLUS_EXPR.
8162 (create_tailcall_accumulator): For pointer result type accumulate in
8163 sizetype type.
8164
4f2a9f90
PC
81652013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
8166
8167 * configure.ac: Add backslashes missing from the last change.
8168 * configure: Regenerate.
8169
7bf4274e
JH
81702013-08-22 Jan Hubicka <jh@susue.cz>
8171
4f2a9f90
PC
8172 * ipa.c (function_and_variable_visibility): First remember function
8173 was global and then make it local.
7bf4274e 8174
1bea243d
JB
81752013-08-22 Julian Brown <julian@codesourcery.com>
8176
8177 * configure.ac: Add aarch64 to list of arches which use "nop" in
8178 debug_line test.
8179 * configure: Regenerate.
8180
bcba7ecc
AK
81812013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8182
8183 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
8184 gnu_libc_has_function.
8185 * config/s390/tpf.h: Likewise.
8186
4c495b0d
JH
81872013-08-22 Jan Hubicka <jh@susue.cz>
8188
8189 * timevar.c (validate_phases): Add cast.
8190
5e302bca
JH
81912013-08-22 Jan Hubicka <jh@susue.cz>
8192
8193 * timevar.c (validate_phases): Use size_t for memory.
8194 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
8195
da6ca2b5
GDR
81962013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8197
8198 * pretty-print.h (output_buffer::output_buffer): Declare.
8199 (pretty_printer::pretty_printer): Likewise.
8200 (pp_construct): Remove.
8201 * pretty-print.c (output_buffer::output_buffer): Define.
8202 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
8203 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
8204 (print_gimple_expr): Likewise.
8205 (print_gimple_seq): Likewise.
8206 (gimple_dump_bb): Likewise.
8207 * sched-vis.c (dump_value_slim): Likewise.
8208 (dump_insn_slim): Likewise.
8209 (dump_rtl_slim): Likewise.
8210 (str_pattern_slim): Likewise.
8211 * tree-mudflap.c (mf_varname_tree): Likewise.
8212 * graph.c (print_graph_cfg): Likewise.
8213 (start_graph_dump): Likewise.
8214 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
8215 placement-new.
8216 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
8217 pretty printer initialization.
8218 * coretypes.h (diagnostic_context): Remove superflous type alias
8219 declaration.
8220 (pretty_printer): Likewise. Declare directly as a class.
8221 (pretty_print_info): Remove declaration as class.
8222 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
8223 and pp_clear_output_area.
8224 (asan_add_global): Likewise.
8225
0e1474e5
JH
82262013-08-22 Jan Hubicka <jh@suse.cz>
8227
8228 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
8229 * ipa-utils.h (update_type_inheritance_graph): Declare.
8230 (possible_polymorphic_call_target_p): Declare.
8231 (possible_polymorphic_call_target_p): New.
8232 * ipa-devirt.c: Update toplevel comments.
8233 (cached_polymorphic_call_targets): Move up.
8234 (odr_type_d): Move ID down.
8235 (polymorphic_type_binfo_p): Update comment.
8236 (odr_hasher::remove): Likewise;
8237 (get_odr_type): Set anonymous_namespace.
8238 (dump_odr_type): Dump it.
8239 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
8240 (maybe_record_node): Record node in cached_polymorphic_call_targets.
8241 (record_binfo): Add comment.
5339fc0c
UB
8242 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
8243 built.
0e1474e5
JH
8244 (devirt_node_removal_hook): Do not iCE when cache is freed.
8245 (possible_polymorphic_call_target_p): New predicate.
8246 (update_type_inheritance_graph): New function.
8247
3f97cb0b
AI
82482013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8250 Sergey Lega <sergey.s.lega@intel.com>
8251 Anna Tikhonova <anna.tikhonova@intel.com>
8252 Ilya Tocar <ilya.tocar@intel.com>
8253 Andrey Turetskiy <andrey.turetskiy@intel.com>
8254 Ilya Verbin <ilya.verbin@intel.com>
8255 Kirill Yukhin <kirill.yukhin@intel.com>
8256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8257
8258 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
8259 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
8260 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
8261 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
8262 (OPTION_MASK_ISA_AVX2_UNSET): Update.
8263 (OPTION_MASK_ISA_AVX512F_UNSET): New.
8264 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
8265 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
8266 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
8267 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
8268 OPT_mavx512pf, OPT_mavx512er cases.
8269 * config/i386/constraints.md (v): New constraint.
8270 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
8271 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
8272 (bit_AVX512CD): New.
8273 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8274 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
8275 * config/i386/i386-c.c (ix86_target_macros_internal):
8276 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
8277 __AVX512PF__.
8278 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
8279 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
8280 * config/i386/i386.c (regclass_map, dbx_register_map)
8281 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
8282 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
8283 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
8284 -mavx512pf options.
8285 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
8286 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
8287 -mavx512pf options. Fix formatting.
8288 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
8289 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
8290 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
8291 -mavx512cd, -mavx512pf options.
8292 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
8293 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
8294 (ix86_preferred_output_reload_class): Replace SSE_REGS with
8295 ALL_SSE_REGS.
8296 (ix86_hard_regno_mode_ok): Support 512-bit registers.
8297 (ix86_set_reg_reg_cost): Ditto.
8298 (x86_order_regs_for_local_alloc): Ditto.
8299 (MAX_VECT_LEN): Extend to 64-byte.
8300 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
8301 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
8302 (TARGET_AVX512ER, TARGET_AVX512CD): New.
8303 (BIGGEST_ALIGNMENT): Extend to 512-bits.
8304 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
8305 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
8306 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
8307 (SSE_REG_MODE_P): Support new modes.
8308 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
8309 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
8310 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
8311 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
8312 (REG_CLASS_CONTENTS): Add new registers.
8313 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
8314 (EXT_REX_SSE_REGNO_P): New.
8315 (HI_REGISTER_NAMES): Add new registers.
8316 * config/i386/i386.md: Define constants for new registers.
8317 (mode): Add new 512-bit modes.
8318 (prefix): Support evex prefix.
8319 (isa): Support avx512f, noavx512f, fma_avx512f.
8320 (ssemodesuffix): Add new 512-bit modes.
8321 (movxi): New.
8322 (*movxi_internal_avx512f): Ditto.
8323 (*movdi_internal): Replace constraint "x" with the new constraint "v".
8324 Support MODE_XI.
8325 (*movsi_internal): Likewise.
8326 (*movdf_internal): Likewise.
8327 (*movsf_internal): Likewise.
8328 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
8329 (<code><mode>3): Likewise.
5339fc0c
UB
8330 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
8331 New.
3f97cb0b
AI
8332 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
8333 with the new constraint "v".
8334 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
8335 modes.
8336 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
8337 with the new constraint "v".
8338 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
8339 (<sse2>_storedqu<avxsizesuffix>): Likewise.
8340 (*<plusminus_insn><mode>3): Likewise.
8341 (<sse>_vm<plusminus_insn><mode>3): Likewise.
8342 (*mul<mode>3): Likewise.
8343 (<sse>_vmmul<mode>3): Likewise.
8344 (<sse>_div<mode>3): Likewise.
8345 (<sse>_vmdiv<mode>3): Likewise.
8346 (<sse>_sqrt<mode>2): Likewise.
8347 (<sse>_vmsqrt<mode>2): Likewise.
8348 (*<code><mode>3_finite): Likewise.
8349 (*<code><mode>3) <smaxmin>: Likewise.
8350 (<sse>_vm<code><mode>3): Likewise.
8351 (*<code><mode>3) <any_logic>: Likewise.
8352 (*fma_fmadd_<mode>): Likewise.
8353 (*fma_fmsub_<mode>): Likewise.
8354 (*fma_fnmadd_<mode>): Likewise.
8355 (*fma_fnmsub_<mode>): Likewise.
8356 (*fma_fmaddsub_<mode>): Likewise.
8357 (*fma_fmsubadd_<mode>): Likewise.
8358 (*fmai_fmadd_<mode>): Likewise.
8359 (*fmai_fmsub_<mode>): Likewise.
8360 (*fmai_fnmadd_<mode>): Likewise.
8361 (*fmai_fnmsub_<mode>): Likewise.
8362 (sse_cvtsi2ss): Likewise.
8363 (sse_cvtsi2ssq): Likewise.
8364 (sse_cvtss2si): Likewise.
8365 (sse_cvtss2si_2): Likewise.
8366 (sse_cvtss2siq): Likewise.
8367 (sse_cvtss2siq_2): Likewise.
8368 (sse_cvttss2si): Likewise.
8369 (sse_cvtss2siq_2): Likewise.
8370 (float<sseintvecmodelower><mode>2): Likewise.
8371 (sse2_cvtsd2si_2): Likewise.
8372 (sse2_cvtsd2siq_2): Likewise.
8373 (*<plusminus_insn><mode>3): Likewise.
8374 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
8375 (*<sse4_1_avx2>_mul<mode>3): Likewise.
8376 (ashr<mode>3): Likewise.
8377 (<shift_insn><mode>3): Likewise.
8378 (avx2_<code><mode>3): Likewise.
8379 (*avx2_<code><mode>3): Likewise.
8380 (*andnot<mode>3): Likewise.
8381 (*<code><mode>3) <any_logic>: Likewise.
8382 (abs<mode>2): Likewise.
8383 (avx2_permvar<mode>): Likewise.
8384 (avx2_perm<mode>_1): Likewise.
8385 (*avx_vpermilp<mode>): Likewise.
8386 (avx_vpermilvar<mode>3): Likewise.
8387 (avx2_ashrv<mode>): Likewise.
8388 (avx2_<shift_insn>v<mode>): Likewise.
8389 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
8390 -mavx512cd.
8391 * doc/rtl.texi: Document XImode.
8392
dd5e8423
JL
83932013-08-21 Jeff Law <law@redhat.com>
8394
b9ebee5d
JL
8395 * tree-flow.h (register_jump_thread): Pass vector of edges
8396 instead of each important edge.
8397 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
8398 thread path into a vector and pass that to register_jump_thread.
8399 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
8400 passed in edge vector to the current 3-edge form.
8401
dd5e8423
JL
8402 Revert:
8403 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
8404
9bb6628e 8405 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
8406 delete_unmarked_insns removed anything.
8407
445dc8df
JR
84082013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
8409
8410 * reload.h (struct reg_equivs): Rename to ..
8411 (struct reg_equivs_s): .. this.
8412
e0df53dd
ML
84132013-08-20 Martin Liska <marxin.liska@gmail.com>
8414
8415 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
8416
e7d1d3eb
RO
84172013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8418
5339fc0c 8419 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 8420
5562e26e
JL
84212013-08-21 Jeff Law <law@redhat.com>
8422
8423 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
8424 simplify assignments too. If the RHS collapses to a singleton
8425 range, then return the value for the range.
8426
c7ecdec6
KY
84272013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
8428
7a5911d3
UB
8429 * config/i386/sse.md (V16): Rename to...
8430 (VMOVE): this.
8431 (mov<mode>): Update iterator name.
8432 (*mov<mode>_internal): Ditto.
8433 (push<mode>1): Ditto.
8434 (movmisalign<mode>): Ditto.
c7ecdec6 8435
bfa3b50a
JH
84362013-08-20 Jan Hubicka <jh@suse.cz>
8437
8438 PR bootstrap/58186
8439 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
8440 entry for direct edges.
8441 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
8442
6cd4d135
DM
84432013-08-20 David Malcolm <dmalcolm@redhat.com>
8444
8445 Revert my last two changes, r201865 and r201864:
8446
8447 Revert r201865:
8448 2013-08-20 David Malcolm <dmalcolm@redhat.com>
8449
8450 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
8451 instances can own GC refs.
8452
8453 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
8454 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
8455 (gcc::context::gt_pch_nx): Likewise.
8456 (gcc::context::gt_pch_nx): Likewise.
8457 * ggc.h (gt_ggc_mx <T>): New.
8458 (gt_pch_nx_with_op <T>): New.
8459 (gt_pch_nx <T>): New.
8460 * passes.c (opt_pass::gt_ggc_mx): New.
8461 (opt_pass::gt_pch_nx): New.
8462 (opt_pass::gt_pch_nx_with_op): New.
8463 (pass_manager::gt_ggc_mx): New.
8464 (pass_manager::gt_pch_nx): New.
8465 (pass_manager::gt_pch_nx_with_op): New.
8466 (pass_manager::operator new): Use
8467 ggc_internal_cleared_alloc_stat rather than xcalloc.
8468 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
8469 (pass_manager::gt_ggc_mx): New.
8470 (pass_manager::gt_pch_nx): New.
8471 (pass_manager::gt_pch_nx_with_op): New.
8472 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
8473 (opt_pass::operator new): New.
8474 (opt_pass::gt_ggc_mx): New.
8475 (opt_pass::gt_pch_nx): New.
8476 (opt_pass::gt_pch_nx_with_op): New.
8477
8478 Revert r201864:
8479 2013-08-20 David Malcolm <dmalcolm@redhat.com>
8480
8481 * Makefile.in (GTFILES): Add context.h.
8482 * context.c (gcc::context::operator new): New.
8483 (gcc::context::gt_ggc_mx): New.
8484 (gcc::context::gt_pch_nx): New.
8485 (gcc::context::gt_pch_nx): New.
8486 * context.h (gcc::context): Add GTY((user)) marking.
8487 (gcc::context::operator new): New.
8488 (gcc::context::gt_ggc_mx): New.
8489 (gcc::context::gt_pch_nx): New.
8490 (gcc::context::gt_pch_nx): New.
8491 (g): Add GTY marking.
8492 (gt_ggc_mx (gcc::context *)): New.
8493 (gt_pch_nx (gcc::context *)): New.
8494 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
8495 void *cookie)): New.
8496 * gengtype.c (open_base_files) <ifiles>: Add context.h.
8497
a046136a
AM
84982013-08-20 Alexey Makhalov <makhaloff@gmail.com>
8499
8500 * dce.c (fini_dce): Call df_analyze again just in case
8501 delete_unmarked_insns removed anything.
8502
67598720
TJ
85032013-08-20 Teresa Johnson <tejohnson@google.com>
8504
8505 PR rtl-optimizations/57451
8506 * final.c (reemit_insn_block_notes): Prevent lexical blocks
8507 from crossing split section boundaries.
8508
f8693faf
MGD
85092013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8510
8511 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
8512 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
8513 with MULTLIB_DEFAULTS.
8514
7d0b9a9c
NC
85152013-08-20 Nick Clifton <nickc@redhat.com>
8516
8517 * target.def (narrow_volatile_bitfield): Note that the default
8518 value is false, not !TARGET_STRICT_ALIGN.
8519 * doc/tm.texi: Regenerate.
8520
8edb8dc8
PC
85212013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
8522
8523 Fix LIB_SPEC for systems without libpthread.
8524
8525 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
8526 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
8527 for Android.
8528 * config/i386/linux-common.h: Likewise.
8529 * config/mips/linux-common.h: Likewise.
8530
12211b99 85312013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
8532
8533 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
8534 checks.
8535
e42c64cb
DM
85362013-08-20 David Malcolm <dmalcolm@redhat.com>
8537
8538 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
8539 instances can own GC refs.
8540
8541 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
8542 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
8543 (gcc::context::gt_pch_nx): Likewise.
8544 (gcc::context::gt_pch_nx): Likewise.
8545 * ggc.h (gt_ggc_mx <T>): New.
8546 (gt_pch_nx_with_op <T>): New.
8547 (gt_pch_nx <T>): New.
8548 * passes.c (opt_pass::gt_ggc_mx): New.
8549 (opt_pass::gt_pch_nx): New.
8550 (opt_pass::gt_pch_nx_with_op): New.
8551 (pass_manager::gt_ggc_mx): New.
8552 (pass_manager::gt_pch_nx): New.
8553 (pass_manager::gt_pch_nx_with_op): New.
8554 (pass_manager::operator new): Use
8555 ggc_internal_cleared_alloc_stat rather than xcalloc.
8556 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
8557 (pass_manager::gt_ggc_mx): New.
8558 (pass_manager::gt_pch_nx): New.
8559 (pass_manager::gt_pch_nx_with_op): New.
8560 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
8561 (opt_pass::operator new): New.
8562 (opt_pass::gt_ggc_mx): New.
8563 (opt_pass::gt_pch_nx): New.
8564 (opt_pass::gt_pch_nx_with_op): New.
8565
910c02a0
DM
85662013-08-20 David Malcolm <dmalcolm@redhat.com>
8567
8568 * Makefile.in (GTFILES): Add context.h.
8569 * context.c (gcc::context::operator new): New.
8570 (gcc::context::gt_ggc_mx): New.
8571 (gcc::context::gt_pch_nx): New.
8572 (gcc::context::gt_pch_nx): New.
8573 * context.h (gcc::context): Add GTY((user)) marking.
8574 (gcc::context::operator new): New.
8575 (gcc::context::gt_ggc_mx): New.
8576 (gcc::context::gt_pch_nx): New.
8577 (gcc::context::gt_pch_nx): New.
8578 (g): Add GTY marking.
8579 (gt_ggc_mx (gcc::context *)): New.
8580 (gt_pch_nx (gcc::context *)): New.
8581 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
8582 void *cookie)): New.
8583 * gengtype.c (open_base_files) <ifiles>: Add context.h.
8584
af4b4236
AM
85852013-08-20 Alan Modra <amodra@gmail.com>
8586
8587 PR target/57865
8588 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
8589 (rs6000_emit_epilogue): Likewise.
8590
12211b99 85912013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
8592
8593 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
8594
e2323f5b
PB
85952013-08-19 Peter Bergner <bergner@vnet.ibm.com>
8596 Jakub Jelinek <jakub@redhat.com>
8597
8598 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
8599 (BUILT_IN_FABSD64): Likewise.
8600 (BUILT_IN_FABSD128): Likewise.
8601 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
8602 (fold_builtin_1): Likewise.
5339fc0c
UB
8603 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
8604 destination and source operands.
e2323f5b
PB
8605 (*abstd2_fpr): Likewise.
8606 (*nabstd2_fpr): Likewise.
8607
cfbf3ee8
RS
86082013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
8609
8610 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
8611 JUMP_P and INSN_P.
8612
d3136aeb
AH
86132013-08-19 Aldy Hernandez <aldyh@redhat.com>
8614
8615 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
8616 incomplete.
8617
d33d9e47
AI
86182013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8619
8620 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
8621 * builtins.c (default_libc_has_function): New.
8622 (gnu_libc_has_function): Ditto.
8623 (no_c99_libc_has_function): Ditto.
8624 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
8625 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
8626 (fold_builtin_sincos): Likewise.
8627 (fold_builtin_cexp): Likewise.
8628 * builtins.def (DEF_C94_BUILTIN): Likewise.
8629 (DEF_C99_BUILTIN): Likewise.
8630 (DEF_C99_C90RES_BUILTIN): Likewise.
8631 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
8632 definitions to using this define.
8633 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 8634 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
8635 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
8636 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
8637 * config/darwin.h: Ditto.
8638 * config/elfos.h: Ditto.
8639 * config/freebsd.h: Ditto.
8640 * config/i386/cygming.h: Ditto.
8641 * config/i386/djgpp.h: Ditto.
8642 * config/i386/i386-interix.h: Ditto.
8643 * config/microblaze/microblaze.h: Ditto.
8644 * config/mmix/mmix.h: Ditto.
8645 * config/gnu-user.h: Ditto.
8646 * config/ia64/hpux.h: Ditto.
8647 * config/pa/pa-hpux.h: Ditto.
8648 * config/pdp11/pdp11.h: Ditto.
8649 * config/picochip/picochip.h: Ditto.
8650 * config/linux.h: Ditto.
8651 * config/netbsd.h: Ditto.
8652 * config/openbsd.h: Ditto.
8653 * config/rs6000/aix43.h: Ditto.
8654 * config/rs6000/aix51.h: Ditto.
8655 * config/rs6000/aix52.h: Ditto.
8656 * config/rs6000/aix53.h: Ditto.
8657 * config/rs6000/aix61.h: Ditto.
8658 * config/rs6000/darwin.h: Ditto.
8659 * config/rs6000/linux.h: Ditto.
8660 * config/rs6000/linux64.h: Ditto.
8661 * config/s390/tpf.h: Ditto.
8662 * config/sol2-10.h: Ditto.
8663 * config/sol2.h: Ditto.
8664 * config/vms/vms.h: Ditto.
8665 * config/vxworks.h: Ditto.
8666 * config/linux-android.c (linux_android_libc_has_function):
8667 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
8668 * config/linux-protos.h (linux_android_libc_has_function):
8669 New declaration.
8670 * config/i386/i386.c (ix86_libc_has_function): New.
8671 * config/i386/i386-protos.h
8672 (ix86_libc_has_function): New declaration.
8673 * config/i386/i386.md
8674 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
8675 ("isinf<mode>2): Likewise.
8676 * convert.c (convert_to_integer): Using new target hook
8677 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
8678 TARGET_C99_FUNCTIONS.
8679 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
8680 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
8681 * coretypes.h (function_class): New enum for different
8682 classes of functions.
8683 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
8684 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
8685 (TARGET_HAS_SINCOS): Likewise.
8686 (TARGET_LIBC_HAS_FUNCTION): New.
8687 * doc/tm.texi: Regenerated.
8688 * targhooks.h (default_libc_has_function): New declaration.
8689 (no_c99_libc_has_function): Ditto.
8690 (gnu_libc_has_function): Ditto.
8691 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
8692 and TARGET_HAS_SINCOS.
8693
eefe9a99
JH
86942013-08-18 Jan Hubicka <jh@suse.cz>
8695
8696 * Makeifle-in (ipa-devirt.o): New.
8697 (GTFILES): Add ipa-utils.h and ipa-devirt.c
8698 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
8699 (analyze_functions): Look into possible targets of polymorphic call.
8700 * dumpfile.c (dump_files): Add type-inheritance dump.
8701 * dumpfile.h (TDI_inheritance): New.
8702 * ipa-devirt.c: New file.
8703 * ipa-utils.h (odr_type_d): Forward declare.
8704 (odr_type): New type.
8705 (build_type_inheritance_graph): Declare.
8706 (possible_polymorphic_call_targets): Declare and introduce inline
8707 variant when only edge is pased.
8708 (dump_possible_polymorphic_call_targets): Likewise.
8709 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
8710 * tree.c (type_in_anonymous_namespace_p): Break out from ...
8711 (types_same_for_odr): ... here.
8712 * tree.h (type_in_anonymous_namespace_p): Declare.
8713
29b89442
JJ
87142013-08-18 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR tree-optimization/58006
8717 * tree-parloops.c (take_address_of): Don't ICE if get_name
8718 returns NULL.
8719 (eliminate_local_variables_stmt): Remove clobber stmts.
8720
4f219961
EB
87212013-08-18 Eric Botcazou <ebotcazou@adacore.com>
8722
8723 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
8724 error message is issued for an alias to undefined symbol.
8725
1d5755ef
JH
87262013-08-18 Jan Hubicka <jh@suse.cz>
8727
8728 * cgraph.c (cgraph_create_indirect_edge): Discover
8729 polymorphic calls and record basic info into indirect_info.
8730 * gimple-fold.c (gimple_fold_call): When doing BINFO based
8731 devirtualization, ignore objc function calls.
8732 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
8733 call with no parm index info.
8734 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
8735 * tree.c (virtual_method_call_p): New function.
8736 * tree.h (virtual_method_call_p): Declare.
8737
5945bebf
JH
87382013-08-16 Jan Hubicka <jh@suse.cz>
8739
8740 PR middle-end/58179
8741 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
8742
47fa5d23
DE
87432013-08-16 David Edelsohn <dje.gcc@gmail.com>
8744
8745 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
8746 attribute.
8747
c74f54a0
DM
87482013-08-16 David Malcolm <dmalcolm@redhat.com>
8749
8750 * gengtype.c (type_for_name): Add special-case support for
8751 locating types within the "gcc::" namespace.
8752 (open_base_files): Emit a "using namespace gcc" directive.
8753
f758f299
MM
87542013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
8755
8756 PR target/58160
8757 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
8758 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
8759
8760 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
8761 array instead of each individual operand as a separate argument.
8762 (emit_fusion_gpr_load): Likewise.
8763 (expand_fusion_gpr_load): Add new function declaration.
8764
8765 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
8766 signature to have the operands passed as an array, instead of as
8767 separate arguments. Allow ZERO_EXTEND to be in the memory
8768 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
8769 depend on the register live/dead flags when peepholes are run.
8770 (expand_fusion_gpr_load): New function to be called from the
8771 peephole2 pass, to change the register that addis sets to be the
8772 target register.
8773 (emit_fusion_gpr_load): Change the calling signature to have the
8774 operands passed as an array, instead of as separate arguments.
8775 Allow ZERO_EXTEND to be in the memory address, and also
8776 SIGN_EXTEND if -mpower8-fusion-sign.
8777
8778 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
8779 unspec enumeration.
8780 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
8781 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 8782 depend on the register live/dead state when the peephole pass is done.
f758f299 8783
158f4e4f
DM
87842013-08-16 David Malcolm <dmalcolm@redhat.com>
8785
8786 * gengtype.c (create_user_defined_type): Ensure that the kind
8787 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
8788 declaration is seen before the GTY((user)) marking.
8789
22f8cea5
BE
87902013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
8791
8792 PR target/58105
8793 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
8794
c49bdb2e
JH
87952013-08-16 Jan Hubicka <jh@suse.cz>
8796
8797 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
8798 arugment expected_type.
8799 (gimple_fold_call): Use it.
8800 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
8801 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 8802 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
8803 (try_make_edge_direct_virtual_call): Likewise.
8804 * tree.c (obj_type_ref_class): New.
8805 * tree.h (obj_type_ref_class): Use it.
8806
4042dca9
GDR
88072013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
8808
8809 * sched-vis.c (rtl_slim_pp_initialized): Remove.
8810 (rtl_slim_pp): Likewise.
8811 (init_rtl_slim_pretty_print): Likewise.
8812 (dump_value_slim): Don't call it. Use local pretty printer.
8813 (dump_insn_slim): Likewise.
8814 (dump_rtl_slim): Likewise.
8815 (str_pattern_slim): Likewise.
8816 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
8817 Simplify.
8818
7a460594
JJ
88192013-08-16 Jakub Jelinek <jakub@redhat.com>
8820
639dc669
JJ
8821 PR tree-optimization/58164
8822 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
8823 walk gimple_goto_dest of GIMPLE_GOTO.
8824
7a460594
JJ
8825 PR tree-optimization/58165
8826 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
8827 bi_call must be the last stmt in a bb, don't split_block, instead
8828 use fallthru edge from it and give up if there is none.
8829 Release conds vector when returning early.
8830
e3c02cc7
XDL
88312013-08-14 Xinliang David Li <davidxl@google.com>
8832
8833 * config/i386/i386.c (ix86_option_override_internal):
8834 Remove unused variable and field.
8835
6469da2c
BS
88362013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8837
8838 PR target/57949
22f8cea5 8839 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
8840 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
8841 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
8842 and Linux, correct BLKmode alignment when 128-bit alignment is
8843 required and compatibility flag is not set.
22f8cea5
BE
8844 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
8845 for zero-size arguments when compatibility flag is not set.
6469da2c 8846
4ca890e2
JJ
88472013-08-14 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR tree-optimization/58145
8850 * tree-sra.c (build_ref_for_offset): If prev_base has
8851 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
8852
daec1759 88532013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 8854
daec1759 8855 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 8856 Fix uninitialized variable error.
daec1759 8857
3ad20bd4
XDL
88582013-08-14 Xinliang David Li <davidxl@google.com>
8859
8860 * config/i386/i386.opt: Define two new options.
8861 * config/i386/x86-tune.def: Add arch selector field in macros.
8862 * config/i386/i386.h: Adjust macro definition.
8863 * config/i386/i386.c (ix86_option_override_internal):
8864 Refactor the code.
8865 (parse_mtune_ctrl_str): New function.
8866 (set_ix86_tune_features): New function.
8867 (ix86_function_specific_restore): Call the new helper function.
8868
e839e2a9
AB
88692013-08-14 Andrey Belevantsev <abel@ispras.ru>
8870
8871 PR rtl-optimization/57662
8872 * sel-sched.c (code_motion_process_successors): When the current insn
8873 is removed after the recursive traversal, break from the loop.
8874 Add comments and debug printouts.
8875
27ed665f
JJ
88762013-08-14 Jakub Jelinek <jakub@redhat.com>
8877 Alexandre Oliva <aoliva@redhat.com>
8878
8879 PR target/58067
8880 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
8881 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
8882 there also UNSPEC_PLTOFF.
8883
61c1a609
MP
88842013-08-14 Marek Polacek <polacek@redhat.com>
8885
8886 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
8887 NUM_CONDITIONS bit positions.
8888
0e901c67
CC
88892013-08-13 Cary Coutant <ccoutant@google.com>
8890
8891 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
8892 (attr_checksum): Hash vector contents instead of pointer.
8893 (attr_checksum_ordered): Likewise.
8894
061eff6d
UB
88952013-08-13 Uros Bizjak <ubizjak@gmail.com>
8896
8897 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
8898 when Pmode != word_mode. Add length_address attribute.
8899 (sse3_monitor_<mode>): Merge from sse3_monitor and
8900 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
8901 Pmode != word_mode. Update insn length attribute.
8902 * config/i386/i386.c (ix86_option_override_internal): Update
8903 ix86_gen_monitor selection for merged sse3_monitor insn.
8904
8ec9249b
JB
89052013-08-13 Julian Brown <julian@codesourcery.com>
8906
8907 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8908 perform invalid legitimization on greater-than-word-size modes for
8909 TARGET_E500_DOUBLE.
8910
761a8eb7
VM
89112013-08-13 Vladimir Makarov <vmakarov@redhat.com>
8912
8913 * ira.c (setup_class_translate_array): Use aclass instead of cl
8914 for classes not fully covered by allocno classes.
8915
99c2bd54
JJ
89162013-08-13 Jakub Jelinek <jakub@redhat.com>
8917
4029a5e0
JJ
8918 PR tree-optimization/57661
8919 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
8920 * tree-inline.c (tree_function_versioning): Initialize it.
8921 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
8922 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
8923 that is not being copied.
8924
99c2bd54
JJ
8925 PR sanitizer/56417
8926 * asan.c (instrument_strlen_call): Fix typo in comment.
8927 Use char * type even for the lhs of POINTER_PLUS_EXPR.
8928
b5f8f063
SE
89292013-08-13 Steve Ellcey <sellcey@mips.com>
8930
8931 * config/mips/mips.md (prefetch): Use lw instead of ld on
8932 loongson in 32bit mode.
8933
4de80584
NC
89342013-08-13 Nick Clifton <nickc@redhat.com>
8935
8936 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
8937
09ce3660
JH
89382013-08-13 Jan Hubicka <jh@suse.cz>
8939
8940 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
8941 introduced edge; fix typo in sanity check.
8942 (cgraph_resolve_speculation): Export; improve diagnostic.
8943 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
8944 speculation at type mismatch.
8945 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
8946 (cgraph_resolve_speculation): Declare.
8947 (symtab_can_be_discarded): New function.
8948 * value-prof.c (gimple_ic_transform): Remove actual transform code.
8949 * ipa-inline-transform.c (speculation_removed): New global var.
8950 (clone_inlined_nodes): See if speculation can be removed.
8951 (inline_call): If speculations was removed, we growths may not match.
8952 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
8953 (speculation_useful_p): New function.
8954 (resolve_noninline_speculation): New function.
8955 (inline_small_functions): Resolve useless speculations.
8956 * ipa-inline.h (speculation_useful_p): Declare
8957 * ipa.c (can_replace_by_local_alias): Simplify.
8958 (ipa_profile): Produce speculative calls in non-lto, too;
8959 add simple cost model; produce local aliases.
8960
f971dc24
DM
89612013-08-13 David Malcolm <dmalcolm@redhat.com>
8962
8963 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 8964 PASS_MANAGER_H.
f971dc24 8965
2e507b9a
PC
89662013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
8967
8968 * config/i386/i386.c (ix86_function_versions): Use error + inform.
8969
c97fd4b8
UB
89702013-08-12 Uros Bizjak <ubizjak@gmail.com>
8971
8972 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
8973 iterator instead of X87MODEF.
8974
89752013-08-12 Perez Read <netfirewall@gmail.com>
8976
8977 PR target/58132
8978 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
8979 operand 0 for intel asm alternative.
8980 (*movabs<mode>_2): Ditto for operand 1.
8981
f4f4204c
JG
89822013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
8983
8984 * config/aarch64/arm_none.h
8985 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
8986
133b1a8e
NC
89872013-08-12 Nick Clifton <nickc@redhat.com>
8988
8989 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
8990
15dd8b3a
YR
89912013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
8992
8993 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
8994 expand for QI/HImode operand to produce more effictive code for
8995 unsigned char(short) --> float(double) conversion.
8996
94109a6a
AM
89972013-08-12 Alexander Monakov <amonakov@ispras.ru>
8998
8999 * doc/invoke.texi: Mention that -ftls-model does not force the final
9000 model.
9001
4e115102
MP
90022013-08-12 Marek Polacek <polacek@redhat.com>
9003 Marc Glisse <marc.glisse@inria.fr>
9004
9005 PR tree-optimization/57980
9006 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
9007 when creating -1 constant.
9008
748d71f3
JH
90092013-08-10 Jan Hubicka <jh@suse.cz>
9010
1f97e193 9011 Workaround binutils PR14342.
748d71f3
JH
9012 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
9013 (gimple_init_edge_profiler): Likewise.
9014 (gimple_gen_ic_func_profiler): Likewise.
9015
5979aa54
JH
90162013-08-09 Jan Hubicka <jh@suse.cz>
9017
9018 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
9019
ad83025e
XDL
90202013-08-09 Xinliang David Li <davidxl@google.com>
9021
9022 * config/i386/stringop.def: New file.
9023 * config/i386/stringop.opt: New file.
9024 * config/i386/i386-opts.h: Include stringopt.def.
9025 * config/i386/i386.opt: Include stringopt.opt.
9026 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 9027 Override default size based stringop inline strategies with options.
ad83025e
XDL
9028 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
9029 New function.
9030
e59df5fd
JH
90312013-08-09 Jan Hubicka <jh@suse.cz>
9032
c97fd4b8 9033 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 9034
634ab819
JH
90352013-08-09 Jan Hubicka <jh@suse.cz>
9036
9037 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
9038 CGRAPH_FREQ_MAX.
9039 (dump_cgraph_node): Dump profile-id.
9040 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
9041 and common_target_probability.
9042 * lto-cgraph.c (lto_output_edge): Stream common targets.
9043 (lto_output_node): Stream profile ids.
9044 (input_node): Stream profile ids.
9045 (input_edge): Stream common targets.
9046 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
9047 * ipa.c: Include value-prof.h
9048 (ipa_profile_generate_summary): Turn indirect call statement histograms
9049 into common targets.
9050 (ipa_profile): Turn common targets into speculative edges.
9051
2fa3d31b
JH
90522013-08-09 Jan Hubicka <jh@suse.cz>
9053
9054 * cgraph.h (cgraph_node): Add profile_id.
9055 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 9056 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
9057 (del_node_map): Update.
9058 (find_func_by_funcdef_no): Replace by ...
9059 (find_func_by_profile_id): ... this one.
9060 (gimple_ic_transform): Do not remove useful histograms when
9061 speculation is not done; dump info when indirect call removal
9062 can happen at LTO.
9063 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
9064 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
9065 (__gcov_indirect_call_profiler_v2): .. this one.
9066 * profile.h (init_node_map): Update.
9067 * coverage.c (coverage_compute_profile_id): New function.
9068 * coverage.h (coverage_compute_profile_id): Declare.
9069 * tree-profile.c (init_ic_make_global_vars): Make
9070 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
9071 (gimple_init_edge_profiler): Update prototype of
9072 __gcov_indirect_call_profiler.
9073 (gimple_gen_ic_func_profiler): Simplify.
9074 (tree_profiling): Use init_node_map
9075
042ae7d2
JH
90762013-08-09 Jan Hubicka <jh@suse.cz>
9077
c97fd4b8
UB
9078 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
9079 non-speculative refs.
042ae7d2
JH
9080 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
9081 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
9082 (cgraph_set_call_stmt): Likewise.
9083 (cgraph_create_edge_1): Fix release checking compilatoin;
9084 clear lto_stmt_uid.
9085 (cgraph_free_edge): Free indirect info.
9086 (cgraph_turn_edge_to_speculative): New function.
9087 (cgraph_speculative_call_info): New function.
9088 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 9089 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
9090 (dump_cgraph_node): Dump speculation.
9091 (verify_edge_count_and_frequency): Accept speculative edges.
9092 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
9093 (verify_cgraph_node): Handle speculation.
9094 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
9095 (cgraph_set_call_stmt): Update prototype.
9096 (cgraph_make_edge_direct): Update prototype.
9097 (cgraph_speculative_call_info): Declare.
9098 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
9099 to change; update call of ipa_find_references.
9100 * ipa-ref.c (ipa_record_reference): Fix return value; clear
9101 lto_stmt_uid and speculative flags.
9102 (ipa_dump_references): Dump speculation.
9103 (ipa_clone_references): Clone speculative flag.
9104 (ipa_clone_referring): Likewise.
9105 (ipa_clone_ref): New function.
9106 (ipa_find_reference): Look into lto_stmt_uids
9107 (ipa_clear_stmts_in_references): Do not clear speculative calls.
9108 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
9109 (ipa_find_reference): Update declaration.
9110 (ipa_clone_ref): Declare.
9111 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
9112 stream speculative flag.
9113 (lto_output_ref): Stream statements uids and speculation.
9114 (input_ref): Likewise.
9115 (input_edge): Stream speuclation.
9116 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
9117 (cgraph_set_call_stmt_including_clones): Handle speculation.
9118 * ipa-inline.c (heap_edge_removal_hook): New function.
9119 (inline_small_functions): Register it.
9120 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
9121 also initialize refs.
9122 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
9123 edge to change.
9124 (try_make_edge_direct_simple_call): Likewise.
9125 (try_make_edge_direct_simple_call): Likewise.
9126 (update_indirect_edges_after_inlining): Likewise.
9127 (remove_described_reference): Look proper lto_stmt_uid.
9128 (propagate_controlled_uses): Likewise.
9129 (propagate_controlled_uses): Liekwise.
9130 * tree-inline.c (copy_bb): Copy speculative edges.
9131 (redirect_all_calls): New function.
c97fd4b8
UB
9132 (copy_cfg_body): Do redirection after loop info is updated.
9133 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 9134
aa1e10cc
JH
91352013-08-09 Jan Hubicka <jh@suse.cz>
9136
9137 * lto-streamer-out.c (output_function): Renumber PHIs.
9138 * lto-streamer-in.c (input_function): Likewise.
9139
66adb8eb
JG
91402013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
9141
9142 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
9143 (get_lane_unsigned): Likewise.
9144 (dup_lane_scalar): Likewise.
9145 (get_lane): enable for VALL.
9146 * config/aarch64/aarch64-simd.md
9147 (aarch64_dup_lane_scalar<mode>): Remove.
9148 (aarch64_get_lane_signed<mode>): Likewise.
9149 (aarch64_get_lane_unsigned<mode>): Likewise.
9150 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
9151 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
9152 (aarch64_get_lane<mode>): Enable for all vector modes.
9153 (aarch64_get_lanedi): Remove misleading constraints.
9154 * config/aarch64/arm_neon.h
9155 (__aarch64_vget_lane_any): Define.
9156 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
9157 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
9158 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
9159 * config/aarch64/iterators.md (VDQQH): New.
9160 (VDQQHS): Likewise.
9161 (vwcore): Likewise.
9162
1f65ae7a
EB
91632013-08-09 Eric Botcazou <ebotcazou@adacore.com>
9164
9165 * configure.ac: Add GAS check for LEON instructions on SPARC.
9166 * configure: Regenerate.
9167 * config.in: Likewise.
9168 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
9169 sparc*-*-* block.
9170 * config/sparc/sparc.opt (LEON, LEON3): New masks.
9171 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
9172 for LEON or LEON3.
9173 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
9174 (AS_LEON_FLAG): New macro.
9175 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
9176 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
9177 Deal with LEON and LEON3 for the memory model.
23a6cb78 9178 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
9179 (atomic_compare_and_swap<mode>_1): Likewise.
9180 (*atomic_compare_and_swap<mode>_1): Likewise.
9181
ff522f7f
ZC
91822013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9183
9184 * config/arm/neon.md (vcond): Fix floating-point vector
9185 comparisons against 0.
9186
cb1cca12
VM
91872013-08-08 Vladimir Makarov <vmakarov@redhat.com>
9188
9189 * lra-constraints.c (emit_spill_move): Remove assert.
9190 (process_alt_operands): Add more debugging
9191 output. Increase reject for spilling into memory. Decrease
9192 reject for reloading scratch.
9193 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
9194
a3719e31
SE
91952013-08-08 Steve Ellcey <sellcey@mips.com>
9196
9197 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
9198 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
9199 micromips incompatible. Add nan2008.
9200 (MULTILIB_DIRNAMES): Add nan2008.
9201 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
9202 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
9203 and micromips incompatible. Add nan2008.
9204 (MULTILIB_DIRNAMES): Add nan2008.
9205 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
9206
f40423e2
RS
92072013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
9208
9209 PR rtl-optimization/58079
9210 * combine.c (combine_simplify_rtx): Avoid using SUBST if
9211 simplify_comparison has widened a comparison with an integer.
9212
869b9125
KT
92132013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9214
9215 * config/arm/neon.md (movmisalign<mode>): Disable when we
9216 don't allow unaligned accesses.
9217 (*movmisalign<mode>_neon_store): Likewise.
9218 (*movmisalign<mode>_neon_load): Likewise.
9219 (*movmisalign<mode>_neon_store): Likewise.
9220 (*movmisalign<mode>_neon_load): Likewise.
9221
71cafea9
JH
92222013-08-08 Jan Hubicka <jh@suse.cz>
9223
9224 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
9225 (make_pass_rebuild_cgraph_edges): Also clear references.
9226 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
9227 * ipa-inline-transform.c (inline_transform): Remove all references
9228 after inlining.
c97fd4b8
UB
9229 * cgraphunit.c (expand_function): Remove all references after
9230 expansion.
71cafea9
JH
9231 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
9232 (ipa_find_reference): Rewrite to iterator.
9233 (remove_stmt_references): Likewise.
9234 (ipa_clear_stmts_in_references): New function.
9235 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
9236 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
9237 clear references.
71cafea9
JH
9238 * ipa-split.c (split_function): Remove references in split function.
9239
27d2e612
RE
92402013-08-08 Richard Earnshaw <rearnsha@arm.com>
9241
9242 PR target/57431
1f65ae7a 9243 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
9244 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
9245
5efc661c
RE
92462013-08-08 Richard Earnshaw <rearnsha@arm.com>
9247
9248 PR target/56979
1f65ae7a 9249 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
9250 suggested mode for the assignment isn't compatible with the
9251 registers required.
9252
f276d31d
BE
92532013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
9254
9255 PR target/58065
9256 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
9257
4b8bc035
XDL
92582013-08-07 Xinliang David Li <davidxl@google.com>
9259
9260 * config/i386/i386.opt: New option -mtune-ctrl=.
9261 * config/i386/x86-tune.def: New file.
9262 * config/i386/i386.h: include x86-tune.def.
9263 * config/i386/i386.c (ix86_option_override_internal):
9264 Parsing -mtune-ctrl= option and set tune features.
9265
12211b99 92662013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
9267
9268 PR other/12081
03b0ee0a 9269 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
9270 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
9271 to gen_2arg_fn_t.
9272
5cf6635b
EB
92732013-08-07 Eric Botcazou <ebotcazou@adacore.com>
9274
9275 * rtl.h (update_alignments): Declare.
9276 * final.c (grow_label_align): New function extracted from...
9277 (shorten_branches): ...here. Call it.
9278 (update_alignments): New function.
9279 * reorg.c (sibling_labels): New variable.
9280 (get_label_before): Add SIBLING parameter. If it is non-zero, push
9281 the new label along with it onto the sibling_labels vector.
9282 (fill_simple_delay_slots): Adjust call to get_label_before.
9283 (fill_slots_from_thread): Likewise.
9284 (relax_delay_slots): Likewise.
9285 (make_return_insns): Likewise.
9286 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
9287
3c8ca1ab
EB
92882013-08-07 Eric Botcazou <ebotcazou@adacore.com>
9289
9290 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
9291 document its semantics.
9292 (diagnostic_report_diagnostic): Adjust accordingly.
9293
5ee5b32c
DM
92942013-08-07 David Malcolm <dmalcolm@redhat.com>
9295
03b0ee0a 9296 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
9297 (sparc_option_override): ...and port to new C++ pass API.
9298 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
9299
abd566fa
PB
93002013-08-07 Peter Bergner <bergner@vnet.ibm.com>
9301
9302 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
9303
2077db1b
CT
93042013-08-06 Caroline Tice <cmtice@google.com>
9305
9306 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
9307 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
9308 * tree-pass.h: Add pass_vtable_verify.
9309 * varasm.c (assemble_variable): Add code to properly set the comdat
9310 section and name for the .vtable_map_vars section.
9311 (assemble_vtyv_preinit_initializer): New function.
9312 (default_sectin_type_flags): Make sure .vtable_map_vars section has
9313 LINK_ONCE flag.
9314 * output.h: Add function decl for assemble_vtv_preinit_initializer.
9315 * vtable-verify.c: New file.
9316 * vtable-verify.h: New file.
9317 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
9318 initialiation levels.
9319 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
9320 * passes.def: Insert pass_vtable_verify.
9321 * aclocal.m4: Reorder includes.
9322 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
9323 -fvtv-counts options.
9324 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
9325 as appropriate, if -fvtable-verify=... is used.
9326 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
9327 -fvtable-verify=... is used.
9328 * Makefile.in (OBJS): Add vtable-verify.o to list.
9329 (vtable-verify.o): Add new build rule.
9330 (GTFILES): Add vtable-verify.c to list.
9331 * common.opt (fvtable-verify=): New flag.
9332 (vtv_priority): Values for fvtable-verify= flag.
9333 (fvtv-counts): New flag.
9334 (fvtv-debug): New flag.
9335 * tree.h (save_vtable_map_decl): New extern function decl.
9336
03085d1c
DM
93372013-08-07 David Malcolm <dmalcolm@redhat.com>
9338
9339 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
9340 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
9341 (pass_data_rl78_devirt): ...new pass_data instance and...
9342 (make_pass_rl78_devirt): ...new function.
9343 (rl78_asm_file_start): Port pass registration to new C++ API.
9344
05555c4a
DM
93452013-08-07 David Malcolm <dmalcolm@redhat.com>
9346
9347 * coretypes.h (rtl_opt_pass): Add.
9348 (gcc::context): Add.
9349 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
9350 (epiphany_init): Port to new C++ pass API.
9351 (epiphany_optimize_mode_switching): Likewise.
9352 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
9353 (pass_manager::get_pass_mode_switching): New.
9354 (pass_manager::get_pass_peephole2): New.
9355 * mode-switching.c (pass_mode_switching): Add clone method.
9356 * recog.c (pass_peephole2): Add clone method.
9357 (pass_split_all_insns): Add clone method.
9358
c5a12e26
DM
93592013-08-06 David Malcolm <dmalcolm@redhat.com>
9360
03b0ee0a
UB
9361 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
9362 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 9363
a2e2a668
JH
93642013-08-06 Jan Hubicka <jh@suse.cz>
9365
9366 * cgraph.c (cgraph_get_body): New function based on lto.c
9367 implementation.
9368 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
9369 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
9370 LTO paths.
a2e2a668
JH
9371 * cgraphunit.c (expand_function): Get body prior expanding.
9372 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
9373 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
9374 really need.
a2e2a668
JH
9375 * passes.c (do_per_function_toporder): Get body.
9376 * tree-inline.c (expand_call_inline): Get body prior inlining it.
9377 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
9378
15682f24
MJ
93792013-08-06 Martin Jambor <mjambor@suse.cz>
9380
9381 PR fortran/57987
9382 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
9383 is not re-finalized. Rename second parameter to no_collect.
9384
78f6dd68
MJ
93852013-08-06 Martin Jambor <mjambor@suse.cz>
9386
9387 PR middle-end/58041
9388 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
9389 MEM_REF has proper alignment information.
9390
12211b99 93912013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
9392
9393 PR other/12081
9394 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
9395 class insn_gen_fn.
9396 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
9397 rtx (*) (rtx, ...) with insn_gen_fn.
9398 * genoutput.c (output_insn_data): Cast gen_? function pointers to
9399 insn_gen_fn::stored_funcptr. Add initializer braces.
9400
8ac69a6c
DM
94012013-08-05 David Malcolm <dmalcolm@redhat.com>
9402
9403 Rewrite how instances of passes are cloned to remove assumptions
9404 about their sizes (thus allowing pass subclasses to have
9405 additional data fields, albeit non-GC-managed ones at this point).
9406
9407 * passes.c (make_pass_instance): Now that passes have clone
9408 methods, rewrite this function to eliminate XNEW and memcpy
9409 calls that used hardcoded sizes. Since this function no longer
9410 creates pass instances, rename it to...
03b0ee0a
UB
9411 (add_pass_instance): ...this. Document the old way that passes were
9412 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
9413 (next_pass_1): Add an initial_pass argument for use by
9414 add_pass_instance.
9415 (position_pass): When adding multiple instances of a pass, use
9416 the pass's clone method, rather than relying on the XNEW/memcpy
9417 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
9418 (pass_manager::pass_manager): When invoking next_pass_1, also supply
9419 the initial instance of the current pass within the pass manager.
8ac69a6c 9420
27a4cd48
DM
94212013-08-05 David Malcolm <dmalcolm@redhat.com>
9422
9423 This is the automated part of the conversion of passes from C
9424 structs to C++ classes.
9425
9426 Patch autogenerated by refactor_passes.py from
9427 https://github.com/davidmalcolm/gcc-refactoring-scripts
9428 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
9429
9430 * asan.c (pass_asan): Convert from a global struct to a subclass of
9431 gimple_opt_pass along with...
9432 (pass_data_asan): ...new pass_data instance and...
9433 (make_pass_asan): ...new function.
9434 (pass_asan_O0): Convert from a global struct to a subclass of
9435 gimple_opt_pass along with...
9436 (pass_data_asan_O0): ...new pass_data instance and...
9437 (make_pass_asan_O0): ...new function.
9438 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
9439 subclass of rtl_opt_pass along with...
9440 (pass_data_inc_dec): ...new pass_data instance and...
9441 (make_pass_inc_dec): ...new function.
9442 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
9443 a subclass of rtl_opt_pass along with...
9444 (pass_data_reorder_blocks): ...new pass_data instance and...
9445 (make_pass_reorder_blocks): ...new function.
9446 (pass_duplicate_computed_gotos): Convert from a global struct to a
9447 subclass of rtl_opt_pass along with...
9448 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
9449 (make_pass_duplicate_computed_gotos): ...new function.
9450 (pass_partition_blocks): Convert from a global struct to a subclass of
9451 rtl_opt_pass along with...
9452 (pass_data_partition_blocks): ...new pass_data instance and...
9453 (make_pass_partition_blocks): ...new function.
9454 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
9455 struct to a subclass of rtl_opt_pass along with...
9456 (pass_data_branch_target_load_optimize1): ...new pass_data instance
9457 and...
9458 (make_pass_branch_target_load_optimize1): ...new function.
9459 (pass_branch_target_load_optimize2): Convert from a global struct to a
9460 subclass of rtl_opt_pass along with...
9461 (pass_data_branch_target_load_optimize2): ...new pass_data instance
9462 and...
9463 (make_pass_branch_target_load_optimize2): ...new function.
9464 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
9465 of rtl_opt_pass along with...
9466 (pass_data_jump): ...new pass_data instance and...
9467 (make_pass_jump): ...new function.
9468 (pass_jump2): Convert from a global struct to a subclass of
9469 rtl_opt_pass along with...
9470 (pass_data_jump2): ...new pass_data instance and...
9471 (make_pass_jump2): ...new function.
9472 * cfgexpand.c (pass_expand): Convert from a global struct to a
9473 subclass of rtl_opt_pass along with...
9474 (pass_data_expand): ...new pass_data instance and...
9475 (make_pass_expand): ...new function.
9476 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
9477 of rtl_opt_pass along with...
9478 (pass_data_free_cfg): ...new pass_data instance and...
9479 (make_pass_free_cfg): ...new function.
9480 (pass_into_cfg_layout_mode): Convert from a global struct to a
9481 subclass of rtl_opt_pass along with...
9482 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
9483 (make_pass_into_cfg_layout_mode): ...new function.
9484 (pass_outof_cfg_layout_mode): Convert from a global struct to a
9485 subclass of rtl_opt_pass along with...
9486 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
9487 (make_pass_outof_cfg_layout_mode): ...new function.
9488 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
9489 struct to a subclass of gimple_opt_pass along with...
9490 (pass_data_build_cgraph_edges): ...new pass_data instance and...
9491 (make_pass_build_cgraph_edges): ...new function.
9492 (pass_rebuild_cgraph_edges): Convert from a global struct to a
9493 subclass of gimple_opt_pass along with...
9494 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
9495 (make_pass_rebuild_cgraph_edges): ...new function.
9496 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
9497 subclass of gimple_opt_pass along with...
9498 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
9499 and...
9500 (make_pass_remove_cgraph_callee_edges): ...new function.
9501 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
9502 struct to a subclass of rtl_opt_pass along with...
9503 (pass_data_stack_adjustments): ...new pass_data instance and...
9504 (make_pass_stack_adjustments): ...new function.
9505 * combine.c (pass_combine): Convert from a global struct to a subclass
9506 of rtl_opt_pass along with...
9507 (pass_data_combine): ...new pass_data instance and...
9508 (make_pass_combine): ...new function.
9509 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
9510 global struct to a subclass of rtl_opt_pass along with...
9511 (pass_data_compare_elim_after_reload): ...new pass_data instance
9512 and...
9513 (make_pass_compare_elim_after_reload): ...new function.
9514 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
9515 of rtl_opt_pass along with...
9516 (pass_data_rtl_cprop): ...new pass_data instance and...
9517 (make_pass_rtl_cprop): ...new function.
9518 * cse.c (pass_cse): Convert from a global struct to a subclass of
9519 rtl_opt_pass along with...
9520 (pass_data_cse): ...new pass_data instance and...
9521 (make_pass_cse): ...new function.
9522 (pass_cse2): Convert from a global struct to a subclass of
9523 rtl_opt_pass along with...
9524 (pass_data_cse2): ...new pass_data instance and...
9525 (make_pass_cse2): ...new function.
9526 (pass_cse_after_global_opts): Convert from a global struct to a
9527 subclass of rtl_opt_pass along with...
9528 (pass_data_cse_after_global_opts): ...new pass_data instance and...
9529 (make_pass_cse_after_global_opts): ...new function.
9530 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
9531 of rtl_opt_pass along with...
9532 (pass_data_ud_rtl_dce): ...new pass_data instance and...
9533 (make_pass_ud_rtl_dce): ...new function.
9534 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
9535 rtl_opt_pass along with...
9536 (pass_data_fast_rtl_dce): ...new pass_data instance and...
9537 (make_pass_fast_rtl_dce): ...new function.
9538 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
9539 a subclass of rtl_opt_pass along with...
9540 (pass_data_df_initialize_opt): ...new pass_data instance and...
9541 (make_pass_df_initialize_opt): ...new function.
9542 (pass_df_initialize_no_opt): Convert from a global struct to a
9543 subclass of rtl_opt_pass along with...
9544 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
9545 (make_pass_df_initialize_no_opt): ...new function.
9546 (pass_df_finish): Convert from a global struct to a subclass of
9547 rtl_opt_pass along with...
9548 (pass_data_df_finish): ...new pass_data instance and...
9549 (make_pass_df_finish): ...new function.
9550 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
9551 rtl_opt_pass along with...
9552 (pass_data_rtl_dse1): ...new pass_data instance and...
9553 (make_pass_rtl_dse1): ...new function.
9554 (pass_rtl_dse2): Convert from a global struct to a subclass of
9555 rtl_opt_pass along with...
9556 (pass_data_rtl_dse2): ...new pass_data instance and...
9557 (make_pass_rtl_dse2): ...new function.
9558 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
9559 subclass of rtl_opt_pass along with...
9560 (pass_data_dwarf2_frame): ...new pass_data instance and...
9561 (make_pass_dwarf2_frame): ...new function.
9562 * except.c (pass_set_nothrow_function_flags): Convert from a global
9563 struct to a subclass of rtl_opt_pass along with...
9564 (pass_data_set_nothrow_function_flags): ...new pass_data instance
9565 and...
9566 (make_pass_set_nothrow_function_flags): ...new function.
9567 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
9568 subclass of rtl_opt_pass along with...
9569 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
9570 and...
9571 (make_pass_convert_to_eh_region_ranges): ...new function.
9572 * final.c (pass_compute_alignments): Convert from a global struct to a
9573 subclass of rtl_opt_pass along with...
9574 (pass_data_compute_alignments): ...new pass_data instance and...
9575 (make_pass_compute_alignments): ...new function.
9576 (pass_final): Convert from a global struct to a subclass of
9577 rtl_opt_pass along with...
9578 (pass_data_final): ...new pass_data instance and...
9579 (make_pass_final): ...new function.
9580 (pass_shorten_branches): Convert from a global struct to a subclass of
9581 rtl_opt_pass along with...
9582 (pass_data_shorten_branches): ...new pass_data instance and...
9583 (make_pass_shorten_branches): ...new function.
9584 (pass_clean_state): Convert from a global struct to a subclass of
9585 rtl_opt_pass along with...
9586 (pass_data_clean_state): ...new pass_data instance and...
9587 (make_pass_clean_state): ...new function.
9588 * function.c (pass_instantiate_virtual_regs): Convert from a global
9589 struct to a subclass of rtl_opt_pass along with...
9590 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
9591 (make_pass_instantiate_virtual_regs): ...new function.
9592 (pass_leaf_regs): Convert from a global struct to a subclass of
9593 rtl_opt_pass along with...
9594 (pass_data_leaf_regs): ...new pass_data instance and...
9595 (make_pass_leaf_regs): ...new function.
9596 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
9597 subclass of rtl_opt_pass along with...
9598 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
9599 and...
9600 (make_pass_thread_prologue_and_epilogue): ...new function.
9601 (pass_match_asm_constraints): Convert from a global struct to a
9602 subclass of rtl_opt_pass along with...
9603 (pass_data_match_asm_constraints): ...new pass_data instance and...
9604 (make_pass_match_asm_constraints): ...new function.
9605 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
9606 subclass of rtl_opt_pass along with...
9607 (pass_data_rtl_fwprop): ...new pass_data instance and...
9608 (make_pass_rtl_fwprop): ...new function.
9609 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
9610 rtl_opt_pass along with...
9611 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
9612 (make_pass_rtl_fwprop_addr): ...new function.
9613 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
9614 rtl_opt_pass along with...
9615 (pass_data_rtl_pre): ...new pass_data instance and...
9616 (make_pass_rtl_pre): ...new function.
9617 (pass_rtl_hoist): Convert from a global struct to a subclass of
9618 rtl_opt_pass along with...
9619 (pass_data_rtl_hoist): ...new pass_data instance and...
9620 (make_pass_rtl_hoist): ...new function.
9621 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
9622 subclass of gimple_opt_pass along with...
9623 (pass_data_lower_cf): ...new pass_data instance and...
9624 (make_pass_lower_cf): ...new function.
9625 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
9626 from a global struct to a subclass of gimple_opt_pass along with...
9627 (pass_data_strength_reduction): ...new pass_data instance and...
9628 (make_pass_strength_reduction): ...new function.
9629 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
9630 of rtl_opt_pass along with...
9631 (pass_data_rtl_ifcvt): ...new pass_data instance and...
9632 (make_pass_rtl_ifcvt): ...new function.
9633 (pass_if_after_combine): Convert from a global struct to a subclass of
9634 rtl_opt_pass along with...
9635 (pass_data_if_after_combine): ...new pass_data instance and...
9636 (make_pass_if_after_combine): ...new function.
9637 (pass_if_after_reload): Convert from a global struct to a subclass of
9638 rtl_opt_pass along with...
9639 (pass_data_if_after_reload): ...new pass_data instance and...
9640 (make_pass_if_after_reload): ...new function.
9641 * init-regs.c (pass_initialize_regs): Convert from a global struct to
9642 a subclass of rtl_opt_pass along with...
9643 (pass_data_initialize_regs): ...new pass_data instance and...
9644 (make_pass_initialize_regs): ...new function.
9645 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
9646 of ipa_opt_pass_d along with...
9647 (pass_data_ipa_cp): ...new pass_data instance and...
9648 (make_pass_ipa_cp): ...new function.
9649 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
9650 global struct to a subclass of gimple_opt_pass along with...
9651 (pass_data_inline_parameters): ...new pass_data instance and...
9652 (make_pass_inline_parameters): ...new function.
9653 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
9654 subclass of gimple_opt_pass along with...
9655 (pass_data_early_inline): ...new pass_data instance and...
9656 (make_pass_early_inline): ...new function.
9657 (pass_ipa_inline): Convert from a global struct to a subclass of
9658 ipa_opt_pass_d along with...
9659 (pass_data_ipa_inline): ...new pass_data instance and...
9660 (make_pass_ipa_inline): ...new function.
9661 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
9662 struct to a subclass of gimple_opt_pass along with...
9663 (pass_data_local_pure_const): ...new pass_data instance and...
9664 (make_pass_local_pure_const): ...new function.
9665 (pass_ipa_pure_const): Convert from a global struct to a subclass of
9666 ipa_opt_pass_d along with...
9667 (pass_data_ipa_pure_const): ...new pass_data instance and...
9668 (make_pass_ipa_pure_const): ...new function.
9669 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
9670 to a subclass of ipa_opt_pass_d along with...
9671 (pass_data_ipa_reference): ...new pass_data instance and...
9672 (make_pass_ipa_reference): ...new function.
9673 * ipa-split.c (pass_split_functions): Convert from a global struct to
9674 a subclass of gimple_opt_pass along with...
9675 (pass_data_split_functions): ...new pass_data instance and...
9676 (make_pass_split_functions): ...new function.
9677 (pass_feedback_split_functions): Convert from a global struct to a
9678 subclass of gimple_opt_pass along with...
9679 (pass_data_feedback_split_functions): ...new pass_data instance and...
9680 (make_pass_feedback_split_functions): ...new function.
9681 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
9682 global struct to a subclass of simple_ipa_opt_pass along with...
9683 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
9684 instance and...
9685 (make_pass_ipa_function_and_variable_visibility): ...new function.
9686 (pass_ipa_free_inline_summary): Convert from a global struct to a
9687 subclass of simple_ipa_opt_pass along with...
9688 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
9689 (make_pass_ipa_free_inline_summary): ...new function.
9690 (pass_ipa_whole_program_visibility): Convert from a global struct to a
9691 subclass of ipa_opt_pass_d along with...
9692 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
9693 and...
9694 (make_pass_ipa_whole_program_visibility): ...new function.
9695 (pass_ipa_profile): Convert from a global struct to a subclass of
9696 ipa_opt_pass_d along with...
9697 (pass_data_ipa_profile): ...new pass_data instance and...
9698 (make_pass_ipa_profile): ...new function.
9699 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
9700 ipa_opt_pass_d along with...
9701 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
9702 (make_pass_ipa_cdtor_merge): ...new function.
9703 * ira.c (pass_ira): Convert from a global struct to a subclass of
9704 rtl_opt_pass along with...
9705 (pass_data_ira): ...new pass_data instance and...
9706 (make_pass_ira): ...new function.
9707 (pass_reload): Convert from a global struct to a subclass of
9708 rtl_opt_pass along with...
9709 (pass_data_reload): ...new pass_data instance and...
9710 (make_pass_reload): ...new function.
9711 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
9712 subclass of rtl_opt_pass along with...
9713 (pass_data_cleanup_barriers): ...new pass_data instance and...
9714 (make_pass_cleanup_barriers): ...new function.
9715 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
9716 of rtl_opt_pass along with...
9717 (pass_data_loop2): ...new pass_data instance and...
9718 (make_pass_loop2): ...new function.
9719 (pass_rtl_loop_init): Convert from a global struct to a subclass of
9720 rtl_opt_pass along with...
9721 (pass_data_rtl_loop_init): ...new pass_data instance and...
9722 (make_pass_rtl_loop_init): ...new function.
9723 (pass_rtl_loop_done): Convert from a global struct to a subclass of
9724 rtl_opt_pass along with...
9725 (pass_data_rtl_loop_done): ...new pass_data instance and...
9726 (make_pass_rtl_loop_done): ...new function.
9727 (pass_rtl_move_loop_invariants): Convert from a global struct to a
9728 subclass of rtl_opt_pass along with...
9729 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
9730 (make_pass_rtl_move_loop_invariants): ...new function.
9731 (pass_rtl_unswitch): Convert from a global struct to a subclass of
9732 rtl_opt_pass along with...
9733 (pass_data_rtl_unswitch): ...new pass_data instance and...
9734 (make_pass_rtl_unswitch): ...new function.
9735 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
9736 subclass of rtl_opt_pass along with...
9737 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
9738 and...
9739 (make_pass_rtl_unroll_and_peel_loops): ...new function.
9740 (pass_rtl_doloop): Convert from a global struct to a subclass of
9741 rtl_opt_pass along with...
9742 (pass_data_rtl_doloop): ...new pass_data instance and...
9743 (make_pass_rtl_doloop): ...new function.
9744 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
9745 a subclass of rtl_opt_pass along with...
9746 (pass_data_lower_subreg): ...new pass_data instance and...
9747 (make_pass_lower_subreg): ...new function.
9748 (pass_lower_subreg2): Convert from a global struct to a subclass of
9749 rtl_opt_pass along with...
9750 (pass_data_lower_subreg2): ...new pass_data instance and...
9751 (make_pass_lower_subreg2): ...new function.
9752 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
9753 struct to a subclass of ipa_opt_pass_d along with...
9754 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
9755 (make_pass_ipa_lto_gimple_out): ...new function.
9756 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
9757 of ipa_opt_pass_d along with...
9758 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
9759 (make_pass_ipa_lto_finish_out): ...new function.
9760 * mode-switching.c (pass_mode_switching): Convert from a global struct
9761 to a subclass of rtl_opt_pass along with...
9762 (pass_data_mode_switching): ...new pass_data instance and...
9763 (make_pass_mode_switching): ...new function.
9764 * modulo-sched.c (pass_sms): Convert from a global struct to a
9765 subclass of rtl_opt_pass along with...
9766 (pass_data_sms): ...new pass_data instance and...
9767 (make_pass_sms): ...new function.
9768 * omp-low.c (pass_expand_omp): Convert from a global struct to a
9769 subclass of gimple_opt_pass along with...
9770 (pass_data_expand_omp): ...new pass_data instance and...
9771 (make_pass_expand_omp): ...new function.
9772 (pass_lower_omp): Convert from a global struct to a subclass of
9773 gimple_opt_pass along with...
9774 (pass_data_lower_omp): ...new pass_data instance and...
9775 (make_pass_lower_omp): ...new function.
9776 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
9777 of gimple_opt_pass along with...
9778 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
9779 (make_pass_diagnose_omp_blocks): ...new function.
9780 * passes.c (pass_early_local_passes): Convert from a global struct to
9781 a subclass of simple_ipa_opt_pass along with...
9782 (pass_data_early_local_passes): ...new pass_data instance and...
9783 (make_pass_early_local_passes): ...new function.
9784 (pass_all_early_optimizations): Convert from a global struct to a
9785 subclass of gimple_opt_pass along with...
9786 (pass_data_all_early_optimizations): ...new pass_data instance and...
9787 (make_pass_all_early_optimizations): ...new function.
9788 (pass_all_optimizations): Convert from a global struct to a subclass
9789 of gimple_opt_pass along with...
9790 (pass_data_all_optimizations): ...new pass_data instance and...
9791 (make_pass_all_optimizations): ...new function.
9792 (pass_all_optimizations_g): Convert from a global struct to a subclass
9793 of gimple_opt_pass along with...
9794 (pass_data_all_optimizations_g): ...new pass_data instance and...
9795 (make_pass_all_optimizations_g): ...new function.
9796 (pass_rest_of_compilation): Convert from a global struct to a subclass
9797 of rtl_opt_pass along with...
9798 (pass_data_rest_of_compilation): ...new pass_data instance and...
9799 (make_pass_rest_of_compilation): ...new function.
9800 (pass_postreload): Convert from a global struct to a subclass of
9801 rtl_opt_pass along with...
9802 (pass_data_postreload): ...new pass_data instance and...
9803 (make_pass_postreload): ...new function.
9804 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
9805 subclass of rtl_opt_pass along with...
9806 (pass_data_gcse2): ...new pass_data instance and...
9807 (make_pass_gcse2): ...new function.
9808 * postreload.c (pass_postreload_cse): Convert from a global struct to
9809 a subclass of rtl_opt_pass along with...
9810 (pass_data_postreload_cse): ...new pass_data instance and...
9811 (make_pass_postreload_cse): ...new function.
9812 * predict.c (pass_profile): Convert from a global struct to a subclass
9813 of gimple_opt_pass along with...
9814 (pass_data_profile): ...new pass_data instance and...
9815 (make_pass_profile): ...new function.
9816 (pass_strip_predict_hints): Convert from a global struct to a subclass
9817 of gimple_opt_pass along with...
9818 (pass_data_strip_predict_hints): ...new pass_data instance and...
9819 (make_pass_strip_predict_hints): ...new function.
9820 * recog.c (pass_peephole2): Convert from a global struct to a subclass
9821 of rtl_opt_pass along with...
9822 (pass_data_peephole2): ...new pass_data instance and...
9823 (make_pass_peephole2): ...new function.
9824 (pass_split_all_insns): Convert from a global struct to a subclass of
9825 rtl_opt_pass along with...
9826 (pass_data_split_all_insns): ...new pass_data instance and...
9827 (make_pass_split_all_insns): ...new function.
9828 (pass_split_after_reload): Convert from a global struct to a subclass
9829 of rtl_opt_pass along with...
9830 (pass_data_split_after_reload): ...new pass_data instance and...
9831 (make_pass_split_after_reload): ...new function.
9832 (pass_split_before_regstack): Convert from a global struct to a
9833 subclass of rtl_opt_pass along with...
9834 (pass_data_split_before_regstack): ...new pass_data instance and...
9835 (make_pass_split_before_regstack): ...new function.
9836 (pass_split_before_sched2): Convert from a global struct to a subclass
9837 of rtl_opt_pass along with...
9838 (pass_data_split_before_sched2): ...new pass_data instance and...
9839 (make_pass_split_before_sched2): ...new function.
9840 (pass_split_for_shorten_branches): Convert from a global struct to a
9841 subclass of rtl_opt_pass along with...
9842 (pass_data_split_for_shorten_branches): ...new pass_data instance
9843 and...
9844 (make_pass_split_for_shorten_branches): ...new function.
9845 * ree.c (pass_ree): Convert from a global struct to a subclass of
9846 rtl_opt_pass along with...
9847 (pass_data_ree): ...new pass_data instance and...
9848 (make_pass_ree): ...new function.
9849 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
9850 subclass of rtl_opt_pass along with...
9851 (pass_data_stack_regs): ...new pass_data instance and...
9852 (make_pass_stack_regs): ...new function.
9853 (pass_stack_regs_run): Convert from a global struct to a subclass of
9854 rtl_opt_pass along with...
9855 (pass_data_stack_regs_run): ...new pass_data instance and...
9856 (make_pass_stack_regs_run): ...new function.
9857 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
9858 subclass of rtl_opt_pass along with...
9859 (pass_data_cprop_hardreg): ...new pass_data instance and...
9860 (make_pass_cprop_hardreg): ...new function.
9861 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
9862 subclass of rtl_opt_pass along with...
9863 (pass_data_reginfo_init): ...new pass_data instance and...
9864 (make_pass_reginfo_init): ...new function.
9865 * regmove.c (pass_regmove): Convert from a global struct to a subclass
9866 of rtl_opt_pass along with...
9867 (pass_data_regmove): ...new pass_data instance and...
9868 (make_pass_regmove): ...new function.
9869 * regrename.c (pass_regrename): Convert from a global struct to a
9870 subclass of rtl_opt_pass along with...
9871 (pass_data_regrename): ...new pass_data instance and...
9872 (make_pass_regrename): ...new function.
9873 * reorg.c (pass_delay_slots): Convert from a global struct to a
9874 subclass of rtl_opt_pass along with...
9875 (pass_data_delay_slots): ...new pass_data instance and...
9876 (make_pass_delay_slots): ...new function.
9877 (pass_machine_reorg): Convert from a global struct to a subclass of
9878 rtl_opt_pass along with...
9879 (pass_data_machine_reorg): ...new pass_data instance and...
9880 (make_pass_machine_reorg): ...new function.
9881 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
9882 of rtl_opt_pass along with...
9883 (pass_data_sched): ...new pass_data instance and...
9884 (make_pass_sched): ...new function.
9885 (pass_sched2): Convert from a global struct to a subclass of
9886 rtl_opt_pass along with...
9887 (pass_data_sched2): ...new pass_data instance and...
9888 (make_pass_sched2): ...new function.
9889 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
9890 to a subclass of rtl_opt_pass along with...
9891 (pass_data_stack_ptr_mod): ...new pass_data instance and...
9892 (make_pass_stack_ptr_mod): ...new function.
9893 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
9894 to a subclass of rtl_opt_pass along with...
9895 (pass_data_rtl_store_motion): ...new pass_data instance and...
9896 (make_pass_rtl_store_motion): ...new function.
9897 * tracer.c (pass_tracer): Convert from a global struct to a subclass
9898 of gimple_opt_pass along with...
9899 (pass_data_tracer): ...new pass_data instance and...
9900 (make_pass_tracer): ...new function.
9901 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
9902 to a subclass of gimple_opt_pass along with...
9903 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
9904 (make_pass_diagnose_tm_blocks): ...new function.
9905 (pass_lower_tm): Convert from a global struct to a subclass of
9906 gimple_opt_pass along with...
9907 (pass_data_lower_tm): ...new pass_data instance and...
9908 (make_pass_lower_tm): ...new function.
9909 (pass_tm_init): Convert from a global struct to a subclass of
9910 gimple_opt_pass along with...
9911 (pass_data_tm_init): ...new pass_data instance and...
9912 (make_pass_tm_init): ...new function.
9913 (pass_tm_mark): Convert from a global struct to a subclass of
9914 gimple_opt_pass along with...
9915 (pass_data_tm_mark): ...new pass_data instance and...
9916 (make_pass_tm_mark): ...new function.
9917 (pass_tm_edges): Convert from a global struct to a subclass of
9918 gimple_opt_pass along with...
9919 (pass_data_tm_edges): ...new pass_data instance and...
9920 (make_pass_tm_edges): ...new function.
9921 (pass_tm_memopt): Convert from a global struct to a subclass of
9922 gimple_opt_pass along with...
9923 (pass_data_tm_memopt): ...new pass_data instance and...
9924 (make_pass_tm_memopt): ...new function.
9925 (pass_ipa_tm): Convert from a global struct to a subclass of
9926 simple_ipa_opt_pass along with...
9927 (pass_data_ipa_tm): ...new pass_data instance and...
9928 (make_pass_ipa_tm): ...new function.
9929 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
9930 subclass of gimple_opt_pass along with...
9931 (pass_data_call_cdce): ...new pass_data instance and...
9932 (make_pass_call_cdce): ...new function.
9933 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
9934 subclass of gimple_opt_pass along with...
9935 (pass_data_build_cfg): ...new pass_data instance and...
9936 (make_pass_build_cfg): ...new function.
9937 (pass_split_crit_edges): Convert from a global struct to a subclass of
9938 gimple_opt_pass along with...
9939 (pass_data_split_crit_edges): ...new pass_data instance and...
9940 (make_pass_split_crit_edges): ...new function.
9941 (pass_warn_function_return): Convert from a global struct to a
9942 subclass of gimple_opt_pass along with...
9943 (pass_data_warn_function_return): ...new pass_data instance and...
9944 (make_pass_warn_function_return): ...new function.
9945 (pass_warn_function_noreturn): Convert from a global struct to a
9946 subclass of gimple_opt_pass along with...
9947 (pass_data_warn_function_noreturn): ...new pass_data instance and...
9948 (make_pass_warn_function_noreturn): ...new function.
9949 (pass_warn_unused_result): Convert from a global struct to a subclass
9950 of gimple_opt_pass along with...
9951 (pass_data_warn_unused_result): ...new pass_data instance and...
9952 (make_pass_warn_unused_result): ...new function.
9953 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
9954 a subclass of gimple_opt_pass along with...
9955 (pass_data_merge_phi): ...new pass_data instance and...
9956 (make_pass_merge_phi): ...new function.
9957 * tree-complex.c (pass_lower_complex): Convert from a global struct to
9958 a subclass of gimple_opt_pass along with...
9959 (pass_data_lower_complex): ...new pass_data instance and...
9960 (make_pass_lower_complex): ...new function.
9961 (pass_lower_complex_O0): Convert from a global struct to a subclass of
9962 gimple_opt_pass along with...
9963 (pass_data_lower_complex_O0): ...new pass_data instance and...
9964 (make_pass_lower_complex_O0): ...new function.
9965 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
9966 subclass of gimple_opt_pass along with...
9967 (pass_data_lower_eh): ...new pass_data instance and...
9968 (make_pass_lower_eh): ...new function.
9969 (pass_refactor_eh): Convert from a global struct to a subclass of
9970 gimple_opt_pass along with...
9971 (pass_data_refactor_eh): ...new pass_data instance and...
9972 (make_pass_refactor_eh): ...new function.
9973 (pass_lower_resx): Convert from a global struct to a subclass of
9974 gimple_opt_pass along with...
9975 (pass_data_lower_resx): ...new pass_data instance and...
9976 (make_pass_lower_resx): ...new function.
9977 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
9978 of gimple_opt_pass along with...
9979 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
9980 (make_pass_lower_eh_dispatch): ...new function.
9981 (pass_cleanup_eh): Convert from a global struct to a subclass of
9982 gimple_opt_pass along with...
9983 (pass_data_cleanup_eh): ...new pass_data instance and...
9984 (make_pass_cleanup_eh): ...new function.
9985 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
9986 to a subclass of simple_ipa_opt_pass along with...
9987 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
9988 (make_pass_ipa_lower_emutls): ...new function.
9989 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
9990 a subclass of gimple_opt_pass along with...
9991 (pass_data_if_conversion): ...new pass_data instance and...
9992 (make_pass_if_conversion): ...new function.
9993 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
9994 subclass of gimple_opt_pass along with...
9995 (pass_data_build_ssa): ...new pass_data instance and...
9996 (make_pass_build_ssa): ...new function.
9997 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
9998 global struct to a subclass of gimple_opt_pass along with...
9999 (pass_data_loop_distribution): ...new pass_data instance and...
10000 (make_pass_loop_distribution): ...new function.
10001 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
10002 subclass of gimple_opt_pass along with...
10003 (pass_data_mudflap_1): ...new pass_data instance and...
10004 (make_pass_mudflap_1): ...new function.
10005 (pass_mudflap_2): Convert from a global struct to a subclass of
10006 gimple_opt_pass along with...
10007 (pass_data_mudflap_2): ...new pass_data instance and...
10008 (make_pass_mudflap_2): ...new function.
10009 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
10010 subclass of gimple_opt_pass along with...
10011 (pass_data_mudflap_1): ...new pass_data instance and...
10012 (make_pass_mudflap_1): ...new function.
10013 (pass_mudflap_2): Convert from a global struct to a subclass of
10014 gimple_opt_pass along with...
10015 (pass_data_mudflap_2): ...new pass_data instance and...
10016 (make_pass_mudflap_2): ...new function.
10017 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
10018 gimple_opt_pass along with...
10019 (pass_data_nrv): ...new pass_data instance and...
10020 (make_pass_nrv): ...new function.
10021 (pass_return_slot): Convert from a global struct to a subclass of
10022 gimple_opt_pass along with...
10023 (pass_data_return_slot): ...new pass_data instance and...
10024 (make_pass_return_slot): ...new function.
10025 * tree-object-size.c (pass_object_sizes): Convert from a global struct
10026 to a subclass of gimple_opt_pass along with...
10027 (pass_data_object_sizes): ...new pass_data instance and...
10028 (make_pass_object_sizes): ...new function.
10029 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
10030 global struct to a subclass of gimple_opt_pass along with...
10031 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
10032 and...
10033 (make_pass_cleanup_cfg_post_optimizing): ...new function.
10034 (pass_fixup_cfg): Convert from a global struct to a subclass of
10035 gimple_opt_pass along with...
10036 (pass_data_fixup_cfg): ...new pass_data instance and...
10037 (make_pass_fixup_cfg): ...new function.
10038 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
10039 (make_pass_mudflap_1): ...new function.
10040 (pass_mudflap_2): Replace declaration with that of...
10041 (make_pass_mudflap_2): ...new function.
10042 (pass_asan): Replace declaration with that of...
10043 (make_pass_asan): ...new function.
10044 (pass_asan_O0): Replace declaration with that of...
10045 (make_pass_asan_O0): ...new function.
10046 (pass_tsan): Replace declaration with that of...
10047 (make_pass_tsan): ...new function.
10048 (pass_tsan_O0): Replace declaration with that of...
10049 (make_pass_tsan_O0): ...new function.
10050 (pass_lower_cf): Replace declaration with that of...
10051 (make_pass_lower_cf): ...new function.
10052 (pass_refactor_eh): Replace declaration with that of...
10053 (make_pass_refactor_eh): ...new function.
10054 (pass_lower_eh): Replace declaration with that of...
10055 (make_pass_lower_eh): ...new function.
10056 (pass_lower_eh_dispatch): Replace declaration with that of...
10057 (make_pass_lower_eh_dispatch): ...new function.
10058 (pass_lower_resx): Replace declaration with that of...
10059 (make_pass_lower_resx): ...new function.
10060 (pass_build_cfg): Replace declaration with that of...
10061 (make_pass_build_cfg): ...new function.
10062 (pass_early_tree_profile): Replace declaration with that of...
10063 (make_pass_early_tree_profile): ...new function.
10064 (pass_cleanup_eh): Replace declaration with that of...
10065 (make_pass_cleanup_eh): ...new function.
10066 (pass_sra): Replace declaration with that of...
10067 (make_pass_sra): ...new function.
10068 (pass_sra_early): Replace declaration with that of...
10069 (make_pass_sra_early): ...new function.
10070 (pass_early_ipa_sra): Replace declaration with that of...
10071 (make_pass_early_ipa_sra): ...new function.
10072 (pass_tail_recursion): Replace declaration with that of...
10073 (make_pass_tail_recursion): ...new function.
10074 (pass_tail_calls): Replace declaration with that of...
10075 (make_pass_tail_calls): ...new function.
10076 (pass_tree_loop): Replace declaration with that of...
10077 (make_pass_tree_loop): ...new function.
10078 (pass_tree_loop_init): Replace declaration with that of...
10079 (make_pass_tree_loop_init): ...new function.
10080 (pass_lim): Replace declaration with that of...
10081 (make_pass_lim): ...new function.
10082 (pass_tree_unswitch): Replace declaration with that of...
10083 (make_pass_tree_unswitch): ...new function.
10084 (pass_predcom): Replace declaration with that of...
10085 (make_pass_predcom): ...new function.
10086 (pass_iv_canon): Replace declaration with that of...
10087 (make_pass_iv_canon): ...new function.
10088 (pass_scev_cprop): Replace declaration with that of...
10089 (make_pass_scev_cprop): ...new function.
10090 (pass_empty_loop): Replace declaration with that of...
10091 (make_pass_empty_loop): ...new function.
10092 (pass_record_bounds): Replace declaration with that of...
10093 (make_pass_record_bounds): ...new function.
10094 (pass_graphite): Replace declaration with that of...
10095 (make_pass_graphite): ...new function.
10096 (pass_graphite_transforms): Replace declaration with that of...
10097 (make_pass_graphite_transforms): ...new function.
10098 (pass_if_conversion): Replace declaration with that of...
10099 (make_pass_if_conversion): ...new function.
10100 (pass_loop_distribution): Replace declaration with that of...
10101 (make_pass_loop_distribution): ...new function.
10102 (pass_vectorize): Replace declaration with that of...
10103 (make_pass_vectorize): ...new function.
10104 (pass_slp_vectorize): Replace declaration with that of...
10105 (make_pass_slp_vectorize): ...new function.
10106 (pass_complete_unroll): Replace declaration with that of...
10107 (make_pass_complete_unroll): ...new function.
10108 (pass_complete_unrolli): Replace declaration with that of...
10109 (make_pass_complete_unrolli): ...new function.
10110 (pass_parallelize_loops): Replace declaration with that of...
10111 (make_pass_parallelize_loops): ...new function.
10112 (pass_loop_prefetch): Replace declaration with that of...
10113 (make_pass_loop_prefetch): ...new function.
10114 (pass_iv_optimize): Replace declaration with that of...
10115 (make_pass_iv_optimize): ...new function.
10116 (pass_tree_loop_done): Replace declaration with that of...
10117 (make_pass_tree_loop_done): ...new function.
10118 (pass_ch): Replace declaration with that of...
10119 (make_pass_ch): ...new function.
10120 (pass_ccp): Replace declaration with that of...
10121 (make_pass_ccp): ...new function.
10122 (pass_phi_only_cprop): Replace declaration with that of...
10123 (make_pass_phi_only_cprop): ...new function.
10124 (pass_build_ssa): Replace declaration with that of...
10125 (make_pass_build_ssa): ...new function.
10126 (pass_build_alias): Replace declaration with that of...
10127 (make_pass_build_alias): ...new function.
10128 (pass_build_ealias): Replace declaration with that of...
10129 (make_pass_build_ealias): ...new function.
10130 (pass_dominator): Replace declaration with that of...
10131 (make_pass_dominator): ...new function.
10132 (pass_dce): Replace declaration with that of...
10133 (make_pass_dce): ...new function.
10134 (pass_dce_loop): Replace declaration with that of...
10135 (make_pass_dce_loop): ...new function.
10136 (pass_cd_dce): Replace declaration with that of...
10137 (make_pass_cd_dce): ...new function.
10138 (pass_call_cdce): Replace declaration with that of...
10139 (make_pass_call_cdce): ...new function.
10140 (pass_merge_phi): Replace declaration with that of...
10141 (make_pass_merge_phi): ...new function.
10142 (pass_split_crit_edges): Replace declaration with that of...
10143 (make_pass_split_crit_edges): ...new function.
10144 (pass_pre): Replace declaration with that of...
10145 (make_pass_pre): ...new function.
10146 (pass_profile): Replace declaration with that of...
10147 (make_pass_profile): ...new function.
10148 (pass_strip_predict_hints): Replace declaration with that of...
10149 (make_pass_strip_predict_hints): ...new function.
10150 (pass_lower_complex_O0): Replace declaration with that of...
10151 (make_pass_lower_complex_O0): ...new function.
10152 (pass_lower_complex): Replace declaration with that of...
10153 (make_pass_lower_complex): ...new function.
10154 (pass_lower_vector): Replace declaration with that of...
10155 (make_pass_lower_vector): ...new function.
10156 (pass_lower_vector_ssa): Replace declaration with that of...
10157 (make_pass_lower_vector_ssa): ...new function.
10158 (pass_lower_omp): Replace declaration with that of...
10159 (make_pass_lower_omp): ...new function.
10160 (pass_diagnose_omp_blocks): Replace declaration with that of...
10161 (make_pass_diagnose_omp_blocks): ...new function.
10162 (pass_expand_omp): Replace declaration with that of...
10163 (make_pass_expand_omp): ...new function.
10164 (pass_expand_omp_ssa): Replace declaration with that of...
10165 (make_pass_expand_omp_ssa): ...new function.
10166 (pass_object_sizes): Replace declaration with that of...
10167 (make_pass_object_sizes): ...new function.
10168 (pass_strlen): Replace declaration with that of...
10169 (make_pass_strlen): ...new function.
10170 (pass_fold_builtins): Replace declaration with that of...
10171 (make_pass_fold_builtins): ...new function.
10172 (pass_stdarg): Replace declaration with that of...
10173 (make_pass_stdarg): ...new function.
10174 (pass_early_warn_uninitialized): Replace declaration with that of...
10175 (make_pass_early_warn_uninitialized): ...new function.
10176 (pass_late_warn_uninitialized): Replace declaration with that of...
10177 (make_pass_late_warn_uninitialized): ...new function.
10178 (pass_cse_reciprocals): Replace declaration with that of...
10179 (make_pass_cse_reciprocals): ...new function.
10180 (pass_cse_sincos): Replace declaration with that of...
10181 (make_pass_cse_sincos): ...new function.
10182 (pass_optimize_bswap): Replace declaration with that of...
10183 (make_pass_optimize_bswap): ...new function.
10184 (pass_optimize_widening_mul): Replace declaration with that of...
10185 (make_pass_optimize_widening_mul): ...new function.
10186 (pass_warn_function_return): Replace declaration with that of...
10187 (make_pass_warn_function_return): ...new function.
10188 (pass_warn_function_noreturn): Replace declaration with that of...
10189 (make_pass_warn_function_noreturn): ...new function.
10190 (pass_cselim): Replace declaration with that of...
10191 (make_pass_cselim): ...new function.
10192 (pass_phiopt): Replace declaration with that of...
10193 (make_pass_phiopt): ...new function.
10194 (pass_forwprop): Replace declaration with that of...
10195 (make_pass_forwprop): ...new function.
10196 (pass_phiprop): Replace declaration with that of...
10197 (make_pass_phiprop): ...new function.
10198 (pass_tree_ifcombine): Replace declaration with that of...
10199 (make_pass_tree_ifcombine): ...new function.
10200 (pass_dse): Replace declaration with that of...
10201 (make_pass_dse): ...new function.
10202 (pass_nrv): Replace declaration with that of...
10203 (make_pass_nrv): ...new function.
10204 (pass_rename_ssa_copies): Replace declaration with that of...
10205 (make_pass_rename_ssa_copies): ...new function.
10206 (pass_sink_code): Replace declaration with that of...
10207 (make_pass_sink_code): ...new function.
10208 (pass_fre): Replace declaration with that of...
10209 (make_pass_fre): ...new function.
10210 (pass_check_data_deps): Replace declaration with that of...
10211 (make_pass_check_data_deps): ...new function.
10212 (pass_copy_prop): Replace declaration with that of...
10213 (make_pass_copy_prop): ...new function.
10214 (pass_vrp): Replace declaration with that of...
10215 (make_pass_vrp): ...new function.
10216 (pass_uncprop): Replace declaration with that of...
10217 (make_pass_uncprop): ...new function.
10218 (pass_return_slot): Replace declaration with that of...
10219 (make_pass_return_slot): ...new function.
10220 (pass_reassoc): Replace declaration with that of...
10221 (make_pass_reassoc): ...new function.
10222 (pass_rebuild_cgraph_edges): Replace declaration with that of...
10223 (make_pass_rebuild_cgraph_edges): ...new function.
10224 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
10225 (make_pass_remove_cgraph_callee_edges): ...new function.
10226 (pass_build_cgraph_edges): Replace declaration with that of...
10227 (make_pass_build_cgraph_edges): ...new function.
10228 (pass_local_pure_const): Replace declaration with that of...
10229 (make_pass_local_pure_const): ...new function.
10230 (pass_tracer): Replace declaration with that of...
10231 (make_pass_tracer): ...new function.
10232 (pass_warn_unused_result): Replace declaration with that of...
10233 (make_pass_warn_unused_result): ...new function.
10234 (pass_diagnose_tm_blocks): Replace declaration with that of...
10235 (make_pass_diagnose_tm_blocks): ...new function.
10236 (pass_lower_tm): Replace declaration with that of...
10237 (make_pass_lower_tm): ...new function.
10238 (pass_tm_init): Replace declaration with that of...
10239 (make_pass_tm_init): ...new function.
10240 (pass_tm_mark): Replace declaration with that of...
10241 (make_pass_tm_mark): ...new function.
10242 (pass_tm_memopt): Replace declaration with that of...
10243 (make_pass_tm_memopt): ...new function.
10244 (pass_tm_edges): Replace declaration with that of...
10245 (make_pass_tm_edges): ...new function.
10246 (pass_split_functions): Replace declaration with that of...
10247 (make_pass_split_functions): ...new function.
10248 (pass_feedback_split_functions): Replace declaration with that of...
10249 (make_pass_feedback_split_functions): ...new function.
10250 (pass_strength_reduction): Replace declaration with that of...
10251 (make_pass_strength_reduction): ...new function.
10252 (pass_ipa_lower_emutls): Replace declaration with that of...
10253 (make_pass_ipa_lower_emutls): ...new function.
10254 (pass_ipa_function_and_variable_visibility): Replace declaration with
10255 that of...
10256 (make_pass_ipa_function_and_variable_visibility): ...new function.
10257 (pass_ipa_tree_profile): Replace declaration with that of...
10258 (make_pass_ipa_tree_profile): ...new function.
10259 (pass_early_local_passes): Replace declaration with that of...
10260 (make_pass_early_local_passes): ...new function.
10261 (pass_ipa_whole_program_visibility): Replace declaration with that
10262 of...
10263 (make_pass_ipa_whole_program_visibility): ...new function.
10264 (pass_ipa_lto_gimple_out): Replace declaration with that of...
10265 (make_pass_ipa_lto_gimple_out): ...new function.
10266 (pass_ipa_increase_alignment): Replace declaration with that of...
10267 (make_pass_ipa_increase_alignment): ...new function.
10268 (pass_ipa_inline): Replace declaration with that of...
10269 (make_pass_ipa_inline): ...new function.
10270 (pass_ipa_free_lang_data): Replace declaration with that of...
10271 (make_pass_ipa_free_lang_data): ...new function.
10272 (pass_ipa_free_inline_summary): Replace declaration with that of...
10273 (make_pass_ipa_free_inline_summary): ...new function.
10274 (pass_ipa_cp): Replace declaration with that of...
10275 (make_pass_ipa_cp): ...new function.
10276 (pass_ipa_reference): Replace declaration with that of...
10277 (make_pass_ipa_reference): ...new function.
10278 (pass_ipa_pure_const): Replace declaration with that of...
10279 (make_pass_ipa_pure_const): ...new function.
10280 (pass_ipa_pta): Replace declaration with that of...
10281 (make_pass_ipa_pta): ...new function.
10282 (pass_ipa_lto_finish_out): Replace declaration with that of...
10283 (make_pass_ipa_lto_finish_out): ...new function.
10284 (pass_ipa_tm): Replace declaration with that of...
10285 (make_pass_ipa_tm): ...new function.
10286 (pass_ipa_profile): Replace declaration with that of...
10287 (make_pass_ipa_profile): ...new function.
10288 (pass_ipa_cdtor_merge): Replace declaration with that of...
10289 (make_pass_ipa_cdtor_merge): ...new function.
10290 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
10291 of...
10292 (make_pass_cleanup_cfg_post_optimizing): ...new function.
10293 (pass_init_datastructures): Replace declaration with that of...
10294 (make_pass_init_datastructures): ...new function.
10295 (pass_fixup_cfg): Replace declaration with that of...
10296 (make_pass_fixup_cfg): ...new function.
10297 (pass_expand): Replace declaration with that of...
10298 (make_pass_expand): ...new function.
10299 (pass_instantiate_virtual_regs): Replace declaration with that of...
10300 (make_pass_instantiate_virtual_regs): ...new function.
10301 (pass_rtl_fwprop): Replace declaration with that of...
10302 (make_pass_rtl_fwprop): ...new function.
10303 (pass_rtl_fwprop_addr): Replace declaration with that of...
10304 (make_pass_rtl_fwprop_addr): ...new function.
10305 (pass_jump): Replace declaration with that of...
10306 (make_pass_jump): ...new function.
10307 (pass_jump2): Replace declaration with that of...
10308 (make_pass_jump2): ...new function.
10309 (pass_lower_subreg): Replace declaration with that of...
10310 (make_pass_lower_subreg): ...new function.
10311 (pass_cse): Replace declaration with that of...
10312 (make_pass_cse): ...new function.
10313 (pass_fast_rtl_dce): Replace declaration with that of...
10314 (make_pass_fast_rtl_dce): ...new function.
10315 (pass_ud_rtl_dce): Replace declaration with that of...
10316 (make_pass_ud_rtl_dce): ...new function.
10317 (pass_rtl_dce): Replace declaration with that of...
10318 (make_pass_rtl_dce): ...new function.
10319 (pass_rtl_dse1): Replace declaration with that of...
10320 (make_pass_rtl_dse1): ...new function.
10321 (pass_rtl_dse2): Replace declaration with that of...
10322 (make_pass_rtl_dse2): ...new function.
10323 (pass_rtl_dse3): Replace declaration with that of...
10324 (make_pass_rtl_dse3): ...new function.
10325 (pass_rtl_cprop): Replace declaration with that of...
10326 (make_pass_rtl_cprop): ...new function.
10327 (pass_rtl_pre): Replace declaration with that of...
10328 (make_pass_rtl_pre): ...new function.
10329 (pass_rtl_hoist): Replace declaration with that of...
10330 (make_pass_rtl_hoist): ...new function.
10331 (pass_rtl_store_motion): Replace declaration with that of...
10332 (make_pass_rtl_store_motion): ...new function.
10333 (pass_cse_after_global_opts): Replace declaration with that of...
10334 (make_pass_cse_after_global_opts): ...new function.
10335 (pass_rtl_ifcvt): Replace declaration with that of...
10336 (make_pass_rtl_ifcvt): ...new function.
10337 (pass_into_cfg_layout_mode): Replace declaration with that of...
10338 (make_pass_into_cfg_layout_mode): ...new function.
10339 (pass_outof_cfg_layout_mode): Replace declaration with that of...
10340 (make_pass_outof_cfg_layout_mode): ...new function.
10341 (pass_loop2): Replace declaration with that of...
10342 (make_pass_loop2): ...new function.
10343 (pass_rtl_loop_init): Replace declaration with that of...
10344 (make_pass_rtl_loop_init): ...new function.
10345 (pass_rtl_move_loop_invariants): Replace declaration with that of...
10346 (make_pass_rtl_move_loop_invariants): ...new function.
10347 (pass_rtl_unswitch): Replace declaration with that of...
10348 (make_pass_rtl_unswitch): ...new function.
10349 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
10350 (make_pass_rtl_unroll_and_peel_loops): ...new function.
10351 (pass_rtl_doloop): Replace declaration with that of...
10352 (make_pass_rtl_doloop): ...new function.
10353 (pass_rtl_loop_done): Replace declaration with that of...
10354 (make_pass_rtl_loop_done): ...new function.
10355 (pass_web): Replace declaration with that of...
10356 (make_pass_web): ...new function.
10357 (pass_cse2): Replace declaration with that of...
10358 (make_pass_cse2): ...new function.
10359 (pass_df_initialize_opt): Replace declaration with that of...
10360 (make_pass_df_initialize_opt): ...new function.
10361 (pass_df_initialize_no_opt): Replace declaration with that of...
10362 (make_pass_df_initialize_no_opt): ...new function.
10363 (pass_reginfo_init): Replace declaration with that of...
10364 (make_pass_reginfo_init): ...new function.
10365 (pass_inc_dec): Replace declaration with that of...
10366 (make_pass_inc_dec): ...new function.
10367 (pass_stack_ptr_mod): Replace declaration with that of...
10368 (make_pass_stack_ptr_mod): ...new function.
10369 (pass_initialize_regs): Replace declaration with that of...
10370 (make_pass_initialize_regs): ...new function.
10371 (pass_combine): Replace declaration with that of...
10372 (make_pass_combine): ...new function.
10373 (pass_if_after_combine): Replace declaration with that of...
10374 (make_pass_if_after_combine): ...new function.
10375 (pass_ree): Replace declaration with that of...
10376 (make_pass_ree): ...new function.
10377 (pass_partition_blocks): Replace declaration with that of...
10378 (make_pass_partition_blocks): ...new function.
10379 (pass_match_asm_constraints): Replace declaration with that of...
10380 (make_pass_match_asm_constraints): ...new function.
10381 (pass_regmove): Replace declaration with that of...
10382 (make_pass_regmove): ...new function.
10383 (pass_split_all_insns): Replace declaration with that of...
10384 (make_pass_split_all_insns): ...new function.
10385 (pass_fast_rtl_byte_dce): Replace declaration with that of...
10386 (make_pass_fast_rtl_byte_dce): ...new function.
10387 (pass_lower_subreg2): Replace declaration with that of...
10388 (make_pass_lower_subreg2): ...new function.
10389 (pass_mode_switching): Replace declaration with that of...
10390 (make_pass_mode_switching): ...new function.
10391 (pass_sms): Replace declaration with that of...
10392 (make_pass_sms): ...new function.
10393 (pass_sched): Replace declaration with that of...
10394 (make_pass_sched): ...new function.
10395 (pass_ira): Replace declaration with that of...
10396 (make_pass_ira): ...new function.
10397 (pass_reload): Replace declaration with that of...
10398 (make_pass_reload): ...new function.
10399 (pass_clean_state): Replace declaration with that of...
10400 (make_pass_clean_state): ...new function.
10401 (pass_branch_prob): Replace declaration with that of...
10402 (make_pass_branch_prob): ...new function.
10403 (pass_value_profile_transformations): Replace declaration with that
10404 of...
10405 (make_pass_value_profile_transformations): ...new function.
10406 (pass_postreload_cse): Replace declaration with that of...
10407 (make_pass_postreload_cse): ...new function.
10408 (pass_gcse2): Replace declaration with that of...
10409 (make_pass_gcse2): ...new function.
10410 (pass_split_after_reload): Replace declaration with that of...
10411 (make_pass_split_after_reload): ...new function.
10412 (pass_branch_target_load_optimize1): Replace declaration with that
10413 of...
10414 (make_pass_branch_target_load_optimize1): ...new function.
10415 (pass_thread_prologue_and_epilogue): Replace declaration with that
10416 of...
10417 (make_pass_thread_prologue_and_epilogue): ...new function.
10418 (pass_stack_adjustments): Replace declaration with that of...
10419 (make_pass_stack_adjustments): ...new function.
10420 (pass_peephole2): Replace declaration with that of...
10421 (make_pass_peephole2): ...new function.
10422 (pass_if_after_reload): Replace declaration with that of...
10423 (make_pass_if_after_reload): ...new function.
10424 (pass_regrename): Replace declaration with that of...
10425 (make_pass_regrename): ...new function.
10426 (pass_cprop_hardreg): Replace declaration with that of...
10427 (make_pass_cprop_hardreg): ...new function.
10428 (pass_reorder_blocks): Replace declaration with that of...
10429 (make_pass_reorder_blocks): ...new function.
10430 (pass_branch_target_load_optimize2): Replace declaration with that
10431 of...
10432 (make_pass_branch_target_load_optimize2): ...new function.
10433 (pass_leaf_regs): Replace declaration with that of...
10434 (make_pass_leaf_regs): ...new function.
10435 (pass_split_before_sched2): Replace declaration with that of...
10436 (make_pass_split_before_sched2): ...new function.
10437 (pass_compare_elim_after_reload): Replace declaration with that of...
10438 (make_pass_compare_elim_after_reload): ...new function.
10439 (pass_sched2): Replace declaration with that of...
10440 (make_pass_sched2): ...new function.
10441 (pass_stack_regs): Replace declaration with that of...
10442 (make_pass_stack_regs): ...new function.
10443 (pass_stack_regs_run): Replace declaration with that of...
10444 (make_pass_stack_regs_run): ...new function.
10445 (pass_df_finish): Replace declaration with that of...
10446 (make_pass_df_finish): ...new function.
10447 (pass_compute_alignments): Replace declaration with that of...
10448 (make_pass_compute_alignments): ...new function.
10449 (pass_duplicate_computed_gotos): Replace declaration with that of...
10450 (make_pass_duplicate_computed_gotos): ...new function.
10451 (pass_variable_tracking): Replace declaration with that of...
10452 (make_pass_variable_tracking): ...new function.
10453 (pass_free_cfg): Replace declaration with that of...
10454 (make_pass_free_cfg): ...new function.
10455 (pass_machine_reorg): Replace declaration with that of...
10456 (make_pass_machine_reorg): ...new function.
10457 (pass_cleanup_barriers): Replace declaration with that of...
10458 (make_pass_cleanup_barriers): ...new function.
10459 (pass_delay_slots): Replace declaration with that of...
10460 (make_pass_delay_slots): ...new function.
10461 (pass_split_for_shorten_branches): Replace declaration with that of...
10462 (make_pass_split_for_shorten_branches): ...new function.
10463 (pass_split_before_regstack): Replace declaration with that of...
10464 (make_pass_split_before_regstack): ...new function.
10465 (pass_convert_to_eh_region_ranges): Replace declaration with that
10466 of...
10467 (make_pass_convert_to_eh_region_ranges): ...new function.
10468 (pass_shorten_branches): Replace declaration with that of...
10469 (make_pass_shorten_branches): ...new function.
10470 (pass_set_nothrow_function_flags): Replace declaration with that of...
10471 (make_pass_set_nothrow_function_flags): ...new function.
10472 (pass_dwarf2_frame): Replace declaration with that of...
10473 (make_pass_dwarf2_frame): ...new function.
10474 (pass_final): Replace declaration with that of...
10475 (make_pass_final): ...new function.
10476 (pass_rtl_seqabstr): Replace declaration with that of...
10477 (make_pass_rtl_seqabstr): ...new function.
10478 (pass_release_ssa_names): Replace declaration with that of...
10479 (make_pass_release_ssa_names): ...new function.
10480 (pass_early_inline): Replace declaration with that of...
10481 (make_pass_early_inline): ...new function.
10482 (pass_inline_parameters): Replace declaration with that of...
10483 (make_pass_inline_parameters): ...new function.
10484 (pass_update_address_taken): Replace declaration with that of...
10485 (make_pass_update_address_taken): ...new function.
10486 (pass_convert_switch): Replace declaration with that of...
10487 (make_pass_convert_switch): ...new function.
10488 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
10489 to a subclass of simple_ipa_opt_pass along with...
10490 (pass_data_ipa_tree_profile): ...new pass_data instance and...
10491 (make_pass_ipa_tree_profile): ...new function.
10492 * tree-sra.c (pass_sra_early): Convert from a global struct to a
10493 subclass of gimple_opt_pass along with...
10494 (pass_data_sra_early): ...new pass_data instance and...
10495 (make_pass_sra_early): ...new function.
10496 (pass_sra): Convert from a global struct to a subclass of
10497 gimple_opt_pass along with...
10498 (pass_data_sra): ...new pass_data instance and...
10499 (make_pass_sra): ...new function.
10500 (pass_early_ipa_sra): Convert from a global struct to a subclass of
10501 gimple_opt_pass along with...
10502 (pass_data_early_ipa_sra): ...new pass_data instance and...
10503 (make_pass_early_ipa_sra): ...new function.
10504 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
10505 subclass of gimple_opt_pass along with...
10506 (pass_data_ccp): ...new pass_data instance and...
10507 (make_pass_ccp): ...new function.
10508 (pass_fold_builtins): Convert from a global struct to a subclass of
10509 gimple_opt_pass along with...
10510 (pass_data_fold_builtins): ...new pass_data instance and...
10511 (make_pass_fold_builtins): ...new function.
10512 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
10513 subclass of gimple_opt_pass along with...
10514 (pass_data_copy_prop): ...new pass_data instance and...
10515 (make_pass_copy_prop): ...new function.
10516 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
10517 global struct to a subclass of gimple_opt_pass along with...
10518 (pass_data_rename_ssa_copies): ...new pass_data instance and...
10519 (make_pass_rename_ssa_copies): ...new function.
10520 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
10521 subclass of gimple_opt_pass along with...
10522 (pass_data_dce): ...new pass_data instance and...
10523 (make_pass_dce): ...new function.
10524 (pass_dce_loop): Convert from a global struct to a subclass of
10525 gimple_opt_pass along with...
10526 (pass_data_dce_loop): ...new pass_data instance and...
10527 (make_pass_dce_loop): ...new function.
10528 (pass_cd_dce): Convert from a global struct to a subclass of
10529 gimple_opt_pass along with...
10530 (pass_data_cd_dce): ...new pass_data instance and...
10531 (make_pass_cd_dce): ...new function.
10532 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
10533 subclass of gimple_opt_pass along with...
10534 (pass_data_dominator): ...new pass_data instance and...
10535 (make_pass_dominator): ...new function.
10536 (pass_phi_only_cprop): Convert from a global struct to a subclass of
10537 gimple_opt_pass along with...
10538 (pass_data_phi_only_cprop): ...new pass_data instance and...
10539 (make_pass_phi_only_cprop): ...new function.
10540 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
10541 subclass of gimple_opt_pass along with...
10542 (pass_data_dse): ...new pass_data instance and...
10543 (make_pass_dse): ...new function.
10544 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
10545 a subclass of gimple_opt_pass along with...
10546 (pass_data_forwprop): ...new pass_data instance and...
10547 (make_pass_forwprop): ...new function.
10548 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
10549 struct to a subclass of gimple_opt_pass along with...
10550 (pass_data_tree_ifcombine): ...new pass_data instance and...
10551 (make_pass_tree_ifcombine): ...new function.
10552 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
10553 subclass of gimple_opt_pass along with...
10554 (pass_data_ch): ...new pass_data instance and...
10555 (make_pass_ch): ...new function.
10556 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
10557 subclass of gimple_opt_pass along with...
10558 (pass_data_tree_loop): ...new pass_data instance and...
10559 (make_pass_tree_loop): ...new function.
10560 (pass_tree_loop_init): Convert from a global struct to a subclass of
10561 gimple_opt_pass along with...
10562 (pass_data_tree_loop_init): ...new pass_data instance and...
10563 (make_pass_tree_loop_init): ...new function.
10564 (pass_lim): Convert from a global struct to a subclass of
10565 gimple_opt_pass along with...
10566 (pass_data_lim): ...new pass_data instance and...
10567 (make_pass_lim): ...new function.
10568 (pass_tree_unswitch): Convert from a global struct to a subclass of
10569 gimple_opt_pass along with...
10570 (pass_data_tree_unswitch): ...new pass_data instance and...
10571 (make_pass_tree_unswitch): ...new function.
10572 (pass_predcom): Convert from a global struct to a subclass of
10573 gimple_opt_pass along with...
10574 (pass_data_predcom): ...new pass_data instance and...
10575 (make_pass_predcom): ...new function.
10576 (pass_vectorize): Convert from a global struct to a subclass of
10577 gimple_opt_pass along with...
10578 (pass_data_vectorize): ...new pass_data instance and...
10579 (make_pass_vectorize): ...new function.
10580 (pass_graphite): Convert from a global struct to a subclass of
10581 gimple_opt_pass along with...
10582 (pass_data_graphite): ...new pass_data instance and...
10583 (make_pass_graphite): ...new function.
10584 (pass_graphite_transforms): Convert from a global struct to a subclass
10585 of gimple_opt_pass along with...
10586 (pass_data_graphite_transforms): ...new pass_data instance and...
10587 (make_pass_graphite_transforms): ...new function.
10588 (pass_check_data_deps): Convert from a global struct to a subclass of
10589 gimple_opt_pass along with...
10590 (pass_data_check_data_deps): ...new pass_data instance and...
10591 (make_pass_check_data_deps): ...new function.
10592 (pass_iv_canon): Convert from a global struct to a subclass of
10593 gimple_opt_pass along with...
10594 (pass_data_iv_canon): ...new pass_data instance and...
10595 (make_pass_iv_canon): ...new function.
10596 (pass_scev_cprop): Convert from a global struct to a subclass of
10597 gimple_opt_pass along with...
10598 (pass_data_scev_cprop): ...new pass_data instance and...
10599 (make_pass_scev_cprop): ...new function.
10600 (pass_record_bounds): Convert from a global struct to a subclass of
10601 gimple_opt_pass along with...
10602 (pass_data_record_bounds): ...new pass_data instance and...
10603 (make_pass_record_bounds): ...new function.
10604 (pass_complete_unroll): Convert from a global struct to a subclass of
10605 gimple_opt_pass along with...
10606 (pass_data_complete_unroll): ...new pass_data instance and...
10607 (make_pass_complete_unroll): ...new function.
10608 (pass_complete_unrolli): Convert from a global struct to a subclass of
10609 gimple_opt_pass along with...
10610 (pass_data_complete_unrolli): ...new pass_data instance and...
10611 (make_pass_complete_unrolli): ...new function.
10612 (pass_parallelize_loops): Convert from a global struct to a subclass
10613 of gimple_opt_pass along with...
10614 (pass_data_parallelize_loops): ...new pass_data instance and...
10615 (make_pass_parallelize_loops): ...new function.
10616 (pass_loop_prefetch): Convert from a global struct to a subclass of
10617 gimple_opt_pass along with...
10618 (pass_data_loop_prefetch): ...new pass_data instance and...
10619 (make_pass_loop_prefetch): ...new function.
10620 (pass_iv_optimize): Convert from a global struct to a subclass of
10621 gimple_opt_pass along with...
10622 (pass_data_iv_optimize): ...new pass_data instance and...
10623 (make_pass_iv_optimize): ...new function.
10624 (pass_tree_loop_done): Convert from a global struct to a subclass of
10625 gimple_opt_pass along with...
10626 (pass_data_tree_loop_done): ...new pass_data instance and...
10627 (make_pass_tree_loop_done): ...new function.
10628 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
10629 struct to a subclass of gimple_opt_pass along with...
10630 (pass_data_cse_reciprocals): ...new pass_data instance and...
10631 (make_pass_cse_reciprocals): ...new function.
10632 (pass_cse_sincos): Convert from a global struct to a subclass of
10633 gimple_opt_pass along with...
10634 (pass_data_cse_sincos): ...new pass_data instance and...
10635 (make_pass_cse_sincos): ...new function.
10636 (pass_optimize_bswap): Convert from a global struct to a subclass of
10637 gimple_opt_pass along with...
10638 (pass_data_optimize_bswap): ...new pass_data instance and...
10639 (make_pass_optimize_bswap): ...new function.
10640 (pass_optimize_widening_mul): Convert from a global struct to a
10641 subclass of gimple_opt_pass along with...
10642 (pass_data_optimize_widening_mul): ...new pass_data instance and...
10643 (make_pass_optimize_widening_mul): ...new function.
10644 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
10645 subclass of gimple_opt_pass along with...
10646 (pass_data_phiopt): ...new pass_data instance and...
10647 (make_pass_phiopt): ...new function.
10648 (pass_cselim): Convert from a global struct to a subclass of
10649 gimple_opt_pass along with...
10650 (pass_data_cselim): ...new pass_data instance and...
10651 (make_pass_cselim): ...new function.
10652 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
10653 subclass of gimple_opt_pass along with...
10654 (pass_data_phiprop): ...new pass_data instance and...
10655 (make_pass_phiprop): ...new function.
10656 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
10657 subclass of gimple_opt_pass along with...
10658 (pass_data_pre): ...new pass_data instance and...
10659 (make_pass_pre): ...new function.
10660 (pass_fre): Convert from a global struct to a subclass of
10661 gimple_opt_pass along with...
10662 (pass_data_fre): ...new pass_data instance and...
10663 (make_pass_fre): ...new function.
10664 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
10665 subclass of gimple_opt_pass along with...
10666 (pass_data_reassoc): ...new pass_data instance and...
10667 (make_pass_reassoc): ...new function.
10668 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
10669 subclass of gimple_opt_pass along with...
10670 (pass_data_sink_code): ...new pass_data instance and...
10671 (make_pass_sink_code): ...new function.
10672 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
10673 subclass of gimple_opt_pass along with...
10674 (pass_data_strlen): ...new pass_data instance and...
10675 (make_pass_strlen): ...new function.
10676 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
10677 struct to a subclass of gimple_opt_pass along with...
10678 (pass_data_build_alias): ...new pass_data instance and...
10679 (make_pass_build_alias): ...new function.
10680 (pass_build_ealias): Convert from a global struct to a subclass of
10681 gimple_opt_pass along with...
10682 (pass_data_build_ealias): ...new pass_data instance and...
10683 (make_pass_build_ealias): ...new function.
10684 (pass_ipa_pta): Convert from a global struct to a subclass of
10685 simple_ipa_opt_pass along with...
10686 (pass_data_ipa_pta): ...new pass_data instance and...
10687 (make_pass_ipa_pta): ...new function.
10688 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
10689 subclass of gimple_opt_pass along with...
10690 (pass_data_uncprop): ...new pass_data instance and...
10691 (make_pass_uncprop): ...new function.
10692 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
10693 global struct to a subclass of gimple_opt_pass along with...
10694 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
10695 (make_pass_late_warn_uninitialized): ...new function.
10696 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
10697 to a subclass of gimple_opt_pass along with...
10698 (pass_data_init_datastructures): ...new pass_data instance and...
10699 (make_pass_init_datastructures): ...new function.
10700 (pass_early_warn_uninitialized): Convert from a global struct to a
10701 subclass of gimple_opt_pass along with...
10702 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
10703 (make_pass_early_warn_uninitialized): ...new function.
10704 (pass_update_address_taken): Convert from a global struct to a
10705 subclass of gimple_opt_pass along with...
10706 (pass_data_update_address_taken): ...new pass_data instance and...
10707 (make_pass_update_address_taken): ...new function.
10708 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
10709 struct to a subclass of gimple_opt_pass along with...
10710 (pass_data_release_ssa_names): ...new pass_data instance and...
10711 (make_pass_release_ssa_names): ...new function.
10712 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
10713 subclass of gimple_opt_pass along with...
10714 (pass_data_stdarg): ...new pass_data instance and...
10715 (make_pass_stdarg): ...new function.
10716 * tree-switch-conversion.c (pass_convert_switch): Convert from a
10717 global struct to a subclass of gimple_opt_pass along with...
10718 (pass_data_convert_switch): ...new pass_data instance and...
10719 (make_pass_convert_switch): ...new function.
10720 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
10721 to a subclass of gimple_opt_pass along with...
10722 (pass_data_tail_recursion): ...new pass_data instance and...
10723 (make_pass_tail_recursion): ...new function.
10724 (pass_tail_calls): Convert from a global struct to a subclass of
10725 gimple_opt_pass along with...
10726 (pass_data_tail_calls): ...new pass_data instance and...
10727 (make_pass_tail_calls): ...new function.
10728 * tree-vect-generic.c (pass_lower_vector): Convert from a global
10729 struct to a subclass of gimple_opt_pass along with...
10730 (pass_data_lower_vector): ...new pass_data instance and...
10731 (make_pass_lower_vector): ...new function.
10732 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
10733 gimple_opt_pass along with...
10734 (pass_data_lower_vector_ssa): ...new pass_data instance and...
10735 (make_pass_lower_vector_ssa): ...new function.
10736 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
10737 to a subclass of gimple_opt_pass along with...
10738 (pass_data_slp_vectorize): ...new pass_data instance and...
10739 (make_pass_slp_vectorize): ...new function.
10740 (pass_ipa_increase_alignment): Convert from a global struct to a
10741 subclass of simple_ipa_opt_pass along with...
10742 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
10743 (make_pass_ipa_increase_alignment): ...new function.
10744 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
10745 gimple_opt_pass along with...
10746 (pass_data_vrp): ...new pass_data instance and...
10747 (make_pass_vrp): ...new function.
10748 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
10749 subclass of simple_ipa_opt_pass along with...
10750 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
10751 (make_pass_ipa_free_lang_data): ...new function.
10752 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
10753 gimple_opt_pass along with...
10754 (pass_data_tsan): ...new pass_data instance and...
10755 (make_pass_tsan): ...new function.
10756 (pass_tsan_O0): Convert from a global struct to a subclass of
10757 gimple_opt_pass along with...
10758 (pass_data_tsan_O0): ...new pass_data instance and...
10759 (make_pass_tsan_O0): ...new function.
10760 * var-tracking.c (pass_variable_tracking): Convert from a global
10761 struct to a subclass of rtl_opt_pass along with...
10762 (pass_data_variable_tracking): ...new pass_data instance and...
10763 (make_pass_variable_tracking): ...new function.
10764 * web.c (pass_web): Convert from a global struct to a subclass of
10765 rtl_opt_pass along with...
10766 (pass_data_web): ...new pass_data instance and...
10767 (make_pass_web): ...new function.
10768 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
10769 declaration with that of...
10770 (make_pass_mode_switch_use): ...new function.
10771 (pass_resolve_sw_modes): Replace declaration with that of...
10772 (make_pass_resolve_sw_modes): ...new function.
10773 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
10774 from a global struct to a subclass of rtl_opt_pass along with...
10775 (pass_data_mode_switch_use): ...new pass_data instance and...
10776 (make_pass_mode_switch_use): ...new function.
10777 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
10778 from a global struct to a subclass of rtl_opt_pass along with...
10779 (pass_data_resolve_sw_modes): ...new pass_data instance and...
10780 (make_pass_resolve_sw_modes): ...new function.
10781 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
10782 struct to a subclass of rtl_opt_pass along with...
10783 (pass_data_insert_vzeroupper): ...new pass_data instance and...
10784 (make_pass_insert_vzeroupper): ...new function.
10785 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
10786 global struct to a subclass of rtl_opt_pass along with...
10787 (pass_data_work_around_errata): ...new pass_data instance and...
10788 (make_pass_work_around_errata): ...new function.
10789 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
10790 struct to a subclass of rtl_opt_pass along with...
10791 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
10792 (make_pass_mips_machine_reorg2): ...new function.
10793
6a389ed5
DM
107942013-08-05 David Malcolm <dmalcolm@redhat.com>
10795
10796 * passes.c (pass_manager::operator new): New.
10797
f7695dbf
DM
107982013-08-05 David Malcolm <dmalcolm@redhat.com>
10799
10800 Handwritten part of conversion of passes to C++ classes.
10801
10802 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
10803 (toplev.o): Add dep on PASS_MANAGER_H.
10804 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
10805 of early local pases to reflect this moving from a global to a
10806 member of gcc::pass_manager.
10807 (cgraph_add_new_function): Likewise.
10808 * lto-cgraph.c (lto_output_node): Update for conversion of
10809 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
10810 * passes.c (opt_pass::clone): New.
10811 (opt_pass::gate): New.
10812 (opt_pass::execute): New.
10813 (opt_pass::opt_pass): New.
10814 (pass_manager::execute_early_local_passes): New.
10815 (pass_manager::execute_pass_mode_switching): new.
10816 (finish_optimization_passes): Convert to...
10817 (pass_manager::finish_optimization_passes): ...this.
10818 (finish_optimization_passes): Update for conversion of passes to
10819 C++ classes.
10820 (register_dump_files_1): Use has_gate since we cannot portably
10821 check a vtable entry against NULL.
10822 (dump_one_pass): Likewise.
10823 (ipa_write_summaries_2): Likewise.
10824 (ipa_write_optimization_summaries_1): Likewise.
10825 (ipa_read_summaries_1): Likewise.
10826 (ipa_read_optimization_summaries_1): Likewise.
10827 (execute_ipa_stmt_fixups): Likewise.
10828 (pass_manager::pass_manager): Rewrite pass-creation, invoking
10829 pass-creation functions rather than wiring up globals, and
10830 storing the results in fields of pass_manager generated using
10831 pass-instances.def.
10832 (pass_manager::dump_profile_report): Update for conversion of
10833 passes to C++ classes.
10834 (pass_manager::execute_ipa_summary_passes): Likewise.
10835 (execute_one_ipa_transform_pass): Likewise.
10836 (execute_one_pass): Use has_gate and has_execute since we cannot
10837 portably check a vtable entry against NULL.
10838 * pass_manager.h (pass_manager::finish_optimization_passes): New.
10839 (pass_manager): Use pass-instances.def to add fields for the
10840 various pass instances.
10841 * toplev.c (finalize): Update for move of
10842 finish_optimization_passes to a method of gcc::pass_manager.
10843 * toplev.h (finish_optimization_passes): Move to method of class
10844 pass_manager.
10845 * tree-pass.h (struct pass_data): New.
03b0ee0a 10846 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
10847 (opt_pass::gate): Convert to virtual function.
10848 (opt_pass::~opt_pass): New.
10849 (opt_pass::clone): New.
10850 (opt_pass::execute): Convert to virtual function.
10851 (opt_pass::opt_pass): New.
10852 (opt_pass::ctxt_): new.
10853 (gimple_opt_pass): Convert to subclass of opt_pass.
10854 (gimple_opt_pass::gimple_opt_pass): New.
10855 (rtl_opt_pass): Convert to subclass of opt_pass.
10856 (rtl_opt_pass::rtl_opt_pass): New.
10857 (ipa_opt_pass_d): Convert to subclass of opt_pass.
10858 (ipa_opt_pass_d::ipa_opt_pass_d): New.
10859 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
10860 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
10861 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
10862 invocation of pass_mode_switching to reflect this moving from a
10863 global to a member of gcc::pass_manager.
10864 (ix86_option_override): Rework how pass_insert_vzeroupper is
10865 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 10866 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 10867
d0b2f831
RE
108682013-08-05 Richard Earnshaw <rearnsha@arm.com>
10869
10870 PR rtl-optimization/57708
10871 * recog.c (peep2_find_free_register): Validate all regs in a
10872 multi-reg mode.
10873
51a5c0c2
JH
108742013-08-05 Jan Hubicka <jh@suse.cz>
10875
10876 PR lto/57602
03b0ee0a
UB
10877 * cgraph.c (verify_cgraph_node): Accept local flags from other
10878 partitions.
51a5c0c2
JH
10879 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
10880 (function_and_variable_visibility): Likewise.
10881 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
10882
65f0a120
GDR
108832013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10884
10885 * graph.c (init_graph_slim_pretty_print): Remove.
10886 (print_graph_cfg): Do not call it. Use local pretty printer.
10887 (start_graph_dump): Likewise.
10888
b3f80694
GDR
108892013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10890
10891 * gimple-pretty-print.c (buffer): Remove.
10892 (initialized): Likewise.
10893 (maybe_init_pretty_print): Likewise.
10894 (print_gimple_stmt): Do not call it. Use non-static local
10895 pretty_printer variable.
10896 (print_gimple_expr): Likewise.
10897 (print_gimple_seq): Likewise.
10898 (gimple_dump_bb): Likewise.
10899
11a877b3
GDR
109002013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10901
10902 * asan.c (asan_pp): Remove.
10903 (asan_pp_initialized): Likewise.
10904 (asan_pp_initialize): Likewise.
10905 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
10906 (asan_emit_stack_protection): Tidy. Use local pretty printer.
10907 (asan_add_global): Likewise.
10908
b066401f
GDR
109092013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
10910
10911 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
10912 * diagnostic.h (diagnostic_flush_buffer): Adjust.
10913 * pretty-print.c (pp_formatted_text_data): Likewise.
10914 (pp_indent): Rename from pp_base_indent.
10915 (pp_format): Rename from pp_base_format.
10916 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
10917 (pp_format_verbatim): Rename from pp_base_format_verbatim.
10918 (pp_flush): Rename from pp_base_flush.
10919 (pp_set_line_maximum_length): Rename from
10920 pp_base_set_line_maximum_length.
10921 (pp_clear_output_area): Rename from pp_base_clear_output_area.
10922 (pp_set_prefix): Rename from pp_base_set_prefix.
10923 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
10924 (pp_emit_prefix): Rename from pp_base_emit_prefix.
10925 (pp_append_text): Rename from pp_base_append_text.
10926 (pp_formatted_text): Rename from pp_base_formatted_text.
10927 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
10928 (pp_remaining_character_count_for_line): Rename from
10929 pp_base_remaining_character_count_for_line.
10930 (pp_newline): Rename from pp_base_newline.
10931 (pp_character): Rename from pp_base_character.
10932 (pp_string): Rename from pp_base_string.
10933 (pp_maybe_space): Rename from pp_base_maybe_space.
10934 * asan.c (asan_pp_string): Adjust.
10935 (asan_emit_stack_protection): Likewise.
10936 (asan_add_global): Likewise.
10937 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
10938 * tree-mudflap.c (mf_varname_tree): Likewise.
10939 * tree-pretty-print.c (pp_tree_identifier): Rename from
10940 pp_base_tree_identifier.
10941 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
10942 Declare as function.
10943
137a1a27
GDR
109442013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10945
10946 * pretty-print.h (pp_bar_bar): New.
10947 (pp_ampersand_ampersand): Likewise.
10948 (pp_less_equal): Likewise.
10949 (pp_greater_equal): Likewise.
10950 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
10951 printer functions instead of pp_string or operators and punctuators.
10952 (dump_gimple_call): Likewise.
10953 (dump_gimple_omp_for): Likewise.
10954 (dump_gimple_transaction): Likewise.
10955 (dump_gimple_phi): Likewise.
10956 (pp_gimple_stmt_1): Likewise.
10957 * sched-vis.c (print_insn): Likewise.
10958 * tree-mudflap.c (mf_varname_tree): Likewise.
10959 * tree-pretty-print.c (dump_block_node): Likewise.
10960 (dump_generic_node): Likewise.
10961
815effe1
JH
109622013-08-02 Jan Hubicka <jh@suse.cz>
10963
10964 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
10965 boundaries.
10966 * lto-streamer-out.c (tree_is_indexable): Results decls and
10967 parm decls are not indexable.
10968 (DFS_write_tree_body): Do not follow args and results.
10969 (hash_tree): Likewise.
10970 (output_functions): Rearrange so struct function is needed
10971 only when real body is output; be able to also ouptut abstract
10972 functions; output DECL_ARGUMENTS and DECL_RESULT.
10973 (lto_output): When not in WPA, ale store abstract functions.
10974 (write_symbol): Do not care about RESULT_DECL.
10975 (output_symbol_p): Handle correctly sbtract decls.
10976 * lto-streamer-in.c (input_function): Rearrange so struct
10977 function can be NULL at entry; allow streaming of
10978 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
10979 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
10980 sanity check during LTO.
10981 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
10982 RESULT_DECl and DECL_ARGUMENTS.
10983 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10984 Likewise.
10985
07838b13
GDR
109862013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10987
10988 * pretty-print.h (pp_underscore): New.
10989 (pp_comma): Tidy.
10990 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
10991 printer functions instead of pp_character.
10992 (dump_binary_rhs): Likewise.
10993 (dump_ternary_rhs): Likewise.
10994 (dump_gimple_call_args): Likewise.
10995 (pp_points_to_solution): Likewise.
10996 (dump_gimple_call): Likewise.
10997 (dump_gimple_switch): Likewise.
10998 (dump_gimple_cond): Likewise.
10999 (dump_gimple_bind): Likewise.
11000 (dump_gimple_try): Likewise.
11001 (dump_gimple_omp_for): Likewise.
11002 (dump_gimple_omp_continue): Likewise.
11003 (dump_gimple_omp_single): Likewise.
11004 (dump_gimple_omp_sections): Likewise.
11005 (dump_gimple_omp_block): Likewise.
11006 (dump_gimple_omp_critical): Likewise.
11007 (dump_gimple_transaction): Likewise.
11008 (dump_gimple_asm): Likewise.
11009 (dump_gimple_phi): Likewise.
11010 (dump_gimple_omp_parallel): Likewise.
11011 (dump_gimple_omp_task): Likewise.
11012 (dump_gimple_omp_atomic_load): Likewise.
11013 (dump_gimple_omp_atomic_store): Likewise.
11014 (dump_gimple_mem_ops): Likewise.
11015 (pp_gimple_stmt_1): Likewise.
11016 (pp_cfg_jump): Likewise.
11017 (dump_implicit_edges): Likewise.
11018 (gimple_dump_bb_for_graph): Likewise.
11019 * graph.c (draw_cfg_node): Likewise.
11020 * langhooks.c (lhd_print_error_function): Likewise.
11021 * sched-vis.c (print_exp): Likewise.
11022 (print_value): Likewise.
11023 (print_pattern): Likewise.
11024 (print_insn): Likewise.
11025 (rtl_dump_bb_for_graph): Likewise.
11026 * tree-pretty-print.c (dump_function_declaration): Likewise.
11027 (dump_array_domain): Likewise.
11028 (dump_omp_clause): Likewise.
11029 (dump_location): Likewise.
11030 (dump_generic_node): Likewise.
11031 (print_struct_decl): Likewise.
11032 * diagnostic.c (diagnostic_show_locus): Use pp_space.
11033
bb0d2039
BS
110342013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11035
11036 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
11037 candidate table when replacing a candidate statement.
11038 (replace_rhs_if_not_dup): Likewise.
11039 (replace_one_candidate): Likewise.
11040
bc0ec027 110412013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 11042 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
11043
11044 * cgraphunit.c (add_new_function): Fix logic when adding from
11045 late IPA pass.
11046 (assemble_thunk): Rename to ...
03b0ee0a
UB
11047 (expand_thunk); .. this one; export; get it working with
11048 general functions; make produced gimple valid.
bc0ec027
JH
11049 * cgraph.h (expand_thunk): Declare.
11050
0e8853ee
JH
110512013-08-02 Jan Hubicka <jh@suse.cz>
11052
03b0ee0a
UB
11053 * ipa-cp.c (gather_context_independent_values): Use
11054 ipa_get_param_move_cost.
11055 (get_replacement_map): Remove PARAM; move parameter folding
11056 into tree-inline.c
0e8853ee
JH
11057 (create_specialized_node): Update.
11058 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
11059 assert that we have gimple body; update move_cost.
11060 (count_formal_params): Assert that we have gimple body.
11061 (ipa_dump_param): New function.
11062 (ipa_alloc_node_params): Break out from ...
11063 (ipa_initialize_node_params): ... here.
11064 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
11065 (ipa_write_node_info): Stream move costs.
11066 (ipa_read_node_info): Read move costs.
11067 (ipa_update_after_lto_read): Do not recompute node params.
11068 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
11069 (ipa_get_param): Check we are not in WPA.
11070 (ipa_get_param_move_cost): New.
11071 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
11072 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
11073 parm numbers to be present.
11074
ecee672b
VM
110752013-08-02 Vladimir Makarov <vmakarov@redhat.com>
11076
11077 PR rtl-optimization/58048
11078 * lra-constraints.c (process_alt_operands): Don't check asm
11079 operand on register.
11080
13ec0527
EB
110812013-08-02 Eric Botcazou <ebotcazou@adacore.com>
11082
11083 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
11084 the implied StoreLoad barrier for atomic operations if before.
11085
af15184a
JH
110862013-08-02 Jan Hubicka <jh@suse.cz>
11087 Martin Liska <marxin.liska@gmail.com>
11088
03b0ee0a
UB
11089 * cgraph.c (cgraph_function_body_availability): Do not check
11090 cgraph flags.
af15184a
JH
11091 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
11092 symtab_node_availability): Declare.
11093 * ipa.c (can_replace_by_local_alias): New.
11094 (function_and_variable_visibility): Use it.
03b0ee0a
UB
11095 * symtab.c (symtab_for_node_and_aliases,
11096 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 11097
01e54ef8
VM
110982013-08-02 Vladimir Makarov <vmakarov@redhat.com>
11099
11100 PR rtl-optimization/57963
03b0ee0a 11101 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
11102 (lra_constraints): Use them.
11103
e2fd7ca7
SN
111042013-08-02 Sofiane Naci <sofiane.naci@arm.com>
11105
03b0ee0a
UB
11106 * config/arm/types.md (define_attr "type"): Add "load_acq"
11107 and "store_rel".
e2fd7ca7
SN
11108 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
11109 changes.
11110 (cortex_a53_store1): Likewise.
11111
0dcc26c3
JH
111122013-08-01 Jan Hubicka <jh@suse.cz>
11113
03b0ee0a
UB
11114 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
11115 partitions are not needed.
0dcc26c3 11116
0bd72901
UB
111172013-08-01 Uros Bizjak <ubizjak@gmail.com>
11118
11119 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
11120 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
11121 MAYBE_NON_Q_CLASS_P where appropriate.
11122
12123452
JH
111232013-08-01 Jan Hubicka <jh@suse.cz>
11124
11125 * cgraph.h (release_function_body): Declare.
11126 * tree.c (free_lang_data_in_decl): Free, parameters and return values
11127 of unused delcarations.
11128
ce852f9c
KT
111292013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11130
03b0ee0a
UB
11131 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
11132 RTL form when subtracting a constant.
ce852f9c 11133
c743b246
KT
111342013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11135
11136 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
11137 Generate canonical plus rtx with negated immediate instead of minus
11138 where appropriate.
11139 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
11140
c0c123ef
JH
111412013-08-01 Jan Hubicka <jh@suse.cz>
11142
11143 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
11144 (cgraph_release_function_body): Likewise.
11145 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
11146 * cgraph.h (cgrpah_node): Rename abstract_and_needed
11147 to used_as_abstract_origin.
11148 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
11149 symbols used as abstract origins.
11150 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
11151 * ipa.c (symtab_remove_unreachable_nodes): Recompute
11152 used_as_abstract_origin.
c0c123ef 11153 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
11154 used_as_abstract_origin; be ready for DECL_RESULT and
11155 DECL_ARGUMENTS to be NULL.
c0c123ef 11156
0bd72901
UB
11157 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
11158 for abstract functions.
11159 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
11160 real symbols.
c0c123ef 11161
1f029433
JH
111622013-08-01 Jan Hubicka <jh@suse.cz>
11163
11164 * profile.c (compute_value_histograms): Fix thinko.
11165
c451f4d6
SN
111662013-08-01 Sofiane Naci <sofiane.naci@arm.com>
11167
11168 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
11169 aarch-common-protos.h to extra_headers.
11170 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
11171 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
11172 * config/aarch64/t-aarch64 (aarch-common.o): Define.
11173
34b512f5
SN
111742013-08-01 Sofiane Naci <sofiane.naci@arm.com>
11175
11176 * config/aarch64/aarch64.md (define_attr "type"): Delete.
11177 Include "../arm/types.md". Define "type" attribute for all patterns.
11178 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
11179 attribute changes.
11180
d86e633a
MM
111812013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11182
11183 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
11184 to support power8 load fusion.
11185 (fusion_gpr_mem_load): Likewise.
11186
11187 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
11188
11189 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
11190 declarations for power8 load fusion.
11191 (emit_fusion_gpr_load): Likewise.
11192
11193 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11194 tuning for power8, turn on fusion mode by default. Turn on sign
11195 extending fusion mode if normal fusion mode is on, and we are at
11196 -O2 or -O3.
11197 (fusion_gpr_load_p): New function, return true if we can fuse an
11198 addis instruction with a dependent load to a GPR.
11199 (emit_fusion_gpr_load): Emit the instructions for power8 load
11200 fusion to GPRs.
11201
0bd72901 11202 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
11203 (VSX load fusion peepholes): New peepholes to fuse together an
11204 addi instruction with a VSX load instruction.
11205
11206 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
11207 peepholes to fuse an addis instruction with a load to a GPR base
11208 register. If we are supporting sign extending fusions, convert
11209 sign extending loads to zero extending loads and add an explicit
11210 sign extension.
11211
c3f35647
SN
112122013-07-31 Sofiane Naci <sofiane.naci@arm.com>
11213
11214 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
11215 aarch-common-protos.h to extra_headers.
11216 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
11217 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
11218 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
11219 (arm_no_early_alu_shift_dep): Likewise.
11220 (arm_no_early_alu_shift_value_dep): Likewise.
11221 (arm_no_early_mul_dep): Likewise.
11222 (arm_no_early_store_addr_dep): Likewise.
11223 (arm_mac_accumulator_is_mul_result): Likewise.
11224 (arm_mac_accumulator_is_result): Likewise.
c3f35647 11225 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
11226 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
11227 here to ...
c3f35647 11228 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
11229 (arm_no_early_alu_shift_dep): Likewise.
11230 (arm_no_early_alu_shift_value_dep): Likewise.
11231 (arm_no_early_mul_dep): Likewise.
11232 (arm_no_early_store_addr_dep): Likewise.
11233 (arm_mac_accumulator_is_mul_result): Likewise.
11234 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
11235 * config/arm/aarch-common-protos.h: ... here. New file.
11236 * config/arm/t-arm (aarch-common.o): Define.
11237
112382013-07-31 Sofiane Naci <sofiane.naci@arm.com>
11239
11240 * config/arm/arm.md: Include new file "types.md".
11241 (define_attr "type"): Move from here to ...
11242 (define_attr "mul32"): Likewise.
11243 (define_attr "mul64"): Likewise.
11244 * config/arm/types.md: ... here. New file.
11245
228c1313
SH
112462013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
11247
11248 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
11249 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
11250
d6e9046d 112512013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
11252
11253 * gen-pass-instances.awk: Fix offset of substr().
11254
a167b052
DM
112552013-07-31 David Malcolm <dmalcolm@redhat.com>
11256
11257 * Makefile.in (pass-instances.def): New.
11258 (passes.o): Replace dependency on passes.def with one on
11259 pass-instances.def
11260
11261 * gen-pass-instances.awk: New.
11262
11263 * passes.c (pass_manager::pass_manager): Use pass-instances.def
11264 rather than passes.def, updating local definition of NEXT_PASS
11265 macro to add an extra NUM parameter (currently unused).
11266
315f8c0e
DM
112672013-07-30 David Malcolm <dmalcolm@redhat.com>
11268
11269 * Makefile.in (PASS_MANAGER_H): New.
11270 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
11271 (passes.o): Likewise.
11272 (statistics.o): Likewise.
11273 (cgraphunit.o): Likewise.
11274 (context.o): Depend on PASS_MANAGER_H.
11275
11276 * pass_manager.h: New.
11277
11278 * cgraphunit.c (cgraph_add_new_function): Update for moves
11279 of globals to fields of pass_manager.
11280 (analyze_function): Likewise.
11281 (expand_function): Likewise.
11282 (ipa_passes): Likewise.
11283 (compile): Likewise.
11284
11285 * context.c (context::context): New.
11286 * context.h (context::context): New.
11287 (context::get_passes): New.
11288 (context::passes_): New.
11289
11290 * lto-cgraph.c (input_node): Update for moves of globals to
11291 fields of pass_manager.
11292
11293 * passes.c (all_passes): Remove, in favor of a field of the
11294 same name within the new class pass_manager.
11295 (all_small_ipa_passes): Likewise.
11296 (all_lowering_passes): Likewise.
11297 (all_regular_ipa_passes): Likewise.
11298 (all_late_ipa_passes): Likewise.
11299 (all_lto_gen_passes): Likewise.
11300 (passes_by_id): Likewise.
11301 (passes_by_id_size): Likewise.
11302 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
11303 the new class pass_manager.
11304 (set_pass_for_id): Convert to...
11305 (pass_manager::set_pass_for_id): ...method.
11306 (get_pass_for_id): Convert to...
11307 (pass_manager::get_pass_for_id): ...method.
11308 (register_one_dump_file): Move body of implementation into...
11309 (pass_manager::register_one_dump_file): ...here.
11310 (register_dump_files_1): Convert to...
11311 (pass_manager::register_dump_files_1): ...method.
11312 (register_dump_files): Convert to...
11313 (pass_manager::register_dump_files): ...method.
11314 (create_pass_tab): Update for moves of globals to fields of
11315 pass_manager.
11316 (dump_passes): Move body of implementation into...
11317 (pass_manager::dump_passes): ...here.
11318 (register_pass): Move body of implementation into...
11319 (pass_manager::register_pass): ...here.
11320 (init_optimization_passes): Convert into...
11321 (pass_manager::pass_manager): ...constructor for new
11322 pass_manager class, and initialize the pass_lists array.
11323 (check_profile_consistency): Update for moves of globals to
11324 fields of pass_manager.
11325 (dump_profile_report): Move body of implementation into...
11326 (pass_manager::dump_profile_report): ...here.
11327 (ipa_write_summaries_1): Update for moves of pass lists from
11328 being globals to fields of pass_manager.
11329 (ipa_write_optimization_summaries): Likewise.
11330 (ipa_read_summaries): Likewise.
11331 (ipa_read_optimization_summaries): Likewise.
11332 (execute_all_ipa_stmt_fixups): Likewise.
11333
11334 * statistics.c (statistics_fini): Update for moves of globals to
11335 fields of pass_manager.
11336
11337 * toplev.c (general_init): Replace call to
11338 init_optimization_passes with construction of the pass_manager
11339 instance.
11340
11341 * tree-pass.h (all_passes): Remove, in favor of a field of the
11342 same name within the new class pass_manager.
11343 (all_small_ipa_passes): Likewise.
11344 (all_lowering_passes): Likewise.
11345 (all_regular_ipa_passes): Likewise.
11346 (all_lto_gen_passes): Likewise.
11347 (all_late_ipa_passes): Likewise.
11348 (passes_by_id): Likewise.
11349 (passes_by_id_size): Likewise.
11350 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
11351 the new class pass_manager.
11352 (get_pass_for_id): Remove.
11353
02cab1c1
RE
113542013-07-30 Richard Earnshaw <rearnsha@arm.com>
11355
11356 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
11357 configs.
11358
b2d3f886
RE
113592013-07-30 Richard Earnshaw <rearnsha@arm.com>
11360
11361 * arm.md (mulhi3): New expand pattern.
11362
605e86fa
JH
113632013-07-30 Jan Hubicka <jh@suse.cz>
11364 Martin Liska <marxin.liska@gmail.com>
11365
11366 * profile.c (compute_value_histograms): Do not ICE when
11367 there is mismatch only on some counters.
11368
14a87636
ZC
113692013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11370
11371 PR rtl-optimization/57637
11372 * function.c (move_insn_for_shrink_wrap): Also check the
11373 GEN set of the LIVE problem for the liveness analysis
11374 if it exists, otherwise give up.
11375
0100cd3f
BS
113762013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11377
11378 PR tree-optimization/57993
11379 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
11380 replaced statement in the candidate table.
11381 (phi_add_costs): Return infinite cost when the hidden basis does
11382 not dominate all phis on which the candidate is dependent.
11383 (replace_one_candidate): Record replaced statement in the
11384 candidate table.
11385
f0d811f7
JR
113862013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
11387
11388 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
11389 (ashlv2si3): New expander.
11390 (*ashlv2si3_i): New define_insn_and_split.
11391 * predicates.md (float_operation): Allow patterns with three
11392 basic sub-patterns.
11393
bba33211
JR
11394 PR rtl-optimization/58021
11395 * mode-switching.c (create_pre_exit): Always split off preceding
11396 insns if we are not at the basic block head.
11397
ff3f3951
MR
113982013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
11399
11400 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
11401 (UCLIBC_DYNAMIC_LINKER): New macro.
11402 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
11403 `-mnan=2008'.
11404 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
11405 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
11406 `-mnan=2008'.
11407 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
11408 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
11409 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
11410 for SF and DF modes. Use ieee_quad_format for TF mode.
11411 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
11412 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
11413 (mips_option_override): Handle `-mnan=legacy'.
11414 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
11415 `-mabs=2008' and `-mnan=2008'.
11416 (OPTION_DEFAULT_SPECS): Add "nan" default.
11417 (ASM_SPEC): Handle `-mnan='.
11418 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
11419 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
11420 comment accordingly.
11421 (neg<mode>2): Likewise.
11422 * config/mips/mips.opt (mabs, mnan): New options.
11423 * doc/install.texi (Configuration): Document `--with-nan=' option.
11424 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
11425 `-mnan=' options.
11426 (MIPS Options): Document them.
11427 * config.gcc <mips*-*-*>: Handle `--with-nan='.
11428 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
11429 * configure: Regenerate.
11430 * config.in: Regenerate.
11431
576e2f37
UB
114322013-07-29 Uros Bizjak <ubizjak@gmail.com>
11433
11434 * config/i386/i386.md (float post-reload splitters): Do not check
11435 for subregs of SSE registers.
11436
114372013-07-29 Uros Bizjak <ubizjak@gmail.com>
11438 H.J. Lu <hongjiu.lu@intel.com>
11439
11440 PR target/57954
11441 PR target/57988
11442 * config/i386/i386.md (post-reload splitter
11443 to avoid partial SSE reg dependency stalls): New pattern.
11444
a71f0749
DV
114452013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11446
11447 * config/s390/s390.md ("movcc"): Swap load and store instructions.
11448
4c97f1cc
JR
114492013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
11450
11451 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
11452 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
11453
b0c733d8
CC
114542013-07-26 Cary Coutant <ccoutant@google.com>
11455
11456 * dwarf2out.c (die_checksum_ordered): Don't include template
11457 instantiations in signature.
11458 (is_template_parameter): New function.
11459 (is_template_instantiation): New function.
11460 (generate_skeleton_bottom_up): Don't include template instantiations
11461 in type unit DIE.
11462 (generate_skeleton): Likewise.
11463 (break_out_comdat_types): Move recursive call to break out nested
11464 types earlier.
11465 (prune_unused_types_mark_generic_parms_dies): Call
11466 is_template_parameter.
11467
040d8a1c
IB
114682013-07-26 Ian Bolton <ian.bolton@arm.com>
11469
11470 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
11471 uses vector registers.
89fdc743 11472 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 11473
85bd4ac6 114742013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 11475 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
11476
11477 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 11478 where appropriate.
85bd4ac6
KT
11479 * config/arm/arm.md (movcond_addsi): New splitter.
11480
b6051207
SA
114812013-07-25 Sterling Augustine <saugustine@google.com>
11482
11483 * dwarf2out.c (size_of_pubnames): Move code to...
11484 (include_pubname_in_output): ...here. New.
11485 (want_pubnames): Rearrange.
11486 (output_pubnames): Call include_pubname_in_output. Move assertion.
11487
41a7c215
CM
114882013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
11489
11490 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
11491
114922013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
11493
11494 PR target/38836
11495 * doc/extend.texi: Remove obsolete builtins. Fix
11496 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
11497
49bde175
JH
114982013-07-25 Jan Hubicka <jh@suse.cz>
11499
11500 * cgraph.c (release_function_body): Break out from ...
11501 (cgraph_release_function_body): ... this one; also release DECL_RESULT
11502 and DECL_ARGUMENTS.
11503 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
11504 old_tree in the map.
11505 (create_specialized_node): Update.
11506 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
11507 into index.
41a7c215
CM
11508 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
11509 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
11510 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
11511 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
11512 DECL_RESULT.
11513
4870352d
KT
115142013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11515
11516 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
11517 addsi3_carryin_alt2_<optab>): Correct output template.
11518
1d6aee1c
KT
115192013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11520
11521 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
11522 Adjust for arm_restrict_it.
11523 Remove trailing whitespace.
11524
c7cafd75
MK
115252013-07-25  Mark Kettenis  <kettenis@openbsd.org>
11526
017d38f5
MK
11527 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
11528 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
11529
c7cafd75
MK
11530 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
11531
00b7527b
VM
115322013-07-25 Vladimir Makarov <vmakarov@redhat.com>
11533
11534 PR rtl-optimization/57960
11535 * lra-constraints.c (process_alt_operands): Use the right mode
11536 when checking strict_low.
11537
4f63dfc6
JH
115382013-07-25 Jan Hubicka <jh@suse.cz>
11539
11540 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
11541 * cgraph.c (cgraph_remove_node): Do not release function body
11542 when in cgraph streaming.
11543 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
11544 in other partitions are not considered reachable; fix handling of
11545 clones.
4f63dfc6 11546
e6dcfa18
RR
115472013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11548
11549 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
11550
0b93d3b6
RR
115512013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11552
11553 PR target/19599
11554 PR target/57731
bb80c2eb 11555 PR target/57837
e6dcfa18 11556 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 11557 Ss with US. Adjust output for v5 and v4t.
41a7c215 11558 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 11559
0b93d3b6
RR
11560 * config/arm/constraints.md ("Ss"): Rename to US.
11561
690688b3
TG
115622013-07-25 Terry Guo <terry.guo@arm.com>
11563
11564 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
11565 shift_add/shift_sub0/shift_sub1 RTXs.
11566
a4ad093b 115672013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 11568 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
11569
11570 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
11571 (altivec_vpks<VI_char>ss): Likewise.
11572 (altivec_vpks<VI_char>us): Likewise.
11573 (altivec_vpku<VI_char>us): Likewise.
11574 (altivec_vpku<VI_char>um): Likewise.
11575
8c5005ce
DM
115762013-07-24 David Malcolm <dmalcolm@redhat.com>
11577
11578 Introduce context class.
11579
11580 * Makefile.in (CONTEXT_H): New.
11581 (OBJS): Add context.o.
11582 (toplev.o): Add CONTEXT_H to dependencies.
11583 (context.o): New.
11584
41a7c215 11585 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
11586
11587 * context.c: New.
11588
11589 * context.h: New.
11590
ce4a9422
JR
115912013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
11592
11593 PR rtl-optimization/57968
11594 * mode-switching.c (create_pre_exit): Allow instructions that
11595 don't set a return register to need a non-exit mode.
11596
493f4c9e 115972013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 11598 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 11599
b5860fd3
WS
11600 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
11601 operands to vperm for little endian.
11602 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
11603 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 11604
73792b92 116052013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 11606 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
11607
11608 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11609 two operands for little-endian.
11610
14c21302
SE
116112013-07-23 Steve Ellcey <sellcey@mips.com>
11612
11613 * config/mips/mips.c (mips_case_values_threshold): New.
11614 (TARGET_CASE_VALUES_THRESHOLD): Define.
11615
a6056198 116162013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 11617 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
11618
11619 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
11620 selection of field for vector splat in little endian mode.
11621
dd7a40e1
MM
116222013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11623
11624 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
11625 expanders to rs6000.md.
11626 (ior<mode>3): Likewise.
11627 (and<mode>3): Likewise.
11628 (one_cmpl<mode>2): Likewise.
11629 (nor<mode>3): Likewise.
11630 (andc<mode>3): Likewise.
11631 (eqv<mode>3): Likewise.
11632 (nand<mode>3): Likewise.
11633 (orc<mode>3): Likewise.
11634
11635 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
11636 declaration.
11637
11638 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
11639 to split multi-word logical operations.
11640 (rs6000_split_logical_di): Likewise.
11641 (rs6000_split_logical): Likewise.
11642
11643 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
11644 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
11645 and allow TImode operations in 32-bit.
11646 (vsx_and<mode>3_64bit): Likewise.
11647 (vsx_ior<mode>3_32bit): Likewise.
11648 (vsx_ior<mode>3_64bit): Likewise.
11649 (vsx_xor<mode>3_32bit): Likewise.
11650 (vsx_xor<mode>3_64bit): Likewise.
11651 (vsx_one_cmpl<mode>2_32bit): Likewise.
11652 (vsx_one_cmpl<mode>2_64bit): Likewise.
11653 (vsx_nor<mode>3_32bit): Likewise.
11654 (vsx_nor<mode>3_64bit): Likewise.
11655 (vsx_andc<mode>3_32bit): Likewise.
11656 (vsx_andc<mode>3_64bit): Likewise.
11657 (vsx_eqv<mode>3_32bit): Likewise.
11658 (vsx_eqv<mode>3_64bit): Likewise.
11659 (vsx_nand<mode>3_32bit): Likewise.
11660 (vsx_nand<mode>3_64bit): Likewise.
11661 (vsx_orc<mode>3_32bit): Likewise.
11662 (vsx_orc<mode>3_64bit): Likewise.
11663
11664 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
11665 logical types in GPRs.
11666
11667 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
11668 logical insns to rs6000.md, and allow TImode operations in
11669 32-bit.
11670 (altivec_ior<mode>3): Likewise.
11671 (altivec_xor<mode>3): Likewise.
11672 (altivec_one_cmpl<mode>2): Likewise.
11673 (altivec_nor<mode>3): Likewise.
11674 (altivec_andc<mode>3): Likewise.
11675
11676 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
11677 attributes for moving the 128-bit logical operations into
11678 rs6000.md.
11679 (BOOL_REGS_OUTPUT): Likewise.
11680 (BOOL_REGS_OP1): Likewise.
11681 (BOOL_REGS_OP2): Likewise.
11682 (BOOL_REGS_UNARY): Likewise.
11683 (BOOL_REGS_AND_CR0): Likewise.
11684 (one_cmpl<mode>2): Add support for DI logical operations on
11685 32-bit, splitting the operations to 32-bit.
11686 (anddi3): Likewise.
11687 (iordi3): Likewise.
11688 (xordi3): Likewise.
11689 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
11690 changes to combine the 32/64-bit code, allow logical operations on
11691 TI mode in 32-bit, and to use similar match_operator patterns like
11692 scalar mode uses. Combine the Altivec and VSX code for logical
11693 operations, and move it here.
11694 (ior<mode>3, 128-bit types): Likewise.
11695 (xor<mode>3, 128-bit types): Likewise.
11696 (one_cmpl<mode>3, 128-bit types): Likewise.
11697 (nor<mode>3, 128-bit types): Likewise.
11698 (andc<mode>3, 128-bit types): Likewise.
11699 (eqv<mode>3, 128-bit types): Likewise.
11700 (nand<mode>3, 128-bit types): Likewise.
11701 (orc<mode>3, 128-bit types): Likewise.
11702 (and<mode>3_internal): Likewise.
11703 (bool<mode>3_internal): Likewise.
11704 (boolc<mode>3_internal1): Likewise.
11705 (boolc<mode>3_internal2): Likewise.
11706 (boolcc<mode>3_internal1): Likewise.
11707 (boolcc<mode>3_internal2): Likewise.
11708 (eqv<mode>3_internal1): Likewise.
11709 (eqv<mode>3_internal2): Likewise.
11710 (one_cmpl1<mode>3_internal): Likewise.
11711
12211b99 117122013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
11713
11714 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11715 Rename flag_stack_usage to flag_stack_usage_info.
11716
12211b99 117172013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 11718
a5f257fd
ME
11719 * config/microblaze/sync.md: New file.
11720 * config/microblaze/microblaze.md: Include sync.md
11721 * config/microblaze/microblaze.c: Add print_operand 'y'.
11722 * config/microblaze/constraints.md: Add memory_contraint
11723 'Q' which is a single register.
450b0ebb 11724
49fba14f
EB
117252013-07-23 Eric Botcazou <ebotcazou@adacore.com>
11726
11727 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
11728
c7b3b99f
PCC
117292013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
11730
11731 * reload.c (find_reloads): Exit loop once we find this operand
11732 cannot be reloaded somehow for this alternative.
11733
11734 * reload.c (find_reloads): Exit loop once we find a hard register.
11735
11736 * rtlanal.c (computed_jump_p): Exit loop once we find label
11737 reference is used.
11738
11739 * i386.c (ix86_pad_returns): Exit loop after setting replace.
11740
11741 * cfgloopmanip.c (remove_path): Exit loop after setting
11742 irred_invalidated.
11743
11744 * gensupport.c (subst_dup): Avoid loop if code is not
11745 MATCH_DUP nor MATCH_OP_DUP.
11746
c8fbf1fa
NBJ
117472013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
11748
11749 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
11750
9259db42
YZ
117512013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11752
11753 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
11754 true for SP_REGNUM if mode == ptr_mode.
11755 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
11756 with value R0_REGNUM + 31.
11757
00edcfbe
YZ
117582013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11759
11760 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
11761 pad pointer-typed argument downward.
11762
43be9a95
YZ
117632013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11764
11765 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
11766 and __ILP32__ when the ILP32 model is in use.
11767
28514dda
YZ
117682013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11769
11770 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
11771 (aarch64_load_symref_appropriately): In the case of
11772 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
11773 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
11774 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
11775 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
11776 if 'mode' doesn't equal to 'ptr_mode'.
11777 (aarch64_output_mi_thunk): Add an assertion on the alignment of
11778 'vcall_offset'; change to call aarch64_emit_move differently depending
11779 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
11780 to calculate the upper bound of 'vcall_offset'.
11781 (aarch64_cannot_force_const_mem): Change to also return true if
11782 mode != ptr_mode.
11783 (aarch64_legitimize_reload_address): In the case of large
11784 displacements, add new local variable 'xmode' and an assertion
11785 based on it; change to use 'xmode' to generate the new rtx and
11786 reload.
11787 (aarch64_asm_trampoline_template): Change to generate the template
11788 differently depending on TARGET_ILP32 or not; change to use
11789 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
11790 (aarch64_trampoline_size): Removed.
11791 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
11792 and replace immediate literals with it. Change to use 'ptr_mode'
11793 instead of 'DImode' and call convert_memory_address if the mode
11794 of 'fnaddr' doesn't equal to 'ptr_mode'.
11795 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
11796 to output symbol.
11797 (aarch64_elf_asm_destructor): Likewise.
11798 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
11799 on TARGET_ILP32 instead of aarch64_trampoline_size.
11800 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
11801 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
11802 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
11803 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
11804 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
11805 (storewb_pair<GPI:mode>_<P:mode>): ... this.
11806 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
11807 depending on the value of 'mode'.
11808 (add_losym_<mode>): New.
11809 (ldr_got_small_<mode>): New, based on ldr_got_small.
11810 (ldr_got_small): Remove.
11811 (ldr_got_small_sidi): New.
11812 * config/aarch64/iterators.md (P): New.
11813 (PTR): Change to 'ptr_mode' in the condition.
11814
17a819cb
YZ
118152013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11816
11817 * config.gcc (aarch64*-*-*): Support --with-abi.
11818 (aarch64*-*-elf): Support --with-multilib-list.
11819 (aarch64*-*-linux*): Likewise.
11820 (supported_defaults): Add abi to aarch64*-*-*.
11821 * configure.ac: Mention AArch64 for --with-multilib-list.
11822 * configure: Re-generated.
11823 * config/aarch64/biarchilp32.h: New file.
11824 * config/aarch64/biarchlp64.h: New file.
11825 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
11826 (ABI_SPEC): Ditto.
11827 (MULTILIB_DEFAULTS): Ditto.
11828 (DRIVER_SELF_SPECS): Ditto.
11829 (ASM_SPEC): Update to also substitute -mabi.
11830 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
11831 file whose name depends on -mabi= and -mbig-endian.
11832 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
11833 TARGET_ILP32.
11834 (POINTER_SIZE): New define.
11835 (POINTERS_EXTEND_UNSIGNED): Ditto.
11836 (enum aarch64_abi_type): New enumeration tag.
11837 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
11838 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
11839 (TARGET_ILP32): New define.
11840 * config/aarch64/aarch64.opt (mabi): New.
11841 (aarch64_abi): New.
11842 (ilp32, lp64): New values for -mabi.
11843 * config/aarch64/t-aarch64 (comma): New define.
11844 (MULTILIB_OPTIONS): Ditto.
11845 (MULTILIB_DIRNAMES): Ditto.
11846 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
11847 * doc/invoke.texi: Document -mabi for AArch64.
11848
9f9cbdce
GJL
118492013-07-23 Georg-Johann Lay <avr@gjlay.de>
11850
11851 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
11852
7061977b 118532013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 11854 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
11855
11856 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
11857 endianness when selecting field to splat.
11858
75a41878
EC
118592013-07-22 Eric Christopher <echristo@gmail.com>
11860
11861 * dwarf2out.c (die_odr_checksum): New function to use
11862 CHECKSUM_ macros and ULEB128 for DIE tag.
11863 (generate_type_signature): Use.
41a7c215 11864
38ae58ca
EB
118652013-07-22 Eric Botcazou <ebotcazou@adacore.com>
11866
11867 * config.gcc (sparc*-*-*): Accept leon3 processor.
11868 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
11869 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
11870 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
11871 * config/sparc/sparc.opt (enum processor_type): Add leon3.
11872 (mfix-ut699): Adjust comment.
11873 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
11874 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
11875 (CPP_CPU_SPEC): Likewise.
11876 (ASM_CPU_SPEC): Likewise.
11877 * config/sparc/sparc.c (leon3_cost): New constant.
11878 (sparc_option_override): Add leon3 support.
11879 (mem_ref): New function.
11880 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
11881 (sparc_do_work_around_errata): Look into the instruction in the delay
11882 slot and adjust accordingly. Add fix for the data cache nullify issues
11883 of the UT699. Change insertion position for the NOP.
11884 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
11885 (leon3_load): New reservation.
11886 (leon_store): Bump latency to 2.
11887 (grfpu): New automaton.
11888 (grfpu_alu): New unit.
11889 (grfpu_ds): Likewise.
11890 (leon_fp_alu): Adjust.
11891 (leon_fp_mult): Delete.
11892 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
11893 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
11894 * config/sparc/sparc.md (cpu): Add leon3.
11895 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
11896 (swapsi): Likewise.
11897 (atomic_test_and_set): Likewise.
11898 (ldstub): Likewise.
11899
04dfc6df
JU
119002013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
11901
11902 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
11903 default for R5900 targets.
11904 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
11905 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
11906 * config/mips/mips.c (mips_option_override): Report an error for
11907 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
11908 for -march=r5900 -mhard-float.
11909
c7b3b99f 119102013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
11911
11912 * df-problems.c (can_move_insns_across): Exit loop once we
11913 find a non-fixed, non-global register.
11914
11915 * ipa-pure-const.c (propagate_nothrow): Exit loop after
11916 setting can_throw.
11917
11918 * omega.c (omega_eliminate_red): Break after setting red_found.
11919 (omega_problem_has_red_equations): Similarly after setting found.
11920 (omega_query_variable): Similarly after setting coupled.
11921
9b6e6981
MP
119222013-07-22 Marek Polacek <polacek@redhat.com>
11923
11924 * gimplify.c: Don't include gimple.h twice.
11925
5e5f7673
KT
119262013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11927
11928 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
11929 instead of TARGET_THUMB1.
11930 (Pz): New constraint.
11931 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
11932 encodings.
11933 (compare_negsi_si): Likewise.
11934 (compare_addsi2_op0): Likewise.
11935 (compare_addsi2_op1): Likewise.
11936 (addsi3_carryin_<optab>): Likewise.
11937 (addsi3_carryin_alt2_<optab>): Likewise.
11938 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
11939 for arm_restrict_it.
11940 (subsi3_carryin): Likewise.
11941 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
11942 (minmax_arithsi): Disable for arm_restrict_it.
11943 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
11944 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
11945 (satsi_<SAT:code>_shift): Likewise.
11946 (arm_shiftsi3): Add alternative for 16-bit encoding.
11947 (arm32_movhf): Disable for arm_restrict_it.
11948 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
11949 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
11950
859abddd
SN
119512013-07-22 Sofiane Naci <sofiane.naci@arm.com>
11952
11953 * config/arm/arm.md (attribute "insn"): Delete.
11954 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
11955 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
11956 (not_shiftsi): Update for attribute change.
11957 (not_shiftsi_compare0): Likewise.
11958 (not_shiftsi_compare0_scratch): Likewise.
11959 (arm_one_cmplsi2): Likewise.
11960 (thumb1_one_cmplsi2): Likewise.
11961 (notsi_compare0): Likewise.
11962 (notsi_compare0_scratch): Likewise.
11963 (thumb1_movdi_insn): Likewise.
11964 (arm_movsi_insn): Likewise.
11965 (movhi_insn_arch4): Likewise.
11966 (movhi_bytes): Likewise.
11967 (arm_movqi_insn): Likewise.
11968 (thumb1_movqi_insn): Likewise.
11969 (arm32_movhf): Likewise.
11970 (thumb1_movhf): Likewise.
11971 (arm_movsf_soft_insn): Likewise.
11972 (thumb1_movsf_insn): Likewise.
11973 (thumb_movdf_insn): Likewise.
11974 (movsicc_insn): Likewise.
11975 (movsfcc_soft_insn): Likewise.
11976 (and_scc): Likewise.
11977 (cond_move): Likewise.
11978 (if_move_not): Likewise.
11979 (if_not_move): Likewise.
11980 (if_shift_move): Likewise.
11981 (if_move_shift): Likewise.
11982 (if_shift_shift): Likewise.
11983 (if_not_arith): Likewise.
11984 (if_arith_not): Likewise.
11985 (cond_move_not): Likewise.
11986 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
11987 (neon_mov<mode>): Likewise.
11988 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
11989 (thumb2_movsi_vfp): Likewise.
11990 (movsf_vfp): Likewise.
11991 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
11992 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
11993 change.
859abddd
SN
11994 (cortexa7_older_only): Likewise.
11995 (cortexa7_younger): Likewise.
11996 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
11997 (1020alu_shift_op): Likewise.
11998 (1020alu_shift_reg_op): Likewise.
11999 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
12000 (alu_shift_op): Likewise.
12001 (alu_shift_reg_op): Likewise.
12002 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
12003 (11_alu_shift_op): Likewise.
12004 (11_alu_shift_reg_op): Likewise.
12005 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
12006 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
12007 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12008 change.
859abddd
SN
12009 (cortex_a15_alu_shift): Likewise.
12010 (cortex_a15_alu_shift_reg): Likewise.
12011 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
12012 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
12013 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
12014 change.
859abddd 12015 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
12016 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
12017 change.
859abddd
SN
12018 (cortex_a7_alu_reg): Likewise.
12019 (cortex_a7_alu_shift): Likewise.
12020 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12021 (cortex_a8_alu_shift): Likewise.
12022 (cortex_a8_alu_shift_reg): Likewise.
12023 (cortex_a8_mov): Likewise.
12024 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
12025 (cortex_a9_dp_shift): Likewise.
12026 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
12027 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
12028 (cortex_r4_mov): Likewise.
12029 (cortex_r4_alu_shift): Likewise.
12030 (cortex_r4_alu_shift_reg): Likewise.
12031 * config/arm/fa526.md (526_alu_op): Update for attribute change.
12032 (526_alu_shift_op): Likewise.
12033 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
12034 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
12035 (626te_alu_shift_op): Likewise.
12036 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
12037 (726te_alu_op): Likewise.
12038 (726te_alu_shift_op): Likewise.
12039 (726te_alu_shift_reg_op): Likewise.
12040 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
12041 (mp626_alu_shift_op): Likewise.
12042 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
12043 (pj4_alu_e1_conds): Likewise.
12044 (pj4_alu): Likewise.
12045 (pj4_alu_conds): Likewise.
12046 (pj4_shift): Likewise.
12047 (pj4_shift_conds): Likewise.
12048 (pj4_alu_shift): Likewise.
12049 (pj4_alu_shift_conds): Likewise.
12050
95b97fac
KT
120512013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12052
12053 * config/arm/predicates.md (shiftable_operator_strict_it):
12054 New predicate.
12055 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
12056 Disable cond_exec version for arm_restrict_it.
12057 (thumb2_smaxsi3): Convert to generate cond_exec.
12058 (thumb2_sminsi3): Likewise.
12059 (thumb32_umaxsi3): Likewise.
12060 (thumb2_uminsi3): Likewise.
12061 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
12062 (thumb2_neg_abssi2): Likewise.
12063 (thumb2_mov_scc): Add alternative for 16-bit encoding.
12064 (thumb2_movsicc_insn): Adjust alternatives.
12065 (thumb2_mov_negscc): Disable for arm_restrict_it.
12066 (thumb2_mov_negscc_strict_it): New pattern.
12067 (thumb2_mov_notscc_strict_it): New pattern.
12068 (thumb2_mov_notscc): Disable for arm_restrict_it.
12069 (thumb2_ior_scc): Likewise.
12070 (thumb2_ior_scc_strict_it): New pattern.
12071 (thumb2_cond_move): Adjust for arm_restrict_it.
12072 (thumb2_cond_arith): Disable for arm_restrict_it.
12073 (thumb2_cond_arith_strict_it): New pattern.
12074 (thumb2_cond_sub): Adjust for arm_restrict_it.
12075 (thumb2_movcond): Likewise.
12076 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
12077 (thumb2_zero_extendhisi2_v6): Likewise.
12078 (thumb2_zero_extendqisi2_v6): Likewise.
12079 (orsi_notsi_si): Likewise.
12080 (orsi_not_shiftsi_si): Likewise.
12081
d5a6ef82
GJL
120822013-07-22 Georg-Johann Lay <avr@gjlay.de>
12083
12084 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
12085 instruction sequence is 1 byte shorter.
12086
d9e71154
UB
120872013-07-22 Uros Bizjak <ubizjak@gmail.com>
12088
12089 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
12090 it is not needed after split.
12091
8c6381ec
IS
120922013-07-20 Iain Sandoe <iain@codesourcery.com>
12093
12094 PR target/51784
12095 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
12096 second label for nonlocal goto receivers. Don't output pic base labels
12097 unless we're producing PIC; mark that action unreachable().
12098 (ix86_save_reg): If the function contains a nonlocal label, save the
12099 PIC base reg.
12100 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 12101 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
12102 (update_pic_label_number_if_needed): New.
12103 (machopic_output_function_base_name): Adjust for nonlocal receiver
12104 case.
12105 (machopic_should_output_picbase_label): New.
12106 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
12107 (nonlocal_goto_receiver): New insn and split.
12108
d05d0709
JG
121092013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
12110
12111 * config/aarch64/aarch64-builtins.c
12112 (aarch64_fold_builtin): Fold abs in all modes.
12113 * config/aarch64/aarch64-simd-builtins.def
12114 (abs): Enable for all modes.
12115 * config/aarch64/arm_neon.h
12116 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
12117 (vabs_f64): Add missing intrinsic.
12118
ba590e63
IB
121192013-07-19 Ian Bolton <ian.bolton@arm.com>
12120
12121 * config/aarch64/arm_neon.h (vabs_s64): New function
12122
02371798
GJL
121232013-07-19 Georg-Johann Lay <avr@gjlay.de>
12124
12125 PR target/57516
12126 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
12127 * config/avr/avr.md (adjust_len): Add `round'.
12128 * config/avr/avr-protos.h (avr_out_round): New prototype.
12129 (avr_out_plus): Add `out_label' argument.
12130 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
12131 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
12132 Handle the case where `insn' is just a pattern.
12133 (avr_out_bitop): Handle the case where `insn' is just a pattern.
12134 (avr_out_round): New function.
12135 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
12136
12211b99 121372013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
12138
12139 * config/microblaze/microblaze.c (microblaze_expand_prologue):
12140 Add check for flag_stack_usage to handle -fstack-usage support
12141
12211b99 121422013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
12143
12144 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
12145 interaction for new Power8 flags and VSX.
12146
df9dda2d
ST
121472013-07-18 Sriraman Tallam <tmsriram@google.com>
12148
12149 PR middle-end/57698
12150 * tree-inline.c (expand_call_inline): Emit errors during
12151 early_inlining only if optimization is not turned on.
12152
0f9cdef4
DM
121532013-07-18 David Malcolm <dmalcolm@redhat.com>
12154
12155 * passes.def: New.
12156
12157 * passes.c (init_optimization_passes): Move the construction of
12158 the pass hierarchy into a new passes.def file.
12159
12160 * Makefile.in (passes.o): Add dependency on passes.def.
12161
2efa4087
DM
121622013-07-18 David Malcolm <dmalcolm@redhat.com>
12163
12164 * passes.c (init_optimization_passes): Introduce macros for
12165 constructing the tree of passes (INSERT_PASSES_AFTER,
12166 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
12167 TERMINATE_PASS_LIST).
12168
bc404e1b
VM
121692013-07-18 Vladimir Makarov <vmakarov@redhat.com>
12170 Wei Mi <wmi@google.com>
12171
12172 PR rtl-optimization/57878
12173 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
12174 top.
12175 (reload_pseudo_compare_func): Check nregs first for reload
12176 pseudos.
12177
d675843f
DM
121782013-07-18 David Malcolm <dmalcolm@redhat.com>
12179
12180 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
12181
c7b3b99f 121822013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
12183
12184 * read-rtl.c (validate_const_int): Once an invalid character is
12185 seen, quit the loop.
12186
12187 * gengtype.c (write_roots): Similarly once we find the "deletable"
12188 or "if_marked" option.
12189
52fceb44
SN
121902013-07-18 Sofiane Naci <sofiane.naci@arm.com>
12191
12192 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
12193 "xtab" and "sat". Move value "clz" from here to ...
12194 (attriubte "type"): ... here.
12195 (satsi_<SAT:code>): Delete "insn" attribute.
12196 (satsi_<SAT:code>_shift): Likewise.
12197 (arm_zero_extendqisi2addsi): Likewise.
12198 (arm_extendqisi2addsi): Likewise.
12199 (clzsi2): Update for attribute changes.
12200 (rbitsi2): Likewise.
371e77e3
UB
12201 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
12202 attribute.
52fceb44
SN
12203 (arm_usatsihi): Likewise.
12204 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12205
006bd006
SN
122062013-07-18 Sofiane Naci <sofiane.naci@arm.com>
12207
12208 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
12209 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
12210 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
12211 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
12212 in alphabetical order.
12213 (attribute "core_cycles"): Update for attribute changes.
12214 (arm_addsi3): Likewise.
12215 (addsi3_compare0): Likewise.
12216 (addsi3_compare0_scratch): Likewise.
12217 (addsi3_compare_op1): Likewise.
12218 (addsi3_compare_op2): Likewise.
12219 (compare_addsi2_op0): Likewise.
12220 (compare_addsi2_op1): Likewise.
12221 (addsi3_carryin_shift_<optab>): Likewise.
12222 (subsi3_carryin_shift): Likewise.
12223 (rsbsi3_carryin_shift): Likewise.
12224 (arm_subsi3_insn): Likewise.
12225 (subsi3_compare0): Likewise.
12226 (subsi3_compare): Likewise.
12227 (arm_andsi3_insn): Likewise.
12228 (thumb1_andsi3_insn): Likewise.
12229 (andsi3_compare0): Likewise.
12230 (andsi3_compare0_scratch): Likewise.
12231 (zeroextractsi_compare0_scratch
12232 (andsi_not_shiftsi_si): Likewise.
12233 (iorsi3_insn): Likewise.
12234 (iorsi3_compare0): Likewise.
12235 (iorsi3_compare0_scratch): Likewise.
12236 (arm_xorsi3): Likewise.
12237 (thumb1_xorsi3_insn): Likewise.
12238 (xorsi3_compare0): Likewise.
12239 (xorsi3_compare0_scratch): Likewise.
12240 (satsi_<SAT:code>_shift): Likewise.
12241 (rrx): Likewise.
12242 (arm_shiftsi3): Likewise.
12243 (shiftsi3_compare0): Likewise.
12244 (not_shiftsi): Likewise.
12245 (not_shiftsi_compare0): Likewise.
12246 (not_shiftsi_compare0_scratch): Likewise.
12247 (arm_one_cmplsi2): Likewise.
12248 (thumb_one_complsi2): Likewise.
12249 (notsi_compare0): Likewise.
12250 (notsi_compare0_scratch): Likewise.
12251 (thumb1_zero_extendhisi2): Likewise.
12252 (arm_zero_extendhisi2): Likewise.
12253 (arm_zero_extendhisi2_v6): Likewise.
12254 (arm_zero_extendhisi2addsi): Likewise.
12255 (thumb1_zero_extendqisi2): Likewise.
12256 (thumb1_zero_extendqisi2_v6): Likewise.
12257 (arm_zero_extendqisi2): Likewise.
12258 (arm_zero_extendqisi2_v6): Likewise.
12259 (arm_zero_extendqisi2addsi): Likewise.
12260 (thumb1_extendhisi2): Likewise.
12261 (arm_extendhisi2): Likewise.
12262 (arm_extendhisi2_v6): Likewise.
12263 (arm_extendqisi): Likewise.
12264 (arm_extendqisi_v6): Likewise.
12265 (arm_extendqisi2addsi): Likewise.
12266 (thumb1_extendqisi2): Likewise.
12267 (thumb1_movdi_insn): Likewise.
12268 (arm_movsi_insn): Likewise.
12269 (movsi_compare0): Likewise.
12270 (movhi_insn_arch4): Likewise.
12271 (movhi_bytes): Likewise.
12272 (arm_movqi_insn): Likewise.
12273 (thumb1_movqi_insn): Likewise.
12274 (arm32_movhf): Likewise.
12275 (thumb1_movhf): Likewise.
12276 (arm_movsf_soft_insn): Likewise.
12277 (thumb1_movsf_insn): Likewise.
12278 (movdf_soft_insn): Likewise.
12279 (thumb_movdf_insn): Likewise.
12280 (arm_cmpsi_insn): Likewise.
12281 (cmpsi_shiftsi): Likewise.
12282 (cmpsi_shiftsi_swp): Likewise.
12283 (arm_cmpsi_negshiftsi_si): Likewise.
12284 (movsicc_insn): Likewise.
12285 (movsfcc_soft_insn): Likewise.
12286 (arith_shiftsi): Likewise.
12287 (arith_shiftsi_compare0
12288 (arith_shiftsi_compare0_scratch
12289 (sub_shiftsi): Likewise.
12290 (sub_shiftsi_compare0
12291 (sub_shiftsi_compare0_scratch
12292 (and_scc): Likewise.
12293 (cond_move): Likewise.
12294 (if_plus_move): Likewise.
12295 (if_move_plus): Likewise.
12296 (if_move_not): Likewise.
12297 (if_not_move): Likewise.
12298 (if_shift_move): Likewise.
12299 (if_move_shift): Likewise.
12300 (if_shift_shift): Likewise.
12301 (if_not_arith): Likewise.
12302 (if_arith_not): Likewise.
12303 (cond_move_not): Likewise.
12304 (thumb1_ashlsi3): Set type attribute.
12305 (thumb1_ashrsi3): Likewise.
12306 (thumb1_lshrsi3): Likewise.
12307 (thumb1_rotrsi3): Likewise.
12308 (shiftsi3_compare0_scratch): Likewise.
12309 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
12310 (neon_mov<mode>): Likewise.
371e77e3
UB
12311 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
12312 attribute changes.
006bd006
SN
12313 (thumb2_movsi_insn): Likewise.
12314 (thumb2_cmpsi_neg_shiftsi): Likewise.
12315 (thumb2_extendqisi_v6): Likewise.
12316 (thumb2_zero_extendhisi2_v6): Likewise.
12317 (thumb2_zero_extendqisi2_v6): Likewise.
12318 (thumb2_shiftsi3_short): Likewise.
12319 (thumb2_addsi3_compare0_scratch): Likewise.
12320 (orsi_not_shiftsi_si): Likewise.
12321 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
12322 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
12323 changes.
12324 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
12325 (1020alu_shift_op): Likewise.
12326 (1020alu_shift_reg_op): Likewise.
12327 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
12328 (alu_shift_op): Likewise.
12329 (alu_shift_reg_op): Likewise.
12330 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
12331 (11_alu_shift_op): Likewise.
12332 (11_alu_shift_reg_op): Likewise.
12333 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
12334 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
12335 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12336 changes.
006bd006
SN
12337 (cortex_a15_alu_shift): Likewise.
12338 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
12339 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
12340 changes.
006bd006
SN
12341 (cortex_a5_alu_shift): Likewise.
12342 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
12343 changes.
12344 (cortex_a53_alu_shift): Likewise.
12345 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
12346 changes.
12347 (cortex_a7_alu_reg): Likewise.
12348 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
12349 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
12350 changes.
006bd006
SN
12351 (cortex_a8_alu_shift): Likewise.
12352 (cortex_a8_alu_shift_reg): Likewise.
12353 (cortex_a8_mov): Likewise.
12354 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
12355 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
12356 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
12357 changes.
12358 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
12359 changes.
006bd006
SN
12360 (cortex_r4_mov): Likewise.
12361 (cortex_r4_alu_shift): Likewise.
12362 (cortex_r4_alu_shift_reg): Likewise.
12363 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
12364 (526_alu_shift_op): Likewise.
12365 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
12366 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
12367 (626te_alu_shift_op): Likewise.
12368 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
12369 (726te_alu_op): Likewise.
12370 (726te_alu_shift_op): Likewise.
12371 (726te_alu_shift_reg_op): Likewise.
12372 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
12373 (mp626_alu_shift_op): Likewise.
12374 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
12375 (pj4_alu_e1_conds): Likewise.
12376 (pj4_alu): Likewise.
12377 (pj4_alu_conds): Likewise.
12378 (pj4_shift): Likewise.
12379 (pj4_shift_conds): Likewise.
12380 (pj4_alu_shift): Likewise.
12381 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
12382 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
12383 changes.
006bd006
SN
12384 (cortexa7_older_only): Likewise.
12385 (cortexa7_younger): Likewise.
12386
651df1b2
DM
123872013-07-18 David Malcolm <dmalcolm@redhat.com>
12388
12389 * ipa-pure-const.c (generate_summary): Rename to...
12390 (pure_const_generate_summary): ... this.
12391
ea717bd7
IS
123922013-07-17 Iain Sandoe <iain@codesourcery.com>
12393
12394 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
12395
a1259a13
YR
123962013-07-17 Yvan Roux <yvan.roux@linaro.org>
12397
12398 PR target/57909
12399 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
12400 usage in HI mode.
12401
167f68ed
AK
124022013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12403
12404 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
12405 enabled without -march=zEC12.
12406 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
12407 flags to be set.
12408
f900a982
MR
124092013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12410
12411 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
12412 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
12413 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
12414 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
12415 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
12416 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
12417 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
12418 ISA_HAS_FP4.
12419 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
12420 and ISA_HAS_NMADD3_NMSUB3.
12421 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
12422 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
12423 (nmsub4<mode>, nmsub3<mode>): Likewise.
12424 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
12425
d4ed27eb
MR
124262013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12427
12428 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
12429 TARGET_MIPS5400 checking.
12430
7a5add18
PB
124312013-07-16 Jakub Jelinek <jakub@redhat.com>
12432 Peter Bergner <bergner@vnet.ibm.com>
12433
12434 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
12435 registers in the comment.
12436 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
12437 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
12438 rather than FIRST_PSEUDO_REGISTERS.
12439
124402013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
12441
12442 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12443 enable extra ISA flags with TARGET_HTM.
12444
d2ab0929
MR
124452013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12446
12447 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
12448 Fix comment typos.
12449
839c74bc
CH
124502013-07-15 Cong Hou <congh@google.com>
12451
12452 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
12453 in compare function for sorting.
12454
7a5add18 124552013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
12456
12457 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
12458 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
12459 * config/rs6000/rs6000.opt: Add -mhtm option.
12460 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
12461 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
12462 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12463 __HTM__ if the HTM instructions are available.
12464 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
12465 htm_spr_reg_operand): New define_predicates.
12466 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
12467 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
12468 Include htm.md.
12469 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
12470 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
12471 HTM builtin functions.
12472 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
12473 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
12474 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
12475 (rs6000_builtin_mask_calculate): Likewise.
12476 (rs6000_option_override_internal): Likewise.
12477 (bdesc_htm): Add new HTM builtin support.
12478 (htm_spr_num): New function.
12479 (htm_spr_regno): Likewise.
12480 (rs6000_htm_spr_icode): Likewise.
12481 (htm_expand_builtin): Likewise.
12482 (htm_init_builtins): Likewise.
12483 (rs6000_expand_builtin): Add support for HTM builtin functions.
12484 (rs6000_init_builtins): Likewise.
371e77e3
UB
12485 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
12486 option.
0258b6e4
PB
12487 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
12488 (TARGET_HTM, MASK_HTM): Define macros.
12489 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
12490 (FIXED_REGISTERS): Likewise.
12491 (CALL_USED_REGISTERS): Likewise.
12492 (CALL_REALLY_USED_REGISTERS): Likewise.
12493 (REG_ALLOC_ORDER): Likewise.
12494 (enum reg_class): Likewise.
12495 (REG_CLASS_NAMES): Likewise.
12496 (REG_CLASS_CONTENTS): Likewise.
12497 (REGISTER_NAMES): Likewise.
12498 (ADDITIONAL_REGISTER_NAMES): Likewise.
12499 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
12500 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
12501 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
12502 * config/rs6000/htm.md: New file.
12503 * config/rs6000/htmintrin.h: New file.
12504 * config/rs6000/htmxlintrin.h: New file.
12505
87dd8ab0
MS
125062013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
12507
12508 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
12509 Define SYMBOL_TINY_GOT, update comment.
12510 * config/aarch64/aarch64.c
12511 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
12512 (aarch64_expand_mov_immediate): Likewise.
12513 (aarch64_print_operand): Likewise.
12514 (aarch64_classify_symbol): Likewise.
12515 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
12516 (ldr_got_tiny): Define.
12517
52d676b6
TG
125182013-07-13 Tobias Grosser <tobias@grosser.es>
12519
12520 PR tree-optimization/54094
12521 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
12522 scheduling dimension for the parallelism check from the polyhedral
12523 information in the AST.
12524 * graphite-dependences.c (carries_deps): Do not assume the schedule is
12525 in 2D + 1 form.
12526
286e8fc1
JM
125272013-07-13 Jason Merrill <jason@redhat.com>
12528
12529 * print-tree.c (debug_vec_tree): Use debug_raw.
12530 (debug_raw (vec<tree, va_gc> &)): New.
12531 (debug_raw (vec<tree, va_gc> *)): New.
12532 * tree.h: Declare them.
12533
e43257e8
BC
125342013-07-13 Bin Cheng <bin.cheng@arm.com>
12535
12536 * ifcvt.c (ifcvt_after_combine): New static variable.
12537 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
12538 for size.
12539 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
12540 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
12541 rest_of_handle_if_after_reload): Pass new argument for if_convert.
12542
da582d46
MR
125432013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
12544
12545 * config/mips/mips.c (mips_expand_call): Remove empty statement.
12546
18b0ea8f
MM
125472013-07-12 Michael Matz <matz@suse.de>
12548
12549 PR middle-end/55771
12550 * convert.c (convert_to_real): Reject non-float inner types.
12551
e4f0f84d
TB
125522013-07-12 Tejas Belagod <tejas.belagod@arm.com>
12553
12554 * config/aarch64/aarch64-protos.h
12555 (aarch64_simd_immediate_valid_for_move): Remove.
12556 * config/aarch64/aarch64.c (simd_immediate_info): New member.
12557 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
12558 cases.
12559 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
12560
76500022
SE
125612013-07-11 Steve Ellcey <sellcey@mips.com>
12562
12563 * config/mips/mips.c (mips_conditional_register_usage): Do not
12564 use t[0-7] registers in MIPS16 mode when optimizing for size.
12565
78039734
ST
125662013-07-11 Sriraman Tallam <tmsriram@google.com>
12567
12568 * config/i386/i386.c (dispatch_function_versions): Fix array
12569 indexing of function_version_info to match actual_versions.
12570
7b24b675
TJ
125712013-07-11 Teresa Johnson <tejohnson@google.com>
12572
12573 * vec.h (struct va_gc): Move release out-of-line.
12574 (va_gc::release): Call ggc_free on released vec.
12575
85d4cbb8
UW
125762013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12577
12578 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
12579 Require GOT register as additional operand in UNSPEC.
12580 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
12581 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
12582 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
12583 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
12584 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
12585 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
12586 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
12587
52b3f9e2
GJL
125882013-07-11 Georg-Johann Lay <avr@gjlay.de>
12589
12590 PR target/57631
12591 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
12592 name seen by assembler/linker rather if available.
12593
3f3e266e
AS
125942013-07-11 Andreas Schwab <schwab@suse.de>
12595
12596 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
12597
21231ca6
VM
125982013-07-10 Vladimir Makarov <vmakarov@redhat.com>
12599
371e77e3 12600 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 12601
d331d374
JM
126022013-07-10 Joseph Myers <joseph@codesourcery.com>
12603
673c2f63
JM
12604 * doc/tm.texi.in: Move hook documentation to ....
12605 * target.def: ... here.
12606
d331d374
JM
12607 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
12608 text on @hook line.
12609 * doc/tm.texi: Regenerate.
12610
dfeadaa0
PC
126112013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
12612
12613 PR c++/57869
12614 * doc/invoke.texi: Document -Wconditionally-supported.
12615
bb6f2bac
GJL
126162013-07-10 Georg-Johann Lay <avr@gjlay.de>
12617
12618 PR target/57844
12619 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
12620 of my_fp.
12621
5219b232
GJL
126222013-07-10 Georg-Johann Lay <avr@gjlay.de>
12623
12624 PR target/57506
12625 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
12626 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
12627 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
12628 Remove duplicate devices.
12629 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
12630 * config/avr/t-multilib: Regenerate.
12631 * config/avr/avr-tables.opt: Regenerate.
12632 * doc/avr-mmcu.texi: Regenerate.
12633
283045c0
GJL
126342013-07-10 Georg-Johann Lay <avr@gjlay.de>
12635
12636 PR target/56987
12637 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
12638
ceb2d59f 126392013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 12640
ceb2d59f
GS
12641 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
12642 the cost of MULT when optimizing for size.
12643
055e0a99
JBG
126442013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12645
12646 * config/cr16/cr16-protos.h: Don't include target.h.
12647
ef43e868
JM
126482013-07-09 Joseph Myers <joseph@codesourcery.com>
12649
12650 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
12651 adjust register size for TDmode and TFmode for VSX registers.
12652
4a283fdf
KT
126532013-07-08 Kai Tietz <ktietz@redhat.com>
12654
12655 PR target/56892
12656 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
12657 hook_bool_const_tree_true.
12658
2cf4c39e
AK
126592013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12660
12661 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
12662 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
12663 * config/s390/s390.md: Define FPR*_REGNUM constants.
12664 Fix FPR2_REGNUM constant (18 -> 17).
12665 ("*trunc<BFP:mode><DFP_ALL:mode>2")
12666 ("*trunc<DFP_ALL:mode><BFP:mode>2")
12667 ("trunc<BFP:mode><DFP_ALL:mode>2")
12668 ("trunc<DFP_ALL:mode><BFP:mode>2")
12669 ("*extend<BFP:mode><DFP_ALL:mode>2")
12670 ("*extend<DFP_ALL:mode><BFP:mode>2")
12671 ("extend<BFP:mode><DFP_ALL:mode>2")
12672 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
12673 FPR4_REGNUM.
12674
e6ac0270 126752013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 12676
6a2fa4b2 12677 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 12678
b89b22fc
AK
126792013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12680
12681 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
12682 and cfun_fpr_bit_p to cfun_fpr_save_p.
12683 (s390_frame_area, s390_register_info, s390_frame_info)
12684 (s390_emit_prologue, s390_emit_epilogue)
12685 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
12686 register numbers.
12687 * config/s390/s390.h: Define *_REGNUM macros for floating point
12688 register numbers.
12689
07f398aa
EB
126902013-07-08 Eric Botcazou <ebotcazou@adacore.com>
12691
12692 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
12693
75fefa91
PCC
126942013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
12695
12696 PR rtl-optimization/57786
12697 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
12698 and break out of the loop when it is set to false.
12699
046f1eee
JJ
127002013-07-08 Jakub Jelinek <jakub@redhat.com>
12701
8140c065
JJ
12702 PR target/57819
12703 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
12704 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
12705 (const_int 63)) 0)).
12706 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
12707 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
12708 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
12709
046f1eee
JJ
12710 PR rtl-optimization/57829
12711 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
12712 mask bits outside of mode are just sign-extension from mode to HWI.
12713
930b700b
MZ
127142013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12715
12716 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
12717 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
12718 adjust_address instead of change_address to keep info about alignment.
12719 (emit_strmov): Remove.
12720 (emit_memmov): New function.
12721 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
12722 (expand_movmem_epilogue): Likewise and return updated rtx for
12723 destination.
12724 (expand_constant_movmem_prologue): Likewise and return updated rtx for
12725 destination and source.
12726 (decide_alignment): Refactor, handle vector_loop.
12727 (ix86_expand_movmem): Likewise.
12728 (ix86_expand_setmem): Likewise.
12729 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
12730
7b9d1bd8
UB
127312013-07-07 Uros Bizjak <ubizjak@gmail.com>
12732
12733 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
12734 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
12735
eabb5f48
UB
127362013-07-06 Uros Bizjak <ubizjak@gmail.com>
12737
12738 * config/i386/sse.md (sse_movlhps): Change alternative 3
12739 of operand 2 to "m".
12740
127412013-07-06 Uros Bizjak <ubizjak@gmail.com>
12742
12743 PR target/57807
12744 * config/i386/sse.md (iptr): New mode attribute.
12745 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
12746 (<sse>_vm<plusminus_insn><mode>3): Ditto.
12747 (<sse>_vmmul<mode>3): Ditto.
12748 (<sse>_vmdiv<mode>3): Ditto.
12749 (sse_vmrcpv4sf2): Ditto.
12750 (<sse>_vmsqrt<mode>2): Ditto.
12751 (sse_vmrsqrtv4sf2): Ditto.
12752 (<sse>_vm<code><mode>3): Ditto.
12753 (avx_vmcmp<mode>3): Ditto.
12754 (<sse>_vmmaskcmp<mode>3): Ditto.
12755 (<sse>_comi): Ditto.
12756 (<sse>_ucomi): Ditto.
12757 (*xop_vmfrcz_<mode>): Ditto.
12758 (*fmai_fmadd_<mode>): Ditto.
12759 (*fmai_fmsub_<mode>): Ditto.
12760 (*fmai_fnmadd_<mode>): Ditto.
12761 (*fmai_fnmsub_<mode>): Ditto.
12762 (*fma4i_vmfmadd_<mode>): Ditto.
12763 (*fma4i_vmfmsub_<mode>): Ditto.
12764 (*fma4i_vmfnmadd_<mode>): Ditto.
12765 (*fma4i_vmfnmsub_<mode>): Ditto.
12766 (*xop_vmfrcz_<mode>): Ditto.
12767 (sse_cvtps2pi): Ditto.
12768 (sse_cvttps2pi): Ditto.
12769 (sse_cvtss2si): Ditto.
12770 (sse_cvtss2si_2): Ditto.
12771 (sse_cvtss2siq_2): Ditto.
12772 (sse_cvttss2si): Ditto.
12773 (sse_cvttss2siq): Ditto.
12774 (sse_cvtsd2si): Ditto.
12775 (sse_cvtsd2si_2): Ditto.
12776 (sse_cvtsd2siq_2): Ditto.
12777 (sse_cvttsd2si): Ditto.
12778 (sse_cvttsd2siq): Ditto.
12779 (sse_cvtsd2ss): Ditto.
12780 (sse_cvtss2sd): Ditto.
12781 (avx2_pbroadcast<mode>): Ditto.
12782 (avx2_pbroadcast<mode>_1): Ditto.
12783 (*avx_vperm_broadcast_v4sf): Ditto.
12784
12785 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
12786 (sse_movlhps): Ditto.
12787 (sse_storehps): Ditto.
12788 (sse_loadhps): Ditto.
12789 (sse_storelps): Ditto.
12790 (sse_loadlps): Ditto.
12791 (*vec_concatv4sf): Ditto.
12792 (*vec_interleave_highv2df): Ditto.
12793 (*vec_interleave_lowv2df): Ditto.
12794 (*vec_extractv2df_1_sse): Ditto.
12795 (*vec_extractv2df_0_sse): Ditto.
12796 (sse2_storelpd): Ditto.
12797 (sse2_loadlpd): Ditto.
12798 (sse2_movsd): Ditto.
12799 (*vec_concatv4si): Ditto.
12800 (vec_concatv2di): Ditto.
12801
12802 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
12803 for Intel asm dialect.
12804 (mmx_punpcklwd): Ditto.
12805 (mmx_punpckldq): Ditto.
12806
12807 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
12808 for intel assembler dialect.
12809
1f6eac90
JJ
128102013-07-06 Jakub Jelinek <jakub@redhat.com>
12811
12812 PR target/29776
12813 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
12814 for BUILT_IN_C{LZ,LRSB}*.
12815 * tree.h (CASE_INT_FN): Add FN##IMAX case.
12816 * tree-vrp.c (extract_range_basic): Handle
12817 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
12818 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
12819 fall thru to code calling set_value*.
12820 * builtins.c (expand_builtin): Remove *IMAX cases.
12821 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
12822 if width is bigger than 2*HWI.
12823
2b778c9d
VM
128242013-07-05 Vladimir Makarov <vmakarov@redhat.com>
12825
12826 PR rtl-optimization/55342
12827 * lra-int.h (lra_subreg_reload_pseudos): New.
12828 * lra.c: Add undoing optional reloads to the block diagram.
12829 (lra_subreg_reload_pseudos): New.
12830 (lra_optional_reload_pseudos): Change comments.
12831 (lra): Init and clear lra_subreg_reload_pseudos. Clear
12832 lra_optional_reload_pseudos after undo transformations.
12833 * lra-assigns.c (pseudo_prefix_title): New.
12834 (lra_setup_reg_renumber): Use it.
12835 (spill_for): Ditto. Check subreg reload pseudos too.
12836 (assign_by_spills): Consider subreg reload pseudos too.
12837 * lra-constraints.c (simplify_operand_subreg): Use
12838 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
12839 (curr_insn_transform): Recognize and do optional reloads.
12840 (undo_optional_reloads): New.
12841 (lra_undo_inheritance): Call undo_optional_reloads.
12842
207156e4
TQ
128432013-07-05 Thomas Quinot <quinot@adacore.com>
12844
12845 * tree-complex.c (expand_complex_operations_1): Fix typo.
12846
8990e73a
TB
128472013-07-04 Tejas Belagod <tejas.belagod@arm.com>
12848
12849 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
12850 (tune_params): New member 'const vec_costs'.
12851 * config/aarch64/aarch64.c (generic_vector_cost): New.
12852 (generic_tunings): New member 'generic_vector_cost'.
12853 (aarch64_builtin_vectorization_cost): New.
12854 (aarch64_add_stmt_cost): New.
12855 (TARGET_VECTORIZE_ADD_STMT_COST): New.
12856 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
12857
f7bc421d
JJ
128582013-07-03 Jakub Jelinek <jakub@redhat.com>
12859
12860 PR target/57777
12861 * config/i386/predicates.md (vsib_address_operand): Disallow
12862 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
12863
e90d1568
HPN
128642013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
12865
12866 PR middle-end/55030
12867 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
12868 expand_builtin_setjmp_receiver.
12869 (expand_label): Adjust, call expand_builtin_setjmp_receiver
12870 with NULL for the label parameter.
12871 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
12872 the frame-pointer. Adjust comments.
12873 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
12874 only if LABEL is non-NULL.
12875
cbd7413b
YZ
128762013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
12877
12878 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
12879 (ARM_ABI_AAPCS64): Ditto.
12880 (arm_abi): Ditto.
12881 (ARM_DEFAULT_ABI): Ditto.
12882
dec11868
JG
128832013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
12884
12885 * config/aarch64/aarch64-builtins.c
12886 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
12887 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
12888 (st1): Likewise.
12889 * config/aarch64/aarch64-simd.md
12890 (aarch64_ld1<VALL:mode>): New.
12891 (aarch64_st1<VALL:mode>): Likewise.
12892 * config/aarch64/arm_neon.h
12893 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
12894
786fb9b6
ST
128952013-07-02 Sriraman Tallam <tmsriram@google.com>
12896
0ba6aff3
UB
12897 * config/i386/i386.c (gate_insert_vzeroupper): Check if
12898 target ISA is AVX.
786fb9b6
ST
12899 (ix86_option_override_internal):Turn on all -mavx target flags by
12900 default as they are dependent on AVX anyway.
12901
4b043553
CC
129022013-07-02 Cary Coutant <ccoutant@google.com>
12903
12904 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
12905 deterministic hash.
12906 (loc_checksum_ordered): Likewise.
12907 (hash_loc_operands): Remove inline keyword.
12908
c4e87a13
JJ
129092013-07-02 Jakub Jelinek <jakub@redhat.com>
12910
12911 PR tree-optimization/57741
12912 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
12913 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
12914 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
12915 Allow REAL_CST step_exprs if flag_associative_math.
12916 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
12917
26366d28
IB
129182013-07-02 Ian Bolton <ian.bolton@arm.com>
12919
0ba6aff3 12920 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 12921
2879bb2b
IB
129222013-07-02 Ian Bolton <ian.bolton@arm.com>
12923
12924 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
12925
afc5e8a6
KT
129262013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12927
12928 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
12929 encoding.
12930 (iorsi3_insn): Likewise.
12931 (arm_xorsi3): Likewise.
12932
31f8442b
SN
129332013-07-01 Sofiane Naci <sofiane.naci@arm.com>
12934
12935 * arm.md (attribute "wtype"): Delete. Move attribute values from here
12936 to ...
12937 (attribute "type"): ... here, and prefix with "wmmx_".
12938 (attribute "core_cycles"): Update for attribute changes.
12939 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
12940 (tbcstv4hi): Likewise.
12941 (tbcstv2si): Likewise.
12942 (iwmmxt_iordi3): Likewise.
12943 (iwmmxt_xordi3): Likewise.
12944 (iwmmxt_anddi3): Likewise.
12945 (iwmmxt_nanddi3): Likewise.
12946 (iwmmxt_arm_movdi): Likewise.
12947 (iwmmxt_movsi_insn): Likewise.
12948 (mov<mode>_internal): Likewise.
12949 (and<mode>3_iwmmxt): Likewise.
12950 (ior<mode>3_iwmmxt): Likewise.
12951 (xor<mode>3_iwmmxt): Likewise.
12952 (add<mode>3_iwmmxt): Likewise.
12953 (ssaddv8qi3): Likewise.
12954 (ssaddv4hi3): Likewise.
12955 (ssaddv2si3): Likewise.
12956 (usaddv8qi3): Likewise.
12957 (usaddv4hi3): Likewise.
12958 (usaddv2si3): Likewise.
12959 (sub<mode>3_iwmmxt): Likewise.
12960 (sssubv8qi3): Likewise.
12961 (sssubv4hi3): Likewise.
12962 (sssubv2si3): Likewise.
12963 (ussubv8qi3): Likewise.
12964 (ussubv4hi3): Likewise.
12965 (ussubv2si3): Likewise.
12966 (mulv4hi3_iwmmxt): Likewise.
12967 (smulv4hi3_highpart): Likewise.
12968 (umulv4hi3_highpart): Likewise.
12969 (iwmmxt_wmacs): Likewise.
12970 (iwmmxt_wmacsz): Likewise.
12971 (iwmmxt_wmacu): Likewise.
12972 (iwmmxt_wmacuz): Likewise.
12973 (iwmmxt_clrdi): Likewise.
12974 (iwmmxt_clrv8qi): Likewise.
12975 (iwmmxt_clr4hi): Likewise.
12976 (iwmmxt_clr2si): Likewise.
12977 (iwmmxt_uavgrndv8qi3): Likewise.
12978 (iwmmxt_uavgrndv4hi3): Likewise.
12979 (iwmmxt_uavgv8qi3): Likewise.
12980 (iwmmxt_uavgv4hi3): Likewise.
12981 (iwmmxt_tinsrb): Likewise.
12982 (iwmmxt_tinsrh): Likewise.
12983 (iwmmxt_tinsrw): Likewise.
12984 (iwmmxt_textrmub): Likewise.
12985 (iwmmxt_textrmsb): Likewise.
12986 (iwmmxt_textrmuh): Likewise.
12987 (iwmmxt_textrmsh): Likewise.
12988 (iwmmxt_textrmw): Likewise.
12989 (iwmxxt_wshufh): Likewise.
12990 (eqv8qi3): Likewise.
12991 (eqv4hi3): Likewise.
12992 (eqv2si3): Likewise.
12993 (gtuv8qi3): Likewise.
12994 (gtuv4hi3): Likewise.
12995 (gtuv2si3): Likewise.
12996 (gtv8qi3): Likewise.
12997 (gtv4hi3): Likewise.
12998 (gtv2si3): Likewise.
12999 (smax<mode>3_iwmmxt): Likewise.
13000 (umax<mode>3_iwmmxt): Likewise.
13001 (smin<mode>3_iwmmxt): Likewise.
13002 (umin<mode>3_iwmmxt): Likewise.
13003 (iwmmxt_wpackhss): Likewise.
13004 (iwmmxt_wpackwss): Likewise.
13005 (iwmmxt_wpackdss): Likewise.
13006 (iwmmxt_wpackhus): Likewise.
13007 (iwmmxt_wpackwus): Likewise.
13008 (iwmmxt_wpackdus): Likewise.
13009 (iwmmxt_wunpckihb): Likewise.
13010 (iwmmxt_wunpckihh): Likewise.
13011 (iwmmxt_wunpckihw): Likewise.
13012 (iwmmxt_wunpckilb): Likewise.
13013 (iwmmxt_wunpckilh): Likewise.
13014 (iwmmxt_wunpckilw): Likewise.
13015 (iwmmxt_wunpckehub): Likewise.
13016 (iwmmxt_wunpckehuh): Likewise.
13017 (iwmmxt_wunpckehuw): Likewise.
13018 (iwmmxt_wunpckehsb): Likewise.
13019 (iwmmxt_wunpckehsh): Likewise.
13020 (iwmmxt_wunpckehsw): Likewise.
13021 (iwmmxt_wunpckelub): Likewise.
13022 (iwmmxt_wunpckeluh): Likewise.
13023 (iwmmxt_wunpckeluw): Likewise.
13024 (iwmmxt_wunpckelsb): Likewise.
13025 (iwmmxt_wunpckelsh): Likewise.
13026 (iwmmxt_wunpckelsw): Likewise.
13027 (ror<mode>3): Likewise.
13028 (ashr<mode>3_iwmmxt): Likewise.
13029 (lshr<mode>3_iwmmxt): Likewise.
13030 (ashl<mode>3_iwmmxt): Likewise.
13031 (ror<mode>3_di): Likewise.
13032 (ashr<mode>3_di): Likewise.
13033 (lshr<mode>3_di): Likewise.
13034 (ashl<mode>3_di): Likewise.
13035 (iwmmxt_wmadds): Likewise.
13036 (iwmmxt_wmaddu): Likewise.
13037 (iwmmxt_tmia): Likewise.
13038 (iwmmxt_tmiaph): Likewise.
13039 (iwmmxt_tmiabb): Likewise.
13040 (iwmmxt_tmiatb): Likewise.
13041 (iwmmxt_tmiabt): Likewise.
13042 (iwmmxt_tmiatt): Likewise.
13043 (iwmmxt_tmovmskb): Likewise.
13044 (iwmmxt_tmovmskh): Likewise.
13045 (iwmmxt_tmovmskw): Likewise.
13046 (iwmmxt_waccb): Likewise.
13047 (iwmmxt_wacch): Likewise.
13048 (iwmmxt_waccw): Likewise.
13049 (iwmmxt_waligni): Likewise.
13050 (iwmmxt_walignr): Likewise.
13051 (iwmmxt_walignr0): Likewise.
13052 (iwmmxt_walignr1): Likewise.
13053 (iwmmxt_walignr2): Likewise.
13054 (iwmmxt_walignr3): Likewise.
13055 (iwmmxt_wsadb): Likewise.
13056 (iwmmxt_wsadh): Likewise.
13057 (iwmmxt_wsadbz): Likewise.
13058 (iwmmxt_wsadhz): Likewise.
13059 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
13060 (iwmmxt_wabsdiffb): Likewise.
13061 (iwmmxt_wabsdiffh): Likewise.
13062 (iwmmxt_wabsdiffw): Likewise.
13063 (iwmmxt_waddsubhx): Likewise
13064 (iwmmxt_wsubaddhx): Likewise.
13065 (addc<mode>3): Likewise.
13066 (iwmmxt_avg4): Likewise.
13067 (iwmmxt_avg4r): Likewise.
13068 (iwmmxt_wmaddsx): Likewise.
13069 (iwmmxt_wmaddux): Likewise.
13070 (iwmmxt_wmaddsn): Likewise.
13071 (iwmmxt_wmaddun): Likewise.
13072 (iwmmxt_wmulwsm): Likewise.
13073 (iwmmxt_wmulwum): Likewise.
13074 (iwmmxt_wmulsmr): Likewise.
13075 (iwmmxt_wmulumr): Likewise.
13076 (iwmmxt_wmulwsmr): Likewise.
13077 (iwmmxt_wmulwumr): Likewise.
13078 (iwmmxt_wmulwl): Likewise.
13079 (iwmmxt_wqmulm): Likewise.
13080 (iwmmxt_wqmulwm): Likewise.
13081 (iwmmxt_wqmulmr): Likewise.
13082 (iwmmxt_wqmulwmr): Likewise.
13083 (iwmmxt_waddbhusm): Likewise.
13084 (iwmmxt_waddbhusl): Likewise.
13085 (iwmmxt_wqmiabb): Likewise.
13086 (iwmmxt_wqmiabt): Likewise.
13087 (iwmmxt_wqmiatb): Likewise.
13088 (iwmmxt_wqmiatt): Likewise.
13089 (iwmmxt_wqmiabbn): Likewise.
13090 (iwmmxt_wqmiabtn): Likewise.
13091 (iwmmxt_wqmiatbn): Likewise.
13092 (iwmmxt_wqmiattn): Likewise.
13093 (iwmmxt_wmiabb): Likewise.
13094 (iwmmxt_wmiabt): Likewise.
13095 (iwmmxt_wmiatb): Likewise.
13096 (iwmmxt_wmiatt): Likewise.
13097 (iwmmxt_wmiabbn): Likewise.
13098 (iwmmxt_wmiabtn): Likewise.
13099 (iwmmxt_wmiatbn): Likewise.
13100 (iwmmxt_wmiattn): Likewise.
13101 (iwmmxt_wmiawbb): Likewise.
13102 (iwmmxt_wmiawbt): Likewise.
13103 (iwmmxt_wmiawtb): Likewise.
13104 (iwmmxt_wmiawtt): Likewise.
13105 (iwmmxt_wmiawbbn): Likewise.
13106 (iwmmxt_wmiawbtn): Likewise.
13107 (iwmmxt_wmiawtbn): Likewise.
13108 (iwmmxt_wmiawttn): Likewise.
13109 (iwmmxt_wmerge): Likewise.
13110 (iwmmxt_tandc<mode>3): Likewise.
13111 (iwmmxt_torc<mode>3): Likewise.
13112 (iwmmxt_torvsc<mode>3): Likewise.
13113 (iwmmxt_textrc<mode>3): Likewise.
13114 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
13115 (wmmxt_pack): Likewise.
13116 (wmmxt_mult_c1): Likewise.
13117 (wmmxt_mult_c2): Likewise.
13118 (wmmxt_alu_c1): Likewise.
13119 (wmmxt_alu_c2): Likewise.
13120 (wmmxt_alu_c3): Likewise.
13121 (wmmxt_transfer_c1): Likewise.
13122 (wmmxt_transfer_c2): Likewise.
13123 (wmmxt_transfer_c3): Likewise.
13124 (marvell_f_iwmmxt_wstr): Likewise.
13125 (marvell_f_iwmmxt_wldr): Likewise.
13126
bdb7bf8a
YZ
131272013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
13128
0ba6aff3 13129 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 13130
e6631d38
VM
131312013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13132
13133 Revert:
13134 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13135 * lra-constraints.c (need_for_split_p): Check call used hard regs
13136 living through calls.
13137
13138 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
13139 call used regs for call insn.
13140
53c1275b
JJ
131412013-06-28 Jakub Jelinek <jakub@redhat.com>
13142
13143 PR target/57736
0ba6aff3
UB
13144 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
13145 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 13146
1141ed3f
BI
131472013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
13148
13149 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 13150
e32e4c4a
VM
131512013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13152
13153 * lra-constraints.c (need_for_split_p): Check call used hard regs
13154 living through calls.
13155
f161bfd3
MM
131562013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
13157
13158 PR target/57744
13159 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
13160 to tie with any other modes. Eliminate Altivec vector mode tests,
13161 since these are a subset of ALTIVEC or VSX vector modes. Simplify
13162 code, to return 0 if testing MODE2 for a condition, if we've
13163 already tested MODE1 for the same condition.
13164
7eda14e1
MS
131652013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13166
13167 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
13168 layout.
13169
c822f852
MS
131702013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13171
13172 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
13173 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
13174
da4f13a4
MS
131752013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13176
0ba6aff3
UB
13177 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
13178 Define.
da4f13a4
MS
13179 (aarch64_symbolic_constant_p): Remove.
13180 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
13181 static. Fix line length and white space.
13182 (aarch64_symbolic_constant_p): Remove.
13183 * config/aarch64/predicates.md (aarch64_valid_symref):
13184 Use aarch64_classify_symbol_expression.
13185
956a95a5
KT
131862013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13187
13188 * config/arm/constraints.md (Ts): New constraint.
13189 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
13190 16-bit encodings.
13191 (compare_scc): Use "Ts" constraint for operand 0.
13192 (ior_scc_scc): Likewise.
13193 (and_scc_scc): Likewise.
13194 (and_scc_scc_nodom): Likewise.
13195 (ior_scc_scc_cmp): Likewise for operand 7.
13196 (and_scc_scc_cmp): Likewise.
13197 * config/arm/thumb2.md (thumb2_movsi_insn):
13198 Add alternatives for 16-bit encodings.
13199 (thumb2_movhi_insn): Likewise.
13200 (thumb2_movsicc_insn): Likewise.
13201 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
13202 (thumb2_negscc): Use "Ts" constraint.
13203 Move mvn instruction outside cond_exec block.
13204 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
13205 for 16-bit encodings.
13206
31dfce10
KT
132072013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13208
13209 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
13210 encoding.
13211 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
13212 (mulsi3subsi): Likewise.
13213 (mulsidi3adddi): Likewise.
13214 (mulsidi3_v6): Likewise.
13215 (umulsidi3_v6): Likewise.
13216 (umulsidi3adddi_v6): Likewise.
13217 (smulsi3_highpart_v6): Likewise.
13218 (umulsi3_highpart_v6): Likewise.
13219 (mulhisi3tb): Likewise.
13220 (mulhisi3bt): Likewise.
13221 (mulhisi3tt): Likewise.
13222 (maddhisi4): Likewise.
13223 (maddhisi4tb): Likewise.
13224 (maddhisi4tt): Likewise.
13225 (maddhidi4): Likewise.
13226 (maddhidi4tb): Likewise.
13227 (maddhidi4tt): Likewise.
13228 (zeroextractsi_compare0_scratch): Likewise.
13229 (insv_zero): Likewise.
13230 (insv_t2): Likewise.
13231 (anddi_notzesidi_di): Likewise.
13232 (anddi_notsesidi_di): Likewise.
13233 (andsi_notsi_si): Likewise.
13234 (iordi_zesidi_di): Likewise.
13235 (xordi_zesidi_di): Likewise.
13236 (andsi_iorsi3_notsi): Likewise.
13237 (smax_0): Likewise.
13238 (smax_m1): Likewise.
13239 (smin_0): Likewise.
13240 (not_shiftsi): Likewise.
13241 (unaligned_loadsi): Likewise.
13242 (unaligned_loadhis): Likewise.
13243 (unaligned_loadhiu): Likewise.
13244 (unaligned_storesi): Likewise.
13245 (unaligned_storehi): Likewise.
13246 (extv_reg): Likewise.
13247 (extzv_t2): Likewise.
13248 (divsi3): Likewise.
13249 (udivsi3): Likewise.
13250 (arm_zero_extendhisi2addsi): Likewise.
13251 (arm_zero_extendqisi2addsi): Likewise.
13252 (compareqi_eq0): Likewise.
13253 (arm_extendhisi2_v6): Likewise.
13254 (arm_extendqisi2addsi): Likewise.
13255 (arm_movt): Likewise.
13256 (thumb2_ldrd): Likewise.
13257 (thumb2_ldrd_base): Likewise.
13258 (thumb2_ldrd_base_neg): Likewise.
13259 (thumb2_strd): Likewise.
13260 (thumb2_strd_base): Likewise.
13261 (thumb2_strd_base_neg): Likewise.
13262 (arm_negsi2): Add alternative for 16-bit encoding.
13263 (arm_one_cmplsi2): Likewise.
13264
1572e697
KT
132652013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13266
13267 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
13268 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
13269 (movdfcc): Likewise.
13270 * config/arm/vfp.md (*thumb2_movsf_vfp):
13271 Disable predication for arm_restrict_it.
13272 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
13273 (*thumb2_movdfcc_vfp): Likewise.
13274 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
13275 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
13276 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
13277 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
13278 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
13279 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
13280 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
13281 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
13282 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
13283 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
13284 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
13285 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
13286 Disable predication for arm_restrict_it.
13287
ebf8f0ea
KY
132882013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
13289
13290 * config/i386/bmiintrin.h (_bextr_u32): New.
13291 (_bextr_u64): Ditto.
13292
a290fcda
RS
132932013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
13294
13295 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
13296 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
13297 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
13298 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
13299 * config/mips/n32-elf.h: ...this new file.
13300
ea169996
MG
133012013-06-27 Marc Glisse <marc.glisse@inria.fr>
13302
13303 PR target/57224
13304 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
13305 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
13306
12211b99 133072013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
13308
13309 * config/mips/mips-tables.opt: Regenerate.
13310 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 13311 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 13312 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 13313
2444244e
JJ
133142013-06-27 Jakub Jelinek <jakub@redhat.com>
13315
cd06d2a2
JJ
13316 PR target/57623
13317 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
13318 constraints of operand 1 and 2.
13319
2444244e
JJ
13320 PR target/57623
13321 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
13322 to match RTL canonicalization. Swap predicates and
13323 constraints of operand 1 and 2.
13324
2f259720
VM
133252013-06-27 Vladimir Makarov <vmakarov@redhat.com>
13326
0ba6aff3
UB
13327 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
13328 Process OP_INOUT regs for splitting too.
2f259720 13329
fef4d2b3
JJ
133302013-06-27 Jakub Jelinek <jakub@redhat.com>
13331
13332 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
13333 decl before the loop, initialize to NULL.
13334 (vectorizable_load): Initialize ptr_incr to NULL.
13335
79ee9826
MJ
133362013-06-27 Martin Jambor <mjambor@suse.cz>
13337
13338 PR lto/57208
13339 * ipa-ref.h (ipa_maybe_record_reference): Declare.
13340 * ipa-ref.c (ipa_maybe_record_reference): New function.
13341 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
13342 * ipa-cp.c (create_specialized_node): Record potential references from
13343 aggvals.
13344 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
13345
e18b4a81
YZ
133462013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
13347
13348 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
13349 parameter 'mode' of type 'enum machine_mode mode'; change to pass
13350 'mode' to force_reg.
13351 (aarch64_add_offset): Update calls to aarch64_force_temporary.
13352 (aarch64_expand_mov_immediate): Likewise.
13353
9c023bf0
YZ
133542013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
13355
13356 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
13357 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
13358
5a3fe9b6
AK
133592013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13360
13361 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
13362 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
13363 (struct machine_function): Add tbegin_p.
13364 (s390_canonicalize_comparison): Fold CC mode compares to
13365 conditional jump if possible.
13366 (s390_emit_jump): Return the emitted jump.
13367 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
13368 Handle CCRAWmode compares.
13369 (s390_option_override): Default to -mhtm if available.
13370 (s390_reg_clobbered_rtx): Handle floating point regs as well.
13371 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
13372 FPRs instead of df_regs_ever_live_p.
13373 (s390_optimize_nonescaping_tx): New function.
13374 (s390_init_frame_layout): Extend clobbered_regs array to cover
13375 FPRs as well.
13376 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
13377 (s390_expand_tbegin): New function.
13378 (enum s390_builtin): New enum definition.
13379 (code_for_builtin): New array definition.
13380 (s390_init_builtins): New function.
13381 (s390_expand_builtin): New function.
13382 (TARGET_INIT_BUILTINS): Define.
13383 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 13384 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
13385 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
13386 (s390_alc_comparison): Likewise.
13387 * config/s390/s390-modes.def: Add CCRAWmode.
13388 * config/s390/s390.h (processor_flags): Add PF_TX.
13389 (TARGET_CPU_HTM): Define macro.
13390 (TARGET_HTM): Define macro.
13391 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
13392 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
13393 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
13394 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 13395 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
13396 (TBEGIN_MASK, TBEGINC_MASK): New constants.
13397 ("*cc_to_int"): Move up.
13398 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
13399 constants other than 0.
13400 ("*ccraw_to_int"): New insn and splitter definition.
13401 ("tbegin", "tbegin_nofloat", "tbegin_retry")
13402 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
13403 ("tx_assist"): New expander.
13404 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
13405 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
13406 * config/s390/s390.opt: Add -mhtm option.
13407 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
13408 * config/s390/htmxlintrin.h: New file.
13409 * config/s390/htmintrin.h: New file.
13410 * config/s390/s390intrin.h: New file.
13411 * doc/extend.texi: Document htm builtins.
13412 * config.gcc: Add the new header files to extra_headers.
13413
9e216629
TS
134142013-06-26 Thomas Schwinge <thomas@codesourcery.com>
13415
13416 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 13417 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 13418
fd8c65e7 134192013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13420 Pat Haugen <pthaugen@us.ibm.com>
13421 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
13422
13423 * config/rs6000/power8.md: New.
13424 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
13425 setting for power8 entry.
13426 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
13427 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
13428 test for Power4/Power5 only.
13429 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
13430 support.
13431 (force_new_group): Adjust comment.
13432 * config/rs6000/rs6000.md: Include power8.md.
13433
b24a2ce5
GY
134342013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
13435
13436 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
13437 * config/arm/arm-protos.h (arm_max_conditional_execute): New
13438 declaration.
13439 (tune_params): Update comment.
13440 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
13441 (arm_max_conditional_execute): New function.
13442 (thumb2_final_prescan_insn): Use max_insn_skipped and
13443 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
13444
f6fdeb62
JJ
134452013-06-25 Jakub Jelinek <jakub@redhat.com>
13446
13447 PR tree-optimization/57705
13448 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
13449 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 13450 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
13451 (get_initial_def_for_induction): Handle SSA_NAME IV step.
13452
c13bc3d9
MJ
134532013-06-25 Martin Jambor <mjambor@suse.cz>
13454
13455 PR middle-end/57670
13456 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
13457 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
13458 calls in the dump.
13459 (ipa_note_param_call): Initialize member_ptr flag.
13460 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
13461 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
13462 (ipa_write_indirect_edge_info): Stream member_ptr flag.
13463 (ipa_read_indirect_edge_info): Likewise.
13464
8a845901
RB
134652013-06-25 Richard Biener <rguenther@suse.de>
13466
13467 PR middle-end/56977
13468 * passes.c (init_optimization_passes): Move pass_fold_builtins
13469 and pass_dce earlier with -Og.
13470
33be0bec
EB
134712013-06-25 Eric Botcazou <ebotcazou@adacore.com>
13472
13473 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
13474 <BIT_FIELD_REF>: Remove trailing TAB.
13475 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
13476 remove blank line.
13477
5fe8e757
MJ
134782013-06-24 Martin Jambor <mjambor@suse.cz>
13479
13480 PR tree-optimization/57358
13481 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
13482 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
13483 (ipa_analyze_params_uses): Generate pessimistic info when true.
13484
44a60244
MJ
134852013-06-24 Martin Jambor <mjambor@suse.cz>
13486
13487 PR tree-optimization/57539
13488 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
13489 global.inlined_to of the new node to it. All callers changed.
13490 * ipa-inline-transform.c (clone_inlined_nodes): New variable
13491 inlining_into, pass it to cgraph_clone_node.
13492 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
13493 ipa_free_edge_args_substructures.
13494 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
13495 rdesc linked list. Do not assert rdesc edges have inlined caller.
13496 Assert we have found an rdesc in the rdesc list.
13497
7c5848b8
RB
134982013-06-24 Richard Biener <rguenther@suse.de>
13499
0ba6aff3 13500 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
13501 (pointer_set_lookup): Declare.
13502 (class pointer_map): New template class implementing a
13503 generic pointer to T map.
13504 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
13505 pointer_map<T>::contains, pointer_map<T>::insert,
13506 pointer_map<T>::traverse): New functions.
13507 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
13508 (pointer_set_lookup): New function.
13509 (pointer_set_contains): Use pointer_set_lookup.
13510 (pointer_set_insert): Likewise.
13511 (insert_aux): Remove.
13512 (struct pointer_map_t): Embed a pointer_set_t.
13513 (pointer_map_create): Adjust.
13514 (pointer_map_destroy): Likewise.
13515 (pointer_map_contains): Likewise.
13516 (pointer_map_insert): Likewise.
13517 (pointer_map_traverse): Likewise.
13518 * tree-streamer.h (struct streamer_tree_cache_d): Use a
13519 pointer_map<unsigned> instead of a pointer_map_t.
13520 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
13521 (streamer_tree_cache_lookup): Likewise.
13522 (streamer_tree_cache_create): Likewise.
13523 (streamer_tree_cache_delete): Likewise.
13524 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
13525 pointer_map<unsigned> instead of a pointer_map_t.
13526 (lto_init_tree_ref_encoder): Adjust.
13527 (lto_destroy_tree_ref_encoder): Likewise.
13528 * lto-section-out.c (lto_output_decl_index): Likewise.
13529 (lto_record_function_out_decl_state): Likewise.
13530 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
13531
3dbc97a9
RB
135322013-06-24 Richard Biener <rguenther@suse.de>
13533
13534 PR tree-optimization/57488
13535 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
13536
8345965a
AM
135372013-06-24 Alan Modra <amodra@gmail.com>
13538
13539 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
13540 (gen_easy_altivec_constant): Likewise.
13541 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13542 easy_vector_constant_msb): Likewise.
13543
b7df379f
JJ
135442013-06-23 Jakub Jelinek <jakub@redhat.com>
13545
13546 PR target/57688
13547 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
13548 add missing return true.
13549
12211b99 135502013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
13551
13552 PR target/52483
13553 * config/sh/predicates.md (general_extend_operand): Invoke
13554 general_movsrc_operand for memory operands.
13555 (general_movsrc_operand): Allow reg+reg addressing, do not use
13556 general_operand for memory operands.
13557
97db2bf7
ST
135582013-06-23 Sriraman Tallam <tmsriram@google.com>
13559
13560 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
13561 when current target options does not apply.
13562 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
13563 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
13564 * config/i386/bmiintrin.h: Pass appropriate target
13565 attributes to header.
97db2bf7
ST
13566 * config/i386/mmintrin.h: Ditto.
13567 * config/i386/nmmintrin.h: Ditto.
13568 * config/i386/avx2intrin.h: Ditto.
13569 * config/i386/fxsrintrin.h: Ditto.
13570 * config/i386/tbmintrin.h: Ditto.
13571 * config/i386/xsaveintrin.h: Ditto.
13572 * config/i386/f16cintrin.h: Ditto.
13573 * config/i386/xtestintrin.h: Ditto.
13574 * config/i386/xsaveoptintrin.h: Ditto.
13575 * config/i386/bmi2intrin.h: Ditto.
13576 * config/i386/lzcntintrin.h: Ditto.
13577 * config/i386/smmintrin.h: Ditto.
13578 * config/i386/wmmintrin.h: Ditto.
13579 * config/i386/x86intrin.h: Remove all header include guards.
13580 * config/i386/prfchwintrin.h: Ditto.
13581 * config/i386/pmmintrin.h: Ditto.
13582 * config/i386/tmmintrin.h: Ditto.
13583 * config/i386/xmmintrin.h: Ditto.
13584 * config/i386/popcntintrin.h: Ditto.
13585 * config/i386/rdseedintrin.h: Ditto.
13586 * config/i386/ammintrin.h: Ditto.
13587 * config/i386/emmintrin.h: Ditto.
13588 * config/i386/immintrin.h: Remove all header include guards.
13589 * config/i386/fma4intrin.h: Ditto.
13590 * config/i386/lwpintrin.h: Ditto.
13591 * config/i386/xopintrin.h: Ditto.
13592 * config/i386/ia32intrin.h: Ditto.
13593 * config/i386/avxintrin.h: Ditto.
13594 * config/i386/rtmintrin.h: Ditto.
13595 * config/i386/fmaintrin.h: Ditto.
13596 * config/i386/mm3dnow.h: Ditto.
13597
495e6879
ST
135982013-06-22 Sriraman Tallam <tmsriram@google.com>
13599
13600 * common/config/i386/i386-common.c: Handle LZCNT.
13601
11e8f687
AK
136022013-06-22 Andi Kleen <ak@linux.intel.com>
13603
13604 * doc/extend.texi: Use __atomic_store_n instead of
13605 __atomic_store in HLE example.
13606
12211b99 136072013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
13608
13609 * config/sh/sh.c: Remove <cstdlib> workaround.
13610
927f908b
AK
136112013-06-21 Andi Kleen <ak@linux.intel.com>
13612
0ba6aff3 13613 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 13614
cca410b6
AK
136152013-06-21 Andi Kleen <ak@linux.intel.com>
13616
13617 * doc/extend.texi: Document that __atomic_clear and
13618 __atomic_test_and_set should only be used with bool.
13619
d84db1ed
JH
136202013-06-20 Jan Hubicka <jh@suse.cz>
13621
13622 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
13623 types_same_for_odr.
13624 * tree.c (decls_same_for_odr): New function.
13625 (same_for_edr): New function.
13626 (types_same_for_odr): New function.
13627 (get_binfo_at_offset): Use it.
13628 * tree.h (types_same_for_odr): Declare.
13629
12211b99 136302013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
13631 Jason Merrill <jason@redhat.com>
13632
13633 * system.h: Include <cstdlib> as well as <stdlib.h>.
13634
49b4ff63
UB
136352013-06-20 Uros Bizjak <ubizjak@gmail.com>
13636
13637 PR target/57655
13638 * config/i386/i386.c (construct_container): Report error if
13639 long double is used with disabled x87 float returns.
13640
7a89ad00
JH
136412013-06-20 Jan Hubicka <jh@suse.cz>
13642
13643 * lto-cgraph.c (input_symtab): Do not set cgraph state.
13644
12211b99 136452013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
13646
13647 PR rtl-optimization/57425
13648 PR rtl-optimization/57569
13649 * alias.c (write_dependence_p): Remove parameters mem_mode and
13650 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
13651 Changed all callers.
13652 (canon_anti_dependence): Get comments and semantics in sync.
13653 Add parameter mem_canonicalized. Changed all callers.
13654 * rtl.h (canon_anti_dependence): Update prototype.
13655
d16e9a99
RB
136562013-06-20 Richard Biener <rguenther@suse.de>
13657
13658 * data-streamer-in.c (streamer_read_uhwi): Optimize single
13659 byte case, inline streamer_read_uchar and defer section
13660 overrun check.
13661
c3a9b91b
RB
136622013-06-20 Richard Biener <rguenther@suse.de>
13663
13664 PR tree-optimization/57584
13665 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
13666 SSA names into the expanded expression that take part in
13667 abnormal coalescing.
13668
371e77e3 136692013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
13670
13671 * gcov.c (print_usage): Handle new option.
13672 (process_args): Ditto.
13673 (get_gcov_intermediate_filename): New function.
13674 (output_intermediate_file): New function.
13675 (output_gcov_file): New function
13676 (generate_results): Handle new option.
13677 (release_function): Relase demangled name.
13678 (read_graph_file): Handle demangled name.
13679 (output_lines): Ditto.
13680 * doc/gcov.texi: Document gcov intermediate format.
13681
11f5b71a
VM
136822013-06-19 Vladimir Makarov <vmakarov@redhat.com>
13683
13684 PR bootstrap/57604
13685 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
13686 (lra_emit_add): Use the functions. Add comment about Y as an
13687 address segment.
13688
e1f9340b
DE
136892013-06-19 David Edelsohn <dje.gcc@gmail.com>
13690
13691 PR driver/57652
13692 * collect2.c (collect_atexit): New.
13693 (collect_exit): Delete.
13694 (main): Register collect_atexit with atexit.
13695 (collect_wait): Change collect_exit to exit.
13696 (do_wait): Same.
13697 * collect2.h (collect_exit): Delete.
13698 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
13699
e3f9e0ac
WM
137002013-06-19 Wei Mi <wmi@google.com>
13701
13702 PR rtl-optimization/57518
13703 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
13704 if regno is used in paradoxical subreg.
13705 (update_equiv_regs): Check pdx_subregs[regno] before
13706 set a reg to be equivalent with a mem.
13707
a09f1a76
MK
137082013-06-19 Matthias Klose <doko@ubuntu.com>
13709
13710 PR driver/57651
13711 * file-find.h (find_a_file): Add a mode parameter.
13712 * file-find.c (find_a_file): Likewise.
13713 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
13714 with X_OK for the executables.
13715 * collect2.c (main): Call find_a_file with X_OK.
13716
7d18b0ad
SE
137172013-06-19 Steve Ellcey <sellcey@mips.com>
13718
13719 PR target/56942
13720 * config/mips/mips.md (casesi_internal_mips16_<mode>):
13721 Use NEXT_INSN instead of next_real_insn.
13722
6a6dac52
JH
137232013-06-19 Jan Hubicka <jh@suse.cz>
13724
13725 * cgraph.h (const_value_known_p): Replace by ...
13726 (ctor_for_folding): .. this one.
13727 * cgraphunit.c (process_function_and_variable_attributes): Use it.
13728 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
13729 * expr.c (expand_expr_real_1): Likewise.
13730 (string_constant): Likewise.
13731 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
13732 * ipa.c (process_references): Likewise.
13733 (symtab_remove_unreachable_nodes): Likewise.
13734 * ipa-inline-analysis.c (param_change_prob): Likewise.
13735 * gimple-fold.c (canonicalize_constructor_val): Likewise.
13736 (get_base_constructor): Likwise.
13737 * varpool.c (varpool_remove_node): Likewise.
13738 (varpool_remove_initializer): LIkewise.
13739 (dump_varpool_node): LIkwise.
13740 (const_value_known_p): Rewrite to ...
13741 (ctor_for_folding): ... this one.
13742
216c12ab
JJ
137432013-06-19 Jakub Jelinek <jakub@redhat.com>
13744
13745 PR driver/57651
13746 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
13747 PERSONALITY in $PATH derived prefixes.
13748
d53e2f99
JL
137492013-06-19 Jeff Law <law@redhat.com>
13750
ecdbf306
JL
13751 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
13752 in comment.
13753
d53e2f99
JL
13754 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
13755 (simplify_bitwise_binary): Use it to simpify certain binary ops on
13756 booleans.
13757
89e7fc04
SN
137582013-06-19 Sofiane Naci <sofiane.naci@arm.com>
13759
13760 * config/arm/vfp.md: Move VFP instruction classification documentation
13761 to ...
13762 * config/arm/arm.md: ... here. Update instruction classification
13763 documentation.
13764
5e7f6aaa
RE
137652013-06-19 Richard Earnshaw <rearnsha@arm.com>
13766
13767 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
13768 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
13769 pattern. Use more efficient sequences on ARMv5 and Thumb2.
13770
5fdc1e5d
SB
137712013-06-19 Steven Bosscher <steven@gcc.gnu.org>
13772
13773 PR target/57609
13774 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
13775 with NEXT_INSN. Use tablejump_p to check for jump table data
13776 insns.
13777
e952afba
PC
137782013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
13779
13780 PR c++/56544
13781 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
13782 that now in C++ the value is correct per the C++ standards.
13783
3fd0303a
RB
137842013-06-19 Richard Biener <rguenther@suse.de>
13785
13786 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
13787 for global context.
13788
b04e4b08
AK
137892013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13790
13791 Revert:
13792 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13793
13794 PR target/57609
13795 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
13796 with next_active_insn.
13797
bef8491a
ST
137982013-06-18 Sriraman Tallam <tmsriram@google.com>
13799
13800 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
13801 functions are inlined during failures to flag an error.
13802 * tree-inline.c (expand_call_inline): Allow the error to be flagged
13803 in early inline pass.
22fc7d3d 13804
c21b257d
L
138052013-06-18 H.J. Lu <hongjiu.lu@intel.com>
13806
13807 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
13808 in comments.
13809
33255ae3
JB
138102013-06-18 Julian Brown <julian@codesourcery.com>
13811
13812 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
13813 Permit virtual register pre-reload if !strict.
13814 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
13815 change.
13816 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
13817 prototype.
13818 * config/arm/neon.md (movmisalign<mode>): Use
13819 neon_perm_struct_or_reg_operand instead of
13820 neon_struct_or_register_operand.
13821 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
13822 neon_permissive_struct_operand instead of neon_struct_operand.
13823 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
13824 neon_vector_mem_operand.
13825 * config/arm/predicates.md (neon_struct_operand): Adjust call to
13826 neon_vector_mem_operand.
13827 (neon_permissive_struct_operand): New.
13828 (neon_struct_or_register_operand): Rename to...
13829 (neon_perm_struct_or_reg_operand): This. Adjust call to
13830 neon_vector_mem_operand.
13831
d579fcda
RB
138322013-06-18 Richard Biener <rguenther@suse.de>
13833
13834 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
13835 * lto-streamer.h: Include pointer-set.h.
13836 (struct lto_decl_slot): Remove.
13837 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
13838 Remove next_index entry.
13839 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
13840 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
13841 (lto_init_tree_ref_encoder): Adjust.
13842 (lto_destroy_tree_ref_encoder): Likewise.
13843 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
13844 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
13845 (lto_output_decl_index): Adjust.
13846 (lto_new_out_decl_state): Likewise.
13847 (lto_record_function_out_decl_state): Likewise.
13848 * lto-streamer-out.c (copy_function): Likewise.
13849
31ee20ba
RB
138502013-06-18 Richard Biener <rguenther@suse.de>
13851
13852 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
13853 * cgraphunit.c: Include cfgloop.h.
13854 (init_lowered_empty_function): Initialize the loop tree.
13855 (assemble_thunk): Insert new BBs into loops.
13856
ac0511f2
RB
138572013-06-18 Richard Biener <rguenther@suse.de>
13858
13859 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
13860 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
13861 the map from cache entry to cache index optional.
13862 (streamer_tree_cache_replace_tree): Adjust accordingly.
13863 (streamer_tree_cache_append): Likewise.
13864 (streamer_tree_cache_delete): Likewise.
13865 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
13866 streamer cache map from cache entry to cache index.
13867 * lto-streamer-out.c (create_output_block): Adjust.
13868
09485a08
SN
138692013-06-18 Sofiane Naci <sofiane.naci@arm.com>
13870
22fc7d3d
UB
13871 * config/arm/arm.md (attribute "insn"): Move multiplication and
13872 division attributes to...
09485a08
SN
13873 (attribute "type"): ... here. Remove mult.
13874 (attribute "mul32"): New attribute.
13875 (attribute "mul64"): Add umaal.
13876 (*arm_mulsi3): Update attributes.
13877 (*arm_mulsi3_v6): Likewise.
13878 (*thumb_mulsi3): Likewise.
13879 (*thumb_mulsi3_v6): Likewise.
13880 (*mulsi3_compare0): Likewise.
13881 (*mulsi3_compare0_v6): Likewise.
13882 (*mulsi_compare0_scratch): Likewise.
13883 (*mulsi_compare0_scratch_v6): Likewise.
13884 (*mulsi3addsi): Likewise.
13885 (*mulsi3addsi_v6): Likewise.
13886 (*mulsi3addsi_compare0): Likewise.
13887 (*mulsi3addsi_compare0_v6): Likewise.
13888 (*mulsi3addsi_compare0_scratch): Likewise.
13889 (*mulsi3addsi_compare0_scratch_v6): Likewise.
13890 (*mulsi3subsi): Likewise.
13891 (*mulsidi3adddi): Likewise.
13892 (*mulsi3addsi_v6): Likewise.
13893 (*mulsidi3adddi_v6): Likewise.
13894 (*mulsidi3_nov6): Likewise.
13895 (*mulsidi3_v6): Likewise.
13896 (*umulsidi3_nov6): Likewise.
13897 (*umulsidi3_v6): Likewise.
13898 (*umulsidi3adddi): Likewise.
13899 (*umulsidi3adddi_v6): Likewise.
13900 (*smulsi3_highpart_nov6): Likewise.
13901 (*smulsi3_highpart_v6): Likewise.
13902 (*umulsi3_highpart_nov6): Likewise.
13903 (*umulsi3_highpart_v6): Likewise.
13904 (mulhisi3): Likewise.
13905 (*mulhisi3tb): Likewise.
13906 (*mulhisi3bt): Likewise.
13907 (*mulhisi3tt): Likewise.
13908 (maddhisi4): Likewise.
13909 (*maddhisi4tb): Likewise.
13910 (*maddhisi4tt): Likewise.
13911 (maddhidi4): Likewise.
13912 (*maddhidi4tb): Likewise.
13913 (*maddhidi4tt): Likewise.
13914 (divsi3): Likewise.
13915 (udivsi3): Likewise.
13916 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
13917 (thumb2_mulsi_short_compare0): Likewise.
13918 (thumb2_mulsi_short_compare0_scratch): Likewise.
13919 * config/arm/arm1020e.md (1020mult1): Update attribute change.
13920 (1020mult2): Likewise.
13921 (1020mult3): Likewise.
13922 (1020mult4): Likewise.
13923 (1020mult5): Likewise.
13924 (1020mult6): Likewise.
22fc7d3d
UB
13925 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
13926 change.
09485a08
SN
13927 (cortex_a15_mult64): Likewise.
13928 (cortex_a15_sdiv): Likewise.
13929 (cortex_a15_udiv): Likewise.
13930 * config/arm/arm1026ejs.md (mult1): Update attribute change.
13931 (mult2): Likewise.
13932 (mult3): Likewise.
13933 (mult4): Likewise.
13934 (mult5): Likewise.
13935 (mult6): Likewise.
13936 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
13937 (pj4_ir_div): Likewise.
13938 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
13939 (11_mult2): Likewise.
13940 (11_mult3): Likewise.
13941 (11_mult4): Likewise.
13942 (11_mult5): Likewise.
13943 (11_mult6): Likewise.
13944 (11_mult7): Likewise.
13945 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
13946 (cortex_a8_mla): Likewise.
13947 (cortex_a8_mull): Likewise.
13948 (cortex_a8_smulwy): Likewise.
13949 (cortex_a8_smlald): Likewise.
13950 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
13951 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
13952 (cortex_r4_mul_3): Likewise.
13953 (cortex_r4_mla_4): Likewise.
13954 (cortex_r4_mla_3): Likewise.
13955 (cortex_r4_smlald): Likewise.
13956 (cortex_r4_mull): Likewise.
13957 (cortex_r4_sdiv): Likewise.
13958 (cortex_r4_udiv): Likewise.
13959 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
13960 (cortex_a7_idiv): Likewise.
13961 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
13962 (9_mult2): Likewise.
13963 (9_mult3): Likewise.
13964 (9_mult4): Likewise.
13965 (9_mult5): Likewise.
13966 (9_mult6): Likewise.
13967 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
13968 (cortex_a53_sdiv): Likewise.
13969 (cortex_a53_udiv): Likewise.
13970 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
13971 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
13972 (mp626_mult2): Likewise.
13973 (mp626_mult3): Likewise.
13974 (mp626_mult4): Likewise.
13975 * config/arm/fa526.md (526_mult1): Update attribute change.
13976 (526_mult2): Likewise.
13977 * config/arm/arm-generic.md (mult): Update attribute change.
13978 (mult_ldsched_strongarm): Likewise.
13979 (mult_ldsched): Likewise.
13980 (multi_cycle): Likewise.
13981 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
13982 * config/arm/fa606te.md (606te_mult1): Update attribute change.
13983 (606te_mult2): Likewise.
13984 (606te_mult3): Likewise.
13985 (606te_mult4): Likewise.
13986 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
13987 (cortex_a9_mac16): Likewise.
13988 (cortex_a9_multiply): Likewise.
13989 (cortex_a9_mac): Likewise.
13990 (cortex_a9_multiply_long): Likewise.
13991 * config/arm/fa626te.md (626te_mult1): Update attribute change.
13992 (626te_mult2): Likewise.
13993 (626te_mult3): Likewise.
13994 (626te_mult4): Likewise.
13995
8951f345
RB
139962013-06-18 Richard Biener <rguenther@suse.de>
13997
13998 PR lto/57334
13999 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
14000
d8101d05
AK
140012013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14002
14003 PR target/57609
14004 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
14005 with next_active_insn.
14006
69eff9da
AM
140072013-06-18 Alan Modra <amodra@gmail.com>
14008
14009 * config/rs6000/rs6000.h (enum data_align): New.
14010 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
14011 (DATA_ABI_ALIGNMENT): Define.
14012 (CONSTANT_ALIGNMENT): Correct comment.
14013 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
14014 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
14015
8ed00d76
DM
140162013-06-17 David Malcolm <dmalcolm@redhat.com>
14017
14018 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
14019 ATTRIBUTE_UNUSED marking.
14020
3d33d06b
SN
140212013-06-17 Sofiane Naci <sofiane.naci@arm.com>
14022
14023 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
14024 alternative and update.
14025 (aarch64_dup_lanedi): Delete.
14026 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
14027 * config/aarch64/aarch64-simd-builtins.def: Update.
14028
ee03e71d
RB
140292013-06-17 Richard Biener <rguenther@suse.de>
14030
14031 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
14032 (lto_input_scc): Declare.
14033 (lto_input_tree_1): Likewise.
14034 (struct lto_stats_d): Add num_tree_bodies_output and
14035 num_pickle_refs_output.
14036 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
14037 (lto_read_tree_1): Split out from ...
14038 (lto_read_tree): ... this.
14039 (lto_input_scc): New function.
14040 (lto_input_tree_1): Split out from ...
14041 (lto_input_tree): ... this. Handle LTO_tree_scc.
14042 (lto_data_in_create): Create the streamer cache without hashes.
14043 * lto-streamer-out.c (create_output_block): Create the streamer
14044 cache with hashes when not doing WPA.
14045 (lto_write_tree_1): Split out from ...
14046 (lto_write_tree): ... this.
14047 (get_symbol_initial_value): New function.
14048 (lto_output_tree_1): Split out from ...
14049 (lto_output_tree): ... this. Write trees as series of SCCs
14050 using a DFS walk via DFS_write_tree.
14051 (struct sccs, struct scc_entry): New types.
14052 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
14053 (DFS_write_tree_body): New function.
14054 (DFS_write_tree): Likewise.
14055 (hash_tree): Likewise.
14056 (scc_entry_compare): Likewise.
14057 (hash_scc): Likewise.
14058 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
14059 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
14060 TREE_CHAIN as regular reference.
14061 (streamer_read_integer_cst): Remove.
14062 (streamer_get_pickled_tree): Adjust.
14063 * tree-streamer-out.c (streamer_write_chain): Disable streaming
14064 of DECL_EXTERNALs in BLOCK_VARS for now.
14065 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
14066 reference.
14067 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
14068 Add hash value argument and record that if hashes are recorded
14069 in the cache.
14070 (streamer_tree_cache_insert_1): Adjust.
14071 (streamer_tree_cache_insert): Likewise.
14072 (streamer_tree_cache_insert_at): Rename to ...
14073 (streamer_tree_cache_replace_tree): ... this and adjust.
14074 (streamer_tree_cache_append): Adjust.
14075 (record_common_node): Likewise.
14076 (streamer_tree_cache_create): Add argument whether to
14077 record hash values together with trees.
14078 (streamer_tree_cache_delete): Adjust.
14079 * tree-streamer.h (struct streamer_tree_cache_d): Add
14080 vector of hashes.
14081 (streamer_read_integer_cst): Remove.
14082 (streamer_tree_cache_insert): Adjust.
14083 (streamer_tree_cache_append): Likewise.
14084 (streamer_tree_cache_insert_at): Rename to ...
14085 (streamer_tree_cache_replace_tree): ... this and adjust.
14086 (streamer_tree_cache_create): Add argument whether to record hashes.
14087 (streamer_tree_cache_get): Rename to ...
14088 (streamer_tree_cache_get_tree): ... this.
14089 (streamer_tree_cache_get_hash): New function.
14090 * tree.c (cache_integer_cst): New function.
14091 * tree.h (cache_integer_cst): Declare.
14092 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
14093 * lto-symtab.c (lto_varpool_replace_node): Only release
14094 DECL_INITIAL of non-prevailing decls.
14095 * varpool.c (varpool_remove_initializer): Do not release
14096 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
14097
0de86a92
JU
140982013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
14099
14100 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
14101 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
14102 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
14103 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
14104 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
14105 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
14106 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
14107 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
14108 instead of TARGET_64BIT.
14109 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
14110 Require ISA_HAS_<D>DIV.
14111
74240413
RS
141122013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14113
14114 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
14115 (mips*-*-linux*): Move default with_llsc setting to where other
14116 defaults are set.
14117 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
14118 with_arch block.
14119 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
14120 Likewise. Remove default with_tune setting. Move default float
14121 setting to its own block. Handle with_llsc in the same block as above.
14122
12211b99 141232013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
14124
14125 PR rtl-optimization/57425
14126 PR rtl-optimization/57569
299a5f6a 14127 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
14128 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
14129 Changed all callers.
14130 (canon_anti_dependence): New function.
14131 * cse.c (check_dependence): Use canon_anti_dependence.
14132 * cselib.c (cselib_invalidate_mem): Likewise.
14133 * rtl.h (canon_anti_dependence): Declare.
14134
b259d352
JU
141352013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
14136
14137 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
14138 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
14139 ".set mips3" for 64-bit targets.
14140
4de09b85
DC
141412013-06-15 Dehao Chen <dehao@google.com>
14142
14143 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
14144 * gimple-low.c (gimple_check_call_matching_types): Likewise.
14145 (gimple_check_call_args): Likewise.
14146 * value-prof.c (check_ic_target): Likewise.
14147 * ipa-inline.c (early_inliner): Likewise.
14148 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
14149 * cgraph.c (cgraph_create_edge_1): Likewise.
14150 (cgraph_make_edge_direct): Likewise.
14151
d1aa4a76
MM
141522013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14153
14154 PR target/57615
14155 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
14156 rs6000_output_move_128bit to handle emitting quad memory
14157 operations. Set attribute length to 8 bytes.
14158
12211b99 141592013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
14160
14161 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
14162 New pattern.
14163 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
14164 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
14165 (aarch64_<su>mlsl<mode>): Likewise.
14166
f5273574
MS
141672013-06-14 Mike Stump <mikestump@comcast.net>
14168
14169 * Makefile.in (TARGET_H): Add insn-codes.h.
14170
ef7e7ab2
AM
141712013-06-14 Alan Modra <amodra@gmail.com>
14172
14173 PR middle-end/57134
14174 PR middle-end/57586
14175 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
14176 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
14177 bitfield expansion when EXPAND_MEMORY.
14178 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
14179
135faab6
MM
141802013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14181
14182 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14183 test for clearing quad memory on 32-bit later.
14184
948a1fd9
MG
141852013-06-13 Marc Glisse <marc.glisse@inria.fr>
14186
14187 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
14188 (fold_negate_expr): Likewise.
14189 (fold_real_zero_addition_p): Handle vectors.
14190 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
14191
0597fb9c
AM
141922013-06-14 Alan Modra <amodra@gmail.com>
14193
14194 * varasm.c (force_const_mem): Revert 2013-06-07 change.
14195
e5b962d0
JH
141962013-06-13 Jan Hubicka <jh@suse.cz>
14197
14198 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
14199 Local comdats are not externally visible.
14200 * symtab.c (dump_symtab_base): Dump externally visible.
14201 (verify_symtab_base): Verify back links in the symtab hash.
14202
a8355e51
BC
142032013-06-13 Bin Cheng <bin.cheng@arm.com>
14204
14205 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
14206 CONVERT_EXPR as equal nodes.
14207
8f7e6e33
BC
142082013-06-13 Bin Cheng <bin.cheng@arm.com>
14209
22fc7d3d 14210 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 14211
5d418483
MG
142122013-06-13 Marc Glisse <marc.glisse@inria.fr>
14213
14214 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
14215 Generalize to complex and vector.
14216 * tree.c (build_all_ones_cst): New function.
14217 * tree.h (build_all_ones_cst): Declare it.
14218
50751417
AM
142192013-06-13 Alan Modra <amodra@gmail.com>
14220
14221 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
14222 * config/rs6000/rs6000.md (signbittf2): New insn.
14223 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
14224 (abstf2_internal, cmptf_internal2): Likewise.
14225 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
14226
4b02c962 142272013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14228 Pat Haugen <pthaugen@us.ibm.com>
14229 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
14230
14231 * config/rs6000/rs6000.c (emit_load_locked): Add support for
14232 power8 byte, half-word, and quad-word atomic instructions.
14233 (emit_store_conditional): Likewise.
14234 (rs6000_expand_atomic_compare_and_swap): Likewise.
14235 (rs6000_expand_atomic_op): Likewise.
14236
14237 * config/rs6000/sync.md (larx): Add new modes for power8.
14238 (stcx): Likewise.
14239 (AINT): New mode iterator to include TImode as well as normal
14240 integer modes on power8.
14241 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
14242 that VSX registers are not considered. Use AINT mode iterator
14243 instead of INT1 to allow inclusion of quad word atomic operations
14244 on power8.
14245 (load_locked<mode>): Likewise.
14246 (store_conditional<mode>): Likewise.
14247 (atomic_compare_and_swap<mode>): Likewise.
14248 (atomic_exchange<mode>): Likewise.
14249 (atomic_nand<mode>): Likewise.
14250 (atomic_fetch_<fetchop_name><mode>): Likewise.
14251 (atomic_nand_fetch<mode>): Likewise.
14252 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
14253 each type.
14254 (ATOMIC): On power8, add QImode, HImode modes.
14255 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
14256 modes that promote to SImode.
14257 (load_lockedti): Convert TImode arguments to PTImode, so that we
14258 get a guaranteed even/odd register pair.
14259 (load_lockedpti): Likewise.
14260 (store_conditionalti): Likewise.
14261 (store_conditionalpti): Likewise.
14262
14263 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
14264 atomic load/store instructions.
14265 (HSI): Likewise.
14266
710b6cc1
RS
142672013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
14268
14269 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
14270 loads.
14271 (insn_count): New attribute, with most cases extracted from...
14272 (length): ...here. Redefine most cases in terms of insn_count.
14273 (single_insn): Delete.
14274 (can_delay): Use insn_count to check for single instructions.
14275 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
14276 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
14277 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
14278 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
14279 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
14280 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
14281 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
14282 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
14283 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
14284 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
14285 rather than "length".
14286 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
14287 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
14288 Use "insn_count" rather than "length".
14289 * config/mips/mips-dsp.md
14290 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
14291 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
14292 length attributes.
14293
1951f101
MG
142942013-06-12 Marc Glisse <marc.glisse@inria.fr>
14295
14296 PR tree-optimization/57361
14297 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
14298
8b033a8a
SN
142992013-06-12 Sofiane Naci <sofiane.naci@arm.com>
14300
22fc7d3d
UB
14301 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
14302 to split.
8b033a8a
SN
14303 (aarch64_simd_combine<mode>): New instruction expansion.
14304 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
14305 function prototype.
14306 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
14307 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
14308
ca0f62a8
JH
143092013-06-12 Jan Hubicka <jh@suse.cz>
14310
14311 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
14312 decl has when in streaming stage.
14313 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
14314 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
14315
12211b99 143162013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
14317
14318 PR target/57578
14319 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
14320
bfdeda2c
JJ
143212013-06-12 Jakub Jelinek <jakub@redhat.com>
14322
14323 PR tree-optimization/57537
14324 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
14325 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
14326
a4fa02d1
RB
143272013-06-12 Richard Biener <rguenther@suse.de>
14328
14329 * data-streamer.h (streamer_write_char_stream): CSE
14330 obs->current_pointer.
14331 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
14332 streamer_write_char_stream manually and optimize the resulting loop.
14333 (streamer_write_hwi_stream): Likewise.
14334
bbf9ad07
JH
143352013-06-12 Jan Hubicka <jh@suse.cz>
14336
14337 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
14338 * cgraph.h (varpool_create_empty_node): Declare.
14339 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
14340 duplicated nodes.
14341 * symtab.c (symtab_unregister_node): Be lax about missin entries
14342 in node hash.
14343 (symtab_get_node): Update comment.
14344 * varpool.c (varpool_create_empty_node): Break out from ...
14345 (varpool_node_for_decl): ... here.
14346 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
14347
a53f90ad
EB
143482013-06-12 Eric Botcazou <ebotcazou@adacore.com>
14349
14350 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
14351 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
14352 part. Use straight-line flow at the end.
14353 <COMPONENT_REF>: Remove superfluous else.
14354 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
14355
946f9306
JJ
143562013-06-12 Jakub Jelinek <jakub@redhat.com>
14357
14358 PR target/56564
14359 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
14360 target hook even for !TREE_PUBLIC decls. If no resolution info
14361 is available, return false for common and external decls.
14362
a7fca6f0
KP
143632013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14364
14365 * config/rl78/constraints.md (U): New constraint.
14366 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
14367 valloc attribute.
14368
c7d8f446
MM
143692013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14370
14371 PR target/57589
14372 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
14373 to allow returning address to AT_PLATFORM name.
14374
08346abd
JH
143752013-06-11 Jan Hubicka <jh@suse.cz>
14376
14377 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
14378 * cgraph.h (symtab_node_base): Add weakref flag.
14379 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
14380 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
14381 (output_weakrefs): Use weakref flag.
14382 * fold-const.c (simple_operand_p): Handle WEAK.
14383 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
14384 * ipa.c (varpool_externally_visible_p): Drop weakref.
14385 (function_and_variable_visibility): Update comment; fix weakref
14386 sanity checks; do not clear DECL_WEAK on them.
14387 * lto-cgraph.c (lto_output_node): update.
14388 (lto_output_varpool_node): Update.
14389 (input_overwrite_node): Update.
14390 (input_node): Update.
14391 (input_varpool_node): Update.
14392 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
14393 (lto_symtab_merge_symbols): Add sanity check.
14394 (lto_symtab_prevailing_decl): Do not special case weakrefs.
14395 * passes.c (rest_of_decl_compilation): Set static flag, too.
14396 * symtab.c (dump_symtab_base): Dump weakref.
14397 (verify_symtab_base): Sanity check weakrefs.
14398 (symtab_make_decl_local): Remove duplicated code.
14399 (symtab_alias_ultimate_target): Simplify.
14400 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 14401
2e6a2f88
TV
144022013-06-11 Tom de Vries <tom@codesourcery.com>
14403
14404 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
14405 sequence_vect == NULL.
14406
d9af3652
DD
144072013-06-11 DJ Delorie <dj@redhat.com>
14408
14409 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
14410 (rl78_unwind_word_mode): New.
14411
ffa66012
DM
144122013-06-11 David Malcolm <dmalcolm@redhat.com>
14413
14414 * final.c (debug_prefix_maps): Make static.
14415
783f2d35
DM
144162013-06-11 David Malcolm <dmalcolm@redhat.com>
14417
14418 * function.c (initial_trampoline): Remove stray copy.
14419
7af26def
SN
144202013-06-11 Sofiane Naci <sofiane.naci@arm.com>
14421
14422 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
14423
97756c0e
MJ
144242013-06-11 Martin Jambor <mjambor@suse.cz>
14425
14426 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
14427 within bounds at the beginning of the function.
14428
2c7b8bf6
AM
144292013-06-11 Alan Modra <amodra@gmail.com>
14430
14431 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
14432 reporting.
14433 (get_named_section): Don't NULL !DECL_P decl.
14434
77cea46e
IZ
144352013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
14436
14437 * doc/invoke.texi (core-avx2): Document.
14438 (slm): Likewise.
14439 (atom): Updated with MOVBE.
14440
888f0920
RB
144412013-06-11 Richard Biener <rguenther@suse.de>
14442
22fc7d3d 14443 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 14444
6b438d58
AB
144452013-06-11 Anton Blanchard <anton@samba.org>
14446
14447 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
14448 correct shift value in little-endian mode.
14449
3bc66938
JJ
144502013-06-11 Jakub Jelinek <jakub@redhat.com>
14451
14452 PR target/56564
14453 * varasm.c (get_variable_align): Move #endif to the right place.
14454
a5dc7f88
CC
144552013-06-10 Cary Coutant <ccoutant@google.com>
14456
14457 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
14458 for hash so that hash table traversal order is deterministic.
14459
19be72ab 144602013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14461 Pat Haugen <pthaugen@us.ibm.com>
14462 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
14463
14464 * config/rs6000/vector.md (GPR move splitter): Do not split moves
14465 of vectors in GPRS if they are direct moves or quad word load or
14466 store moves.
14467
14468 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
14469 declaration.
14470 (direct_move_p): Likewise.
14471 (quad_load_store_p): Likewise.
14472
14473 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
14474 classes into bins based on the physical register type.
14475 (reg_class_to_reg_type): Likewise.
14476 (IS_STD_REG_TYPE): Likewise.
14477 (IS_FP_VECT_REG_TYPE): Likewise.
14478 (reload_fpr_gpr): Arrays to determine what insn to use if we can
14479 use direct move instructions.
14480 (reload_gpr_vsx): Likewise.
14481 (reload_vsx_gpr): Likewise.
14482 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
14483 information that is a simplification of register classes. Also
14484 precalculate direct move reload helpers.
14485 (direct_move_p): New function to return true if the operation can
14486 be done as a direct move instruciton.
14487 (quad_load_store_p): New function to return true if the operation
14488 is a quad memory operation.
14489 (rs6000_legitimize_address): If quad memory, only allow register
14490 indirect for TImode addresses.
14491 (rs6000_legitimate_address_p): Likewise.
14492 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
14493 (rs6000_reload_register_type): Likewise.
14494 (register_to_reg_type): Return register type.
14495 (rs6000_secondary_reload_simple_move): New helper function for
14496 secondary reload and secondary memory needed to identify anything
14497 that is a simple move, and does not need reloading.
14498 (rs6000_secondary_reload_direct_move): New helper function for
14499 secondary reload to identify cases that can be done with several
14500 instructions via the direct move instructions.
14501 (rs6000_secondary_reload_move): New helper function for secondary
14502 reload to identify moves between register types that can be done.
14503 (rs6000_secondary_reload): Add support for quad memory operations
14504 and for direct move.
14505 (rs6000_secondary_memory_needed): Likewise.
14506 (rs6000_debug_secondary_memory_needed): Change argument names.
14507 (rs6000_output_move_128bit): New function to return the move to
14508 use for 128-bit moves, including knowing about the various
14509 limitations of quad memory operations.
14510
14511 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
14512 memory operations. call rs6000_output_move_128bit for the actual
14513 instruciton(s) to generate.
14514 (vsx_movti_64bit): Likewise.
14515
14516 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
14517 (UNSPEC_P8V_MTVSRWZ): Likewise.
14518 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
14519 (UNSPEC_P8V_MTVSRD): Likewise.
14520 (UNSPEC_P8V_XXPERMDI): Likewise.
14521 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
14522 (UNSPEC_FUSION_GPR): Likewise.
14523 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 14524 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
14525 (f32_sv): Likewise.
14526 (f32_dm): Likewise.
14527 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
14528 loads and direct move instructions.
14529 (zero_extendsidi2_lfiwzx): Likewise.
14530 (extendsidi2_lfiwax): Likewise.
14531 (extendsidi2_nocell): Likewise.
14532 (floatsi<mode>2_lfiwax): Likewise.
14533 (lfiwax): Likewise.
14534 (floatunssi<mode>2_lfiwzx): Likewise.
14535 (lfiwzx): Likewise.
14536 (fix_trunc<mode>_stfiwx): Likewise.
14537 (fixuns_trunc<mode>_stfiwx): Likewise.
14538 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
14539 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
14540 (parity<mode>2_cmpb): Set length/type attr.
14541 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
14542 for 'mr.' to fast_compare.
14543 (bpermd_<mode>): Change type attr to popcnt.
14544 (p8_fmrgow_<mode>): New insns for power8 direct move support.
14545 (p8_mtvsrwz_1): Likewise.
14546 (p8_mtvsrwz_2): Likewise.
14547 (reload_fpr_from_gpr<mode>): Likewise.
14548 (p8_mtvsrd_1): Likewise.
14549 (p8_mtvsrd_2): Likewise.
14550 (p8_xxpermdi_<mode>): Likewise.
14551 (reload_vsx_from_gpr<mode>): Likewise.
14552 (reload_vsx_from_gprsf): Likewise.
14553 (p8_mfvsrd_3_<mode>): LIkewise.
14554 (reload_gpr_from_vsx<mode>): Likewise.
14555 (reload_gpr_from_vsxsf): Likewise.
14556 (p8_mfvsrd_4_disf): Likewise.
14557 (multi-word GPR splits): Do not split direct moves or quad memory
14558 operations.
14559
16876bdc
DM
145602013-06-10 David Malcolm <dmalcolm@redhat.com>
14561
14562 * tree-into-ssa.c (interesting_blocks): Make static.
14563
df8a1d28
JJ
145642013-06-10 Jakub Jelinek <jakub@redhat.com>
14565
14566 PR target/56564
14567 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
14568 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
14569 Use DATA_ABI_ALIGNMENT for that case instead if defined.
14570 (get_variable_align): New function.
14571 (get_variable_section, emit_bss, emit_common,
14572 assemble_variable_contents, place_block_symbol): Use
14573 get_variable_align instead of DECL_ALIGN.
14574 (assemble_noswitch_variable): Add align argument, use it
14575 instead of DECL_ALIGN.
14576 (assemble_variable): Adjust caller. Use get_variable_align
14577 instead of DECL_ALIGN.
14578 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
14579 caller.
14580 (DATA_ABI_ALIGNMENT): Define.
14581 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
14582 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
14583 opt is false, only return the psABI mandated alignment increase.
14584 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
14585 (DATA_ABI_ALIGNMENT): ... this.
14586 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
14587 (DATA_ABI_ALIGNMENT): ... this.
14588 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
14589 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
14590 (DATA_ABI_ALIGNMENT): ... this.
14591 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
14592 * doc/tm.texi: Regenerated.
14593
57b29ca6
UB
145942013-06-10 Uros Bizjak <ubizjak@gmail.com>
14595
14596 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
14597 cmp_code to construct REG_EQUAL note.
14598
3e56ed50
JJ
145992013-06-09 Jakub Jelinek <jakub@redhat.com>
14600
14601 PR target/57568
14602 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
14603 that operands[2] doesn't overlap with operands[0].
14604
74fe2a1d
DE
146052013-06-09 David Edelsohn <dje.gcc@gmail.com>
14606 Jan Hubicka <jh@suse.cz>
14607
14608 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
14609 hack to mark symbols as used.
14610
ed52a84e
VM
146112013-06-08 Vladimir Makarov <vmakarov@redhat.com>
14612
14613 PR rtl-optimization/57559
14614 * lra-constraints.c (process_alt_operands): Don't discourage
14615 memory with known offset for offsetable memory constraint.
14616 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
14617
299316ed
EB
146182013-06-08 Eric Botcazou <ebotcazou@adacore.com>
14619
14620 * varasm.c (struct oc_local_state): Reorder fields.
14621 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
14622 and adjust accordingly.
14623 (output_constructor): Reorder initialization code and adjust call to
14624 output_constructor_bitfield.
14625
88ac60d3
JH
146262013-06-07 Jan Hubicka <jh@suse.cz>
14627
14628 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
14629
4cdce1a8
DM
146302013-06-07 David Malcolm <dmalcolm@redhat.com>
14631
14632 * tree-object-size.c (unknown): Make const.
14633
b5e0425c
AK
146342013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14635
14636 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
14637 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
14638 for last alternative in the cpu_facility attribute.
14639
79678d04
KT
146402013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14641
14642 PR target/56315
14643 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
14644 (xordi3): Change operand 2 constraint to arm_xordi_operand.
14645 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
14646 * config/arm/constraints.md (Dg): New constraint.
14647 * config/arm/neon.md (xordi3_neon): Remove.
14648 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
14649 * config/arm/predicates.md (arm_xordi_operand): New predicate.
14650
b31ddbdb
KT
146512013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14652
14653 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
14654 Clean up alternatives.
14655
8f90b7d4
AM
146562013-06-07 Alan Modra <amodra@gmail.com>
14657
14658 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
14659 va_list_gpr_size.
14660
961ce119
AM
146612013-06-07 Alan Modra <amodra@gmail.com>
14662
14663 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
14664
33e49835
KT
146652013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14666
14667 * config/arm/constraints.md (Df): New constraint.
14668 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
14669 Correct length attribute for last two alternatives.
14670
acd17ae6
AM
146712013-06-07 Alan Modra <amodra@gmail.com>
14672
14673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14674 override user -mfp-in-toc.
14675 (offsettable_ok_by_alignment): Consider just the current access
14676 rather than the whole object, unless BLKmode. Handle
14677 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
14678 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
14679 for -mcmodel=medium.
14680 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
14681 override user -mfp-in-toc or -msum-in-toc. Default to
14682 -mno-fp-in-toc for -mcmodel=medium.
14683
73310b0e
DD
146842013-06-06 DJ Delorie <dj@redhat.com>
14685
14686 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
14687 TARGET_VALID_POINTER_MODE.
14688
0bd62dca 146892013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14690 Pat Haugen <pthaugen@us.ibm.com>
14691 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
14692
14693 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14694 Document new power8 builtins.
14695
14696 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
14697 condition code register, to allow 128-bit logical operations to be
14698 done in the VSX or GPR registers.
14699 (nor<mode>3): Use the canonical form for nor.
14700 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
14701 vclz*, and vpopcnt* vector instructions.
14702 (nand<mode>3): Likewise.
14703 (orc<mode>3): Likewise.
14704 (clz<mode>2): LIkewise.
14705 (popcount<mode>2): Likewise.
14706
14707 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
14708 that only the GPRs are recognized.
14709
14710 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14711 support for new power8 builtins.
14712
14713 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
14714 builtin functions.
14715 (xscvdpspn): Likewise.
14716 (vclz): Likewise.
14717 (vclzb): Likewise.
14718 (vclzh): Likewise.
14719 (vclzw): Likewise.
14720 (vclzd): Likewise.
14721 (vpopcnt): Likewise.
14722 (vpopcntb): Likewise.
14723 (vpopcnth): Likewise.
14724 (vpopcntw): Likewise.
14725 (vpopcntd): Likewise.
14726 (vgbbd): Likewise.
14727 (vmrgew): Likewise.
14728 (vmrgow): Likewise.
14729 (eqv): Likewise.
14730 (eqv_v16qi3): Likewise.
14731 (eqv_v8hi3): Likewise.
14732 (eqv_v4si3): Likewise.
14733 (eqv_v2di3): Likewise.
14734 (eqv_v4sf3): Likewise.
14735 (eqv_v2df3): Likewise.
14736 (nand): Likewise.
14737 (nand_v16qi3): Likewise.
14738 (nand_v8hi3): Likewise.
14739 (nand_v4si3): Likewise.
14740 (nand_v2di3): Likewise.
14741 (nand_v4sf3): Likewise.
14742 (nand_v2df3): Likewise.
14743 (orc): Likewise.
14744 (orc_v16qi3): Likewise.
14745 (orc_v8hi3): Likewise.
14746 (orc_v4si3): Likewise.
14747 (orc_v2di3): Likewise.
14748 (orc_v4sf3): Likewise.
14749 (orc_v2df3): Likewise.
14750
14751 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
14752 allow power8 quad mode in 64-bit.
14753 (rs6000_builtin_vectorized_function): Add support to vectorize
14754 ISA 2.07 count leading zeros, population count builtins.
14755 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
14756 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
14757 (builtin_function_type): Add vgbbd builtin function which takes an
14758 unsigned argument.
14759 (altivec_expand_vec_perm_const): Add support for new power8 merge
14760 instructions.
14761
14762 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
14763 that does not include TImdoe for use with 32-bit.
14764 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
14765 instructions.
14766 (UNSPEC_VSX_CVDPSPN): Likewise.
14767 (vsx_xscvdpspn): Likewise.
14768 (vsx_xscvspdpn): Likewise.
14769 (vsx_xscvdpspn_scalar): Likewise.
14770 (vsx_xscvspdpn_directmove): Likewise.
14771 (vsx_and<mode>3): Split logical operations into 32-bit and
14772 64-bit. Add support to do logical operations on TImode as well as
14773 VSX vector types. Allow logical operations to be done in either
14774 VSX registers or in general purpose registers in 64-bit mode. Add
14775 splitters if GPRs were used. For AND, add clobber of CCmode to
14776 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
14777 encoding.
14778 (vsx_and<mode>3_32bit): Likewise.
14779 (vsx_and<mode>3_64bit): Likewise.
14780 (vsx_ior<mode>3): Likewise.
14781 (vsx_ior<mode>3_32bit): Likewise.
14782 (vsx_ior<mode>3_64bit): Likewise.
14783 (vsx_xor<mode>3): Likewise.
14784 (vsx_xor<mode>3_32bit): Likewise.
14785 (vsx_xor<mode>3_64bit): Likewise.
14786 (vsx_one_cmpl<mode>2): Likewise.
14787 (vsx_one_cmpl<mode>2_32bit): Likewise.
14788 (vsx_one_cmpl<mode>2_64bit): Likewise.
14789 (vsx_nor<mode>3): Likewise.
14790 (vsx_nor<mode>3_32bit): Likewise.
14791 (vsx_nor<mode>3_64bit): Likewise.
14792 (vsx_andc<mode>3): Likewise.
14793 (vsx_andc<mode>3_32bit): Likewise.
14794 (vsx_andc<mode>3_64bit): Likewise.
14795 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
14796 and xxlorc instructions.
14797 (vsx_eqv<mode>3_64bit): Likewise.
14798 (vsx_nand<mode>3_32bit): Likewise.
14799 (vsx_nand<mode>3_64bit): Likewise.
14800 (vsx_orc<mode>3_32bit): Likewise.
14801 (vsx_orc<mode>3_64bit): Likewise.
14802
14803 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
14804
14805 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
14806 instruction.
14807 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
14808 (p8_vmrgow): Likewise.
14809 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
14810 GPRs to be split under VSX.
14811 (p8v_clz<mode>2): Add power8 count leading zero support.
14812 (p8v_popcount<mode>2): Add power8 population count support.
14813 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
14814 support.
14815
14816 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
14817 instruction.
14818
14819 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
14820 builtin functions.
14821 (vec_nand): Likewise.
14822 (vec_vclz): Likewise.
14823 (vec_vclzb): Likewise.
14824 (vec_vclzd): Likewise.
14825 (vec_vclzh): Likewise.
14826 (vec_vclzw): Likewise.
14827 (vec_vgbbd): Likewise.
14828 (vec_vmrgew): Likewise.
14829 (vec_vmrgow): Likewise.
14830 (vec_vpopcnt): Likewise.
14831 (vec_vpopcntb): Likewise.
14832 (vec_vpopcntd): Likewise.
14833 (vec_vpopcnth): Likewise.
14834 (vec_vpopcntw): Likewise.
14835
37684c46
VM
148362013-06-06 Vladimir Makarov <vmakarov@redhat.com>
14837
14838 PR rtl-optimization/57468
14839 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
14840 spilled pseudos.
14841
d89ae27c
VM
148422013-06-06 Vladimir Makarov <vmakarov@redhat.com>
14843
14844 PR rtl-optimization/57459
14845 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
14846 type when setting live regs.
14847
3597e113
VM
148482013-06-06 Vladimir Makarov <vmakarov@redhat.com>
14849
14850 * config/s390/s390.opt (mlra): New option.
14851 * config/s390/s390.c (s390_decompose_address): Check displacement
14852 for all registers for LRA.
14853 (s390_secondary_reload): Don't used secondary reloads for LRA.
14854 (s390_lra_p): New function.
14855 (TARGET_LRA_P): Define.
14856 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
14857 of attribute cpu_facility to zarch for the last alternative.
14858 (*cmpmem_short): Ditto.
14859
01037aeb
EB
148602013-06-06 Eric Botcazou <ebotcazou@adacore.com>
14861
14862 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
14863 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
14864 (arm_expand_prologue): Likewise.
14865
3371a64f
TJ
148662013-06-06 Teresa Johnson <tejohnson@google.com>
14867
14868 PR c++/53743
14869 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
14870 as this is now done by redirect_edge_and_branch_force.
14871 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
14872 barriers, and fix interaction with splitting.
14873 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
14874 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
14875 reflect changes made in the routine.
14876 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
14877 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
14878 since this is called in cfglayout mode, and replace partition fixup
14879 with assert as that is now done by force_nonfallthru_and_redirect.
14880 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
14881 already be marked with region crossing note.
14882 (insert_section_boundary_note): Make non-static, gate on flag
14883 has_bb_partition, rewrite to also check for multiple partitions.
14884 (rest_of_handle_reorder_blocks): Remove call to
14885 insert_section_boundary_note, now done later during free_cfg.
14886 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
14887 * bb-reorder.h (insert_section_boundary_note): Declare.
14888 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
14889 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
14890 invoke insert_section_boundary_note.
14891 (try_redirect_by_replacing_jump): Remove unnecessary
14892 check for region crossing note.
14893 (fixup_partition_crossing): New function.
14894 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
14895 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
14896 in non-cfglayout mode.
14897 (force_nonfallthru_and_redirect): Fixup partition boundaries,
14898 remove old code that tried to do this. Emit barrier correctly
14899 when we are in cfglayout mode.
14900 (last_bb_in_partition): New function.
14901 (rtl_split_edge): Correctly fixup partition boundaries.
14902 (commit_one_edge_insertion): Remove old code that tried to
14903 fixup region crossing edge since this is now handled in
14904 split_block, and set up insertion point correctly since
14905 block may now end in a jump.
14906 (verify_hot_cold_block_grouping): Guard against checking when not in
14907 linearized RTL mode.
14908 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
14909 notes.
14910 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
14911 rtl_verify_flow_info, so not called in cfglayout mode.
14912 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
14913 (fixup_reorder_chain): Remove old code that attempted to fixup region
14914 crossing note as this is now handled in force_nonfallthru_and_redirect.
14915 (duplicate_insn_chain): Don't duplicate switch section notes.
14916 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
14917 note.
14918 * basic-block.h (emit_barrier_after_bb): Declare.
14919
66071e10
KT
149202013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14921
14922 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
14923 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
14924 arm_usatsihi): Adjust alternatives for arm_restrict_it.
14925
0e26bf3d
KT
149262013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14927
14928 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
14929 where appropriate.
14930 * config/arm/ldmstm.md: Regenerate.
14931
12b4e7ef
KT
149322013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14933
14934 * config/arm/sync.md (atomic_loaddi_1):
14935 Disable predication for arm_restrict_it.
14936 (arm_load_exclusive<mode>): Likewise.
14937 (arm_load_exclusivesi): Likewise.
14938 (arm_load_exclusivedi): Likewise.
14939 (arm_load_acquire_exclusive<mode>): Likewise.
14940 (arm_load_acquire_exclusivesi): Likewise.
14941 (arm_load_acquire_exclusivedi): Likewise.
14942 (arm_store_exclusive<mode>): Likewise.
14943 (arm_store_exclusive<mode>): Likewise.
14944 (arm_store_release_exclusivedi): Likewise.
14945 (arm_store_release_exclusive<mode>): Likewise.
14946
15d16c8a
RB
149472013-06-06 Richard Biener <rguenther@suse.de>
14948
14949 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
14950 after LTO_null.
14951 (lto_tag_is_tree_code_p): Adjust.
14952 (lto_tag_is_gimple_code_p): Likewise.
14953 (lto_gimple_code_to_tag): Likewise.
14954 (lto_tag_to_gimple_code): Likewise.
14955 (lto_tree_code_to_tag): Likewise.
14956 (lto_tag_to_tree_code): Likewise.
14957 * data-streamer.h (streamer_write_hwi_in_range): Use
14958 uhwi streaming to stream the normalized range.
14959 (streamer_read_hwi_in_range): Likewise.
14960
17a7fc37
KT
149612013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14962
14963 * config/arm/arm.md (enabled_for_depr_it): New attribute.
14964 (predicable_short_it): Likewise.
14965 (predicated): Likewise.
14966 (enabled): Handle above.
14967 (define_cond_exec): Set predicated attribute to yes.
14968
b57ca59b
MS
149692013-06-05 Mike Stump <mikestump@comcast.net>
14970
14971 * gdbinit.in (__FUNCTION__): Add.
14972
c1e183a9
UB
149732013-06-05 Uros Bizjak <ubizjak@gmail.com>
14974
14975 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
14976 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
14977
0378bddb
JH
149782013-06-05 Jan Hubicka <jh@suse.cz>
14979
14980 * varasm.c (mark_decl_referenced): Revert the removal until targets
14981 are fixed.
14982
8f8a2057
DE
149832013-06-05 David Edelsohn <dje.gcc@gmail.com>
14984
14985 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
14986 instead of mark_decl_referenced.
14987
edb983b2
JH
149882013-06-05 Jan Hubicka <jh@suse.cz>
14989
14990 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
14991 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
14992 and symtab_used_from_object_file_p.
14993 (cgraph_make_node_local_1): Clear forced_by_abi.
14994 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
14995 * cgraph.h (symtab_node_base): Add forced_by_abi.
14996 (decide_is_variable_needed): Remove.
14997 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
14998 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
14999 (decide_is_symbol_needed): ... this one; handle symbols in general;
15000 always analyze virtuals; honnor forced_by_abi.
15001 (cgraph_finalize_function): Update.
15002 (varpool_finalize_decl): Update.
15003 (symbol_defined_and_needed): Remove.
15004 (analyze_functions): Update.
15005 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15006 output_refs, input_overwrite_node): Handle forced_by_abi.
15007 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
15008 (address_taken_from_non_vtable_p): ... this one.
15009 (comdat_can_be_unshared_p_1): New function.
15010 (cgraph_comdat_can_be_unshared_p): Rename to ...
15011 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
15012 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
15013 (function_and_variable_visibility): Clear forced_by_abi as needed.
15014 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
15015 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
15016 * symtab.c (dump_symtab_base): Dump forced_by_abi.
15017 * varpool.c (decide_is_variable_needed): Remove.
15018
9912dbe5
KT
150192013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15020
15021 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
15022 (arm_option_override): Override arm_restrict_it where appropriate.
15023 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
15024 * config/arm/arm.opt (mrestrict-it): New command-line option.
15025 * doc/invoke.texi: Document -mrestrict-it.
15026
34c136b6
DM
150272013-06-05 David Malcolm <dmalcolm@redhat.com>
15028
15029 * tsan.c (tsan_atomic_table): Make const.
15030
a367df53
RB
150312013-06-05 Richard Biener <rguenther@suse.de>
15032
15033 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
15034 index associated with the tree we are supposed to replace.
15035 * tree-streamer-out.c (pack_ts_base_value_fields): Output
15036 TREE_ASM_WRITTEN as zero for everything but SSA names.
15037
70d51a19
DM
150382013-06-05 David Malcolm <dmalcolm@redhat.com>
15039
15040 * tree-ssa-structalias.c (call_stmt_vars): Make static.
15041
b9bd2075
JH
150422013-06-04 Jan Hubicka <jh@suse.cz>
15043
15044 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
15045 (input_node, input_varpool_node): Handle correctly external same
15046 body aliases.
15047 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
15048 nodes at ltrans stage.
15049
aaae719d
JH
150502013-06-04 Jan Hubicka <jh@suse.cz>
15051
15052 * ipa-inline.c (update_caller_keys): Fix availability test.
15053 (update_callee_keys): Likewise.
15054 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
15055 to follow ELF standard.
15056
107eea2c
JU
150572013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
15058
15059 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
15060 (mips64r5900el-*-elf*): New configurations.
15061 * config/mips/mips-cpus.def (r5900): New processor.
15062 * config/mips/mips-tables.opt: Regenerate.
15063 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
15064 (mips_issue_rate): Handle PROCESSOR_R5900.
15065 (mips_reorg_process_insns): Force reorder mode for the R5900.
15066 * config/mips/mips.h (TARGET_MIPS5900): Define.
15067 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
15068 TARGET_MIPS5900.
15069 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
15070 TARGET_MIPS5900.
15071 * config/mips/mips.md (processor): Add r5900.
15072 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
15073
b7342d25
IB
150742013-06-04 Ian Bolton <ian.bolton@arm.com>
15075
15076 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
15077 into function to generate MOVI instruction.
c1e183a9 15078 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
15079 (aarch64_preferred_simd_mode): Turn into wrapper.
15080 (aarch64_output_scalar_simd_mov_immediate): New function.
15081 * config/aarch64/aarch64-protos.h: Add prototype for above.
15082
81c2dfb9
IB
150832013-06-04 Ian Bolton <ian.bolton@arm.com>
15084
15085 * config/aarch64/aarch64.c (simd_immediate_info): Remove
15086 element_char member.
15087 (sizetochar): Return signed char.
15088 (aarch64_simd_valid_immediate): Remove elchar and other
15089 unnecessary variables.
15090 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
15091 Calculate element_char as required.
15092 * config/aarch64/aarch64-protos.h: Update and move prototype
15093 for aarch64_output_simd_mov_immediate.
15094 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
15095 Update arguments.
15096
48063b9d
IB
150972013-06-04 Ian Bolton <ian.bolton@arm.com>
15098
15099 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
15100 information completed by aarch64_simd_valid_immediate.
15101 (aarch64_legitimate_constant_p): Update arguments.
15102 (aarch64_simd_valid_immediate): Work with struct rather than many
15103 pointers.
15104 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
15105 (aarch64_simd_make_constant): Update arguments.
15106 (aarch64_output_simd_mov_immediate): Work with struct rather than
15107 many pointers. Output immediate directly rather than as operand.
15108 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
15109 Update prototype.
15110 * config/aarch64/constraints.md (Dn): Update arguments.
15111
3ea63f60
IB
151122013-06-04 Ian Bolton <ian.bolton@arm.com>
15113
15114 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
15115 longer static.
15116 (aarch64_simd_immediate_valid_for_move): Remove.
15117 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
15118 (aarch64_simd_make_constant): Update call.
15119 (aarch64_output_simd_mov_immediate): Update call.
15120 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
15121 Add prototype.
15122 * config/aarch64/constraints.md (Dn): Update call.
15123
d8edd899
IB
151242013-06-04 Ian Bolton <ian.bolton@arm.com>
15125
15126 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
15127 return type to bool for prototype.
15128 (aarch64_legitimate_constant_p): Check for true instead of not -1.
15129 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
15130 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
15131
44b20bb8
CM
151322013-06-04 Catherine Moore <clm@codesourcery.com>
15133
15134 * config/mips/mips.opt (meva): New.
c1e183a9 15135 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
15136 (ASM_SPEC): Handle -meva.
15137 * doc/invoke.texi (meva): Document.
15138
52befbd8
AM
151392013-06-04 Alan Modra <amodra@gmail.com>
15140
15141 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
15142 constant output.
15143
aadaf24e
KT
151442013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15145
15146 * rtl.def: Add extra fourth optional field to define_cond_exec.
15147 * gensupport.c (process_one_cond_exec): Process attributes from
15148 define_cond_exec.
15149 * doc/md.texi: Document fourth field in define_cond_exec.
15150
0cd9e9ee
EB
151512013-06-04 Eric Botcazou <ebotcazou@adacore.com>
15152
15153 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
15154 out the processing order as in store_bit_field_1.
15155
cb0f665d
JH
151562013-06-04 Jan Hubicka <jh@suse.cz>
15157
15158 PR middle-end/57500
15159 * cgraphunit.c (cgraph_process_same_body_aliases): Create
15160 non-VAR_DECL node if it does not exist yet.
15161
53984b9b
RS
151622013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
15163
15164 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
15165 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
15166 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
15167 target_cpu_default setting.
15168
5d318fd4
TJ
151692013-06-03 Teresa Johnson <tejohnson@google.com>
15170
15171 * dumpfile.c (opt_info_switch_p): Change -fopt-info
15172 default to -fopt-info=optimized instead of all.
15173 * doc/invoke.texi: Ditto.
15174 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
15175 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
15176 (execute_vect_slp): Emit BB vectorization success under
15177 MSG_OPTIMIZED_LOCATIONS.
15178 * tree-vect-slp.c (vect_slp_transform_bb): Change
15179 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
15180 * tree-vect-loop.c (vect_transform_loop): Ditto.
15181
ec3af349
JM
151822013-06-03 Jason Merrill <jason@redhat.com>
15183
15184 PR c++/57415
15185 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15186 Use TARGET_EXPR for C++.
15187
1baf9159
JJ
151882013-06-03 Jakub Jelinek <jakub@redhat.com>
15189
15190 PR rtl-optimization/57268
0cd9e9ee 15191 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
15192 if DEBUG_INSN_P (insn).
15193
15194 Reapply
15195 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
15196
15197 PR rtl-optimization/57268
15198 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15199 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15200
0f1d3965
YR
152012013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15202
15203 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
15204 (ix86_avoid_lea_for_addr): Likewise.
15205 (exact_dependency_1): Likewise.
15206 (ix86_adjust_cost): Likewise.
15207 (swap_top_of_ready_list): Fix formatting and !reload_completed check
15208 removed.
15209 (do_reorder_for_imul): Fix typo, formatting and
15210 !reload_completed check removed.
15211 (ix86_sched_reorder): Fix typo and formatting.
15212 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
15213 list.
15214
3bc30db4
SN
152152013-06-03 Sofiane Naci <sofiane.naci@arm.com>
15216
15217 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
15218
19cc6fac
EB
152192013-06-03 Eric Botcazou <ebotcazou@adacore.com>
15220
15221 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
15222 <STRING_CST>: Likewise.
15223 <VECTOR_CST>: Likewise.
15224
c68a6e08
JW
152252013-06-01 Janus Weil <janus@gcc.gnu.org>
15226 Mikael Morin <mikael@gcc.gnu.org>
15227
15228 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
15229 * config.in: Regenerated.
15230 * configure: Regenerated.
15231
38e55e5c
JH
152322013-06-01 Jan Hubicka <jh@suse.cz>
15233
15234 PR middle-end/57366
15235 * cgraphunit.c (compile): When weakref is not supported,
15236 set up transparent aliases before final output pass.
15237 * varasm.c (assemble_alias): Do not try to do it here.
15238
eb51d2ff
JH
152392013-06-01 Jan Hubicka <jh@suse.cz>
15240
15241 PR middle-end/57467
15242 * passes.c (for_per_function): Skip unanalyzed functions.
15243
40a7fe1e
JH
152442013-06-01 Jan Hubicka <jh@suse.cz>
15245
15246 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
15247 (lto_symtab_merge_symbols_1): ... this one.
15248 (lto_symtab_merge_cgraph_nodes): Rename to ...
15249 (lto_symtab_merge_symbols): ... this one; simplify.
15250 * cgraph.c (same_body_aliases_done): Rename to ...
15251 (cpp_implicit_aliases_done): ... this one.
15252 (cgraph_create_function_alias): Update.
15253 (cgraph_same_body_alias): Update.
c1e183a9 15254 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 15255 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 15256 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
15257 (cgraph_node): Remove same_body_alias.
15258 (varpool_node): Remove alias_of and extra_name_alias.
15259 (same_body_aliases_done): Rename to ..
15260 (cpp_implicit_aliases_done): ... this one.
15261 (symtab_alias_ultimate_target): Add default parameter.
15262 (symtab_resolve_alias): New function.
15263 (fixup_same_cpp_alias_visibility): Declare.
15264 (cgraph_function_node): Add default parameter.
15265 (cgraph_node_asm_name): Likewise.
15266 (cgraph_function_or_thunk_node): Add default parameter; do
15267 not ICE when it is NULL.
15268 (varpool_variable_node): Likewise.
15269 * tree-emutls.c (create_emultls_var): Update.
15270 (ipa_lower_emutls): Update.
15271 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
15272 (cgraph_reset_node): Reset alias info.
15273 (cgraph_finalize_function): Update.
15274 (fixup_same_cpp_alias_visibility): Move to symtab.c.
15275 (analyze_function): Simplify.
15276 (cgraph_process_same_body_aliases): Simplify.
15277 (analyze_functions): Fixup same body aliases.
15278 (handle_alias_pairs): Simplify.
15279 (assemble_thunk): Update.
15280 (assemble_thunks_and_aliases): Update.
15281 (output_weakrefs): Rewrite.
15282 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
15283 (lto_output_varpool_node): Likewise.
15284 (compute_ltrans_boundary): Remve assert.
15285 (get_alias_symbol): New functoin.
15286 (input_node): Rewrite alias handling.
15287 (input_varpool_node): Likewise.
15288 * ipa-pure-const.c (propagate_pure_const): Fix formating.
15289 * ipa.c (process_references): Handle weakrefs correctly.
15290 (symtab_remove_unreachable_nodes): Likewise.
15291 * trans-mem.c (get_cg_data): Update.
15292 (ipa_tm_create_version_alias): Update.
15293 (ipa_tm_execute): Update.
15294 * symtab.c (dump_symtab_base): Dump aliases.
15295 (verify_symtab_base): Verify aliases.
15296 (symtab_node_availability): New function.
15297 (symtab_alias_ultimate_target): Simplify.
15298 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
15299 handle all the fixup cases.
15300 (symtab_resolve_alias): New function.
15301 * passes.c (ipa_write_summaries): Handle weakrefs.
15302 * varpool.c (varpool_analyze_node): Simplify.
15303 (assemble_aliases): Update.
15304 (varpool_create_variable_alias): Simplify.
15305 (varpool_extra_name_alias): Simplify.
15306 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
15307 (lto_symtab_merge_symbols): ... this one.
15308
21759881
DT
153092013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
15310
15311 Revert
15312 PR rtl-optimization/57268
15313 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15314 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15315
daf4e940
TB
153162013-06-01 Tobias Burnus <burnus@net-b.de>
15317
15318 Partially reverted:
15319 2013-05-31 Tobias Burnus <burnus@net-b.de>
15320
15321 PR middle-end/57073
15322 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
15323 further up.
15324
c359d8d0
DT
153252013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
15326
15327 PR rtl-optimization/57268
15328 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15329 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15330
4172215d
EB
153312013-05-31 Eric Botcazou <ebotcazou@adacore.com>
15332
15333 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
15334 unordered comparison operators when -fno-trapping-math is in effect
15335 on the e500.
15336 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
15337 and implement unordered comparison operators properly on the e500.
15338
a8c50132
EB
153392013-05-31 Eric Botcazou <ebotcazou@adacore.com>
15340
15341 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
15342 for constant scalar integers.
15343 (simplify_relational_operation_1): Likewise.
15344
44626634
SB
153452013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
15346
15347 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
15348 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
15349 Fix comment.
15350
55805e54
YR
153512013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15352 Igor Zamyatin <igor.zamyatin@intel.com>
15353
15354 Silvermont (SLM) architecture performance tuning.
15355 * config/i386/i386.h (enum ix86_tune_indices): Add
15356 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
15357 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
15358
15359 * config/i386/i386.c (initial_ix86_tune_features)
15360 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
15361 (ix86_lea_outperforms): Handle Silvermont tuning.
15362 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
15363 call.
15364 (ix86_use_lea_for_mov): Likewise.
15365 (ix86_avoid_lea_for_addr): Likewise.
15366 (ix86_lea_for_add_ok): Likewise.
15367 (exact_dependency_1): New function.
15368 (exact_store_load_dependency): Likewise.
15369 (ix86_adjust_cost): Handle Silvermont tuning.
15370 (do_reoder_for_imul): Likewise.
15371 (swap_top_of_ready_list): New function.
15372 (ix86_sched_reorder): Changed to handle Silvermont tuning.
15373
15374 * config/i386/i386.md (peepholes that split memory operand in fp
15375 converts): New.
15376
e19c9de2
MS
153772013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
15378
15379 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15380 Remove un-necessary braces.
15381
38e6c9a6
MS
153822013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
15383
15384 * config/aarch64/aarch64.c (aarch64_classify_symbol):
15385 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
15386
e3530904
TB
153872013-05-31 Tobias Burnus <burnus@net-b.de>
15388
15389 PR middle-end/57073
c1e183a9 15390 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 15391
b6af05a9
KT
153922013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15393
15394 PR target/56315
15395 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
15396 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
15397 * config/arm/neon.md (iordi3_neon): Remove.
15398 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
15399 * config/arm/predicates.md (imm_for_neon_logic_operand):
15400 Move to earlier in the file.
15401 (neon_logic_op2): Likewise.
15402 (arm_iordi_operand_neon): New predicate.
15403
f800c166
RB
154042013-05-31 Richard Biener <rguenther@suse.de>
15405
15406 PR tree-optimization/57478
15407 PR tree-optimization/57453
15408 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
15409 are life as well.
15410
e571fa59
KP
154112013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15412
15413 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
15414 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
15415
0fa6e0ef
TB
154162013-05-30 Tobias Burnus <burnus@net-b.de>
15417 Thomas Koenig <tkoenig@gcc.gnu.org>
15418
15419 PR middle-end/57073
15420 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
15421 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
15422
4688ddf5
SB
154232013-05-30 Steven Bosscher <steven@gcc.gnu.org>
15424
0fa6e0ef 15425 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 15426
3b9ceb4b
VM
154272013-05-30 Vladimir Makarov <vmakarov@redhat.com>
15428
15429 * target.def (register_usage_leveling_p): New hook.
15430 * targhooks.c (default_register_usage_leveling_p): New.
15431 * targhooks.h (default_register_usage_leveling_p): New prototype.
15432 * lra-assigns.c (register_usage_leveling_p): Use the hook.
15433 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
15434 * doc/tm.texi: Update.
15435 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
15436
65f9e789
IB
154372013-05-30 Ian Bolton <ian.bolton@arm.com>
15438
15439 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
15440 (*insv_reg<mode>): New define_insn.
15441
12211b99 154422013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
15443
15444 PR rtl-optimization/57439
15445 * postreload.c (move2add_valid_value_p): Check that we have
15446 a zero subreg_regno_offset when accessing the register in
15447 the requested mode.
15448
0b871ccf
YR
154492013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15450 Igor Zamyatin <igor.zamyatin@intel.com>
15451
15452 Silvermont (SLM) architecture pipeline model, tuning and
15453 insn selection.
15454 * config.gcc: Add slm config options and target.
15455
15456 * config/i386/slm.md: New.
15457
15458 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15459
f43245d1 15460 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
15461 PROCESSOR_SLM.
15462 (ix86_target_macros_internal): Likewise.
15463
f43245d1 15464 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
15465 (m_SLM): New macro flag.
15466 (initial_ix86_tune_features): Set m_SLM.
15467 (x86_accumulate_outgoing_args): Likewise.
15468 (x86_arch_always_fancy_math_387): Likewise.
15469 (processor_target_table): Add slm cost.
15470 (cpu_names): Add slm cpu name.
15471 (x86_option_override_internal): Set SLM ISA.
15472 (ix86_issue_rate): New case PROCESSOR_SLM.
15473 (ia32_multipass_dfa_lookahead): Likewise.
15474 (fold_builtin_cpu): Add slm.
15475
15476 * config/i386/i386.h (TARGET_SLM): New target macro.
15477 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
15478 (processor_type): Add PROCESSOR_SLM.
15479
15480 * config/i386/i386.md (cpu): Add new value "slm".
15481 (slm.md): Include slm.md.
15482
24d5b097
XG
154832013-05-30 Bernd Schmidt <bernds@codesourcery.com>
15484 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15485
15486 * config/arm/arm-protos.h: Add and update function protos.
15487 * config/arm/arm.c (use_simple_return_p): New added.
15488 (thumb2_expand_return): Check simple_return flag.
15489 * config/arm/arm.md: Add simple_return and conditional simple_return.
15490 * config/arm/iterators.md: Add iterator for return and simple_return.
15491
c1cccc15
ZC
154922013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15493
15494 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
15495 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
15496 (arm_emit_vfp_multi_reg_pop): Likewise.
15497 (thumb2_emit_ldrd_pop): Likewise.
15498 (arm_expand_epilogue): Add misc REG_CFA notes.
15499 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
15500
3a4f280b
LC
155012013-05-29 Lawrence Crowl <crowl@google.com>
15502
15503 * config/arm/t-arm: Update for below.
15504
15505 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
15506 Change type to hash_table. Update dependent calls and types.
15507
15508 * config/i386/t-cygming: Update for below.
15509
15510 * config/i386/t-interix: Update for below.
15511
15512 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
15513 Change type to hash_table. Update dependent calls and types.
15514 (i386_find_on_wrapper_list::wrappers): Likewise.
15515
15516 * config/ia64/t-ia64: Update for below.
15517
15518 * config/ia64/ia64.c (bundle_state_table):
15519 Change type to hash_table. Update dependent calls and types.
15520
15521 * config/mips/mips.c (mips_reorg_process_insns::htab):
15522 Change type to hash_table. Update dependent calls and types.
15523
15524 * config/sol2.c (solaris_comdat_htab):
15525 Change type to hash_table. Update dependent calls and types.
15526
15527 * config/t-sol2: Update for above.
15528
1388a0e3
TJ
155292013-05-29 Teresa Johnson <tejohnson@google.com>
15530
15531 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
15532 functions are not yet marked as defined.
15533
a5965b52 155342013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
15535 Pat Haugen <pthaugen@us.ibm.com>
15536 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
15537
15538 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
15539 instructions.
15540 (VEC_A): Likewise.
15541 (VEC_C): Likewise.
15542 (vrotl<mode>3): Likewise.
15543 (vashl<mode>3): Likewise.
15544 (vlshr<mode>3): Likewise.
15545 (vashr<mode>3): Likewise.
15546
15547 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15548 support for power8 V2DI builtins.
15549
15550 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
15551 power8 V2DI builtins.
15552 (vupkhsw): Likewise.
15553 (vupklsw): Likewise.
15554 (vaddudm): Likewise.
15555 (vminsd): Likewise.
15556 (vmaxsd): Likewise.
15557 (vminud): Likewise.
15558 (vmaxud): Likewise.
15559 (vpkudum): Likewise.
15560 (vpksdss): Likewise.
15561 (vpkudus): Likewise.
15562 (vpksdus): Likewise.
15563 (vrld): Likewise.
15564 (vsld): Likewise.
15565 (vsrd): Likewise.
15566 (vsrad): Likewise.
15567 (vsubudm): Likewise.
15568 (vcmpequd): Likewise.
15569 (vcmpgtsd): Likewise.
15570 (vcmpgtud): Likewise.
15571 (vcmpequd_p): Likewise.
15572 (vcmpgtsd_p): Likewise.
15573 (vcmpgtud_p): Likewise.
15574 (vupkhsw): Likewise.
15575 (vupklsw): Likewise.
15576 (vaddudm): Likewise.
15577 (vmaxsd): Likewise.
15578 (vmaxud): Likewise.
15579 (vminsd): Likewise.
15580 (vminud): Likewise.
15581 (vpksdss): Likewise.
15582 (vpksdus): Likewise.
15583 (vpkudum): Likewise.
15584 (vpkudus): Likewise.
15585 (vrld): Likewise.
15586 (vsld): Likewise.
15587 (vsrad): Likewise.
15588 (vsrd): Likewise.
15589 (vsubudm): Likewise.
15590
15591 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
15592 support for power8 V2DI instructions.
15593
15594 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
15595 power8 V2DI instructions. Combine pack and unpack insns to use an
15596 iterator for each mode. Check whether a particular mode supports
15597 Altivec instructions instead of just checking TARGET_ALTIVEC.
15598 (UNSPEC_VPKUWUM): Likewise.
15599 (UNSPEC_VPKSHSS): Likewise.
15600 (UNSPEC_VPKSWSS): Likewise.
15601 (UNSPEC_VPKUHUS): Likewise.
15602 (UNSPEC_VPKSHUS): Likewise.
15603 (UNSPEC_VPKUWUS): Likewise.
15604 (UNSPEC_VPKSWUS): Likewise.
15605 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
15606 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
15607 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
15608 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
15609 (UNSPEC_VUPKHSB): Likewise.
15610 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
15611 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
15612 (UNSPEC_VUPKHSH): Likewise.
15613 (UNSPEC_VUPKLSB): Likewise.
15614 (UNSPEC_VUPKLSH): Likewise.
15615 (VI2): Likewise.
15616 (VI_char): Likewise.
15617 (VI_scalar): Likewise.
15618 (VI_unit): Likewise.
15619 (VP): Likewise.
15620 (VP_small): Likewise.
15621 (VP_small_lc): Likewise.
15622 (VU_char): Likewise.
15623 (add<mode>3): Likewise.
15624 (altivec_vaddcuw): Likewise.
15625 (altivec_vaddu<VI_char>s): Likewise.
15626 (altivec_vadds<VI_char>s): Likewise.
15627 (sub<mode>3): Likewise.
15628 (altivec_vsubcuw): Likewise.
15629 (altivec_vsubu<VI_char>s): Likewise.
15630 (altivec_vsubs<VI_char>s): Likewise.
15631 (altivec_vavgs<VI_char>): Likewise.
15632 (altivec_vcmpbfp): Likewise.
15633 (altivec_eq<mode>): Likewise.
15634 (altivec_gt<mode>): Likewise.
15635 (altivec_gtu<mode>): Likewise.
15636 (umax<mode>3): Likewise.
15637 (smax<mode>3): Likewise.
15638 (umin<mode>3): Likewise.
15639 (smin<mode>3): Likewise.
15640 (altivec_vpkuhum): Likewise.
15641 (altivec_vpkuwum): Likewise.
15642 (altivec_vpkshss): Likewise.
15643 (altivec_vpkswss): Likewise.
15644 (altivec_vpkuhus): Likewise.
15645 (altivec_vpkshus): Likewise.
15646 (altivec_vpkuwus): Likewise.
15647 (altivec_vpkswus): Likewise.
15648 (altivec_vpks<VI_char>ss): Likewise.
15649 (altivec_vpks<VI_char>us): Likewise.
15650 (altivec_vpku<VI_char>us): Likewise.
15651 (altivec_vpku<VI_char>um): Likewise.
15652 (altivec_vrl<VI_char>): Likewise.
15653 (altivec_vsl<VI_char>): Likewise.
15654 (altivec_vsr<VI_char>): Likewise.
15655 (altivec_vsra<VI_char>): Likewise.
15656 (altivec_vsldoi_<mode>): Likewise.
15657 (altivec_vupkhsb): Likewise.
15658 (altivec_vupkhs<VU_char>): Likewise.
15659 (altivec_vupkls<VU_char>): Likewise.
15660 (altivec_vupkhsh): Likewise.
15661 (altivec_vupklsb): Likewise.
15662 (altivec_vupklsh): Likewise.
15663 (altivec_vcmpequ<VI_char>_p): Likewise.
15664 (altivec_vcmpgts<VI_char>_p): Likewise.
15665 (altivec_vcmpgtu<VI_char>_p): Likewise.
15666 (abs<mode>2): Likewise.
15667 (vec_unpacks_hi_v16qi): Likewise.
15668 (vec_unpacks_hi_v8hi): Likewise.
15669 (vec_unpacks_lo_v16qi): Likewise.
15670 (vec_unpacks_hi_<VP_small_lc>): Likewise.
15671 (vec_unpacks_lo_v8hi): Likewise.
15672 (vec_unpacks_lo_<VP_small_lc>): Likewise.
15673 (vec_pack_trunc_v8h): Likewise.
15674 (vec_pack_trunc_v4si): Likewise.
15675 (vec_pack_trunc_<mode>): Likewise.
15676
15677 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
15678 V2DI builtins.
15679 (vec_vmaxsd): Likewise.
15680 (vec_vmaxud): Likewise.
15681 (vec_vminsd): Likewise.
15682 (vec_vminud): Likewise.
15683 (vec_vpksdss): Likewise.
15684 (vec_vpksdus): Likewise.
15685 (vec_vpkudum): Likewise.
15686 (vec_vpkudus): Likewise.
15687 (vec_vrld): Likewise.
15688 (vec_vsld): Likewise.
15689 (vec_vsrad): Likewise.
15690 (vec_vsrd): Likewise.
15691 (vec_vsubudm): Likewise.
15692 (vec_vupkhsw): Likewise.
15693 (vec_vupklsw): Likewise.
15694
e70670cf
JH
156952013-05-29 Jan Hubicka <jh@suse.cz>
15696
15697 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
15698 flags; reorder rest of fields in more consistent way.
15699 (varpool_node): Remove analyzed, finalized and alias.
15700 (cgraph_ndoe): Likewise.
15701 (symtab_alias_ultimate_target): New function.
15702 (cgraph_function_node): Move offline.
15703 (cgraph_reset_node): Declare.
15704 (cgraph_comdat_can_be_unshared_p): Remove.
15705 (varpool_remove_initializer): Declare.
15706 (varpool_first_defined_variable, varpool_next_defined_variable
15707 cgraph_first_defined_function, cgraph_next_defined_function): Update.
15708 (cgraph_function_with_gimple_body_p): Update.
15709 (varpool_all_refs_explicit_p): Update.
15710 (symtab_alias_target): New function.
15711 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
15712 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
15713 (cgraph_function_or_thunk_node): Simplify using
15714 symtab_alias_ultimate_target.
e70670cf
JH
15715 (varpool_variable_node): Likewise.
15716 * cgraph.c (cgraph_create_function_alias): Update.
15717 (cgraph_add_thunk): Update.
15718 (cgraph_remove_node): Update.
15719 (dump_cgraph_node): Do not dump removed flags.
15720 (cgraph_function_body_availability): Update.
15721 (cgraph_propagate_frequency): Update.
15722 (verify_cgraph_node): Check sanity of local flag.
15723 (cgraph_function_node): Move here from cgraph.h; revamp for
15724 cgraph_function_or_thunk_node.
15725 * lto-symtab.c (lto_varpool_replace_node): Update.
15726 (lto_symtab_resolve_can_prevail_p): Update.
15727 (lto_symtab_merge_cgraph_nodes): Update.
15728 * ipa-cp.c (determine_versionability, initialize_node_lattices,
15729 propagate_constants_accross_call, devirtualization_time_bonus,
15730 ipcp_propagate_stage): Update.
15731 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
15732 * ipa-inline-transform.c (clone_inlined_nodes,
15733 preserve_function_body_p): Update.
e70670cf
JH
15734 * ipa-reference.c (propagate): Update.
15735 (write_node_summary_p): Update.
15736 * toplev.c (wrapup_global_declaration_2): Update.
15737 * cgraphunit.c (cgraph_analyze_function): Rename to ...
15738 (analyze_function) ... this one.
15739 (cgraph_process_new_functions): Update.
15740 (cgraph_reset_node): Export.
15741 (cgraph_finalize_function): Update.
15742 (cgraph_add_new_function): Update.
15743 (process_function_and_variable_attributes): Update.
15744 (varpool_finalize_decl): Update.
15745 (symbol_finalized): Remove.
15746 (symbol_finalized_and_needed): Rename to ...
15747 (symbol_defined_and_needed): ... update.
15748 (cgraph_analyze_functions): Update.
15749 (handle_alias_pairs): Update.
15750 (mark_functions_to_output): Update.
15751 (assemble_thunk): Update.
15752 (output_in_order): Update.
15753 (output_weakrefs): Update.
15754 (finalize_compilation_unit): Update.
15755 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
15756 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
15757 input_node, input_varpool_node): Update.
15758 * dbxout.c (dbxout_expand_expr): Update.
15759 * cgraphclones.c (cgraph_clone_node): Update.
15760 (cgraph_copy_node_for_versioning): Update.
15761 (cgraph_materialize_clone): Update.
15762 (cgraph_materialize_all_clones): Update.
15763 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
15764 propagate_pure_const, propagate_nothrow): Update.
15765 * lto-streamer-out.c (lto_output, write_symbol): Update.
15766 * ipa-utils.c (ipa_reverse_postorder): Update.
15767 * ipa-inline.c (can_inline_edge_p): Update.
15768 (update_caller_keys, ipa_inline): Update.
15769 * dwarf2out.c (reference_to_unused,
15770 premark_types_used_by_global_vars_helper): Update.
15771 * tree-eh.c (tree_could_trap_p): Update.
15772 * ipa-split.c (consider_split, execute_split_functions): Update.
15773 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
15774 has_addr_references_p): Update; move ahead in file for better
15775 readability.
e70670cf
JH
15776 (process_references): Simplify.
15777 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
15778 bodies are removed.
15779 (cgraph_comdat_can_be_unshared_p): Make static.
15780 (cgraph_externally_visible_p): Update.
15781 (varpool_externally_visible_p): Update.
15782 (function_and_variable_visibility): Update.
15783 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
15784 ipa_tm_mark_force_output_node): Update.
15785 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
15786 estimate_edge_devirt_benefit, inline_generate_summary,
15787 inline_write_summary): Update.
15788 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
15789 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
15790 (ipa_print_node_params, ipa_prop_read_section,
15791 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
15792 * varasm.c (mark_decl_referenced): Update.
15793 (assemble_alias, dump_tm_clone_pairs): Update.
15794 * tree-inline.c (copy_bb): Update.
15795 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
15796 Update.
15797 * symtab.c (dump_symtab_base): Print new flags.
15798 (verify_symtab_base): Verify new flags.
15799 (symtab_alias_ultimate_target): New function.
15800 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
15801 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
15802 Update.
c1e183a9
UB
15803 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
15804 Update.
e70670cf
JH
15805 * i386.c (ix86_get_function_versions_dispatcher,
15806 ix86_generate_version_dispatcher_body): Update.
15807 (fold_builtin_cpu): Use varpool_add_new_variable.
15808 * varpool.c (varpool_remove_initializer): Break out from ...
15809 (varpool_remove_node): ... this one.
15810 (dump_varpool_node, varpool_node_for_asm,
15811 cgraph_variable_initializer_availability, varpool_analyze_node,
15812 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
15813 varpool_finalize_named_section_flags, varpool_create_variable_alias):
15814 Update.
e70670cf 15815
182802ad
JH
158162013-05-29 Jan Hubicka <jh@suse.cz>
15817
15818 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
15819
8190b609
ER
158202013-05-29 Easwaran Raman <eraman@google.com>
15821
15822 PR tree-optimization/57442
15823 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
15824 when control exits the main loop.
15825
69f5aa9b
SKS
158262013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
15827
15828 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
15829 and RX600.
c1e183a9 15830 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
15831 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
15832 * rx/t-rx: Add rx100 under multi library matches option for nofpu
15833 option.
15834
4b847da9
BS
158352013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15836
15837 PR tree-optimization/57441
15838 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
15839 Don't limit size of incr_vec to number of candidates.
15840
4fc43c39
SE
158412013-05-29 Steve Ellcey <sellcey@imgtec.com>
15842
15843 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
15844 and mips16 directories.
c1e183a9 15845 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
15846 (MULTILIB_DIRNAMES): Ditto.
15847 (MULTILIB_EXCEPTIONS): Add new exceptions.
15848 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
15849 (MULTILIB_DIRNAMES): Ditto.
15850 (MULTILIB_EXCEPTIONS): Add new exceptions.
15851
12211b99 158522012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
15853 Marcus Shawcroft <marcus.shawcroft@arm.com>
15854
15855 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15856 SYMBOL_TINY_ABSOLUTE.
15857 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
15858 SYMBOL_TINY_ABSOLUTE.
15859 (aarch64_expand_mov_immediate): Likewise.
15860 (aarch64_classify_symbol): Likewise.
15861 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
15862 Permit SYMBOL_TINY_ABSOLUTE.
15863 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
15864
12211b99 158652013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
15866 Marcus Shawcroft <marcus.shawcroft@arm.com>
15867
15868 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
15869 Refactor if/switch. Replace gcc_assert with if.
15870
c0186656
GG
158712013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15872
15873 * config/i386/i386.c (initial_ix86_tune_features): Enable
15874 FP Reassociation for AMD bdver1 and bdver2.
15875
d20188f3
MJ
158762013-05-29 Martin Jambor <mjambor@suse.cz>
15877
15878 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
15879 and IMAGPART_EXPR do not occur within other handled_components.
15880
292cba13
RB
158812013-05-29 Richard Biener <rguenther@suse.de>
15882
15883 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
15884 access on whether the use is in the BB we currently try to
15885 vectorize.
15886 (vect_bb_vectorization_profitable_p): Pass the BB we currently
15887 vectorize to vect_bb_slp_scalar_cost.
15888
6eddf228
RB
158892013-05-29 Richard Biener <rguenther@suse.de>
15890
15891 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
15892 computing scalar cost offsetted by stmts that are kept live
15893 by scalar uses.
15894 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
15895 for computation of scalar cost.
15896
7df36117
SE
158972013-05-28 Steve Ellcey <sellcey@mips.com>
15898
15899 * config/mips/mips-cpus.def (mips32r2): Change processor type.
15900
36536d79
BI
159012013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
15902
15903 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
15904 array notation built-in reduction functions.
15905 * doc/passes.texi (Passes): Added documentation about changes done
15906 for Cilk Plus.
15907 * doc/invoke.texi (C Dialect Options): Added documentation about
15908 the -fcilkplus flag.
15909 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
15910 (BUILTINS_DEF): Depend on cilkplus.def.
15911 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
15912 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
15913 * cilkplus.def: New file.
15914
12211b99 159152013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
15916
15917 PR rtl-optimization/57439
15918 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
15919
9daf6dbb
ER
159202013-05-28 Easwaran Raman <eraman@google.com>
15921
15922 PR tree-optimization/57337
15923 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
15924 (find_insert_point): Correctly identify the insertion point
15925 when two statements with the same UID is compared.
15926
fbd7e877
RB
159272013-05-28 Richard Biener <rguenther@suse.de>
15928
15929 PR tree-optimization/56787
15930 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
15931 from the list of data references.
15932 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
15933 clobbers.
15934 (vect_analyze_loop_operations): Likewise.
15935 (vect_transform_loop): Remove clobbers.
15936
bbba1117
MJ
159372013-05-28 Martin Jambor <mjambor@suse.cz>
15938
15939 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
15940 and REALPART_EXPRs have scalar type.
15941
bd388c2a
RB
159422013-05-28 Richard Biener <rguenther@suse.de>
15943
15944 PR tree-optimization/57411
15945 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
15946 virtual operands.
15947 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
15948 virtual operand propagation.
15949
2f56a311
EB
159502013-05-28 Eric Botcazou <ebotcazou@adacore.com>
15951
15952 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
15953 destination register for bmasksi_vis.
15954 (vector_init_bshuffle): Likewise.
15955 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
15956
5c3eacbb
EB
159572013-05-28 Eric Botcazou <ebotcazou@adacore.com>
15958
15959 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
15960 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
15961 mode if the instruction isn't available in the original mode.
15962 * config/sparc/sparc.opt (mfix-ut699): New option.
15963 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
15964 (divdf3): Turn into expander.
15965 (divdf3_nofix): New insn.
15966 (divdf3_fix): Likewise.
15967 (divsf3): Disable if -mfix-ut699.
15968 (sqrtdf2): Turn into expander.
15969 (sqrtdf2_nofix): New insn.
15970 (sqrtdf2_fix): Likewise.
15971 (sqrtsf2): Disable if -mfix-ut699.
15972
a1756c0a
RB
159732013-05-27 Richard Biener <rguenther@suse.de>
15974
15975 PR middle-end/57412
15976 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
15977 block for the new loop.
15978
5a892248
RB
159792013-05-27 Richard Biener <rguenther@suse.de>
15980
15981 PR tree-optimization/57343
15982 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
15983 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
15984 (number_of_iterations_cond): Do not build the folded tree.
15985
d1de852b
RB
159862013-05-27 Richard Biener <rguenther@suse.de>
15987
15988 Revert
15989 PR middle-end/57381
15990 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
15991 OEP_CONSTANT_ADDRESS_OF retained.
15992
15993 PR tree-optimization/57417
15994 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
15995 for unchanged base.
15996 (set_ssa_val_to): Compare addresses using
15997 get_addr_base_and_unit_offset.
15998
12211b99 159992013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
16000
16001 PR rtl-optimization/56833
16002 * postreload.c (move2add_record_mode): New function.
16003 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
16004 (move2add_use_add2_insn): Use move2add_record_sym_value.
16005 (move2add_use_add3_insn): Likewise.
16006 (reload_cse_move2add): Use move2add_valid_value_p and
16007 move2add_record_mode. Invalidate call-clobbered and REG_INC
16008 affected regs by setting reg_mode to VOIDmode.
16009 (move2add_note_store): Don't pretend the inside of a SUBREG is
16010 the actual destination. Invalidate single/leading registers by
16011 setting reg_mode to VOIDmode.
16012 Use move2add_record_sym_value, move2add_valid_value_p and
16013 move2add_record_mode.
16014
b03be25f
RB
160152013-05-27 Richard Biener <rguenther@suse.de>
16016
16017 PR tree-optimization/57396
16018 * tree-affine.c (double_int_constant_multiple_p): Properly
16019 return false for val == 0 and div != 0.
16020
44e88db2
RS
160212013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16022
16023 * config/mips/mips.h: Use #elif in preprocessor conditions.
16024
3b859704
RS
160252013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16026
16027 PR target/53916
16028 * config/mips/constraints.md (kl): New constraint.
16029 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
16030 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
16031 constraint for operand 0. Split after CSE for MIPS16. Emit a move
16032 from LO for MIPS16.
16033 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
16034
c979d5f5
RS
160352013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16036
16037 PR target/55777
16038 * config/mips/mips.c (mips_can_inline_p): New function.
16039 (TARGET_CAN_INLINE_P): Define.
16040
8e90de43
SB
160412013-05-25 Steven Bosscher <steven@gcc.gnu.org>
16042
16043 * sched-int.h (ds_t, dw_t): Make unsigned int.
16044 Fix documentation that describes how all the ds_t bits are used.
16045 Reserve the last bit for delayed-branch scheduling.
16046 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
16047 (BITS_PER_DEP_WEAK): Fix definition and documentation.
16048 (gen_dep_weak_1): Remove prototype.
16049 * sched-deps.c (get_dep_weak_1): Make static.
16050 * target.def (speculate_insn, needs_block_p, gen_spec_check,
16051 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
16052 * doc/tm.texi: Regenerate.
16053 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
16054
cb5cb194
SB
160552013-05-24 Steven Bosscher <steven@gcc.gnu.org>
16056
16057 PR debug/56950
16058 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
16059
5bd93ff6
NS
160602013-05-24 Nathan Sidwell <nathan@codesourcery.com>
16061 Sandra Loosemore <sandra@codesourcery.com>
16062
16063 * config.gcc (powerpc-*): Allow native for with-cpu.
16064
2343af65
JL
160652013-05-24 Jeff Law <law@redhat.com>
16066
16067 PR tree-optimization/57124
16068 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
16069 conversion feeding a condition if the range has an overflow
16070 if -fstrict-overflow. Add warnings for when we do make the
16071 transformation.
16072
3ad695b9
DC
160732013-05-24 Dehao Chen <dehao@google.com>
16074
04960246 16075 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
16076 (locus_discrim_hasher): Likewise.
16077 (locus_discrim_hasher::hash): Likewise.
16078 (locus_discrim_hasher::equal): Likewise.
16079
82338059
MJ
160802013-05-24 Martin Jambor <mjambor@suse.cz>
16081
16082 PR tree-optimization/57294
16083 * cgraph.h (ipa_record_stmt_references): Declare.
16084 * cgraphbuild.c (ipa_record_stmt_references): New function.
16085 (build_cgraph_edges): Use ipa_record_stmt_references.
16086 (rebuild_cgraph_edges): Likewise.
16087 (cgraph_rebuild_references): Likewise.
16088 * ipa-prop.c (ipa_modify_call_arguments): Discard references
16089 associated with the old statement and build references from the
16090 newly built statements.
16091 * ipa-ref.c (ipa_remove_stmt_references): New function.
16092 * ipa-ref.h (ipa_remove_stmt_references): Declare.
16093
1ccd4874
VM
160942013-05-24 Vladimir Makarov <vmakarov@redhat.com>
16095
55805e54 16096 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 16097 mem-mem moves.
55805e54 16098 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 16099 too.
55805e54 16100 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
16101 secondary memory moves.
16102 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
16103 reg set up in the current insn.
16104
25e25c73
DC
161052013-05-24 Dehao Chen <dehao@google.com>
16106
04960246 16107 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
16108 hash function.
16109 (locus_descrim_hasher::equal): Likewise.
04960246 16110 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
16111 (make_edges): Likewise.
16112 (next_discriminator_for_locus): Likewise.
16113 (same_line_p): Likewise.
16114 (assign_discriminators): Likewise.
16115 (make_cond_expr_edges): Likewise.
16116 (make_gimple_switch_edges): Likewise.
16117 (make_goto_expr_edges): Likewise.
16118 (make_gimple_asm_edges): Likewise.
16119
50d38551
IB
161202013-05-24 Ian Bolton <ian.bolton@arm.com>
16121
16122 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
16123 X format specifier to only display bottom 16 bits.
16124 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
16125 immediate to match for operand 2, since it will be masked.
16126
aea0101d
RB
161272013-05-24 Richard Biener <rguenther@suse.de>
16128
16129 PR tree-optimization/57287
16130 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
16131 all SSA names that occur in abnormal PHIs.
16132
634e03d3
AI
161332013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16134
16135 PR tree-ssa/57385
16136 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
16137 that index is not negative.
16138
b17c024f
EB
161392013-05-24 Eric Botcazou <ebotcazou@adacore.com>
16140
16141 PR rtl-optimization/55177
16142 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
16143 (simplify_byte_swapping_operation): New.
16144 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
16145 (simplify_relational_operation_1): Deal with BSWAP.
16146
46aeac1b
RH
161472013-05-23 Richard Henderson <rth@redhat.com>
16148
16149 PR target/56742
16150 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
16151 (ix86_reorg): Call it.
16152
70cc1536
UB
161532013-05-23 Uros Bizjak <ubizjak@gmail.com>
16154
16155 PR target/57379
16156 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
16157 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
16158 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
16159
b3851501
CB
161602013-05-23 Christian Bruel <christian.bruel@st.com>
16161
16162 PR debug/57351
16163 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
16164
12211b99 161652013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
16166 Marcus Shawcroft <marcus.shawcroft@arm.com>
16167
16168 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
16169 * config/aarch64/constraints.md (Usa): Remove.
16170 * doc/md.texi (AArch64 Usa): Remove.
16171
12211b99 161722013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
16173 Marcus Shawcroft <marcus.shawcroft@arm.com>
16174
16175 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
16176 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
16177 * config/aarch64/predicates.md (aarch64_const_address): Remove.
16178 (aarch64_mov_operand): Use aarch64_mov_operand_p.
16179
12211b99 161802013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
16181
16182 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
16183 instruction (AdvSIMD).
16184 * config/aarch64/aarch64-builtins.c
16185 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
16186 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
16187
76c36cb1 161882013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
16189
16190 PR middle-end/57347
16191 * tree.h (contains_bitfld_component_ref_p): Declare.
16192 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
16193 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
16194 caller.
7d2fb524
MJ
16195 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
16196 not access a bit-field. Assert all final offsets are byte-aligned.
16197
ce521ae6
RB
161982013-05-23 Richard Biener <rguenther@suse.de>
16199
16200 PR tree-optimization/57380
16201 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
16202 least one invariant or re-used load.
16203 * passes.c (init_optimization_passes): Move pass_phiprop before
16204 pass_forwprop.
16205
75c7257f
JG
162062013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
16207
16208 * config/aarch64/aarch64-simd.md
16209 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
16210
af6d44b5
RB
162112013-05-23 Richard Biener <rguenther@suse.de>
16212
16213 PR middle-end/57381
16214 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
16215 OEP_CONSTANT_ADDRESS_OF retained.
16216
bd3647bf
JJ
162172013-05-23 Jakub Jelinek <jakub@redhat.com>
16218
16219 PR middle-end/57344
70cc1536
UB
16220 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
16221 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 16222
a55757ea
RB
162232013-05-23 Richard Biener <rguenther@suse.de>
16224
16225 PR rtl-optimization/57341
16226 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
16227 instead of true_dependence.
16228
cfb00b41
DM
162292013-05-22 David Malcolm <dmalcolm@redhat.com>
16230
dd1c676f
DM
16231 * bb-reorder.c (branch_threshold): Make const.
16232 (exec_threshold): Ditto.
cfb00b41 16233
f62511da 162342013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
16235 Pat Haugen <pthaugen@us.ibm.com>
16236 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
16237
16238 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
16239 documentation for the power8 crypto builtins.
16240
16241 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
16242
16243 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
16244 macros for defining power8 builtin functions.
16245 (BU_P8V_AV_2): Likewise.
16246 (BU_P8V_AV_P): Likewise.
16247 (BU_P8V_VSX_1): Likewise.
16248 (BU_P8V_OVERLOAD_1): Likewise.
16249 (BU_P8V_OVERLOAD_2): Likewise.
16250 (BU_CRYPTO_1): Likewise.
16251 (BU_CRYPTO_2): Likewise.
16252 (BU_CRYPTO_3): Likewise.
16253 (BU_CRYPTO_OVERLOAD_1): Likewise.
16254 (BU_CRYPTO_OVERLOAD_2): Likewise.
16255 (XSCVSPDP): Fix typo, point to the correct instruction.
16256 (VCIPHER): Add power8 crypto builtins.
16257 (VCIPHERLAST): Likewise.
16258 (VNCIPHER): Likewise.
16259 (VNCIPHERLAST): Likewise.
16260 (VPMSUMB): Likewise.
16261 (VPMSUMH): Likewise.
16262 (VPMSUMW): Likewise.
16263 (VPERMXOR_V2DI): Likewise.
16264 (VPERMXOR_V4SI: Likewise.
16265 (VPERMXOR_V8HI: Likewise.
16266 (VPERMXOR_V16QI: Likewise.
16267 (VSHASIGMAW): Likewise.
16268 (VSHASIGMAD): Likewise.
16269 (VPMSUM): Likewise.
16270 (VPERMXOR): Likewise.
16271 (VSHASIGMA): Likewise.
16272
16273 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16274 __CRYPTO__ if the crypto instructions are available.
16275 (altivec_overloaded_builtins): Add support for overloaded power8
16276 builtins.
16277
16278 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
16279 support for power8 crypto builtins.
16280 (builtin_function_type): Likewise.
16281 (altivec_init_builtins): Add support for builtins that take vector
16282 long long (V2DI) arguments.
16283
16284 * config/rs6000/crypto.md: New file, define power8 crypto
16285 instructions.
16286
162872013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
16288 Pat Haugen <pthaugen@us.ibm.com>
16289 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
16290
16291 * doc/invoke.texi (Option Summary): Add power8 options.
16292 (RS/6000 and PowerPC Options): Likewise.
16293
16294 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
16295 constraints.md instead of rs6000.h. Reorder w* constraints. Add
16296 wm, wn, wr documentation.
16297
f43245d1 16298 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
16299 registers if direct move instructions are enabled.
16300 (wn): New constraint for no registers.
16301 (wq): New constraint for quad word even GPR registers.
16302 (wr): New constraint if 64-bit instructions are enabled.
16303 (wv): New constraint if power8 vector instructions are enabled.
16304 (wQ): New constraint for quad word memory locations.
16305
f43245d1 16306 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
16307 constraint for 0..15 for crypto instructions.
16308 (gpc_reg_operand): If VSX allow registers in VSX registers as well
16309 as GPR and floating point registers.
16310 (int_reg_operand): New predicate to match only GPR registers.
16311 (base_reg_operand): New predicate to match base registers.
16312 (quad_int_reg_operand): New predicate to match even GPR registers
16313 for quad memory operations.
16314 (vsx_reg_or_cint_operand): New predicate to allow vector logical
16315 operations in both GPR and VSX registers.
16316 (quad_memory_operand): New predicate for quad memory operations.
16317 (reg_or_indexed_operand): New predicate for direct move support.
16318
f43245d1 16319 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
16320 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
16321 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
16322 (POWERPC_MASKS): Add power8 options.
16323 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
16324 various options.
16325
f43245d1 16326 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
16327 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
16328
f43245d1 16329 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
16330 (-mpower8-fusion): New power8 options.
16331 (-mpower8-fusion-sign): Likewise.
16332 (-mpower8-vector): Likewise.
16333 (-mcrypto): Likewise.
16334 (-mdirect-move): Likewise.
16335 (-mquad-memory): Likewise.
16336
f43245d1 16337 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
16338 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
16339 registers.
70cc1536 16340 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
16341 (rs6000_debug_vector_unit): Add p8_vector.
16342 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
16343 definitions. Also print fusion state.
16344 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
16345 (rs6000_builtin_mask_calculate): Add power8 builtin support.
16346 (rs6000_option_override_internal): Add support for power8.
16347 (rs6000_common_init_builtins): Add debugging for skipped builtins
16348 if -mdebug=builtin.
16349 (rs6000_adjust_cost): Add power8 support.
16350 (rs6000_issue_rate): Likewise.
16351 (insn_must_be_first_in_group): Likewise.
16352 (insn_must_be_last_in_group): Likewise.
16353 (force_new_group): Likewise.
16354 (rs6000_register_move_cost): Likewise.
16355 (rs6000_opt_masks): Likewise.
16356
16357 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
16358 power8 capable assembler, default to power7 options.
16359 (TARGET_DIRECT_MOVE): Likewise.
16360 (TARGET_CRYPTO): Likewise.
16361 (TARGET_P8_VECTOR): Likewise.
16362 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
16363 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
16364 (VECTOR_MEM_P8_VECTOR_P): Likewise.
16365 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
16366 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
16367 (TARGET_XSCVDPSPN): Likewise.
16368 (TARGET_XSCVSPDPN): Likewsie.
16369 (TARGET_SYNC_HI_QI): Likewise.
16370 (TARGET_SYNC_TI): Likewise.
16371 (MASK_CRYPTO): Likewise.
16372 (MASK_DIRECT_MOVE): Likewise.
16373 (MASK_P8_FUSION): Likewise.
16374 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
16375 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
16376 temporary used by some of the direct move instructions to get two FP
16377 temporary registers does not force creation of a stack frame.
f62511da
MM
16378 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
16379 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
16380 that any VSX registers are tieable, even if they are also an
16381 Altivec vector mode.
16382 (r6000_reg_class_enum): Add wm, wr, wv constraints.
16383 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
16384 (RS6000_BTM_CRYPTO): Likewise.
16385 (RS6000_BTM_COMMON): Likewise.
16386
16387 * config/rs6000/rs6000.md (cpu attribute): Add power8.
16388 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
16389 (enum rs6000_vector): Add power8 vector support.
16390
73a1a707
RR
163912013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16392
16393 PR target/19599
16394 PR target/57340
16395 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
16396 (any_sibcall_could_use_r3): this and handle indirect calls.
16397 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
16398
d28073d4
BS
163992013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16400
16401 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
16402
bee0b10c
RB
164032013-05-22 Richard Biener <rguenther@suse.de>
16404
16405 PR middle-end/57349
16406 * profile.c (branch_prob): Do not split blocks that are
16407 abnormally receiving from ECF_RETURNS_TWICE functions.
16408
98409b51
RS
164092013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16410
16411 * recog.c (offsettable_address_addr_space_p): Fix calculation of
16412 address mode. Move pointer mode initialization to the same place.
16413
c0602ab8
MZ
164142013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16415
16416 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
16417 while it has any effect.
16418
4f7a634e
ER
164192013-05-21 Easwaran Raman <eraman@google.com>
16420
16421 PR tree-optimization/57322
9daf6dbb
ER
16422 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
16423 UID of the statement added to the BB to be 1.
4f7a634e 16424
a4ce1258
JJ
164252013-05-21 Jakub Jelinek <jakub@redhat.com>
16426
16427 PR tree-optimization/57331
70cc1536
UB
16428 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
16429 of conversion from pointer type to integral type with integer.
a4ce1258 16430
1b14621a
MJ
164312013-05-21 Martin Jambor <mjambor@suse.cz>
16432
16433 PR lto/57289
16434 * ipa-prop.c (ipa_read_node_info): Process param_used and
16435 controlled_uses in the same order as when writing.
16436
e60661f0
MG
164372013-05-21 Magnus Granberg <baldrick@free.fr>
16438
16439 PR plugins/56754
ee49aa34 16440 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 16441
4a61be9a
RB
164422013-05-21 Richard Biener <rguenther@suse.de>
16443
16444 PR tree-optimization/57318
16445 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
16446 estimate stmts with side-effects as likely eliminated.
16447
c52da5f7
RB
164482013-05-21 Richard Biener <rguenther@suse.de>
16449
16450 PR tree-optimization/57330
16451 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
16452 preserve the call stmts fntype.
16453
7ec67e2a
RB
164542013-05-21 Richard Biener <rguenther@suse.de>
16455
16456 PR tree-optimization/57303
16457 * tree-ssa-sink.c (statement_sink_location): Improve killing
16458 stmt detection and properly handle self-assignments.
16459
b112d513
CB
164602013-05-21 Christian Bruel <christian.bruel@st.com>
16461
55805e54
YR
16462 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
16463 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
16464 registers. Set register size out of the PARALLEL loop.
16465
14c2ec26
OE
164662013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
16467
16468 PR target/56547
16469 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
16470 (*fmasf4, *fmasf4_media): New insns.
16471
da734fa1
RS
164722013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16473
16474 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
16475 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
16476 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
16477 (mips_idiv_insns): Update the comments to say that the returned
16478 instruction counts are in units of BASE_INSN_LENGTH.
16479 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
16480 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
16481 using 2 rather than 4 as the length of indirect MIPS16 and
16482 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
16483 length of a NOP. Don't divide MIPS16 lengths by 2.
16484 (mips16_split_long_branches): Assume a branch is long if the
16485 length is greater than 4 rather than 8.
16486 * config/mips/mips.md (length): Give MIPS16 lengths directly,
16487 rather than multiplying them by 2. Multiply instruction counts
16488 by BASE_INSN_LENGTH rather than 4.
16489 (*jump_mips16, tls_get_tp_mips16_<mode>)
16490 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
16491
13719e8b
RS
164922013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16493
16494 * config/mips/mips.md (extended_mips16): Remove branch case.
16495 (length): Remove duplicated extended_mips16 test.
16496
c3850d14
RS
164972013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16498
16499 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
16500
8da2e059
RS
165012013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
16502
16503 * recog.h (Recog_data): Rename to...
16504 (recog_data_d): ...this.
16505 (recog_data): Update accordingly.
16506 * recog.c (recog_data): Likewise.
16507 * reload.c (save_recog_data): Likewise.
16508 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
16509 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
16510
2df013f3
JB
165112013-05-17 Julian Brown <julian@codesourcery.com>
16512
16513 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
16514 found in a REG_EQUAL note, invalidate it.
16515
371e77e3 165162013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
16517
16518 * tree-ssa-reassoc.c (find_insert_point): New function.
16519 (insert_stmt_after): Likewise.
16520 (get_def_stmt): Likewise.
16521 (ensure_ops_are_available): Likewise.
16522 (not_dominated_by): Likewise.
16523 (rewrite_expr_tree): Do not move statements beyond what is
16524 necessary. Remove call to swap_ops_for_binary_stmt...
16525 (reassociate_bb): ... and move it here.
16526 (build_and_add_sum): Assign UIDs for new statements.
16527 (linearize_expr): Likewise.
16528 (do_reassoc): Renumber gimple statement UIDs.
16529
e01c7cca
JH
165302013-05-17 Jan Hubicka <jh@suse.cz>
16531
16532 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
16533 weakrefs.
16534 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
16535 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
16536 weakrefs.
e01c7cca
JH
16537 (output_weakrefs): Update.
16538
c3272a92
PCC
165392013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
16540 Martin Jambor <mjambor@suse.cz>
16541
16542 PR middle-end/57276
16543 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
16544 value that corresponds to the given aggval is found in values vector.
16545
11c2aa39
UB
165462013-05-17 Uros Bizjak <ubizjak@gmail.com>
16547
16548 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
16549 sse, sse2, sse3, ssse3 and sse4a flags to options.
16550
abecc8c6
DM
165512013-05-17 David Malcolm <dmalcolm@redhat.com>
16552
16553 * gengtype-state.c: (s_expr_writer): New class, to handle
16554 prettifying of output layout of s-expressions.
16555 (state_writer): New class, to write out gtype.state.
16556 (state_written_type_count): Move this variable into member data of
16557 state_writer.
16558 (s_expr_writer::s_expr_writer): New code: constructor for new class
16559 (state_writer::state_writer(): ditto
16560 (s_expr_writer::write_new_line): New function
16561 (s_expr_writer::write_any_indent): ditto
16562 (s_expr_writer::begin_s_expr): ditto
16563 (s_expr_writer::end_s_expr): ditto
16564 (write_state_fileloc): convert to method of state_writer...
16565 (state_writer:: write_state_fileloc): ...and use methods of
16566 s_expr_writer to write indentation into the gtype.state output file
16567 to visually represent the hierarchical structure of the list
16568 structures
16569 (write_state_fields): ditto, renaming to...
16570 (state_writer::write_state_fields)
16571 (write_state_a_string): ditto, renaming to...
16572 (state_writer::write_state_a_string)
16573 (write_state_string_option): ditto, renaming to...
16574 (state_writer::write_state_string_option)
16575 (write_state_type_option): ditto, renaming to...
16576 (state_writer::write_state_type_option)
16577 (write_state_nested_option): ditto, renaming to...
16578 (state_writer::write_state_nested_option)
16579 (write_state_option): ditto, renaming to...
16580 (state_writer::write_state_option)
16581 (write_state_options): ditto, renaming to...
16582 (state_writer::write_state_options)
16583 (write_state_lang_bitmap): ditto, renaming to...
16584 (state_writer::write_state_lang_bitmap)
16585 (write_state_version): ditto, renaming to...
16586 (state_writer::write_state_version)
16587 (write_state_scalar_type): ditto, renaming to...
16588 (state_writer::write_state_scalar_type)
16589 (write_state_string_type): ditto, renaming to...
16590 (state_writer::write_state_string_type)
16591 (write_state_undefined_type): ditto, renaming to...
16592 (state_writer::write_state_undefined_type)
16593 (write_state_struct_union_type): ditto, renaming to...
16594 (state_writer::write_state_struct_union_type)
16595 (write_state_struct_type): ditto, renaming to...
16596 (state_writer::write_state_struct_type)
16597 (write_state_user_struct_type): ditto, renaming to...
16598 (state_writer::write_state_user_struct_type)
16599 (write_state_lang_struct_type): ditto, renaming to...
16600 (state_writer::write_state_lang_struct_type)
16601 (write_state_param_struct_type): ditto, renaming to...
16602 (state_writer::write_state_param_struct_type)
16603 (write_state_pointer_type): ditto, renaming to...
16604 (state_writer::write_state_pointer_type)
16605 (write_state_array_type): ditto, renaming to...
16606 (state_writer::write_state_array_type)
16607 (write_state_gc_used): ditto, renaming to...
16608 (state_writer::write_state_gc_used)
16609 (write_state_common_type_content): ditto, renaming to...
16610 (state_writer::write_state_common_type_content)
16611 (write_state_type): ditto, renaming to...
16612 (state_writer::write_state_type)
16613 (write_state_pair_list): ditto, renaming to...
16614 (state_writer::write_state_pair_list)
16615 (write_state_pair): ditto, renaming to...
16616 (state_writer::write_state_pair)
16617 (write_state_typedefs): ditto, renaming to...
16618 (state_writer::write_state_typedefs)
16619 (write_state_structures): ditto, renaming to...
16620 (state_writer::write_state_structures)
16621 (write_state_param_structs): ditto, renaming to...
16622 (state_writer::write_state_param_structs)
16623 (write_state_variables): ditto, renaming to...
16624 (state_writer::write_state_variables)
16625 (write_state_srcdir): ditto, renaming to...
16626 (state_writer::write_state_srcdir)
16627 (write_state_files_list): ditto, renaming to...
16628 (state_writer::write_state_files_list)
16629 (write_state_languages): ditto, renaming to...
16630 (state_writer::write_state_languages)
16631 (write_state): create a state_writer instance and use it when
16632 writing out the state file
16633
d6545f29
MS
166342013-05-17 Mike Stump <mikestump@comcast.net>
16635
816a3f73 16636 PR rtl-optimization/57304
d6545f29
MS
16637 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
16638 accessing DF_REF_REAL_LOC.
16639
38c821cf
JJ
166402013-05-17 Jakub Jelinek <jakub@redhat.com>
16641
16642 PR rtl-optimization/57281
16643 PR rtl-optimization/57300
16644 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
16645 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
16646 what the other splitter did if the registers are dead.
16647
2a293391
RB
166482013-05-17 Richard Biener <rguenther@suse.de>
16649
16650 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
16651 MEM_REF offsets.
16652
17042d2b
JJ
166532013-05-17 Jakub Jelinek <jakub@redhat.com>
16654
16655 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
16656 linking.
16657
5b115c1f
MP
166582013-05-17 Marek Polacek <polacek@redhat.com>
16659
11c2aa39
UB
16660 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
16661 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 16662
52d84413
JJ
166632013-05-17 Jakub Jelinek <jakub@redhat.com>
16664
68119618
JJ
16665 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
16666 vect_external_def oprnd1 with loop_vinfo, try to emit
16667 optional cast, negation and and stmts on the loop preheader
16668 edge instead of into the pattern def seq.
16669
52d84413
JJ
16670 PR tree-optimization/57051
16671 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
16672 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
16673
17b962bd
NC
166742013-05-16 Nick Clifton <nickc@redhat.com>
16675
16676 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
16677 (rl78_is_naked_func): New function.
56aefbf7
UB
16678 (rl78_expand_prologue): Skip prologue generation for naked functions.
16679 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
16680 * doc/extend.texi (naked): Add RL78 to the list of processors
16681 that supports this attribute.
16682
b1a0f84e
JL
166832013-05-16 Jeff Law <law@redhat.com>
16684
16685 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
16686
af0e415b
UB
166872013-05-16 Uros Bizjak <ubizjak@gmail.com>
16688
16689 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
16690 cache parameters using detect_caches_amd also for CYRIX,
16691 NSC and TM2 signatures.
16692
19db293a
UB
166932013-05-16 Uros Bizjak <ubizjak@gmail.com>
16694 Dzianis Kahanovich <mahatma@eu.by>
16695
16696 PR target/45359
16697 PR target/46396
16698 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16699 VIA/Centaur processors and determine their cache parameters
16700 using detect_caches_amd.
16701
251a41b9
TJ
167022013-05-16 Teresa Johnson <tejohnson@google.com>
16703
16704 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
16705 (rtl_verify_edges): New function.
16706 (rtl_verify_bb_insns): Ditto.
16707 (rtl_verify_bb_pointers): Ditto.
16708 (rtl_verify_bb_insn_chain): Ditto.
16709 (rtl_verify_fallthru): Ditto.
16710 (rtl_verify_bb_layout): Ditto.
16711 (rtl_verify_flow_info_1): Outline checks into new functions.
16712 (rtl_verify_flow_info): Ditto.
16713
f14540b6
SE
167142013-05-16 Steve Ellcey <sellcey@imgtec.com>
16715
16716 * cfghooks.c (copy_bbs): Add update_dominance argument.
16717 * cfghooks.h (copy_bbs): Update prototype.
16718 * tree-cfg.c (gimple_duplicate_sese_region):
16719 Add update_dominance argument.
16720 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
16721 * tree-ssa-loop-ch.c (copy_loop_headers): Update
16722 gimple_duplicate_sese_region call.
16723 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
16724 Update copy_bbs call.
16725 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
16726 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
16727
7e9a3abb
JJ
167282013-05-16 Jakub Jelinek <jakub@redhat.com>
16729
16730 * tree-vectorizer.h (NUM_PATTERNS): Increment.
16731 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
16732 vect_recog_rotate_pattern.
16733 (vect_recog_rotate_pattern): New function.
16734
427b248d
JM
167352013-05-16 Jason Merrill <jason@redhat.com>
16736
16737 * Makefile.in (LLINKER): New variable.
16738 (mostlyclean): Remove link mutex.
16739 * configure.ac: Handle --enable-link-mutex.
16740 * lock-and-run.sh: New script.
16741
b871e3d2
RR
167422013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16743
16744 PR target/19599
16745 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
16746 for NULL decl.
16747
ce858126
RO
167482013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16749
16750 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
16751
798d3d04
GY
167522013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
16753
16754 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
16755 * config/arm/arm.c (next_consecutive_mem): New function.
16756 (gen_movmem_ldrd_strd): Likewise.
16757 * config/arm/arm.md (movmemqi): Update condition and code.
16758 (unaligned_loaddi, unaligned_storedi): New patterns.
16759
0baddc45
RO
167602013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16761
16762 * config.gcc: Obsolete *-*-solaris2.9*.
16763 * doc/install.texi (Specific, *-*-solaris2*): Document it.
16764
aa9d5bcf
RB
167652013-05-16 Richard Biener <rguenther@suse.de>
16766
16767 * passes.c (init_optimization_passes): Move pass_parallelize_loops
16768 earlier, after GRAPHITE transforms and IV canonicalization.
16769
5a0f4dd3
JJ
167702013-05-16 Jakub Jelinek <jakub@redhat.com>
16771
16772 * omp-low.c (extract_omp_for_data): For collapsed loops,
16773 if at least one of the loops is known at compile time to
16774 iterate zero times, set count to 0.
16775 (expand_omp_regimplify_p): New function.
16776 (expand_omp_for_generic): For collapsed loops, if at least
16777 one of the loops isn't known to iterate at least once,
16778 add runtime check with setting count to 0.
16779 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16780 For unsigned types if it isn't known at compile time that
16781 the loop will iterate at least once, add runtime check to bypass
16782 the whole loop if initial condition isn't true.
16783
e3753785
NS
167842013-05-16 Nathan Sidwell <nathan@codesourcery.com>
16785
16786 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
16787
43bb4dd1
MG
167882013-05-16 Marc Glisse <marc.glisse@inria.fr>
16789
16790 PR middle-end/57286
16791 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
16792 transformations to avoid an infinite loop.
16793
3571dde6
MP
167942013-05-16 Marek Polacek <polacek@redhat.com>
16795
16796 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
16797
b8b3f0ca
LE
167982013-05-15 Leif Ekblad <leif@rdos.net>
16799
16800 * config/i386/i386.c (ix86_decompose_address): Use
16801 DEFAULT_TLS_SEG_REG to access TLS segment register.
16802 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
16803 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
16804 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
16805
e299a383
RS
168062013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
16807
16808 PR target/57260
16809 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
16810 sibling calls to functions that would normally be lazily bound,
16811 unless $gp is call-clobbered.
16812
e7208ea3
UB
168132013-05-15 Uros Bizjak <ubizjak@gmail.com>
16814
19db293a 16815 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 16816 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
16817 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
16818 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
16819 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
16820 of TARGET_3DNOW.
16821 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
16822
e7413f3d
AS
168232013-05-15 Andreas Schwab <schwab@suse.de>
16824
16825 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
16826 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
16827 third operand.
16828
ad4db775
TJ
168292013-05-15 Teresa Johnson <tejohnson@google.com>
16830
16831 * loop-unroll.c (report_unroll_peel): Check decision before
16832 emitting unroll/peel message.
16833
af205f67
TJ
168342013-05-15 Teresa Johnson <tejohnson@google.com>
16835
16836 * function.h (has_bb_partition): New rtl_data flag.
16837 (bb_reorder_complete): Ditto.
16838 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
16839 instead of flag_reorder_blocks_and_partition.
16840 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
16841 with some enhancements.
16842 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
16843 * bb-reorder.c (connect_traces): Check for has_bb_partition
16844 instead of flag_reorder_blocks_and_partition.
16845 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
16846 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
16847 verify_hot_cold_block_grouping.
16848 (partition_hot_cold_basic_blocks): Set has_bb_partition.
16849
9adcfa3c
RR
168502013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16851
16852 PR target/19599
16853 * config/arm/predicates.md (call_insn_operand): New predicate.
16854 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
16855 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
16856 if insn is not a tail call.
16857 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
16858 registers.
16859 * config/arm/arm.h (enum reg_class): New caller save register class.
16860 (REG_CLASS_NAMES): Likewise.
16861 (REG_CLASS_CONTENTS): Likewise.
16862 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
16863 without decls.
16864
ccb3ad87
RB
168652013-05-15 Richard Biener <rguenther@suse.de>
16866
16867 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
16868 of MSG_OPTIMIZED_LOCATIONS.
16869 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
16870 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
16871 message.
16872 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
16873 of MSG_OPTIMIZED_LOCATIONS.
16874 (execute_vect_slp): Likewise.
16875 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
16876 (vect_create_cond_for_alias_checks): Likewise.
16877 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
16878 (vect_recog_widen_mult_pattern): Likewise.
16879 (vect_recog_widen_sum_pattern): Likewise.
16880 (vect_recog_over_widening_pattern): Likewise.
16881 (vect_recog_widen_shift_pattern): Likewise.
16882 (vect_recog_vector_vector_shift_pattern): Likewise.
16883 (vect_recog_divmod_pattern): Likewise.
16884 (vect_recog_mixed_size_cond_pattern): Likewise.
16885 (vect_recog_bool_pattern): Likewise.
16886 (vect_pattern_recog_1): Likewise.
16887
48b1474e
MJ
168882013-05-15 Martin Jambor <mjambor@suse.cz>
16889
16890 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
16891 non-functions to builtin_unreachable.
16892 * ipa-inline-transform.c (inline_call): Do not assert estimates were
16893 correct when new direct edges were discovered.
16894
9de04252
MJ
168952013-05-15 Martin Jambor <mjambor@suse.cz>
16896
16897 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
16898 header, print symbol order instead of node uid, print more information
16899 about indirect edge targets.
16900 (ipa_make_edge_direct_to_target): Print symbol order instead of node
16901 uids.
16902 (ipa_make_edge_direct_to_target): Likewise.
16903 (remove_described_reference): Likewise.
16904 (propagate_controlled_uses): Likewise.
16905 (ipa_print_node_params): Also print symbol order.
16906 (ipcp_transform_function): Print symbol order instead of node uids.
16907 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
16908 (cgraph_get_create_real_symbol_node): Likewise.
16909 * ipa-cp.c (print_lattice): Likewise.
16910 (print_all_lattices): Likewise.
16911 (determine_versionability): Likewise.
16912 (initialize_node_lattices): Likewise.
16913 (estimate_local_effects): Likewise.
16914 (update_profiling_info): Likewise.
16915 (create_specialized_node): Likewise.
16916 (perhaps_add_new_callers): Likewise.
16917 (decide_about_value): Likewise.
16918 (decide_whether_version_node): Likewise.
16919 (identify_dead_nodes): Likewise.
16920 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
16921 (dump_inline_summary): Likewise.
16922 (estimate_node_size_and_time): Likewise.
16923 (inline_analyze_function): Likewise.
16924 * ipa-inline.c (report_inline_failed_reason): Likewise.
16925 (want_early_inline_function_p): Likewise.
16926 (edge_badness): Likewise.
16927 (update_edge_key): Likewise.
16928 (inline_small_functions): Likewise. Add dumping of order to two other
16929 dumps.
16930 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
16931 instead of node uids.
16932 (propagate_pure_const): Likewise.
16933 (propagate_pure_const): Likewise.
16934 * ipa-utils.c (dump_cgraph_node_set): Likewise.
16935 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
16936 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
16937 of node uids.
16938 * tree-pretty-print.c (dump_function_header): Likewise.
16939 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
16940 Print symbol order instead of node uids.
16941
1dd03b91
AK
169422013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16943
16944 * config/s390/s390.c (s390_register_move_cost): Don't impose the
16945 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
16946
fdf6a7b9
RB
169472013-05-15 Richard Biener <rguenther@suse.de>
16948
16949 PR tree-optimization/57275
16950 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
16951 return value for fail to do runtime alias checks for gather loads.
16952
2d6e4603
JH
169532013-05-15 Jan Hubicka <jh@suse.cz>
16954
16955 PR lto/57038
16956 PR lto/47375
e7208ea3
UB
16957 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
16958 weakrefs are not external.
16959 (lto_symtab_merge_decls): Fix thinko when dealing with
16960 non-lto_symtab decls.
2d6e4603
JH
16961 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
16962 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
16963 * varpool.c (dump_varpool_node): Dump more flags.
16964
83f44b39
GG
169652013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16966
16967 * config/i386/i386.c (processor_alias_table): Add instruction
16968 FSGSBASE for AMD bdver3 architecture.
16969
2e55d062
JJ
169702013-05-14 Jakub Jelinek <jakub@redhat.com>
16971
16972 * tree.c (warn_deprecated_use): Print file:line using locus color.
16973 * diagnostic.c (diagnostic_report_current_module): Print file:line
16974 and file:line:column using locus color.
16975
0bfdb81e
MS
169762013-05-14 Mike Stump <mikestump@comcast.net>
16977
16978 * gdbinit.in: Add __null.
16979
a508ef22
MS
169802013-05-14 Mike Stump <mikestump@comcast.net>
16981
16982 * recog.h: Rename struct recog_data to Recog_data.
16983 * recog.c: Likewise.
16984 * reload.c (can_reload_into): Likewise.
16985 * config/picochip/picochip.c: Likewise.
16986
e7180acb
MS
169872013-05-14 Mike Stump <mikestump@comcast.net>
16988
16989 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
16990
61216c26
SB
169912013-05-14 Steven Bosscher <steven@gcc.gnu.org>
16992
fd6beed4
SB
16993 * resource.h (struct resources): Remove unch_memory member.
16994 (CLEAR_RESOURCE): Don't clear unch_memory.
16995 * resource.c (mark_referenced_resources): Don't set it.
16996 (mark_set_resources): Likewise.
16997 (mark_target_live_regs): Don't clear it.
16998 (init_resource_info): Likewise.
16999 * reorg.c (resource_conflicts_p): Don't compare it.
17000 (redundant_insn): Don't set it.
17001
61216c26
SB
17002 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
17003 Remove prototypes.
17004 * emit-rtl.c (next_label): Remove unused function.
17005 (skip_consecutive_labels, link_cc0_insns): Move to ...
17006 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
17007 only place where these functions are used, and make them static.
17008
418d1b87
MG
170092013-05-14 Marc Glisse <marc.glisse@inria.fr>
17010
17011 * fold-const.c (fold_negate_expr): Handle vectors.
17012 (fold_truth_not_expr): Make it static.
17013 (fold_invert_truthvalue): New static function.
17014 (invert_truthvalue_loc): Handle vectors. Do not call
17015 fold_truth_not_expr directly.
17016 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
17017 <TRUTH_NOT_EXPR>: Do not cast to boolean.
17018 (fold_comparison): Handle vector constants.
17019 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
17020 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
17021 * tree.h (fold_truth_not_expr): Remove declaration.
17022
fc21784d
JG
170232013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
17024
17025 * config/aarch64/aarch64-simd.md
17026 (aarch64_vcond_internal<mode>): Rename to...
17027 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
17028 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
17029 float modes. Clarify all iterator modes.
17030 (vcond<mode><mode>): Use new name for vcond expanders.
17031 (vcond<v_cmp_result><mode>): Likewise.
17032 (vcondu<mode><mode>: Likewise.
17033 * config/aarch64/iterators.md (VDQF_COND): New.
17034
d4c52634
MG
170352013-05-14 Marc Glisse <marc.glisse@inria.fr>
17036
17037 PR bootstrap/57266
17038 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
17039 variable for the shift amount. Check that we shift by non-negative
17040 amounts.
17041
2b261262
CLT
170422013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
17043
17044 PR target/42017
17045 * config/arm/arm.h (EPILOGUE_USES): Only return true
17046 for LR_REGNUM after epilogue_completed.
17047
12211b99 170482013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
17049
17050 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 17051 is error_mark_node.
6e022d7b 17052
56cf7859
RO
170532013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17054
17055 PR target/57261
17056 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
17057 and Solaris 11+/x86 with gld.
17058 * configure: Regenerate.
17059
75776c6d
JJ
170602013-05-14 Jakub Jelinek <jakub@redhat.com>
17061
17062 * expmed.c (expand_shift_1): Canonicalize rotates by
17063 constant bitsize / 2 to bitsize - 1.
7f998021 17064 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
17065 case ROTATERT>: Likewise.
17066
17067 Revert:
17068 2013-05-10 Jakub Jelinek <jakub@redhat.com>
17069
17070 * config/i386/i386.md (rotateinv): New code attr.
17071 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
17072 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
17073 roll $31, %eax, etc.
17074
df35498a
RB
170752013-05-14 Richard Biener <rguenther@suse.de>
17076
17077 PR middle-end/57235
17078 * tree-eh.c (sink_clobbers): Give up for successors with
17079 multiple predecessors and no virtual uses.
17080
cc6e7ece
EB
170812013-05-14 Eric Botcazou <ebotcazou@adacore.com>
17082
17083 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
17084 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
17085
f778dd4d
JJ
170862013-05-14 Jakub Jelinek <jakub@redhat.com>
17087
17088 PR middle-end/57251
17089 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
17090 the case when both op0 and op1 have VOIDmode.
17091
bad4df9b
KP
170922013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17093
17094 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
17095 in multiply-accumulate mode.
17096
56f3e9ac
GW
170972013-05-13 Guozhi Wei <carrot@google.com>
17098
17099 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
17100
a3d7ab92
KT
171012013-05-13 Kai Tietz <ktietz@redhat.com>
17102
17103 PR target/56975
17104 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 17105 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 17106 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 17107 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
17108 (ix86_expand_prologue): Likewise.
17109 (ix86_expand_split_stack_prologue): Likewise.
17110 (legitimate_pic_address_disp_p): Likewise.
17111 (legitimize_pic_address): Likewise.
17112 (legitimize_tls_address): Likewise.
17113 (legitimize_pe_coff_symbol): Likewise.
17114 (output_pic_addr_const): Likewise.
17115 (construct_plt_address): Likewise.
17116 (ix86_expand_call): Likewise.
17117 (x86_output_mi_thunk): Likewise.
17118 (x86_function_profiler): Likewise.
17119
c59b7e28
SN
171202013-05-13 Sofiane Naci <sofiane.naci@arm.com>
17121
17122 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
17123 similar switch cases.
17124 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
17125 (aarch64_simd_mov_to_<mode>low): Delete.
17126 (aarch64_simd_mov_to_<mode>high): Delete.
17127 (move_lo_quad_<mode>): Add w<-r alternative.
17128 (aarch64_simd_move_hi_quad_<mode>): Likewise.
17129 (aarch64_simd_mov_from_*): Update type attribute.
17130 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
17131 statement.
17132
5f28524a
JH
171332013-05-13 Jan Hubicka <jh@suse.cz>
17134
17135 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
17136 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
17137 ix86_expand_epilogue, emit_i387_cw_initialization,
17138 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
17139 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 17140
ae6fa899
JJ
171412013-05-13 Jakub Jelinek <jakub@redhat.com>
17142
17143 PR tree-optimization/45216
17144 PR tree-optimization/57157
17145 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
17146 the (-Y) & (B - 1) variant if OP is |.
17147 * expmed.c (expand_shift_1): For rotations by const0_rtx just
17148 return shifted. Use (-op1) & (prec - 1) as other_amount
17149 instead of prec - op1.
17150
4502fe8d
MJ
171512013-05-13 Martin Jambor <mjambor@suse.cz>
17152
17153 PR middle-end/42371
17154 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
17155 (ipa_constant_data): New type.
17156 (ipa_jump_func): Use ipa_constant_data to hold information about
17157 constant jump functions.
17158 (ipa_get_jf_constant): Adjust to jump function type changes.
17159 (ipa_get_jf_constant_rdesc): New function.
17160 (ipa_param_descriptor): New field controlled_uses.
17161 (ipa_get_controlled_uses): New function.
17162 (ipa_set_controlled_uses): Likewise.
17163 * ipa-ref.h (ipa_find_reference): Declare.
17164 * ipa-prop.c (ipa_cst_ref_desc): New type.
17165 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
17166 changes.
17167 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
17168 New parameter cs. Adjust all callers.
17169 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
17170 (remove_described_reference): New function.
17171 (jfunc_rdesc_usable): Likewise.
17172 (try_make_edge_direct_simple_call): Decrement controlled use count,
17173 attempt to remove reference if it hits zero.
17174 (combine_controlled_uses_counters): New function.
17175 (propagate_controlled_uses): Likewise.
17176 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
17177 (ipa_edge_duplication_hook): Duplicate reference descriptions.
17178 (ipa_print_node_params): Print described use counter.
17179 (ipa_write_jump_function): Adjust to jump function type changes.
17180 (ipa_read_jump_function): New parameter CS, pass it to
17181 ipa_set_jf_constant. Adjust caller.
17182 (ipa_write_node_info): Stream controlled use count
17183 (ipa_read_node_info): Likewise.
17184 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
17185 asserting.
17186 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
17187 count. Remove cloning-added reference if it reaches zero.
17188 * ipa-ref.c (ipa_find_reference): New function.
17189
0864bfc2
GG
171902013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17191
e7208ea3 17192 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
17193 alignment values for AMD BD and BT architectures.
17194
640bfeb2
MG
171952013-05-13 Marc Glisse <marc.glisse@inria.fr>
17196
17197 * tree-vect-generic.c (uniform_vector_p): Move ...
17198 * tree.c (uniform_vector_p): ... here.
17199 * tree.h (uniform_vector_p): Declare it.
17200 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
17201 into a scalar.
17202
3a60f32b
JJ
172032013-05-13 Jakub Jelinek <jakub@redhat.com>
17204
198fe1bf
JJ
17205 PR tree-optimization/57230
17206 * tree-ssa-strlen.c (handle_char_store): Record length for
17207 array store from STRING_CST.
17208
3a60f32b
JJ
17209 PR tree-optimization/57230
17210 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
17211 check.
17212
566be57c
JR
172132013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
17214
17215 * config/epiphany/epiphany.c (epiphany_init): Check size of
17216 NUM_MODES_FOR_MODE_SWITCHING.
17217 (epiphany_expand_prologue):
17218 Remove CONFIG_REGNUM initial value handling code.
17219 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
17220 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 17221 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
17222 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
17223 Don't return 1 for FP_MODE_NONE.
17224 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
17225 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
17226 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
17227 * config/epiphany/epiphany.md (save_config): New pattern.
17228
0f2c2331
UB
172292013-05-12 Uros Bizjak <ubizjak@gmail.com>
17230
17231 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
17232
5b3f93c7
UB
172332013-05-10 Uros Bizjak <ubizjak@gmail.com>
17234
17235 * config/i386/i386.md (memory): Handle sseishft1.
17236 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
17237 (*vec_extractv2di_1): Ditto.
17238
1f873f0e
VM
172392013-05-10 Vladimir Makarov <vmakarov@redhat.com>
17240
17241 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
17242 saved registers.
17243
341427fa 172442013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
17245
17246 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
17247 Add mthumb/march=armv7-a multilib.
17248 Add mthumb/march=armv7-r multilib.
17249 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
17250
9e69bdde
RC
172512013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
17252
17253 * config/v850/t-rtems: Add more multilibs.
17254
9ff09a22
RB
172552013-05-10 Richard Biener <rguenther@suse.de>
17256
17257 PR tree-optimization/57214
17258 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
17259 not propagate from SSA names that occur in abnormal PHI nodes.
17260
a5e0cd1d
MG
172612013-05-10 Marc Glisse <marc.glisse@inria.fr>
17262
17263 * stor-layout.c (element_precision): New function.
17264 * machmode.h (element_precision): Declare it.
17265 * tree.c (build_minus_one_cst): New function.
17266 (element_precision): Likewise.
17267 * tree.h (build_minus_one_cst): Declare new function.
17268 (element_precision): Likewise.
17269 * fold-const.c (operand_equal_p): Use element_precision.
17270 (fold_binary_loc): Handle vector types.
17271 * convert.c (convert_to_integer): Use element_precision.
17272 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
17273 separately.
17274
cb2558bc
RS
172752013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
17276
17277 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
17278 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
17279 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
17280 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
17281 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
17282 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
17283 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
17284 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
17285 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
17286 (Uuw8): New constraints.
17287 (Usb4): Move into alphabetical order.
17288 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
17289 (sd8_operand, ub8_operand, uw8_operand): New predicates.
17290 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
17291 previously unnamed patterns.
17292 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
17293 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
17294 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
17295 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
17296 of set_attr_alternative/if_then_else. Use extended_mips16 instead
17297 of specific lengths.
17298
cb3b8d33
JJ
172992013-05-10 Jakub Jelinek <jakub@redhat.com>
17300
6f93c008
JJ
17301 * config/i386/i386.md (rotateinv): New code attr.
17302 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
17303 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
17304 roll $31, %eax, etc.
17305
cb3b8d33
JJ
17306 PR tree-optimization/45216
17307 PR tree-optimization/57157
17308 * tree-ssa-forwprop.c (simplify_rotate): New function.
17309 (ssa_forward_propagate_and_combine): Call it.
17310
afb119be
RB
173112013-05-10 Richard Biener <rguenther@suse.de>
17312
17313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17314 disable peeling when we version for aliasing.
17315 (vector_alignment_reachable_p): Honor explicit user alignment.
17316 (vect_supportable_dr_alignment): Likewise.
17317 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
17318 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
17319 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
17320 then peeling to arrange for the cost-model check to come first.
17321
01ae4861
AM
173222013-05-10 Alan Modra <amodra@gmail.com>
17323
17324 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
17325 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
17326 * configure: Regenerate.
17327
ebc9a431
AM
173282013-05-10 Alan Modra <amodra@gmail.com>
17329
17330 PR target/55033
17331 * varasm.c (default_elf_select_section): Move !DECL_P check..
17332 (get_named_section): ..to here before calling get_section_name.
17333 Adjust assertion.
17334 (default_section_type_flags): Add DECL_P check.
17335 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
17336 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
17337
d4bca93c
JR
173382013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
17339
17340 * config/epiphany/epiphany.c (epiphany_expand_prologue):
17341 When using gen_stack_adjust_str with a register offset, add a
17342 REG_FRAME_RELATED_EXPR note.
17343
60ca9a65
UB
173442013-05-09 Uros Bizjak <ubizjak@gmail.com>
17345
17346 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
17347 (*vec_extractv4si_zext_mem): Ditto.
17348 (*vec_extractv2di): Add 0->x and x->x alternatives.
17349 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
17350 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
17351
a3409c02
JM
173522013-05-09 Jason Merrill <jason@redhat.com>
17353
0138d6b2
JM
17354 N3639 C++1y VLA support
17355 * gimplify.c (gimplify_vla_decl): Don't touch an existing
17356 DECL_VALUE_EXPR.
17357
a3409c02
JM
17358 * tree.c (build_constructor_va): New.
17359 * tree.h: Declare it.
17360
66e6b990
MJ
173612013-05-09 Martin Jambor <mjambor@suse.cz>
17362
17363 PR lto/57084
17364 * gimple-fold.c (canonicalize_constructor_val): Call
17365 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
17366
64cfa6c0
JH
173672013-05-09 Jan Hubicka <jh@suse.cz>
17368 Richard Biener <rguenther@suse.de>
17369
17370 PR lto/54095
17371 * symtab.c (symtab_make_decl_local): Do not add private names.
17372
c3167b00
JH
173732013-05-09 Jan Hubicka <jh@suse.cz>
17374
17375 PR lto/54095
17376 * symtab.c (insert_to_assembler_name_hash): Handle clones.
17377 (unlink_from_assembler_name_hash): Likewise.
17378 (symtab_prevail_in_asm_name_hash, symtab_register_node,
17379 symtab_unregister_node, symtab_initialize_asm_name_hash,
17380 change_decl_assembler_name): Update.
17381
12dc6974
SN
173822013-05-09 Sofiane Naci <sofiane.naci@arm.com>
17383
17384 * config/aarch64/aarch64.md: New movtf split.
17385 (*movtf_aarch64): Update.
17386 (aarch64_movdi_tilow): Handle TF modes and rename to
17387 aarch64_movdi_<mode>low.
17388 (aarch64_movdi_tihigh): Handle TF modes and rename to
17389 aarch64_movdi_<mode>high
17390 (aarch64_movtihigh_di): Handle TF modes and rename to
17391 aarch64_mov<mode>high_di
17392 (aarch64_movtilow_di): Handle TF modes and rename to
17393 aarch64_mov<mode>low_di
17394 (aarch64_movtilow_tilow): Remove spurious whitespace.
17395 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
17396 splits.
17397 (aarch64_print_operand): Update.
17398
227eb343
AM
173992013-05-09 Alan Modra <amodra@gmail.com>
17400
17401 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
17402 powerpc64le.
17403 * configure: Regenerate.
17404
0b013847
UB
174052013-05-08 Uros Bizjak <ubizjak@gmail.com>
17406
17407 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
17408 splitter preparation statements.
17409 * config/i386/sse.md (*vec_extract* splitters): Ditto.
17410 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
17411 adjust_address_nv.
17412
1dc3d6e9
BS
174132013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17414
17415 * gimple-ssa-strength-reduction.c (count_candidates): Change
17416 return value to int.
17417 (analyze_candidates_and_replace): Change type of length to int.
17418
e61e7d28
UB
174192013-05-08 Uros Bizjak <ubizjak@gmail.com>
17420
17421 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
17422 (*vec_extract<mode>): Use VI12_128 mode iterator.
17423 (*vec_extract<mode>_mem): Ditto.
17424 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
17425 attribute.
17426
4fbfcf44
DN
174272013-05-08 Diego Novillo <dnovillo@google.com>
17428
17429 PR bootstrap/54659
17430
17431 Revert:
4fbfcf44
DN
17432 2012-08-17 Diego Novillo <dnovillo@google.com>
17433
e61e7d28
UB
17434 PR bootstrap/54281
17435 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
17436 * config.in: Regenerate.
17437 * configure: Regenerate.
17438 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 17439
702d8703
JH
174402013-05-08 Jan Hubicka <jh@suse.cz>
17441
17442 PR lto/54095
17443 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
17444 * cgraph.h (symtab_node_base): Add unique_name.
17445 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17446 input_overwrite_node, input_varpool_node): Stream unique_name.
17447 * cgraphclones.c (cgraph_create_virtual_clone,
17448 cgraph_function_versioning): Set unique_name.
17449 * ipa.c (function_and_variable_visibility): Set unique_name.
17450
8b28cf47
BS
174512013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17452
17453 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
17454 (alloc_cand_and_find_basis): Restrict conditional candidate
17455 processing to CAND_MULTs.
17456
e86074fd
JH
174572013-05-08 Jan Hubicka <jh@suse.cz>
17458
17459 PR lto/54095
17460 lto-symtab.c (lto_symtab_symbol_p): New function.
17461 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
17462 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
17463 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
17464 Skip static symbols.
17465
44398cbe
PC
174662013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
17467
17468 PR tree-optimization/57200
17469 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
17470 Only call inform if the preceding warning_at returns true.
17471
f6bc1c4a
HS
174722013-05-07 Han Shen <shenhan@google.com>
17473
17474 * cfgexpand.c (record_or_union_type_has_array_p): New function.
17475 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
17476 * common.opt (fstack-protector-strong): New option.
17477 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
17478 * doc/invoke.texi (Optimization Options): Document
17479 "-fstack-protector-strong".
17480 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
17481
4ffecb1f
SB
174822013-05-06 Steven Bosscher <steven@gcc.gnu.org>
17483
17484 * config/mips/mips.c (mips_machine_reorg2): Return 0.
17485
5a107a0f
VM
174862013-05-07 Vladimir Makarov <vmakarov@redhat.com>
17487
17488 * ira.c (update_equiv_regs): Add insn having equiv memory even if
17489 it is not lhs of the insn.
17490 (setup_reg_equiv): Remove insn having equiv memory which it is not
17491 lhs of the insn.
17492 * lra-constraints.c (process_address): Try to improve generation
17493 code for address base + disp.
17494 (lra_constraints): Make correct the code for checking insn setting
17495 up backward equivalence. Remove insn only if it is in the init
17496 insn list.
17497 * lra-eliminations.c (update_reg_eliminate): Change return value.
17498 (lra_eliminate): Use the result.
17499
3f5783ea
UB
175002013-05-07 Uros Bizjak <ubizjak@gmail.com>
17501
17502 * config/i386/sse.md (ssescalarnummask): New mode attribute.
17503 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
17504 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
17505 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
17506 register target operands.
17507 (*vec_extractv8hi_sse2): New pattern.
17508 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
17509 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
17510 (*vec_extract<mode>_mem): New insn and split pattern.
17511
8a5800b8
CL
175122013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
17513
17514 * config/arm/arm.c (arm_asan_shadow_offset): New function.
17515 (TARGET_ASAN_SHADOW_OFFSET): Define.
17516 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
17517 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
17518
7bf55a70
BS
175192013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17520
17521 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
17522 (incr_vec_index): Return -1 if increment not found.
17523 (create_add_on_incoming_edge): Assert if increment not found.
17524 (record_increment): Limit number of increments recorded.
17525 (all_phi_incrs_profitable): Return false if an increment not found.
17526 (replace_profitable_candidates): Don't process increments that were
17527 not recorded.
17528 (analyze_candidates_and_replace): Limit size of incr_vec.
17529
3f8825c0
RB
175302013-05-07 Richard Biener <rguenther@suse.de>
17531
17532 * calls.c (special_function_p): setjmp-like functions are leaf.
17533 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
17534 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
17535
fd4842cd
SN
175362013-05-07 Sofiane Naci <sofiane.naci@arm.com>
17537
17538 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
17539 (aarch64_simd_mov<mode>): New expander.
17540 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
17541 (aarch64_simd_mov_to_<mode>high): Likewise.
17542 (aarch64_simd_mov_from_<mode>low): Likewise.
17543 (aarch64_simd_mov_from_<mode>high): Likewise.
17544 (aarch64_dup_lane<mode>): Update.
17545 (aarch64_dup_lanedi): New instruction pattern.
17546 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
17547 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
17548
a7a7d10e
BS
175492013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17550
17551 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
17552 (replace_mult_candidate): Remove unnecessary argument; remove
17553 unnecessary parameter from call to introduce_cast_before_cand.
17554 (replace_unconditional_candidate): Remove unnecessary parameter
17555 from call to replace_mult_candidate.
17556 (replace_conditional_candidate): Likewise.
17557 (insert_initializers): Use make_temp_ssa_name.
17558 (introduce_cast_before_cand): Remove unnecessary argument; use
17559 make_temp_ssa_name.
17560 (replace_one_candidate): Remove unnecessary argument; remove
17561 unnecessary parameter from calls to introduce_cast_before_cand.
17562 (replace_profitable_candidates): Remove unnecessary parameters
17563 from calls to replace_one_candidate.
17564
29105868
BS
175652013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17566
17567 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
17568 phi def as possibly hiding a basis for a CAND_ADD whose operands
17569 have been commuted in the analysis.
17570 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
17571
4095f9fa
N
175722013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17573
17574 * config/aarch64/aarch64.md
17575 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
17576 shift value between 0-4.
17577
39e843e8
RB
175782013-05-07 Richard Biener <rguenther@suse.de>
17579
17580 * double-int.h (rshift): New overload.
17581 * double-int.c (rshift): New function.
17582 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
17583 (create_reference_ops_from_ref): Remove.
17584 (vn_reference_insert): Use shared ops for constructing the
17585 reference and copy it.
17586
0a1a83cb
RB
175872013-05-07 Richard Biener <rguenther@suse.de>
17588
17589 PR middle-end/57190
17590 * tree-eh.c (sink_clobbers): Properly propagate
17591 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17592
43303d6f
JJ
175932013-05-07 Jakub Jelinek <jakub@redhat.com>
17594
ba7e83f8
JJ
17595 PR tree-optimization/57149
17596 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
17597 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
17598 collect_phi_def_edges, execute_late_warn_uninitialized): Use
17599 uninit_undefined_value_p instead of ssa_undefined_value_p.
17600
43303d6f
JJ
17601 PR debug/57184
17602 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
17603 for modifier == EXPAND_INITIALIZER.
17604
14523c25
AB
176052013-05-07 Anton Blanchard <anton@samba.org>
17606
17607 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
17608 for powerpc64 little endian.
17609 * configure: Regenerate.
17610
cb7c8be9
GS
176112013-05-06 Graham Stott <grahams@btinternet.com>
17612
17613 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
17614 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
17615 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
17616 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
17617
176182013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
17619
17620 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
17621 codes which allow non-lvalues.
17622
9a0ee7b0
MG
176232013-05-06 Marc Glisse <marc.glisse@inria.fr>
17624
17625 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
17626 components are all 1s.
17627 (integer_minus_onep): New function.
17628 * tree.h (integer_minus_onep): Declare it.
17629 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
17630 integer_minus_onep instead of integer_all_onesp.
17631
f2c17ea9
OE
176322013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17633
17634 PR target/52933
17635 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
17636 variations of these patterns.
17637
f75e6a51
UB
176382013-05-06 Uros Bizjak <ubizjak@gmail.com>
17639
17640 * config/i386/i386.md (isa): Add x64_sse4 member.
17641 (enabled): Handle x64_sse4.
17642 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
17643 instruction for 64bit SSE4_1 targets. Update insn attributes.
17644 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
17645 instruction for SSE4_1 targets. Update insn attributes.
17646 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
17647 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
17648 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
17649 const_1 selector.
17650 (*vec_extractv4si): Rename from *sse4_1_pextrd.
17651 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
17652 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
17653
a986d468
OE
176542013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17655
17656 PR target/57108
17657 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
17658
382522cb
MK
176592013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
17660
17661 * final.c (do_assembler_dialects): Don't handle curly braces and
17662 vertical bar escaped by % as dialect delimiters.
17663 (output_asm_insn): Print curly braces and vertical bar if escaped
17664 by % and ASSEMBLER_DIALECT defined.
17665 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
17666 * doc/tm.texi: Regenerated.
17667
fb0d5c60
SB
176682013-05-06 Steven Bosscher <steven@gcc.gnu.org>
17669
fb0d5c60
SB
17670 * config/mips/mips.c: Include tree-pass.h.
17671 (mips_reorg): Split in pre- and post-dbr_schedule parts.
17672 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
17673 (pass_mips_machine_reorg2): New machine specific pass.
17674 (insert_pass_mips_machine_reorg2): New pass plugin definition.
17675 (mips_option_override): Register the new pass.
17676 * rtl.h (cleanup_barriers): Remove prototype.
17677 (dbr_schedule): Likewise.
17678 * jump.c (cleanup_barriers): Make static.
17679 * reorg.c (dbr_schedule): Likewise.
17680
aa06a978
RB
176812013-05-06 Richard Biener <rguenther@suse.de>
17682
17683 PR tree-optimization/57185
17684 * tree-parloops.c (add_field_for_reduction): Handle anonymous
17685 SSA names properly.
17686
0b953bec
UB
176872013-05-06 Uros Bizjak <ubizjak@gmail.com>
17688
17689 PR target/57106
17690 * config/i386/i386.c (add_parameter_dependencies): Add dependence
17691 between "first_arg" and "insn", not "last" and "insn".
17692
28708525
WS
176932013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17694
17695 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
17696 (find_candidates_in_block): Re-enable slsr_process_phi.
17697 (create_phi_basis): Fix double counting of candidate adjustment.
17698
0107dca2
RB
176992013-05-06 Richard Biener <rguenther@suse.de>
17700
17701 PR middle-end/57147
17702 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
17703 the edge is also fallthru, preserve it and just clear the
17704 abnormal flag.
17705 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
17706 also complex, preserve that and just clear the fallthru flag.
17707 * tree-inline.c (update_ssa_across_abnormal_edges): Also
17708 update virtual operands.
17709
470d4d13
AM
177102013-05-06 Alan Modra <amodra@gmail.com>
17711
17712 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
17713 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
17714 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
17715 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
17716 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
17717 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
17718
8f1dbf8d
AM
177192013-05-06 Alan Modra <amodra@gmail.com>
17720
17721 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
17722 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
17723 (DEFAULT_ASM_ENDIAN): Define.
17724 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
17725 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
17726 Update -K PIC clause from sysv4.h.
17727 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
17728 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
17729
54890767
AM
177302013-05-06 Alan Modra <amodra@gmail.com>
17731
17732 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
17733 twice for little-endian.
17734 (ashrdi3_no_power, ashrdi3): Support little-endian.
17735
2353515d
OE
177362013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17737
17738 PR target/55303
17739 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
17740 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
17741 related expanders.
17742 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
17743 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
17744 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
17745 New predicates.
17746
33e67557
SB
177472013-05-05 Steven Bosscher <steven@gcc.gnu.org>
17748 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17749
17750 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
17751 * config/pa/pa.opt: Make mbig-switch a no-op.
17752 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
17753 (CASE_VECTOR_MODE): Always return SImode.
17754 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
17755 for the !TARGET_BIG_SWITCH case.
17756 * config/pa/pa-linux.h: Likewise.
17757 * config/pa/pa-openbsd.h: Likewise.
17758 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
17759 * config/pa/pa.md (short_jump): Remove define_insn.
17760 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
17761 (casesi0): Remove define_insn.
17762 (type): Remove btable_branch.
17763 (pa_combine_type): Likewise.
17764 (in_nullified_branch_delay): Likewise.
17765 (in_call_delay): Likewise.
17766 (define_delay): Likewise.
17767 (define_insn_reservation "Z3"): Likewise.
17768 (define_insn_reservation "Z4"): Likewise.
17769 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
17770 (pa_adjust_insn_length): Remove adjustment for btable branches.
17771 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
17772 and mno-big-switch
17773
3095685e
UB
177742013-05-05 Uros Bizjak <ubizjak@gmail.com>
17775
17776 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
17777 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
17778 Add m->r,x alternatives.
17779 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
17780 splitters using SWI48x mode iterator.
17781 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
17782 TARGET_64BIT. Add m->x alternative.
17783 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
17784 Add o->x alternative. Enable for TARGET_SSE.
17785 (sse_storeq): Remove expander.
17786 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
17787 with memory input operand.
17788 (*vec_extractv2di_1 splitter): New.
17789 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
17790 * config/i386/i386.md (ssevecmodelower): New mode attribute.
17791
4b36ae28
SB
177922013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17793
17794 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
17795 (INT_LOWPART): Delete.
17796 (extract_MB): Adjust.
17797 (extract_ME): Adjust.
17798 (print_operand): Adjust.
17799
da226db2
SB
178002013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17801
17802 * config/rs6000/predicates.md (reg_or_add_cint_operand,
17803 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
17804 (reg_or_logical_cint_operand, easy_fp_constant,
17805 logical_const_operand): Delete "CONST_DOUBLE" case.
17806 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
17807 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 17808 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
17809 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
17810 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
17811 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
17812 test.
17813 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
17814 CONST_DOUBLE DImode/VOIDmode case.
17815 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
17816 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
17817 CONST_DOUBLE VOIDmode case.
17818 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
17819 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
17820 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
17821 Delete CONST_DOUBLE case.
17822 (splitters for mov FMOVE64 const_double): Delete
17823 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
17824 "HOST_BITS_PER_WIDE_INT >= 64" test.
17825 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
17826 case.
17827 (mov DI const_double): Delete.
17828
40de22d6
JJ
178292013-05-04 Jakub Jelinek <jakub@redhat.com>
17830
17831 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
17832 on op shows all bits zero in mode of a lowpart subreg, return zero.
17833
5ec6aff2
MM
178342013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17835
17836 PR target/57150
17837 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
17838 to save TFmode registers and DImode to save TImode registers for
17839 caller save operations.
17840 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
17841 mark being partially clobbered since they only use the first
17842 double word.
17843
17844 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
17845 and TDmode only use the upper 64-bits of each VSX register.
17846
2cefad90
BS
178472013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17848
17849 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
17850 (find_candidates_in_block): Disable slsr_process_phi.
17851
d6d7eee1
GW
178522013-05-03 Guozhi Wei <carrot@google.com>
17853
17854 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
17855 constructor to ...
17856 (build_init_ctor): ... here.
d6d7eee1 17857
9b92d12b
BS
178582013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17859
17860 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
17861 (slsr_cand_d): Redefine def_phi.
17862 (stride_status, phi_adjust_status, count_phis_status): New enums.
17863 (find_phi_def): New.
17864 (find_basis_for_base_expr): New.
17865 (find_basis_for_candidate): Handle hidden bases.
17866 (alloc_cand_and_find_basis): Handle phi candidates.
17867 (slsr_process_phi): New.
17868 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
17869 (create_mul_imm_cand): Likewise.
17870 (create_add_ssa_cand): Exclude phi base candidates.
17871 (create_add_imm_cand): Likewise.
17872 (slsr_process_cast): Likewise.
17873 (slsr_process_copy): Likewise.
17874 (find_candidates_in_block): Handle phi candidates.
17875 (dump_candidate): Likewise.
17876 (unconditional_cands): Delete.
17877 (unconditional_cands_with_known_stride_p): Delete.
17878 (phi_dependent_cand_p): New.
17879 (cand_increment): Handle phi-dependent candidates.
17880 (replace_dependent): Delete.
17881 (replace_mult_candidate): New.
17882 (replace_unconditional_candidate): New.
17883 (incr_vec_index): Move to avoid forward reference.
17884 (create_add_on_incoming_edge): New.
17885 (create_phi_basis): New.
17886 (replace_dependents): Delete.
17887 (replace_conditional_candidate): New.
17888 (phi_add_costs): New.
17889 (replace_uncond_cands_and_profitable_phis): New.
17890 (record_increment): Handle phi adjustments.
17891 (record_phi_increments): New.
17892 (record_increments): Handle phi adjustments.
17893 (phi_incr_cost): New.
17894 (lowest_cost_path): Handle phis.
17895 (total_savings): Likewise.
17896 (analyze_increments): Likewise.
17897 (ncd_with_phi): New.
17898 (ncd_of_cand_and_phis): New.
17899 (nearest_common_dominator_for_cands): Handle phi increments.
17900 (all_phi_incrs_profitable): New.
17901 (replace_profitable_candidates): Handle phi-dependent candidates.
17902 (analyze_candidates_and_replace): Likewise.
17903
68f073d4
TJ
179042013-05-03 Teresa Johnson <tejohnson@google.com>
17905
17906 PR bootstrap/57154
17907 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
17908 do not exceed REG_BR_PROB_BASE.
17909
a4ee7cb9
JL
179102013-05-03 Jeff Law <law@redhat.com>
17911
ade67f70 17912 PR tree-optimization/57144
a4ee7cb9
JL
17913 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
17914 operand of the condition will bit into the new type when eliminating
17915 a cast feeding a condition.
17916
47954c4e
JJ
179172013-05-03 Jakub Jelinek <jakub@redhat.com>
17918
17919 PR rtl-optimization/57130
3095685e
UB
17920 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
17921 of COMPARE as in_code to the recursive call if needed.
47954c4e 17922
3c21604f
UB
179232013-05-03 Uros Bizjak <ubizjak@gmail.com>
17924
17925 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
17926 (enabled): Handle new members.
17927 * config/i386/sse.md (*vec_concatv2si): Merge from
17928 *vec_concatv2si_sse2 and vec_concatv2si_sse.
17929 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
17930
12211b99 179312013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
17932
17933 PR tree-optimization/57027
17934 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
17935 for fnms opportunity, check we got the prerequisite kind
17936 of tree / gimple before using accessor functions.
17937
07bfc9ec
RB
179382013-05-03 Richard Biener <rguenther@suse.de>
17939
17940 * double-int.h (lshift): New overload without precision
17941 and arith argument.
17942 (operator *=, operator +=, operator -=): Move ...
17943 * double-int.c (operator *=, operator +=, operator -=): ... here
17944 and implement more efficiently.
17945 (mul_double_with_sign): Remove.
17946 (lshift_double): Adjust to take unsinged shift argument, push
17947 dispatching code to callers.
17948 (mul_double_wide_with_sign): Add early out for callers that
17949 are not interested in high parts or overflow.
17950 (lshift): New function.
17951 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
17952 dispatch code here.
17953 (lrotate, rrotate): Use logical shifts.
17954 * expr.c (get_inner_reference): Use lshift.
17955 * fixed-value.c (do_fixed_divide): Likewise.
17956 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17957 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17958 (indirect_refs_may_alias_p): Likewise.
17959 (stmt_kills_ref_p_1): Likewise.
17960
7769bb64
VP
179612013-05-03 Vidya Praveen <vidyapraveen@arm.com>
17962
17963 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
17964
1d0c8e5c
VP
179652013-05-03 Vidya Praveen <vidyapraveen@arm.com>
17966
17967 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
17968 scalar form of FABD instruction.
17969
f15feaf9
VM
179702013-05-02 Vladimir Makarov <vmakarov@redhat.com>
17971
17972 * lra-constraints.c (process_alt_operands): Add checking alt
17973 number to choose the best alternative.
17974
d90e76d4
RB
179752013-05-02 Richard Biener <rguenther@suse.de>
17976
17977 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
17978 bitmap and its handling.
17979 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
17980
9f8e7a96
RB
179812013-05-02 Richard Biener <rguenther@suse.de>
17982
17983 PR middle-end/57140
17984 * tree-inline.c (copy_loops): Properly handle removed loops.
17985 (copy_cfg_body): Mark destination loops for fixup if source
17986 loops needed fixup.
17987
f3a81b39
GY
179882013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
17989
17990 PR target/56732
17991 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
17992 generating simple_return for naked functions.
17993
7b920a9a
MJ
179942013-05-02 Martin Jambor <mjambor@suse.cz>
17995
17996 PR middle-end/56988
17997 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
17998 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
17999 flags match.
18000 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
18001 ipa_agg_replacement_value structures.
18002 (known_aggs_to_agg_replacement_list): Likewise.
18003 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
18004 (read_agg_replacement_chain): Likewise.
18005 (ipcp_transform_function): Also check that by_ref flags match.
18006
2c41c19d
RB
180072013-05-02 Richard Biener <rguenther@suse.de>
18008
18009 * graphds.h (struct graph): Add obstack member.
18010 * graphds.c (new_graph): Initialize obstack and allocate
18011 vertices from it.
18012 (add_edge): Allocate edge from the obstack.
3c21604f 18013 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 18014
8b47039c
TJ
180152013-05-02 Teresa Johnson <tejohnson@google.com>
18016
18017 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
18018 divides.
18019 * cfg.c (update_bb_profile_for_threading): Ditto.
18020 * tree-inline.c (copy_bb): Ditto.
18021 (copy_edges_for_bb): Ditto.
18022 (initialize_cfun): Ditto.
18023 (copy_cfg_body): Ditto.
18024 (expand_call_inline): Ditto.
18025 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
18026 (estimate_node_size_and_time): Ditto.
18027 (inline_merge_summary): Ditto.
18028 * cgraphclones.c (cgraph_clone_edge): Ditto.
18029 (cgraph_clone_node): Ditto.
18030 * sched-rgn.c (compute_dom_prob_ps): Ditto.
18031 (compute_trg_info): Ditto.
18032
da65928c
IB
180332013-05-02 Ian Bolton <ian.bolton@arm.com>
18034
18035 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
18036 S reg when fp attribute set.
18037 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
18038
add3c965
IB
180392013-05-02 Ian Bolton <ian.bolton@arm.com>
18040
18041 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
18042 New pattern.
18043 (*and_one_cmplsi3_compare0_uxtw): Likewise.
18044 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
18045 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
18046
fdd43ac4
RB
180472013-05-02 Richard Biener <rguenther@suse.de>
18048
18049 * tree-scalar-evolution.c (scev_info_hasher): Remove.
18050 (struct instantiate_cache_entry): New type.
18051 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
18052 (struct instantiate_cache_type): New type.
18053 (set_instantiated_value, get_instantiated_value): Remove.
18054 (get_instantiated_value_entry): New function.
18055 (instantiate_scev_name): Use the new cache and adjust.
18056 (instantiate_scev_poly): Adjust.
18057 (instantiate_scev_binary): Likewise.
18058 (instantiate_array_ref): Likewise.
18059 (instantiate_scev_convert): Likewise.
18060 (instantiate_scev_not): Likewise.
18061 (instantiate_scev_3): Likewise.
18062 (instantiate_scev_2): Likewise.
18063 (instantiate_scev_r): Likewise.
18064 (instantiate_scev): Likewise.
18065 (resolve_mixers): Likewise.
18066
36ff9dfb
VM
180672013-05-01 Vladimir Makarov <vmakarov@redhat.com>
18068
18069 PR target/57091
18070 * lra-constraints.c (best_small_class_operands_num): Remove.
18071 (process_alt_operands): Remove small_class_operands_num. Take
18072 small classes operands into losers and only if the operand is not
18073 matched. Modify debugging output.
18074 (curr_insn_transform): Remove best_small_class_operands_num.
18075 Print insn name.
18076
36054fab
JG
180772013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18078
18079 * config/aarch64/aarch64-builtins.c
18080 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
18081 * config/aarch64/aarch64-simd-builtins.def
18082 (reduc_splus_): Add new modes.
18083 (reduc_uplus_): New.
18084 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
18085 (reduc_uplus_v4sf): Likewise.
18086 (reduc_splus_v4sf): Likewise.
18087 (aarch64_addv<mode>): Likewise.
18088 (reduc_uplus_<mode>): Likewise.
18089 (reduc_splus_<mode>): Likewise.
18090 (aarch64_addvv2di): Likewise.
18091 (reduc_uplus_v2di): Likewise.
18092 (reduc_splus_v2di): Likewise.
18093 (aarch64_addvv2si): Likewise.
18094 (reduc_uplus_v2si): Likewise.
18095 (reduc_splus_v2si): Likewise.
18096 (reduc_<sur>plus_<mode>): New.
18097 (reduc_<sur>plus_v2di): Likewise.
18098 (reduc_<sur>plus_v2si): Likewise.
18099 (reduc_<sur>plus_v4sf): Likewise.
18100 (aarch64_addpv4sf): Likewise.
18101 * config/aarch64/arm_neon.h
18102 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
18103 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
18104 add UNSPEC_SADDV, UNSPEC_UADDV.
18105 (SUADDV): New.
18106 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
18107
6dce23a8
JG
181082013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18109
18110 * config/aarch64/arm_neon.h
18111 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
18112
1598945b
JG
181132013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18114
18115 * config/aarch64/aarch64-builtins
18116 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
18117
998eaf97
JG
181182013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18119
18120 * config/aarch64/aarch64-simd-builtins.def
18121 (reduc_smax_): New.
18122 (reduc_smin_): Likewise.
18123 (reduc_umax_): Likewise.
18124 (reduc_umin_): Likewise.
18125 (reduc_smax_nan_): Likewise.
18126 (reduc_smin_nan_): Likewise.
18127 (fmax): Remove.
18128 (fmin): Likewise.
18129 (smax): Update for V2SF, V4SF and V2DF modes.
18130 (smin): Likewise.
18131 (smax_nan): New.
18132 (smin_nan): Likewise.
18133 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
18134 (<su><maxmin><mode>3): ...This, refactor.
18135 (s<maxmin><mode>3): New.
18136 (<maxmin_uns><mode>3): Likewise.
18137 (reduc_<maxmin_uns>_<mode>): Refactor.
18138 (reduc_<maxmin_uns>_v4sf): Likewise.
18139 (reduc_<maxmin_uns>_v2si): Likewise.
18140 (aarch64_<fmaxmin><mode>: Remove.
18141 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
18142 new builtin names.
18143 (vmin<q>_f<32,64>): Likewise.
18144 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
18145 (FMAXMIN): New.
18146 (su): Add mappings for smax, smin, umax, umin.
18147 (maxmin): New.
18148 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
18149 (FMAXMIN): Rename as...
18150 (FMAXMIN_UNS): ...This.
18151 (maxminv): Remove.
18152 (fmaxminv): Likewise.
18153 (fmaxmin): Likewise.
18154 (maxmin_uns): New.
18155 (maxmin_uns_op): Likewise.
18156
bd11644e
JG
181572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18158
18159 * config/aarch64/arm_neon.h
18160 (vac<ge, gt><sd>_f<32, 64>): Rename to...
18161 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
18162 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
18163
75dd5ace
JG
181642013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18165
18166 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
18167 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
18168
7c19979f
JG
181692013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18170
18171 * config/aarch64/aarch64-simd.md
18172 (vcond<mode>_internal): Handle special cases for constant masks.
18173 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
18174 (vcondu<mode><mode>): Likewise.
18175 (vcond<v_cmp_result><mode>): New.
18176
bb60efd9
JG
181772013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18178
18179 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
18180 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
18181 * config/aarch64/aarch64-simd-builtins.def
18182 (cmeq): Update to BUILTIN_VALLDI.
18183 (cmgt): Likewise.
18184 (cmge): Likewise.
18185 (cmle): Likewise.
18186 (cmlt): Likewise.
18187 * config/aarch64/arm_neon.h
18188 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
18189 to builtins or C as appropriate.
18190
889b9412
JG
181912013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18192
18193 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
18194 (cmgeu): ...This.
18195 (cmhi): Rename to...
18196 (cmgtu): ...This.
18197 * config/aarch64/aarch64-simd.md
18198 (simd_mode): Add SF.
18199 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
18200 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
18201 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
18202 (cstore<mode>_neg): ...This.
18203 * config/aarch64/iterators.md
18204 (VALLF): new.
18205 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
18206 (COMPARISONS): New.
18207 (UCOMPARISONS): Likewise.
18208 (optab): Add missing comparisons.
18209 (n_optab): New.
18210 (cmp_1): Likewise.
18211 (cmp_2): Likewise.
18212 (CMP): Likewise.
18213 (cmp): Remove.
18214 (VCMP_S): Likewise.
18215 (VCMP_U): Likewise.
18216 (V_cmp_result): Add DF, SF modes.
18217 (v_cmp_result): Likewise.
18218 (v): Likewise.
18219 (vmtype): Likewise.
18220 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
18221
0a7dbb76
GY
182222013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
18223
18224 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
18225 define_insn to define_insn_and_split.
18226 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
18227 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
18228 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
18229 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
18230 (thumb2_negscc): Likewise.
18231
fb614ca6
GY
182322013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
18233
18234 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
18235
9e64a0bf
GY
182362013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
18237
18238 * config/arm/thumb2.md: Remove trailing whitespaces.
18239
d6b28156
RS
182402013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18241
18242 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
18243 Use gen_int_mode rather than GEN_INT.
18244
f91674c3
L
182452013-04-30 H.J. Lu <hongjiu.lu@intel.com>
18246
b0dec607 18247 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
18248 debug_gimple_stmt.
18249
3551257c
RB
182502013-04-30 Richard Biener <rguenther@suse.de>
18251
18252 PR middle-end/57122
3c21604f 18253 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 18254
4c1aff1c
RB
182552013-04-30 Richard Biener <rguenther@suse.de>
18256
18257 PR middle-end/57107
18258 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
18259
54b8379a
AB
182602013-04-30 Andrey Belevantsev <abel@ispras.ru>
18261
18262 PR rtl-optimization/56957
18263 PR rtl-optimization/57105
54b8379a
AB
18264 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
18265 variable. Use just INSN_UID for determining whether an insn
18266 should be only disconnected from the insn stream.
18267 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
18268
abc27962
JJ
182692013-04-30 Jakub Jelinek <jakub@redhat.com>
18270
18271 PR tree-optimization/57104
18272 * tsan.c (instrument_expr): Don't instrument accesses to
18273 DECL_HARD_REGISTER VAR_DECLs.
18274
0fc822d0
RB
182752013-04-30 Richard Biener <rguenther@suse.de>
18276
18277 * function.h (loops_for_fn): New inline function.
18278 (set_loops_for_fn): Likewise.
18279 * cfgloop.h (place_new_loop): Add struct function parameter.
18280 (get_loop): Likewise.
18281 (get_loops): Likewise.
18282 (number_of_loops): Likewise.
18283 (fel_next): Adjust.
18284 (fel_init): Likewise.
18285 * cfg.c (get_loop_copy): Adjust.
18286 * cfgloop.c (flow_loops_dump): Likewise.
18287 (record_loop_exits): Likewise.
18288 (verify_loop_structure): Likewise.
18289 * cfgloopanal.c (mark_irreducible_loops): Likewise.
18290 (estimate_reg_pressure_cost): Likewise.
18291 (mark_loop_exit_edges): Likewise.
18292 * cfgloopmanip.c (place_new_loop): Likewise.
18293 (add_loop): Likewise.
18294 (duplicate_loop): Likewise.
18295 * graph.c (draw_cfg_nodes): Likewise.
18296 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
18297 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
18298 (extract_affine_chrec): Likewise.
18299 (build_scop_iteration_domain): Likewise.
18300 * graphite.c (graphite_initialize): Likewise.
18301 * ira-build.c (create_loop_tree_nodes): Likewise.
18302 (more_one_region_p): Likewise.
18303 (rebuild_regno_allocno_maps): Likewise.
18304 (mark_loops_for_removal): Likewise.
18305 (mark_all_loops_for_removal): Likewise.
18306 (remove_unnecessary_regions): Likewise.
18307 (ira_build): Likewise.
18308 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
18309 * loop-init.c (fix_loop_structure): Likewise.
18310 (gate_rtl_move_loop_invariants): Likewise.
18311 (gate_rtl_unswitch): Likewise.
18312 (gate_rtl_unroll_and_peel_loops): Likewise.
18313 (rtl_doloop): Likewise.
18314 * lto-streamer-in.c (input_cfg): Likewise.
18315 * lto-streamer-out.c (output_cfg): Likewise.
18316 * modulo-sched.c (sms_schedule): Likewise.
18317 * predict.c (tree_estimate_probability): Likewise.
18318 (tree_estimate_probability_driver): Likewise.
18319 (estimate_loops): Likewise.
18320 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
18321 (move_sese_region_to_fn): Likewise.
18322 (debug_loop_num): Likewise.
18323 * tree-chrec.c (chrec_evaluate): Likewise.
18324 (hide_evolution_in_other_loops_than_loop): Likewise.
18325 (chrec_component_in_loop_num): Likewise.
18326 (reset_evolution_in_loop): Likewise.
18327 (evolution_function_is_invariant_rec_p): Likewise.
18328 * tree-if-conv.c (main_tree_if_conversion): Likewise.
18329 * tree-inline.c (copy_loops): Likewise.
18330 (copy_cfg_body): Likewise.
18331 (tree_function_versioning): Likewise.
18332 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
18333 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18334 Likewise.
18335 (add_to_evolution_1): Likewise.
18336 (scev_const_prop): Likewise.
18337 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
18338 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
18339 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
18340 (tree_ssa_lim_initialize): Likewise.
18341 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
18342 (verify_loop_closed_ssa): Likewise.
18343 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
18344 (tree_ssa_loop_im): Likewise.
18345 (tree_ssa_loop_unswitch): Likewise.
18346 (tree_vectorize): Likewise.
18347 (check_data_deps): Likewise.
18348 (tree_ssa_loop_ivcanon): Likewise.
18349 (tree_ssa_loop_bounds): Likewise.
18350 (tree_complete_unroll): Likewise.
18351 (tree_complete_unroll_inner): Likewise.
18352 (tree_parallelize_loops): Likewise.
18353 (tree_ssa_loop_prefetch): Likewise.
18354 (tree_ssa_loop_ivopts): Likewise.
18355 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
18356 * tree-vectorizer.c (vectorize_loops): Likewise.
18357
37953bd3
MF
183582013-04-29 Mike Frysinger <vapier@gentoo.org>
18359
18360 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
18361 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
18362 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
18363 with EABI_LINK_SPEC.
18364
f9ed28db
UB
183652013-04-29 Uros Bizjak <ubizjak@gmail.com>
18366
18367 PR target/44578
18368 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
18369 alternative.
18370
deca73f5
VM
183712013-04-29 Vladimir Makarov <vmakarov@redhat.com>
18372
18373 PR target/57097
37953bd3 18374 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
18375 using memory for pseudos. Print cost dump for alternatives.
18376 Modify cost values for conflicts with early clobbers.
18377 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
18378
fdca7d03
UB
183792013-04-29 Uros Bizjak <ubizjak@gmail.com>
18380
18381 PR target/57098
18382 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
18383
0b064172
IB
183842013-04-29 Ian Bolton <ian.bolton@arm.com>
18385
18386 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
18387 from/to S register.
18388 (movdi_aarch64): Support LDR/STR from/to D register.
18389
473cec55
IB
183902013-04-29 Ian Bolton <ian.bolton@arm.com>
18391
18392 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
18393 or higher by default.
18394
a6f30e66
RB
183952013-04-29 Richard Biener <rguenther@suse.de>
18396
18397 PR middle-end/57075
18398 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
18399 even if not adding abnormal edges for calls that can make
18400 abnormal gotos.
18401
0c2b2040
RB
184022013-04-29 Richard Biener <rguenther@suse.de>
18403
18404 PR middle-end/57103
18405 * tree-cfg.c (move_stmt_op): Fix condition under which to update
18406 TREE_BLOCK.
18407 (move_stmt_r): Remove redundant checking.
18408
f41f80f9
TJ
184092013-04-29 Teresa Johnson <tejohnson@google.com>
18410
18411 PR bootstrap/57077
18412 * basic-block.h (apply_scale): New function.
18413 (apply_probability): Use apply_scale.
18414 * gimple-streamer-in.c (input_bb): Ditto.
18415 * lto-streamer-in.c (input_cfg): Ditto.
18416 * lto-cgraph.c (merge_profile_summaries): Ditto.
18417 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 18418 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
18419 (copy_edges_for_bb): Ditto.
18420 (copy_cfg_body): Ditto.
18421
315bbd2e
TV
184222013-04-29 Tom de Vries <tom@codesourcery.com>
18423
18424 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
18425 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
18426 (tail_merge_optimize): Handle current_loops == NULL.
18427
ebbd90d8
JL
184282013-04-26 Jeff Law <law@redhat.com>
18429
18430 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
18431 (simplify_cond_using_ranges): Generalize code to simplify
18432 COND_EXPRs where one argument is a constant and the other
18433 is an SSA_NAME created by an integral type conversion.
18434
8b9b57eb
KT
184352013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18436
18437 * config/arm/arm.md (store_minmaxsi): Use only when
18438 optimize_insn_for_size_p.
18439
9498e5dc
CB
184402013-04-29 Christian Bruel <christian.bruel@st.com>
18441
18442 PR target/57108
18443 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
18444
6093bc06
RB
184452013-04-29 Richard Biener <rguenther@suse.de>
18446
18447 PR middle-end/57089
fdca7d03
UB
18448 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
18449 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
18450 (expand_omp_for_generic): Properly add loops.
18451 (expand_omp_for_static_nochunk): Likewise.
18452 (expand_omp_for_static_chunk): Likewise.
18453 (expand_omp_for): For the degenerate case fixup loops.
18454 (expand_omp_sections): Fix default bb placement in loops.
18455 (expand_omp_atomic_pipeline): Properly add loops.
18456
84aacbfd
KT
184572013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18458
18459 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
18460
8dee4479
TV
184612013-04-29 Tom de Vries <tom@codesourcery.com>
18462
18463 * tree-ssa-tail-merge.c: Update header comment.
18464
47934dc4
JG
184652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18466
18467 * config/aarch64/arm_neon.h
18468 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
18469 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
18470 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
18471 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
18472 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
18473 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
18474 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
18475 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
18476
384be29f
JG
184772013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18478
18479 * config/aarch64/aarch64-simd.md
18480 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
18481 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
18482 fix_trunc, fixuns_trunc.
18483 (ftrunc<VDQF:mode>2): New.
18484 * config/aarch64/iterators.md (optab): Add fix, fixuns.
18485 (fix_trunc_optab): New.
18486
0386b123
JG
184872013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18488
18489 * config/aarch64/aarch64-builtins.c
18490 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
18491 iceilf, lround, iroundf.
18492
00fcb892
UB
184932013-04-29 Uros Bizjak <ubizjak@gmail.com>
18494
18495 PR target/54349
18496 * config/i386/i386.h (enum ix86_tune_indices)
18497 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
18498 New, split from X86_TUNE_INTER_UNIT_MOVES.
18499 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
18500 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
18501 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
18502 (TARGET_INTER_UNIT_MOVES): Remove.
18503 * config/i386/i386.c (initial_ix86_tune_features): Update.
18504 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
18505 (ix86_expand_convert_uns_didf_sse): Use
18506 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
18507 (ix86_expand_vector_init_one_nonzero): Ditto.
18508 (ix86_expand_vector_init_interleave): Ditto.
18509 (inline_secondary_memory_needed): Return true for moves from SSE class
18510 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
18511 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
18512 * config/i386/constraints.md (Yi, Ym): Depend on
18513 TARGET_INTER_UNIT_MOVES_TO_VEC.
18514 (Yj, Yn): New constraints.
18515 * config/i386/i386.md (*movdi_internal): Change constraints of
18516 operand 1 from Yi to Yj and from Ym to Yn.
18517 (*movsi_internal): Ditto.
18518 (*movdf_internal): Ditto.
18519 (*movsf_internal): Ditto.
18520 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
18521 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
18522 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
18523 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
18524 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
18525 * config/i386/sse.md (movdi_to_sse): Ditto.
18526 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
18527 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
18528 TARGET_INTER_UNIT_MOVES.
18529 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
18530 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
18531 instead of TARGET_INTER_UNIT_MOVES.
18532 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
18533 operand 1 from Yi to Yj and from Ym to Yn.
18534
4c871069
JG
185352013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18536
18537 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
18538 (float_truncate_hi_): Likewise.
18539 (float_extend_lo_): Likewise.
18540 (float_truncate_lo_): Likewise.
18541 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
18542 (aarch64_float_extend_lo_v2df): Likewise.
18543 (vec_unpacks_hi_v4sf): Likewise.
18544 (aarch64_float_truncate_lo_v2sf): Likewise.
18545 (aarch64_float_truncate_hi_v4sf): Likewise.
18546 (vec_pack_trunc_v2df): Likewise.
18547 (vec_pack_trunc_df): Likewise.
18548
1709ff9b
JG
185492013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18550
18551 * config/aarch64/aarch64-builtins.c
18552 (aarch64_fold_builtin): Fold float conversions.
18553 * config/aarch64/aarch64-simd-builtins.def
18554 (floatv2si, floatv4si, floatv2di): New.
18555 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
18556 * config/aarch64/aarch64-simd.md
18557 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
18558 * config/aarch64/iterators.md (FLOATUORS): New.
18559 (optab): Add float, floatuns.
18560 (su_optab): Likewise.
18561
ce966824
JG
185622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18563
18564 * config/aarch64/aarch64-builtins.c
18565 (aarch64_builtin_vectorized_function): Use new names for
18566 fcvt builtins.
18567 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
18568 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
18569 (fcvtzu): Split as...
18570 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
18571 (fcvtas): Split as...
18572 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
18573 (fcvtau): Split as...
18574 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
18575 (fcvtps): Split as...
18576 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
18577 (fcvtpu): Split as...
18578 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
18579 (fcvtms): Split as...
18580 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
18581 (fcvtmu): Split as...
18582 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
18583 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
18584 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
18585 (lfrintnusf, lfrintnudf): Likewise.
18586 * config/aarch64/aarch64-simd.md
18587 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
18588 define_insn.
18589 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
18590 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
18591 (fcvt_pattern): Likewise.
18592
b9de24fe
JG
185932013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18594
18595 * config/aarch64/aarch64-simd.md
18596 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
18597 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
18598
77a205be
JG
185992013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18600
18601 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
18602 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
18603 (vrnd<a,m,n,p>_f32): Implement using builtins.
18604 (vrnd<i,x><q>_f<32, 64>): New.
18605
0659ce6f
JG
186062013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18607
18608 * config/aarch64/aarch64-builtins.c
18609 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
18610 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
18611 (frintz): Rename to...
18612 (btrunc): ...this.
18613 (frintp): Rename to...
18614 (ceil): ...this.
18615 (frintm): Rename to...
18616 (floor): ...this.
18617 (frinti): Rename to...
18618 (nearbyint): ...this.
18619 (frintx): Rename to...
18620 (rint): ...this.
18621 (frinta): Rename to...
18622 (round): ...this.
18623 * config/aarch64/aarch64-simd.md
18624 (aarch64_frint<frint_suffix><mode>): Delete.
18625 (<frint_pattern><mode>2): Convert to insn.
18626 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
18627 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
18628 (frint_pattern): Likewise.
18629 (frint_suffix): Likewise.
18630
ea78906a
RB
186312013-04-29 Richard Biener <rguenther@suse.de>
18632
18633 PR tree-optimization/57081
18634 * loop-init.c: Include tree-flow.h.
18635 (loop_optimizer_finalize): Free number of iteration estimates.
18636 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
18637
baee1763
JJ
186382013-04-29 Jakub Jelinek <jakub@redhat.com>
18639
94dc5332
JJ
18640 PR tree-optimization/57083
18641 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
18642 non-singleton shift count range, zero extend low_bound for uns case.
18643
baee1763
JJ
18644 * config/i386/predicates.md (general_vector_operand): New predicate.
18645 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
18646 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
18647 if they aren't nonimmediate operands. If their original values
18648 satisfy const_vector_equal_evenodd_p, don't shift them.
18649 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
18650 predicates. For the SSE4.1 case force operands[{1,2}] into registers
18651 if not nonimmediate_operand.
18652 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
18653 instead of register_operand.
18654 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
18655
a9073727 186562013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
18657
18658 * stor-layout.c (finalize_size_functions): Allocate a structure and
18659 reset cfun before dumping the functions.
18660
ba8011e6
JJ
186612013-04-27 Jakub Jelinek <jakub@redhat.com>
18662
d6fde69e
JJ
18663 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
18664
ba8011e6
JJ
18665 PR target/56866
18666 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
18667 use xop_pmacsdqh if uns_p.
18668 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
18669 the immediate rotate count.
18670
2c62cbaa
VM
186712013-04-26 Vladimir Makarov <vmakarov@redhat.com>
18672
18673 * rtl.h (struct rtx_def): Add comment for field jump.
18674 (LRA_SUBREG_P): New macro.
18675 * recog.c (register_operand): Check LRA_SUBREG_P.
18676 * lra.c (lra): Add note at the end of RTL code. Align non-empty
18677 stack frame.
18678 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
18679 (lra_final_code_change): Skip subreg change for operators.
18680 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
18681 if there are no operand changes.
18682 * lra-constraints.c (curr_insn_set): New.
18683 (match_reload): Set LRA_SUBREG_P.
18684 (emit_spill_move): Ditto.
18685 (check_and_process_move): Use curr_insn_set. Process only single
18686 set insns. Don't initialize sec_mem_p and change_p.
18687 (simplify_operand_subreg): Use LRA_SUBREG_P.
18688 (reg_in_class_p): New function.
18689 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
18690 of #ifdef. Add code to remove cycling.
18691 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
18692 non-null disp. Reload inner instead of disp when base and index
18693 are null. Try to put lo_sum into register.
18694 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
18695 (check_and_process_move): Move code for move cost check to
18696 simple_move_p. Remove equiv_substitution.
18697 (simple_move_p): New function.
18698 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
18699 curr_insn_set. Call check_and_process_move only for single set
18700 insns. Use the new function. Move call of check_and_process_move
18701 after operand equiv substitution and address process.
18702
e7d764f3
JJ
187032013-04-26 Jakub Jelinek <jakub@redhat.com>
18704
18705 PR go/57045
18706 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
18707 with nonlocal goto receivers or returns twice calls, ignore
18708 unininitialized values from abnormal edges to nl goto receiver
18709 or returns twice call.
18710
41e10689
JJ
187112013-04-26 Jakub Jelinek <jakub@redhat.com>
18712
18713 PR tree-optimization/57051
18714 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
18715 and VEC_RSHIFT_EXPR if shift count is a multiple of element
18716 bitsize.
18717
d7ed20db
RB
187182013-04-26 Richard Biener <rguenther@suse.de>
18719
18720 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
18721 (expand_omp_taskreg): Likewise. Mark loops for fixup.
18722 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
18723 (fixup_loop_arrays_after_move): New function.
18724 (move_sese_region_to_fn): Properly outline the loop tree parts
18725 of the SESE region.
18726
df93505e
UB
187272013-04-26 Uros Bizjak <ubizjak@gmail.com>
18728
18729 * config/i386/i386.md (type, unit): Fix long lines.
18730
dd366ec3
RB
187312013-04-26 Richard Biener <rguenther@suse.de>
18732
18733 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
18734 (lto-streamer-out.o): Likewise.
18735 * cfgloop.c (init_loops_structure): Export, add struct function
18736 argument and adjust.
18737 (flow_loops_find): Adjust.
18738 * cfgloop.h (enum loop_estimation): Add EST_LAST.
18739 (init_loops_structure): Declare.
18740 * lto-streamer-in.c: Include cfgloop.h.
18741 (input_cfg): Input the loop tree.
18742 * lto-streamer-out.c: Include cfgloop.h.
18743 (output_cfg): Output the loop tree.
18744 (output_struct_function_base): Do not drop PROP_loops.
18745
a9e0d843
RB
187462013-03-26 Richard Biener <rguenther@suse.de>
18747
18748 * tree-cfg.c (execute_build_cfg): Build the loop tree.
18749 (pass_build_cfg): Provide PROP_loops.
18750 (move_sese_region_to_fn): Remove loops that are outlined into fn
18751 for now.
18752 * tree-inline.c: Include cfgloop.h.
18753 (initialize_cfun): Do not drop PROP_loops.
18754 (copy_loops): New function.
18755 (copy_cfg_body): Copy loop structure.
18756 (tree_function_versioning): Initialize destination loop tree.
18757 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
18758 (pass_parallelize_loops): Do IL verification.
18759 * loop-init.c (loop_optimizer_init): Fixup loops if required.
18760 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
18761 the CFG make sure we fixup loops as well.
18762 * tree-ssa-tail-merge.c: Include cfgloop.h.
18763 (replace_block_by): When merging loop latches mark loops for fixup.
18764 * lto-streamer-out.c (output_struct_function_base): Drop
18765 PROP_loops for now.
18766 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
18767 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
18768 * ipa-split.c: Include cfgloop.h.
18769 (split_function): Add the new return block to the loop tree root.
18770 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
18771 whether we have removed the forwarder block.
18772 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
18773 * cfgloop.h (place_new_loop): Declare.
18774 * cfgloopmanip.c (place_new_loop): Export.
18775 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
18776 (tree-switch-conversion.o): Likewise.
18777 (tree-complex.o): Likewise.
18778 (tree-inline.o): Likewise.
18779 (tree-ssa-tailmerge.o): Likewise.
18780 (ipa-split.o): Likewise.
18781 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
18782 (tree-ssa-copy.o): Likewise.
18783 * tree-switch-conversion.c: Include cfgloop.h
18784 (process_switch): If we emit a bit-test cascade, schedule loops
18785 for fixup.
18786 * tree-complex.c: Include cfgloop.h.
18787 (expand_complex_div_wide): Properly add new basic-blocks to loops.
18788 * asan.c: Include cfgloop.h.
18789 (create_cond_insert_point): Properly add new basic-blocks to
18790 loops, schedule loop fixup.
18791 * cfgloop.c (verify_loop_structure): Check that looks are not
18792 marked for fixup.
18793 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
18794 to loops.
18795 (expand_omp_for_generic): Likewise.
18796 (expand_omp_sections): Likewise.
18797 (expand_omp_atomic_pipeline): Schedule loops for fixup.
18798 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
18799 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
18800 is initialized, not when loops are present.
18801 * tree-parloops.c (parallelize_loops): Remove checking here.
18802 * passes.c (init_optimization_passes): Schedule a copy-propagation
18803 pass before complete unrolling of inner loops.
18804
e78e8a0b
JJ
188052013-04-26 Jakub Jelinek <jakub@redhat.com>
18806
a2e836b2
JJ
18807 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
18808 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
18809 (colorize_init): Add argument to _WIN32 version.
18810 * toplev.c: Include diagnostic-color.h.
18811 (process_options): Default to -fdiagnostics-color=auto if
18812 GCC_COLORS env var is in the environment.
18813 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
18814 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
18815 env var is in the environment, the default is auto rather than never.
a2e836b2 18816
e78e8a0b
JJ
18817 * diagnostic.h (file_name_as_prefix): Add context argument.
18818 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
18819 the string as locus.
18820 * langhooks.c (lhd_print_error_function): Adjust caller.
18821
013e5ef9
LC
188222013-04-25 Lawrence Crowl <crowl@google.com>
18823
18824 * var-tracking.c (shared_hash_def::htab):
18825 Change type to hash_table. Update dependent calls and types.
18826
4a8fb1a1
LC
188272013-04-25 Lawrence Crowl <crowl@google.com>
18828
18829 * Makefile.in: Update as needed below.
18830
18831 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
18832 Move declaration to after the type's method definitons.
18833
18834 * attribs.c (htab_t scoped_attributes::attribute_hash):
18835 Change type to hash_table. Update dependent calls and types.
18836
18837 * bitmap.c (htab_t bitmap_desc_hash):
18838 Change type to hash_table. Update dependent calls and types.
18839
18840 * cselib.c (htab_t cselib_hash_table):
18841 Change type to hash_table. Update dependent calls and types.
18842
18843 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
18844 (hash_string_slot_node): Move implementation into lto-streamer.h
18845 struct string_slot_hasher.
18846 (eq_string_slot_node): Likewise.
18847
18848 * data-streamer-out.c: Update output_block::string_hash_table
18849 dependent calls and types.
18850
18851 * dwarf2cfi.c (htab_t trace_index):
18852 Change type to hash_table. Update dependent calls and types.
18853
18854 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
18855 Change type to hash_table. Update dependent calls and types.
18856 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
18857 (htab_t optimize_external_refs::map): Likewise.
18858 (htab_t output_comp_unit::extern_map): Likewise.
18859 (htab_t output_comdat_type_unit::extern_map): Likewise.
18860 (htab_t output_macinfo::macinfo_htab): Likewise.
18861 (htab_t optimize_location_lists::htab): Likewise.
18862 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
18863
18864 * except.c (htab_t ehspec_hash_type):
18865 Change type to hash_table. Update dependent calls and types.
18866 (assign_filter_values::ttypes): Likewise.
18867 (assign_filter_values::ehspec): Likewise.
18868 (sjlj_assign_call_site_values::ar_hash): Likewise.
18869 (convert_to_eh_region_ranges::ar_hash): Likewise.
18870
18871 * gcse.c (htab_t pre_ldst_table):
18872 Change type to hash_table. Update dependent calls and types.
18873
18874 * ggc-common.c (htab_t saving_htab):
18875 Change type to hash_table. Update dependent calls and types.
18876 (htab_t loc_hash): Likewise.
18877 (htab_t ptr_hash): Likewise.
18878 (call_count): Rename ggc_call_count.
18879 (call_alloc): Rename ggc_call_alloc.
18880 (loc_descriptor): Rename make_loc_descriptor.
18881 (add_statistics): Rename ggc_add_statistics.
18882
18883 * ggc-common.c (saving_htab):
18884 Change type to hash_table. Update dependent calls and types.
18885
18886 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
18887 (push_gimplify_context): Likewise.
18888 (pop_gimplify_context): Likewise.
18889 (struct gimple_temp_hash_elt): Added.
18890 (struct gimplify_hasher): Likewise.
18891 (struct gimplify_ctx.temp_htab):
18892 Change type to hash_table. Update dependent calls and types.
18893
18894 * gimple-fold.c: Include gimplify-ctx.h.
18895
18896 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
18897 Change type to hash_table. Update dependent calls and types.
18898 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
18899 avoid potential global name collision.
18900
18901 * gimplify.c: Include gimplify-ctx.h.
18902 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
18903 (htab_t gimplify_ctx::temp_htab):
18904 Update dependent calls and types for new type hash_table.
18905 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
18906 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
18907
18908 * gimplify-ctx.h: New.
18909 (struct gimple_temp_hash_elt): Move from gimplify.c.
18910 (class gimplify_hasher): New.
18911 (struct gimplify_ctx): Move from gimple.h.
18912 (htab_t gimplify_ctx::temp_htab):
18913 Change type to hash_table. Update dependent calls and types.
18914
18915 * graphite-clast-to-gimple.c: Include graphite-htab.h.
18916 (htab_t ivs_params::newivs_index):
18917 Change type to hash_table. Update dependent calls and types.
18918 (htab_t ivs_params::params_index): Likewise.
18919 (htab_t print_generated_program::params_index): Likewise.
18920 (htab_t gloog::newivs_index): Likewise.
18921 (htab_t gloog::params_index): Likewise.
18922
18923 * graphite.c: Include graphite-htab.h.
18924 4htab_t graphite_transform_loops::bb_pbb_mapping):
18925 Change type to hash_table. Update dependent calls and types.
18926
18927 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
18928 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
18929 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
18930
18931 * graphite-dependences.c: Include graphite-htab.h.
18932 (loop_is_parallel_p): Change hash table type of parameter.
18933
18934 * graphite-htab.h: New.
18935 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
18936 (extern find_pbb_via_hash): Move from graphite-poly.h.
18937 (extern loop_is_parallel_p): Move from graphite-poly.h.
18938 (extern get_loop_body_pbbs): Move from graphite-poly.h.
18939
18940 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
18941 (extern loop_is_parallel_p): Move to graphite-htab.h.
18942 (extern get_loop_body_pbbs): Move to graphite-htab.h.
18943
18944 * haifa-sched.c (htab_t delay_htab):
18945 Change type to hash_table. Update dependent calls and types.
18946 (htab_t delay_htab_i2): Likewise.
18947
18948 * ira-color.c (htab_t allocno_hard_regs_htab):
18949 Change type to hash_table. Update dependent calls and types.
18950
18951 * ira-costs.c (htab_t cost_classes_htab):
18952 Change type to hash_table. Update dependent calls and types.
18953
18954 * loop-invariant.c (htab_t merge_identical_invariants::eq):
18955 Change type to hash_table. Update dependent calls and types.
18956
18957 * loop-iv.c (htab_t bivs):
18958 Change type to hash_table. Update dependent calls and types.
18959
18960 * loop-unroll.c (htab_t opt_info::insns_to_split):
18961 Change type to hash_table. Update dependent calls and types.
18962 (htab_t opt_info::insns_with_var_to_expand): Likewise.
18963
18964 * lto-streamer.h (struct string_slot): Move from data-streamer.h
18965 (struct string_slot_hasher): New.
18966 (htab_t output_block::string_hash_table):
18967 Change type to hash_table. Update dependent calls and types.
18968
18969 * lto-streamer-in.c (freeing_string_slot_hasher): New.
18970 (htab_t file_name_hash_table):
18971 Change type to hash_table. Update dependent calls and types.
18972
18973 * lto-streamer-out.c: Update output_block::string_hash_table dependent
18974 calls and types.
18975
18976 * lto-streamer.c (htab_t tree_htab):
18977 Change type to hash_table. Update dependent calls and types.
18978
18979 * omp-low.c: Include gimplify-ctx.h.
18980
18981 * passes.c (htab_t name_to_pass_map):
18982 Change type to hash_table. Update dependent calls and types.
18983 (pass_traverse): Rename to passes_pass_traverse.
18984
18985 * plugin.c (htab_t event_tab):
18986 Change type to hash_table. Update dependent calls and types.
18987
18988 * postreload-gcse.c (htab_t expr_table):
18989 Change type to hash_table. Update dependent calls and types.
18990 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
18991
18992 * sese.c (debug_rename_map_1): Make extern.
18993 (htab_t copy_bb_and_scalar_dependences::rename_map):
18994 Change type to hash_table. Update dependent calls and types.
18995
18996 * sese.h (extern debug_rename_map): Move to .c file.
18997
18998 * store-motion.c (htab_t store_motion_mems_table):
18999 Change type to hash_table. Update dependent calls and types.
19000
19001 * trans-mem.c (htab_t tm_new_mem_hash):
19002 Change type to hash_table. Update dependent calls and types.
19003
19004 * tree-browser.c (htab_t TB_up_ht):
19005 Change type to hash_table. Update dependent calls and types.
19006
19007 * tree-cfg.c (htab_t discriminator_per_locus):
19008 Change type to hash_table. Update dependent calls and types.
19009
19010 * tree-complex.c: Include tree-hasher.h
19011 (htab_t complex_variable_components):
19012 Change type to hash_table. Update dependent calls and types.
19013
19014 * tree-eh.c (htab_t finally_tree):
19015 Change type to hash_table. Update dependent calls and types.
19016
19017 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
19018 struct int_tree_hasher.
19019 (extern int_tree_map_eq): Likewise.
19020 (uid_decl_map_hash): Removed.
19021 (extern decl_tree_map_eq): Likewise.
19022
19023 * tree-hasher.h: New.
19024 (struct int_tree_hasher): New.
19025 (typedef int_tree_htab_type): New.
19026
19027 * tree-inline.c: Include gimplify-ctx.h.
19028
19029 * tree-mudflap.c: Include gimplify-ctx.h.
19030
19031 * tree-parloops.c: Include tree-hasher.h.
19032 (htab_t eliminate_local_variables_stmt::decl_address):
19033 Change type to hash_table. Update dependent calls and types.
19034 (htab_t separate_decls_in_region::decl_copies): Likewise.
19035
19036 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
19037 Change type to hash_table. Update dependent calls and types.
19038
19039 * tree-sra.c (candidates):
19040 Change type to hash_table. Update dependent calls and types.
19041
19042 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
19043 in tree-flow.h.
19044 (int_tree_map_hash): Likewise.
19045
19046 * tree-ssa-dom.c (htab_t avail_exprs):
19047 Change type to hash_table. Update dependent calls and types.
19048
19049 * tree-ssa-live.c (var_map_base_init::tree_to_index):
19050 Change type to hash_table. Update dependent calls and types.
19051
19052 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
19053 Change type to hash_table. Update dependent calls and types.
19054
19055 * tree-ssa-phiopt.c (seen_ssa_names):
19056 Change type to hash_table. Update dependent calls and types.
19057
19058 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
19059 Change type to hash_table. Update dependent calls and types.
19060
19061 * tree-ssa-uncprop.c (equiv):
19062 Change type to hash_table. Update dependent calls and types.
19063
c5a44004
JJ
190642013-04-25 Jakub Jelinek <jakub@redhat.com>
19065
19066 PR rtl-optimization/57003
19067 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
19068 call note_stores with kill_clobbered_value callback again after
19069 killing regs_invalidated_by_call.
19070
09962a4a
JG
190712013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19072
19073 * config/aarch64/aarch64-simd.md
19074 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
19075 (aarch64_simd_bsl<mode>): Likewise.
19076 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
19077
ea28bb0b
MP
190782013-04-25 Marek Polacek <polacek@redhat.com>
19079
19080 PR tree-optimization/57066
3c21604f 19081 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 19082
96659611
JG
190832013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
19084
19085 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
19086
9697e620
JG
190872013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19088
19089 * config/aarch64/aarch64-builtins.c
19090 (aarch64_fold_builtin): New.
19091 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
19092 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
19093 * config/aarch64/aarch64-simd-builtins.def (abs): New.
19094 * config/aarch64/arm_neon.h
19095 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
19096
0ac198d3
JG
190972013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19098 Tejas Belagod <tejas.belagod@arm.com>
19099
19100 * config/aarch64/aarch64-builtins.c
19101 (aarch64_gimple_fold_builtin): New.
19102 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
19103 * config/aarch64/aarch64-simd-builtins.def (addv): New.
19104 * config/aarch64/aarch64-simd.md (addpv4sf): New.
19105 (addvv4sf): Update.
19106 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
19107
58cff58c
N
191082013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19109
df93505e 19110 * config/aarch64/aarch64.md
58cff58c
N
19111 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
19112
7e0228bf
N
191132013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19114
19115 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
19116 (*ngcsi_uxtw): New pattern.
19117
5819f96f 191182013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 19119 Julian Brown <julian@codesourcery.com>
5819f96f
KT
19120
19121 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
19122 (TB_DREG): Add T_V4HF.
19123 (v4hf_UP): New macro.
19124 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 19125 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
19126 Handle initialisation of V4HF. Adjust initialisation of reinterpret
19127 built-ins.
df93505e 19128 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
19129 (arm_vector_mode_supported_p): Handle V4HF.
19130 (arm_mangle_map): Handle V4HFmode.
19131 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
19132 * config/arm/arm_neon_builtins.def: Add entries for
19133 vcvtv4hfv4sf, vcvtv4sfv4hf.
19134 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
19135 (neon_vcvtv4hfv4sf): Likewise.
19136 * config/arm/neon-gen.ml: Handle half-precision floating point
19137 features.
19138 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
19139 * config/arm/arm_neon.h: Regenerate.
19140 * config/arm/neon.ml (type elts): Add F16.
19141 (type vectype): Add T_float16x4, T_floatHF.
19142 (type vecmode): Add V4HF.
19143 (type features): Add Requires_FP_bit feature.
19144 (elt_width): Handle F16.
19145 (elt_class): Likewise.
19146 (elt_of_class_width): Likewise.
19147 (mode_of_elt): Refactor.
19148 (type_for_elt): Handle F16, fix error messages.
19149 (vectype_size): Handle T_float16x4.
19150 (vcvt_sh): New function.
19151 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
19152 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
19153 (string_of_mode): Handle V4HF.
19154 * doc/arm-neon-intrinsics.texi: Regenerate.
19155
1ef395e4
JG
191562013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19157
19158 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
19159 format specifier in 'X' case.
19160
41c34e94
AM
191612013-04-25 Alan Modra <amodra@gmail.com>
19162
19163 PR target/57052
19164 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
19165 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
19166 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
19167 Repeat for many other rotate/shift and mask patterns using subregs.
19168 Name lshiftrt insns.
19169 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
19170 on WORDS_BIG_ENDIAN.
19171
b9a7eb5d
AM
191722013-04-25 Alan Modra <amodra@gmail.com>
19173
19174 * config.gcc: Support little-endian powerpc-linux targets.
19175 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
19176 (LINK_OS_LINUX_SPEC): Define.
19177 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
19178 Preserve MASK_LITTLE_ENDIAN.
19179 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
19180 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
19181 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
19182 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
19183 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
19184 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
19185 Correct fp word order for little-endian. Don't shift toc entries
19186 smaller than a word for little-endian.
19187 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
19188 (bswapdi2 splits): Correct low-part subreg for little-endian.
19189 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
19190 low/high where such is correct only for be.
19191 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
19192 little-endian for -mcall-aixdesc.
19193
87f73374
AM
191942013-04-25 Alan Modra <amodra@gmail.com>
19195
19196 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19197 replace_equiv_address_nv.
19198
cabf91cd
AM
191992013-04-25 Alan Modra <amodra@gmail.com>
19200
19201 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
19202
0ae24cc8
VM
192032013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19204
19205 Revert:
19206 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19207 * rtl.h (struct rtx_def): ...
cabf91cd 19208
77bce07c
VM
192092013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19210
19211 PR rtl-optimizations/57046
19212 * lra-constraints (split_reg): Set up lra_risky_transformations_p
19213 for multi-reg splits.
19214
0db63e7f
L
192152013-04-24 H.J. Lu <hongjiu.lu@intel.com>
19216
19217 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
19218
3362b6b6
SA
192192013-04-24 Sterling Augustine <saugustine@google.com>
19220
19221 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
19222 (comp_dir_string, debug_str_dwo_section): New.
19223 (DEBUG_STR_DWO_SECTION): Rename to ...
19224 (DEBUG_DWO_STR_SECTION): ... this.
19225 (DEBUG_NORM_STR_SECTION): Delete.
19226 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
19227 (DEBUG_STR_DWO_SECTION_FLAGS): New.
19228 (find_AT_string): Move most logic to ...
19229 (find_AT_string_in_table): ... here. New.
19230 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
19231 add_skeleton_AT_string. Delete logic.
19232 (output_skeleton_debug_sections): Remove call to
19233 add_top_level_skeleton_die_attrs.
19234 (add_comp_dir_attribute): Move logic to comp_dir_string.
19235 (dwarf2out_init): Initialize debug_str_dwo_section.
19236 (output_indirect_string): Call find_string_form.
19237 (output_indirect_strings): Rewrite.
19238 (prune_unused_types): Empty skeleton_debug_str_hash.
19239 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
19240 (dwarf2out_finish): Call output_indirect_strings.
19241
e93e18e9
PC
192422013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19243
19244 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
19245
f6ce35ac
VM
192462013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19247
cabf91cd 19248 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
19249 (LRA_SUBREG_P): New macro.
19250 * recog.c (register_operand): Check LRA_SUBREG_P.
19251 * lra.c (lra): Add note at the end of RTL code. Align non-empty
19252 stack frame.
19253 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
19254 (lra_final_code_change): Skip subreg change for operators.
19255 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
19256 if there are no operand changes.
19257 * lra-constraints.c (curr_insn_set): New.
19258 (match_reload): Set LRA_SUBREG_P.
19259 (emit_spill_move): Ditto.
19260 (check_and_process_move): Use curr_insn_set. Process only single
19261 set insns. Don't initialize sec_mem_p and change_p.
19262 (simplify_operand_subreg): Use LRA_SUBREG_P.
19263 (reg_in_class_p): New function.
19264 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
19265 of #ifdef. Add code to remove cycling.
19266 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
19267 non-null disp. Reload inner instead of disp when base and index
19268 are null. Try to put lo_sum into register.
19269 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 19270 (check_and_process_move): Move code for move cost check to
f6ce35ac 19271 simple_move_p. Remove equiv_substitution.
cabf91cd 19272 (simple_move_p): New function.
f6ce35ac
VM
19273 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
19274 curr_insn_set. Call check_and_process_move only for single set
19275 insns. Use the new function. Move call of check_and_process_move
19276 after operand equiv substitution and address process.
19277
38047d90
JG
192782013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
19279
19280 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
19281 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
19282 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
19283
13f39b2e
PC
192842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19285
19286 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
19287
97c116dc
MP
192882013-04-24 Marek Polacek <polacek@redhat.com>
19289
19290 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
19291 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
19292 (select_loops_exit_conditions): Likewise.
19293 (number_of_iterations_for_all_loops): Likewise.
19294 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
19295 (scev_analysis): Likewise.
19296
83082391 192972013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 19298 Chao-ying Fu <fu@mips.com>
83082391 19299
cabf91cd
AM
19300 * config/mips/micromips.md (jraddiusp): New pattern.
19301 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
19302 instruction if possible.
83082391 19303
19e34aa2
AM
193042013-04-24 Alan Modra <amodra@gmail.com>
19305
19306 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
19307
fdb6603c
JB
193082013-04-24 Julian Brown <julian@codesourcery.com>
19309 Chung-Lin Tang <cltang@codesourcery.com>
19310
19311 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
19312 dependency behavior in enumeration type DIE generation. Add TODO note
19313 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 19314
bf190e8d
LC
193152013-04-23 Lawrence Crowl <crowl@google.com>
19316
19317 * Makefile.in: Update as needed below.
19318
19319 * hash-table.h (class hash_table):
19320 Correct many methods with parameter types compare_type to the correct
19321 value_type. (Correct code was unlikely to notice the change.)
19322 (hash_table::elements_with_deleted) New.
19323 (class hashtable::iterator): New.
19324 (hashtable::begin()): New.
19325 (hashtable::end()): New.
19326 (FOR_EACH_HASH_TABLE_ELEMENT): New.
19327
19328 * statistics.c (statistics_hashes):
19329 Change type to hash_table. Update dependent calls and types.
19330
19331 * tree-into-ssa.c (var_infos):
19332 Change type to hash_table. Update dependent calls and types.
19333
19334 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
19335 Change type to hash_table. Update dependent calls and types.
19336
19337 * tree-ssa-loop-im.c (struct mem_ref.refs):
19338 Change type to hash_table. Update dependent calls and types.
19339
19340 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
19341 Change type to hash_table. Update dependent calls and types.
19342
19343 * tree-ssa-sccvn.c (vn_tables_s::nary):
19344 Change type to hash_table. Update dependent calls and types.
19345 (vn_tables_s::phis): Likewise.
19346 (vn_tables_s::references): Likewise.
19347
19348 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
19349 (vn_reference_eq): Update parameter and return types.
19350
19351 * tree-ssa-structalias.c (pointer_equiv_class_table):
19352 Change type to hash_table. Update dependent calls and types.
19353 (location_equiv_class_table): Likewise.
19354
19355 * tree-vect-data-refs.c: Consequential changes for making
19356 peeling a hash_table.
19357
19358 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
19359 (destroy_loop_vec_info): Dependent hash_table update.
19360
19361 * tree-vectorizer.h (peeling_htab):
19362 Change type to hash_table. Update dependent calls and types.
19363
d70a81dd
SC
193642013-04-23 Shiva Chen <shiva0217@gmail.com>
19365
cabf91cd
AM
19366 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
19367 to check the register content is equal or not.
19368 * lra-constraints.c (match_reload): Use lra_assign_reg_val
19369 to assign register content record.
19370 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 19371 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
19372 * lra-int.h (struct lra_reg): Add offset member.
19373 (lra_reg_val_equal_p): New static inline function.
19374 (lra_update_reg_val_offset): New static inline function.
19375 (lra_assign_reg_val): New static inline function.
19376 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
19377 to assign register content record.
19378 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 19379
b894a1f3
CM
193802013-04-23 Catherine Moore <clm@codesourcery.com>
19381
19382 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
19383 operands. Record compression.
19384
ecd14de9
XDL
193852013-04-23 Xinliang David Li <davidxl@google.com>
19386
19387 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
19388
92e776e9
RB
193892013-04-23 Richard Biener <rguenther@suse.de>
19390
19391 PR middle-end/57036
19392 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
19393 parameter, only add abnormal goto edges from the copied body
19394 if the call could perform abnormal gotos.
19395 (copy_cfg_body): Adjust.
19396
a15ee567
SN
193972013-04-23 Sofiane Naci <sofiane.naci@arm.com>
19398
19399 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
19400
08c52234
AS
194012013-04-23 Andreas Schwab <schwab@linux-m68k.org>
19402
19403 * coretypes.h (gimple_stmt_iterator): Add struct to make
19404 compatible with C.
19405
999c1171
RB
194062013-04-23 Richard Biener <rguenther@suse.de>
19407
19408 PR tree-optimization/57026
19409 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
19410 from SSA names occuring in abnormal PHI nodes.
19411
53669259
AK
194122013-04-22 Andi Kleen <ak@linux.intel.com>
19413
19414 * lto/lto.c (print_lto_report_1): Fix LTO report names.
19415
1a0ad150
AK
194162013-04-22 Andi Kleen <ak@linux.intel.com>
19417
19418 * lto/lto.c (print_lto_report_1): Declare early.
19419 (read_cgraph_and_symbols): Call print_lto_report_1 early.
19420
057f8f20
AK
194212013-04-22 Andi Kleen <ak@linux.intel.com>
19422
19423 * common.opt (-flto-report-wpa): Add.
19424 * doc/invoke.texi (-flto-report-wpa): Add.
19425 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
19426 (lto_main): dito.
19427
473b1e05
XDL
194282013-04-22 Xinliang David Li <davidxl@google.com>
19429
19430 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
19431 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
19432 * Makefile.in: New dependency
19433
cabf91cd 19434 David Daney <ddaney.cavm@gmail.com>
b1485a33 19435
cabf91cd
AM
19436 * configure.ac (gcc_cv_as_micromips_support): Use the
19437 --fatal-warnings option.
19438 * configure: Regenerate.
b1485a33 19439
829d0168
MP
194402013-04-22 Marek Polacek <polacek@redhat.com>
19441
19442 PR sanitizer/56990
19443 * tsan.c (instrument_expr): Don't instrument expression
19444 in case its size is zero.
19445
6d9b7208
UB
194462013-04-22 Uros Bizjak <ubizjak@gmail.com>
19447
19448 PR target/57032
19449 Revert:
19450 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
19451
19452 * config/alpha/alpha.c (TARGET_LRA_P): New define.
19453
ea679d55
JG
194542013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19455
19456 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
19457 (gimple_stmt_iterator): New typedef.
19458 * gimple.h (gimple_stmt_iterator): Rename to...
19459 (gimple_stmt_iterator_d): ... This.
19460 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
19461 trees be valid for GIMPLE and GENERIC.
19462 (TARGET_GIMPLE_FOLD_BUILTIN): New.
19463 * gimple-fold.c (gimple_fold_call): Call target hook
19464 gimple_fold_builtin.
19465 * hooks.c (hook_bool_gsiptr_false): New.
19466 * hooks.h (hook_bool_gsiptr_false): New.
19467 * target.def (fold_stmt): New.
19468 * doc/tm.texi: Regenerate.
19469
88a581da
VM
194702013-04-22 Vladimir Makarov <vmakarov@redhat.com>
19471
19472 PR target/57018
19473 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
19474 a set sp if no stack realignment.
19475
92be22dc
NC
194762013-04-22 Nick Clifton <nickc@redhat.com>
19477
19478 * config.gcc (tilegx-linux): Extend extra_objs rather than
19479 overwriting it.
19480 (tilepro-linux): Likewise.
19481
0ddec79f
JG
194822013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19483
19484 * config/aarch64/aarch64-builtins.c
19485 (CF): Remove.
19486 (CF0, CF1, CF2, CF3, CF4, CF10): New.
19487 (VAR<1-12>): Add MAP parameter.
19488 (BUILTIN_*): Likewise.
19489 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
19490 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
19491 (aarch64_ushl_n<mode>): Likewise.
19492 (aarch64_sshr_n<mode>): Likewise.
19493 (aarch64_ushr_n<mode>): Likewise.
19494 (aarch64_<maxmin><mode>): Likewise.
19495 (aarch64_sqrt<mode>): Likewise.
19496 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
19497 (vshr<q>_n_*): Likewise.
19498
0050faf8
JG
194992013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19500
19501 * config/aarch64/aarch64-builtins.c
19502 (aarch64_simd_builtin_type_mode): Handle SF types.
19503 (sf_UP): Define.
19504 (BUILTIN_GPF): Define.
19505 (aarch64_init_simd_builtins): Handle SF types.
19506 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
19507 (frecps): Likewise.
19508 (frecpx): Likewise.
19509 * config/aarch64/aarch64-simd.md
19510 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
19511 (aarch64_frecpe<mode>): New.
19512 (aarch64_frecps<mode>): Likewise.
19513 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
19514 (v8type): Add frecp<esx>.
19515 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
19516 (aarch64_frecps<mode>): Likewise.
19517 * config/aarch64/iterators.md (FRECP): New.
19518 (frecp_suffix): Likewise.
19519 * config/aarch64/arm_neon.h
19520 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
19521
0fad3dbc 195222013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
19523
19524 PR target/56995
19525 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
19526 (REG_CLASS_NAMES): Idem.
19527 (REG_CLASS_CONTENTS): Idem.
19528 (REGCLASS_HAS_FP_REG): Idem.
19529 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
19530 (sh_conditional_register_usage): Idem.
19531
3e8a33f9
JL
195322013-04-21 Jeff Law <law@redhat.com>
19533
19534 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
19535 (ssa_forward_propagate_and_combine): Use it.
19536
f38e1b0a
VM
195372013-04-19 Vladimir Makarov <vmakarov@redhat.com>
19538
19539 * lra.c: Update the flow chart diagram.
19540
682303da
VM
195412013-04-19 Vladimir Makarov <vmakarov@redhat.com>
19542
19543 PR rtl-optimization/56847
19544 * lra-constraints.c (process_alt_operands): Discourage alternative
19545 with non-matche doffsettable memory constraint fro memory with
19546 known offset.
19547
f6b64c35
RB
195482013-04-19 Richard Biener <rguenther@suse.de>
19549
19550 PR tree-optimization/56982
19551 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
19552 function.
19553 * gimplify.c (gimplify_call_expr): Notice special calls.
19554 (gimplify_modify_expr): Likewise.
19555 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
19556 abnormal control flow receivers.
19557 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
19558 in the same way as cfun->has_nonlocal_labels.
19559 (gimple_purge_dead_abnormal_call_edges): Likewise.
19560 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
19561 receivers start a basic-block.
19562
01d8bf07
RB
195632013-04-19 Richard Biener <rguenther@suse.de>
19564
19565 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
19566 member ...
19567 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
19568 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
19569 (SLP_TREE_LOAD_PERMUTATION): Add.
19570 (vect_transform_slp_perm_load): Adjust prototype.
19571 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
19572 (vect_free_slp_instance): Likewise.
19573 (vect_create_new_slp_node): Likewise.
19574 (vect_supported_slp_permutation_p): Remove.
19575 (vect_slp_rearrange_stmts): Adjust.
19576 (vect_supported_load_permutation_p): Likewise. Inline
19577 vect_supported_slp_permutation_p here.
19578 (vect_analyze_slp_instance): Compute load permutations per
19579 slp node instead of per instance.
19580 (vect_get_slp_defs): Adjust.
19581 (vect_transform_slp_perm_load): Likewise.
19582 (vect_schedule_slp_instance): Remove redundant code.
19583 (vect_schedule_slp): Remove hack for PR56270, add it ...
19584 * tree-vect-stmts.c (vectorizable_load): ... here, do not
19585 CSE loads for SLP. Adjust.
19586
ede22fc3
GY
195872013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
19588
19589 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
19590 spelling in two comments.
19591
67bc84fb
GY
195922013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
19593
19594 PR target/56797
19595 * config/arm/arm.c (load_multiple_sequence): Require SP
19596 as base register for loads if SP is in the register list.
19597
e248d83f
MJ
195982013-04-19 Martin Jambor <mjambor@suse.cz>
19599
19600 PR tree-optimization/56718
19601 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
19602 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
19603 and made public. Adjusted all callers.
19604 (ipa_intraprocedural_devirtualization): New function.
19605 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
19606 (ipa_intraprocedural_devirtualization): Likewise.
19607 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
19608
4891e8f8
RB
196092013-04-19 Richard Biener <rguenther@suse.de>
19610
19611 PR tree-optimization/57000
19612 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
19613
dad89f7c
TG
196142013-04-19 Terry Guo <terry.guo@arm.com>
19615
19616 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
19617 Replace with ...
19618 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
19619 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
19620 (cortex_m4_fmacs): Use new reservations.
19621 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
19622
72ea0d47
VM
196232013-04-18 Vladimir Makarov <vmakarov@redhat.com>
19624
f1e6512c 19625 PR rtl-optimization/56999
72ea0d47
VM
19626 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
19627 related code.
19628 (lra_coalesce): Remove split_origin_bitmap and related code.
19629 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
19630 ranges if necessary.
19631
780a5b71
UB
196322013-04-18 Uros Bizjak <ubizjak@gmail.com>
19633
19634 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
19635 New array.
19636 (ix86_expand_call): Remove clobbered_registers array and use
19637 x86_64_ms_sysv_extra_clobbered_registers instead.
19638 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
19639 Declare here.
19640 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
19641 predicate.
19642 * config/i386/i386.md (*call_rex64_ms_sysv): Use
19643 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
19644 (*call_value_rex64_ms_sysv): Ditto.
19645
6f5a366a
CC
196462013-04-18 Cary Coutant <ccoutant@google.com>
19647
19648 * dwarf2out.c (output_pubnames): Check die_perennial_p of
19649 parent instead of die_mark.
19650
475b8f37
DN
196512013-04-18 Diego Novillo <dnovillo@google.com>
19652
19653 * gimple.c (create_gimple_tmp): New.
19654 (get_expr_type): New.
19655 (build_assign): New.
19656 (build_type_cast): New.
19657 * gimple.h (enum ssa_mode): Define.
19658 (gimple_seq_set_location): New.
19659 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 19660 to use build_assign and build_type_cast.
475b8f37 19661
08940f33
RB
196622013-04-18 Richard Biener <rguenther@suse.de>
19663
19664 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19665 handle negative step. Remove redundant checks.
19666 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
19667 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
19668 for negative step and grouped loads fail to vectorize.
19669
0e0f87d4
SB
196702013-04-18 Steven Bosscher <steven@gcc.gnu.org>
19671
19672 * emit-rtl.c (reset_insn_used_flags): New function.
19673 (reset_all_used_flags): Use it.
19674 (verify_insn_sharing): New function.
19675 (verify_rtl_sharing): Fix verification for SEQUENCEs.
19676
4c445590
JJ
196772013-04-18 Jakub Jelinek <jakub@redhat.com>
19678
19679 PR tree-optimization/56984
19680 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
19681 and (x >> M) >= N don't register any assertion if N << M is the
19682 minimum value.
19683
6873ecab
SB
196842013-04-18 Steven Bosscher <steven@gcc.gnu.org>
19685
19686 * lower-subreg.c (resolve_simple_move): If called self-recursive,
19687 do not delete_insn insns that have not yet been emitted, only
19688 unlink them with remove_insn.
19689 * df-scan.c (df_insn_delete): Revert r197492.
19690
3ccb989e
SB
196912013-04-17 Steven Bosscher <steven@gcc.gnu.org>
19692
19693 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
19694 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
19695
196962013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
19697
19698 * config/arm/arm.md (movsicc_insn): Convert define_insn into
19699 define_insn_and_split.
19700 (and_scc,ior_scc,negscc): Likewise.
19701 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
19702
3ccb989e 197032013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
19704
19705 * config/arm/arm.c (use_return_insn): Return 0 for targets that
19706 can benefit from using a sequence of LDRD instructions in epilogue
19707 instead of a single LDM instruction.
19708
6d10a203
MLI
197092013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
19710
19711 PR 45688
19712 * doc/extend.texi: Fix typo.
19713
6983e6b5
RB
197142013-04-17 Richard Biener <rguenther@suse.de>
19715
19716 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
19717 (vect_build_slp_tree): ... here.
19718 (vect_build_slp_tree_1): Compute which stmts of the SLP group
19719 match. Remove special-casing of mismatched complex loads.
19720 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
19721 re-try the match with swapped commutative operands.
19722 (vect_supported_load_permutation_p): Remove special-casing of
19723 mismatched complex loads.
19724 (vect_analyze_slp_instance): Adjust.
19725
ef23e6a2
RB
197262013-04-17 Richard Biener <rguenther@suse.de>
19727
19728 PR rtl-optimization/56921
19729 * cfgloop.h (struct loop): Add simple_loop_desc member.
19730 (struct niter_desc): Mark with GTY(()).
19731 (simple_loop_desc): Do not use aux field but simple_loop_desc.
19732 * loop-iv.c (get_simple_loop_desc): Likewise.
19733 (free_simple_loop_desc): Likewise.
19734
19735 Revert
19736 2013-04-16 Richard Biener <rguenther@suse.de>
19737
19738 PR rtl-optimization/56921
19739 * loop-init.c (pass_rtl_move_loop_invariants): Add
19740 TODO_do_not_ggc_collect to todo_flags_finish.
19741 (pass_rtl_unswitch): Same.
19742 (pass_rtl_unroll_and_peel_loops): Same.
19743 (pass_rtl_doloop): Same.
19744
fc6f94f5
EB
197452013-04-17 Eric Botcazou <ebotcazou@adacore.com>
19746
19747 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
19748 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
19749 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
19750 references.
19751 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
19752 * tree-streamer.c (record_common_node): Adjust reference in comment.
19753
10a88311
TG
197542013-04-17 Terry Guo <terry.guo@arm.com>
19755
19756 * config/arm/cortex-m4.md: Add a new bypass.
19757
6d9b7208 197582013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
19759
19760 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
19761 New pattern.
19762 (*subs_<optab><mode>_multp2): New pattern.
19763 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
19764 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
19765
6d9b7208 197662013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
19767
19768 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
19769 (*subs_mul_imm_<mode>): New pattern.
19770
18a6701e
DE
197712013-04-16 David Edelsohn <dje.gcc@gmail.com>
19772
19773 PR target/56948
19774 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
19775 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
19776 (vsx_movti_32bit): Change j->wa to O->wa.
19777
07c37b2f
RB
197782013-04-16 Richard Biener <rguenther@suse.de>
19779
19780 PR rtl-optimization/56921
19781 * loop-init.c (pass_rtl_move_loop_invariants): Add
19782 TODO_do_not_ggc_collect to todo_flags_finish.
19783 (pass_rtl_unswitch): Same.
19784 (pass_rtl_unroll_and_peel_loops): Same.
19785 (pass_rtl_doloop): Same.
19786
0e0f87d4 197872013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
19788
19789 * config/arm/arm.c (emit_multi_reg_push): New declaration
19790 for an existing function.
19791 (arm_emit_strd_push): New function.
19792 (arm_expand_prologue): Used here.
19793 (arm_emit_ldrd_pop): New function.
19794 (arm_expand_epilogue): Used here.
19795 (arm_get_frame_offsets): Update condition.
19796 (arm_emit_multi_reg_pop): Add a special case for load of a single
19797 register with writeback.
19798
5e8e2af4
UB
197992013-04-16 Uros Bizjak <ubizjak@gmail.com>
19800
19801 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
19802 description.
19803
9fd9ccf7
RB
198042013-04-16 Richard Biener <rguenther@suse.de>
19805
19806 PR tree-optimization/56756
19807 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
19808 (first_mem_ref_loc): New.
19809 (execute_sm): Place the load temporarily before a previous
19810 access instead of in the latch edge to ensure its SSA dependencies
19811 are defined at points dominating the load.
19812
96fba521
SB
198132013-04-16 Steven Bosscher <steven@gcc.gnu.org>
19814
4c8af858
SB
19815 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
19816 correct fix by moving header and footer insn to the footer of
19817 the merged basic block. Clear BB_END of the merged-away block.
19818
96fba521
SB
19819 PR middle-end/43631
19820 * emit-rtl.c (make_note_raw): New function.
19821 (link_insn_into_chain): New static inline function.
19822 (add_insn): Use it.
19823 (add_insn_before, add_insn_after): Factor insn chain linking code...
19824 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
19825 using link_insn_into_chain.
19826 (note_outside_basic_block_p): New helper function for emit_note_after
19827 and emit_note_before.
19828 (emit_note_after): Use nobb variant of add_insn_after if the note
19829 should not be contained in a basic block.
19830 (emit_note_before): Use nobb variant of add_insn_before if the note
19831 should not be contained in a basic block.
19832 (emit_note_copy): Use make_note_raw.
19833 (emit_note): Likewise.
19834 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
19835 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
19836 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
19837 the moved barrier the tail of the basic block it follows.
19838 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
19839
7b8265ba
JJ
198402013-04-15 Jakub Jelinek <jakub@redhat.com>
19841
19842 PR tree-optimization/56962
19843 * gimple-ssa-strength-reduction.c (record_increment): Only set
19844 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
19845 either rhs1 or rhs2 is equal to c->base_expr.
19846
5185d248
RB
198472013-04-15 Richard Biener <rguenther@suse.de>
19848
19849 PR tree-optimization/56933
19850 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
19851 member.
19852 (GROUP_READ_WRITE_DEPENDENCE): Remove.
19853 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
19854 * tree-vect-data-refs.c (vect_analyze_group_access): Move
19855 dependence check ...
19856 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
19857 ... here.
19858 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
19859 GROUP_READ_WRITE_DEPENDENCE.
19860
a24243a0
AK
198612013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19862
19863 * emit-rtl.c (reset_all_used_flags): New function.
19864 (verify_rtl_sharing): Call reset_all_used_flags before and after
19865 performing the checks.
19866
1c50eada
KT
198672013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19868
19869 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
19870 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
19871 * config/arm/constraints.md (De): New constraint.
19872 * config/arm/neon.md (anddi3_neon): Delete.
19873 (neon_vand<mode>): Expand to standard anddi3 pattern.
19874 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
19875 Move earlier in the file.
19876 (neon_inv_logic_op2): Likewise.
19877 (arm_anddi_operand_neon): New predicate.
19878
e927b6ad
RO
198792013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19880
19881 * configure.ac (gcc_cv_ld_as_needed): Set
19882 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
19883 Use -z ignore, -z record on *-*-solaris2*.
19884 (HAVE_LD_AS_NEEDED): Update comment.
19885 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
19886 * configure: Regenerate.
19887 * config.in: Regenerate.
19888 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
19889 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
19890 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
19891 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
19892 equivalents. Fix markup.
19893 * doc/tm.texi: Regenerate.
19894
e0ea8797
AH
198952013-04-15 Andrew Hsieh <andrewhsieh.google.com>
19896
19897 * config/i386/i386.opt: New option mstack-protector-guard=.
19898 * config/i386/i386-opts.h: Add enum stack_protector_guard.
19899 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
19900 TARGET_SSP_TLS_GUARD.
19901 * config/i386/i386.c (ix86_option_override_internal): Set
19902 ix86_stack_protector_guard.
19903 * config/i386/i386.md (stack_protect_set): Enable for
19904 TARGET_SSP_TLS_GUARD only.
19905 (stack_protect_set_<mode>): Ditto.
19906 (stack_protect_test): Ditto.
19907 (stack_protect_test_<mode>): Ditto.
19908 * doc/invoke.texi (i386 Option): Document.
19909
811b72f9
EB
199102013-04-15 Eric Botcazou <ebotcazou@adacore.com>
19911
19912 PR target/56890
19913 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
19914 (S_MODES): Set H_MODE bit.
19915 (SF_MODES): Set only S_MODE and SF_MODE bits.
19916 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
19917 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
19918 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
19919 <MODE_FLOAT>: Likewise.
19920
5529fdd6
JY
199212013-04-15 Joey Ye <joey.ye@arm.com>
19922
19923 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
19924
517b1da2
JY
199252013-04-15 Joey Ye <joey.ye@arm.com>
19926
19927 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
19928 for real far jump.
19929 (thumb_far_jump_used_p): Count instruction size and set
19930 far_jump_used.
19931
01007ae0
EB
199322013-04-14 Eric Botcazou <ebotcazou@adacore.com>
19933
19934 * reorg.c (fill_simple_delay_slots): Reindent block of code.
19935 * resource.c (mark_target_live_regs): Reformat conditional block.
19936
c46f6580
SB
199372013-04-13 Steven Bosscher <steven@gcc.gnu.org>
19938
19939 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
19940 notes, they are emitted only just before final.
19941 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
19942
1f397f45
SB
199432013-04-13 Steven Bosscher <steven@gcc.gnu.org>
19944
19945 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
19946 * cfgrtl.c (delete_insn): Call it here instead.
19947 * lra-spills.c (lra_final_code_change): Use delete_insn.
19948 * haifa-sched.c (sched_remove_insn): Likewise.
19949 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
19950 returning to the nop pool.
19951 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
19952 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
19953
58a51369
SB
199542013-04-12 Steven Bosscher <steven@gcc.gnu.org>
19955
19956 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
19957 * doc/tm.texi: Regenerated.
19958
33159866
UB
199592013-04-12 Uros Bizjak <ubizjak@gmail.com>
19960
19961 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
19962 QImode checks.
19963
226e378f
SB
199642013-04-12 Steven Bosscher <steven@gcc.gnu.org>
19965
19966 * df-core.c (df_find_def): Compare register numbers.
19967 (df_find_use): Likewise.
19968
fafb9b18
VM
199692013-04-12 Vladimir Makarov <vmakarov@redhat.com>
19970
19971 PR target/56903
19972 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
19973 lra_in_progress for return.
19974
9a946fd6
GY
199752013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
19976
19977 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
19978 define_insn into define_insn_and_split and emit movsicc patterns.
19979
41b83758
GY
199802013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
19981
19982 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
19983
d3afd9aa
RB
199842013-04-12 Richard Biener <rguenther@suse.de>
19985
19986 * tree-pass.h (TODO_do_not_ggc_collect): New.
19987 * passes.c (execute_one_ipa_transform_pass): Honor
19988 TODO_do_not_ggc_collect.
19989 (execute_one_pass): Likewise.
19990
19991 Revert
19992 2013-04-10 Richard Biener <rguenther@suse.de>
19993
19994 * passes.c (init_optimization_passes): Remove reload pass.
19995 * ira.c (do_reload): Merge into ...
19996 (ira): ... this.
19997 (rest_of_handle_reload): Remove.
19998 (pass_reload): Likewise.
19999 * config/i386/i386.c (ix86_option_override): Refer to ira instead
20000 of reload for vzeroupper pass placement.
20001
06f9b387
JJ
200022013-04-12 Jakub Jelinek <jakub@redhat.com>
20003
20004 PR tree-optimization/56918
20005 PR tree-optimization/56920
20006 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
20007 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
20008 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
20009 use wide_mul_with_sign method.
20010
953094d2
RB
200112013-04-12 Richard Biener <rguenther@suse.de>
20012
20013 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
20014 not be considered a gimple constant.
20015
bb506982
MG
200162013-04-12 Marc Glisse <marc.glisse@inria.fr>
20017
20018 * fold-const.c (const_binop): Handle vector shifts by a scalar.
20019 (fold_binary_loc): Call const_binop also for mixed vector-scalar
20020 operations.
20021
4b84d650
JJ
200222013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
20023 Jakub Jelinek <jakub@redhat.com>
20024
20025 * opts.c: Include diagnostic-color.h.
20026 (common_handle_option): Handle OPT_fdiagnostics_color_.
20027 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
20028 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
20029 (diagnostic-color.o): New.
20030 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
20031 (diagnostic_color_rule): New enum.
20032 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
20033 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
20034 the location string.
20035 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
20036 either NULL, or color kind.
20037 * diagnostic-color.c: New file.
20038 * diagnostic-color.h: New file.
20039 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
20040 arguments.
20041 * doc/invoke.texi (-fdiagnostics-color): Document.
20042 * pretty-print.h (pp_show_color): Define.
20043 (struct pretty_print_info): Add show_color field.
20044 * diagnostic.c: Include diagnostic-color.h.
20045 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
20046 macros. Colorize error:, warning: etc. strings and also the location
20047 string.
20048 (diagnostic_show_locus): Colorize the caret line.
20049 * pretty-print.c: Include diagnostic-color.h.
20050 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
20051 inside of %< %> quotes or quoted through q format modifier.
20052
067a1e71
AK
200532013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20054
33159866 20055 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 20056
33159866 200572013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
20058
20059 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
20060 code in CC_NZ mode.
20061 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
20062 pattern.
20063
7b55f98f
MP
200642013-04-11 Marek Polacek <polacek@redhat.com>
20065
20066 PR tree-optimization/48184
33159866 20067 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 20068
966b587e
EB
200692013-04-11 Eric Botcazou <ebotcazou@adacore.com>
20070
20071 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
20072 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
20073 (skip_simple_arithmetic): Tidy up.
20074 * tree.h (skip_simple_constant_arithmetic): Declare.
20075
33159866 200762013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
20077
20078 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
20079
1d42c1ec
RB
200802013-04-11 Richard Biener <rguenther@suse.de>
20081
20082 * tree-vect-loop.c (get_initial_def_for_induction): Properly
20083 generate vector constants.
20084
4ba5ea11
RB
200852013-04-11 Richard Biener <rguenther@suse.de>
20086
20087 PR tree-optimization/56878
20088 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
20089 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
20090 New function.
20091 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20092 Prefer to align the DR with the most invariant base address.
20093
f0defe58
SKS
200942013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20095
20096 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
20097 comment.
20098
d07458be
JG
200992013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20100
20101 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
20102 floating-point vector comparisons against 0.
20103
146b8692
JJ
201042013-04-11 Jakub Jelinek <jakub@redhat.com>
20105
20106 PR tree-optimization/56899
20107 * fold-const.c (extract_muldiv_1): Apply distributive law
20108 only if TYPE_OVERFLOW_WRAPS (ctype).
20109
b8578ff7
BC
201102013-04-11 Bin Cheng <bin.cheng@arm.com>
20111
20112 PR target/56124
20113 * ira-costs.c (scan_one_insn): Check whether the source rtx of
20114 loading has side effect.
20115
0ea8a6f9
SB
201162013-04-10 Steven Bosscher <steven@gcc.gnu.org>
20117
20118 * config/sparc/sparc.c: Include tree-pass.h.
20119 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
20120 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
20121 head of file. Change return type. Split off gate function.
20122 (sparc_gate_work_around_errata): New function.
20123 (pass_work_around_errata): New pass definition.
20124 (insert_pass_work_around_errata) New pass insert definition to
20125 insert pass_work_around_errata just after delayed-branch scheduling.
20126 (sparc_option_override): Insert the pass.
20127 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
20128
42e37616
DM
201292013-04-10 David S. Miller <davem@davemloft.net>
20130
89deeb3b
DM
20131 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
20132 or -mcpu=hypersparc.
20133
42e37616
DM
20134 * target.def (cstore_mode): New hook.
20135 * target.h: Include insn-codes.h
20136 * targhooks.c: Likewise.
20137 (default_cstore_mode): New function.
20138 * targhooks.h: Declare it.
20139 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
20140 * doc/tm.texi: Rebuild.
20141 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
20142 target hook, rather than inspecting the insn_data.
20143 * config/sparc/sparc.c (sparc_cstore_mode): New function.
20144 (TARGET_CSTORE_MODE): Redefine.
20145 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
20146 result patterns.
20147 * config/sparc/predicates.md (cstore_result_operand): New special
20148 predicate.
20149 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
20150 Use it for operand 0.
20151 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
20152 (*snesi_special): Likewise.
20153 (*snesi_zero): Likewise.
20154 (*seqsi_zero): Likewise.
20155 (*sltu_insn): Likewise.
20156 (*sgeu_insn): Likewise.
20157 (*seqdi_special): Make operand 0 and comparison operation be of
20158 DImode.
20159 (*snedi_special): Likewise.
20160 (*snedi_special_vis3): Likewise.
20161 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
20162 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
20163 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
20164 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
20165 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
20166 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
20167 (*sltu_extend_sp64): Likewise.
20168 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
20169 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
20170 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
20171 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
20172 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
20173
95ca411e
YZ
201742013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
20175
20176 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
20177 (aarch64_start_file): Use the new function.
20178
6782438d 201792013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 20180 Jason Merrill <jason@redhat.com>
6782438d
SKS
20181
20182 * common.opt: Add -gdwarf.
20183 * opts.c (common_handle_option): Handle it.
20184 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
20185
bb313b93
RB
201862013-04-10 Richard Biener <rguenther@suse.de>
20187
20188 * passes.c (execute_todo): Do not call ggc_collect conditional here.
20189 (execute_one_ipa_transform_pass): But unconditionally here.
20190 (execute_one_pass): And here.
20191 (init_optimization_passes): Remove reload pass.
20192 * tree-pass.h (TODO_ggc_collect): Remove.
20193 (pass_reload): Likewise.
20194 * ira.c (do_reload): Merge into ...
20195 (ira): ... this.
20196 (rest_of_handle_reload): Remove.
20197 (pass_reload): Likewise.
20198 * config/i386/i386.c (ix86_option_override): Refer to ira instead
20199 of reload for vzeroupper pass placement.
20200 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
20201 and todo_flags_finish of all passes.
20202
793d9a16
RB
202032013-04-10 Richard Biener <rguenther@suse.de>
20204
20205 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
20206 first_const_oprnd field, rename first_def_type to first_op_type.
20207 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
20208 (vect_get_and_check_slp_defs): Always use the type of the
20209 operand. Allow mixed vect_external_def, vect_constant_def types.
20210 (vect_get_constant_vectors): Handle mixed vect_external_def,
20211 vect_constant_def types.
20212
12211b99 202132013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
20214
20215 PR tree-optimization/55524
20216 * tree-ssa-math-opts.c
20217 (convert_mult_to_fma): Don't use an fms construct
20218 when we don't have an fms operation, but fnma, and it looks
20219 likely that we'll be able to use the latter.
20220
12211b99 202212013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
20222
20223 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
20224 function.
20225 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
20226 inline fail caused by overwritable functions.
20227
34ab4a5b
CJW
202282013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
20229
20230 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
20231 unnecessary bits in the constant power of two case.
20232
abf9bfbc
RB
202332013-04-10 Richard Biener <rguenther@suse.de>
20234
20235 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
20236 broken code swapping operands.
20237 (vect_build_slp_tree): Do not compute load permutations here.
20238 (vect_analyze_slp_instance): Compute load permutations here,
20239 after building the SLP tree.
20240
f408477e
CB
202412013-04-09 Christian Bruel <christian.bruel@st.com>
20242
20243 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
20244 of next/prev_real_insn.
20245
5ac42672
JH
202462013-04-09 Jan Hubicka <jh@suse.cz>
20247
abf9bfbc
RB
20248 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
20249 Drop aliased parameter.
5ac42672
JH
20250 (function_and_variable_visibility): Do not handle alias pairs.
20251 * cgraph.c (varpool_externally_visible_p): Update prototype.
20252 * varpool.c (varpool_add_new_variable): Update.
20253
5017f1d2
KT
202542013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20255
20256 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
20257
48eecbee
SB
202582013-04-09 Steven Bosscher <steven@gcc.gnu.org>
20259
a949cf1c
SB
20260 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
20261
48eecbee
SB
20262 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
20263
75ef8e3d
MP
202642013-04-09 Marek Polacek <polacek@redhat.com>
20265
20266 PR tree-optimization/48762
33159866 20267 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 20268
23847df4
RB
202692013-04-09 Richard Biener <rguenther@suse.de>
20270
20271 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
20272 dealing with cost.
20273 (vect_build_slp_tree): Likewise.
20274 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
20275 calculating the cost of a SLP instance.
20276 (vect_analyze_slp_instance): Use it from here, after building
20277 the SLP tree.
20278
ea3a0fde
JJ
202792013-04-09 Jakub Jelinek <jakub@redhat.com>
20280
20281 PR middle-end/56883
20282 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20283 expand_omp_for_static_chunk): Use simple_p = true in
20284 force_gimple_operand_gsi calls when assigning to addressable decls.
20285
a32dfe9d
JL
202862013-04-09 Jeff Law <law@redhat.com>
20287
20288 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
20289 when the boolean was created by converting a wider object which
20290 had a boolean range.
20291
d755c7ef
RB
202922013-04-09 Richard Biener <rguenther@suse.de>
20293
20294 * tree-vectorizer.h (slp_void_p): Remove.
20295 (slp_tree): Typedef before _slp_tree declaration.
20296 (struct _slp_tree): Use a vector of slp_tree as children.
20297 (vect_get_place_in_interleaving_chain): Remove.
20298 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
20299 Move ...
20300 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
20301 and make static.
20302 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
20303 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
20304 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
20305 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
20306 Use slp_node instead of slp_void_p and adjust.
20307
3d741091
RB
203082013-04-09 Richard Biener <rguenther@suse.de>
20309
20310 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
20311 work that is not necessary.
20312
39307ba7
JJ
203132013-04-09 Jakub Jelinek <jakub@redhat.com>
20314
20315 PR tree-optimization/56854
20316 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
20317 forward into clobber stmts if it would change MEM_REF lhs into
20318 non-MEM_REF.
20319
343881fd
MK
203202013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
20321
20322 * tree.c (type_hash_lookup, type_hash_add): Make static.
20323 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
20324
3922658a
RB
203252013-04-09 Richard Biener <rguenther@suse.de>
20326
20327 * tree.h (unsave_expr_now): Remove.
20328 * tree-inline.c (mark_local_for_remap_r): Remove.
20329 (unsave_expr_1): Likewise.
20330 (unsave_r): Likewise.
20331 (unsave_expr_now): Likewise.
20332 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
20333 (propagate_tree_value): Likewise.
20334
9fb6b620
SB
203352013-04-08 Steven Bosscher <steven@gcc.gnu.org>
20336
20337 * doc/rtl.texi (sequence): Rewrite documentation to match the
20338 current use of SEQUENCE rtl objects.
20339 * rtl.def (SEQUENCE): Likewise.
20340
20341 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
20342 Update documentation.
20343 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
20344 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
20345
20346 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
20347
8ddb5a29
TJ
203482013-04-08 Teresa Johnson <tejohnson@google.com>
20349
20350 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
20351 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 20352 methods.
8ddb5a29
TJ
20353 (estimate_edge_size_and_time): Add comment to suggest using rounding
20354 methods.
20355 (estimate_node_size_and_time): Ditto.
20356 (remap_edge_change_prob): Use helper rounding divide methods.
20357 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
20358 (gimple_mod_pow2_value_transform): Ditto.
20359 (gimple_mod_subtract_transform): Ditto.
20360 (gimple_ic_transform): Ditto.
20361 (gimple_stringops_transform): Ditto.
20362 * stmt.c (conditional_probability): Ditto.
20363 (emit_case_dispatch_table): Ditto.
20364 * lto-cgraph.c (merge_profile_summaries): Ditto.
20365 * tree-optimize.c (execute_fixup_cfg): Ditto.
20366 * cfgcleanup.c (try_forward_edges): Ditto.
20367 * cfgloopmanip.c (scale_loop_profile): Ditto.
20368 (loopify): Ditto.
20369 (duplicate_loop_to_header_edge): Ditto.
20370 (lv_adjust_loop_entry_edge): Ditto.
20371 * tree-vect-loop.c (vect_transform_loop): Ditto.
20372 * profile.c (compute_branch_probabilities): Ditto.
20373 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
20374 * lto-streamer-in.c (input_cfg): Ditto.
20375 * gimple-streamer-in.c (input_bb): Ditto.
20376 * ipa-cp.c (update_profiling_info): Ditto.
20377 (update_specialized_profile): Ditto.
20378 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
20379 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 20380 rounding methods.
8ddb5a29
TJ
20381 * sched-rgn.c (compute_dom_prob_ps): Ditto.
20382 (compute_trg_info): Ditto.
20383 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
20384 (purge_dead_edges): Ditto.
20385 * loop-unswitch.c (unswitch_loop): Ditto.
20386 * cgraphclones.c (cgraph_clone_edge): Ditto.
20387 (cgraph_clone_node): Ditto.
20388 * tree-inline.c (copy_bb): Ditto.
20389 (copy_edges_for_bb): Ditto.
20390 (initialize_cfun): Ditto.
20391 (copy_cfg_body): Ditto.
20392 (expand_call_inline): Ditto.
20393
661e6bd7
KT
203942013-04-08 Kai Tietz <ktietz@redhat.com>
20395
20396 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
20397 TARGET_CYGWIN64 by TARGET_64BIT.
20398
105766f3
JR
203992013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
20400
20401 * config/epiphany/epiphany.md (GPR_1): New constant.
20402 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
20403 * config/epiphany/epiphany.c (gen_compare_reg):
20404 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
20405 is already in place.
20406 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
20407 Don't require being called during rtl expansion; If y operlaps r0,
20408 return 0.
20409 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
20410 (epiphany_expand_epilogue): Likewise.
20411
8afab237
JR
20412 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
20413 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 20414 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 20415
fa7707d6
JR
20416 * config/epiphany/constraints.md (CnL): New constraint.
20417 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
20418 * config/epiphany/predicates.md (add_operand): Allow 1024.
20419
5138e18d
JR
20420 * config/epiphany/epiphany.md (logical_op): New code iterator.
20421 (op_mnc): New code attribute.
20422 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
20423 (mov_f+1, mov_f+2): New peephole2 patterns.
20424
2ccc703d
JR
20425 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
20426 (cstoresi4): Also allow re-use of zero result when doing a NE
20427 comparison to a non-zero operand.
aefb0819 20428 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 20429
093ac0a5
JR
20430 * config/epiphany/epiphany.md (<insn_opname>v2si3):
20431 Use gen_addsi3_i / gen_subsi3_i.
20432
f223bb13
JJ
204332013-04-08 Jakub Jelinek <jakub@redhat.com>
20434
20435 PR c++/34949
20436 PR c++/50243
20437 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
20438 contain anything but clobbers, at most one __builtin_stack_restore,
20439 optionally debug stmts and final resx, and if it has at least one
20440 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
20441 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
20442 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
20443 which isn't defaut definition, remove them.
20444 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
20445 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
20446 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
20447 with MEM_REF LHS with SSA_NAME address.
20448
4481581f
JL
204492013-04-08 Jeff Law <law@redhat.com>
20450
20451 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 20452
451dabda
RB
204532013-04-08 Richard Biener <rguenther@suse.de>
20454
20455 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
20456 extra newline.
20457 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
20458 determined vector type.
20459 (vect_analyze_data_refs): Likewise.
20460 (vect_get_new_vect_var): Adjust.
20461 (vect_create_destination_var): Preserve SSA name versions.
20462 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
20463 not dump anything here.
20464
3b088b47
JR
204652013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
20466
20467 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
20468 Add member lr_slot_known.
20469 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
20470 if necessary.
20471 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20472 Remove code that sets lr_slot_offset according to what a previous
20473 version of epiphany_emit_save_restore used to do.
20474 (epiphany_emit_save_restore): When doing an lr save or restore,
20475 set/verify lr_slot_known and lr_slot_offset.
20476
d8484d41
XQ
204772013-04-08 Xinyu Qi <xyqi@marvell.com>
20478
33159866
UB
20479 PR target/54338
20480 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
20481 in ALL_REGS.
20482
481be1c4
RB
204832013-04-08 Richard Biener <rguenther@suse.de>
20484
20485 * alias.c (find_base_term): Fix thinko in previous change.
20486
401f3a81
JJ
204872013-04-08 Jakub Jelinek <jakub@redhat.com>
20488
20489 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
20490 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
20491 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
20492 if possible to compute val.
20493 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
20494 For QImode integers don't require anything about precision. Use
20495 const_with_all_bytes_same to find out if the constant doesn't have
20496 repeated bytes in it.
20497
03ed99a8
AK
204982013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20499
20500 * config/s390/s390.c (s390_expand_insv): Only accept insertions
20501 within mode size.
20502
781b2e62
MP
205032013-04-08 Marek Polacek <polacek@redhat.com>
20504
20505 PR rtl-optimization/48182
20506 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
20507 value to 1.
20508
27e430a2
JDA
205092013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20510
20511 PR target/55487
20512 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
20513 nuses, make sure we have a label.
20514
4902aa64
BS
205152013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20516
20517 PR target/56843
20518 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
20519 (rs6000_emit_swdiv_low_precision): Remove.
20520 (rs6000_emit_swdiv): Rewrite to handle between one and four
20521 iterations of Newton-Raphson generally; modify required number of
20522 iterations for some cases.
20523 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
20524
7bca81dc
SB
205252013-04-05 Steven Bosscher <steven@gcc.gnu.org>
20526
20527 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
20528 set-but-unused variable.
20529
20530 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
20531 basic blocks of released function bodies garbage-collectable.
20532
20533 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
20534 (struct rtl_opt_pass): Add TODO_df_finish.
20535
20536 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
20537
4542a38a
GY
205382013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20539
20540 * config/arm/constraints.md (q): New constraint.
20541 * config/arm/ldrdstrd.md: New file.
20542 * config/arm/arm.md (ldrdstrd.md) New include.
20543 (arm_movdi): Use "q" instead of "r" constraint
20544 for double-word memory access.
20545 (movdf_soft_insn): Likewise.
20546 * config/arm/vfp.md (movdi_vfp): Likewise.
20547 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 20548 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
20549 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
20550 (mem_ok_for_ldrd_strd): Likewise.
20551 (output_move_double): Update assertion.
20552
2385b218
GY
205532013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20554
20555 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
20556
75fe1cb5
GY
205572013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20558
20559 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
20560 define_insn_and_split.
20561 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
20562
dd660e8e
GY
205632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20564
20565 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
20566 define_insn_and_split.
33159866 20567 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
20568 (shiftsi3_compare): New pattern.
20569 (rrx): New pattern.
20570 * config/arm/unspecs.md (UNSPEC_RRX): New.
20571
045e472c
GY
205722013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20573
20574 * config/arm/arm.md (negdi_extendsidi): New pattern.
20575 (negdi_zero_extendsidi): Likewise.
20576
3f3bf1a8
GY
205772013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20578
20579 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
20580 define_insn_and_split.
20581 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
20582 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
20583
b0b49556
GY
205842013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20585
20586 * config/arm/arm.md (arm_subdi3): Convert define_insn into
20587 define_insn_and_split.
20588 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
20589 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
20590
d633dd84
GY
205912013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20592
20593 * config/arm/arm.md (subsi3_carryin): New pattern.
20594 (subsi3_carryin_const): Likewise.
20595 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
20596 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
20597
f4499066
GY
205982013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20599
20600 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
20601
ceef6fd9
GY
206022013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20603
20604 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 20605 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 20606
ddbdd8a7
KT
206072013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20608
20609 * config/arm/arm.c (arm_expand_builtin): Change fcode
20610 type to unsigned int.
20611
8456d78a
RR
206122013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20613
20614 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
20615
526c230f
ILT
206162013-04-04 Ian Lance Taylor <iant@google.com>
20617
33159866
UB
20618 * doc/standards.texi (Standards): The Go frontend supports the Go 1
20619 language standard.
526c230f 20620
3cfbe04d
SB
206212013-04-04 Steven Bosscher <steven@gcc.gnu.org>
20622
20623 PR middle-end/56729
20624 * df-scan.c (df_insn_delete): Disable failing assert.
20625
dfa3f8d0
KT
206262013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20627
20628 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
20629 New function prototype.
20630 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
20631 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
20632 (arm_builtin_vectorized_function): New function.
20633
f7837758
KT
206342013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20635
20636 * config/arm/arm_neon_builtins.def: New file.
20637 * config/arm/arm.c (neon_builtin_data): Move contents to
20638 arm_neon_builtins.def.
20639 (enum arm_builtins): Include neon builtin definitions.
20640 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 20641 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 20642
39c1b6db
MP
206432013-04-04 Marek Polacek <polacek@redhat.com>
20644
20645 PR tree-optimization/48186
20646 * predict.c (maybe_hot_frequency_p): Return false if
20647 HOT_BB_FREQUENCY_FRACTION is 0.
20648 (cgraph_maybe_hot_edge_p): Likewise.
20649
314f64eb
RB
206502013-04-04 Richard Biener <rguenther@suse.de>
20651
20652 PR tree-optimization/56826
20653 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
20654 more accurately.
20655
51a905b2
RB
206562013-04-04 Richard Biener <rguenther@suse.de>
20657
20658 PR tree-optimization/56213
20659 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 20660 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 20661
f1bf4f3a
RB
206622013-04-04 Richard Biener <rguenther@suse.de>
20663
20664 PR tree-optimization/56837
20665 * tree-loop-distribution.c (classify_partition): For non-zero
20666 values require that the value has the same precision as its
20667 mode to be useful as memset value.
20668
0bca7ded
NC
206692013-04-03 Nick Clifton <nickc@redhat.com>
20670
33159866 20671 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
20672 (fmssf4): Use fmsf.s on E3V5 architectures.
20673 (fnmasf4): Use fnmaf.s on E3V5 architectures.
20674 (fnmssf4): Use fnmsf.s on E3V5 architectures.
20675
b4019227
JL
206762013-04-03 Jeff Law <law@redhat.com>
20677
20678 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
20679 (lra-eliminations.o): Likewise.
20680
f57ddb5b
TJ
206812013-04-03 Teresa Johnson <tejohnson@google.com>
20682
20683 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 20684 compute_working_sets here from profile.c.
f57ddb5b 20685 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
20686 (gcov_working_set_t): Moved typedef here from basic-block.h
20687 (compute_working_set): Declare.
f57ddb5b
TJ
20688 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
20689 (get_working_sets): Renamed from compute_working_set,
33159866 20690 replace most of body with call to new compute_working_sets.
f57ddb5b 20691 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
20692 to get_working_sets.
20693 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 20694 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 20695 to get_working_sets.
f57ddb5b
TJ
20696 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
20697 * gcov-dump.c (dump_working_sets): New function.
20698
12211b99 206992013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
20700
20701 * hwint.c (sext_hwi, zext_hwi): New functions.
20702 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
20703 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
20704 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
20705 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
20706 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
20707 (sext_hwi, zext_hwi): New functions.
0bca7ded 20708
be672e08
JL
207092013-04-03 Jeff Law <law@redhat.com>
20710
20711 PR tree-optimization/56799
33159866
UB
20712 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
20713 back test for widening conversion erroneously dropped in prior change.
be672e08 20714
9d821fa5
KT
207152013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20716
20717 PR target/56809
20718 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
20719 instead of next_real_insn.
20720
71c581e7
MP
207212013-04-03 Marek Polacek <polacek@redhat.com>
20722
20723 PR sanitizer/55702
33159866 20724 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 20725
4a32ef80
KT
207262013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20727
20728 PR target/56809
20729 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
20730 next_real_insn.
20731 (thumb1_output_casesi): Likewise.
20732 (thumb2_output_casesi): Likewise.
20733
1b2253d4
RB
207342013-04-03 Richard Biener <rguenther@suse.de>
20735
20736 PR tree-optimization/56817
20737 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
20738 Split out ...
20739 (tree_unroll_loops_completely_1): ... new function to manually
20740 walk the loop tree, properly defering outer loops of unrolled
20741 loops to later iterations.
20742
38000232
MG
207432013-04-03 Marc Glisse <marc.glisse@inria.fr>
20744
20745 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
20746 (vectorizable_load): Likewise.
20747 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20748 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
20749
3fa35298
MG
207502013-04-03 Marc Glisse <marc.glisse@inria.fr>
20751
20752 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
20753 BIT_FIELD_REF.
20754
b3d45ff0
UW
207552013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20756
20757 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
20758
ec9202a8
BC
207592013-04-03 Bin Cheng <bin.cheng@arm.com>
20760
20761 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
20762
6805bd36
MG
207632013-04-03 Marc Glisse <marc.glisse@inria.fr>
20764
20765 PR tree-optimization/56790
33159866
UB
20766 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
20767 folding.
6805bd36 20768
da694a77
MG
207692013-04-03 Marc Glisse <marc.glisse@inria.fr>
20770
20771 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
20772 Handle VEC_MERGE.
20773 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
20774 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
20775 equal arguments.
20776
4e7d7b3d
JJ
207772013-04-03 Jakub Jelinek <jakub@redhat.com>
20778
20779 PR c/19449
20780 * tree.h (force_folding_builtin_constant_p): New decl.
20781 * builtins.c (force_folding_builtin_constant_p): New variable.
20782 (fold_builtin_constant_p): Fold immediately also if
20783 force_folding_builtin_constant_p.
20784
e6c9d234
RB
207852013-04-03 Richard Biener <rguenther@suse.de>
20786
20787 PR tree-optimization/56812
20788 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
20789 DRs of the same interleaving chain are independent.
20790
984d07dd
JM
207912013-04-02 Jason Merrill <jason@redhat.com>
20792
20793 * gdbinit.in (pbb): Use debug fn.
20794
622849c9
LC
207952013-04-02 Lawrence Crowl <crowl@google.com>
20796
20797 * sese.h (struct ivtype_map_elt_s): Remove unused.
20798 (extern debug_ivtype_map): Remove unused.
20799 (extern eq_ivtype_map_elts): Remove unused.
20800 * sese.c (debug_ivtype_map): Removed unused.
20801 (debug_ivtype_map_1): Removed unused.
20802 (debug_ivtype_elt): Remove unused.
20803 (eq_ivtype_map_elts): Remove unused.
20804
20805
82c0e1a0
KT
208062013-04-02 Kai Tietz <ktietz@redhat.com>
20807
20808 PR target/52790
20809 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
20810 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
20811 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
20812 function.
82c0e1a0
KT
20813 (legitimize_pe_coff_symbol): Likewise.
20814 (is_imported_p): New helper-function.
20815 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
20816 for Windows x64 targets.
20817 (ix86_expand_prologue): Optimize for pe-coff targets.
20818 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
20819 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
20820 medium/large code-model.
20821 (legitimize_pic_address): Likewise.
20822 (legitimize_tls_address): Likewise.
20823 (ix86_expand_call): Likewise.
20824 (x86_output_mi_thunk): Likewise.
20825 (get_dllimport_decl): Add new beimport argument.
20826 (construct_plt_address): Don't assert for x64 pe-coff targets.
20827 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
20828 targets.
20829 (SYMBOL_FLAG_STUBVAR): New macro.
20830 (SYMBOL_REF_STUBVAR_P): Likewise.
20831 * config/i386/winnt.c (stub_list): New structure.
20832 (stub_head): New local variable.
20833 (i386_pe_record_stub): New function.
20834 (i386_pe_file_end): Emit refptr-stubs.
20835
5d751b0c
JJ
208362013-04-02 Jakub Jelinek <jakub@redhat.com>
20837
09bb4c99
JJ
20838 PR rtl-optimization/56745
20839 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
20840 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
20841
a1d8947a
JJ
20842 PR c++/34949
20843 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
20844 and both of them are MEM_REFs, just compare first argument for
20845 equality and attempt to deal even with differing offsets.
20846
5d751b0c
JJ
20847 PR c++/34949
20848 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
20849 of gimple_clobber_p to be MEM_REF.
20850 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
20851 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
20852 after gimplification.
20853 * asan.c (get_mem_ref_of_assignment): Don't instrument
20854 gimple_clobber_p stmts.
20855 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
20856 gimple_clobber_p stmt if they have MEM_REF lhs and
20857 are dead because of another gimple_clobber_p stmt.
20858 * tree-ssa-live.c (clear_unused_block_pointer): Treat
20859 gimple_clobber_p stmts like debug stmts.
20860 (remove_unused_locals): Remove clobbers with MEM_REF lhs
20861 that refer to unused VAR_DECLs or uninitialized values.
20862 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
20863 gimple_clobber_p stmts if they refer to removed parameters.
20864 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
20865 formatting.
20866
e594716a
UB
208672013-04-02 Uros Bizjak <ubizjak@gmail.com>
20868
20869 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
20870 using SWI48 mode attribute.
20871
7a80735b
WM
208722013-04-02 Wei Mi <wmi@google.com>
20873
20874 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
20875 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
20876 *<rotate_insn><mode>3_mask in i386.md.
20877
f423a9e4
AI
208782013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
20879
20880 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
20881
90eb75f2
RB
208822013-04-02 Richard Biener <rguenther@suse.de>
20883
20884 PR tree-optimization/56778
20885 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20886 Runtime alias tests are not supported for gather loads.
20887 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
20888 stmts referenced from SSA operands before updating SSA form.
20889
d8c69a92
IC
208902013-04-02 Ian Caulfield <ian.caulfield@arm.com>
20891 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20892
20893 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
20894 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
20895 * config/arm/cortex-a53.md: New file.
20896 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
20897 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
20898 * config/arm/arm.c (arm_issue_rate): Likewise.
20899 * config/arm/arm-tune.md: Regenerate
20900 * config/arm/arm-tables.opt: Regenerate.
20901 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 20902
239eb04c
ZC
209032013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
20904
20905 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
20906 non-static link.
20907
c902d3c8
SN
209082013-04-02 Sofiane Naci <sofiane.naci@arm.com>
20909
d8c69a92
IC
20910 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
20911 scalar load/store operations using B/H registers.
c902d3c8
SN
20912 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
20913
051d0e2f
SN
209142013-04-02 Sofiane Naci <sofiane.naci@arm.com>
20915
20916 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
20917 scalar move.
20918 * config/aarch64/aarch64.c
20919 (aarch64_simd_scalar_immediate_valid_for_move): New.
20920 * config/aarch64/aarch64-protos.h
20921 (aarch64_simd_scalar_immediate_valid_for_move): New.
20922 * config/aarch64/constraints.md (Dh, Dq): New.
20923 * config/aarch64/iterators.md (hq): New.
20924
0ee1e3d9
EB
209252013-04-02 Eric Botcazou <ebotcazou@adacore.com>
20926
20927 * reorg.c (get_branch_condition): Deal with conditional returns.
20928 (fill_simple_delay_slots): Remove dead code dealing with jumps.
20929
136fb3f7
WM
209302013-04-01 Wei Mi <wmi@google.com>
20931
20932 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
20933 Truncate operand 2 using %b asm operand modifier.
20934 (*<shift_insn><mode>3_mask): Ditto.
20935 (*<rotate_insn><mode>3_mask): Ditto.
20936
6388c738
SB
209372013-04-01 Steven Bosscher <steven@gcc.gnu.org>
20938
20939 PR middle-end/56798
20940 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
20941
f7a4d826
KK
209422013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
20943
20944 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
20945 of next_real_insn.
20946 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
20947
4b943a49
LC
209482013-03-30 Lawrence Crowl <crowl@google.com>
20949
20950 * dse.c (clear_alias_sets): Remove never set.
20951 (disqualified_clear_alias_sets): Remove never set.
20952 (clear_alias_mode_pool): Remove never set.
20953 (dse_step0): Remove condition that is never true.
20954 (canon_address): Remove condition that is never true.
20955 (dse_step7): Remove condition that is never true.
20956 (rest_of_handle_dse): Remove condition that is never true.
20957 (rest_of_handle_dse::did_global): Remove never read from above.
20958 (dse_step2_spill): Remove never called from above.
20959 (dse_step5_spill): Remove never called from above.
20960
39718607
SB
209612013-03-30 Steven Bosscher <steven@gcc.gnu.org>
20962
da5c6bde
SB
20963 * doc/md.texi (Standard Names) <casesi>: Update documentation for
20964 JUMP_TABLE_DATA changes.
20965 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
20966 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
20967 (Insns) <jump_table_data>: New entry.
20968 * doc/tm.texi: Regenerate.
20969
39718607
SB
20970 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
20971
20972 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
20973 for table jump at the end of a basic block using tablejump_p.
20974 * targhooks.c (default_invalid_within_doloop): Likewise.
20975 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
20976 target hook implementation that is identical to the default hook.
20977 (rs6000_invalid_within_doloop): Remove.
20978
20979 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
20980 unused variable from tablejump_p call.
20981
20982 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
20983 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
20984 (INSN_DELETED_P): Likewise.
20985 (emit_jump_table_data): New prototype.
20986 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
20987 after 4th as unused.
20988 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
20989 * sched-vis.c (print_insn): Likewise.
20990 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
20991 insn for compatibility with back ends that use next_active_insn to
20992 identify jump table data.
20993 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
20994 (remove_insn): Likewise.
20995 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
20996 to be emitted.
20997 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
20998 (emit_jump_table_data): New function.
20999
21000 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
21001 basic block, a JUMP_TABLE_DATA never is.
21002 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
21003 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
21004 off from code handling real insns.
21005 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
21006 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
21007 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
21008 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
21009 is not a NONDEBUG_INSN_P.
21010 * ira-costs.c (scan_one_insn): Likewise.
21011 * jump.c (mark_all_labels): Likewise.
21012 (mark_jump_label_1): Likewise.
21013 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21014 * lra.c (get_insn_freq): Expect all insns reaching here to be in
21015 a basic block.
21016 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
21017 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
21018 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
21019 JUMP_TABLE_DATA_P insns.
21020 (calculate_elim_costs_all_insns): Likewise.
21021 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
21022 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
21023 (delete_output_reload): Code style fixups.
21024 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
21025 insn flags on this non-insn.
21026 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
21027 as scheduling barriers, for pre-change compatibility.
21028 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
21029 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
21030
21031 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
21032 redundant JUMP_TABLE_DATA_P test.
21033 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
21034 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
21035 (frv_for_each_packet): Likewise.
21036 * config/i386/i386.c (min_insn_size): Likewise.
21037 (ix86_avoid_jump_mispredicts): Likewise.
21038 * config/m32r/m32r.c (m32r_is_insn): Likewise.
21039 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
21040 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
21041 (mips16_insn_length): Robustify.
21042 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
21043 (mips16_split_long_branches): Likewise.
21044 * config/pa/pa.c (pa_combine_instructions): Likewise.
21045 * config/rs6000/rs6000.c (get_next_active_insn): Treat
21046 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
21047 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
21048 as contributing to pool range lengths.
21049 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
21050 Remove redundant JUMP_TABLE_DATA_P test.
21051 (sh_loop_align): Likewise.
21052 (split_branches): Likewise.
21053 (sh_insn_length_adjustment): Likewise.
21054 * config/spu/spu.c (get_branch_target): Likewise.
21055
0208f7da
JH
210562013-03-29 Jan Hubicka <jh@suse.cz>
21057
21058 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
21059 gcov streaming; stream hot bb threshold to ltrans.
21060 * predict.c (get_hot_bb_threshold): Break out from ....
21061 (maybe_hot_count_p): ... here.
21062 (set_hot_bb_threshold): New function.
21063 * lto-section-in.c (lto_section_name): Add profile.
21064 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
21065 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
21066 and data-streamer.h
21067 (histogram_entry): New structure.
21068 (histogram, histogram_pool): New global vars.
21069 (histogram_hash): New structure.
21070 (histogram_hash::hash): New method.
21071 (histogram_hash::equal): Likewise.
21072 (account_time_size): New function.
21073 (cmp_counts): New function.
21074 (dump_histogram): New function.
21075 (ipa_profile_generate_summary): New function.
21076 (ipa_profile_write_summary): New function.
21077 (ipa_profile_read_summary): New function.
21078 (ipa_profile): Decide on threshold.
e594716a
UB
21079 (pass_ipa_profile): Add ipa_profile_write_summary and
21080 ipa_profile_read_summary.
0208f7da
JH
21081 * Makefile.in (ipa.o): Update dependencies.
21082 * lto-streamer.h (LTO_section_ipa_profile): New section.
21083
5a6ccc94
GDR
210842013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
21085
21086 * tree.h (VAR_P): New.
21087
39385fa6
PC
210882013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
21089
21090 PR lto/56777
21091 * doc/invoke.texi ([-fwhole-program]): Fix typo.
21092
34f0d87a
SB
210932013-03-29 Steven Bosscher <steven@gcc.gnu.org>
21094
21095 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
21096 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
21097 (control_flow_insn_p): Likewise.
21098 * cfgrtl.c (duplicate_insn_chain): Likewise.
21099 * final.c (get_attr_length_1): Likewise.
21100 (shorten_branches): Likewise.
21101 (final_scan_insn): Likewise.
21102 * function.c (instantiate_virtual_regs): Likewise.
21103 * gcse.c (insert_insn_end_basic_block): Likewise.
21104 * ira-costs.c (scan_one_insn): Likewise.
21105 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21106 * lra.c (check_rtl): Likewise.
21107 * reload1.c (elimination_costs_in_insn): Likewise.
21108 * reorg.c (follow_jumps): Likewise.
21109
21110 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
21111 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
21112 (thumb_far_jump_used_p): Likewise.
21113 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
21114 (workaround_speculation): Likewise.
21115 (add_sched_insns_for_speculation): Likewise.
21116 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
21117 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
21118 (frv_for_each_packet): Likewise.
21119 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
21120 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
21121 (final_emit_insn_group_barriers): Likewise.
21122 * config/m32r/m32r.c (m32r_is_insn): Likewise.
21123 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
21124 (mips16_insn_length): Likewise.
21125 * config/pa/pa.c (pa_reorg): Likewise.
21126 (pa_combine_instructions): Likewise.
21127 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
21128 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
21129 (sh_reorg): Likewise.
21130 (split_branches): Likewise.
21131 * config/spu/spu.c (get_branch_target): Likewise.
21132
21133 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
21134 JUMP_TABLE_DATA_P.
21135
4ac761b0
KY
211362013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
21137
39385fa6 21138 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
21139 Fix declaration name.
21140
58a49189
LC
211412013-03-28 Lawrence Crowl <crowl@google.com>
21142
21143 * graphds.h (struct graph.indicies): Remove unused.
21144 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
21145 (SCOP_ORIGINAL_PDDRS): Remove unused.
21146 * sese.h (extern insert_loop_close_phis): Removed unused.
21147 (extern insert_guard_phis): Removed unused.
21148 (extern ivtype_map_elt_info): Removed unused.
21149 (new_ivtype_map_elt): Removed unused.
21150 * sese.c (ivtype_map_elt_info): Removed unused.
21151
7b3b6ae4
LC
211522013-03-28 Lawrence Crowl <crowl@google.com>
21153
21154 * Makefile.in: Add several missing include dependences.
21155 (DUMPFILE_H): New.
21156 (test-dump.o): New. This object is not added to any executable,
21157 but is present for ad-hoc testing.
21158 * bitmap.c
21159 (debug (const bitmap_head_def &)): New.
21160 (debug (const bitmap_head_def *)): New.
21161 * bitmap.h
21162 (extern debug (const bitmap_head_def &)): New.
21163 (extern debug (const bitmap_head_def *)): New.
21164 * cfg.c
21165 (debug (edge_def &)): New.
21166 (debug (edge_def *)): New.
21167 * cfghooks.c
21168 (debug (basic_block_def &)): New.
21169 (debug (basic_block_def *)): New.
21170 * dumpfile.h
21171 (dump_node (const_tree, int, FILE *)): Correct source file.
21172 * dwarf2out.c
21173 (debug (die_struct &)): New.
21174 (debug (die_struct *)): New.
21175 * dwarf2out.h
21176 (extern debug (die_struct &)): New.
21177 (extern debug (die_struct *)): New.
21178 * gimple-pretty-print.c
21179 (debug (gimple_statement_d &)): New.
21180 (debug (gimple_statement_d *)): New.
21181 * gimple-pretty-print.h
21182 (extern debug (gimple_statement_d &)): New.
21183 (extern debug (gimple_statement_d *)): New.
21184 * ira-build.c
21185 (debug (ira_allocno_copy &)): New.
21186 (debug (ira_allocno_copy *)): New.
21187 (debug (ira_allocno &)): New.
21188 (debug (ira_allocno *)): New.
21189 * ira-int.h
21190 (extern debug (ira_allocno_copy &)): New.
21191 (extern debug (ira_allocno_copy *)): New.
21192 (extern debug (ira_allocno &)): New.
21193 (extern debug (ira_allocno *)): New.
21194 * ira-lives.c
21195 (debug (live_range &)): New.
21196 (debug (live_range *)): New.
21197 * lra-int.h
21198 (debug (lra_live_range &)): New.
21199 (debug (lra_live_range *)): New.
21200 * lra-lives.c
21201 (debug (lra_live_range &)): New.
21202 (debug (lra_live_range *)): New.
21203 * omega.c
21204 (debug (omega_pb_d &)): New.
21205 (debug (omega_pb_d *)): New.
21206 * omega.h
21207 (extern debug (omega_pb_d &)): New.
21208 (extern debug (omega_pb_d *)): New.
21209 * print-rtl.c
21210 (debug (const rtx_def &)): New.
21211 (debug (const rtx_def *)): New.
21212 * print-tree.c
21213 (debug_tree (tree): Move within file.
21214 (debug_raw (const tree_node &)): New.
21215 (debug_raw (const tree_node *)): New.
21216 (dump_tree_via_hooks (const tree_node *, int)): New.
21217 (debug (const tree_node &)): New.
21218 (debug (const tree_node *)): New.
21219 (debug_verbose (const tree_node &)): New.
21220 (debug_verbose (const tree_node *)): New.
21221 (debug_head (const tree_node &)): New.
21222 (debug_head (const tree_node *)): New.
21223 (debug_body (const tree_node &)): New.
21224 (debug_body (const tree_node *)): New.
21225 (debug_vec_tree (tree): Move and reimplement in terms of dump.
21226 (debug (vec<tree, va_gc> &)): New.
21227 (debug (vec<tree, va_gc> *)): New.
21228 * rtl.h
21229 (extern debug (const rtx_def &)): New.
21230 (extern debug (const rtx_def *)): New.
21231 * sbitmap.c
21232 (debug_raw (simple_bitmap_def &)): New.
21233 (debug_raw (simple_bitmap_def *)): New.
21234 (debug (simple_bitmap_def &)): New.
21235 (debug (simple_bitmap_def *)): New.
21236 * sbitmap.h
21237 (extern debug (simple_bitmap_def &)): New.
21238 (extern debug (simple_bitmap_def *)): New.
21239 (extern debug_raw (simple_bitmap_def &)): New.
21240 (extern debug_raw (simple_bitmap_def *)): New.
21241 * sel-sched-dump.c
21242 (debug (vinsn_def &)): New.
21243 (debug (vinsn_def *)): New.
21244 (debug_verbose (vinsn_def &)): New.
21245 (debug_verbose (vinsn_def *)): New.
21246 (debug (expr_def &)): New.
21247 (debug (expr_def *)): New.
21248 (debug_verbose (expr_def &)): New.
21249 (debug_verbose (expr_def *)): New.
21250 (debug (vec<rtx> &)): New.
21251 (debug (vec<rtx> *)): New.
21252 * sel-sched-dump.h
21253 (extern debug (vinsn_def &)): New.
21254 (extern debug (vinsn_def *)): New.
21255 (extern debug_verbose (vinsn_def &)): New.
21256 (extern debug_verbose (vinsn_def *)): New.
21257 (extern debug (expr_def &)): New.
21258 (extern debug (expr_def *)): New.
21259 (extern debug_verbose (expr_def &)): New.
21260 (extern debug_verbose (expr_def *)): New.
21261 (extern debug (vec<rtx> &)): New.
21262 (extern debug (vec<rtx> *)): New.
21263 * sel-sched-ir.h
21264 (_list_iter_cond_expr): Make inline instead of static.
21265 * sreal.c
21266 (debug (sreal &)): New.
21267 (debug (sreal *)): New.
21268 * sreal.h
21269 (extern debug (sreal &)): New.
21270 (extern debug (sreal *)): New.
21271 * tree.h
21272 (extern debug_raw (const tree_node &)): New.
21273 (extern debug_raw (const tree_node *)): New.
21274 (extern debug (const tree_node &)): New.
21275 (extern debug (const tree_node *)): New.
21276 (extern debug_verbose (const tree_node &)): New.
21277 (extern debug_verbose (const tree_node *)): New.
21278 (extern debug_head (const tree_node &)): New.
21279 (extern debug_head (const tree_node *)): New.
21280 (extern debug_body (const tree_node &)): New.
21281 (extern debug_body (const tree_node *)): New.
21282 (extern debug (vec<tree, va_gc> &)): New.
21283 (extern debug (vec<tree, va_gc> *)): New.
21284 * tree-cfg.c
21285 (debug (struct loop &)): New.
21286 (debug (struct loop *)): New.
21287 (debug_verbose (struct loop &)): New.
21288 (debug_verbose (struct loop *)): New.
21289 * tree-dump.c: Add header dependence.
21290 * tree-flow.h
21291 (extern debug (struct loop &)): New.
21292 (extern debug (struct loop *)): New.
21293 (extern debug_verbose (struct loop &)): New.
21294 (extern debug_verbose (struct loop *)): New.
21295 * tree-data-ref.c
21296 (debug (data_reference &)): New.
21297 (debug (data_reference *)): New.
21298 (debug (vec<data_reference_p> &)): New.
21299 (debug (vec<data_reference_p> *)): New.
21300 (debug (vec<ddr_p> &)): New.
21301 (debug (vec<ddr_p> *)): New.
21302 * tree-data-ref.h
21303 (extern debug (data_reference &)): New.
21304 (extern debug (data_reference *)): New.
21305 (extern debug (vec<data_reference_p> &)): New.
21306 (extern debug (vec<data_reference_p> *)): New.
21307 (extern debug (vec<ddr_p> &)): New.
21308 (extern debug (vec<ddr_p> *)): New.
21309 * tree-ssa-alias.c
21310 (debug (pt_solution &)): New.
21311 (debug (pt_solution *)): New.
21312 * tree-ssa-alias.h
21313 (extern debug (pt_solution &)): New.
21314 (extern debug (pt_solution *)): New.
21315 * tree-ssa-alias.c
21316 (debug (_var_map &)): New.
21317 (debug (_var_map *)): New.
21318 (debug (tree_live_info_d &)): New.
21319 (debug (tree_live_info_d *)): New.
21320 * tree-ssa-alias.h
21321 (extern debug (_var_map &)): New.
21322 (extern debug (_var_map *)): New.
21323 (extern debug (tree_live_info_d &)): New.
21324 (extern debug (tree_live_info_d *)): New.
21325
be77e1e5
JH
213262013-03-28 Jan Hubicka <jh@suse.cz>
21327
21328 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
21329
777e6976
IB
213302013-03-28 Ian Bolton <ian.bolton@arm.com>
21331
21332 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
21333 record only when desired or required.
21334
9cd347ae
UB
213352013-03-28 Uros Bizjak <ubizjak@gmail.com>
21336
21337 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
21338 *vec_extractv2di_1_rex64. Use x64 isa attribute.
21339
33159866 213402013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
21341
21342 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
21343 (*andsi3_compare0_uxtw): New pattern.
21344 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
21345 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
21346
89ab31c1
JH
213472013-03-28 Jan Hubicka <jh@suse.cz>
21348
21349 * data-streamer-in.c (streamer_read_gcov_count): New function.
21350 * gimple-streamer-out.c: Include value-prof.h.
21351 (output_gimple_stmt): Output histogram.
21352 (output_bb): Use streamer_write_gcov_count.
21353 * value-prof.c: Include data-streamer.h
21354 (dump_histogram_value): Add HIST_TYPE_MAX.
21355 (stream_out_histogram_value): New function.
21356 (stream_in_histogram_value): New function.
21357 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
21358 (stream_out_histogram_value, stream_in_histogram_value): Declare.
21359 * data-streamer-out.c (streamer_write_gcov_count): New function.
21360 (streamer_write_gcov_count_stream): New function.
21361 * lto-cgraph.c (lto_output_edge): Update counter streaming.
21362 (lto_output_node): Likewise.
21363 (input_node, input_edge): Likewise.
21364 * lto-streamer-out.c (output_cfg): Update streaming.
21365 * lto-streamer-in.c (input_cfg): Likewise.
21366 * data-streamer.h (streamer_write_gcov_count,
21367 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
21368 * gimple-streamer-in.c: Include value-prof.h
21369 (input_gimple_stmt): Input histograms.
21370 (input_bb): Update profile streaming.
21371
e594716a 213722013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 21373
33159866 21374 * genmodes.c (emit_max_int): New function.
8697be17 21375 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
21376 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
21377 Added doc.
8697be17 21378 * machmode.def: Fixed comment.
89ab31c1 21379
e594716a 213802013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
21381
21382 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
21383 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
21384
74946978
MP
213852013-03-28 Marek Polacek <polacek@redhat.com>
21386 Richard Biener <rguenther@suse.de>
21387
21388 PR tree-optimization/56695
21389 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
21390 build signed result of a vector comparison.
21391 * tree-cfg.c (verify_gimple_comparison): Check that a result
21392 of a vector comparison has signed type.
21393
a64b9c26
RB
213942013-03-28 Richard Biener <rguenther@suse.de>
21395
21396 PR tree-optimization/37021
21397 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
21398 do not restrict gaps between groups.
21399 * tree-vect-stmts.c (vectorizable_load): Properly account for
21400 a gap between groups.
21401
a9dc2a2f
EB
214022013-03-28 Eric Botcazou <ebotcazou@adacore.com>
21403
21404 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
21405 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
21406 is not enabled.
21407
53cb97f9
GP
214082013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
21409
21410 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
21411 * doc/extend.texi (Named Address Spaces): Ditto.
21412 (Variable Attributes): Ditto.
21413
b802ae5c
KT
214142013-03-27 Kai Tietz <ktietz@redhat.com>
21415
eddae10a
KT
21416 * config.build: Add support for cygwin x64 target.
21417 * config.gcc: Likewise.
21418 * config.host: Likewise.
21419 * configure.ac: Likewise
21420 * configure: Regenerated.
b802ae5c 21421
371e77e3 214222013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
21423
21424 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
21425 * config/i386/t-cygwin-w64: New file.
21426 * config/i386/cygwin-w64.h: New file.
21427 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
21428 and add support for x64-cygwin target.
21429 (CPP_SPEC): Likewise.
21430 (CXX_WRAP_SPEC_LIST): Undefine before define.
21431 (LIBGCJ_SONAME): Use 15 as version.
21432
f49b33cb
RB
214332013-03-27 Richard Biener <rguenther@suse.de>
21434
21435 PR tree-optimization/56716
21436 * tree-ssa-structalias.c (perform_var_substitution): Adjust
21437 dumping for ref nodes.
21438
b37a6ce5
MJ
214392013-03-27 Martin Jambor <mjambor@suse.cz>
21440
21441 PR tree-optimization/55334
21442 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
21443 restricted pointers to arrays.
21444
9469b9b2
GDR
214452013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
21446
21447 * Makefile.in (.SUFFIXES): Add .cc.
21448 (.c.o): Apply same recipe for implicit rule .cc.o.
21449
7d24f650
RB
214502013-03-27 Richard Biener <rguenther@suse.de>
21451
21452 PR tree-optimization/37021
21453 * tree-vect-data-refs.c (vect_check_strided_load): Allow
21454 REALPART/IMAGPART_EXPRs around the supported refs.
21455 * tree-ssa-structalias.c (find_func_aliases): Assume that
21456 floating-point values are not used to transfer pointers.
21457
2f251a05
AI
214582013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
21459
f43245d1
UB
21460 * target.def (TARGET_HAS_IFUNC_P): New target hook.
21461 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
21462 * doc/tm.texi: Regenerate.
21463 * targhooks.h (default_has_ifunc_p): New.
21464 * targhooks.c (default_has_ifunc_p): Ditto.
21465 * config/linux-protos.h: New file.
21466 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
21467 hook for linux which disables support of indirect functions in android.
21468 * config/linux-android.c: New file.
21469 * config/t-linux-android.c: Ditto.
21470 * config.gcc: Added new object file linux-android.o.
21471 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 21472 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 21473 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
21474 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
21475 doesn't support indirect functions.
21476 * configure: Regenerate.
21477
78b4e425
BC
214782013-03-27 Bin Cheng <bin.cheng@arm.com>
21479
21480 PR target/56102
21481 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
21482 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
21483 mult-word mode.
21484
a5ba7b92
AK
214852013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21486
21487 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
21488
be624986
TG
214892013-03-27 Terry Guo <terry.guo@arm.com>
21490
21491 * config/arm/arm-cores.def: Added core cortex-r7.
21492 * config/arm/arm-tune.md: Regenerated.
21493 * config/arm/arm-tables.opt: Regenerated.
21494 * doc/invoke.texi: Added entry for core cortex-r7.
21495
0a514f47
WL
214962013-03-27 Walter Lee <walt@tilera.com>
21497
21498 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
21499 double-decrement of next_scratch_regno.
21500
9332b0d2
WL
215012013-03-27 Walter Lee <walt@tilera.com>
21502
801d9b2a 21503 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
21504 input operands.
21505 (insn_v1mulus): Ditto.
21506 (insn_v2muls): Ditto.
21507
f54ea5dd
WL
215082013-03-27 Walter Lee <walt@tilera.com>
21509
e594716a 21510 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
21511 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
21512
bf60f4ca
WL
215132013-03-27 Walter Lee <walt@tilera.com>
21514
e594716a 21515 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
21516 (*sibcall_value): Ditto.
21517
e3b51eeb
WL
215182013-03-27 Walter Lee <walt@tilera.com>
21519
21520 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
21521 (insn_mnz_v8qi): ... this ...
21522 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
21523 vector equivalent.
21524 (insn_v<n>mnz): Replaced by ...
21525 (insn_v1mnz): ... this ...
21526 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
21527 equivalent.
21528 (insn_mz_<mode>): Replaced by ...
21529 (insn_mz_v8qi): ... this ...
21530 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
21531 vector equivalent.
21532 (insn_v<n>mz): Replaced by ...
21533 (insn_v1mz): ... this ...
21534 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
21535 equivalent.
21536
4fc7b145
EB
215372013-03-26 Eric Botcazou <ebotcazou@adacore.com>
21538
21539 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
21540
6f33817e
RM
215412013-03-26 Roland McGrath <mcgrathr@google.com>
21542
21543 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
21544 than fprintf with a non-constant, non-format string.
21545
93a4145b
UB
215462013-03-26 Uros Bizjak <ubizjak@gmail.com>
21547
21548 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
21549 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
21550 operand 0 predicate.
21551 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
21552 attribute. Use general_x64nomem_operand as operand 1 predicate.
21553 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
21554 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
21555 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
21556 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
21557 (mov<mode>_insv_1): Remove expander. Merge insn with
21558 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
21559 Use general_x64nomem_operand as operand 1 predicate.
21560 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
21561 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
21562 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
21563 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
21564 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
21565 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
21566 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
21567 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
21568 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
21569 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
21570 (general_x64nomem_operand): Ditto.
21571
c6a9ed5a 215722013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
21573
21574 * config/rtems.opt: Add -pthread option.
21575
31b0a960
RB
215762013-03-26 Richard Biener <rguenther@suse.de>
21577
93a4145b
UB
21578 * alias.c (find_base_term): Avoid redundant and not used recursion.
21579 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
21580 (true_dependence_1): Compute and pass base terms to base_alias_check.
21581 (write_dependence_p): Likewise.
21582 (may_alias_p): Likewise.
21583
79517551
SN
215842013-03-26 Sofiane Naci <sofiane.naci@arm.com>
21585
21586 * config/aarch64/aarch64.c (aarch64_classify_address): Support
21587 PC-relative load in SI modes and above only.
21588
a76213b9
XQ
215892013-03-26 Xinyu Qi <xyqi@marvell.com>
21590
21591 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
21592 * config/arm/iwmmxt.md (WCGR0): Update.
21593 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 21594
37ff9355
UB
215952013-03-26 Uros Bizjak <ubizjak@gmail.com>
21596
21597 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
21598 Use x64 and nox64 isa attributes.
21599
30b0317c
RB
216002013-03-26 Richard Biener <rguenther@suse.de>
21601
21602 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
21603 alignment computations and rely on get_object_alignment_1
21604 for the !TYPE_P case.
21605 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
21606
cbcdb140
WL
216072013-03-26 Walter Lee <walt@tilera.com>
21608
21609 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
21610 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
21611
dd884525 216122013-03-25 Jeff Law <law@redhat.com>
be672e08 21613
33159866
UB
21614 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
21615 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
21616 wrong version of prior patch.
21617
0051d3ec
WL
216182013-03-25 Walter Lee <walt@tilera.com>
21619
21620 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
21621 TILEGX_INSN_SHUFFLEBYTES1.
21622 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
21623 shufflebytes1.
21624 (tilegx_builtins): Ditto.
21625 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
21626
065a3605
WL
216272013-03-25 Walter Lee <walt@tilera.com>
21628
21629 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
21630 (floatunssisf2): New pattern.
21631 (floatsidf2): New pattern.
21632 (floatunssidf2): New pattern.
065a3605 21633
5b2a3c82
WL
216342013-03-25 Walter Lee <walt@tilera.com>
21635
21636 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
21637 tests for constraint J, K, N, P.
21638
192ea533
WL
216392013-03-25 Walter Lee <walt@tilera.com>
21640
21641 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
21642 Use indirect/pcrel encoding.
21643 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
21644 Ditto.
21645
855e0d0b
SE
216462013-03-25 Steve Ellcey <sellcey@mips.com>
21647
21648 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
21649 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
21650 * config/mips/mips.c (mips_option_override): Set IMADD default.
21651 * config/mips/mips.h (PTF_AVOID_IMADD): New.
21652 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
21653 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
21654 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
21655 * doc/invoke.texi (-mimadd/-mno-imadd): New.
21656
39e45653
JL
216572013-03-25 Jeff Law <law@redhat.com>
21658
21659 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
21660 slightly to avoid creating and folding useless trees. Simplify
21661 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
21662
7482c470
UB
216632013-03-25 Uros Bizjak <ubizjak@gmail.com>
21664
21665 * config/i386/i386.md (*zero_extendsidi2): Merge with
21666 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
21667 * config/i386/predicates.md (x86_64_zext_operand): Rename from
21668 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
21669 targets. Clarify comment.
21670
4a53743e
MJ
216712013-03-25 Martin Jambor <mjambor@suse.cz>
21672
21673 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
21674 pass-through jump functions differently.
21675 (ipa_read_jump_function): Likewise. Also use setter functions to set
21676 up jump functions.
21677
162712de
MJ
216782013-03-25 Martin Jambor <mjambor@suse.cz>
21679
21680 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
21681 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
21682 process it.
21683 (ipa_get_indirect_edge_target): New function.
21684 (devirtualization_time_bonus): New parameter known_aggs, pass it to
21685 ipa_get_indirect_edge_target. Update all callers.
21686 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
21687 ipa_get_indirect_edge_target_1 instead of calling
21688 ipa_get_indirect_edge_target.
21689 (create_specialized_node): Pass aggvlas to
21690 ipcp_discover_new_direct_edges.
21691
a5a4c20a
KT
216922013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21693
21694 * config/arm/arm.md (f_sels, f_seld): New types.
21695 (*cmov<mode>): New pattern.
21696 * config/arm/predicates.md (arm_vsel_comparison_operator): New
21697 predicate.
21698
f992b9fc
KT
216992013-03-25 Kai Tietz <ktietz@redhat.com>
21700
21701 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
21702 POSIX-printf for mingw-hosted builds.
21703
c16fd676
RB
217042013-03-25 Richard Biener <rguenther@suse.de>
21705
21706 PR middle-end/56694
21707 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
21708 must-not-throw stmt location.
21709
5ad29f12
KT
217102013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21711
21712 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
21713 Emit load-acquire versions when acq is true.
21714 (arm_emit_store_exclusive): Add rel parameter.
21715 Emit store-release versions when rel is true.
21716 (arm_split_compare_and_swap): Use acquire-release instructions
21717 instead.
21718 of barriers when appropriate.
21719 (arm_split_atomic_op): Likewise.
21720 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
21721 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
21722 (VUNSPEC_SLX): Likewise.
21723 (VUNSPEC_LDA): Likewise.
21724 (VUNSPEC_STL): Likewise.
21725 * config/arm/sync.md (atomic_load<mode>): New pattern.
21726 (atomic_store<mode>): Likewise.
21727 (arm_load_acquire_exclusive<mode>): Likewise.
21728 (arm_load_acquire_exclusivesi): Likewise.
21729 (arm_load_acquire_exclusivedi): Likewise.
21730 (arm_store_release_exclusive<mode>): Likewise.
21731
03a7dddb
CM
217322013-03-25 Catherine Moore <clm@codesourcery.com>
21733
21734 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
21735 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
21736 * config/mip/predicates.md (lwsp_swsp_operand,
21737 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
21738 sb16_operand, db4_operand, db7_operand, ib3_operand,
21739 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
21740 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
21741 andi16_operand): New predicates.
21742 * config/mips/mips.md (compression): New attribute.
21743 (enabled): New attribute.
21744 (length): Consider compression in computing length.
21745 (shift_compression): New code attribute.
21746 (*add<mode>3): New operands. Record compression.
21747 (sub<mode>3): Likewise.
21748 (one_cmpl<mode>2): Likewise.
21749 (*and<mode>3): Likewise.
21750 (*ior<mode>3): Likewise.
21751 (unnamed pattern for xor): Likewise.
21752 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
21753 (*<optab><mode>3): Likewise.
21754 (*mov<mode>_internal: Likewise.
21755 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
21756 (mips_unsigned_immediate_p): New.
21757 (umips_lwsp_swsp_address_p): New.
21758 (m16_based_address_p): New.
21759 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
21760 (mips_unsigned_immediate_p): New prototype.
21761 (lwsp_swsp_address_p): New prototype.
21762 (m16_based_address_p): New prototype.
21763 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
21764 (mips_signed_immediate_p): New function.
21765 (m16_based_address_p): New function.
21766 (lwsp_swsp_address_p): New function.
21767 (mips_print_operand_punctuation): Recognize short delay slot insns
21768 for microMIPS.add<mode>3"
21769
f35c297f 217702013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 21771
f35c297f
KT
21772 PR target/56720
21773 * config/arm/iterators.md (v_cmp_result): New mode attribute.
21774 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
21775
051b9446
RB
217762013-03-25 Richard Biener <rguenther@suse.de>
21777
21778 PR tree-optimization/56689
21779 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
21780 any edge.
21781
374001cb
RB
217822013-03-25 Richard Biener <rguenther@suse.de>
21783
21784 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
21785 of bitmap.
21786 (memory_references): Likewise.
21787 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
21788 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
21789 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
21790 (gather_mem_refs_in_loops): Fold into ...
21791 (analyze_memory_references): ... this. Move initialization
21792 to tree_ssa_lim_initialize.
21793 (fill_always_executed_in): Rename to ...
21794 (fill_always_executed_in_1): ... this.
21795 (fill_always_executed_in): Move contains_call computation to
21796 this new function from ...
21797 (tree_ssa_lim_initialize): ... here.
21798 (tree_ssa_lim): Call fill_always_executed_in.
21799
57895947
EB
218002013-03-25 Eric Botcazou <ebotcazou@adacore.com>
21801
21802 * postreload.c (reload_combine): Fix code detecting returns.
21803
1e1b18c1
EB
218042013-03-25 Eric Botcazou <ebotcazou@adacore.com>
21805
21806 * function.c (emit_use_return_register_into_block): On cc0 targets,
21807 do not emit the sequence between cc0 setter and user.
21808
9216baf1
KT
218092013-03-25 Kai Tietz <ktietz@redhat.com>
21810
1e1b18c1
EB
21811 * config/i386/predicates.md (local_symbolic_operand): Interpret
21812 dll-imported symbols as none-local.
9216baf1 21813
76421b44
RB
218142013-03-25 Richard Biener <rguenther@suse.de>
21815
21816 * tree-ssa-loop-im.c (struct depend): Remove.
21817 (struct lim_aux_data): Make depends a vec of gimples.
21818 (free_lim_aux_data): Adjust.
21819 (add_dependency): Likewise.
21820 (set_level): Likewise.
21821
d154bfa2
RB
218222013-03-25 Richard Biener <rguenther@suse.de>
21823
21824 PR middle-end/56434
21825 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
21826 the pointer returned by calls with ECF_MALLOC set.
21827
2cd9804e
UB
218282013-03-24 Uros Bizjak <ubizjak@gmail.com>
21829
acef5fe0
UB
21830 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
21831
218322013-03-24 Uros Bizjak <ubizjak@gmail.com>
21833
21834 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
21835 using MMXMODE mode iterator.
21836 (*move<mode>_internal): Merge with *movv2sf_internal and
21837 *movv2sf_internal_rex64 using MMXMODE mode iterator.
21838
225ccc68
SB
218392013-03-23 Steven Bosscher <steven@gcc.gnu.org>
21840
85c0f02d
SB
21841 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
21842 (record_last_mem_set_info): Likewise.
21843
225ccc68
SB
21844 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
21845 of XNEWVEC followed by memset.
21846 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
21847
b64925dc
SB
218482013-03-23 Steven Bosscher <steven@gcc.gnu.org>
21849
21850 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
21851 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
21852 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
21853 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
21854 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
21855 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
21856 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
21857 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
21858 BARRIER_P instead of GET_CODE.
21859
b9aaf52e
EB
218602013-03-23 Eric Botcazou <ebotcazou@adacore.com>
21861
21862 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
21863 inaccuracy in the probing code.
21864
21865 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
21866 (ctrapdi4): Likewise.
21867
66de4d7c
EB
218682013-03-23 Eric Botcazou <ebotcazou@adacore.com>
21869
21870 * calls.c (expand_call): Add missing guard to code handling return
21871 of non-BLKmode structures in MSB.
21872 * function.c (expand_function_end): Likewise.
21873
4f25c8fb
EB
218742013-03-23 Eric Botcazou <ebotcazou@adacore.com>
21875
21876 * combine.c (try_combine): Adjust comment. Do not add the set of
21877 insn #0 if the destination indirectly is set or dies in insn #2.
21878 Tidy up code to distribute a new note.
21879
23b7850d
UB
218802013-03-22 Uros Bizjak <ubizjak@gmail.com>
21881
21882 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
21883 also for alternatives 16 and 17.
21884
bed852cf
UB
218852013-03-22 Uros Bizjak <ubizjak@gmail.com>
21886
21887 * config/i386/sse.md (*mov<mode>_internal): Merge with
21888 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
21889 Emit insn template depending on type attribute. Use
21890 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
21891 movd instead of movq mnemonic for interunit moves. Rewrite mode
21892 attribute calculation. Remove unit attribute calculation.
21893 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
21894 Set prefix_data16 attribute for DImode ssemov types.
21895 Use Ym instead of y for SSE-MMX conversion alternatives.
21896 Reorder operand constraints.
21897
1e8a7937
SB
218982013-03-22 Steven Bosscher <steven@gcc.gnu.org>
21899
21900 * df.h (df_insn_delete): Adjust prototype.
21901 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
21902 and let it decide whether mark the basic block dirty.
21903 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
21904 * df-scan.c (df_insn_info_delete): New helper function, split
21905 off from df_insn_delete.
21906 (df_scan_free_bb_info): Use it.
21907 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
21908 Likewise.
21909 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
21910 that the insn is actually an insn and it has a non-NULL basic block.
21911 Do not mark basic block dirty if only deleting a DEBUG_INSN.
21912
e14d094c
RB
219132013-03-22 Richard Biener <rguenther@suse.de>
21914
21915 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
21916 dep_ref members.
21917 (mem_ref_alloc): Do not allocate them.
21918 (refs_independent_p): Do not query or maintain a cache.
21919
e9cf7316
RB
219202013-03-22 Richard Biener <rguenther@suse.de>
21921
21922 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
21923 (gather_mem_refs_in_loops): Do not compute it.
21924 (analyze_memory_references): Do not allocate it.
21925 (tree_ssa_lim_finalize): Do not free it.
21926 (for_all_locs_in_loop): Do not query all_refs_in_loop.
21927
f046e81b
RB
219282013-03-22 Richard Biener <rguenther@suse.de>
21929
21930 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 21931
a05c0ddf
IB
219322013-03-22 Ian Bolton <ian.bolton@arm.com>
21933
21934 * config/aarch64/aarch64.c (aarch64_print_operand): New
21935 format specifier for printing a constant in hex.
21936 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
21937 format specifier for printing second operand.
21938
c00217fc
RB
219392013-03-22 Richard Biener <rguenther@suse.de>
21940
21941 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
21942 bitmaps.
21943 (gather_mem_refs_in_loops): Perform store accumulation here.
21944 (create_vop_ref_mapping_loop): Remove.
21945 (create_vop_ref_mapping): Likewise.
21946 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 21947 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
21948 (record_indep_loop): Remove.
21949 (record_dep_loop): New function.
21950 (ref_indep_loop_p_1): Adjust to only walk over references
21951 in the loop, not its subloops.
21952 (ref_indep_loop_p): Rename to ...
21953 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
21954 maintaining a more fine-grained cache.
21955 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
21956 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
21957
15d19bf8
RB
219582013-03-22 Richard Biener <rguenther@suse.de>
21959
21960 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
21961 (struct mem_ref): Make accesses_in_loop a vec of a vec of
21962 aggregate mem_ref_loc.
21963 (free_mem_ref_locs): Inline into ...
21964 (memref_free): ... this and adjust.
21965 (mem_ref_alloc): Adjust.
21966 (mem_ref_locs_alloc): Remove.
21967 (record_mem_ref_loc): Adjust.
21968 (get_all_locs_in_loop): Rewrite into ...
21969 (for_all_locs_in_loop): ... this iterator.
21970 (rewrite_mem_ref_loc): New functor.
21971 (rewrite_mem_refs): Use for_all_locs_in_loop.
21972 (sm_set_flag_if_changed): New functor.
21973 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
21974 (ref_always_accessed): New functor.
21975 (ref_always_accessed_p): Use for_all_locs_in_loop.
21976
6f37411d
MG
219772013-03-21 Marc Glisse <marc.glisse@inria.fr>
21978
21979 * tree-pass.h (PROP_gimple_lvec): New.
21980 * passes.c (dump_properties): Handle PROP_gimple_lvec.
21981 (init_optimization_passes): Move pass_lower_vector.
21982 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
21983 PROP_gimple_lvec.
21984 (pass_lower_vector): Provide PROP_gimple_lvec.
21985 (pass_lower_vector_ssa): Likewise.
21986 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
21987
511ef689
MW
219882013-03-21 Mark Wielaard <mjw@redhat.com>
21989
21990 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
21991
cc1df30b
UB
219922013-03-21 Uros Bizjak <ubizjak@gmail.com>
21993
21994 * config/i386/i386.md (*movdi_internal): Disparage slightly
21995 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
21996 conversion alternatives.
21997
c845cfe1
JJ
219982013-03-21 Jakub Jelinek <jakub@redhat.com>
21999
37e99116
JJ
22000 PR middle-end/48087
22001 * diagnostic.def (DK_WERROR): New kind.
22002 * diagnostic.h (werrorcount): Define.
22003 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
22004 promoted to DK_ERROR, increment DK_WERROR counter instead of
22005 DK_ERROR counter.
22006 * toplev.c (toplev_main): Call print_ignored_options even if
22007 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
22008 even if just werrorcount is non-zero.
22009
c845cfe1
JJ
22010 PR debug/55608
22011 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
22012 on failure.
22013 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
22014 (string_cst_pool_decl): New function.
22015 (optimize_one_addr_into_implicit_ptr): New function.
22016 (resolve_addr_in_expr): Optimize DWARF location expression
22017 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
22018 which doesn't live in memory, but has DW_AT_location or
22019 DW_AT_const_value, or refers to a string literal, into
22020 DW_OP_GNU_implicit_pointer.
22021 (optimize_location_into_implicit_ptr): New function.
22022 (resolve_addr): If removing DW_AT_location of a variable because
22023 it was DW_OP_addr of address of the variable, but the variable doesn't
22024 live in memory, try to emit const value attribute for the initializer.
22025
08e0cda6
MG
220262013-03-21 Marc Glisse <marc.glisse@inria.fr>
22027
22028 * tree.h (VECTOR_TYPE_P): New macro.
22029 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
22030 TYPE_MODE): Use it.
22031 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
22032 VEC_COND_EXPR cannot be lvalues.
22033 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
22034
d08633b4
MG
220352013-03-21 Marc Glisse <marc.glisse@inria.fr>
22036
22037 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
22038 Restrict the transformation to equal modes.
22039
e6647190
RB
220402013-03-21 Richard Biener <rguenther@suse.de>
22041
22042 PR tree-optimization/39326
22043 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
22044 (MEM_ANALYZABLE): Adjust.
22045 (record_mem_ref_loc): Move bitmap ops ...
22046 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
22047 unanalyzable refs, do not record locations for it.
22048 (analyze_memory_references): Allocate ref zero as shared
22049 unanalyzable ref.
22050 (refs_independent_p): Do not test for unanalyzed mems here.
22051 (ref_indep_loop_p_1): Special-case disambiguation against
22052 the unanalyzed ref.
cc1df30b 22053 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 22054
65074f54
CL
220552013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
22056
22057 * config/arm/arm-protos.h (tune_params): Add
22058 prefer_neon_for_64bits field.
22059 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
22060 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
22061 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
22062 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
22063 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
22064 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
22065 (arm_option_override): Handle -mneon-for-64bits new option.
22066 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
22067 (prefer_neon_for_64bits): Declare new variable.
22068 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 22069 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
22070 (arch_enabled): Handle new arch types. Remove support for onlya8
22071 and nota8.
22072 (one_cmpldi2): Use new arch names.
bc5faa5b 22073 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
22074 * config/arm/arm.opt (mneon-for-64bits): Add option.
22075 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
22076 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
22077 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
22078 of onlya8.
22079 * doc/invoke.texi (-mneon-for-64bits): Document.
22080
5a2d2a79
RB
220812013-03-21 Richard Biener <rguenther@suse.de>
22082
22083 PR tree-optimization/39326
22084 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
22085 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 22086 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 22087
5abe1e05
RB
220882013-03-21 Richard Biener <rguenther@suse.de>
22089
22090 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
22091 (vect_insert_into_interleaving_chain): Likewise.
22092 (vect_drs_dependent_in_basic_block): Inline ...
22093 (vect_slp_analyze_data_ref_dependence): ... here. New function,
22094 split out from ...
22095 (vect_analyze_data_ref_dependence): ... here. Simplify.
22096 (vect_check_interleaving): Simplify.
22097 (vect_analyze_data_ref_dependences): Likewise. Split out ...
22098 (vect_slp_analyze_data_ref_dependences): ... this new function.
22099 (dr_group_sort_cmp): New function.
22100 (vect_analyze_data_ref_accesses): Compute data-reference groups
22101 here instead of in vect_analyze_data_ref_dependence. Use
22102 a more efficient algorithm.
22103 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
22104 vect_slp_analyze_data_ref_dependences. Call
22105 vect_analyze_data_ref_accesses earlier.
22106 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22107 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
22108 (vect_slp_analyze_data_ref_dependences): New prototype.
22109
cad1735b
RB
221102013-03-21 Richard Biener <rguenther@suse.de>
22111
22112 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
22113 ref is stored in the loop.
22114 (find_refs_for_sm): Walk only over all stores.
22115 (store_motion_loop): Allocate from lim_bitmap_obstack.
22116 (store_motion): Likewise.
22117
141310ef
RB
221182013-03-21 Richard Biener <rguenther@suse.de>
22119
22120 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
22121 Update virtual SSA form.
22122
5022315a
RO
221232013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22124
22125 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
22126 * configure: Regenerate.
22127 * config.in: Regenerate.
22128 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
22129 if !HAVE_LD_EH_FRAME_CIEV3.
22130
50d4421c
RB
221312013-03-21 Richard Biener <rguenther@suse.de>
22132
22133 * tree-cfg.c (verify_expr_no_block): New function.
22134 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
22135 nor DECL_VALUE_EXPR have locations with associated blocks.
22136 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
22137 (clear_unused_block_pointer): Remove code dealing with
22138 blocks in DECL_DEBUG_EXPR locations.
22139
839b422f
RB
221402013-03-21 Richard Biener <rguenther@suse.de>
22141
22142 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
22143 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
22144 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
22145 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
22146 instead of DECL_DEBUG_EXPR_IS_FROM.
22147 * gimplify.c (gimplify_modify_expr): Likewise.
22148 * tree-cfg.c (verify_expr_location_1): Likewise.
22149 * tree-complex.c (create_one_component_var): Likewise.
22150 * tree-sra.c (create_access_replacement): Likewise.
22151 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
22152 (clear_unused_block_pointer): Likewise.
22153 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
22154 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22155 * var-tracking.c (var_debug_decl): Likewise.
22156 (track_expr_p): Likewise.
22157 * tree-inline.c (add_local_variables): Likewise. Set
22158 DECL_HAS_DEBUG_EXPR_P after copying it.
22159 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
22160 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
22161
fe04878d
UB
221622013-03-21 Uros Bizjak <ubizjak@gmail.com>
22163
22164 PR bootstrap/56656
22165 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
22166 * configure: Regenerate.
22167 * config.in: Regenerate.
22168 * config/i386/i386.md (*movdf_internal): Use
22169 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
22170 movd instead of movq mnemonic for interunit moves.
22171 (*movdi_internal): Ditto.
22172
bd059b26 221732013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
22174
22175 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
22176 (abd<mode>_3): New pattern.
22177 (aba<mode>_3): New pattern.
22178 (fabd<mode>_3): New pattern.
22179
bd059b26 221802013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
22181
22182 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
22183 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
22184 occurrence of REGISTER_PREFIX as its empty string.
22185
4f1f78b9
JL
221862013-03-20 Jeff Law <law@redhat.com>
22187
22188 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
22189 addititional equivalences for equality comparisons between an SSA_NAME
22190 and a constant where the SSA_NAME was set from a widening conversion.
22191
327a1118
WL
221922013-03-20 Walter Lee <walt@tilera.com>
22193
22194 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
22195
813e0036
UB
221962013-03-20 Uros Bizjak <ubizjak@gmail.com>
22197
22198 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
22199 depending on type attribute.
22200 (*movti_internal): Ditto.
22201 (*movtf_internal): Ditto.
22202 (*movxf_internal): Ditto.
22203 (*movdf_internal): Ditto.
22204 (*movsf_internal): Ditto.
22205
7cf34aae
UB
222062013-03-20 Uros Bizjak <ubizjak@gmail.com>
22207
22208 * config/i386/i386.md (*movti_internal): Set prefix attribute to
22209 maybe_vex for sselog1 and ssemov types.
22210 (*movdi_internal): Reorder operand constraints.
22211 (*movsi_internal): Ditto. Set prefix attribute to
22212 maybe_vex for sselog1 and ssemov types.
22213 (*movtf_internal): Set prefix attribute to maybe_vex
22214 for sselog1 and ssemov types.
22215 (*movdf_internal): Ditto. Set prefix_data16 attribute for
22216 DImode ssemov types. Reorder operand constraints.
22217 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
22218 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
22219 attribute for SImode ssemov types. Reorder operand constraints.
22220
19321415
MJ
222212013-03-20 Martin Jambor <mjambor@suse.cz>
22222
22223 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
22224 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
22225
12211b99 222262013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
22227
22228 * config/rs6000/predicates.md (indexed_address, update_address_mem
22229 update_indexed_address_mem): New predicates.
22230 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
22231 attribute for load/store instructions.
22232 * config/rs6000/dfp.md (movsd_store): Likewise.
22233 (movsd_load): Likewise.
22234 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
22235 (unnamed HI->DI extend define_insn): Likewise.
22236 (unnamed SI->DI extend define_insn): Likewise.
22237 (unnamed QI->SI extend define_insn): Likewise.
22238 (unnamed QI->HI extend define_insn): Likewise.
22239 (unnamed HI->SI extend define_insn): Likewise.
22240 (unnamed HI->SI extend define_insn): Likewise.
22241 (extendsfdf2_fpr): Likewise.
22242 (movsi_internal1): Likewise.
22243 (movsi_internal1_single): Likewise.
22244 (movhi_internal): Likewise.
22245 (movqi_internal): Likewise.
22246 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
22247 attribute for load/store instructions.
22248 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
22249 instructions.
22250 (mov<mode>_softfloat): Likewise.
22251 (mov<mode>_hardfloat32): Likewise.
22252 (mov<mode>_hardfloat64): Likewise.
22253 (mov<mode>_softfloat64): Likewise.
22254 (movdi_internal32): Likewise.
22255 (movdi_internal64): Likewise.
22256 (probe_stack_<mode>): Likewise.
22257
222582013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
22259
22260 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
22261 floating point, and decimal floating point to reload iterator.
22262
22263 * config/rs6000/constraints.md (wl constraint): New constraints to
22264 return FLOAT_REGS if certain options are used to reduce the number
22265 of separate patterns that exist in the file.
22266 (wx constraint): Likewise.
22267 (wz constraint): Likewise.
22268
22269 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22270 -mdebug=reg, print wg, wl, wx, and wz constraints.
22271 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
22272 Initialize the reload functions for 64-bit binary/decimal floating
22273 point types.
22274 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
22275 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
22276 create the buffer on the stack to overcome not having a 32-bit
22277 load and store.
22278 (rs6000_emit_move): Likewise.
22279 (rs6000_secondary_memory_needed_rtx): Likewise.
22280 (rs6000_alloc_sdmode_stack_slot): Likewise.
22281 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
22282 via xxlxor, just like DFmode 0.0.
22283
22284 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
22285 define as 1 if we are running on a power7 or newer.
22286 (enum r6000_reg_class_enum): Add new constraints.
22287
22288 * config/rs6000/dfp.md (movsd): Delete, combine with binary
22289 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
22290 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 22291 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
22292 (movsd splitter): Likewise.
22293 (movsd_hardfloat): Likewise.
22294 (movsd_softfloat): Likewise.
22295
22296 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
22297 binary and decimal floating point moves.
22298 (fmove_ok): New attributes to combine binary and decimal floating
22299 point moves, and to combine power6x (mfpgpr) moves along normal
22300 floating moves.
22301 (real_value_to_target): Likewise.
22302 (f32_lr): Likewise.
22303 (f32_lm): Likewise.
22304 (f32_li): Likewise.
22305 (f32_sr): Likewise.
22306 (f32_sm): Likewise.
22307 (f32_si): Likewise.
22308 (movsf): Combine binary and decimal floating point moves. Combine
22309 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 22310 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
22311 (mov<mode> for SFmode/SDmode); Likewise.
22312 (SFmode/SDmode splitters): Likewise.
22313 (movsf_hardfloat): Likewise.
22314 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
22315 (movsf_softfloat): Likewise.
22316 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
22317
22318 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
22319 wx and wz constraints.
22320
22321 * config/rs6000/constraints.md (wg constraint): New constraint to
22322 return FLOAT_REGS if -mmfpgpr (power6x) was used.
22323
22324 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
22325 constraint.
22326
22327 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22328 -mdebug=reg, print wg, wl, wx, and wz constraints.
22329 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
22330 Initialize the reload functions for 64-bit binary/decimal floating
22331 point types.
22332 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
22333 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
22334 create the buffer on the stack to overcome not having a 32-bit
22335 load and store.
22336 (rs6000_emit_move): Likewise.
22337 (rs6000_secondary_memory_needed_rtx): Likewise.
22338 (rs6000_alloc_sdmode_stack_slot): Likewise.
22339 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
22340 via xxlxor, just like DFmode 0.0.
22341
c6d5ff83
MM
22342 * config/rs6000/dfp.md (movdd): Delete, combine with binary
22343 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
22344 with other moves by using conditional constraits (wg). Use LFIWZX
22345 and STFIWX for loading SDmode on power7.
22346 (movdd splitters): Likewise.
22347 (movdd_hardfloat32): Likewise.
22348 (movdd_softfloat32): Likewise.
22349 (movdd_hardfloat64_mfpgpr): Likewise.
22350 (movdd_hardfloat64): Likewise.
22351 (movdd_softfloat64): Likewise.
22352
22353 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
22354 64-bit binary and decimal floating point moves.
22355 (FMOVE64X): Likewise.
22356 (movdf): Combine 64-bit binary and decimal floating point moves.
22357 Combine power6x (mfpgpr) moves with other moves by using
22358 conditional constraits (wg).
22359 (mov<mode> for DFmode/DDmode): Likewise.
22360 (DFmode/DDmode splitters): Likewise.
22361 (movdf_hardfloat32): Likewise.
22362 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
22363 (movdf_softfloat32): Likewise.
22364 (movdf_hardfloat64_mfpgpr): Likewise.
22365 (movdf_hardfloat64): Likewise.
22366 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
22367 (movdf_softfloat64): Likewise.
22368 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
22369 (reload_<mode>_load): Move to later in the file so they aren't in
22370 the middle of the floating point move insns.
22371 (reload_<mode>_store): Likewise.
22372
22373 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
22374 constraint.
22375
22376 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
22377 constraint if -mdebug=reg.
bd059b26
UB
22378 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
22379 Enable using dd reload support if needed.
c6d5ff83
MM
22380
22381 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
22382 binary and decimal floating point moves in rs6000.md.
22383 (movtd_internal): Likewise.
22384
22385 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
22386 decimal floating point moves.
22387 (movtf): Likewise.
22388 (movtf_internal): Likewise.
22389 (mov<mode>_internal, TDmode/TFmode): Likewise.
22390 (movtf_softfloat): Likewise.
22391 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
22392
22393 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
22394 movdi_internal64, using wg constraint for move direct operations.
22395 (movdi_internal64): Likewise.
22396
22397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
22398 MODES_TIEABLE_P for selected modes. Print the numerical value of
22399 the various virtual registers. Use GPR/FPR first/last values,
22400 instead of hard coding the register numbers. Print which modes
22401 have reload functions registered.
bd059b26
UB
22402 (rs6000_option_override_internal): If -mdebug=reg, trace the options
22403 settings before/after setting cpu, target and subtarget settings.
22404 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
22405 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
22406 (rs6000_secondary_reload_fail): Likewise.
22407 (rs6000_secondary_reload_inner): Likewise.
22408
22409 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
22410 macros for first/last GPR and FPR registers.
22411 (LAST_GPR_REGNO): Likewise.
22412 (FIRST_FPR_REGNO): Likewise.
22413 (LAST_FPR_REGNO): Likewise.
22414
22415 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
22416 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
22417 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
22418 (vcond<mode><mode>): Likewise.
22419 (vcondu<mode><mode>): Likewise.
22420 (vector_gtu<mode>): Likewise.
22421 (vector_gte<mode>): Likewise.
22422 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 22423 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
22424 (ior<mode>3): Likewise.
22425 (and<mode>3): Likewise.
22426 (one_cmpl<mode>2): Likewise.
22427 (nor<mode>3): Likewise.
22428 (andc<mode>3): Likewise.
22429
22430 * config/rs6000/constraints.md (wt constraint): New constraint
22431 that returns VSX_REGS if TImode is allowed in VSX registers.
22432
22433 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
22434 constant under VSX.
22435
22436 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
22437 similar to TImode, but it is restricted to being in the GPRs.
22438
22439 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
22440 TImode to occupy a single VSX register.
22441
22442 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
22443 -mvsx-timode for power7/power8.
22444 (power7 cpu): Likewise.
22445 (power8 cpu): Likewise.
22446
22447 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
22448 sure that TFmode/TDmode take up two registers if they are ever
22449 allowed in the upper VSX registers.
22450 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
22451 registers.
22452 (rs6000_init_hard_regno_mode_ok): Likewise.
22453 (rs6000_debug_reg_global): Add debugging for PTImode and wt
22454 constraint. Print if LRA is turned on.
22455 (rs6000_option_override_internal): Give an error if -mvsx-timode
22456 and VSX is not enabled.
22457 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
22458 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
22459 to reg+offset addressing. Use PTImode when checking offset
22460 addresses for validity.
22461 (reg_offset_addressing_ok_p): Likewise.
22462 (rs6000_legitimate_offset_address_p): Likewise.
22463 (rs6000_legitimize_address): Likewise.
22464 (rs6000_legitimize_reload_address): Likewise.
22465 (rs6000_legitimate_address_p): Likewise.
22466 (rs6000_eliminate_indexed_memrefs): Likewise.
22467 (rs6000_emit_move): Likewise.
22468 (rs6000_secondary_reload): Likewise.
22469 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
22470 reloads to fpr registers to continue to use reg+offset addressing,
22471 but 64-bit reloads to altivec registers need reg+reg addressing.
22472 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
22473 it. Treat LO_SUM like a PLUS operation.
22474 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 22475 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
22476 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
22477 registers to share a register with a smaller sized type, since VSX
22478 puts scalars in the upper 64-bits.
22479 (print_operand): Add support for PTImode.
22480 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
22481 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
22482 registers, but don't have arithmetic support.
22483 (rs6000_memory_move_cost): Add test for VSX.
22484 (rs6000_opt_masks): Add -mvsx-timode.
22485
22486 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
22487 for TImode.
22488 (VSs): Likewise.
22489 (VSr): Use wt constraint for TImode.
22490 (VSv): Drop TImode support.
22491 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
22492 (vsx_movti_64bit): Likewise.
22493 (vsx_movti_32bit): Likewise.
22494 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
22495 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
22496 one '?' on the appropriate output constraint. Do not allow TImode
22497 logical operations on 32-bit systems.
22498 (vsx_ior<mode>3): Likewise.
22499 (vsx_xor<mode>3): Likewise.
22500 (vsx_one_cmpl<mode>2): Likewise.
22501 (vsx_nor<mode>3): Likewise.
22502 (vsx_andc<mode>3): Likewise.
22503 (vsx_concat_<mode>): Likewise.
22504 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
22505
22506 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
22507 OPTION_MASK_VSX_TIMODE.
22508 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
22509 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
22510
22511 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
22512 (TI2 iterator): New iterator for TImode, PTImode.
22513 (wd mode attribute): Add values for vector types.
bd059b26
UB
22514 (movti_string): Replace TI move operations with operations for TImode
22515 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
22516 (mov<mode>_string, TImode/PTImode): Likewise.
22517 (movti_ppc64): Likewise.
22518 (mov<mode>_ppc64, TImode/PTImode): Likewise.
22519 (TI mode splitters): Likewise.
22520
22521 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
22522 constraint.
22523
1fc5eced
MG
225242013-03-20 Marc Glisse <marc.glisse@inria.fr>
22525
22526 PR tree-optimization/56355
22527 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
22528 Also handle integers with undefined overflow.
22529
22c4c869
CM
225302013-03-20 Catherine Moore <clm@codesourcery.com>
22531 Maciej W. Rozycki <macro@codesourcery.com>
22532 Tom de Vries <tom@codesourcery.com>
12211b99 22533 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
22534 Iain Sandoe <iain@codesourcery.com>
22535 Nathan Froyd <froydnj@codesourcery.com>
12211b99 22536 Chao-ying Fu <fu@mips.com>
22c4c869
CM
22537
22538 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 22539 Document new function attributes.
22c4c869
CM
22540 * doc/invoke.texi (minterlink-compressed, mmicromips,
22541 m14k, m14ke, m14kec): Document new options.
22542 (minterlink-mips16): Update documentation.
22543 * doc/md.texi (ZC, ZD): Document new constraints.
22544 * configure.ac (gcc_cv_as_micromips): Check if linker
22545 supports the .set micromips directive.
22546 * configure: Regenerate.
22547 * config.in: Regenerate.
22548 * config/mips/mips-tables.opt: Regenerate.
22549 * config/mips/micromips.md: New file.
22550 * constraints.md (ZC, ZD): New constraints.
22551 * config/mips/predicates.md (movep_src_register): New predicate.
22552 (movep_src_operand): New predicate.
22553 (non_volatile_mem_operand): New predicate.
22554 * config/mips/mips.md (multimem): New type.
22555 (length): Differentiate between 17-bit and 18-bit branch offsets.
22556 (MOVEP1, MOVEP2): New mode iterator.
33159866 22557 (mov_<load>l): Use ZC constraint.
22c4c869
CM
22558 (mov_<load>r): Likewise.
22559 (mov_<store>l): Likewise.
22560 (mov_<store>r): Likewise.
22561 (*branch_equality<mode>_inverted): Add microMIPS support.
22562 (*branch_equality<mode>): Likewise.
22563 (*jump_absolute): Likewise.
22564 (indirect_jump_<mode>): Likewise.
22565 (tablejump_<mode>): Likewise.
22566 (<optab>_internal): Likewise.
22567 (sibcall_internal): Likewise.
22568 (sibcall_value_internal): Likewise.
22569 (prefetch): Use constraint ZD.
22570 * config/mips/mips.opt (minterlink-compressed): New option.
22571 (minterlink-mips16): Now an alias for minterlink-compressed.
22572 (mmicromips): New option.
22573 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
22574 (compare_and_swap_12): Likewise.
22575 (sync_add<mode>): Likewise.
22576 (sync_<optab>_12): Likewise.
22577 (sync_old_<optab>_12): Likewise.
22578 (sync_new_<optab>_12): Likewise.
22579 (sync_nand_12): Likewise.
22580 (sync_old_nand_12): Likewise.
22581 (sync_new_nand_12): Likewise.
22582 (sync_sub<mode>): Likewise.
22583 (sync_old_add<mode>): Likewise.
22584 (sync_old_sub<mode>): Likewise.
22585 (sync_new_add<mode>): Likewise.
22586 (sync_new_sub<mode>): Likewise.
22587 (sync_<optab><mode>): Likewise.
22588 (sync_old_<optab><mode>): Likewise.
22589 (sync_new_<optab><mode>): Likewise.
22590 (sync_nand<mode>): Likewise.
22591 (sync_old_nand<mode>): Likewise.
22592 (sync_new_nand<mode>): Likewise.
22593 (sync_lock_test_and_set<mode>): Likewise.
22594 (test_and_set_12): Likewise.
22595 (atomic_compare_and_swap<mode>): Likewise.
22596 (atomic_exchange<mode>_llsc): Likewise.
22597 (atomic_fetch_add<mode>_llsc): Likewise.
22598 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
22599 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
22600 (umips_save_restore_pattern_p): Likewise.
22601 (umips_load_store_pair_p): Likewise.
22602 (umips_output_load_store_pair): Likewise.
22603 (umips_movep_target_p): Likewise.
22604 (umips_12bit_offset_address_p): Likewise.
22605 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
22606 (mips_base_mips16): Rename this...
22607 (mips_base_compression_flags): ...to this. Update all uses.
22608 (mips_attribute_table): Add micromips, nomicromips and nocompression.
22609 (mips_mips16_decl_p): Delete.
22610 (mips_nomips16_decl_p): Delete.
33159866 22611 (mips_get_compress_on_flags): New function.
22c4c869
CM
22612 (mips_get_compress_off_flags): New function.
22613 (mips_get_compress_mode): New function.
22614 (mips_get_compress_on_name): New function.
22615 (mips_get_compress_off_name): New function.
22616 (mips_insert_attributes): Support multiple compression types.
22617 (mips_merge_decl_attributes): Likewise.
22618 (umips_12bit_offset_address_p): New function.
22619 (mips_start_function_definition): Emit .set micromips directive.
22620 (mips_call_may_need_jalx_p): New function.
22621 (mips_function_ok_for_sibcall): Add microMIPS support.
22622 (mips_print_operand_punctuation): Support short delay slots and
22623 compact jumps.
22624 (umips_swm_mask, umips_swm_encoding): New.
22625 (umips_build_save_restore): New function.
22626 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
22627 (was_mips16_p): Remove.
22628 (old_compression_mode): New.
22629 (mips_set_compression_mode): New function.
22630 (mips_set_current_function): Add microMIPS support.
22631 (mips_option_override): Likewise.
22632 (umips_save_restore_pattern_p): New function.
22633 (umips_output_save_restore): New function.
22634 (umips_load_store_pair_p_1): New function.
22635 (umips_load_store_pair_p): New function.
22636 (umips_output_load_store_pair_1): New function.
22637 (umips_output_load_store_pair): New function.
22638 (umips_movep_target_p) New function.
22639 (mips_prepare_pch_save): Add microMIPS support.
22640 * config/mips/mips.h (TARGET_COMPRESSION): New.
22641 (TARGET_CPU_CPP_BUILTINS): Update macro
22642 to use new compression flags and to support microMIPS.
22643 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
22644 (MIPS_ARCH_FLOAT_SPEC): Likewise.
22645 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
22646 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
22647 (ASM_SPEC): Support mmicromips and mno-micromips.
22648 (M16STORE_REG_P): New macro.
22649 (MIPS_CALL): Support TARGET_MICROMIPS.
22650 (MICROMIPS_J): New macro.
22651 (mips_base_mips16): Rename this...
22652 (mips_base_compression_flags): ...to this.
22653 (UMIPS_12BIT_OFFSET_P): New macro.
22654 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
22655 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
226562013-03-20 Richard Biener <rguenther@suse.de>
22657
22658 PR tree-optimization/56661
22659 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
22660 the result does not have to be distinct.
22661
54714c68
RB
226622013-03-20 Richard Biener <rguenther@suse.de>
22663
22664 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
22665 remap_gimple_op_r.
22666
cca1130d 226672013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 22668 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
22669
22670 PR rtl-optimization/56605
22671 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
22672
2a930377
UB
226732013-03-20 Uros Bizjak <ubizjak@gmail.com>
22674
22675 PR bootstrap/56656
22676 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
22677 that require movd instead of movq.
22678
d6d305fe
RB
226792013-03-20 Richard Biener <rguenther@suse.de>
22680
22681 * tree-ssa-structalias.c (struct variable_info): Add pointer
22682 to the first field of an aggregate with sub-vars. Make
22683 this and the pointer to the next subfield its ID.
22684 (vi_next): New function.
22685 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
22686 storedanything_id, integer_id): Increment by one.
22687 (new_var_info, get_call_vi, lookup_call_clobber_vi,
22688 get_call_clobber_vi): Adjust.
22689 (solution_set_expand): Simplify and speedup.
22690 (solution_set_add): Inline into ...
22691 (set_union_with_increment): ... this. Adjust accordingly.
22692 (do_sd_constraint): Likewise.
22693 (do_ds_constraint): Likewise.
22694 (do_complex_constraint): Simplify.
22695 (build_pred_graph): Adjust.
22696 (solve_graph): Likewise. Simplify and speedup.
22697 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
22698 get_constraint_for_component_ref, get_constraint_for_1,
22699 first_vi_for_offset, first_or_preceding_vi_for_offset,
22700 create_function_info_for, create_variable_info_for_1,
22701 create_variable_info_for, intra_create_variable_infos): Adjust.
22702 (init_base_vars): Push NULL for ID zero.
22703 (compute_points_to_sets): Adjust.
22704
a271b42d
RB
227052013-03-20 Richard Biener <rguenther@suse.de>
22706
22707 * cfgloop.c (verify_loop_structure): Streamline and avoid
22708 ICEing on corrupt loop tree.
22709 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
22710 loop tree.
22711
ebd65954
RB
227122013-03-20 Richard Biener <rguenther@suse.de>
22713
22714 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
22715 check whether an SSA update is needed.
22716
4547b7ee
RS
227172013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
22718
22719 * config/mips/constraints.md (T): Rename to...
22720 (Yf): ...this.
22721 (U): Rename to...
22722 (Yd): ...this.
22723 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
22724 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
22725
0b8cdc58
IB
227262013-03-19 Ian Bolton <ian.bolton@arm.com>
22727
22728 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
22729 (*subsi3_carryin_uxtw): Likewise.
22730
5977a10d
IB
227312013-03-19 Ian Bolton <ian.bolton@arm.com>
22732
22733 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
22734 (*rorsi3_insn_uxtw): Likewise.
22735
bd83ff2c
IB
227362013-03-19 Ian Bolton <ian.bolton@arm.com>
22737
22738 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
22739 (*extrsi5_insn_uxtw): Likewise.
22740
ba65123c
RB
227412013-03-19 Richard Biener <rguenther@suse.de>
22742
22743 PR tree-optimization/56273
22744 * passes.c (init_optimization_passes): Move second VRP after DOM.
22745
2eac0476
UB
227462013-03-19 Uros Bizjak <ubizjak@gmail.com>
22747
22748 * config/i386/i386.md (*movti_internal): Merge from
22749 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
22750 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
22751 nox64 isa attributes.
22752
6e55eda7
RB
227532013-03-18 Richard Biener <rguenther@suse.de>
22754
22755 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
22756 (unite): Likewise.
22757 (merge_node_constraints): Likewise.
22758 (build_succ_graph): Likewise.
22759 (valid_graph_edge): Inline into single caller.
22760 (unify_nodes): Likewise. Use bitmap_set_bit return value
22761 and cache varinfo.
22762 (scc_visit): Fix formatting and variable use.
22763 (do_sd_constraint): Use gcc_checking_assert.
22764 (do_ds_constraint): Likewise.
22765 (do_complex_constraint): Likewise.
22766 (condense_visit): Likewise. Cleanup.
22767 (dump_pred_graph): New function.
22768 (perform_var_substitution): Dump the pred-graph before
22769 variable substitution.
22770 (find_equivalent_node): Use gcc_checking_assert.
22771 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
22772
4bdd44c4
RB
227732013-03-18 Richard Biener <rguenther@suse.de>
22774
22775 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22776 Remove cond_expr_stmt_list argument and do not gimplify the
22777 built expression.
22778 (vect_loop_versioning): Adjust.
22779 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22780 Cleanup to use less temporaries.
22781 (vect_create_data_ref_ptr): Cleanup.
22782
38c56a5b
JJ
227832013-03-18 Jakub Jelinek <jakub@redhat.com>
22784
22785 PR tree-optimization/56635
22786 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
22787 require types_compatible_p types.
22788
20b2e6a0
NC
227892013-03-18 Nick Clifton <nickc@redhat.com>
22790
a6178a25
NC
22791 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
22792 spurious backslash.
22793
20b2e6a0
NC
22794 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
22795 Add missing line to comment describing function.
22796
92608d0e
RB
227972013-03-18 Richard Biener <rguenther@suse.de>
22798
22799 PR tree-optimization/56210
22800 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22801 Handle string / character search functions.
22802 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22803
31348d52
RB
228042013-03-18 Richard Biener <rguenther@suse.de>
22805
22806 PR middle-end/56483
22807 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
22808 and implement properly.
22809 * gimple.h (gimple_cond_single_var_p): Remove.
22810
fcac74a1
RB
228112013-03-18 Richard Biener <rguenther@suse.de>
22812
22813 * tree-data-ref.h (find_data_references_in_loop): Declare.
22814 * tree-data-ref.c (get_references_in_stmt): Use a stack
22815 vector pre-allocated in the callers.
22816 (find_data_references_in_stmt): Adjust.
22817 (graphite_find_data_references_in_stmt): Likewise.
22818 (create_rdg_vertices): Likewise.
22819 (find_data_references_in_loop): Export.
22820 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
22821 Compute dependences here...
22822 (vect_analyze_data_refs): ...not here. When we encounter
22823 a non-vectorizable data reference in basic-block vectorization
22824 truncate the data reference vector. Do not bother to
22825 fixup data-dependence information for gather loads.
22826 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
22827 of data references, as reported.
22828
0d5a1b56
RB
228292013-03-18 Richard Biener <rguenther@suse.de>
22830
22831 PR tree-optimization/3713
22832 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
22833 has_constants and expr.
22834 (stmt_has_constants): Properly valueize SSA names when deciding
22835 whether the stmt has constants.
22836
789c34e3
RB
228372013-03-18 Richard Biener <rguenther@suse.de>
22838
22839 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
22840 whole function when there is nothing to do.
22841 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
22842 * tree-vectorizer.c (vectorize_loops): Update virtual and
22843 loop-closed SSA once.
22844 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
22845
076b4605
RB
228462013-03-18 Richard Biener <rguenther@suse.de>
22847
22848 PR middle-end/56113
22849 * domwalk.c (bb_postorder): New global static.
22850 (cmp_bb_postorder): New function.
22851 (walk_dominator_tree): Replace scheme imposing an order for
22852 visiting dominator sons by one sorting them at the time they
22853 are pushed on the stack.
22854
bdb01696
RB
228552013-03-18 Richard Biener <rguenther@suse.de>
22856
22857 PR tree-optimization/39326
22858 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
22859 (struct mem_ref): Replace mem member with ao_ref typed member.
22860 (MEM_ANALYZABLE): Adjust.
22861 (memref_eq): Likewise.
22862 (mem_ref_alloc): Likewise.
22863 (gather_mem_refs_stmt): Likewise.
22864 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
22865 (execute_sm_if_changed_flag_set): Adjust.
22866 (execute_sm): Likewise.
22867 (ref_always_accessed_p): Likewise.
22868 (refs_independent_p): Likewise.
22869 (can_sm_ref_p): Likewise.
22870
12d2dc5e
JJ
228712013-03-18 Jakub Jelinek <jakub@redhat.com>
22872
22873 PR c/56566
22874 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
22875 return 1 even for !unsignedp.
22876
286fb677
UB
228772013-03-17 Uros Bizjak <ubizjak@gmail.com>
22878
22879 * config/i386/i386.md (isa): Add x64 and nox64.
22880 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
22881 (*pushtf): Enable *roF alternative for x64 isa only.
22882 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
22883 mode attribute of integer alternatives to DImode for TARGET_64BIT.
22884 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
22885 (*movtf_internal): Merge from *movtf_internal_rex64 and
22886 *movtf_internal_sse. Use x64 and nox64 isa attributes.
22887 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
22888 nox64 isa attributes.
22889 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
22890 nox64 isa attributes.
22891 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
22892
88b97037
UB
228932013-03-17 Uros Bizjak <ubizjak@gmail.com>
22894
22895 * config/alpha/alpha.c (TARGET_LRA_P): New define.
22896
9f4f1735
JJ
228972013-03-17 Jakub Jelinek <jakub@redhat.com>
22898
22899 PR target/56640
22900 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
22901 class names. Remove trailing comma after "ALL_REGS".
22902
48f4a6fa
JH
229032013-03-16 Jan Hubicka <jh@suse.cz>
22904
22905 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
22906 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
22907 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
22908 of cgraph_get_create_node.
22909 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22910
98e81123
JM
229112013-03-16 Jason Merrill <jason@redhat.com>
22912
22913 PR debug/49090
22914 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
22915 with DW_AT_default_value.
22916
8a298c04
JJ
229172013-03-16 Jakub Jelinek <jakub@redhat.com>
22918
22919 * BASE-VER: Set to 4.9.0.
22920
4323afa0
AK
229212013-03-14 Andi Kleen <ak@linux.intel.com>
22922
22923 PR target/56619
22924 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
22925 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
22926 Document _x* TSX intrinsics.
22927
b3c0d469
JJ
229282013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22929 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
22930
22931 * configure.ac: Add MicroBlaze TLS support detection.
22932 * configure: Regenerate.
88b97037
UB
22933 * config/microblaze/microblaze-protos.h
22934 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
22935 symbol_mentioned_p, label_mentioned_p): Add prototypes.
22936 * config/microblaze/microblaze.c (microblaze_address_type): Add
22937 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
22938 (microblaze_address_info): Add tls_reloc.
22939 (TARGET_HAVE_TLS): Define.
22940 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
22941 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
22942 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
22943 load_tls_operand, microblaze_call_tls_get_addr,
22944 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
22945 (microblaze_classify_unspec): Handle UNSPEC_TLS.
22946 (get_base_reg): Use microblaze_tls_symbol_p.
22947 (microblaze_classify_address): Handle TLS.
88b97037
UB
22948 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
22949 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
22950 (microblaze_legitimize_address): Handle TLS.
22951 (microblaze_address_insns): Handle ADDRESS_TLS.
22952 (pic_address_needs_scratch): Handle TLS.
22953 (print_operand_address): Handle TLS.
22954 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
22955 (microblaze_expand_move): Handle TLS.
88b97037
UB
22956 (microblaze_legitimate_constant_p): Check
22957 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
22958 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
22959 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
22960 (PIC_OFFSET_TABLE_REGNUM): Set.
22961 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
22962 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
22963 (addsi3, movsi_internal2, movdf_internal): Update constraints
22964 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
22965 (move_operand): Redefine as move_src_operand,
22966 check microblaze_tls_referenced_p.
8cc9a5a5 22967
d803a491
IB
229682013-03-14 Ian Bolton <ian.bolton@arm.com>
22969
22970 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
22971 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
22972
a8504f22
IB
229732013-03-14 Ian Bolton <ian.bolton@arm.com>
22974
22975 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
22976 CC mode for AND.
22977
df2dfaea
JJ
229782013-03-14 Jakub Jelinek <jakub@redhat.com>
22979
fbd28bc3
JJ
22980 PR tree-optimization/53265
22981 * common.opt (Waggressive-loop-optimizations): New option.
22982 * tree-ssa-loop-niter.c: Include tree-pass.h.
22983 (do_warn_aggressive_loop_optimizations): New function.
22984 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
22985 if number_of_latch_executions returned constant.
22986 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
22987 early. If number_of_latch_executions returned constant, set
22988 nb_iterations_upper_bound back to it.
22989 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
22990 field.
22991 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
22992 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
22993
df2dfaea
JJ
22994 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
22995 (MULTILIB_OSDIRNAMES): Set.
22996 * genmultilib: If defaultosdirname doesn't start with :: , set
22997 defaultosdirname2 instead, clear it and emit two . multilib_raw
22998 entries instead of just one.
22999
ee0d2b68
KK
230002013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
23001
23002 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
23003 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
23004 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
23005 (SUBTARGET_OVERRIDE_OPTIONS): New.
23006
decc676e
OE
230072013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
23008
23009 PR target/49880
23010 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
23011 (musermode): Convert to Var(TARGET_USERMODE).
23012 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
23013 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
23014 * config/sh/sh.c (sh_option_override): Use
23015 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
23016 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
23017 condition.
23018 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
23019 TARGET_SH4.
23020 (udivsi3_i4_single, divsi3_i4_single): Use
23021 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
23022
f4b719c7
DK
230232013-03-13 Dave Korn <dave.korn.cygwin@....>
23024
23025 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
23026 default setting.
23027
c40eced0
RB
230282013-03-13 Richard Biener <rguenther@suse.de>
23029
23030 PR tree-optimization/56608
23031 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
23032 calls when vectorizing basic-blocks.
23033
1bfa5973
JJ
230342013-03-13 Jakub Jelinek <jakub@redhat.com>
23035
23036 PR plugins/45078
23037 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
23038 tm_file.
23039
6fcf5434
JJ
230402013-03-12 Jakub Jelinek <jakub@redhat.com>
23041
23042 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
23043
4f38fa8c
JH
230442013-03-11 Jan Hubicka <jh@suse.cz>
23045
23046 PR lto/56557
23047 * lto-streamer-out.c (output_symbol_p): Skip references from
23048 constructors of external variables.
23049
c5c5ba89
JH
230502013-03-11 Jan Hubicka <jh@suse.cz>
23051
23052 PR middle-end/56571
23053 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
23054 from pseudos.
23055 * emit-rtl.c (verify_rtx_sharing): Likewise.
23056 (copy_insn_1): Likewise.
23057 * rtl.c (copy_rtx): Likewise.
23058
c2a939b1
GJL
230592013-03-11 Georg-Johann Lay <avr@gjlay.de>
23060
23061 PR target/56591
23062 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
23063 output_operand_lossage message.
88b97037 23064
3c3279fb
RE
230652013-03-11 Richard Earnshaw <rearnsha@arm.com>
23066
23067 PR target/56470
23068 * arm.c (shift_op): Validate RTL pattern on the fly.
23069 (arm_print_operand, case 'S'): Don't use shift_operator to validate
23070 the RTL.
23071
aef5ef9d
JDA
230722013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23073
23074 PR target/56347
23075 * config/pa/pa.md (call_value): Check for calls to powf and direct to
23076 new call patterns that clobber %fr12.
23077 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
23078 split and postreload patterns.
23079 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
23080 registers %fr12 and %fr12R as call used.
23081
456610d3
SB
230822013-03-09 Steven Bosscher <steven@gcc.gnu.org>
23083
23084 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
23085 (canon_address, record_store, replace_read, check_mem_read_rtx,
23086 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
23087 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
23088 rest_of_handle_dse): Likewise.
23089
4b1baac8
RS
230902013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
23091
23092 PR middle-end/56524
23093 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
23094 Add base_optabs.
23095 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
23096 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
23097 (save_optabs_if_changed): Replace with...
23098 (init_tree_optimization_optabs): ...this.
23099 * optabs.c (save_optabs_if_changed): Rename to...
23100 (init_tree_optimization_optabs): ...this. Take the optimization node
23101 as argument. Do nothing if the base optabs are already correct.
23102 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
23103 to recompute optabs.
23104 * function.h (function): Remove optabs field.
23105 * function.c (invoke_set_current_function_hook): Call
23106 init_tree_optimization_optabs. Use the result to initialize
23107 this_fn_optabs.
23108
b7a78683
AH
231092013-02-27 Aldy Hernandez <aldyh@redhat.com>
23110
23111 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
23112 if GTMA_HAS_NO_INSTRUMENTATION.
23113 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
23114 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
23115 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
23116 * gimple-pretty-print.c (dump_gimple_transaction): Handle
23117 GTMA_HAS_NO_INSTRUMENTATION.
23118
6384c29b
JJ
231192013-03-08 Jakub Jelinek <jakub@redhat.com>
23120
23121 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
23122 libasan_preinit.o.
23123
ecd4f20a
MP
231242013-03-08 Marek Polacek <polacek@redhat.com>
23125 Jakub Jelinek <jakub@redhat.com>
23126
23127 PR tree-optimization/56478
23128 * predict.c (is_comparison_with_loop_invariant_p): Change the
23129 type of loop_step to tree.
23130 (predict_loops): Adjust.
23131 (predict_iv_comparison): Perform the computations on double_ints.
23132
64366d35
RB
231332013-03-08 Richard Biener <rguenther@suse.de>
23134
23135 PR tree-optimization/56570
23136 * tree-cfg.c (verify_expr_location_1): Verify locations for
23137 DECL_DEBUG_EXPR.
23138 * tree-sra.c (create_access_replacement): Strip locations
23139 from DECL_DEBUG_EXPRs.
23140
a9d5a059
RB
231412013-03-08 Richard Biener <rguenther@suse.de>
23142
23143 * tree-inline.c (expand_call_inline): Do not associate
23144 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
23145 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
23146
b7aa4e9a
RB
231472013-03-08 Richard Biener <rguenther@suse.de>
23148
23149 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
23150 or block changes with -Og. Fix for location / block encoding
23151 changes and PHI arguments with locations.
23152
c4c2f9fa
SB
231532013-03-07 Steven Bosscher <steven@gcc.gnu.org>
23154
23155 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
23156 for all counters.
23157 (struct output_info): Likewise.
23158 (register_overhead): Remove bad gcc_assert.
23159 (bitmap_find_bit): If there is only a single bitmap element, do not
23160 count a miss as a search.
23161 (print_statistics): Update for counter type changes.
23162 (dump_bitmap_statistics): Likewise. Print headers such that they
23163 are properly lined up with the printed counters.
23164
5bf6606a
JJ
231652013-03-07 Jakub Jelinek <jakub@redhat.com>
23166
23167 PR tree-optimization/56559
23168 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
23169 check that it has only a single use.
23170
2c653d46
RB
231712013-03-07 Richard Biener <rguenther@suse.de>
23172
23173 * doc/invoke.texi (fwhole-program): Discourage use in combination
23174 with -flto.
23175
a72d8780
JJ
231762013-03-06 Jakub Jelinek <jakub@redhat.com>
23177
01a454df
JJ
23178 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
23179
c1781047
JJ
23180 PR tree-optimization/56539
23181 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
23182 instead of GSI_CONTINUE_LINKING as last argument to
23183 force_gimple_operand_gsi. Adjust function comment.
23184
9772c47a
JJ
23185 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
23186 aarch64-cores.def.
23187
a72d8780
JJ
23188 PR middle-end/56548
23189 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
23190 promoted mode, convert the result back to the original mode.
23191
fa5556de
RB
231922013-03-06 Richard Biener <rguenther@suse.de>
23193
23194 PR middle-end/56294
23195 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
23196 (insert_updated_phi_nodes_compare_uids): New function.
23197 (update_ssa): Sort symbols_to_rename after UID before
23198 traversing it to insert PHI nodes.
23199
010403d1
RB
232002013-03-06 Richard Biener <rguenther@suse.de>
23201
23202 PR middle-end/50494
23203 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
23204 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
23205
23206 Revert
23207 2013-02-13 Richard Biener <rguenther@suse.de>
23208
23209 PR lto/50494
23210 * varasm.c (output_constant_def_1): Get the decl representing
23211 the constant as argument.
23212 (output_constant_def): Wrap output_constant_def_1.
23213 (make_decl_rtl): Use output_constant_def_1 with the decl
23214 representing the constant.
23215 (build_constant_desc): Optionally re-use a decl already
23216 representing the constant.
23217 (tree_output_constant_def): Adjust.
23218
3c27ce4c
JY
232192013-03-06 Joey Ye <joey.ye@arm.com>
23220
23221 PR lto/50293
23222 * gcc.c (convert_white_space): New function.
23223 (main): Handles white space in function name.
23224
8f6d1c86
OE
232252013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
23226
23227 PR target/56529
23228 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
23229 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
23230 to SH_DIV_CALL_TABLE for TARGET_SH2.
23231 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
23232 list.
23233 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
23234 call-table options.
23235
798a209f
SA
232362013-03-05 Sterling Augustine <saugustine@google.com>
23237 Cary Coutant <ccoutant@google.com>
23238
23239 PR debug/55364
23240 * dwarf2out.c (resolve_addr): Don't call
23241 remove_loc_list_addr_table_entries a second time for the same
23242 expression.
23243
6cfa417f 232442013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 23245
6cfa417f
JJ
23246 PR debug/56510
23247 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
23248 (avoid_complex_debug_insns): New function.
23249 (expand_debug_locations): Call it.
23250
23251 PR rtl-optimization/56484
23252 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
23253 lifetimes of hard registers on small register class machines.
23254
232552013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
23256
23257 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 23258 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 23259 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
23260 fast_interrupt.
23261 (microblaze_fast_interrupt_function_p): New function.
23262 (microblaze_is_interrupt_handler): Rename to
23263 microblaze_is_interrupt_variant and add fast_interrupt check.
23264 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
23265 (save_restore_insns): Likewise.
23266 (compute_frame_size): Likewise.
23267 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
23268 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
23269 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
23270 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
23271 microblaze_is_interrupt_variant.
23272
731aefac
KT
232732013-03-05 Kai Tietz <ktietz@redhat.com>
23274
23275 * sdbout.c (sdbout_one_type): Switch to current function's section
23276 supporting cold/hot.
23277
a72d8780 232782013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
23279
23280 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
23281 -mxl-reorder.
23282
334e71e8
JJ
232832013-03-05 Jakub Jelinek <jakub@redhat.com>
23284
0b50e654
JJ
23285 PR middle-end/56461
23286 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
23287 if VALGRIND_GET_VBITS is defined, temporarily make object
23288 memory all defined, and restore previous valgrind addressability
23289 and definability afterwards. Free this_object at the end.
23290
4ccf8f43
JJ
23291 PR middle-end/56461
23292 * lra.c (lra): Call lra_clear_live_ranges if live_p,
23293 right before calling lra_create_live_ranges, also call it
23294 when clearing live_p. Only call lra_clear_live_ranges
23295 at the end if live_p.
23296
334e71e8
JJ
23297 PR middle-end/56461
23298 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
23299
9ca966ca
RB
233002013-03-05 Richard Biener <rguenther@suse.de>
23301
23302 PR tree-optimization/56521
23303 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
23304 value-id.
23305
d273b176
SB
233062013-03-05 Steven Bosscher <steven@gcc.gnu.org>
23307
23308 PR c++/55135
23309 * except.h (remove_unreachable_eh_regions): New prototype.
23310 * except.c (remove_eh_handler_splicer): New function, split out
23311 of remove_eh_handler.
23312 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
23313 warning about running it on many EH regions one at a time.
23314 (remove_unreachable_eh_regions_worker): New function, walk the
23315 EH tree in depth-first order and remove non-marked regions.
23316 (remove_unreachable_eh_regions): New function.
23317 * tree-eh.c (mark_reachable_handlers): New function, split out
23318 from remove_unreachable_handlers.
23319 (remove_unreachable_handlers): Use mark_reachable_handlers and
23320 remove_unreachable_eh_regions.
23321 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
23322 and remove_unreachable_eh_regions.
23323
5e7f1aef
RB
233242013-03-05 Richard Biener <rguenther@suse.de>
23325
23326 PR middle-end/56525
23327 * loop-init.c (fix_loop_structure): Remove loops in two stages,
23328 not freeing them until the end.
23329
f276b762
AK
233302013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23331
23332 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
23333
12a43ab8
RB
233342013-03-05 Richard Biener <rguenther@suse.de>
23335
23336 PR tree-optimization/56270
23337 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
23338 of loads after scheduling an SLP instance.
23339
93675444
JJ
233402013-03-05 Jakub Jelinek <jakub@redhat.com>
23341
db4138e3
JJ
23342 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
23343 tic6x.exp.
23344 (check_gcc_parallelize): Run guality.exp as a separate job from
23345 vect.exp with unsorted.exp and $(dg_target_exps) separately from
23346 struct-layout-1.exp with stackalign.exp.
23347
dd3d1ec0
JJ
23348 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
23349
b8d381a3
JJ
23350 PR middle-end/56461
23351 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
23352 load_index sbitmap even if some bit in it isn't set.
23353
b4f9786b
JJ
23354 PR middle-end/56461
23355 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
23356 (discover_iteration_bound_by_body_walk): Change queues to
23357 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
23358 spelling in comment. Call safe_push on queues[bound_index] directly.
23359 Release queues[queue_index] in every iteration unconditionally.
23360 Release bounds vector.
23361
93675444
JJ
23362 PR middle-end/56461
23363 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
23364 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
23365 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
23366 inner_phis vector.
23367
3e492e9c
RB
233682013-03-05 Richard Biener <rguenther@suse.de>
23369
23370 PR lto/56515
23371 * tree-inline.c (remap_blocks_to_null): New function.
23372 (expand_call_inline): When expanding a call stmt without
23373 an associated block inline remap all callee blocks to NULL.
23374
a5d1569a
JJ
233752013-03-05 Jakub Jelinek <jakub@redhat.com>
23376
86efb5cd
JJ
23377 PR rtl-optimization/56494
23378 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
23379 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
23380 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
23381
85f5dbea
JJ
23382 PR middle-end/56461
23383 * sel-sched-ir.c (free_sched_pools): Release
23384 succs_info_pool.stack[succs_info_pool.max_top] vectors too
23385 if succs_info_pool.max_top isn't -1.
23386
a5d1569a
JJ
23387 PR bootstrap/56509
23388 * opts.c (opts_obstack, opts_concat): Moved to...
23389 * opts-common.c (opts_obstack, opts_concat): ... here.
23390
4432aa6c
JJ
233912013-03-04 Jakub Jelinek <jakub@redhat.com>
23392
23393 PR middle-end/56461
23394 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
23395
f3a1fb91
MJ
233962013-03-04 Martin Jambor <mjambor@suse.cz>
23397
23398 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
23399 all appropriate places.
23400
22110e6c
EB
234012013-01-04 Eric Botcazou <ebotcazou@adacore.com>
23402
23403 PR tree-optimization/56424
23404 * ipa-split.c (split_function): Do not set the RSO flag if result is
23405 not by reference and its type is a register type.
23406
a72d8780 234072013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 23408
88b97037 23409 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 23410 (microblaze_legitimate_pic_operand): Likewise
88b97037 23411 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
23412 new function microblaze_legitimate_pic_operand
23413 * config/microblaze/microblaze-protos.h
23414 (microblaze_legitimate_pic_operand): Declare.
23415
a72d8780 234162013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 23417
a72d8780 23418 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 23419 New predicate for supported rtx code types.
a72d8780 23420 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
23421 call_insn_simple_operand predicate.
23422
541d9ac8
JJ
234232013-03-04 Jakub Jelinek <jakub@redhat.com>
23424
5eb010bc
JJ
23425 PR middle-end/56461
23426 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
23427 partitions.ordered_remove.
23428
30862efc
JJ
23429 PR middle-end/56461
23430 * tree-vect-stmts.c (vectorizable_conversion): Don't call
23431 vec_oprnds0.create (1) for modifier == NONE.
23432
8930f723
JJ
23433 PR middle-end/56461
23434 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
23435 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
23436 vec_oprnds1 right before pushing anything to it for
23437 scalar_shift_arg.
23438
541d9ac8
JJ
23439 PR middle-end/56461
23440 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
23441 set nbbs to 0 instead of having separate code path.
23442 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
23443 instead of false as last argument if returning NULL.
23444
7aa7f2e3
SL
234452013-03-03 Sandra Loosemore <sandra@codesourcery.com>
23446
23447 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
23448 the attribute is now called "target" instead of "option".
23449 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
23450 * doc/tm.texi.in (Target Attributes): Likewise document the correct
23451 attribute/pragma name for TARGET_OPTION_VALID_P and
23452 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
23453 * doc/tm.texi: Regenerated.
23454
8930f723 234552013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 23456
8930f723 23457 * config/microblaze/microblaze.c:
cb8a1637 23458 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
23459 * config/microblaze/microblaze.h: Add -mxl-reorder to
23460 DRIVER_SELF_SPECS.
23461 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
23462 instructions emitted if TARGET_REORDER.
88b97037
UB
23463 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
23464 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 23465 separately.
cb8a1637 23466
4dc1d68c
XDL
234672013-03-01 Xinliang David Li <davidxl@google.com>
23468
23469 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
23470 walk length.
23471
689eaba3
JJ
234722013-03-01 Jakub Jelinek <jakub@redhat.com>
23473
9d676bf6
JJ
23474 PR middle-end/56461
23475 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
23476 vector even when returning true. Fix up function comment formatting.
23477
caff7edf
JJ
23478 PR middle-end/56461
23479 * ira-build.c (ira_loop_nodes_count): New variable.
23480 (create_loop_tree_nodes): Initialize it.
23481 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
23482
b6b9227d
JJ
23483 PR middle-end/56461
23484 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
23485 method on dr_chain and result_chain.
23486 * tree-vect-stmts.c (vectorizable_store): Only call
23487 result_chain.create if j == 0.
23488
689eaba3
JJ
23489 PR middle-end/56461
23490 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
23491 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
23492 before overwriting it.
23493
40bf31ed
TB
234942013-03-01 Tobias Burnus <burnus@net-b.de>
23495
23496 * doc/extended.texi (C Extensions): Change order in @menu
23497 to match @node.
23498 (Other MIPS Built-in Functions): Move last MIPS entry before
23499 "picoChip Built-in Functions".
23500 (SH Built-in Functions): Move after RX Built-in Functions.
23501 * doc/gcc.texi (Introduction): Change order in @menu
23502 to match @node.
23503 * doc/md.texi (Constraints): Ditto.
23504 * gty.texi (Type Information): Ditto.
23505 (User-provided marking routines for template types): Make
23506 subsection.
23507 * doc/invoke.texi (AArch64 Options): Move before
23508 "Adapteva Epiphany Options".
23509
e664c61c
KS
235102013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
23511 Jakub Jelinek <jakub@redhat.com>
23512
23513 PR sanitizer/56454
23514 * asan.c (gate_asan): Lookup no_sanitize_address instead of
23515 no_address_safety_analysis attribute.
23516 * doc/extend.texi (no_address_safety_attribute): Rename to
23517 no_sanitize_address attribute, mention no_address_safety_analysis
23518 attribute as deprecated alias.
23519
37b5ec8f
JJ
235202013-02-28 Jakub Jelinek <jakub@redhat.com>
23521
23522 PR middle-end/56461
23523 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
23524 type to vec<vec<tree> > *.
23525 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
23526 to be vec<tree> instead of vec<tree> *, set vec_defs
23527 to vNULL and call vec_defs.create (number_of_vects), adjust other
23528 uses of vec_defs.
23529 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
23530 vectorizable_condition): Adjust vect_get_slp_defs callers.
23531
ba96cdfb
JG
235322013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23533
23534 * config/aarch64/aarch64.c
23535 (aarch64_float_const_representable): Remove unused variable.
23536
6f549691
JG
235372013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23538
23539 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
23540
af55e82d
JG
235412013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23542
23543 * config/aarch64/aarch64-builtins.c
23544 (aarch64_init_simd_builtins): Make static.
23545
1df3f464
JG
235462013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23547
23548 * config/aarch64/aarch64.c
23549 (aarch64_simd_make_constant): Make static.
23550
f8f42513
MJ
235512013-02-28 Martin Jambor <mjambor@suse.cz>
23552
23553 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
23554 with no initialization to the RHS of debug statements.
23555
b48b3fc4
MJ
235562013-02-28 Martin Jambor <mjambor@suse.cz>
23557
23558 PR tree-optimization/56294
23559 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
23560 Adjust dumping.
23561 (get_access_replacement): Do not call create_access_replacement.
23562 Assert a replacement exists.
23563 (get_repl_default_def_ssa_name): Create the replacement declaration
23564 itself.
23565
c3ae224c
RR
235662013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23567
23568 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
23569 final_end_function.
23570
45fa0eef
MP
235712013-02-28 Marek Polacek <polacek@redhat.com>
23572
23573 PR rtl-optimization/56466
23574 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
23575 if we're changing a loop.
23576 (peel_loops_completely): Likewise.
23577
502c067d
PC
235782013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23579
23580 PR c++/55813
23581 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
23582
ff24afc8
GJL
235832013-02-28 Georg-Johann Lay <avr@gjlay.de>
23584
23585 PR target/56445
23586 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
23587 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
23588 INTX_FTYPE_FX, FX_FTYPE_INTX.
23589 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
23590
c7b1fc1b
GJL
235912013-02-28 Georg-Johann Lay <avr@gjlay.de>
23592
23593 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
23594 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
23595 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
23596 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
23597 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
23598 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
23599 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
23600 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
23601 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
23602 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
23603 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
23604 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
23605 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
23606 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
23607 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
23608 (avrxmega6): Increase max flash segments from 5 to 6.
23609 * config/avr/t-multilib: Regenerate.
23610 * config/avr/avr-tables.opt: Regenerate.
23611 * doc/avr-mmcu.texi: Regenerate.
23612
4a0e3cfe
GJL
236132013-02-28 Georg-Johann Lay <avr@gjlay.de>
23614
23615 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
23616 (avr_device_to_arch): Rename to avr_device_to_ld.
23617 (avr_device_to_as): New prototype.
23618 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
23619 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
23620 * config/avr/driver-avr.c (avr_device_to_as): New.
23621 (avr_device_to_arch): Rename to avr_device_to_ld.
23622
97785e52
JJ
236232013-02-27 Jakub Jelinek <jakub@redhat.com>
23624
3f292312
JJ
23625 PR middle-end/56461
23626 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
23627 method on dr_chain and result_chain.
23628
a344216b
JJ
23629 PR middle-end/56461
23630 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
23631 pointer_set_destroy on not_executed_last_iteration.
23632
f121ad02 23633 PR middle-end/56461
88b97037 23634 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 23635
307f83a3
JJ
23636 PR middle-end/56461
23637 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
23638 FOR_EACH_DEFINED_FUNCTION when freeing state.
23639
e19624ee
JJ
23640 PR middle-end/56461
23641 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
23642 pool_free.
23643 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
23644 overwriting it.
23645
90e709fd
JJ
23646 PR middle-end/56461
23647 * ipa-cp.c (decide_whether_version_node): Call vec_free on
23648 known_aggs[i].items and release known_aggs vector.
23649
97785e52
JJ
23650 PR middle-end/56461
23651 * ipa-reference.c (propagate): Free node_info even for alias nodes.
23652
236532013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 23654
97785e52
JJ
23655 * config/microblaze/microblaze.c (microblaze_emit_compare):
23656 Use xor for EQ/NE comparisions.
23657 * config/microblaze/microblaze.md (cstoresf4): Add constraints
23658 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 23659
6fa5e0ed
JJ
236602013-02-27 Jakub Jelinek <jakub@redhat.com>
23661
23662 PR middle-end/56461
23663 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
23664 vector.
23665 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
23666 vec_safe_push, always update *slot.
23667 (redirect_edge_var_map_clear): Use vec_free.
23668 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
23669 (free_var_map_entry): Use vec_free.
23670 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
23671 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
23672
436a956a
AB
236732013-02-27 Andrey Belevantsev <abel@ispras.ru>
23674
23675 PR middle-end/45472
436a956a
AB
23676 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
23677 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
23678 Reorder tests for speculativeness in the logical and operator.
23679
f5c2caca
JJ
236802013-02-27 Jakub Jelinek <jakub@redhat.com>
23681
0fcb564b
JJ
23682 * incpath.c (add_standard_paths): Use reconcat instead of concat
23683 where appropriate and avoid leaking memory.
23684
dc357798
JJ
23685 * opts.h: Include obstack.h.
23686 (opts_concat): New prototype.
23687 (opts_obstack): New declaration.
23688 * opts.c (opts_concat): New function.
23689 (opts_obstack): New variable.
23690 (init_options_struct): Call gcc_init_obstack on opts_obstack.
23691 (finish_options): Use opts_concat instead of concat
23692 and XOBNEWVEC instead of XNEWVEC.
23693 * opts-common.c (generate_canonical_option, decode_cmdline_option,
23694 generate_option): Likewise.
23695 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
23696 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
23697
f5c2caca
JJ
23698 PR target/56455
23699 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
23700 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
23701
d0163673
JJ
237022013-02-26 Jakub Jelinek <jakub@redhat.com>
23703
23704 PR middle-end/56461
23705 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
23706
b5ad2b8e
JR
237072013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
23708
23709 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
23710 (arm_block_move_unaligned_straight): Likewise.
23711 (arm_adjust_block_mem): Likewise.
23712
9b639e2c
JR
237132013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
23714
23715 PR target/48901
23716 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
23717 temp, cond and label.
23718 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
23719
e13a0ccb
JR
23720 PR target/52500
23721 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
23722 * config/c6x/c6x.h (dbx_register_map): Update declaration.
23723
fbe4f171
JR
23724 PR target/52501
23725 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
23726 of prologue/epilogue functions.
23727
ae006543
JR
23728 PR target/52550
23729 * config/tilegx/tilegx.c (tilegx_expand_prologue):
23730 Remove unused variable cfa_offset.
23731 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
23732
c81369fa
JR
23733 PR target/54639
23734 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
23735 type promotion to unsigned.
23736
f8a8fea7
JR
23737 PR target/54640
23738 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
23739 for HOST_WIDE_INT of 32 bit / same size as int.
23740 (arm_block_move_unaligned_straight): Likewise.
23741 (arm_adjust_block_mem): Likewise.
23742
f8be5169
JR
23743 PR target/54662
23744 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
23745 ALL_CFLAGS.
23746
f1ad3354
MP
237472013-02-26 Marek Polacek <polacek@redhat.com>
23748
23749 PR tree-optimization/56426
88b97037 23750 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 23751
a6af0f42
RB
237522013-02-26 Richard Biener <rguenther@suse.de>
23753
23754 PR target/56444
23755 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
23756 unused variable loops.
23757
aca43c6c
JJ
237582013-02-26 Jakub Jelinek <jakub@redhat.com>
23759
cecbe5d9
JJ
23760 PR tree-optimization/56448
23761 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
23762 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
23763 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
23764 later operands of the references, or even first operand for
23765 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
23766
aca43c6c
JJ
23767 PR tree-optimization/56443
23768 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
23769 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
23770 to type_for_mode langhook.
23771
53e2e141
MT
237722013-02-25 Matt Turner <mattst88@gmail.com>
23773
23774 * doc/invoke.texi: Document r4700.
23775
259ee451
RB
237762013-02-25 Richard Biener <rguenther@suse.de>
23777
23778 PR tree-optimization/56175
23779 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
23780 split out from ...
23781 (simplify_bitwise_binary): ... here. Also guard the conversion
23782 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
23783
6d65e8f1
CM
237842013-02-25 Catherine Moore <clm@codesourcery.com>
23785
23786 Revert:
23787 2013-02-24 Catherine Moore <clm@codesourcery.com>
23788 Maciej W. Rozycki <macro@codesourcery.com>
23789 Tom de Vries <tom@codesourcery.com>
a72d8780 23790 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
23791 Iain Sandoe <iain@codesourcery.com>
23792 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 23793 Chao-ying Fu <fu@mips.com>
88b97037 23794
6d65e8f1 23795 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 23796 Document new function attributes.
6d65e8f1
CM
23797 * doc/invoke.texi (minterlink-compressed, mmicromips,
23798 m14k, m14ke, m14kec): Document new options.
23799 (minterlink-mips16): Update documentation.
23800 * doc/md.texi (ZC, ZD): Document new constraints.
23801 * configure.ac (gcc_cv_as_micromips): Check if linker
23802 supports the .set micromips directive.
23803 * configure: Regenerate.
23804 * config.in: Regenerate.
23805 * config/mips/mips-tables.opt: Regenerate.
23806 * config/mips/micromips.md: New file.
23807 * constraints.md (ZC, AD): New constraints.
23808 * config/mips/predicates.md (movep_src_register): New predicate.
23809 (movep_src_operand): New predicate.
23810 (non_volatile_mem_operand): New predicate.
23811 * config/mips/mips.md (multimem): New type.
23812 (length): Differentiate between 17-bit and 18-bit branch offsets.
23813 (MOVEP1, MOVEP2): New mode iterator.
23814 (mov_<load>l): Use ZC constraint.
23815 (mov_<load>r): Likewise.
23816 (mov_<store>l): Likewise.
23817 (mov_<store>r): Likewise.
23818 (*branch_equality<mode>_inverted): Add microMIPS support.
23819 (*branch_equality<mode>): Likewise.
23820 (*jump_absolute): Likewise.
23821 (indirect_jump_<mode>): Likewise.
23822 (tablejump_<mode>): Likewise.
23823 (<optab>_internal): Likewise.
23824 (sibcall_internal): Likewise.
23825 (sibcall_value_internal): Likewise.
23826 (prefetch): Use constraint ZD.
23827 * config/mips/mips.opt (minterlink-compressed): New option.
23828 (minterlink-mips16): Now an alias for minterlink-compressed.
23829 (mmicromips): New option.
23830 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
23831 (compare_and_swap_12): Likewise.
23832 (sync_add<mode>): Likewise.
23833 (sync_<optab>_12): Likewise.
23834 (sync_old_<optab>_12): Likewise.
23835 (sync_new_<optab>_12): Likewise.
23836 (sync_nand_12): Likewise.
23837 (sync_old_nand_12): Likewise.
23838 (sync_new_nand_12): Likewise.
23839 (sync_sub<mode>): Likewise.
23840 (sync_old_add<mode>): Likewise.
23841 (sync_old_sub<mode>): Likewise.
23842 (sync_new_add<mode>): Likewise.
23843 (sync_new_sub<mode>): Likewise.
23844 (sync_<optab><mode>): Likewise.
23845 (sync_old_<optab><mode>): Likewise.
23846 (sync_new_<optab><mode>): Likewise.
23847 (sync_nand<mode>): Likewise.
23848 (sync_old_nand<mode>): Likewise.
23849 (sync_new_nand<mode>): Likewise.
23850 (sync_lock_test_and_set<mode>): Likewise.
23851 (test_and_set_12): Likewise.
23852 (atomic_compare_and_swap<mode>): Likewise.
23853 (atomic_exchange<mode>_llsc): Likewise.
23854 (atomic_fetch_add<mode>_llsc): Likewise.
23855 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
23856 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
23857 (umips_save_restore_pattern_p): Likewise.
23858 (umips_load_store_pair_p): Likewise.
23859 (umips_output_load_store_pair): Likewise.
23860 (umips_movep_target_p): Likewise.
23861 (umips_12bit_offset_address_p): Likewise.
23862 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
23863 (mips_base_mips16): Rename this...
23864 (mips_base_compression_flags): ...to this. Update all uses.
23865 (mips_attribute_table): Add micromips, nomicromips and nocompression.
23866 (mips_mips16_decl_p): Delete.
23867 (mips_nomips16_decl_p): Delete.
23868 (mips_get_compress_on_flags): New function.
23869 (mips_get_compress_off_flags): New function.
23870 (mips_get_compress_mode): New function.
23871 (mips_get_compress_on_name): New function.
23872 (mips_get_compress_off_name): New function.
23873 (mips_insert_attributes): Support multiple compression types.
23874 (mips_merge_decl_attributes): Likewise.
23875 (umips_12bit_offset_address_p): New function.
23876 (mips_start_function_definition): Emit .set micromips directive.
23877 (mips_call_may_need_jalx_p): New function.
23878 (mips_function_ok_for_sibcall): Add microMIPS support.
23879 (mips_print_operand_punctuation): Support short delay slots and
23880 compact jumps.
23881 (umips_swm_mask, umips_swm_encoding): New.
23882 (umips_build_save_restore): New function.
23883 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
23884 (was_mips16_p): Remove.
23885 (old_compression_mode): New.
23886 (mips_set_compression_mode): New function.
23887 (mips_set_current_function): Add microMIPS support.
23888 (mips_option_override): Likewise.
23889 (umips_save_restore_pattern_p): New function.
23890 (umips_output_save_restore): New function.
23891 (umips_load_store_pair_p_1): New function.
23892 (umips_load_store_pair_p): New function.
23893 (umips_output_load_store_pair_1): New function.
23894 (umips_output_load_store_pair): New function.
23895 (umips_movep_target_p) New function.
23896 (mips_prepare_pch_save): Add microMIPS support.
23897 * config/mips/mips.h (TARGET_COMPRESSION): New.
23898 (TARGET_CPU_CPP_BUILTINS): Update macro
23899 to use new compression flags and to support microMIPS.
23900 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
23901 (MIPS_ARCH_FLOAT_SPEC): Likewise.
23902 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
23903 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
23904 (ASM_SPEC): Support mmicromips and mno-micromips.
23905 (M16STORE_REG_P): New macro.
23906 (MIPS_CALL): Support TARGET_MICROMIPS.
23907 (MICROMIPS_J): New macro.
23908 (mips_base_mips16): Rename this...
23909 (mips_base_compression_flags): ...to this.
23910 (UMIPS_12BIT_OFFSET_P): New macro.
23911 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
23912 (MULTILIB_DIRNAMES): Likewise.
23913
5e5df392
TV
239142013-02-25 Tom de Vries <tom@codesourcery.com>
23915
23916 PR rtl-optimization/56131
23917 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
23918 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
23919 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
23920
3fdb53c1
TB
239212013-02-25 Tobias Burnus <burnus@net-b.de>
23922
23923 * doc/invoke.texi (-fsanitize=): Move from optimization
23924 to debugging options.
23925
ed358aea
AB
239262013-02-25 Andrey Belevantsev <abel@ispras.ru>
23927
23928 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
23929
f45e9053
AB
239302013-02-25 Andrey Belevantsev <abel@ispras.ru>
23931 Alexander Monakov <amonakov@ispras.ru>
23932
23933 PR middle-end/56077
23934 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
23935 flush pending lists also on non-jumps. Adjust comment.
23936
6941b508
CM
239372013-02-24 Catherine Moore <clm@codesourcery.com>
23938 Maciej W. Rozycki <macro@codesourcery.com>
23939 Tom de Vries <tom@codesourcery.com>
a72d8780 23940 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
23941 Iain Sandoe <iain@codesourcery.com>
23942 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 23943 Chao-ying Fu <fu@mips.com>
6941b508
CM
23944
23945 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 23946 Document new function attributes.
6941b508
CM
23947 * doc/invoke.texi (minterlink-compressed, mmicromips,
23948 m14k, m14ke, m14kec): Document new options.
23949 (minterlink-mips16): Update documentation.
23950 * doc/md.texi (ZC, ZD): Document new constraints.
23951 * configure.ac (gcc_cv_as_micromips): Check if linker
23952 supports the .set micromips directive.
23953 * configure: Regenerate.
23954 * config.in: Regenerate.
23955 * config/mips/mips-tables.opt: Regenerate.
23956 * config/mips/micromips.md: New file.
23957 * constraints.md (ZC, AD): New constraints.
23958 * config/mips/predicates.md (movep_src_register): New predicate.
23959 (movep_src_operand): New predicate.
23960 (non_volatile_mem_operand): New predicate.
23961 * config/mips/mips.md (multimem): New type.
23962 (length): Differentiate between 17-bit and 18-bit branch offsets.
23963 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 23964 (mov_<load>l): Use ZC constraint.
6941b508
CM
23965 (mov_<load>r): Likewise.
23966 (mov_<store>l): Likewise.
23967 (mov_<store>r): Likewise.
23968 (*branch_equality<mode>_inverted): Add microMIPS support.
23969 (*branch_equality<mode>): Likewise.
23970 (*jump_absolute): Likewise.
23971 (indirect_jump_<mode>): Likewise.
23972 (tablejump_<mode>): Likewise.
23973 (<optab>_internal): Likewise.
23974 (sibcall_internal): Likewise.
23975 (sibcall_value_internal): Likewise.
23976 (prefetch): Use constraint ZD.
23977 * config/mips/mips.opt (minterlink-compressed): New option.
23978 (minterlink-mips16): Now an alias for minterlink-compressed.
23979 (mmicromips): New option.
23980 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
23981 (compare_and_swap_12): Likewise.
23982 (sync_add<mode>): Likewise.
23983 (sync_<optab>_12): Likewise.
23984 (sync_old_<optab>_12): Likewise.
23985 (sync_new_<optab>_12): Likewise.
23986 (sync_nand_12): Likewise.
23987 (sync_old_nand_12): Likewise.
23988 (sync_new_nand_12): Likewise.
23989 (sync_sub<mode>): Likewise.
23990 (sync_old_add<mode>): Likewise.
23991 (sync_old_sub<mode>): Likewise.
23992 (sync_new_add<mode>): Likewise.
23993 (sync_new_sub<mode>): Likewise.
23994 (sync_<optab><mode>): Likewise.
23995 (sync_old_<optab><mode>): Likewise.
23996 (sync_new_<optab><mode>): Likewise.
23997 (sync_nand<mode>): Likewise.
23998 (sync_old_nand<mode>): Likewise.
23999 (sync_new_nand<mode>): Likewise.
24000 (sync_lock_test_and_set<mode>): Likewise.
24001 (test_and_set_12): Likewise.
24002 (atomic_compare_and_swap<mode>): Likewise.
24003 (atomic_exchange<mode>_llsc): Likewise.
24004 (atomic_fetch_add<mode>_llsc): Likewise.
24005 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
24006 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
24007 (umips_save_restore_pattern_p): Likewise.
24008 (umips_load_store_pair_p): Likewise.
24009 (umips_output_load_store_pair): Likewise.
24010 (umips_movep_target_p): Likewise.
24011 (umips_12bit_offset_address_p): Likewise.
24012 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
24013 (mips_base_mips16): Rename this...
24014 (mips_base_compression_flags): ...to this. Update all uses.
24015 (mips_attribute_table): Add micromips, nomicromips and nocompression.
24016 (mips_mips16_decl_p): Delete.
24017 (mips_nomips16_decl_p): Delete.
3fdb53c1 24018 (mips_get_compress_on_flags): New function.
6941b508
CM
24019 (mips_get_compress_off_flags): New function.
24020 (mips_get_compress_mode): New function.
24021 (mips_get_compress_on_name): New function.
24022 (mips_get_compress_off_name): New function.
24023 (mips_insert_attributes): Support multiple compression types.
24024 (mips_merge_decl_attributes): Likewise.
24025 (umips_12bit_offset_address_p): New function.
24026 (mips_start_function_definition): Emit .set micromips directive.
24027 (mips_call_may_need_jalx_p): New function.
24028 (mips_function_ok_for_sibcall): Add microMIPS support.
24029 (mips_print_operand_punctuation): Support short delay slots and
24030 compact jumps.
24031 (umips_swm_mask, umips_swm_encoding): New.
24032 (umips_build_save_restore): New function.
24033 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
24034 (was_mips16_p): Remove.
24035 (old_compression_mode): New.
24036 (mips_set_compression_mode): New function.
24037 (mips_set_current_function): Add microMIPS support.
24038 (mips_option_override): Likewise.
24039 (umips_save_restore_pattern_p): New function.
24040 (umips_output_save_restore): New function.
24041 (umips_load_store_pair_p_1): New function.
24042 (umips_load_store_pair_p): New function.
24043 (umips_output_load_store_pair_1): New function.
24044 (umips_output_load_store_pair): New function.
24045 (umips_movep_target_p) New function.
24046 (mips_prepare_pch_save): Add microMIPS support.
24047 * config/mips/mips.h (TARGET_COMPRESSION): New.
24048 (TARGET_CPU_CPP_BUILTINS): Update macro
24049 to use new compression flags and to support microMIPS.
24050 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
24051 (MIPS_ARCH_FLOAT_SPEC): Likewise.
24052 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
24053 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
24054 (ASM_SPEC): Support mmicromips and mno-micromips.
24055 (M16STORE_REG_P): New macro.
24056 (MIPS_CALL): Support TARGET_MICROMIPS.
24057 (MICROMIPS_J): New macro.
24058 (mips_base_mips16): Rename this...
24059 (mips_base_compression_flags): ...to this.
24060 (UMIPS_12BIT_OFFSET_P): New macro.
24061 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
24062 (MULTILIB_DIRNAMES): Likewise.
24063
cdebbc6d
JJ
240642013-02-24 Jakub Jelinek <jakub@redhat.com>
24065
24066 PR target/52555
24067 * target-globals.c (save_target_globals): For init_reg_sets and
24068 target_reinit remporarily set this_fn_optabs to this_target_optabs.
24069
18c63565
JG
240702013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
24071
24072 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
24073 * config/aarch64/t-aarch64
24074 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
24075
2194f7a2
VM
240762013-02-22 Vladimir Makarov <vmakarov@redhat.com>
24077
24078 PR inline-asm/56148
24079 * lra-constraints.c (process_alt_operands): Reload operand
24080 conflicting with earlier clobber only if no more other conflicting
24081 operands.
24082
7d613735
JJ
240832013-02-22 Jakub Jelinek <jakub@redhat.com>
24084
24085 PR sanitizer/56393
24086 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
24087 if not linking a shared library.
24088
ac8d93a7
SL
240892013-02-22 Seth LaForge <sethml@google.com>
24090
24091 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
24092
e0237780
GY
240932013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
24094
3fdb53c1
TB
24095 * config/arm/arm.md (split for extendsidi): Update condition.
24096 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
24097 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
24098 (qhs_zextenddi_cstr): Likewise.
e0237780 24099
d7fde18c
JJ
241002013-02-21 Jakub Jelinek <jakub@redhat.com>
24101
be63b77d
JJ
24102 PR middle-end/56420
24103 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
24104 avoid signed wrapping.
24105 (expand_mult): Handle properly multiplication by
24106 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
24107 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
24108 in the compiler if coeff is HOST_WIDE_INT_MIN.
24109 (expand_divmod): Don't make ext_op1 static, change it's type to
24110 uhwi. Avoid undefined behavior in -INTVAL (op1).
24111
d7fde18c
JJ
24112 PR rtl-optimization/50339
24113 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
24114 field.
24115 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
24116 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
24117 into splitting_ashiftrt field.
24118 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
24119 ASHIFTRT.
24120 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
24121 choices.
24122
6aad4455
AH
241232013-02-20 Aldy Hernandez <aldyh@redhat.com>
24124
24125 PR middle-end/56108
24126 * trans-mem.c (execute_tm_mark): Do not expand transactions that
24127 are sure to go irrevocable.
24128
38fe784d
HPN
241292013-02-21 Hans-Peter Nilsson <hp@axis.com>
24130
24131 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
24132 scalars are valid operands.
24133
0fd44da3
MJ
241342013-02-21 Martin Jambor <mjambor@suse.cz>
24135
24136 PR tree-optimization/56310
24137 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
24138 only matching indices and non-negative final offsets.
24139 (intersect_aggregates_with_edge): Pass src_idx to
24140 agg_replacements_to_vector. Pass src_idx insstead of index to
24141 intersect_with_agg_replacements.
24142
7a92038b
MJ
241432013-02-21 Martin Jambor <mjambor@suse.cz>
24144
24145 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
24146 instead of hard-wired defaults.
24147
c0da9c37
MR
241482013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
24149
24150 * doc/invoke.texi (MIPS Options): Update documentation of the
24151 floating-point multiply-accumulate instruction restrictions.
24152
d247ea0c 241532013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
24154
24155 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
24156 asan_shadow_offset on x86_64 linux.
24157
22deefcb
RB
241582013-02-21 Richard Biener <rguenther@suse.de>
24159
24160 PR tree-optimization/56415
24161 Revert
24162 2013-02-11 Richard Biener <rguenther@suse.de>
24163
24164 PR tree-optimization/56273
24165 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
24166 first VRP run.
24167
7bcc6e75
JJ
241682013-02-21 Jakub Jelinek <jakub@redhat.com>
24169
a0ad148f
JJ
24170 PR bootstrap/56258
24171 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
24172 instead of @itemx.
24173
7bcc6e75
JJ
24174 PR inline-asm/56405
24175 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
24176 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
24177
a0a7b611
JH
241782013-02-20 Jan Hubicka <jh@suse.cz>
24179
24180 PR tree-optimization/56265
88b97037
UB
24181 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
24182 when target is referenced for first time.
a0a7b611 24183
c0e50f72
RB
241842013-02-20 Richard Biener <rguenther@suse.de>
24185
24186 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
24187 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
24188 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
24189 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
24190 not return anything.
24191 (rename_ssa_copies): Do not remove unused locals.
24192 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 24193 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
24194 * passes.c (execute_function_todo): Do not schedule unused locals
24195 removal if cleanup_tree_cfg did something.
24196 * tree-ssa-live.c (remove_unused_locals): Dump statistics
24197 about the number of removed locals.
24198
a52ca739
RB
241992013-02-20 Richard Biener <rguenther@suse.de>
24200
24201 PR tree-optimization/56398
88b97037 24202 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 24203
ec9c9d1b
MJ
242042013-02-20 Martin Jambor <mjambor@suse.cz>
24205
24206 PR tree-optimization/55334
24207 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
24208 restricted pointers to arrays.
24209
e91c8ed6 242102013-02-20 Richard Biener <rguenther@suse.de>
88b97037 24211 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
24212
24213 PR tree-optimization/56396
24214 * tree-ssa-ccp.c (n_const_val): New static variable.
24215 (get_value): Return NULL for SSA names we don't have a lattice
24216 entry for.
24217 (ccp_initialize): Initialize n_const_val.
24218 * tree-ssa-copy.c (n_copy_of): New static variable.
24219 (init_copy_prop): Initialize n_copy_of.
24220 (get_value): Return NULL_TREE for SSA names we don't have a
24221 lattice entry for.
24222
3d916479
MJ
242232013-02-20 Martin Jambor <mjambor@suse.cz>
24224
24225 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
24226
71a86758
RB
242272013-02-20 Richard Biener <rguenther@suse.de>
24228
24229 * genpreds.c (write_lookup_constraint): Do not compare first
24230 letter of the constraint again.
24231
79836a12
RB
242322013-02-20 Richard Biener <rguenther@suse.de>
24233
24234 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
24235 and ceil_log2.
24236 (get_use_iv_cost): Terminate hashtable walk when coming across
24237 an empty entry.
24238
bbe4fb2c
IZ
242392013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
24240
24241 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
24242 reassociation for avx2 targets.
24243
a72d8780 242442012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 24245
c77f83d5
EI
24246 * config/microblaze/microblaze.c: microblaze_has_clz = 0
24247 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 24248 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
24249 version and TARGET_PATTERN_COMPARE check
24250 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 24251
a72d8780 242522012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 24253
a72d8780 24254 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
24255 function before branching.
24256
242387fa
AB
242572012-02-19 Andrey Belevantsev <abel@ispras.ru>
24258
24259 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
24260 DUMP_INSN_RTX_UID.
24261 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
24262
b4979ab9
AB
242632012-02-19 Andrey Belevantsev <abel@ispras.ru>
24264
24265 PR middle-end/55889
b4979ab9
AB
24266 * sel-sched.c: Include ira.h.
24267 (implicit_clobber_conflict_p): New function.
24268 (moveup_expr): Use it.
88b97037 24269 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 24270
24d63016
RB
242712013-02-19 Richard Biener <rguenther@suse.de>
24272
24273 PR tree-optimization/56384
24274 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
24275 (vn_hash_type): Split out from ...
24276 (vn_hash_constant_with_type): ... here.
24277 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
24278 (vn_phi_eq): Compare types from vn_phi_s structure.
24279 (vn_phi_lookup): Populate vn_phi_s type.
24280 (vn_phi_insert): Likewise.
24281
a475fd3d
JJ
242822013-02-19 Jakub Jelinek <jakub@redhat.com>
24283
47cc28f5
JJ
24284 PR tree-optimization/56350
24285 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
24286 if haven't found reduction or nested cycle operand, rather than
24287 asserting we must find it.
24288
a475fd3d
JJ
24289 PR tree-optimization/56381
24290 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
24291 to fold_build3.
24292
242932013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
24294 Jakub Jelinek <jakub@redhat.com>
24295
24296 PR target/52555
24297 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
24298 (swap_optab_enable): Same.
24299 (init_all_optabs): Use argument instead of global.
88b97037 24300 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
24301 * expr.h (init_all_optabs): Add argument to prototype.
24302 (TREE_OPTIMIZATION_OPTABS): New.
24303 (save_optabs_if_changed): Protoize.
24304 * optabs.h: Declare this_fn_optabs.
24305 * optabs.c (save_optabs_if_changed): New.
24306 Declare this_fn_optabs.
24307 (init_optabs): Add argument to init_all_optabs() call.
24308 * function.c (invoke_set_current_function_hook): Handle per
24309 function optabs.
24310 * function.h (struct function): New field optabs.
24311 * config/mips/mips.c (mips_set_mips16_mode): Handle when
24312 optimization_current_node has changed.
24313 * target-globals.h (save_target_globals_default_opts): Protoize.
24314 * target-globals.c (save_target_globals_default_opts): New.
24315
3f587ca3
JDA
243162013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24317
24318 PR target/56347
24319 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
24320 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
24321
24322 PR target/56214
24323 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
24324 and HImode, require all displacements to be an integer multiple of
24325 their mode size.
ceaca33e
JDA
24326 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
24327 only allow QImode and HImode when reload is in progress and strict is
24328 true. Likewise for symbolic addresses. Use base14_operand to check
24329 displacements in REG+BASE addresses.
24330
fe0b4796
RB
243312013-02-18 Richard Biener <rguenther@suse.de>
24332
24333 PR tree-optimization/56366
24334 * tree-vect-loop.c (get_initial_def_for_induction): Properly
24335 handle sign-conversion of outer-loop initial induction value.
24336
6aaf596b
RB
243372013-02-18 Richard Biener <rguenther@suse.de>
24338
73db8ff1 24339 PR middle-end/56349
6aaf596b
RB
24340 * cfghooks.c (merge_blocks): If we merge a latch into another
24341 block adjust references to it.
24342 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
24343 (verify_loop_structure): Verify that a recorded latch is in fact
24344 a latch.
24345
5e97dfb6
RB
243462013-02-18 Richard Biener <rguenther@suse.de>
24347
24348 PR tree-optimization/56321
24349 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
24350 order SSA name release and virtual operand unlinking.
24351
825527e8
EI
243522013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24353
24354 * config/microblaze/microblaze.md (save_stack_block): Define.
24355 (restore_stack_block): Likewise.
24356
debd11d9
EI
243572013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24358
24359 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
24360 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
24361 * config/microblaze/microblaze.c (microblaze_option_override):
24362 Bail out early for PIC modes when target does not support PIC.
24363
8ec77be0
EI
243642013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24365
88b97037 24366 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
24367 Replace with a microblaze version.
24368 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 24369 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
24370 microblaze.
24371
b41288b3
JJ
243722013-02-16 Jakub Jelinek <jakub@redhat.com>
24373 Dodji Seketeli <dodji@redhat.com>
24374
24375 PR asan/56330
88b97037 24376 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
24377 (instrument_mem_region_access): Do not forget to always put
24378 instrumentation of the of 'base' and 'base + len' in a "if (len !=
24379 0) statement, even for cases where either 'base' or 'base + len'
24380 are not instrumented -- because they have been previously
24381 instrumented. Simplify the logic by putting all the statements
24382 instrument 'base + len' inside a sequence, and then insert that
24383 sequence right before the current insertion point. Then, to
24384 instrument 'base + len', just get an iterator on that statement.
24385 And do not forget to update the pointer to iterator the function
24386 received as argument.
24387
47918951
VM
243882013-02-15 Vladimir Makarov <vmakarov@redhat.com>
24389
24390 PR rtl-optimization/56348
24391 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
24392
3fb7c699
SB
243932013-02-15 Steven Bosscher <steven@gcc.gnu.org>
24394
24395 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
24396 (clean_graph_dump_file): Pass base to start_graph_dump.
24397
576fe41a
RH
243982013-02-14 Richard Henderson <rth@redhat.com>
24399
24400 PR target/55941
24401 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
24402
bb3accfa
SB
244032013-02-14 Steven Bosscher <steven@gcc.gnu.org>
24404
24405 * collect2-aix.h: Define F_LOADONLY.
24406
03143140
RB
244072013-02-14 Richard Biener <rguenther@suse.de>
24408
24409 PR lto/50494
24410 * varasm.c (output_constant_def_1): Get the decl representing
24411 the constant as argument.
24412 (output_constant_def): Wrap output_constant_def_1.
24413 (make_decl_rtl): Use output_constant_def_1 with the decl
24414 representing the constant.
24415 (build_constant_desc): Optionally re-use a decl already
24416 representing the constant.
24417 (tree_output_constant_def): Adjust.
24418
8fb06726
DS
244192013-02-14 Dodji Seketeli <dodji@redhat.com>
24420
24421 Fix an asan crash
24422 * asan.c (instrument_builtin_call): Really put the length of the
24423 second source argument into src1_len.
24424
c4bfe8bf
JJ
244252013-02-13 Jakub Jelinek <jakub@redhat.com>
24426
24427 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
24428 argument. If it is false, don't create edge from then_bb to
24429 fallthru_bb.
24430 (insert_if_then_before_iter): Pass true to it.
24431 (build_check_stmt): Pass false to it.
24432 (transform_statements): Flush hash table only on extended basic
24433 block boundaries, rather than at the beginning of every bb.
24434 Don't flush hash table on nonfreeing_call_p calls.
24435 * tree-flow.h (nonfreeing_call_p): New prototype.
24436 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
24437
7afe2801
DM
244382013-02-13 David S. Miller <davem@davemloft.net>
24439
24440 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
24441
70cc3288
VM
244422013-02-13 Vladimir Makarov <vmakarov@redhat.com>
24443
24444 PR target/56184
24445 * ira.c (max_regno_before_ira): Move from ...
24446 (ira): ... here.
24447 (fix_reg_equiv_init): Use max_regno_before_ira instead of
24448 vec_safe_length.
24449
6422242b
JJ
244502013-02-13 Jakub Jelinek <jakub@redhat.com>
24451
24452 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
24453
976a81ee
RB
244542013-02-13 Richard Biener <rguenther@suse.de>
24455
24456 PR lto/56295
24457 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
24458 globals in MEM_REFs.
24459
c1874a87
RB
244602013-02-13 Richard Biener <rguenther@suse.de>
24461
24462 * loop-init.c (loop_optimizer_init): Clear loop state when
24463 re-initializing preserved loops.
24464 * loop-unswitch.c (unswitch_single_loop): Return whether
24465 we unswitched the loop. Do not verify loop state here.
88b97037 24466 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 24467
b4ab7d34
KS
244682013-02-13 Kostya Serebryany <kcc@google.com>
24469
88b97037
UB
24470 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
24471 on x86_64 linux.
b4ab7d34
KS
24472 * sanitizer.def: Rename __asan_init to __asan_init_v1.
24473
bdcbe80c
DS
244742013-02-12 Dodji Seketeli <dodji@redhat.com>
24475
24476 Avoid instrumenting duplicated memory access in the same basic block
24477 * Makefile.in (asan.o): Add new dependency on hash-table.h
24478 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
24479 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
24480 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
24481 (free_mem_ref_resources, has_mem_ref_been_instrumented)
24482 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
24483 (get_mem_ref_of_assignment): New functions.
24484 (get_mem_refs_of_builtin_call): Extract from
24485 instrument_builtin_call and tweak a little bit to make it fit with
24486 the new signature.
24487 (instrument_builtin_call): Use the new
24488 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
24489 of is_gimple_builtin_call.
24490 (instrument_derefs, instrument_mem_region_access): Insert the
24491 instrumented memory reference into the hash table.
24492 (maybe_instrument_assignment): Renamed instrument_assignment into
24493 this, and change it to advance the iterator when instrumentation
24494 actually happened and return true in that case. This makes it
24495 homogeneous with maybe_instrument_assignment, and thus give a
24496 chance to callers to be more 'regular'.
24497 (transform_statements): Clear the memory reference hash table
24498 whenever we enter a new BB, when we cross a function call, or when
24499 we are done transforming statements. Use
24500 maybe_instrument_assignment instead of instrumentation. No more
24501 need to special case maybe_instrument_assignment and advance the
24502 iterator after calling it; it's now handled just like
24503 maybe_instrument_call. Update comment.
24504
4861a1f7
RB
245052013-02-13 Richard Biener <rguenther@suse.de>
24506
24507 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
24508 Fix loop discovery code.
24509
1c86bd80
VM
245102013-02-12 Vladimir Makarov <vmakarov@redhat.com>
24511
24512 PR inline-asm/56148
24513 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 24514 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
24515 the operand is not reloaded. Prefer to reload conflicting operand
24516 if earlyclobber and matching operands are the same.
24517
7cbda518
RB
245182013-02-12 Richard Biener <rguenther@suse.de>
24519
24520 PR lto/56297
24521 * lto-streamer-out.c (write_symbol): Do not output symbols
24522 for hard register variables.
24523
e68a4ef6
GJL
245242013-02-12 Georg-Johann Lay <avr@gjlay.de>
24525
24526 PR target/54222
24527 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
24528 (umulsidi3_insn, mulsidi3_insn): New insns.
24529
a72d8780 245302013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
24531
24532 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
24533 (struct tune_params): Add vec_costs field.
24534 * config/arm/arm.c (arm_builtin_vectorization_cost)
24535 (arm_add_stmt_cost): New functions.
24536 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
24537 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
24538 (arm_default_vec_cost): New struct of type cpu_vec_costs.
24539 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24540 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
24541 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
24542 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
24543
43320568
RB
245442013-02-12 Richard Biener <rguenther@suse.de>
24545
24546 PR lto/56295
24547 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
24548 decls again if possible.
24549
a011aa39
RB
245502013-02-12 Richard Biener <rguenther@suse.de>
24551
24552 PR middle-end/56288
24553 * tree-ssa.c (verify_ssa_name): Fix check, move
24554 SSA_NAME_IN_FREE_LIST check up.
24555
6da26889
JJ
245562013-02-12 Jakub Jelinek <jakub@redhat.com>
24557 Steven Bosscher <steven@gcc.gnu.org>
24558
24559 PR rtl-optimization/56151
24560 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
24561 equal to op0 or op1, and last_insn pattern is CODE operation
24562 with MEM dest and one of the operands matches that MEM.
24563
f80e0faf
ST
245642013-02-11 Sriraman Tallam <tmsriramgoogle.com>
24565
24566 * doc/extend.texi: Document Function Multiversioning and "default"
24567 parameter string to target attribute.
24568 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
24569 target attribute parameter is "default".
24570 (ix86_compare_version_priority): Remove checks for target attribute.
24571 (ix86_mangle_function_version_assembler_name): Change error to sorry.
24572 Remove check for target attribute equal to NULL. Add assert.
24573 (ix86_generate_version_dispatcher_body): Change error to sorry.
24574
6c59ffd1
IS
245752013-02-11 Iain Sandoe <iain@codesourcery.com>
24576 Jack Howarth <howarth@bromo.med.uc.edu>
24577 Patrick Marlier <patrick.marlier@gmail.com>
24578
24579 PR libitm/55693
24580 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
24581 define ENDFILE_SPEC as TM_DESTRUCTOR.
24582 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
24583
a72d8780 245842013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
24585 Jack Howarth <howarth@bromo.med.uc.edu>
24586 Jakub Jelinek <jakub@redhat.com>
24587
24588 PR sanitizer/55617
24589 * config/darwin.c (cdtor_record): Rename ctor_record.
24590 (sort_cdtor_records): Rename sort_ctor_records.
24591 (finalize_dtors): New routine to sort destructors by
24592 priority before use in assemble_integer.
24593 (machopic_asm_out_destructor): Use finalize_dtors if needed.
24594
b63fe007
UB
245952013-02-11 Uros Bizjak <ubizjak@gmail.com>
24596
24597 PR rtl-optimization/56275
24598 * simplify-rtx.c (avoid_constant_pool_reference): Check that
24599 offset is non-negative and less than cmode size before
24600 calling simplify_subreg.
24601
8e89b5b5
RB
246022013-02-11 Richard Biener <rguenther@suse.de>
24603
24604 PR tree-optimization/56264
24605 * cfgloop.h (fix_loop_structure): Adjust prototype.
24606 * loop-init.c (fix_loop_structure): Return the number of
24607 newly discovered loops.
24608 * tree-cfgcleanup.c (repair_loop_structures): When new loops
24609 are discovered, do a full loop-closed SSA rewrite.
24610
b4a4b56d
RB
246112013-02-11 Richard Biener <rguenther@suse.de>
24612
24613 PR tree-optimization/56273
24614 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
24615 first VRP run.
24616 (check_array_ref): Fix missing newline in dumps.
24617 (search_for_addr_array): Likewise.
24618
0c885229
DE
246192013-02-09 David Edelsohn <dje.gcc@gmail.com>
24620
24621 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
24622
59ac9a55
JJ
246232013-02-09 Jakub Jelinek <jakub@redhat.com>
24624
24625 PR target/56256
24626 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
24627
25bb0bb5
VM
246282013-02-08 Vladimir Makarov <vmakarov@redhat.com>
24629
24630 PR rtl-optimization/56246
0c885229 24631 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
24632 reload pseudo.
24633 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
24634 constraints are satisfied.
24635
a698cc03
JL
246362013-02-08 Jeff Law <law@redhat.com>
24637
24638 PR debug/53948
24639 * emit-rtl.c (reg_is_parm_p): New function.
24640 * regs.h (reg_is_parm_p): New prototype.
24641 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
24642 callee-clobbered registers.
24643
e1122ddd
MM
246442013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24645
24646 PR target/56043
24647 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
24648 If there is no implicit builtin declaration, just return NULL.
24649
19c5f6e6
UB
246502013-02-08 Uros Bizjak <ubizjak@gmail.com>
24651
24652 * config/i386/sse.md (FMAMODEM): New mode iterator.
24653 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
24654 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
24655
2480f2ca 246562013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 24657
2480f2ca
UB
24658 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
24659 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
24660 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
24661
246622013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24663
24664 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
24665 (microblaze*-*-elf): Likewise.
24666 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
24667 LINK_SPEC.
24668 * config/microblaze/microblaze-c.c: Add builtin defines for
24669 _LITTLE_ENDIAN and _BIG_ENDIAN.
24670 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
24671 add to TARGET_DEFAULT flags.
76ef61fb 24672 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
24673 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
24674 * config/microblaze/microblaze.md: Update extendsidi2 and
24675 movdi_internal instructions to use low-order / high-order reg
24676 print_operands.
24677 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
24678 options and inversemask / mask of LITTLE_ENDIAN.
24679 * config/microblaze/t-microblaze: Expand multilib options to
24680 include mlittle-endian (le) and update exceptions patterns.
24681
600a5961
JJ
246822013-02-08 Jakub Jelinek <jakub@redhat.com>
24683
5df81313
JJ
24684 PR rtl-optimization/56195
24685 * lra-constraints.c (get_reload_reg): Don't reuse regs
24686 if they have smaller mode than requested, if they have
24687 wider mode than requested, try to return a SUBREG.
24688
600a5961
JJ
24689 PR tree-optimization/56250
24690 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
24691 if type is unsigned and code isn't MULT_EXPR.
24692
ff544649
GJL
246932013-02-08 Georg-Johann Lay <avr@gjlay.de>
24694
24695 PR tree-optimization/56064
24696 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
24697 bits according to mode.
24698 * fixed-value.h (fixed_from_double_int)
24699 (const_fixed_from_double_int): Adjust comments.
24700
e45cde98
RB
247012013-02-08 Richard Biener <rguenther@suse.de>
24702
24703 PR lto/56231
24704 * lto-streamer.h (struct data_in): Remove current_file, current_line
24705 and current_col members.
24706 * lto-streamer-out.c (lto_output_location): Stream changed bits
24707 en-block for efficiency.
24708 * lto-streamer-in.c (clear_line_info): Remove.
24709 (lto_input_location): Cache current file, line and column
24710 globally via local statics. Read changed bits en-block.
24711 (input_function): Do not call clear_line_info.
24712 (lto_read_body): Likewise.
24713 (lto_input_toplevel_asms): Likewise.
24714
c1ca73d8
MM
247152013-02-08 Michael Matz <matz@suse.de>
24716
24717 PR tree-optimization/52448
24718 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
24719 (nt_call_phase): New static.
24720 (add_or_mark_expr): Only mark accesses with newer phase than any
24721 call seen.
24722 (nonfreeing_call_p): New.
24723 (nt_init_block): Update nt_call_phase, mark blocks as visited.
24724 (nt_fini_block): Keep blocks marked as visited.
24725 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
24726
57548aa2
RB
247272013-02-08 Richard Biener <rguenther@suse.de>
24728
24729 * ira.c (ira): Free broken dominator information.
24730
8e10366f
UB
247312013-02-08 Uros Bizjak <ubizjak@gmail.com>
24732
24733 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
24734
f64fb0fa
MP
247352013-02-08 Marek Polacek <polacek@redhat.com>
24736
8e10366f 24737 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 24738
0375167b
RB
247392013-02-08 Richard Biener <rguenther@suse.de>
24740
24741 PR middle-end/56181
24742 * cfgloop.h (flow_loops_find): Adjust.
24743 (bb_loop_header_p): Declare.
24744 * cfgloop.c (bb_loop_header_p): New function split out from ...
24745 (flow_loops_find): ... here. Adjust function signature,
24746 support incremental loop structure update.
24747 (verify_loop_structure): Cleanup. Verify a loop is a loop.
24748 * cfgloopmanip.c (fix_loop_structure): Move ...
24749 * loop-init.c (fix_loop_structure): ... here.
24750 (apply_loop_flags): Split out from ...
24751 (loop_optimizer_init): ... here.
24752 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
24753 in incremental mode, only remove dead loops here.
24754
85d768f3
GJL
247552013-02-08 Georg-Johann Lay <avr@gjlay.de>
24756
24757 PR target/54222
24758 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
24759 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
24760 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
24761 (*round<mode>3.libgcc): New insns for fixed-modes.
24762 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
24763 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
24764 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
24765 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
24766 implementations. Define to __builtin_avr_absFX,
24767 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
24768 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
24769 __builtin_avr_countlsFX, respectively.
24770 * config/avr/avr-c.c (target.h): Include it.
24771 (enum avr_builtin_id): New enum.
24772 (avr_resolve_overloaded_builtin): New static function.
24773 (avr_register_target_pragmas): Use it to set
24774 targetm.resolve_overloaded_builtin.
24775 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
24776 tree nodes used by DEF_BUILTIN.
24777 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
24778 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
24779 <AVR_BUILTIN_xxBITS>: Same.
24780
661bc682
RB
247812013-02-08 Richard Biener <rguenther@suse.de>
24782
24783 * cfgloop.c (verify_loop_structure): Properly handle
24784 a loop exiting to another loop header.
24785 * ira-int.h (ira_loops): Remove.
24786 * ira.c (ira_loops): Remove.
24787 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
24788 (do_reload): Use loop_optimizer_finalize.
24789 * ira-build.c (create_loop_tree_nodes): Use get_loops and
24790 number_of_loops to access the loop tree.
24791 (more_one_region_p): Likewise.
24792 (finish_loop_tree_nodes): Likewise.
24793 (rebuild_regno_allocno_maps): Likewise.
24794 (mark_loops_for_removal): Likewise.
24795 (mark_all_loops_for_removal): Likewise.
24796 (remove_unnecessary_regions): Likewise.
24797 (ira_build): Likewise.
24798 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
24799
0d5049b2
RB
248002013-02-08 Richard Biener <rguenther@suse.de>
24801
24802 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
24803 * ipa-pure-const.c (analyze_function): Avoid calling
24804 mark_irreducible_loops twice.
8e10366f 24805 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 24806
499f32e8
DM
248072013-02-07 David S. Miller <davem@davemloft.net>
24808
24809 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
24810 on 'reg'.
24811 * var-tracking.c (vt_add_function_parameter): Test the presence of
24812 HAVE_window_save properly and do not remap argument registers when
24813 we have a leaf function.
24814
6edc3e32
UB
248152013-02-07 Uros Bizjak <ubizjak@gmail.com>
24816
24817 PR bootstrap/56227
24818 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
24819 instead of "ll".
24820 * config/i386/i386.c (ix86_print_operand): Ditto.
24821
5306401f
VM
248222013-02-07 Vladimir Makarov <vmakarov@redhat.com>
24823
6edc3e32 24824 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 24825
027ece11
VM
248262013-02-07 Vladimir Makarov <vmakarov@redhat.com>
24827
24828 PR rtl-optimization/56225
24829 * lra-constraints.c (process_alt_operands): Check that reload hard
24830 reg can hold value for strict_low_part.
24831
f980dfdb
JJ
248322013-02-07 Jakub Jelinek <jakub@redhat.com>
24833
24834 PR debug/56154
24835 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
24836 dwarf2out_end_function.
24837 (in_first_function_p, maybe_at_text_label_p,
24838 first_loclabel_num_not_at_text_label): New variables.
24839 (dwarf2out_var_location): In the first function find out
6edc3e32 24840 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
24841 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
24842 functions.
24843
73dd3123
EB
248442013-02-07 Eric Botcazou <ebotcazou@adacore.com>
24845
24846 PR rtl-optimization/56178
24847 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
24848 SUBREG of a register. Tidy up related block of code.
24849 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
24850 note if the source is a register or a SUBREG of a register.
24851
e3936f47
JJ
248522013-02-07 Jakub Jelinek <jakub@redhat.com>
24853
24854 PR target/56228
24855 * config/rs6000/rs6000.md (ptrm): New mode attr.
24856 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
24857 call_value_indirect_aix<pttrsize>,
24858 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
24859 m in constraints.
24860
d96d674b
MH
248612013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
24862
24863 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
24864 if -bnortl. Convert to strcmp and strncmp.
24865
921f2dee
AM
248662013-02-07 Alan Modra <amodra@gmail.com>
24867
24868 PR target/54009
24869 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
24870 addresses won't wrap when offsetting.
24871 (rs6000_secondary_reload): Provide secondary reloads needed for
24872 wrapping LO_SUM addresses.
24873
d09c7dba
TS
248742013-02-06 Thomas Schwinge <thomas@codesourcery.com>
24875
24876 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
24877 MACH, just __MACH__.
24878
a44bbd48
RB
248792013-02-06 Richard Biener <rguenther@suse.de>
24880
24881 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
24882 instead of calling fix_loop_structure.
24883
6d840d99
JJ
248842013-02-06 Jakub Jelinek <jakub@redhat.com>
24885
24886 PR middle-end/56217
24887 * omp-low.c (use_pointer_for_field): Return false if
24888 lower_send_shared_vars doesn't generate any copy-out code.
24889
0f33baa9
TV
248902013-02-06 Tom de Vries <tom@codesourcery.com>
24891
24892 PR rtl-optimization/56131
24893 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
24894 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
24895 of the label is NULL. Add comment.
24896
11f1e3ab
JJ
248972013-02-05 Jakub Jelinek <jakub@redhat.com>
24898
31502f9f
JJ
24899 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
24900
a74db9bd
JJ
24901 PR sanitizer/55374
24902 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
24903 (STATIC_LIBTSAN_LIBS): Likewise.
24904 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
24905 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
24906 is defined, don't add anything else beyond that.
24907 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
24908 (LINK_COMMAND_SPEC): Use them.
24909
11f1e3ab
JJ
24910 PR tree-optimization/56205
24911 * tree-stdarg.c (check_all_va_list_escapes): Return true if
24912 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
24913 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
24914
14ac6aa2
RB
249152013-02-05 Richard Biener <rguenther@suse.de>
24916
24917 PR tree-optimization/53342
24918 PR tree-optimization/53185
24919 * tree-vectorizer.h (vect_check_strided_load): Remove.
24920 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
24921 not disallow peeling for vectorized strided loads.
24922 (vect_check_strided_load): Make static and simplify.
24923 (vect_analyze_data_refs): Adjust.
24924 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
24925 correctly when vectorizing strided loads.
24926
6f22445a
RB
249272013-02-05 Richard Biener <rguenther@suse.de>
24928
24929 * doc/install.texi: Refer to ISL, not PPL.
24930
39f9719e
JH
249312013-02-05 Jan Hubicka <jh@suse.cz>
24932
ec4224ac
JH
24933 PR tree-optimization/55789
24934 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
24935
249362013-02-05 Jan Hubicka <jh@suse.cz>
24937
24938 PR tree-optimization/55789
39f9719e
JH
24939 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
24940 the dead call anyway.
24941
956d3b33
EB
249422013-02-05 Eric Botcazou <ebotcazou@adacore.com>
24943
24944 PR sanitizer/55374
24945 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
24946
249472013-02-04 Alexander Potapenko <glider@google.com>
24948 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
24949 Jakub Jelinek <jakub@redhat.com>
24950
24951 PR sanitizer/55617
24952 * config/darwin.c (sort_ctor_records): Stabilized qsort
24953 on constructor priority by using original position.
24954 (finalize_ctors): New routine to sort constructors by
24955 priority before use in assemble_integer.
24956 (machopic_asm_out_constructor): Use finalize_ctors if needed.
24957
7ac3af38
JJ
249582013-02-04 Jakub Jelinek <jakub@redhat.com>
24959
24960 PR libstdc++/54314
24961 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
24962 about visibility on artificial decls.
24963 * config/sol2.c (solaris_assemble_visibility): Likewise.
24964
152689dc
KT
249652013-02-04 Kai Tietz <ktietz@redhat.com>
24966
24967 PR target/56186
24968 * config/i386/i386.c (function_value_ms_64): Add additional valtype
24969 argument and improve checking of return-argument types for 16-byte
24970 modes.
24971 (ix86_function_value_1): Add additional valtype argument on call
24972 of function_value_64.
24973 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
24974 handling infunction_value_64 function.
24975
2b5987b5
MGD
249762013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
24977
7ac3af38 24978 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 24979
14597080
RB
249802013-02-04 Richard Biener <rguenther@suse.de>
24981
24982 PR tree-optimization/56188
24983 * tree-ssa-structalias.c (label_visit): Consider case with
24984 initially non-empty points-to set.
24985 (perform_var_substitution): Dump node mapping and clean up.
24986
ed73881e
RG
249872013-02-04 Richard Guenther <rguenther@suse.de>
24988
24989 PR lto/56168
24990 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
24991 node prevail as last resort.
24992 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 24993 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 24994
139a0707
RB
249952013-02-04 Richard Biener <rguenther@suse.de>
24996
24997 PR tree-optimization/56113
24998 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
24999 Merge into ...
25000 (equiv_class_lookup_or_add): ... this.
25001 (label_visit): Adjust and fix error in previous patch.
25002 (perform_var_substitution): Adjust.
25003
50fe8924
OE
250042013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25005
25006 * config/sh/divtab.c: Fix formatting and comments throughout the file.
25007 * config/sh/sh4-300.md: Likewise.
25008 * config/sh/sh4a.md: Likewise.
25009 * config/sh/constraints.md: Likewise.
25010 * config/sh/sh.md: Likewise.
25011 * config/sh/netbsd-elf.h: Likewise.
25012 * config/sh/predicates.md: Likewise.
25013 * config/sh/sh-protos.h: Likewise.
25014 * config/sh/ushmedia.h: Likewise.
25015 * config/sh/linux.h: Likewise.
25016 * config/sh/sh.c: Likewise.
25017 * config/sh/superh.h: Likewise.
25018 * config/sh/elf.h: Likewise.
25019 * config/sh/sh4.md: Likewise.
25020 * config/sh/sh.h: Likewise.
25021
1a04ac2b
JDA
250222013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25023
25024 * config/pa/constraints.md: Adjust unused letters. Change "T"
25025 constraint to match_test floating_point_store_memory_operand().
25026 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
25027 (base14_operand): New.
25028 (floating_point_store_memory_operand): New.
25029 (integer_store_memory_operand): Revise to use base14_operand and
25030 reg_plus_base_memory_operand.
25031 (move_dest_operand): Allow symbolic_memory_operands.
25032 (symbolic_memory_operand): Check for LO_SOM.
25033 (symbolic_operand): Change default case to break.
25034 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
25035 CONST_DOUBLE values to be reloaded by putting them into memory when
25036 the destination is a floating point register.
25037 (movdf): Remove code to handle CONST_DOUBLE.
25038 (movsf): Likewise.
25039 (reload_indf_r1): New.
25040 (reload_insf_r1): New.
25041 Consistently use "Q" and "T" constraints with integer and floating
25042 point move instructions, respectively.
25043 (movdi): Remove FAIL.
25044 Change predicate for source operand unamed DImode move from
25045 general_operand to move_src_operand.
25046 (umulsidi3): Change predicate for destination operand to
25047 register_operand.
25048 Likewise for similar unamed patterns.
25049 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
25050 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
25051 (hppa_legitimize_address): Simplify mask calculation.
25052 (pa_emit_move_sequence): Revised handling of secondary reloads from
25053 REG+D addresses for floating point loads and stores. Directly handle
25054 loading CONST0_RTX (mode) to a floating point register.
25055 (pa_secondary_reload): Handle reloading DF and SFmode constant values
25056 to floating point registers. Don't restrict secondary reloads to
25057 floating point registers to integer modes. Revise some comments and
25058 cleanup some code.
25059 (TARGET_LEGITIMATE_ADDRESS_P): Define.
25060 (pa_legitimate_address_p): New.
25061 (pa_legitimize_reload_address): New.
25062 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
25063 (STRICT_REG_OK_FOR_BASE_P): New.
25064 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
25065 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
25066
3bf65591
DE
250672013-02-03 David Edelsohn <dje.gcc@gmail.com>
25068 Andrew Dixie <andrewd@gentrack.com>
25069
25070 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
25071 flag set.
25072
c0a8a3e6
RS
250732013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
25074
25075 * expmed.c (extract_bit_field_1): Pass the full width of the
25076 structure to get_best_reg_extraction_insn.
25077
99113dff
DE
250782013-02-01 David Edelsohn <dje.gcc@gmail.com>
25079
25080 PR target/54601
25081 * configure.ac (use_cxa_atexit): Add AIX.
25082 * configure: Regenerate.
25083
25084 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
25085
ddd84654
JJ
250862013-02-01 Jakub Jelinek <jakub@redhat.com>
25087
25088 PR debug/54793
25089 * final.c (need_profile_function): New variable.
25090 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
25091 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
25092 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
25093 notes, targetm.asm_out.function_prologue doesn't emit anything,
25094 HAVE_prologue and profiler should be emitted before prologue,
25095 set need_profile_function instead of emitting it.
25096 (final_scan_insn): If need_profile_function, emit
25097 profile_function on the first NOTE_INSN_BASIC_BLOCK or
25098 NOTE_INSN_FUNCTION_BEG note.
25099
251002013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
25101
25102 * config/rs6000/rs6000.md (smulditi3): New.
25103 (umulditi3): New.
25104
ff2a9d88
RH
25105 * config/alpha/alpha.md (umulditi3): New.
25106
14d52b90
DE
251072013-02-01 David Edelsohn <dje.gcc@gmail.com>
25108
25109 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
25110 (ASM_OUTPUT_ALIGNED_LOCAL): New.
25111
8c7ca45c
RB
251122013-02-01 Richard Biener <rguenther@suse.de>
25113
25114 PR tree-optimization/56113
25115 * tree-ssa-structalias.c (label_visit): Reduce work for
25116 single-predecessor nodes.
25117
9f419393
EB
251182013-02-01 Eric Botcazou <ebotcazou@adacore.com>
25119
25120 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
25121 range isn't testing for zero.
25122
c5f4be84
SB
251232013-01-31 Steven Bosscher <steven@gcc.gnu.org>
25124
25125 PR middle-end/56113
25126 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
25127
dbdbd982
NC
251282013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
25129 Nick Clifton <nickc@redhat.com>
25130
25131 * config/v850/constraints.md (Q): Define as a memory constraint.
25132 * config/v850/predicates.md (label_ref_operand): New predicate.
25133 (e3v5_shift_operand): New predicate.
25134 (ior_operator): New predicate.
25135 * config/v850/t-v850: Add e3v5 multilib.
25136 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
25137 (v850_gen_movdi): Prototype.
25138 * config/v850/v850.c: Add support for e3v5 architecture.
25139 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
25140 TARGET_V850E_UP.
25141 (construct_save_jarl): Add e3v5 long JARL support.
25142 (v850_adjust_insn_length): New function. Adjust length of call
25143 insns when using e3v5 instructions.
25144 (v850_gen_movdi): New function: Generate instructions to move a
25145 DImode value.
25146 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
25147 (CPP_SPEC): Define __v850e3v5__ as appropriate.
25148 (TARGET_USE_FPU): Enable for e3v5.
25149 (CONST_OK_FOR_W): New macro.
25150 (ADJUST_INSN_LENGTH): Define.
25151 * config/v850/v850.md (UNSPEC_LOOP): Define.
25152 (attr cpu): Add v850e3v5.
25153 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
25154 (movdi): New pattern.
25155 (movdi_internal): New pattern.
25156 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
25157 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
25158 (cstoresf4): Likewise.
25159 (cstoredf4): Likewise.
25160 (insv): New pattern.
25161 (rotlso3_a): New pattern.
25162 (rotlsi3_b): New pattern
25163 (rotlsi3_v850e3v5): New pattern.
25164 (doloop_begin): New pattern.
25165 (fix_loop_counter): New pattern.
25166 (doloop_end): New pattern.
25167 (branch_normal): Add e3v5 long branch support.
25168 (branch_invert): Likewise.
25169 (branch_z_normal): Likewise.
25170 (branch_z_invert): Likewise.
25171 (branch_nz_normal): Likewise.
25172 (branch_nz_invert): Likewise.
25173 (call_internal_short): Add e3v5 register-indirect JARL support.
25174 (call_internal_long): Likewise.
25175 (call_value_internal_short): Likewise.
25176 (call_value_internal_long): Likewise.
25177 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
25178 (mloop): New option.
25179 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 25180 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 25181
73861a41
PK
251822013-01-31 Paul Koning <ni1d@arrl.net>
25183
25184 PR debug/55059
25185 PR debug/54508
25186 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
25187 children if parent is a class.
25188 (prune_unused_types_prune): Don't add DW_AT_declaration.
25189
e44978dc
RB
251902013-01-31 Richard Biener <rguenther@suse.de>
25191
25192 PR tree-optimization/56157
25193 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
25194 match up operand with SLP child.
25195
90b10dec
JM
251962013-01-31 Jason Merrill <jason@redhat.com>
25197
04d2dadd 25198 PR debug/54410
90b10dec
JM
25199 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
25200 parameters the first time.
25201 (gen_scheduled_generic_parms_dies): Check completeness here.
25202
6e616110
RB
252032013-01-31 Richard Biener <rguenther@suse.de>
25204
25205 PR middle-end/53073
25206 * common.opt (faggressive-loop-optimizations): New flag,
25207 enabled by default.
25208 * doc/invoke.texi (faggressive-loop-optimizations): Document.
25209 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
25210 infer_loop_bounds_from_undefined by it.
25211
636f59cf
RB
252122013-01-31 Richard Biener <rguenther@suse.de>
25213
25214 PR tree-optimization/56150
25215 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
25216 visit virtual operands.
25217 (find_uses_to_rename_bb): Likewise.
25218
252192013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
25220
25221 PR tree-optimization/56150
25222 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
25223 mixed store non-store stmts.
25224
32887460
JJ
252252013-01-30 Jakub Jelinek <jakub@redhat.com>
25226
e60e09a0
JJ
25227 PR sanitizer/55374
25228 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
25229 LIBASAN_EARLY_SPEC is defined.
25230 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
25231 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
25232 before %o.
25233 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
25234
32887460
JJ
25235 PR c++/55742
25236 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
25237 invalid args instead of ICEing on it.
25238 (ix86_valid_target_attribute_tree): Return error_mark_node if
25239 ix86_valid_target_attribute_inner_p failed.
25240 (ix86_valid_target_attribute_p): Return false only if
25241 ix86_valid_target_attribute_tree returned error_mark_node. Allow
25242 target("default") attribute.
25243 (sorted_attr_string): Change argument from const char * to tree,
25244 merge in all target attribute arguments rather than just one.
25245 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
25246 instead of free. Avoid using strcat.
25247 (ix86_mangle_function_version_assembler_name): Mangle
25248 target("default") as if no target attribute is present. Adjust
25249 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
25250 instead of xmalloc and XDELETEVEC instead of free.
25251 (ix86_function_versions): Don't return true if one of the decls
25252 doesn't have target attribute. If they don't and one of the decls
25253 is DECL_FUNCTION_VERSIONED, report an error. Adjust
25254 sorted_attr_string caller. Use XDELETEVEC instead of free.
25255 (ix86_supports_function_versions): Remove.
25256 (make_name): Fix up formatting.
25257 (make_dispatcher_decl): Remove resolver_name and its initialization.
25258 Avoid leaking memory.
25259 (is_function_default_version): Return true if there is
25260 target("default") attribute rather than no target attribute at all.
25261 (make_resolver_func): Avoid leaking memory.
25262 (ix86_generate_version_dispatcher_body): Likewise.
25263 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
25264 * target.def (supports_function_versions): Remove.
25265 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
25266 * doc/tm.texi: Regenerated.
25267
73cca0cc
VM
252682013-01-30 Vladimir Makarov <vmakarov@redhat.com>
25269
25270 PR rtl-optimization/56144
25271 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
25272 for values with side effects.
25273
11452e7b
RB
252742013-01-30 Richard Biener <rguenther@suse.de>
25275
25276 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
25277 (sparseset_pop): Likewise.
25278 * cfganal.c (compute_idf): Likewise. Increase work-stack size
25279 to be able to use quick_push in the worker loop.
25280
01cb1ef5
MP
252812013-01-30 Marek Polacek <polacek@redhat.com>
25282
25283 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
25284
e892936e
RB
252852013-01-30 Richard Biener <rguenther@suse.de>
25286
25287 PR lto/56147
6edc3e32 25288 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 25289
cc06c01d
GJL
252902013-01-30 Georg-Johann Lay <avr@gjlay.de>
25291
25292 PR tree-optimization/56064
25293 * fixed-value.c (fixed_from_double_int): New function.
25294 * fixed-value.h (fixed_from_double_int): New prototype.
25295 (const_fixed_from_double_int): New static inline function.
25296 * fold-const.c (native_interpret_fixed): New static function.
25297 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
25298 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
25299 (native_encode_fixed): New static function.
25300 (native_encode_expr) <FIXED_CST>: Use it.
25301 (native_interpret_int): Move double_int worker code to...
25302 * double-int.c (double_int::from_buffer): ...this new static method.
25303 * double-int.h (double_int::from_buffer): Prototype it.
25304
d394a308
RB
253052013-01-30 Richard Biener <rguenther@suse.de>
25306
25307 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
25308 New pointer-map and obstack.
25309 (init_alias_vars): Allocate pointer-map and obstack.
25310 (delete_points_to_sets): Free them.
25311 (find_what_var_points_to): Cache result.
25312 (find_what_p_points_to): Adjust for changed interface of
25313 find_what_var_points_to.
25314 (compute_points_to_sets): Likewise.
25315 (ipa_pta_execute): Likewise.
25316
20804d96
RO
253172013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25318
25319 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
25320 * configure: Regenerate.
25321 * config.in: Regenerate.
25322 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
25323 #nobits/#progbits if supported.
25324
a7ad88a2
OE
253252013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
25326
25327 PR target/56121
25328 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
25329 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
25330 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
25331
7af79f92
GY
253322013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25333
91bfca59
OE
25334 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
25335 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 25336
753bcf7b
GY
253372013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25338
91bfca59
OE
25339 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
25340 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 25341
8cbc2ea8
GY
253422013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25343
91bfca59
OE
25344 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
25345 declaration.
25346 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
25347 * config/arm/cortex-a7.md: New bypasses using
25348 arm_mac_accumulator_is_result.
8cbc2ea8 25349
697a3325
GY
253502013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25351
91bfca59 25352 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 25353 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
25354 (cortex_a7_fpfmad): New reservation.
25355 (cortex_a7_fpmacs): Use ffmas and update required units.
25356 (cortex_a7_fpmuld): Update required units and latency.
25357 (cortex_a7_fpmacd): Likewise.
25358 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
25359 (cortex_a7_neon). Likewise.
25360 (bypass) Update participating units.
697a3325 25361
29637783
GY
253622013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25363
91bfca59
OE
25364 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
25365 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
25366 from fmac to ffma.
25367 * config/arm/vfp11.md (vfp_farith): Use ffmas.
25368 (vfp_fmul): Use ffmad.
25369 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
25370 (cortex_r4_fmacd): Use ffmad.
25371 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
25372 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
25373 (cortex_a9_fmacd): Use ffmad.
25374 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
25375 (cortex_a8_vfp_macd): Use ffmad.
25376 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
25377 (cortex_a5_fpmacd): Use ffmad.
25378 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
25379 (cortex_a15_vfp_macd): Use ffmad.
25380 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 25381
2ee8a2d5
JM
253822013-01-29 Jason Merrill <jason@redhat.com>
25383
25384 PR libstdc++/54314
25385 * varasm.c (default_assemble_visibility): Don't warn about
25386 visibility on artificial decls.
25387
78d087bc
RB
253882013-01-29 Richard Biener <rguenther@suse.de>
25389
25390 PR tree-optimization/56113
25391 * tree-ssa-structalias.c (equiv_class_lookup): Also return
25392 the bitmap leader.
25393 (label_visit): Free duplicate bitmaps and record the leader instead.
25394 (perform_var_substitution): Adjust.
25395
83ba4d6f
RB
253962013-01-29 Richard Biener <rguenther@suse.de>
25397
25398 PR tree-optimization/55270
25399 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
25400 the CFG, schedule loops for fixup.
25401
66dfe13f
NC
254022013-01-29 Nick Clifton <nickc@redhat.com>
25403
25404 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
25405 SP_REG.
25406
5a579c3b
LE
254072013-01-28 Leif Ekblad <leif@rdos.net>
25408
25409 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
25410 * config/i386/i386.h (TARGET_RDOS): New macro.
25411 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
25412 * config/i386/i386.c (ix86_option_override_internal): For 64bit
25413 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
25414 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
25415 DEFAULT_LARGE_SECTION_THRESHOLD.
25416 * config/i386/i386.md (R14_REG, R15_REG): New constants.
25417 * config/i386/rdos.h: New file.
25418 * config/i386/rdos64.h: New file.
25419
51e44392
BS
254202013-01-28 Bernd Schmidt <bernds@codesourcery.com>
25421
25422 PR other/54814
25423 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
25424 TEST_HARD_REG_BIT.
25425
db1fb332
JJ
254262013-01-28 Jakub Jelinek <jakub@redhat.com>
25427
25428 PR rtl-optimization/56117
25429 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
25430 call cselib_lookup_from_insn on the MEM before calling
25431 add_insn_mem_dependence.
25432
16917761
RB
254332013-01-28 Richard Biener <rguenther@suse.de>
25434
25435 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
25436 to a stmt that didn't have one.
25437 (copy_phis_for_bb): Likewise for PHI arguments.
25438 (copy_debug_stmt): Likewise for debug stmts.
25439
b9fc0497
RB
254402013-01-28 Richard Biener <rguenther@suse.de>
25441
25442 PR tree-optimization/56034
6edc3e32 25443 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
25444 (partition_builtin_p): Adjust.
25445 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
25446 it is the last partition.
25447 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
25448 up the vertex for the definition.
25449 (classify_partition): Classify whether a partition is a
25450 PKIND_REDUCTION, thus has uses outside of the loop.
25451 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
25452 Merge all PKIND_REDUCTION partitions into the last partition.
25453 (tree_loop_distribution): Seed partitions from reductions as well.
25454
aa710d25
JJ
254552013-01-28 Jakub Jelinek <jakub@redhat.com>
25456
0bfbca58
JJ
25457 PR tree-optimization/56125
25458 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
25459 pow(x,c) into sqrt(x) * powi(x, n/2) or
25460 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
25461 optimizing for size.
25462 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
25463 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
25464 integer.
25465
aa710d25
JJ
25466 PR tree-optimization/56094
25467 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
25468 to UNKNOWN_LOCATION while gimplifying expr.
25469
77dc5297
UB
254702013-01-27 Uros Bizjak <ubizjak@gmail.com>
25471
25472 PR target/56114
25473 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
25474 operand 0 in movabs insn template for -masm=intel asm alternative.
25475 (*movabs<mode>_2): Ditto for operand 1.
25476
0bfbca58 254772013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
25478
25479 PR target/54663
25480 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
25481 of microblaze-c.o
25482
0bfbca58 254832013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
25484
25485 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
25486 tm_file.
25487
0bfbca58 254882013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
25489
25490 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
25491 Undef to avoid warning.
25492
478f60f9
MH
254932013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25494
25495 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
25496 * configure: Regenerate.
25497
d7fa6ee2
JJ
254982013-01-25 Jakub Jelinek <jakub@redhat.com>
25499
25500 PR tree-optimization/56098
25501 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
25502 for stmts with volatile ops.
25503 (cond_store_replacement): Don't optimize if assign has volatile ops.
25504 (cond_if_else_store_replacement_1): Don't optimize if either
25505 then_assign or else_assign have volatile ops.
25506 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
25507 volatile ops.
25508
f8fe87bd
GJL
255092013-01-25 Georg-Johann Lay <avr@gjlay.de>
25510
25511 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
25512
28398d0d
GJL
255132013-01-25 Georg-Johann Lay <avr@gjlay.de>
25514
25515 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
25516 missing ':' in asm example.
25517
b7d7d917
TB
255182013-01-25 Tejas Belagod <tejas.belagod@arm.com>
25519
25520 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
25521 entries into lane and laneq entries.
77dc5297
UB
25522 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
25523 Remove AdvSIMD scalar modes.
b7d7d917
TB
25524 (aarch64_sq<r>dmulh_laneq<mode>): New.
25525 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
25526 modes.
25527 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
25528 builtin implementations to relfect changes in RTL in aarch64-simd.md.
25529 * config/aarch64/iterators.md (VCOND): New.
25530 (VCONQ): New.
25531
556f9906
GJL
255322013-01-25 Georg-Johann Lay <avr@gjlay.de>
25533
25534 PR target/54222
25535 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
25536 Add NULL LIBNAME argument to existing definitions.
25537 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
25538 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
25539 * config/avr/avr.c (DEF_BUILTIN): Same.
25540 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
25541 (avr_expand_builtin): Expand to a vanilla call if a libgcc
25542 implementation is available (DECL_ASSEMBLER_NAME is set).
25543 (avr_fold_absfx): New static function.
25544 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
25545 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
25546 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
25547 AVR_BUILTIN_ABSLLK.
25548 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
25549 (abshk, absk, abslk, absllk): Provide as static inline functions.
25550
1f546bbb
MP
255512013-01-25 Marek Polacek <polacek@redhat.com>
25552
25553 PR tree-optimization/56035
25554 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
25555
7e184bd7
UB
255562012-01-24 Uros Bizjak <ubizjak@gmail.com>
25557
25558 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
25559 (*movtf_internal_rex64): Add (!o,C) alternative
25560 (*movxf_internal_rex64): Ditto.
25561 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
25562
f5ba49ac
SM
255632013-01-24 Shenghou Ma <minux.ma@gmail.com>
25564
25565 * doc/invoke.texi: fix typo.
25566 * doc/objc.texi: fix typo.
25567
a6343728
RS
255682013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
25569
25570 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
25571 for the first two alternatives.
25572
cd030c07
DN
255732013-01-24 Diego Novillo <dnovillo@google.com>
25574
77dc5297 25575 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
25576 (ggc-zone.o): Remove.
25577 * configure.ac: Remove option --with-gc.
25578 * configure: Re-generate.
25579 * doc/install.texi: Remove documentation for --with-gc.
25580 * gengtype.c (write_enum_defn): Remove. Update all users.
25581 (write_Types_process_field): Remove generation of gt_e_* argument.
25582 (output_type_enum): Remove. Update all users.
25583 (write_enum_defn): Remove. Update all users.
25584 (enum alloc_zone): Remove. Update all users.
77dc5297 25585 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
25586 * ggc-common.c (ggc_splay_alloc): Remove first argument.
25587 Update all callers.
25588 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 25589 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
25590 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
25591 Update all users.
aaf1e810 25592 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
25593 (struct alloc_zone): Remove.
25594 (ggc_internal_alloc_zone_stat): Remove.
25595 (ggc_internal_cleared_alloc_zone_stat): Remove.
25596 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
25597 (ggc_pch_count_object): Remove last argument. Update all users.
25598 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
25599 (struct alloc_zone): Remove.
25600 * ggc-zone.c: Remove.
77dc5297 25601 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
25602 (struct alloc_zone): Remove.
25603 (ggc_alloc_typed_stat): Remove.
25604 (ggc_alloc_typed): Remove.
25605 (ggc_splay_alloc): Remove first argument.
25606 (rtl_zone): Remove. Update all users.
25607 (tree_zone): Remove. Update all users.
25608 (tree_id_zone): Remove. Update all users.
25609 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 25610 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 25611 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 25612 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 25613
a861ffa4
GJL
256142013-01-24 Georg-Johann Lay <avr@gjlay.de>
25615
25616 * config/avr/avr.c (avr_out_fract): Make register numbers that
25617 might be outside of source operand signed.
25618
593c0ddd
UB
256192013-01-24 Uros Bizjak <ubizjak@gmail.com>
25620
25621 * config/i386/constraints.md (Yf): New constraint.
25622 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
25623 of f constraint to conditionaly disable x87 register preferences.
25624 (*movdf_internal): Ditto.
25625 (*movsf_internal): Ditto.
25626
e86c0101
SB
256272013-01-24 Steven Bosscher <steven@gcc.gnu.org>
25628
25629 PR inline-asm/55934
25630 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
25631 that have operands with impossible constraints.
25632 Add a FIXME for a speed-up opportunity.
25633 * lra-constraints.c (process_alt_operands): Verify that a class
25634 selected from constraints on asms is valid for the operand mode.
25635 (curr_insn_transform): Remove incorrect comment.
25636
f6fee35f
DE
256372013-01-23 David Edelsohn <dje.gcc@gmail.com>
25638
25639 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
25640 TOC operand is a valid symbol ref in the constant pool.
25641
256422013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 25643
aaf1e810 25644 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 25645
dc62d7d1
GJL
256462013-01-23 Georg-Johann Lay <avr@gjlay.de>
25647
25648 PR target/54222
25649 * config/avr/stdfix.h: New file.
25650 * t-avr (stdfix-gcc.h): New rule to build it.
25651 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
25652
2660d12d
KS
256532013-01-23 Kostya Serebryany <kcc@google.com>
25654
77dc5297
UB
25655 * config/darwin.h: remove dependency on
25656 CoreFoundation (asan on Mac OS).
2660d12d 25657
a70418fc
JJ
256582013-01-23 Jakub Jelinek <jakub@redhat.com>
25659
25660 PR target/49069
25661 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
25662 instead of cmpdi_operand for first comparison operand.
25663 Don't assert that comparison operands aren't both constants.
25664
47876a2a
JW
256652013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
25666
25667 * doc/install.texi (Downloading the Source): Update references to
25668 downloading separate components.
25669
256702013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
25671
25672 * doc/extend.texi (__int128): Improve grammar.
25673
47876a2a 256742013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
25675
25676 PR target/56028
25677 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
25678 alternative to (o,r).
25679 (*movdi_internal_rex64): Remove (!o,n) alternative.
25680 (DImode immediate->memory splitter): Remove.
25681 (DImode immediate->memory peephole2): Remove.
25682 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
25683 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
25684 alternative to (!o,*r).
25685 (*movtf_internal_sse): New pattern.
25686 (*movxf_internal_rex64): New pattern.
25687 (*movxf_internal): Disable for TARGET_64BIT.
25688 (*movdf_internal_rex64): Remove (!o,F) alternative.
25689
3a984f10
JJ
256902013-01-22 Jakub Jelinek <jakub@redhat.com>
25691
502498d5
JJ
25692 PR middle-end/56074
25693 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
25694 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
25695 * tree-vect-loop-manip.c (find_loop_location): Also ignore
25696 stmt locations where LOCATION_LOCUS of the stmt location is
25697 UNKNOWN_LOCATION or BUILTINS_LOCATION.
25698
3a984f10
JJ
25699 PR target/55686
25700 * config/i386/i386.md (UNSPEC_STOS): New.
25701 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
25702 *strsetqi_1): Add UNSPEC_STOS.
25703
fa817f7f
PC
257042013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
25705
25706 PR c++/56067
25707 * doc/invoke.texi: Remove left over -Wsynth example.
25708
8f498c1b
JJ
257092013-01-21 Jakub Jelinek <jakub@redhat.com>
25710
25711 PR tree-optimization/56051
25712 * fold-const.c (fold_binary_loc): Don't fold
25713 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
25714 a narrowing conversion, or widening conversion from signed
25715 to unsigned.
25716
47876a2a 257172013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
25718
25719 PR rtl-optimization/56023
25720 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
25721 dependent on debug instruction.
25722
5b9db1bc
MJ
257232013-01-21 Martin Jambor <mjambor@suse.cz>
25724
25725 PR middle-end/56022
25726 * function.c (allocate_struct_function): Call
25727 invoke_set_current_function_hook earlier.
25728
e8bb7d68
JJ
257292013-01-21 Jakub Jelinek <jakub@redhat.com>
25730
25731 * reload1.c (init_reload): Only initialize reload_obstack
25732 during the first call.
25733
616a4e32
MP
257342013-01-21 Marek Polacek <polacek@redhat.com>
25735
25736 * cfgloop.c (verify_loop_structure): Fix up grammar.
25737
4401981b
YHH
257382013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
25739
25740 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
25741 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
25742
8e87740b
RR
257432013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25744
25745 PR target/56058
25746 * config/arm/marvell-pj4.md: Update copyright year.
25747 Fix up use of alu to alu_reg and simple_alu_imm.
25748
47876a2a 257492013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
25750
25751 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
25752
89d56d79
VM
257532013-01-20 Vladimir Makarov <vmakarov@redhat.com>
25754
25755 PR target/55433
25756 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 25757 insn for secondary memory move when memory mode should be different.
89d56d79 25758
fe603553
JDA
257592013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25760
25761 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
25762 atomic_storedi_1): New patterns.
25763
01284895
VK
257642013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25765
25766 btver2 pipeline descriptions.
25767 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
25768 descriptions.
25769 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 25770 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
25771 type attributes.
25772 * config/i386/btver2.md: New file describing btver2 pipelines.
25773
5630e3e1
JL
257742013-01-19 Andrew Pinski <apinski@cavium.com>
25775
25776 PR tree-optimization/52631
25777 * tree-ssa-sccvn (visit_use): Before looking up the original
25778 statement, try looking up the simplified expression.
25779
650ae806
AG
257802013-01-19 Anthony Green <green@moxielogic.com>
25781
25782 * config/moxie/moxie.c (moxie_expand_prologue): Set
25783 current_function_static_stack_size.
25784
e300ec2d
JJ
257852013-01-18 Jakub Jelinek <jakub@redhat.com>
25786
25787 PR tree-optimization/56029
25788 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
25789 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
25790
a3d7af04
SS
257912013-01-18 Sharad Singhai <singhai@google.com>
25792
25793 PR tree-optimization/55995
25794 * dumpfile.c (dump_loc): Print location only if available.
25795 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
25796
66aa7879
VM
257972013-01-18 Vladimir Makarov <vmakarov@redhat.com>
25798
25799 PR target/55433
25800 * lra-constraints.c (curr_insn_transform): Reuse original insn for
25801 secondary memory move.
25802 (inherit_reload_reg): Use rclass instead of cl for
25803 check_secondary_memory_needed_p.
25804
3f0fee7b
JJ
258052013-01-18 Jakub Jelinek <jakub@redhat.com>
25806
25807 PR middle-end/56015
25808 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 25809 the case where writing real complex part of target modifies op1.
3f0fee7b 25810
70c67693
JG
258112013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
25812
25813 * config/aarch64/aarch64-simd.md
25814 (aarch64_vcond_internal<mode>): Handle unordered cases.
25815 * config/aarch64/iterators.md (v_cmp_result): New.
25816
df8de9b3
YHH
258172013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
25818 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25819
25820 * config/arm/marvell-pj4.md: New file.
25821 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
25822 * config/arm/arm.md (generic_sched): Add marvell_pj4.
25823 (generic_vfp): Likewise.
25824 * config/arm/arm-cores.def: Add marvell-pj4.
25825 * config/arm/arm-tune.md: Regenerate.
25826 * config/arm/arm-tables.opt: Regenerate.
25827 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
25828 * doc/invoke.texi: Document marvell-pj4.
25829
be30c356
TB
258302013-01-18 Tejas Belagod <tejas.belagod@arm.com>
25831
25832 * config/aarch64/arm_neon.h: Map scalar types to standard types.
25833
0bfbca58 258342013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
25835
25836 PR debug/54114
25837 PR debug/54402
25838 PR debug/49888
25839 * var-tracking.c (negative_power_of_two_p): New.
25840 (global_get_addr_cache, local_get_addr_cache): New.
25841 (get_addr_from_global_cache, get_addr_from_local_cache): New.
25842 (vt_canonicalize_addr): Rewrite using the above. Adjust the
25843 heading comment.
25844 (vt_stack_offset_p): Remove.
25845 (vt_canon_true_dep): Always canonicalize loc's address.
25846 (clobber_overlapping_mems): Make sure we have a MEM.
25847 (local_get_addr_clear_given_value): New.
25848 (val_reset): Clear local cached entries.
25849 (compute_bb_dataflow): Create and release the local cache.
25850 Disable duplicate MEMs clobbering.
25851 (emit_notes_in_bb): Clobber MEMs likewise.
25852 (vt_emit_notes): Create and release the local cache.
25853 (vt_initialize, vt_finalize): Create and release the global
25854 cache, respectively.
1f6bc337 25855 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 25856
0bfbca58 258572013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
25858
25859 PR libmudflap/53359
25860 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
25861 not found in the symtab.
25862
0bfbca58 258632013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 25864
c350ba53 25865 PR debug/56006
3aa03517
AO
25866 PR rtl-optimization/55547
25867 PR rtl-optimization/53827
25868 PR debug/53671
25869 PR debug/49888
25870 * alias.c (offset_overlap_p): New, factored out of...
25871 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
25872 the conservative special case for symbolic constants. Don't
25873 adjust zero sizes on alignment.
25874
c664546f
JL
258752013-01-18 Bernd Schmidt <bernds@codesourcery.com>
25876
25877 PR rtl-optimization/52573
25878 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
25879 REG_UNUSED for the same register.
25880
1bd3f750
MP
258812013-01-17 Richard Biener <rguenther@suse.de>
25882 Marek Polacek <polacek@redhat.com>
25883
25884 PR rtl-optimization/55833
25885 * loop-unswitch.c (unswitch_loops): Move loop verification...
25886 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
25887 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
25888 Set it to true when we're removing a loop from hierarchy tree in
25889 an irreducible region.
25890 (fix_bb_placements): Adjust caller.
25891 (fix_loop_placements): Likewise.
25892
e52a8b71
GJL
258932013-01-17 Georg-Johann Lay <avr@gjlay.de>
25894
25895 * config/avr/builtins.def (DEF_BUILTIN): Factor out
25896 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
25897 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
25898 Remove ID. Adjust comments.
25899 * config/avr/avr-c.c (avr_builtin_name): Remove.
25900 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
25901 * config/avr/avr.c (avr_tolower): New static function.
25902 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
25903 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
25904 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
25905 default expansion.
25906
8386a7ea
JH
259072013-01-17 Jan Hubicka <jh@suse.cz>
25908
610fb637 25909 PR tree-optimization/55273
8386a7ea
JH
25910 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
25911
47876a2a 259122013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
25913
25914 PR target/55981
25915 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
25916 store through atomic_store<mode>_1.
25917 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
25918
8222c37e
MJ
259192013-01-17 Martin Jambor <mjambor@suse.cz>
25920
25921 PR tree-optimizations/55264
25922 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
25923 for virtual methods.
25924 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
25925 virtual methods before inlining is over.
25926 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
25927 virtual functions.
25928 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
25929 non-virtual.
25930
79f01c76
VM
259312013-01-16 Vladimir Makarov <vmakarov@redhat.com>
25932
25933 PR rtl-optimization/56005
25934 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
25935 pending reads for prefetch.
25936
d0b6bb1b
IB
259372013-01-16 Ian Bolton <ian.bolton@arm.com>
25938
aaf1e810 25939 * config/aarch64/aarch64.md
d0b6bb1b
IB
25940 (*cstoresi_neg_uxtw): New pattern.
25941 (*cmovsi_insn_uxtw): New pattern.
25942 (*<optab>si3_uxtw): New pattern.
25943 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
25944 (*<optab>si3_insn_uxtw): New pattern.
25945 (*bswapsi2_uxtw): New pattern.
25946
cb9cf03b
RB
259472013-01-16 Richard Biener <rguenther@suse.de>
25948
25949 * tree-inline.c (tree_function_versioning): Remove set but
25950 never used variable.
25951
2cfc56b9
RB
259522013-01-16 Richard Biener <rguenther@suse.de>
25953
25954 PR tree-optimization/55964
25955 * tree-flow.h (rename_variables_in_loop): Remove.
25956 (rename_variables_in_bb): Likewise.
25957 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
25958 (copy_loop_before): Adjust and delete update-ssa status.
25959 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 25960 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
25961 (rename_variables_in_loop): Remove.
25962 (slpeel_update_phis_for_duplicate_loop): Likewise.
25963 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
25964 use available cfg machinery instead of duplicating it.
25965 Update PHI nodes and perform poor-mans SSA update here.
25966 (slpeel_tree_peel_loop_to_edge): Adjust.
25967
c25a0c60
RB
259682013-01-16 Richard Biener <rguenther@suse.de>
25969
25970 PR tree-optimization/54767
25971 PR tree-optimization/53465
25972 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
25973 (vrp_visit_phi_node): For PHI arguments coming via backedges
25974 drop all symbolical range information.
25975 (execute_vrp): Compute backedges.
25976
04b535af
RB
259772013-01-16 Richard Biener <rguenther@suse.de>
25978
25979 * doc/install.texi: Update CLooG and ISL requirements to
25980 0.18.0 and 0.11.1.
25981
8b0a1e0b
CB
259822013-01-16 Christian Bruel <christian.bruel@st.com>
25983
25984 PR target/55301
25985 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
25986 (broken_move): Handle UNSPECV_SP_SWITCH_B.
25987 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
25988
259892013-01-16 DJ Delorie <dj@redhat.com>
25990
25991 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
25992 (UNSPECV_SP_SWITCH_E): New.
25993 (sp_switch_1): Change to an unspec.
25994 (sp_switch_2): Change to an unspec. Don't use post-inc when we
25995 replace $r15.
25996
259972013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
25998
25999 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
26000 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
26001 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
26002 (expand_mem_thread_fence): Ditto.
26003 (expand_mem_signal_fence): Ditto.
26004 (expand_atomic_load): Ditto.
26005 (expand_atomic_store): Ditto.
26006
0bfbca58 260072013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
26008
26009 PR rtl-optimization/55547
26010 PR rtl-optimization/53827
26011 PR debug/53671
26012 PR debug/49888
26013 * alias.c (memrefs_conflict_p): Set sizes to negative after
26014 AND adjustments.
26015
305e3ac1
JJ
260162013-01-15 Jakub Jelinek <jakub@redhat.com>
26017
26018 PR target/55940
26019 * function.c (thread_prologue_and_epilogue_insns): Always
26020 add crtl->drap_reg to set_up_by_prologue.set, even if
26021 stack_realign_drap is false.
26022
f78ac4f2
JBG
260232013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26024
26025 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
26026 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
26027 *call): Fix indention.
26028
a78a8cc4
TV
260292013-01-15 Tom de Vries <tom@codesourcery.com>
26030
26031 PR target/55876
26032 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
26033 Update comment.
26034
0e80383f
VM
260352013-01-15 Vladimir Makarov <vmakarov@redhat.com>
26036
305e3ac1 26037 PR rtl-optimization/55153
0e80383f
VM
26038 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
26039
207b5956
MJ
260402013-01-15 Martin Jambor <mjambor@suse.cz>
26041
26042 PR tree-optimization/55920
26043 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
26044 accesses as grp_to_be_debug_replaced.
26045
a7818b54
JJ
260462013-01-15 Jakub Jelinek <jakub@redhat.com>
26047
26048 PR tree-optimization/55920
26049 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
26050 there is non-useless type conversion needed from debug rhs to lhs,
26051 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
26052
b0fe107e
JM
260532013-01-15 Joseph Myers <joseph@codesourcery.com>
26054 Mikael Pettersson <mikpe@it.uu.se>
26055
26056 PR target/43961
26057 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
26058 Thumb.
26059 (ASM_OUTPUT_CASE_LABEL): Remove.
26060 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
26061 * final.c (shorten_branches): Update alignment of labels before
26062 jump tables if CASE_VECTOR_SHORTEN_MODE.
26063
34ab62ee
RB
260642013-01-15 Richard Biener <rguenther@suse.de>
26065
26066 PR bootstrap/55961
26067 * system.h: Do not include gmp.h for building host tools.
26068
783a3a05
RB
260692013-01-15 Richard Biener <rguenther@suse.de>
26070
26071 PR middle-end/55882
26072 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
26073 account for bitpos when computing alignment.
26074
3a579e09
VY
260752013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
26076
26077 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
26078 (ix86_target_macros_internal): Likewise.
26079
26080 * config/i386/i386.c (m_CORE2I7): Removed.
26081 (m_CORE_HASWELL): New macro.
26082 (m_CORE_ALL): Likewise.
26083 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
26084 (initial_ix86_arch_features): Likewise.
26085 (processor_target_table): Initializations for Core avx2.
26086 (cpu_names): New names "core-avx2".
26087 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
26088 PROCESSOR_CORE_HASWELL.
26089 (ix86_issue_rate): New case.
26090 (ia32_multipass_dfa_lookahead): Likewise.
26091 (ix86_sched_init_global): Likewise.
26092
26093 * config/i386/i386.h (TARGET_HASWELL): New macro.
26094 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
26095 (processor_type): New PROCESSOR_HASWELL.
26096
955f5a07
JJ
260972013-01-15 Jakub Jelinek <jakub@redhat.com>
26098
ff784829
JJ
26099 PR tree-optimization/55955
26100 * tree-vect-loop.c (vectorizable_reduction): Give up early on
26101 *SHIFT_EXPR and *ROTATE_EXPR codes.
26102
955f5a07
JJ
26103 PR tree-optimization/48766
26104 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
26105 -ftrapv disable -fwrapv.
26106
aeb8b4e9
GJL
261072013-01-14 Georg-Johann Lay <avr@gjlay.de>
26108
26109 PR target/55974
26110 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
26111 etc. to 1 and not to __flash.
26112 Use LL suffix for __INT24_MAX__ with -mint8.
26113 Use ULL suffix for __UINT24_MAX__ with -mint8.
26114
1c494c6a
GJL
261152013-01-14 Georg-Johann Lay <avr@gjlay.de>
26116
26117 * config/avr/avr-arch.h
26118 (struct base_arch_s): Use typedef avr_arch_t instead.
26119 (struct arch_info_s): Use typedef avr_arch_info_t instead.
26120 (struct mcu_type_s): Use typedef avr_mcu_t instead.
26121 * config/avr/avr.c: Same.
26122 * config/avr/avr-devices.c: Same.
26123 * config/avr/driver-avr.c: Same.
26124 * config/avr/gen-avr-mmcu-texi.c: Same.
26125 * config/avr/avr-mcus.def: Adjust comment.
26126
a50344cb
TB
261272013-01-14 Tejas Belagod <tejas.belagod@arm.com>
26128
88e784e6
UB
26129 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
26130 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 26131
47876a2a 261322013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
26133 Andi Kleen <ak@linux.intel.com>
26134
26135 PR target/55948
26136 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
26137 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
26138 memmodel flag.
26139
00892272
GJL
261402013-01-14 Georg-Johann Lay <avr@gjlay.de>
26141
26142 * config/avr/avr-stdint.h: Remove trailing blanks.
26143 * config/avr/avr-log.h: Same.
26144 * config/avr/avr-arch.h: Same.
26145 * config/avr/avr-devices.c: Same.
26146 * config/avr/avr-dimode.md: Same.
26147 * config/avr/predicates.md: Same.
26148 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 26149
00892272
GJL
26150 * config/avr/avr-protos.h: Same. And:
26151 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
26152 (init_cumulative_args): Rename to avr_init_cumulative_args.
26153 (expand_prologue): Rename to avr_expand_prologue.
26154 (expand_epilogue): Rename to avr_expand_epilogue.
26155 (adjust_insn_length): Rename to avr_adjust_insn_length.
26156 (notice_update_cc): Rename to avr_notice_update_cc.
26157 (final_prescan_insn): Rename to avr_final_prescan_insn.
26158 * config/avr/avr.c: Same.
26159 * config/avr/avr.h: Same.
26160 * config/avr/avr.md: Remove trailing blanks.
26161 (prologue): Use avr_expand_prologue.
26162 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
26163
7bb01996
RB
261642013-01-14 Richard Biener <rguenther@suse.de>
26165
26166 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
26167 verify_location, collect_subblocks): New functions.
26168 (verify_gimple_in_cfg): Verify that locations only reference
26169 BLOCKs in the functions BLOCK tree.
26170
2724573f
RB
261712013-01-14 Richard Biener <rguenther@suse.de>
26172
26173 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
26174 PHI argument.
26175 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
26176 unshare reference.
26177 (insert_out_of_ssa_copy_on_edge): Likewise.
26178 (rewrite_close_phi_out_of_ssa): Likewise.
26179 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
26180 debug expressions.
26181 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
26182 propagated constants.
26183 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
26184 can not be shared.
26185
9a0bbab6
GJL
261862013-01-14 Georg-Johann Lay <avr@gjlay.de>
26187
26188 * config/avr/avr-modes.def: Add GPL copyright notice.
26189
45805f17
UB
261902013-01-13 Uros Bizjak <ubizjak@gmail.com>
26191
26192 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
26193 MEMMODEL_MASK to determine memory model.
26194 (atomic_store<mode>): Ditto from operands[2].
26195 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
26196
9d60be38
JJ
261972013-01-13 Jakub Jelinek <jakub@redhat.com>
26198
26199 PR fortran/55935
45805f17 26200 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
26201 (fold_gimple_assign): Don't call unshare_expr here.
26202 (fold_ctor_reference): Call unshare_expr.
26203
e7f49d92
TG
262042013-01-13 Terry Guo <terry.guo@arm.com>
26205
aaf1e810
EB
26206 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
26207 * doc/fragments.texi: Document MULTILIB_REUSE.
26208 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 26209 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 26210 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
26211 (tmpmultilib4): Ditto.
26212 (multilib_reuse): New multilib argument.
26213
fbd03a27
RS
262142013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
26215
26216 * Makefile.in: Update copyright.
26217
b3681f13
TV
262182013-01-12 Tom de Vries <tom@codesourcery.com>
26219
26220 PR middle-end/55890
26221 * calls.c (expand_call): Check if arg_nr is valid.
26222
3f287e4b
MM
262232013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26224
26225 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
26226 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
26227 documentation. Add missing '__' in front of
26228 __builtin_ia32_packssdw256.
3f287e4b 26229
1abcd5eb
AK
262302013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26231
26232 PR target/55719
26233 * config/s390/s390.c (s390_preferred_reload_class): Do not return
26234 NO_REGS for larl operands.
26235 (s390_reload_larl_operand): Use s390_load_address instead of
26236 emit_move_insn.
26237
980d0812
RB
262382013-01-11 Richard Biener <rguenther@suse.de>
26239
26240 * tree-cfg.c (verify_node_sharing_1): Split out from ...
26241 (verify_node_sharing): ... here.
26242 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
26243
7cb9fd07
EB
262442013-01-11 Eric Botcazou <ebotcazou@adacore.com>
26245
26246 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
26247 Substitute TREECHECKING.
26248 * configure: Regenerate.
26249 * Makefile.in (TREECHECKING): New.
26250
47876a2a 262512013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
26252
26253 PR tree-optimization/44061
26254 * tree-vrp.c (extract_range_basic): Compute zero as
26255 value-range for __builtin_constant_p of function parameters.
26256
d1e082c2
RS
262572013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
26258
45805f17 26259 Update copyright years.
d1e082c2 26260
f85021b0
VM
262612013-01-10 Vladimir Makarov <vmakarov@redhat.com>
26262
9d60be38 26263 PR rtl-optimization/55672
0160442c
VM
26264 * lra-eliminations.c (mark_not_eliminable): Permit addition with
26265 const to be eliminable.
f85021b0 26266
7a8b1ec4
DE
262672013-01-10 David Edelsohn <dje.gcc@gmail.com>
26268
26269 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
26270 * configure: Regenerate.
26271
ad2e5b71
RB
262722013-01-10 Richard Biener <rguenther@suse.de>
26273
ddf9322d 26274 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 26275
ffc5b2bb
RB
262762013-01-10 Richard Biener <rguenther@suse.de>
26277
26278 PR bootstrap/55792
26279 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
26280 locations for virtual PHI arguments.
26281 (rewrite_update_phi_arguments): Likewise.
26282
e1f674e4
JS
262832013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
26284
26285 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
26286 on to assembler.
26287
a57fc743
JJ
262882013-01-10 Jakub Jelinek <jakub@redhat.com>
26289
26290 PR tree-optimization/55921
26291 * tree-complex.c (expand_complex_asm): New function.
26292 (expand_complex_operations_1): Call it for GIMPLE_ASM.
26293
0ff4390d
AK
262942013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26295
26296 PR target/55718
26297 * config/s390/s390.c (s390_symref_operand_p)
26298 (s390_loadrelative_operand_p): Merge the two functions.
26299 (s390_check_qrst_address, print_operand_address): Add parameters
26300 to s390_loadrelative_operand_p invokation.
26301 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
26302 (s390_reload_larl_operand, s390_secondary_reload): Use
26303 s390_loadrelative_operand_p instead of s390_symref_operand_p.
26304 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
26305
6f557e0e
MS
263062013-01-09 Mike Stump <mikestump@comcast.net>
26307
26308 * dse.c (record_store): Remove unnecessary assert.
26309
7770c9e9
JH
263102013-01-09 Jan Hubicka <jh@suse.cz>
26311
26312 PR tree-optimization/55569
26313 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
26314 * cfgloop.h (scale_loop_profile): Likewise.
26315
a19b1432
JH
263162013-01-09 Jan Hubicka <jh@suse.cz>
26317
26318 PR lto/45375
ddf9322d
UB
26319 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
26320 functions.
a19b1432
JH
26321 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
26322
9a002da8
RS
263232013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
26324
26325 PR middle-end/55114
26326 * expr.h (maybe_emit_group_store): Declare.
26327 * expr.c (maybe_emit_group_store): New function.
26328 * builtins.c (expand_builtin_int_roundingfn): Call it.
26329 (expand_builtin_int_roundingfn_2): Likewise.
26330
511dcace
VM
263312013-01-09 Vladimir Makarov <vmakarov@redhat.com>
26332
e1f2b729 26333 PR rtl-optimization/55829
511dcace
VM
26334 * lra-constraints.c (match_reload): Add code for absent output.
26335 (curr_insn_transform): Add code for reloads of matched inputs
26336 without output.
26337
7b0fe4f4
UB
263382013-01-09 Uros Bizjak <ubizjak@gmail.com>
26339
26340 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
26341 attribute of movddup insn to DF.
26342 (*vec_interleave_lowv2df): Ditto.
26343 (vec_dupv2df): Ditto.
26344
870ca331
JH
263452013-01-09 Jan Hubicka <jh@suse.cz>
26346
26347 PR tree-optimiation/55875
26348 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
26349 EVERY_ITERATION parameter.
7b0fe4f4 26350 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
26351 (idx_infer_loop_bounds): Similarly here.
26352 (n_of_executions_at_most): Simplify
26353 to only test for cases where statement is dominated by the
7b0fe4f4 26354 particular bound; handle correctly the "postdominance" test.
870ca331
JH
26355 (scev_probably_wraps_p): Use max loop iterations info
26356 as a global bound first.
26357
6f575fe4 263582013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
26359 Nick Clifton <nickc@redhat.com>
26360
26361 * config/v850/v850.md (cbranchsf4): New pattern.
26362 (cstoresf4): New pattern.
26363 (cbranchdf4): New pattern.
26364 (cstoredf4): New pattern.
26365 (movsicc): Disallow floating point comparisons.
26366 (cmpsf_le_insn): Fix order of operators.
26367 (cmpsf_lt_insn): Likewise.
26368 (cmpsf_eq_insn): Likewise.
26369 (cmpdf_le_insn): Likewise.
26370 (cmpdf_lt_insn): Likewise.
26371 (cmpdf_eq_insn): Likewise.
26372 (cmpsf_ge_insn): Use LE comparison.
26373 (cmpdf_ge_insn): Likewise.
26374 (cmpsf_gt_insn): Use LT comparison.
26375 (cmpdf_gt_insn): Likewise.
26376 (cmpsf_ne_insn): Delete pattern.
26377 (cmpdf_ne_insn): Delete pattern.
26378 * config/v850/v850.c (v850_gen_float_compare): Use
26379 gen_cmpdf_eq_insn for NE comparison.
26380 (v850_float_z_comparison_operator)
26381 (v850_float_nz_comparison_operator): Move from here ...
26382 * config/v850/predicates.md: ... to here. Move GT and GE
26383 comparisons into v850_float_z_comparison_operator.
26384 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
26385 Delete prototype.
26386 (v850_float_nz_comparison_operator): Likewise.
26387
f0d54148
JDA
263882013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26389
26390 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
26391 with calls to gen_insvsi/gen_insvdi.
26392
8f01beca
VK
263932013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26394
26395 * config/i386/i386.c (initial_ix86_tune_features): Set up
26396 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
26397
2aa579ad
JJ
263982013-01-09 Steven Bosscher <steven@gcc.gnu.org>
26399 Jakub Jelinek <jakub@redhat.com>
26400
26401 PR tree-optimization/48189
26402 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
26403 If nitercst is 0, don't predict the exit edge.
26404
6edc3e32 264052013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
26406
26407 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
26408 in asm_fprintf with reg_names.
26409 (aarch64_print_operand_address): Likewise.
26410 (aarch64_return_addr): Likewise.
26411 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
26412
f6f94d94
JDA
264132013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26414
26415 * config/pa/pa.h (VAL_U6_BITS_P): Define.
26416 (INT_U6_BITS): Likewise.
26417 * config/pa/predicates.md (uint6_operand): New predicate.
26418 (shift5_operand, shift6_operand): Likewise.
26419 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
26420 arith32_operand.
26421 (lshrdi3): Use shift6_operand.
26422 (shrpsi4, shrpdi4): New insn patterns.
26423 (extzv): Delete expander.
26424 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
26425 predicates in unamed zero extract patterns. Tighten common constraint.
26426 (extv): Delete expander.
26427 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
26428 predicates in unamed sign extract patterns. Tighten common constraint.
26429 (insv): Delete expander.
26430 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
26431 predicates in unamed insert patterns. Tighten common constraint.
26432 Change uint32_operand predicate to uint6_operand predicate in unamed
26433 DImode pattern to insert constant values of type 1...1xxxx.
26434
36b72910
JH
264352013-01-04 Jan Hubicka <jh@suse.cz>
26436
26437 PR tree-optimization/55823
7b0fe4f4
UB
26438 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
26439 issue.
36b72910 26440
47876a2a 264412013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
26442 Uros Bizjak <ubizjak@gmail.com>
26443
26444 PR rtl-optimization/55845
26445 * df-problems.c (can_move_insns_across): Stop scanning at
26446 volatile_insn_p source instruction or give up if
26447 across_from .. across_to range contains any volatile_insn_p
26448 instructions.
26449
4369c11e
TB
264502013-01-08 Tejas Belagod <tejas.belagod@arm.com>
26451
7b0fe4f4
UB
26452 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
26453 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
26454 Declare.
4369c11e 26455 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 26456 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 26457
aeb7e7c1
JJ
264582013-01-08 Jakub Jelinek <jakub@redhat.com>
26459
26460 PR fortran/55341
26461 * asan.c (asan_clear_shadow): New function.
26462 (asan_emit_stack_protection): Use it.
26463
a02ad1aa
TB
264642013-01-08 Tejas Belagod <tejas.belagod@arm.com>
26465
26466 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
26467 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
26468 with tab instead of space.
26469
f90d87f5
NC
264702013-01-08 Nick Clifton <nickc@redhat.com>
26471
26472 * config/rl78/rl78.c (rl78_expand_prologue): Always select
26473 register bank 0 at the start of an interrupt handler.
83ffd964
NC
26474 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
26475 MDBH registers.
f90d87f5 26476
385eb93d
JG
264772013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
26478
26479 * config/aarch64/aarch64-simd.md
26480 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
26481 (aarch64_simd_bsl): Likewise.
26482 (aarch64_vcond_internal<mode>): Likewise.
26483 (vcond<mode><mode>): Likewise.
26484 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
26485 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
26486
4dcd1054
JG
264872013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
26488
26489 * config/aarch64/aarch64-builtins.c
26490 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
26491
4267a4a6
MJ
264922013-01-08 Martin Jambor <mjambor@suse.cz>
26493
26494 PR debug/55579
26495 * tree-sra.c (analyze_access_subtree): Return true also after
26496 potentially creating a debug-only replacement.
26497
5f4e6de3
JJ
264982013-01-08 Jakub Jelinek <jakub@redhat.com>
26499
3138f224
JJ
26500 PR middle-end/55890
26501 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
26502
5f4e6de3
JJ
26503 PR tree-optimization/54120
26504 * tree-vrp.c (range_fits_type_p): Don't allow
26505 src_precision < precision from signed vr to unsigned_p
26506 if vr->min or vr->max is negative.
26507 (simplify_float_conversion_using_ranges): Test can_float_p
26508 against CODE_FOR_nothing.
26509
f3ef18ff
JJ
265102013-01-08 Jakub Jelinek <jakub@redhat.com>
26511 Richard Biener <rguenther@suse.de>
26512
26513 PR middle-end/55851
26514 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
26515 types instead of just INTEGER_TYPE types.
26516
25c210f9
MK
265172013-01-07 Mark Kettenis <kettenis@openbsd.org>
26518
26519 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
26520 TF_SIZE): Define.
f90d87f5 26521
81826a7b
SE
265222013-01-07 Steve Ellcey <sellcey@mips.com>
26523
26524 PR target/42661
26525 * config/mips/mips.opt: Change mad to mmad to match documentation.
26526
35678514
GJL
265272013-01-07 Georg-Johann Lay <avr@gjlay.de>
26528
26529 PR target/55897
26530 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
26531 .progmemx.data now.
26532
e5669488
GJL
265332013-01-07 Georg-Johann Lay <avr@gjlay.de>
26534
26535 PR target/55897
26536 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
26537 (avr_addrspace_t): Add .section_name field.
26538 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
26539 array size.
26540 (avr_addrspace): Same. Initialize .section_name. Remove last
26541 NULL entry. Put __memx into .progmemx.data.
26542 (progmem_section_prefix): Remove.
26543 (avr_asm_init_sections): No need to initialize progmem_section.
26544 (avr_asm_named_section): Use avr_addrspace[].section_name to get
26545 section name prefix.
26546 (avr_asm_select_section): Ditto. And use get_unnamed_section to
26547 retrieve the progmem section.
26548 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
26549 boundary to run over avr_addrspace[].
26550 (avr_register_target_pragmas): Ditto.
26551
656e6f37
JJ
265522013-01-06 Jakub Jelinek <jakub@redhat.com>
26553
26554 * varasm.c (output_constant_def_contents): For asan_protect_global
26555 protected strings, adjust DECL_ALIGN if needed, before testing for
26556 anchored symbols.
26557 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
26558 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
26559 normal decls.
26560 (output_object_block): For asan protected decls, emit asan padding
26561 after their contents.
26562 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
26563 (asan_finish_file): Test it here instead.
26564
6edc3e32
UB
265652013-01-07 Nick Clifton <nickc@redhat.com>
26566 Matthias Klose <doko@debian.org>
26567 Doug Kwan <dougkwan@google.com>
26568 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
26569
26570 PR driver/55470
26571 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
26572
26573 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
26574
26575 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
26576
7b0fe4f4 26577 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
26578
26579 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
26580
2a095093
GJL
265812013-01-07 Georg-Johann Lay <avr@gjlay.de>
26582
f3b503f4 26583 PR target/54461
2a095093
GJL
26584 * doc/install.texi (Cross-Compiler-Specific Options): Document
26585 --with-avrlibc.
26586
383f9b34
TB
265872013-01-07 Tejas Belagod <tejas.belagod@arm.com>
26588
26589 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
26590 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
26591 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
26592 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
26593 vqmovun_high_s64): Fix source operand number and update copyright.
26594
3626621a
RB
265952013-01-07 Richard Biener <rguenther@suse.de>
26596
26597 PR middle-end/55890
26598 * gimple.h (gimple_call_builtin_p): New overload.
26599 * gimple.c (validate_call): New function.
26600 (gimple_call_builtin_p): Likewise.
26601 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26602 Use gimple_call_builtin_p.
26603 (find_func_clobbers): Likewise.
26604 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
26605 (strlen_optimize_stmt): Likewise.
26606
8b2ea410
JG
266072013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26608
26609 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
26610 (vld1q_dup_*): Likewise.
26611 (vld1_*): Likewise.
26612 (vld1q_*): Likewise.
26613 (vld1_lane_*): Likewise.
26614 (vld1q_lane_*): Likewise.
26615
9713d329
RB
266162013-01-07 Richard Biener <rguenther@suse.de>
26617
26618 * lto-streamer.h (LTO_minor_version): Bump to 2.
26619
3520f7cc
JG
266202013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26621
26622 * config/aarch64/aarch64-protos.h
26623 (aarch64_const_double_zero_rtx_p): Rename to...
26624 (aarch64_float_const_zero_rtx_p): ...this.
26625 (aarch64_float_const_representable_p): New.
26626 (aarch64_output_simd_mov_immediate): Likewise.
26627 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
26628 move immediate case.
26629 * config/aarch64/aarch64.c
26630 (aarch64_const_double_zero_rtx_p): Rename to...
26631 (aarch64_float_const_zero_rtx_p): ...this.
26632 (aarch64_print_operand): Allow printing of new constants.
26633 (aarch64_valid_floating_const): New.
26634 (aarch64_legitimate_constant_p): Check for valid floating-point
26635 constants.
26636 (aarch64_simd_valid_immediate): Likewise.
26637 (aarch64_vect_float_const_representable_p): New.
26638 (aarch64_float_const_representable_p): Likewise.
26639 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
26640 (aarch64_output_simd_mov_immediate): New.
26641 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
26642 (*movdf_aarch64): Likewise.
26643 * config/aarch64/constraints.md (Ufc): New.
26644 (Y): call aarch64_float_const_zero_rtx.
26645 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
26646
e167c04d
RB
266472013-01-07 Richard Biener <rguenther@suse.de>
26648
26649 PR tree-optimization/55888
26650 PR tree-optimization/55862
26651 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
26652 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
26653 not if it is contained therein.
26654
0139aaab
GJL
266552013-01-07 Georg-Johann Lay <avr@gjlay.de>
26656
26657 * config/avr/t-avr: Typo.
26658
4a176b23
GJL
266592013-01-07 Georg-Johann Lay <avr@gjlay.de>
26660
26661 PR55243
26662 * config/avr/t-avr: Don't automatically rebuild
26663 $(srcdir)/config/avr/t-multilib
26664 $(srcdir)/config/avr/avr-tables.opt
26665 $(srcdir)/doc/avr-mmcu.texi
26666 (avr-mcus): New phony target to build them on request.
26667 (s-avr-mlib, s-avr-mmcu-texi): Remove.
26668 * avr/avr-mcus.def: Adjust comments.
26669
c7afdc98
UB
266702013-01-07 Uros Bizjak <ubizjak@gmail.com>
26671
26672 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
26673
1ab05c31
RS
266742013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26675
26676 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
26677
488e3acc
RS
266782013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26679
26680 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
26681
a89599d2
DE
266822013-01-05 David Edelsohn <dje.gcc@gmail.com>
26683
26684 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
26685 to generate profiling.
26686 * config/rs6000/aix64.h (LIB_SPEC): Same.
26687
70f09188
AP
266882013-01-04 Andrew Pinski <apinski@cavium.com>
26689
26690 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
26691 New function.
26692 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
26693
918d445f
UB
266942013-01-04 Uros Bizjak <ubizjak@gmail.com>
26695
26696 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
26697 unconditionally.
26698 (ix86_expand_move): Ditto.
26699 (ix86_zero_extend_to_Pmode): Ditto.
26700 (ix86_expand_call): Ditto.
26701 (ix86_expand_special_args_builtin): Ditto.
26702 (ix86_expand_builtin): Ditto.
26703
361618ec
RB
267042013-01-04 Richard Biener <rguenther@suse.de>
26705
26706 PR tree-optimization/55862
26707 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
26708 translating them through PHI nodes.
26709
87eab554
MJ
267102013-01-04 Martin Jambor <mjambor@suse.cz>
26711
26712 PR tree-optimization/55755
26713 * tree-sra.c (sra_modify_assign): Do not check that an access has no
26714 children when trying to avoid producing a VIEW_CONVERT_EXPR.
26715
33879b9f
MP
267162013-01-04 Marek Polacek <polacek@redhat.com>
26717
26718 PR middle-end/55859
26719 * opts.c (default_options_optimization): Clarify error message.
26720
3068819a
RB
267212013-01-04 Richard Biener <rguenther@suse.de>
26722
26723 PR middle-end/55863
26724 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
26725 reassociation.
26726
0e4ae794
JDA
267272013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26728
26729 PR target/53789
26730 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
26731 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
26732 references.
0e4ae794 26733
65c88cef
RH
267342013-01-03 Richard Henderson <rth@redhat.com>
26735
26736 * config/i386/i386.c (ix86_expand_move): Always assign to op1
26737 after eliminating TLS symbols.
26738
8ac16127
MG
267392013-01-03 Marc Glisse <marc.glisse@inria.fr>
26740
26741 PR bootstrap/50167
26742 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
26743 * graphite-poly.c (debug_gmp_value): Likewise.
26744
bb664f09
UB
267452013-01-03 Uros Bizjak <ubizjak@gmail.com>
26746
26747 PR target/55712
26748 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
26749 selected code model, define __code_mode_small__, __code_model_medium__,
26750 __code_model_large__, __code_model_32__ or __code_model_kernel__.
26751 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
26752 xchg temporary register with %k. Declare temporary register as
26753 early clobbered.
26754 [__x86_64__]: For medium and large code models, preserve %rbx register.
26755
bcf1ef00
RB
267562013-01-03 Richard Biener <rguenther@suse.de>
26757
0506634a 26758 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
26759 (dump_subscript): Adjust.
26760 (finalize_ddr_dependent): Do not dump redundant info.
26761 (analyze_siv_subscript): Adjust.
26762 (subscript_dependence_tester): Likewise.
26763 (compute_affine_dependence): Likewise.
26764
59fd17e3
RB
267652013-01-03 Richard Biener <rguenther@suse.de>
26766
26767 Revert
26768 2013-01-03 Richard Biener <rguenther@suse.de>
26769
26770 PR tree-optimization/55857
26771 * tree-vect-stmts.c (vectorizable_load): Do not setup
26772 re-alignment for invariant loads.
26773
26774 2013-01-02 Richard Biener <rguenther@suse.de>
26775
26776 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 26777 invariant load do not generate a vector load from the scalar location.
59fd17e3 26778
595c2679
RB
267792013-01-03 Richard Biener <rguenther@suse.de>
26780
26781 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
26782 for not vectorizing.
26783 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
26784 not build INDIRECT_REFs, call get_name once only.
26785 (vect_create_data_ref_ptr): Likewise. Dump base object kind
26786 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
26787
90bb7d7a
RB
267882013-01-03 Richard Biener <rguenther@suse.de>
26789
26790 PR tree-optimization/55857
26791 * tree-vect-stmts.c (vectorizable_load): Do not setup
26792 re-alignment for invariant loads.
26793
f09b77ca
RB
267942013-01-03 Richard Biener <rguenther@suse.de>
26795
26796 PR lto/55848
26797 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
26798 prefer a built-in decl.
26799
3461a16e
JJ
268002013-01-03 Jakub Jelinek <jakub@redhat.com>
26801
df8e2b4f
JJ
26802 * gcc.c (process_command): Update copyright notice dates.
26803 * gcov.c (print_version): Likewise.
26804 * gcov-dump.c (print_version): Likewise.
26805
3461a16e
JJ
26806 PR rtl-optimization/55838
26807 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
26808 iv0.step, iv1.step and step.
26809
8b5546d6
JJ
268102013-01-03 Jakub Jelinek <jakub@redhat.com>
26811 Marc Glisse <marc.glisse@inria.fr>
26812
26813 PR tree-optimization/55832
26814 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
26815 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
26816 integer_{one,zero}_node.
26817
8ab1d2e9
JJ
268182013-01-03 Jakub Jelinek <jakub@redhat.com>
26819
26820 PR debug/54402
26821 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
26822 * var-tracking.c (reverse_op): Don't add reverse ops to
26823 VALUEs that have already
0506634a 26824 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 26825
5b9ad1d4
GP
268262013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
26827
26828 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
26829
e25a6711
TJ
268302013-01-02 Teresa Johnson <tejohnson@google.com>
26831
26832 * dumpfile.c (dump_loc): Print filename with location.
26833 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
26834 new location_t parameter to emit complete unroll message with
26835 new dump framework.
26836 (canonicalize_loop_induction_variables): Compute loops location
26837 and pass to try_unroll_loop_completely.
26838 * loop-unroll.c (report_unroll_peel): New function.
26839 (peel_loops_completely): Use new dump format with location
26840 for main dumpfile message, and invoke report_unroll_peel on success.
26841 (decide_unrolling_and_peeling): Ditto.
26842 (decide_peel_once_rolling): Remove old dumpfile message subsumed
26843 by report_unroll_peel.
26844 (decide_peel_completely): Ditto.
26845 (decide_unroll_constant_iterations): Ditto.
26846 (decide_unroll_runtime_iterations): Ditto.
26847 (decide_peel_simple): Ditto.
26848 (decide_unroll_stupid): Ditto.
26849 * cfgloop.c (get_loop_location): New function.
26850 * cfgloop.h (get_loop_location): Declare.
26851
77878621
ST
268522013-01-02 Sriraman Tallam <tmsriram@google.com>
26853
26854 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
26855 NULL.
26856
9e65d03e
JDA
268572013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26858
26859 PR middle-end/55198
26860 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
26861 BLKmode objects when EXPAND_MEMORY is specified.
26862
6a7da30f
ST
268632013-01-02 Sriraman Tallam <tmsriram@google.com>
26864
26865 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
26866 in loop predicate.
26867 (fold_builtin_cpu): Do not share cpu model decls across statements.
26868
e78167f2
JM
268692013-01-02 Jason Merrill <jason@redhat.com>
26870
26871 PR c++/55804
26872 * tree.c (build_array_type_1): Revert earlier change.
26873
8c075fb4
YZ
268742013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
26875
26876 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
26877 "cortex-a57".
26878 * config/aarch64/aarch64-tune.md: Re-generate.
26879
0682ed3e
RB
268802013-01-02 Richard Biener <rguenther@suse.de>
26881
26882 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 26883 invariant load do not generate a vector load from the scalar location.
0682ed3e 26884
b8f6a302
RB
268852013-01-02 Richard Biener <rguenther@suse.de>
26886
26887 PR bootstrap/55784
26888 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
26889 * configure: Regenerate.
26890
04b80dbb
RS
268912013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26892
26893 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
26894 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
26895 (expand_builtin_int_roundingfn_2): Keep the original target around
26896 for the fallback case.
26897
635b0b0c
RS
268982013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26899
26900 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
26901 to be clear for sign changes.
26902
42d57399
JH
269032013-01-01 Jan Hubicka <jh@suse.cz>
26904
26905 * ipa-inline-analysis.c: Fix formatting.
26906
5bb6669d
JJ
269072013-01-01 Jakub Jelinek <jakub@redhat.com>
26908
26909 PR tree-optimization/55831
26910 * tree-vect-loop.c (get_initial_def_for_induction): Use
26911 gsi_after_labels instead of gsi_start_bb.
ad41bd84 26912\f
86a2db33 26913Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
26914
26915Copying and distribution of this file, with or without modification,
26916are permitted in any medium without royalty provided the copyright
26917notice and this notice are preserved.