]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
toplev.c (process_options): Do not disable -fomit-frame-pointer on a general basis...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
a9dc2a2f
EB
12013-03-28 Eric Botcazou <ebotcazou@adacore.com>
2
3 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5 is not enabled.
6
53cb97f9
GP
72013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8
9 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
10 * doc/extend.texi (Named Address Spaces): Ditto.
11 (Variable Attributes): Ditto.
12
b802ae5c
KT
132013-03-27 Kai Tietz <ktietz@redhat.com>
14
eddae10a
KT
15 * config.build: Add support for cygwin x64 target.
16 * config.gcc: Likewise.
17 * config.host: Likewise.
18 * configure.ac: Likewise
19 * configure: Regenerated.
b802ae5c 20
8269de54
KT
212013-03-27 Kai Tietz <ktietz@redhat.com>
22
23 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
24 * config/i386/t-cygwin-w64: New file.
25 * config/i386/cygwin-w64.h: New file.
26 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
27 and add support for x64-cygwin target.
28 (CPP_SPEC): Likewise.
29 (CXX_WRAP_SPEC_LIST): Undefine before define.
30 (LIBGCJ_SONAME): Use 15 as version.
31
f49b33cb
RB
322013-03-27 Richard Biener <rguenther@suse.de>
33
34 PR tree-optimization/56716
35 * tree-ssa-structalias.c (perform_var_substitution): Adjust
36 dumping for ref nodes.
37
b37a6ce5
MJ
382013-03-27 Martin Jambor <mjambor@suse.cz>
39
40 PR tree-optimization/55334
41 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
42 restricted pointers to arrays.
43
9469b9b2
GDR
442013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
45
46 * Makefile.in (.SUFFIXES): Add .cc.
47 (.c.o): Apply same recipe for implicit rule .cc.o.
48
7d24f650
RB
492013-03-27 Richard Biener <rguenther@suse.de>
50
51 PR tree-optimization/37021
52 * tree-vect-data-refs.c (vect_check_strided_load): Allow
53 REALPART/IMAGPART_EXPRs around the supported refs.
54 * tree-ssa-structalias.c (find_func_aliases): Assume that
55 floating-point values are not used to transfer pointers.
56
2f251a05
AI
572013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
58
59 * gcc/target.def (TARGET_HAS_IFUNC_P): New target hook.
60 * gcc/doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
61 * gcc/doc/tm.texi: Regenerate.
62 * gcc/targhooks.h (default_has_ifunc_p): New.
63 * gcc/targhooks.c (default_has_ifunc_p): Ditto.
64 * gcc/config/linux-protos.h: New file.
65 * gcc/config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
66 this hook for linux which disables support of indirect functions in
67 android.
68 * gcc/config/linux-android.c: New file.
69 * gcc/config/t-linux-android.c: Ditto.
70 * gcc/config.gcc: Added new object file linux-android.o.
71 * gcc/config/i386/i386.c (ix86_get_function_versions_dispatcher):
72 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
73 * gcc/varasm.c (do_assemble_alias): Likewise.
74 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
75 doesn't support indirect functions.
76 * configure: Regenerate.
77
78b4e425
BC
782013-03-27 Bin Cheng <bin.cheng@arm.com>
79
80 PR target/56102
81 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
82 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
83 mult-word mode.
84
a5ba7b92
AK
852013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
86
87 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
88
be624986
TG
892013-03-27 Terry Guo <terry.guo@arm.com>
90
91 * config/arm/arm-cores.def: Added core cortex-r7.
92 * config/arm/arm-tune.md: Regenerated.
93 * config/arm/arm-tables.opt: Regenerated.
94 * doc/invoke.texi: Added entry for core cortex-r7.
95
0a514f47
WL
962013-03-27 Walter Lee <walt@tilera.com>
97
98 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
99 double-decrement of next_scratch_regno.
100
9332b0d2
WL
1012013-03-27 Walter Lee <walt@tilera.com>
102
801d9b2a 103 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
104 input operands.
105 (insn_v1mulus): Ditto.
106 (insn_v2muls): Ditto.
107
f54ea5dd
WL
1082013-03-27 Walter Lee <walt@tilera.com>
109
110 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
111 extra tab.
112 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
113
bf60f4ca
WL
1142013-03-27 Walter Lee <walt@tilera.com>
115
116 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
117 for jr.
118 (*sibcall_value): Ditto.
119
e3b51eeb
WL
1202013-03-27 Walter Lee <walt@tilera.com>
121
122 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
123 (insn_mnz_v8qi): ... this ...
124 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
125 vector equivalent.
126 (insn_v<n>mnz): Replaced by ...
127 (insn_v1mnz): ... this ...
128 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
129 equivalent.
130 (insn_mz_<mode>): Replaced by ...
131 (insn_mz_v8qi): ... this ...
132 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
133 vector equivalent.
134 (insn_v<n>mz): Replaced by ...
135 (insn_v1mz): ... this ...
136 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
137 equivalent.
138
4fc7b145
EB
1392013-03-26 Eric Botcazou <ebotcazou@adacore.com>
140
141 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
142
6f33817e
RM
1432013-03-26 Roland McGrath <mcgrathr@google.com>
144
145 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
146 than fprintf with a non-constant, non-format string.
147
93a4145b
UB
1482013-03-26 Uros Bizjak <ubizjak@gmail.com>
149
150 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
151 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
152 operand 0 predicate.
153 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
154 attribute. Use general_x64nomem_operand as operand 1 predicate.
155 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
156 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
157 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
158 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
159 (mov<mode>_insv_1): Remove expander. Merge insn with
160 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
161 Use general_x64nomem_operand as operand 1 predicate.
162 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
163 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
164 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
165 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
166 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
167 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
168 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
169 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
170 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
171 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
172 (general_x64nomem_operand): Ditto.
173
c6a9ed5a 1742013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
175
176 * config/rtems.opt: Add -pthread option.
177
31b0a960
RB
1782013-03-26 Richard Biener <rguenther@suse.de>
179
93a4145b
UB
180 * alias.c (find_base_term): Avoid redundant and not used recursion.
181 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
182 (true_dependence_1): Compute and pass base terms to base_alias_check.
183 (write_dependence_p): Likewise.
184 (may_alias_p): Likewise.
185
79517551
SN
1862013-03-26 Sofiane Naci <sofiane.naci@arm.com>
187
188 * config/aarch64/aarch64.c (aarch64_classify_address): Support
189 PC-relative load in SI modes and above only.
190
a76213b9
XQ
1912013-03-26 Xinyu Qi <xyqi@marvell.com>
192
193 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
194 * config/arm/iwmmxt.md (WCGR0): Update.
195 (WCGR1, WCGR2, WCGR3): Likewise.
196
37ff9355
UB
1972013-03-26 Uros Bizjak <ubizjak@gmail.com>
198
199 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
200 Use x64 and nox64 isa attributes.
201
30b0317c
RB
2022013-03-26 Richard Biener <rguenther@suse.de>
203
204 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
205 alignment computations and rely on get_object_alignment_1
206 for the !TYPE_P case.
207 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
208
cbcdb140
WL
2092013-03-26 Walter Lee <walt@tilera.com>
210
211 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
212 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
213
dd884525
JL
2142013-03-25 Jeff Law <law@redhat.com>
215 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
216 check for INTEGRAL_TYPE_P that was missing due to checking in
217 wrong version of prior patch.
218
0051d3ec
WL
2192013-03-25 Walter Lee <walt@tilera.com>
220
221 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
222 TILEGX_INSN_SHUFFLEBYTES1.
223 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
224 shufflebytes1.
225 (tilegx_builtins): Ditto.
226 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
227
065a3605
WL
2282013-03-25 Walter Lee <walt@tilera.com>
229
230 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
231 (floatunssisf2): New pattern.
232 (floatsidf2): New pattern.
233 (floatunssidf2): New pattern.
065a3605 234
5b2a3c82
WL
2352013-03-25 Walter Lee <walt@tilera.com>
236
237 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
238 tests for constraint J, K, N, P.
239
192ea533
WL
2402013-03-25 Walter Lee <walt@tilera.com>
241
242 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
243 Use indirect/pcrel encoding.
244 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
245 Ditto.
246
855e0d0b
SE
2472013-03-25 Steve Ellcey <sellcey@mips.com>
248
249 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
250 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
251 * config/mips/mips.c (mips_option_override): Set IMADD default.
252 * config/mips/mips.h (PTF_AVOID_IMADD): New.
253 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
254 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
255 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
256 * doc/invoke.texi (-mimadd/-mno-imadd): New.
257
39e45653
JL
2582013-03-25 Jeff Law <law@redhat.com>
259
260 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
261 slightly to avoid creating and folding useless trees. Simplify
262 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
263
7482c470
UB
2642013-03-25 Uros Bizjak <ubizjak@gmail.com>
265
266 * config/i386/i386.md (*zero_extendsidi2): Merge with
267 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
268 * config/i386/predicates.md (x86_64_zext_operand): Rename from
269 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
270 targets. Clarify comment.
271
4a53743e
MJ
2722013-03-25 Martin Jambor <mjambor@suse.cz>
273
274 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
275 pass-through jump functions differently.
276 (ipa_read_jump_function): Likewise. Also use setter functions to set
277 up jump functions.
278
162712de
MJ
2792013-03-25 Martin Jambor <mjambor@suse.cz>
280
281 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
282 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
283 process it.
284 (ipa_get_indirect_edge_target): New function.
285 (devirtualization_time_bonus): New parameter known_aggs, pass it to
286 ipa_get_indirect_edge_target. Update all callers.
287 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
288 ipa_get_indirect_edge_target_1 instead of calling
289 ipa_get_indirect_edge_target.
290 (create_specialized_node): Pass aggvlas to
291 ipcp_discover_new_direct_edges.
292
a5a4c20a
KT
2932013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
294
295 * config/arm/arm.md (f_sels, f_seld): New types.
296 (*cmov<mode>): New pattern.
297 * config/arm/predicates.md (arm_vsel_comparison_operator): New
298 predicate.
299
f992b9fc
KT
3002013-03-25 Kai Tietz <ktietz@redhat.com>
301
302 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
303 POSIX-printf for mingw-hosted builds.
304
c16fd676
RB
3052013-03-25 Richard Biener <rguenther@suse.de>
306
307 PR middle-end/56694
308 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
309 must-not-throw stmt location.
310
5ad29f12
KT
3112013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
312
313 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
314 Emit load-acquire versions when acq is true.
315 (arm_emit_store_exclusive): Add rel parameter.
316 Emit store-release versions when rel is true.
317 (arm_split_compare_and_swap): Use acquire-release instructions
318 instead.
319 of barriers when appropriate.
320 (arm_split_atomic_op): Likewise.
321 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
322 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
323 (VUNSPEC_SLX): Likewise.
324 (VUNSPEC_LDA): Likewise.
325 (VUNSPEC_STL): Likewise.
326 * config/arm/sync.md (atomic_load<mode>): New pattern.
327 (atomic_store<mode>): Likewise.
328 (arm_load_acquire_exclusive<mode>): Likewise.
329 (arm_load_acquire_exclusivesi): Likewise.
330 (arm_load_acquire_exclusivedi): Likewise.
331 (arm_store_release_exclusive<mode>): Likewise.
332
03a7dddb
CM
3332013-03-25 Catherine Moore <clm@codesourcery.com>
334
335 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
336 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
337 * config/mip/predicates.md (lwsp_swsp_operand,
338 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
339 sb16_operand, db4_operand, db7_operand, ib3_operand,
340 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
341 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
342 andi16_operand): New predicates.
343 * config/mips/mips.md (compression): New attribute.
344 (enabled): New attribute.
345 (length): Consider compression in computing length.
346 (shift_compression): New code attribute.
347 (*add<mode>3): New operands. Record compression.
348 (sub<mode>3): Likewise.
349 (one_cmpl<mode>2): Likewise.
350 (*and<mode>3): Likewise.
351 (*ior<mode>3): Likewise.
352 (unnamed pattern for xor): Likewise.
353 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
354 (*<optab><mode>3): Likewise.
355 (*mov<mode>_internal: Likewise.
356 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
357 (mips_unsigned_immediate_p): New.
358 (umips_lwsp_swsp_address_p): New.
359 (m16_based_address_p): New.
360 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
361 (mips_unsigned_immediate_p): New prototype.
362 (lwsp_swsp_address_p): New prototype.
363 (m16_based_address_p): New prototype.
364 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
365 (mips_signed_immediate_p): New function.
366 (m16_based_address_p): New function.
367 (lwsp_swsp_address_p): New function.
368 (mips_print_operand_punctuation): Recognize short delay slot insns
369 for microMIPS.add<mode>3"
370
f35c297f 3712013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 372
f35c297f
KT
373 PR target/56720
374 * config/arm/iterators.md (v_cmp_result): New mode attribute.
375 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
376
051b9446
RB
3772013-03-25 Richard Biener <rguenther@suse.de>
378
379 PR tree-optimization/56689
380 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
381 any edge.
382
374001cb
RB
3832013-03-25 Richard Biener <rguenther@suse.de>
384
385 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
386 of bitmap.
387 (memory_references): Likewise.
388 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
389 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
390 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
391 (gather_mem_refs_in_loops): Fold into ...
392 (analyze_memory_references): ... this. Move initialization
393 to tree_ssa_lim_initialize.
394 (fill_always_executed_in): Rename to ...
395 (fill_always_executed_in_1): ... this.
396 (fill_always_executed_in): Move contains_call computation to
397 this new function from ...
398 (tree_ssa_lim_initialize): ... here.
399 (tree_ssa_lim): Call fill_always_executed_in.
400
57895947
EB
4012013-03-25 Eric Botcazou <ebotcazou@adacore.com>
402
403 * postreload.c (reload_combine): Fix code detecting returns.
404
1e1b18c1
EB
4052013-03-25 Eric Botcazou <ebotcazou@adacore.com>
406
407 * function.c (emit_use_return_register_into_block): On cc0 targets,
408 do not emit the sequence between cc0 setter and user.
409
9216baf1
KT
4102013-03-25 Kai Tietz <ktietz@redhat.com>
411
1e1b18c1
EB
412 * config/i386/predicates.md (local_symbolic_operand): Interpret
413 dll-imported symbols as none-local.
9216baf1 414
76421b44
RB
4152013-03-25 Richard Biener <rguenther@suse.de>
416
417 * tree-ssa-loop-im.c (struct depend): Remove.
418 (struct lim_aux_data): Make depends a vec of gimples.
419 (free_lim_aux_data): Adjust.
420 (add_dependency): Likewise.
421 (set_level): Likewise.
422
d154bfa2
RB
4232013-03-25 Richard Biener <rguenther@suse.de>
424
425 PR middle-end/56434
426 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
427 the pointer returned by calls with ECF_MALLOC set.
428
2cd9804e
UB
4292013-03-24 Uros Bizjak <ubizjak@gmail.com>
430
acef5fe0
UB
431 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
432
4332013-03-24 Uros Bizjak <ubizjak@gmail.com>
434
435 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
436 using MMXMODE mode iterator.
437 (*move<mode>_internal): Merge with *movv2sf_internal and
438 *movv2sf_internal_rex64 using MMXMODE mode iterator.
439
225ccc68
SB
4402013-03-23 Steven Bosscher <steven@gcc.gnu.org>
441
85c0f02d
SB
442 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
443 (record_last_mem_set_info): Likewise.
444
225ccc68
SB
445 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
446 of XNEWVEC followed by memset.
447 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
448
b64925dc
SB
4492013-03-23 Steven Bosscher <steven@gcc.gnu.org>
450
451 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
452 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
453 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
454 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
455 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
456 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
457 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
458 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
459 BARRIER_P instead of GET_CODE.
460
b9aaf52e
EB
4612013-03-23 Eric Botcazou <ebotcazou@adacore.com>
462
463 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
464 inaccuracy in the probing code.
465
466 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
467 (ctrapdi4): Likewise.
468
66de4d7c
EB
4692013-03-23 Eric Botcazou <ebotcazou@adacore.com>
470
471 * calls.c (expand_call): Add missing guard to code handling return
472 of non-BLKmode structures in MSB.
473 * function.c (expand_function_end): Likewise.
474
4f25c8fb
EB
4752013-03-23 Eric Botcazou <ebotcazou@adacore.com>
476
477 * combine.c (try_combine): Adjust comment. Do not add the set of
478 insn #0 if the destination indirectly is set or dies in insn #2.
479 Tidy up code to distribute a new note.
480
23b7850d
UB
4812013-03-22 Uros Bizjak <ubizjak@gmail.com>
482
483 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
484 also for alternatives 16 and 17.
485
bed852cf
UB
4862013-03-22 Uros Bizjak <ubizjak@gmail.com>
487
488 * config/i386/sse.md (*mov<mode>_internal): Merge with
489 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
490 Emit insn template depending on type attribute. Use
491 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
492 movd instead of movq mnemonic for interunit moves. Rewrite mode
493 attribute calculation. Remove unit attribute calculation.
494 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
495 Set prefix_data16 attribute for DImode ssemov types.
496 Use Ym instead of y for SSE-MMX conversion alternatives.
497 Reorder operand constraints.
498
1e8a7937
SB
4992013-03-22 Steven Bosscher <steven@gcc.gnu.org>
500
501 * df.h (df_insn_delete): Adjust prototype.
502 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
503 and let it decide whether mark the basic block dirty.
504 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
505 * df-scan.c (df_insn_info_delete): New helper function, split
506 off from df_insn_delete.
507 (df_scan_free_bb_info): Use it.
508 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
509 Likewise.
510 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
511 that the insn is actually an insn and it has a non-NULL basic block.
512 Do not mark basic block dirty if only deleting a DEBUG_INSN.
513
e14d094c
RB
5142013-03-22 Richard Biener <rguenther@suse.de>
515
516 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
517 dep_ref members.
518 (mem_ref_alloc): Do not allocate them.
519 (refs_independent_p): Do not query or maintain a cache.
520
e9cf7316
RB
5212013-03-22 Richard Biener <rguenther@suse.de>
522
523 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
524 (gather_mem_refs_in_loops): Do not compute it.
525 (analyze_memory_references): Do not allocate it.
526 (tree_ssa_lim_finalize): Do not free it.
527 (for_all_locs_in_loop): Do not query all_refs_in_loop.
528
f046e81b
RB
5292013-03-22 Richard Biener <rguenther@suse.de>
530
531 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 532
a05c0ddf
IB
5332013-03-22 Ian Bolton <ian.bolton@arm.com>
534
535 * config/aarch64/aarch64.c (aarch64_print_operand): New
536 format specifier for printing a constant in hex.
537 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
538 format specifier for printing second operand.
539
c00217fc
RB
5402013-03-22 Richard Biener <rguenther@suse.de>
541
542 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
543 bitmaps.
544 (gather_mem_refs_in_loops): Perform store accumulation here.
545 (create_vop_ref_mapping_loop): Remove.
546 (create_vop_ref_mapping): Likewise.
547 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 548 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
549 (record_indep_loop): Remove.
550 (record_dep_loop): New function.
551 (ref_indep_loop_p_1): Adjust to only walk over references
552 in the loop, not its subloops.
553 (ref_indep_loop_p): Rename to ...
554 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
555 maintaining a more fine-grained cache.
556 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
557 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
558
15d19bf8
RB
5592013-03-22 Richard Biener <rguenther@suse.de>
560
561 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
562 (struct mem_ref): Make accesses_in_loop a vec of a vec of
563 aggregate mem_ref_loc.
564 (free_mem_ref_locs): Inline into ...
565 (memref_free): ... this and adjust.
566 (mem_ref_alloc): Adjust.
567 (mem_ref_locs_alloc): Remove.
568 (record_mem_ref_loc): Adjust.
569 (get_all_locs_in_loop): Rewrite into ...
570 (for_all_locs_in_loop): ... this iterator.
571 (rewrite_mem_ref_loc): New functor.
572 (rewrite_mem_refs): Use for_all_locs_in_loop.
573 (sm_set_flag_if_changed): New functor.
574 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
575 (ref_always_accessed): New functor.
576 (ref_always_accessed_p): Use for_all_locs_in_loop.
577
6f37411d
MG
5782013-03-21 Marc Glisse <marc.glisse@inria.fr>
579
580 * tree-pass.h (PROP_gimple_lvec): New.
581 * passes.c (dump_properties): Handle PROP_gimple_lvec.
582 (init_optimization_passes): Move pass_lower_vector.
583 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
584 PROP_gimple_lvec.
585 (pass_lower_vector): Provide PROP_gimple_lvec.
586 (pass_lower_vector_ssa): Likewise.
587 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
588
511ef689
MW
5892013-03-21 Mark Wielaard <mjw@redhat.com>
590
591 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
592
cc1df30b
UB
5932013-03-21 Uros Bizjak <ubizjak@gmail.com>
594
595 * config/i386/i386.md (*movdi_internal): Disparage slightly
596 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
597 conversion alternatives.
598
c845cfe1
JJ
5992013-03-21 Jakub Jelinek <jakub@redhat.com>
600
37e99116
JJ
601 PR middle-end/48087
602 * diagnostic.def (DK_WERROR): New kind.
603 * diagnostic.h (werrorcount): Define.
604 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
605 promoted to DK_ERROR, increment DK_WERROR counter instead of
606 DK_ERROR counter.
607 * toplev.c (toplev_main): Call print_ignored_options even if
608 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
609 even if just werrorcount is non-zero.
610
c845cfe1
JJ
611 PR debug/55608
612 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
613 on failure.
614 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
615 (string_cst_pool_decl): New function.
616 (optimize_one_addr_into_implicit_ptr): New function.
617 (resolve_addr_in_expr): Optimize DWARF location expression
618 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
619 which doesn't live in memory, but has DW_AT_location or
620 DW_AT_const_value, or refers to a string literal, into
621 DW_OP_GNU_implicit_pointer.
622 (optimize_location_into_implicit_ptr): New function.
623 (resolve_addr): If removing DW_AT_location of a variable because
624 it was DW_OP_addr of address of the variable, but the variable doesn't
625 live in memory, try to emit const value attribute for the initializer.
626
08e0cda6
MG
6272013-03-21 Marc Glisse <marc.glisse@inria.fr>
628
629 * tree.h (VECTOR_TYPE_P): New macro.
630 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
631 TYPE_MODE): Use it.
632 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
633 VEC_COND_EXPR cannot be lvalues.
634 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
635
d08633b4
MG
6362013-03-21 Marc Glisse <marc.glisse@inria.fr>
637
638 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
639 Restrict the transformation to equal modes.
640
e6647190
RB
6412013-03-21 Richard Biener <rguenther@suse.de>
642
643 PR tree-optimization/39326
644 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
645 (MEM_ANALYZABLE): Adjust.
646 (record_mem_ref_loc): Move bitmap ops ...
647 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
648 unanalyzable refs, do not record locations for it.
649 (analyze_memory_references): Allocate ref zero as shared
650 unanalyzable ref.
651 (refs_independent_p): Do not test for unanalyzed mems here.
652 (ref_indep_loop_p_1): Special-case disambiguation against
653 the unanalyzed ref.
cc1df30b 654 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 655
65074f54
CL
6562013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
657
658 * config/arm/arm-protos.h (tune_params): Add
659 prefer_neon_for_64bits field.
660 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
661 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
662 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
663 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
664 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
665 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
666 (arm_option_override): Handle -mneon-for-64bits new option.
667 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
668 (prefer_neon_for_64bits): Declare new variable.
669 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 670 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
671 (arch_enabled): Handle new arch types. Remove support for onlya8
672 and nota8.
673 (one_cmpldi2): Use new arch names.
bc5faa5b 674 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
675 * config/arm/arm.opt (mneon-for-64bits): Add option.
676 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
677 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
678 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
679 of onlya8.
680 * doc/invoke.texi (-mneon-for-64bits): Document.
681
5a2d2a79
RB
6822013-03-21 Richard Biener <rguenther@suse.de>
683
684 PR tree-optimization/39326
685 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
686 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 687 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 688
5abe1e05
RB
6892013-03-21 Richard Biener <rguenther@suse.de>
690
691 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
692 (vect_insert_into_interleaving_chain): Likewise.
693 (vect_drs_dependent_in_basic_block): Inline ...
694 (vect_slp_analyze_data_ref_dependence): ... here. New function,
695 split out from ...
696 (vect_analyze_data_ref_dependence): ... here. Simplify.
697 (vect_check_interleaving): Simplify.
698 (vect_analyze_data_ref_dependences): Likewise. Split out ...
699 (vect_slp_analyze_data_ref_dependences): ... this new function.
700 (dr_group_sort_cmp): New function.
701 (vect_analyze_data_ref_accesses): Compute data-reference groups
702 here instead of in vect_analyze_data_ref_dependence. Use
703 a more efficient algorithm.
704 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
705 vect_slp_analyze_data_ref_dependences. Call
706 vect_analyze_data_ref_accesses earlier.
707 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
708 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
709 (vect_slp_analyze_data_ref_dependences): New prototype.
710
cad1735b
RB
7112013-03-21 Richard Biener <rguenther@suse.de>
712
713 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
714 ref is stored in the loop.
715 (find_refs_for_sm): Walk only over all stores.
716 (store_motion_loop): Allocate from lim_bitmap_obstack.
717 (store_motion): Likewise.
718
141310ef
RB
7192013-03-21 Richard Biener <rguenther@suse.de>
720
721 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
722 Update virtual SSA form.
723
5022315a
RO
7242013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
725
726 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
727 * configure: Regenerate.
728 * config.in: Regenerate.
729 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
730 if !HAVE_LD_EH_FRAME_CIEV3.
731
50d4421c
RB
7322013-03-21 Richard Biener <rguenther@suse.de>
733
734 * tree-cfg.c (verify_expr_no_block): New function.
735 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
736 nor DECL_VALUE_EXPR have locations with associated blocks.
737 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
738 (clear_unused_block_pointer): Remove code dealing with
739 blocks in DECL_DEBUG_EXPR locations.
740
839b422f
RB
7412013-03-21 Richard Biener <rguenther@suse.de>
742
743 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
744 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
745 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
746 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
747 instead of DECL_DEBUG_EXPR_IS_FROM.
748 * gimplify.c (gimplify_modify_expr): Likewise.
749 * tree-cfg.c (verify_expr_location_1): Likewise.
750 * tree-complex.c (create_one_component_var): Likewise.
751 * tree-sra.c (create_access_replacement): Likewise.
752 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
753 (clear_unused_block_pointer): Likewise.
754 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
755 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
756 * var-tracking.c (var_debug_decl): Likewise.
757 (track_expr_p): Likewise.
758 * tree-inline.c (add_local_variables): Likewise. Set
759 DECL_HAS_DEBUG_EXPR_P after copying it.
760 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
761 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
762
fe04878d
UB
7632013-03-21 Uros Bizjak <ubizjak@gmail.com>
764
765 PR bootstrap/56656
766 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
767 * configure: Regenerate.
768 * config.in: Regenerate.
769 * config/i386/i386.md (*movdf_internal): Use
770 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
771 movd instead of movq mnemonic for interunit moves.
772 (*movdi_internal): Ditto.
773
bd059b26 7742013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
775
776 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
777 (abd<mode>_3): New pattern.
778 (aba<mode>_3): New pattern.
779 (fabd<mode>_3): New pattern.
780
bd059b26 7812013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
782
783 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
784 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
785 occurrence of REGISTER_PREFIX as its empty string.
786
4f1f78b9
JL
7872013-03-20 Jeff Law <law@redhat.com>
788
789 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
790 addititional equivalences for equality comparisons between an SSA_NAME
791 and a constant where the SSA_NAME was set from a widening conversion.
792
327a1118
WL
7932013-03-20 Walter Lee <walt@tilera.com>
794
795 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
796
813e0036
UB
7972013-03-20 Uros Bizjak <ubizjak@gmail.com>
798
799 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
800 depending on type attribute.
801 (*movti_internal): Ditto.
802 (*movtf_internal): Ditto.
803 (*movxf_internal): Ditto.
804 (*movdf_internal): Ditto.
805 (*movsf_internal): Ditto.
806
7cf34aae
UB
8072013-03-20 Uros Bizjak <ubizjak@gmail.com>
808
809 * config/i386/i386.md (*movti_internal): Set prefix attribute to
810 maybe_vex for sselog1 and ssemov types.
811 (*movdi_internal): Reorder operand constraints.
812 (*movsi_internal): Ditto. Set prefix attribute to
813 maybe_vex for sselog1 and ssemov types.
814 (*movtf_internal): Set prefix attribute to maybe_vex
815 for sselog1 and ssemov types.
816 (*movdf_internal): Ditto. Set prefix_data16 attribute for
817 DImode ssemov types. Reorder operand constraints.
818 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
819 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
820 attribute for SImode ssemov types. Reorder operand constraints.
821
19321415
MJ
8222013-03-20 Martin Jambor <mjambor@suse.cz>
823
824 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
825 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
826
c6d5ff83
MM
8272013-03-20 Pat Haugen <pthaugen@us.ibm.com>
828
829 * config/rs6000/predicates.md (indexed_address, update_address_mem
830 update_indexed_address_mem): New predicates.
831 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
832 attribute for load/store instructions.
833 * config/rs6000/dfp.md (movsd_store): Likewise.
834 (movsd_load): Likewise.
835 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
836 (unnamed HI->DI extend define_insn): Likewise.
837 (unnamed SI->DI extend define_insn): Likewise.
838 (unnamed QI->SI extend define_insn): Likewise.
839 (unnamed QI->HI extend define_insn): Likewise.
840 (unnamed HI->SI extend define_insn): Likewise.
841 (unnamed HI->SI extend define_insn): Likewise.
842 (extendsfdf2_fpr): Likewise.
843 (movsi_internal1): Likewise.
844 (movsi_internal1_single): Likewise.
845 (movhi_internal): Likewise.
846 (movqi_internal): Likewise.
847 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
848 attribute for load/store instructions.
849 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
850 instructions.
851 (mov<mode>_softfloat): Likewise.
852 (mov<mode>_hardfloat32): Likewise.
853 (mov<mode>_hardfloat64): Likewise.
854 (mov<mode>_softfloat64): Likewise.
855 (movdi_internal32): Likewise.
856 (movdi_internal64): Likewise.
857 (probe_stack_<mode>): Likewise.
858
8592013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
860
861 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
862 floating point, and decimal floating point to reload iterator.
863
864 * config/rs6000/constraints.md (wl constraint): New constraints to
865 return FLOAT_REGS if certain options are used to reduce the number
866 of separate patterns that exist in the file.
867 (wx constraint): Likewise.
868 (wz constraint): Likewise.
869
870 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
871 -mdebug=reg, print wg, wl, wx, and wz constraints.
872 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
873 Initialize the reload functions for 64-bit binary/decimal floating
874 point types.
875 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
876 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
877 create the buffer on the stack to overcome not having a 32-bit
878 load and store.
879 (rs6000_emit_move): Likewise.
880 (rs6000_secondary_memory_needed_rtx): Likewise.
881 (rs6000_alloc_sdmode_stack_slot): Likewise.
882 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
883 via xxlxor, just like DFmode 0.0.
884
885 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
886 define as 1 if we are running on a power7 or newer.
887 (enum r6000_reg_class_enum): Add new constraints.
888
889 * config/rs6000/dfp.md (movsd): Delete, combine with binary
890 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
891 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 892 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
893 (movsd splitter): Likewise.
894 (movsd_hardfloat): Likewise.
895 (movsd_softfloat): Likewise.
896
897 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
898 binary and decimal floating point moves.
899 (fmove_ok): New attributes to combine binary and decimal floating
900 point moves, and to combine power6x (mfpgpr) moves along normal
901 floating moves.
902 (real_value_to_target): Likewise.
903 (f32_lr): Likewise.
904 (f32_lm): Likewise.
905 (f32_li): Likewise.
906 (f32_sr): Likewise.
907 (f32_sm): Likewise.
908 (f32_si): Likewise.
909 (movsf): Combine binary and decimal floating point moves. Combine
910 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 911 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
912 (mov<mode> for SFmode/SDmode); Likewise.
913 (SFmode/SDmode splitters): Likewise.
914 (movsf_hardfloat): Likewise.
915 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
916 (movsf_softfloat): Likewise.
917 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
918
919 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
920 wx and wz constraints.
921
922 * config/rs6000/constraints.md (wg constraint): New constraint to
923 return FLOAT_REGS if -mmfpgpr (power6x) was used.
924
925 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
926 constraint.
927
928 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
929 -mdebug=reg, print wg, wl, wx, and wz constraints.
930 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
931 Initialize the reload functions for 64-bit binary/decimal floating
932 point types.
933 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
934 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
935 create the buffer on the stack to overcome not having a 32-bit
936 load and store.
937 (rs6000_emit_move): Likewise.
938 (rs6000_secondary_memory_needed_rtx): Likewise.
939 (rs6000_alloc_sdmode_stack_slot): Likewise.
940 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
941 via xxlxor, just like DFmode 0.0.
942
c6d5ff83
MM
943 * config/rs6000/dfp.md (movdd): Delete, combine with binary
944 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
945 with other moves by using conditional constraits (wg). Use LFIWZX
946 and STFIWX for loading SDmode on power7.
947 (movdd splitters): Likewise.
948 (movdd_hardfloat32): Likewise.
949 (movdd_softfloat32): Likewise.
950 (movdd_hardfloat64_mfpgpr): Likewise.
951 (movdd_hardfloat64): Likewise.
952 (movdd_softfloat64): Likewise.
953
954 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
955 64-bit binary and decimal floating point moves.
956 (FMOVE64X): Likewise.
957 (movdf): Combine 64-bit binary and decimal floating point moves.
958 Combine power6x (mfpgpr) moves with other moves by using
959 conditional constraits (wg).
960 (mov<mode> for DFmode/DDmode): Likewise.
961 (DFmode/DDmode splitters): Likewise.
962 (movdf_hardfloat32): Likewise.
963 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
964 (movdf_softfloat32): Likewise.
965 (movdf_hardfloat64_mfpgpr): Likewise.
966 (movdf_hardfloat64): Likewise.
967 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
968 (movdf_softfloat64): Likewise.
969 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
970 (reload_<mode>_load): Move to later in the file so they aren't in
971 the middle of the floating point move insns.
972 (reload_<mode>_store): Likewise.
973
974 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
975 constraint.
976
977 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
978 constraint if -mdebug=reg.
bd059b26
UB
979 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
980 Enable using dd reload support if needed.
c6d5ff83
MM
981
982 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
983 binary and decimal floating point moves in rs6000.md.
984 (movtd_internal): Likewise.
985
986 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
987 decimal floating point moves.
988 (movtf): Likewise.
989 (movtf_internal): Likewise.
990 (mov<mode>_internal, TDmode/TFmode): Likewise.
991 (movtf_softfloat): Likewise.
992 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
993
994 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
995 movdi_internal64, using wg constraint for move direct operations.
996 (movdi_internal64): Likewise.
997
998 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
999 MODES_TIEABLE_P for selected modes. Print the numerical value of
1000 the various virtual registers. Use GPR/FPR first/last values,
1001 instead of hard coding the register numbers. Print which modes
1002 have reload functions registered.
bd059b26
UB
1003 (rs6000_option_override_internal): If -mdebug=reg, trace the options
1004 settings before/after setting cpu, target and subtarget settings.
1005 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1006 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
1007 (rs6000_secondary_reload_fail): Likewise.
1008 (rs6000_secondary_reload_inner): Likewise.
1009
1010 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1011 macros for first/last GPR and FPR registers.
1012 (LAST_GPR_REGNO): Likewise.
1013 (FIRST_FPR_REGNO): Likewise.
1014 (LAST_FPR_REGNO): Likewise.
1015
1016 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1017 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1018 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1019 (vcond<mode><mode>): Likewise.
1020 (vcondu<mode><mode>): Likewise.
1021 (vector_gtu<mode>): Likewise.
1022 (vector_gte<mode>): Likewise.
1023 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 1024 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
1025 (ior<mode>3): Likewise.
1026 (and<mode>3): Likewise.
1027 (one_cmpl<mode>2): Likewise.
1028 (nor<mode>3): Likewise.
1029 (andc<mode>3): Likewise.
1030
1031 * config/rs6000/constraints.md (wt constraint): New constraint
1032 that returns VSX_REGS if TImode is allowed in VSX registers.
1033
1034 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1035 constant under VSX.
1036
1037 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1038 similar to TImode, but it is restricted to being in the GPRs.
1039
1040 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1041 TImode to occupy a single VSX register.
1042
1043 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1044 -mvsx-timode for power7/power8.
1045 (power7 cpu): Likewise.
1046 (power8 cpu): Likewise.
1047
1048 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1049 sure that TFmode/TDmode take up two registers if they are ever
1050 allowed in the upper VSX registers.
1051 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1052 registers.
1053 (rs6000_init_hard_regno_mode_ok): Likewise.
1054 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1055 constraint. Print if LRA is turned on.
1056 (rs6000_option_override_internal): Give an error if -mvsx-timode
1057 and VSX is not enabled.
1058 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1059 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1060 to reg+offset addressing. Use PTImode when checking offset
1061 addresses for validity.
1062 (reg_offset_addressing_ok_p): Likewise.
1063 (rs6000_legitimate_offset_address_p): Likewise.
1064 (rs6000_legitimize_address): Likewise.
1065 (rs6000_legitimize_reload_address): Likewise.
1066 (rs6000_legitimate_address_p): Likewise.
1067 (rs6000_eliminate_indexed_memrefs): Likewise.
1068 (rs6000_emit_move): Likewise.
1069 (rs6000_secondary_reload): Likewise.
1070 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1071 reloads to fpr registers to continue to use reg+offset addressing,
1072 but 64-bit reloads to altivec registers need reg+reg addressing.
1073 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1074 it. Treat LO_SUM like a PLUS operation.
1075 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 1076 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
1077 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1078 registers to share a register with a smaller sized type, since VSX
1079 puts scalars in the upper 64-bits.
1080 (print_operand): Add support for PTImode.
1081 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1082 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1083 registers, but don't have arithmetic support.
1084 (rs6000_memory_move_cost): Add test for VSX.
1085 (rs6000_opt_masks): Add -mvsx-timode.
1086
1087 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1088 for TImode.
1089 (VSs): Likewise.
1090 (VSr): Use wt constraint for TImode.
1091 (VSv): Drop TImode support.
1092 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1093 (vsx_movti_64bit): Likewise.
1094 (vsx_movti_32bit): Likewise.
1095 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1096 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1097 one '?' on the appropriate output constraint. Do not allow TImode
1098 logical operations on 32-bit systems.
1099 (vsx_ior<mode>3): Likewise.
1100 (vsx_xor<mode>3): Likewise.
1101 (vsx_one_cmpl<mode>2): Likewise.
1102 (vsx_nor<mode>3): Likewise.
1103 (vsx_andc<mode>3): Likewise.
1104 (vsx_concat_<mode>): Likewise.
1105 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1106
1107 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1108 OPTION_MASK_VSX_TIMODE.
1109 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1110 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1111
1112 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1113 (TI2 iterator): New iterator for TImode, PTImode.
1114 (wd mode attribute): Add values for vector types.
bd059b26
UB
1115 (movti_string): Replace TI move operations with operations for TImode
1116 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
1117 (mov<mode>_string, TImode/PTImode): Likewise.
1118 (movti_ppc64): Likewise.
1119 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1120 (TI mode splitters): Likewise.
1121
1122 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1123 constraint.
1124
1fc5eced
MG
11252013-03-20 Marc Glisse <marc.glisse@inria.fr>
1126
1127 PR tree-optimization/56355
1128 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1129 Also handle integers with undefined overflow.
1130
22c4c869
CM
11312013-03-20 Catherine Moore <clm@codesourcery.com>
1132 Maciej W. Rozycki <macro@codesourcery.com>
1133 Tom de Vries <tom@codesourcery.com>
1134 Nathan Sidwell <nathan@codesourcery.com>
1135 Iain Sandoe <iain@codesourcery.com>
1136 Nathan Froyd <froydnj@codesourcery.com>
1137 Chao-ying Fu <fu@mips.com>
1138
1139 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 1140 Document new function attributes.
22c4c869
CM
1141 * doc/invoke.texi (minterlink-compressed, mmicromips,
1142 m14k, m14ke, m14kec): Document new options.
1143 (minterlink-mips16): Update documentation.
1144 * doc/md.texi (ZC, ZD): Document new constraints.
1145 * configure.ac (gcc_cv_as_micromips): Check if linker
1146 supports the .set micromips directive.
1147 * configure: Regenerate.
1148 * config.in: Regenerate.
1149 * config/mips/mips-tables.opt: Regenerate.
1150 * config/mips/micromips.md: New file.
1151 * constraints.md (ZC, ZD): New constraints.
1152 * config/mips/predicates.md (movep_src_register): New predicate.
1153 (movep_src_operand): New predicate.
1154 (non_volatile_mem_operand): New predicate.
1155 * config/mips/mips.md (multimem): New type.
1156 (length): Differentiate between 17-bit and 18-bit branch offsets.
1157 (MOVEP1, MOVEP2): New mode iterator.
1158 (mov_<load>l): Use ZC constraint.
1159 (mov_<load>r): Likewise.
1160 (mov_<store>l): Likewise.
1161 (mov_<store>r): Likewise.
1162 (*branch_equality<mode>_inverted): Add microMIPS support.
1163 (*branch_equality<mode>): Likewise.
1164 (*jump_absolute): Likewise.
1165 (indirect_jump_<mode>): Likewise.
1166 (tablejump_<mode>): Likewise.
1167 (<optab>_internal): Likewise.
1168 (sibcall_internal): Likewise.
1169 (sibcall_value_internal): Likewise.
1170 (prefetch): Use constraint ZD.
1171 * config/mips/mips.opt (minterlink-compressed): New option.
1172 (minterlink-mips16): Now an alias for minterlink-compressed.
1173 (mmicromips): New option.
1174 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1175 (compare_and_swap_12): Likewise.
1176 (sync_add<mode>): Likewise.
1177 (sync_<optab>_12): Likewise.
1178 (sync_old_<optab>_12): Likewise.
1179 (sync_new_<optab>_12): Likewise.
1180 (sync_nand_12): Likewise.
1181 (sync_old_nand_12): Likewise.
1182 (sync_new_nand_12): Likewise.
1183 (sync_sub<mode>): Likewise.
1184 (sync_old_add<mode>): Likewise.
1185 (sync_old_sub<mode>): Likewise.
1186 (sync_new_add<mode>): Likewise.
1187 (sync_new_sub<mode>): Likewise.
1188 (sync_<optab><mode>): Likewise.
1189 (sync_old_<optab><mode>): Likewise.
1190 (sync_new_<optab><mode>): Likewise.
1191 (sync_nand<mode>): Likewise.
1192 (sync_old_nand<mode>): Likewise.
1193 (sync_new_nand<mode>): Likewise.
1194 (sync_lock_test_and_set<mode>): Likewise.
1195 (test_and_set_12): Likewise.
1196 (atomic_compare_and_swap<mode>): Likewise.
1197 (atomic_exchange<mode>_llsc): Likewise.
1198 (atomic_fetch_add<mode>_llsc): Likewise.
1199 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1200 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1201 (umips_save_restore_pattern_p): Likewise.
1202 (umips_load_store_pair_p): Likewise.
1203 (umips_output_load_store_pair): Likewise.
1204 (umips_movep_target_p): Likewise.
1205 (umips_12bit_offset_address_p): Likewise.
1206 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1207 (mips_base_mips16): Rename this...
1208 (mips_base_compression_flags): ...to this. Update all uses.
1209 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1210 (mips_mips16_decl_p): Delete.
1211 (mips_nomips16_decl_p): Delete.
1212 (mips_get_compress_on_flags): New function.
1213 (mips_get_compress_off_flags): New function.
1214 (mips_get_compress_mode): New function.
1215 (mips_get_compress_on_name): New function.
1216 (mips_get_compress_off_name): New function.
1217 (mips_insert_attributes): Support multiple compression types.
1218 (mips_merge_decl_attributes): Likewise.
1219 (umips_12bit_offset_address_p): New function.
1220 (mips_start_function_definition): Emit .set micromips directive.
1221 (mips_call_may_need_jalx_p): New function.
1222 (mips_function_ok_for_sibcall): Add microMIPS support.
1223 (mips_print_operand_punctuation): Support short delay slots and
1224 compact jumps.
1225 (umips_swm_mask, umips_swm_encoding): New.
1226 (umips_build_save_restore): New function.
1227 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1228 (was_mips16_p): Remove.
1229 (old_compression_mode): New.
1230 (mips_set_compression_mode): New function.
1231 (mips_set_current_function): Add microMIPS support.
1232 (mips_option_override): Likewise.
1233 (umips_save_restore_pattern_p): New function.
1234 (umips_output_save_restore): New function.
1235 (umips_load_store_pair_p_1): New function.
1236 (umips_load_store_pair_p): New function.
1237 (umips_output_load_store_pair_1): New function.
1238 (umips_output_load_store_pair): New function.
1239 (umips_movep_target_p) New function.
1240 (mips_prepare_pch_save): Add microMIPS support.
1241 * config/mips/mips.h (TARGET_COMPRESSION): New.
1242 (TARGET_CPU_CPP_BUILTINS): Update macro
1243 to use new compression flags and to support microMIPS.
1244 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1245 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1246 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1247 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1248 (ASM_SPEC): Support mmicromips and mno-micromips.
1249 (M16STORE_REG_P): New macro.
1250 (MIPS_CALL): Support TARGET_MICROMIPS.
1251 (MICROMIPS_J): New macro.
1252 (mips_base_mips16): Rename this...
1253 (mips_base_compression_flags): ...to this.
1254 (UMIPS_12BIT_OFFSET_P): New macro.
1255 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1256 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
12572013-03-20 Richard Biener <rguenther@suse.de>
1258
1259 PR tree-optimization/56661
1260 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1261 the result does not have to be distinct.
1262
54714c68
RB
12632013-03-20 Richard Biener <rguenther@suse.de>
1264
1265 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1266 remap_gimple_op_r.
1267
cca1130d
BS
12682013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1269 Steven Bosscher <steven@gcc.gnu.org>
1270
1271 PR rtl-optimization/56605
1272 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1273
2a930377
UB
12742013-03-20 Uros Bizjak <ubizjak@gmail.com>
1275
1276 PR bootstrap/56656
1277 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1278 that require movd instead of movq.
1279
d6d305fe
RB
12802013-03-20 Richard Biener <rguenther@suse.de>
1281
1282 * tree-ssa-structalias.c (struct variable_info): Add pointer
1283 to the first field of an aggregate with sub-vars. Make
1284 this and the pointer to the next subfield its ID.
1285 (vi_next): New function.
1286 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1287 storedanything_id, integer_id): Increment by one.
1288 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1289 get_call_clobber_vi): Adjust.
1290 (solution_set_expand): Simplify and speedup.
1291 (solution_set_add): Inline into ...
1292 (set_union_with_increment): ... this. Adjust accordingly.
1293 (do_sd_constraint): Likewise.
1294 (do_ds_constraint): Likewise.
1295 (do_complex_constraint): Simplify.
1296 (build_pred_graph): Adjust.
1297 (solve_graph): Likewise. Simplify and speedup.
1298 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1299 get_constraint_for_component_ref, get_constraint_for_1,
1300 first_vi_for_offset, first_or_preceding_vi_for_offset,
1301 create_function_info_for, create_variable_info_for_1,
1302 create_variable_info_for, intra_create_variable_infos): Adjust.
1303 (init_base_vars): Push NULL for ID zero.
1304 (compute_points_to_sets): Adjust.
1305
a271b42d
RB
13062013-03-20 Richard Biener <rguenther@suse.de>
1307
1308 * cfgloop.c (verify_loop_structure): Streamline and avoid
1309 ICEing on corrupt loop tree.
1310 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1311 loop tree.
1312
ebd65954
RB
13132013-03-20 Richard Biener <rguenther@suse.de>
1314
1315 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1316 check whether an SSA update is needed.
1317
4547b7ee
RS
13182013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1319
1320 * config/mips/constraints.md (T): Rename to...
1321 (Yf): ...this.
1322 (U): Rename to...
1323 (Yd): ...this.
1324 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1325 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1326
0b8cdc58
IB
13272013-03-19 Ian Bolton <ian.bolton@arm.com>
1328
1329 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1330 (*subsi3_carryin_uxtw): Likewise.
1331
5977a10d
IB
13322013-03-19 Ian Bolton <ian.bolton@arm.com>
1333
1334 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1335 (*rorsi3_insn_uxtw): Likewise.
1336
bd83ff2c
IB
13372013-03-19 Ian Bolton <ian.bolton@arm.com>
1338
1339 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1340 (*extrsi5_insn_uxtw): Likewise.
1341
ba65123c
RB
13422013-03-19 Richard Biener <rguenther@suse.de>
1343
1344 PR tree-optimization/56273
1345 * passes.c (init_optimization_passes): Move second VRP after DOM.
1346
2eac0476
UB
13472013-03-19 Uros Bizjak <ubizjak@gmail.com>
1348
1349 * config/i386/i386.md (*movti_internal): Merge from
1350 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1351 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1352 nox64 isa attributes.
1353
6e55eda7
RB
13542013-03-18 Richard Biener <rguenther@suse.de>
1355
1356 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1357 (unite): Likewise.
1358 (merge_node_constraints): Likewise.
1359 (build_succ_graph): Likewise.
1360 (valid_graph_edge): Inline into single caller.
1361 (unify_nodes): Likewise. Use bitmap_set_bit return value
1362 and cache varinfo.
1363 (scc_visit): Fix formatting and variable use.
1364 (do_sd_constraint): Use gcc_checking_assert.
1365 (do_ds_constraint): Likewise.
1366 (do_complex_constraint): Likewise.
1367 (condense_visit): Likewise. Cleanup.
1368 (dump_pred_graph): New function.
1369 (perform_var_substitution): Dump the pred-graph before
1370 variable substitution.
1371 (find_equivalent_node): Use gcc_checking_assert.
1372 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1373
4bdd44c4
RB
13742013-03-18 Richard Biener <rguenther@suse.de>
1375
1376 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1377 Remove cond_expr_stmt_list argument and do not gimplify the
1378 built expression.
1379 (vect_loop_versioning): Adjust.
1380 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1381 Cleanup to use less temporaries.
1382 (vect_create_data_ref_ptr): Cleanup.
1383
38c56a5b
JJ
13842013-03-18 Jakub Jelinek <jakub@redhat.com>
1385
1386 PR tree-optimization/56635
1387 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1388 require types_compatible_p types.
1389
20b2e6a0
NC
13902013-03-18 Nick Clifton <nickc@redhat.com>
1391
a6178a25
NC
1392 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1393 spurious backslash.
1394
20b2e6a0
NC
1395 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1396 Add missing line to comment describing function.
1397
92608d0e
RB
13982013-03-18 Richard Biener <rguenther@suse.de>
1399
1400 PR tree-optimization/56210
1401 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1402 Handle string / character search functions.
1403 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1404
31348d52
RB
14052013-03-18 Richard Biener <rguenther@suse.de>
1406
1407 PR middle-end/56483
1408 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1409 and implement properly.
1410 * gimple.h (gimple_cond_single_var_p): Remove.
1411
fcac74a1
RB
14122013-03-18 Richard Biener <rguenther@suse.de>
1413
1414 * tree-data-ref.h (find_data_references_in_loop): Declare.
1415 * tree-data-ref.c (get_references_in_stmt): Use a stack
1416 vector pre-allocated in the callers.
1417 (find_data_references_in_stmt): Adjust.
1418 (graphite_find_data_references_in_stmt): Likewise.
1419 (create_rdg_vertices): Likewise.
1420 (find_data_references_in_loop): Export.
1421 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1422 Compute dependences here...
1423 (vect_analyze_data_refs): ...not here. When we encounter
1424 a non-vectorizable data reference in basic-block vectorization
1425 truncate the data reference vector. Do not bother to
1426 fixup data-dependence information for gather loads.
1427 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1428 of data references, as reported.
1429
0d5a1b56
RB
14302013-03-18 Richard Biener <rguenther@suse.de>
1431
1432 PR tree-optimization/3713
1433 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1434 has_constants and expr.
1435 (stmt_has_constants): Properly valueize SSA names when deciding
1436 whether the stmt has constants.
1437
789c34e3
RB
14382013-03-18 Richard Biener <rguenther@suse.de>
1439
1440 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1441 whole function when there is nothing to do.
1442 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1443 * tree-vectorizer.c (vectorize_loops): Update virtual and
1444 loop-closed SSA once.
1445 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1446
076b4605
RB
14472013-03-18 Richard Biener <rguenther@suse.de>
1448
1449 PR middle-end/56113
1450 * domwalk.c (bb_postorder): New global static.
1451 (cmp_bb_postorder): New function.
1452 (walk_dominator_tree): Replace scheme imposing an order for
1453 visiting dominator sons by one sorting them at the time they
1454 are pushed on the stack.
1455
bdb01696
RB
14562013-03-18 Richard Biener <rguenther@suse.de>
1457
1458 PR tree-optimization/39326
1459 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1460 (struct mem_ref): Replace mem member with ao_ref typed member.
1461 (MEM_ANALYZABLE): Adjust.
1462 (memref_eq): Likewise.
1463 (mem_ref_alloc): Likewise.
1464 (gather_mem_refs_stmt): Likewise.
1465 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1466 (execute_sm_if_changed_flag_set): Adjust.
1467 (execute_sm): Likewise.
1468 (ref_always_accessed_p): Likewise.
1469 (refs_independent_p): Likewise.
1470 (can_sm_ref_p): Likewise.
1471
12d2dc5e
JJ
14722013-03-18 Jakub Jelinek <jakub@redhat.com>
1473
1474 PR c/56566
1475 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1476 return 1 even for !unsignedp.
1477
286fb677
UB
14782013-03-17 Uros Bizjak <ubizjak@gmail.com>
1479
1480 * config/i386/i386.md (isa): Add x64 and nox64.
1481 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1482 (*pushtf): Enable *roF alternative for x64 isa only.
1483 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1484 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1485 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1486 (*movtf_internal): Merge from *movtf_internal_rex64 and
1487 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1488 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1489 nox64 isa attributes.
1490 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1491 nox64 isa attributes.
1492 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1493
88b97037
UB
14942013-03-17 Uros Bizjak <ubizjak@gmail.com>
1495
1496 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1497
9f4f1735
JJ
14982013-03-17 Jakub Jelinek <jakub@redhat.com>
1499
1500 PR target/56640
1501 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1502 class names. Remove trailing comma after "ALL_REGS".
1503
48f4a6fa
JH
15042013-03-16 Jan Hubicka <jh@suse.cz>
1505
1506 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1507 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1508 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1509 of cgraph_get_create_node.
1510 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1511
98e81123
JM
15122013-03-16 Jason Merrill <jason@redhat.com>
1513
1514 PR debug/49090
1515 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1516 with DW_AT_default_value.
1517
8a298c04
JJ
15182013-03-16 Jakub Jelinek <jakub@redhat.com>
1519
1520 * BASE-VER: Set to 4.9.0.
1521
4323afa0
AK
15222013-03-14 Andi Kleen <ak@linux.intel.com>
1523
1524 PR target/56619
1525 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1526 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1527 Document _x* TSX intrinsics.
1528
b3c0d469
JJ
15292013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1530 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
1531
1532 * configure.ac: Add MicroBlaze TLS support detection.
1533 * configure: Regenerate.
88b97037
UB
1534 * config/microblaze/microblaze-protos.h
1535 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1536 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1537 * config/microblaze/microblaze.c (microblaze_address_type): Add
1538 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
1539 (microblaze_address_info): Add tls_reloc.
1540 (TARGET_HAVE_TLS): Define.
1541 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1542 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
1543 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1544 load_tls_operand, microblaze_call_tls_get_addr,
1545 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
1546 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1547 (get_base_reg): Use microblaze_tls_symbol_p.
1548 (microblaze_classify_address): Handle TLS.
88b97037
UB
1549 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1550 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
1551 (microblaze_legitimize_address): Handle TLS.
1552 (microblaze_address_insns): Handle ADDRESS_TLS.
1553 (pic_address_needs_scratch): Handle TLS.
1554 (print_operand_address): Handle TLS.
1555 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1556 (microblaze_expand_move): Handle TLS.
88b97037
UB
1557 (microblaze_legitimate_constant_p): Check
1558 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
1559 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1560 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1561 (PIC_OFFSET_TABLE_REGNUM): Set.
1562 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1563 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1564 (addsi3, movsi_internal2, movdf_internal): Update constraints
1565 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
1566 (move_operand): Redefine as move_src_operand,
1567 check microblaze_tls_referenced_p.
8cc9a5a5 1568
d803a491
IB
15692013-03-14 Ian Bolton <ian.bolton@arm.com>
1570
1571 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1572 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1573
a8504f22
IB
15742013-03-14 Ian Bolton <ian.bolton@arm.com>
1575
1576 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1577 CC mode for AND.
1578
df2dfaea
JJ
15792013-03-14 Jakub Jelinek <jakub@redhat.com>
1580
fbd28bc3
JJ
1581 PR tree-optimization/53265
1582 * common.opt (Waggressive-loop-optimizations): New option.
1583 * tree-ssa-loop-niter.c: Include tree-pass.h.
1584 (do_warn_aggressive_loop_optimizations): New function.
1585 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1586 if number_of_latch_executions returned constant.
1587 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1588 early. If number_of_latch_executions returned constant, set
1589 nb_iterations_upper_bound back to it.
1590 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1591 field.
1592 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1593 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1594
df2dfaea
JJ
1595 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1596 (MULTILIB_OSDIRNAMES): Set.
1597 * genmultilib: If defaultosdirname doesn't start with :: , set
1598 defaultosdirname2 instead, clear it and emit two . multilib_raw
1599 entries instead of just one.
1600
ee0d2b68
KK
16012013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1602
1603 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1604 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1605 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1606 (SUBTARGET_OVERRIDE_OPTIONS): New.
1607
decc676e
OE
16082013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1609
1610 PR target/49880
1611 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1612 (musermode): Convert to Var(TARGET_USERMODE).
1613 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1614 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1615 * config/sh/sh.c (sh_option_override): Use
1616 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1617 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1618 condition.
1619 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1620 TARGET_SH4.
1621 (udivsi3_i4_single, divsi3_i4_single): Use
1622 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1623
f4b719c7
DK
16242013-03-13 Dave Korn <dave.korn.cygwin@....>
1625
1626 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1627 default setting.
1628
c40eced0
RB
16292013-03-13 Richard Biener <rguenther@suse.de>
1630
1631 PR tree-optimization/56608
1632 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1633 calls when vectorizing basic-blocks.
1634
1bfa5973
JJ
16352013-03-13 Jakub Jelinek <jakub@redhat.com>
1636
1637 PR plugins/45078
1638 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1639 tm_file.
1640
6fcf5434
JJ
16412013-03-12 Jakub Jelinek <jakub@redhat.com>
1642
1643 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1644
4f38fa8c
JH
16452013-03-11 Jan Hubicka <jh@suse.cz>
1646
1647 PR lto/56557
1648 * lto-streamer-out.c (output_symbol_p): Skip references from
1649 constructors of external variables.
1650
c5c5ba89
JH
16512013-03-11 Jan Hubicka <jh@suse.cz>
1652
1653 PR middle-end/56571
1654 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1655 from pseudos.
1656 * emit-rtl.c (verify_rtx_sharing): Likewise.
1657 (copy_insn_1): Likewise.
1658 * rtl.c (copy_rtx): Likewise.
1659
c2a939b1
GJL
16602013-03-11 Georg-Johann Lay <avr@gjlay.de>
1661
1662 PR target/56591
1663 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1664 output_operand_lossage message.
88b97037 1665
3c3279fb
RE
16662013-03-11 Richard Earnshaw <rearnsha@arm.com>
1667
1668 PR target/56470
1669 * arm.c (shift_op): Validate RTL pattern on the fly.
1670 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1671 the RTL.
1672
aef5ef9d
JDA
16732013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1674
1675 PR target/56347
1676 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1677 new call patterns that clobber %fr12.
1678 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1679 split and postreload patterns.
1680 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1681 registers %fr12 and %fr12R as call used.
1682
456610d3
SB
16832013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1684
1685 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1686 (canon_address, record_store, replace_read, check_mem_read_rtx,
1687 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1688 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1689 rest_of_handle_dse): Likewise.
1690
4b1baac8
RS
16912013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1692
1693 PR middle-end/56524
1694 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1695 Add base_optabs.
1696 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1697 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1698 (save_optabs_if_changed): Replace with...
1699 (init_tree_optimization_optabs): ...this.
1700 * optabs.c (save_optabs_if_changed): Rename to...
1701 (init_tree_optimization_optabs): ...this. Take the optimization node
1702 as argument. Do nothing if the base optabs are already correct.
1703 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1704 to recompute optabs.
1705 * function.h (function): Remove optabs field.
1706 * function.c (invoke_set_current_function_hook): Call
1707 init_tree_optimization_optabs. Use the result to initialize
1708 this_fn_optabs.
1709
b7a78683
AH
17102013-02-27 Aldy Hernandez <aldyh@redhat.com>
1711
1712 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1713 if GTMA_HAS_NO_INSTRUMENTATION.
1714 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1715 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1716 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1717 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1718 GTMA_HAS_NO_INSTRUMENTATION.
1719
6384c29b
JJ
17202013-03-08 Jakub Jelinek <jakub@redhat.com>
1721
1722 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1723 libasan_preinit.o.
1724
ecd4f20a
MP
17252013-03-08 Marek Polacek <polacek@redhat.com>
1726 Jakub Jelinek <jakub@redhat.com>
1727
1728 PR tree-optimization/56478
1729 * predict.c (is_comparison_with_loop_invariant_p): Change the
1730 type of loop_step to tree.
1731 (predict_loops): Adjust.
1732 (predict_iv_comparison): Perform the computations on double_ints.
1733
64366d35
RB
17342013-03-08 Richard Biener <rguenther@suse.de>
1735
1736 PR tree-optimization/56570
1737 * tree-cfg.c (verify_expr_location_1): Verify locations for
1738 DECL_DEBUG_EXPR.
1739 * tree-sra.c (create_access_replacement): Strip locations
1740 from DECL_DEBUG_EXPRs.
1741
a9d5a059
RB
17422013-03-08 Richard Biener <rguenther@suse.de>
1743
1744 * tree-inline.c (expand_call_inline): Do not associate
1745 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1746 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1747
b7aa4e9a
RB
17482013-03-08 Richard Biener <rguenther@suse.de>
1749
1750 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1751 or block changes with -Og. Fix for location / block encoding
1752 changes and PHI arguments with locations.
1753
c4c2f9fa
SB
17542013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1755
1756 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1757 for all counters.
1758 (struct output_info): Likewise.
1759 (register_overhead): Remove bad gcc_assert.
1760 (bitmap_find_bit): If there is only a single bitmap element, do not
1761 count a miss as a search.
1762 (print_statistics): Update for counter type changes.
1763 (dump_bitmap_statistics): Likewise. Print headers such that they
1764 are properly lined up with the printed counters.
1765
5bf6606a
JJ
17662013-03-07 Jakub Jelinek <jakub@redhat.com>
1767
1768 PR tree-optimization/56559
1769 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1770 check that it has only a single use.
1771
2c653d46
RB
17722013-03-07 Richard Biener <rguenther@suse.de>
1773
1774 * doc/invoke.texi (fwhole-program): Discourage use in combination
1775 with -flto.
1776
a72d8780
JJ
17772013-03-06 Jakub Jelinek <jakub@redhat.com>
1778
01a454df
JJ
1779 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1780
c1781047
JJ
1781 PR tree-optimization/56539
1782 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1783 instead of GSI_CONTINUE_LINKING as last argument to
1784 force_gimple_operand_gsi. Adjust function comment.
1785
9772c47a
JJ
1786 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1787 aarch64-cores.def.
1788
a72d8780
JJ
1789 PR middle-end/56548
1790 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1791 promoted mode, convert the result back to the original mode.
1792
fa5556de
RB
17932013-03-06 Richard Biener <rguenther@suse.de>
1794
1795 PR middle-end/56294
1796 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1797 (insert_updated_phi_nodes_compare_uids): New function.
1798 (update_ssa): Sort symbols_to_rename after UID before
1799 traversing it to insert PHI nodes.
1800
010403d1
RB
18012013-03-06 Richard Biener <rguenther@suse.de>
1802
1803 PR middle-end/50494
1804 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1805 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1806
1807 Revert
1808 2013-02-13 Richard Biener <rguenther@suse.de>
1809
1810 PR lto/50494
1811 * varasm.c (output_constant_def_1): Get the decl representing
1812 the constant as argument.
1813 (output_constant_def): Wrap output_constant_def_1.
1814 (make_decl_rtl): Use output_constant_def_1 with the decl
1815 representing the constant.
1816 (build_constant_desc): Optionally re-use a decl already
1817 representing the constant.
1818 (tree_output_constant_def): Adjust.
1819
3c27ce4c
JY
18202013-03-06 Joey Ye <joey.ye@arm.com>
1821
1822 PR lto/50293
1823 * gcc.c (convert_white_space): New function.
1824 (main): Handles white space in function name.
1825
8f6d1c86
OE
18262013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1827
1828 PR target/56529
1829 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1830 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1831 to SH_DIV_CALL_TABLE for TARGET_SH2.
1832 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1833 list.
1834 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1835 call-table options.
1836
798a209f
SA
18372013-03-05 Sterling Augustine <saugustine@google.com>
1838 Cary Coutant <ccoutant@google.com>
1839
1840 PR debug/55364
1841 * dwarf2out.c (resolve_addr): Don't call
1842 remove_loc_list_addr_table_entries a second time for the same
1843 expression.
1844
6cfa417f 18452013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 1846
6cfa417f
JJ
1847 PR debug/56510
1848 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1849 (avoid_complex_debug_insns): New function.
1850 (expand_debug_locations): Call it.
1851
1852 PR rtl-optimization/56484
1853 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1854 lifetimes of hard registers on small register class machines.
1855
18562013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1857
1858 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 1859 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 1860 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
1861 fast_interrupt.
1862 (microblaze_fast_interrupt_function_p): New function.
1863 (microblaze_is_interrupt_handler): Rename to
1864 microblaze_is_interrupt_variant and add fast_interrupt check.
1865 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1866 (save_restore_insns): Likewise.
1867 (compute_frame_size): Likewise.
1868 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1869 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
1870 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1871 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
1872 microblaze_is_interrupt_variant.
1873
731aefac
KT
18742013-03-05 Kai Tietz <ktietz@redhat.com>
1875
1876 * sdbout.c (sdbout_one_type): Switch to current function's section
1877 supporting cold/hot.
1878
a72d8780 18792013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
1880
1881 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1882 -mxl-reorder.
1883
334e71e8
JJ
18842013-03-05 Jakub Jelinek <jakub@redhat.com>
1885
0b50e654
JJ
1886 PR middle-end/56461
1887 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1888 if VALGRIND_GET_VBITS is defined, temporarily make object
1889 memory all defined, and restore previous valgrind addressability
1890 and definability afterwards. Free this_object at the end.
1891
4ccf8f43
JJ
1892 PR middle-end/56461
1893 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1894 right before calling lra_create_live_ranges, also call it
1895 when clearing live_p. Only call lra_clear_live_ranges
1896 at the end if live_p.
1897
334e71e8
JJ
1898 PR middle-end/56461
1899 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1900
9ca966ca
RB
19012013-03-05 Richard Biener <rguenther@suse.de>
1902
1903 PR tree-optimization/56521
1904 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1905 value-id.
1906
d273b176
SB
19072013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1908
1909 PR c++/55135
1910 * except.h (remove_unreachable_eh_regions): New prototype.
1911 * except.c (remove_eh_handler_splicer): New function, split out
1912 of remove_eh_handler.
1913 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1914 warning about running it on many EH regions one at a time.
1915 (remove_unreachable_eh_regions_worker): New function, walk the
1916 EH tree in depth-first order and remove non-marked regions.
1917 (remove_unreachable_eh_regions): New function.
1918 * tree-eh.c (mark_reachable_handlers): New function, split out
1919 from remove_unreachable_handlers.
1920 (remove_unreachable_handlers): Use mark_reachable_handlers and
1921 remove_unreachable_eh_regions.
1922 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1923 and remove_unreachable_eh_regions.
1924
5e7f1aef
RB
19252013-03-05 Richard Biener <rguenther@suse.de>
1926
1927 PR middle-end/56525
1928 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1929 not freeing them until the end.
1930
f276b762
AK
19312013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1932
1933 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1934
12a43ab8
RB
19352013-03-05 Richard Biener <rguenther@suse.de>
1936
1937 PR tree-optimization/56270
1938 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1939 of loads after scheduling an SLP instance.
1940
93675444
JJ
19412013-03-05 Jakub Jelinek <jakub@redhat.com>
1942
db4138e3
JJ
1943 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1944 tic6x.exp.
1945 (check_gcc_parallelize): Run guality.exp as a separate job from
1946 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1947 struct-layout-1.exp with stackalign.exp.
1948
dd3d1ec0
JJ
1949 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1950
b8d381a3
JJ
1951 PR middle-end/56461
1952 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1953 load_index sbitmap even if some bit in it isn't set.
1954
b4f9786b
JJ
1955 PR middle-end/56461
1956 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1957 (discover_iteration_bound_by_body_walk): Change queues to
1958 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1959 spelling in comment. Call safe_push on queues[bound_index] directly.
1960 Release queues[queue_index] in every iteration unconditionally.
1961 Release bounds vector.
1962
93675444
JJ
1963 PR middle-end/56461
1964 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1965 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1966 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1967 inner_phis vector.
1968
3e492e9c
RB
19692013-03-05 Richard Biener <rguenther@suse.de>
1970
1971 PR lto/56515
1972 * tree-inline.c (remap_blocks_to_null): New function.
1973 (expand_call_inline): When expanding a call stmt without
1974 an associated block inline remap all callee blocks to NULL.
1975
a5d1569a
JJ
19762013-03-05 Jakub Jelinek <jakub@redhat.com>
1977
86efb5cd
JJ
1978 PR rtl-optimization/56494
1979 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1980 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1981 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1982
85f5dbea
JJ
1983 PR middle-end/56461
1984 * sel-sched-ir.c (free_sched_pools): Release
1985 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1986 if succs_info_pool.max_top isn't -1.
1987
a5d1569a
JJ
1988 PR bootstrap/56509
1989 * opts.c (opts_obstack, opts_concat): Moved to...
1990 * opts-common.c (opts_obstack, opts_concat): ... here.
1991
4432aa6c
JJ
19922013-03-04 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR middle-end/56461
1995 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1996
f3a1fb91
MJ
19972013-03-04 Martin Jambor <mjambor@suse.cz>
1998
1999 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2000 all appropriate places.
2001
22110e6c
EB
20022013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2003
2004 PR tree-optimization/56424
2005 * ipa-split.c (split_function): Do not set the RSO flag if result is
2006 not by reference and its type is a register type.
2007
a72d8780 20082013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 2009
88b97037 2010 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 2011 (microblaze_legitimate_pic_operand): Likewise
88b97037 2012 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
2013 new function microblaze_legitimate_pic_operand
2014 * config/microblaze/microblaze-protos.h
2015 (microblaze_legitimate_pic_operand): Declare.
2016
a72d8780 20172013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 2018
a72d8780 2019 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 2020 New predicate for supported rtx code types.
a72d8780 2021 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
2022 call_insn_simple_operand predicate.
2023
541d9ac8
JJ
20242013-03-04 Jakub Jelinek <jakub@redhat.com>
2025
5eb010bc
JJ
2026 PR middle-end/56461
2027 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2028 partitions.ordered_remove.
2029
30862efc
JJ
2030 PR middle-end/56461
2031 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2032 vec_oprnds0.create (1) for modifier == NONE.
2033
8930f723
JJ
2034 PR middle-end/56461
2035 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2036 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2037 vec_oprnds1 right before pushing anything to it for
2038 scalar_shift_arg.
2039
541d9ac8
JJ
2040 PR middle-end/56461
2041 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2042 set nbbs to 0 instead of having separate code path.
2043 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2044 instead of false as last argument if returning NULL.
2045
7aa7f2e3
SL
20462013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2047
2048 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2049 the attribute is now called "target" instead of "option".
2050 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2051 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2052 attribute/pragma name for TARGET_OPTION_VALID_P and
2053 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2054 * doc/tm.texi: Regenerated.
2055
8930f723 20562013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 2057
8930f723 2058 * config/microblaze/microblaze.c:
cb8a1637 2059 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
2060 * config/microblaze/microblaze.h: Add -mxl-reorder to
2061 DRIVER_SELF_SPECS.
2062 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2063 instructions emitted if TARGET_REORDER.
88b97037
UB
2064 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2065 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 2066 separately.
cb8a1637 2067
4dc1d68c
XDL
20682013-03-01 Xinliang David Li <davidxl@google.com>
2069
2070 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2071 walk length.
2072
689eaba3
JJ
20732013-03-01 Jakub Jelinek <jakub@redhat.com>
2074
9d676bf6
JJ
2075 PR middle-end/56461
2076 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2077 vector even when returning true. Fix up function comment formatting.
2078
caff7edf
JJ
2079 PR middle-end/56461
2080 * ira-build.c (ira_loop_nodes_count): New variable.
2081 (create_loop_tree_nodes): Initialize it.
2082 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2083
b6b9227d
JJ
2084 PR middle-end/56461
2085 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2086 method on dr_chain and result_chain.
2087 * tree-vect-stmts.c (vectorizable_store): Only call
2088 result_chain.create if j == 0.
2089
689eaba3
JJ
2090 PR middle-end/56461
2091 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2092 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2093 before overwriting it.
2094
40bf31ed
TB
20952013-03-01 Tobias Burnus <burnus@net-b.de>
2096
2097 * doc/extended.texi (C Extensions): Change order in @menu
2098 to match @node.
2099 (Other MIPS Built-in Functions): Move last MIPS entry before
2100 "picoChip Built-in Functions".
2101 (SH Built-in Functions): Move after RX Built-in Functions.
2102 * doc/gcc.texi (Introduction): Change order in @menu
2103 to match @node.
2104 * doc/md.texi (Constraints): Ditto.
2105 * gty.texi (Type Information): Ditto.
2106 (User-provided marking routines for template types): Make
2107 subsection.
2108 * doc/invoke.texi (AArch64 Options): Move before
2109 "Adapteva Epiphany Options".
2110
e664c61c
KS
21112013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2112 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR sanitizer/56454
2115 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2116 no_address_safety_analysis attribute.
2117 * doc/extend.texi (no_address_safety_attribute): Rename to
2118 no_sanitize_address attribute, mention no_address_safety_analysis
2119 attribute as deprecated alias.
2120
37b5ec8f
JJ
21212013-02-28 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR middle-end/56461
2124 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2125 type to vec<vec<tree> > *.
2126 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2127 to be vec<tree> instead of vec<tree> *, set vec_defs
2128 to vNULL and call vec_defs.create (number_of_vects), adjust other
2129 uses of vec_defs.
2130 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2131 vectorizable_condition): Adjust vect_get_slp_defs callers.
2132
ba96cdfb
JG
21332013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2134
2135 * config/aarch64/aarch64.c
2136 (aarch64_float_const_representable): Remove unused variable.
2137
6f549691
JG
21382013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2139
2140 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2141
af55e82d
JG
21422013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2143
2144 * config/aarch64/aarch64-builtins.c
2145 (aarch64_init_simd_builtins): Make static.
2146
1df3f464
JG
21472013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2148
2149 * config/aarch64/aarch64.c
2150 (aarch64_simd_make_constant): Make static.
2151
f8f42513
MJ
21522013-02-28 Martin Jambor <mjambor@suse.cz>
2153
2154 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2155 with no initialization to the RHS of debug statements.
2156
b48b3fc4
MJ
21572013-02-28 Martin Jambor <mjambor@suse.cz>
2158
2159 PR tree-optimization/56294
2160 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2161 Adjust dumping.
2162 (get_access_replacement): Do not call create_access_replacement.
2163 Assert a replacement exists.
2164 (get_repl_default_def_ssa_name): Create the replacement declaration
2165 itself.
2166
c3ae224c
RR
21672013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2168
2169 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2170 final_end_function.
2171
45fa0eef
MP
21722013-02-28 Marek Polacek <polacek@redhat.com>
2173
2174 PR rtl-optimization/56466
2175 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2176 if we're changing a loop.
2177 (peel_loops_completely): Likewise.
2178
502c067d
PC
21792013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2180
2181 PR c++/55813
2182 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2183
ff24afc8
GJL
21842013-02-28 Georg-Johann Lay <avr@gjlay.de>
2185
2186 PR target/56445
2187 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2188 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2189 INTX_FTYPE_FX, FX_FTYPE_INTX.
2190 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2191
c7b1fc1b
GJL
21922013-02-28 Georg-Johann Lay <avr@gjlay.de>
2193
2194 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2195 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2196 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2197 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2198 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2199 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2200 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2201 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2202 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2203 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2204 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2205 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2206 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2207 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2208 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2209 (avrxmega6): Increase max flash segments from 5 to 6.
2210 * config/avr/t-multilib: Regenerate.
2211 * config/avr/avr-tables.opt: Regenerate.
2212 * doc/avr-mmcu.texi: Regenerate.
2213
4a0e3cfe
GJL
22142013-02-28 Georg-Johann Lay <avr@gjlay.de>
2215
2216 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2217 (avr_device_to_arch): Rename to avr_device_to_ld.
2218 (avr_device_to_as): New prototype.
2219 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2220 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2221 * config/avr/driver-avr.c (avr_device_to_as): New.
2222 (avr_device_to_arch): Rename to avr_device_to_ld.
2223
97785e52
JJ
22242013-02-27 Jakub Jelinek <jakub@redhat.com>
2225
3f292312
JJ
2226 PR middle-end/56461
2227 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2228 method on dr_chain and result_chain.
2229
a344216b
JJ
2230 PR middle-end/56461
2231 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2232 pointer_set_destroy on not_executed_last_iteration.
2233
f121ad02 2234 PR middle-end/56461
88b97037 2235 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 2236
307f83a3
JJ
2237 PR middle-end/56461
2238 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2239 FOR_EACH_DEFINED_FUNCTION when freeing state.
2240
e19624ee
JJ
2241 PR middle-end/56461
2242 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2243 pool_free.
2244 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2245 overwriting it.
2246
90e709fd
JJ
2247 PR middle-end/56461
2248 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2249 known_aggs[i].items and release known_aggs vector.
2250
97785e52
JJ
2251 PR middle-end/56461
2252 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2253
22542013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 2255
97785e52
JJ
2256 * config/microblaze/microblaze.c (microblaze_emit_compare):
2257 Use xor for EQ/NE comparisions.
2258 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2259 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 2260
6fa5e0ed
JJ
22612013-02-27 Jakub Jelinek <jakub@redhat.com>
2262
2263 PR middle-end/56461
2264 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2265 vector.
2266 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2267 vec_safe_push, always update *slot.
2268 (redirect_edge_var_map_clear): Use vec_free.
2269 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2270 (free_var_map_entry): Use vec_free.
2271 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2272 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2273
436a956a
AB
22742013-02-27 Andrey Belevantsev <abel@ispras.ru>
2275
2276 PR middle-end/45472
436a956a
AB
2277 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2278 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
2279 Reorder tests for speculativeness in the logical and operator.
2280
f5c2caca
JJ
22812013-02-27 Jakub Jelinek <jakub@redhat.com>
2282
0fcb564b
JJ
2283 * incpath.c (add_standard_paths): Use reconcat instead of concat
2284 where appropriate and avoid leaking memory.
2285
dc357798
JJ
2286 * opts.h: Include obstack.h.
2287 (opts_concat): New prototype.
2288 (opts_obstack): New declaration.
2289 * opts.c (opts_concat): New function.
2290 (opts_obstack): New variable.
2291 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2292 (finish_options): Use opts_concat instead of concat
2293 and XOBNEWVEC instead of XNEWVEC.
2294 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2295 generate_option): Likewise.
2296 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2297 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2298
f5c2caca
JJ
2299 PR target/56455
2300 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2301 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2302
d0163673
JJ
23032013-02-26 Jakub Jelinek <jakub@redhat.com>
2304
2305 PR middle-end/56461
2306 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2307
b5ad2b8e
JR
23082013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2309
2310 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2311 (arm_block_move_unaligned_straight): Likewise.
2312 (arm_adjust_block_mem): Likewise.
2313
9b639e2c
JR
23142013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2315
2316 PR target/48901
2317 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2318 temp, cond and label.
2319 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2320
e13a0ccb
JR
2321 PR target/52500
2322 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2323 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2324
fbe4f171
JR
2325 PR target/52501
2326 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2327 of prologue/epilogue functions.
2328
ae006543
JR
2329 PR target/52550
2330 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2331 Remove unused variable cfa_offset.
2332 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2333
c81369fa
JR
2334 PR target/54639
2335 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2336 type promotion to unsigned.
2337
f8a8fea7
JR
2338 PR target/54640
2339 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2340 for HOST_WIDE_INT of 32 bit / same size as int.
2341 (arm_block_move_unaligned_straight): Likewise.
2342 (arm_adjust_block_mem): Likewise.
2343
f8be5169
JR
2344 PR target/54662
2345 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2346 ALL_CFLAGS.
2347
f1ad3354
MP
23482013-02-26 Marek Polacek <polacek@redhat.com>
2349
2350 PR tree-optimization/56426
88b97037 2351 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 2352
a6af0f42
RB
23532013-02-26 Richard Biener <rguenther@suse.de>
2354
2355 PR target/56444
2356 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2357 unused variable loops.
2358
aca43c6c
JJ
23592013-02-26 Jakub Jelinek <jakub@redhat.com>
2360
cecbe5d9
JJ
2361 PR tree-optimization/56448
2362 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2363 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2364 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2365 later operands of the references, or even first operand for
2366 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2367
aca43c6c
JJ
2368 PR tree-optimization/56443
2369 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2370 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2371 to type_for_mode langhook.
2372
53e2e141
MT
23732013-02-25 Matt Turner <mattst88@gmail.com>
2374
2375 * doc/invoke.texi: Document r4700.
2376
259ee451
RB
23772013-02-25 Richard Biener <rguenther@suse.de>
2378
2379 PR tree-optimization/56175
2380 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2381 split out from ...
2382 (simplify_bitwise_binary): ... here. Also guard the conversion
2383 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2384
6d65e8f1
CM
23852013-02-25 Catherine Moore <clm@codesourcery.com>
2386
2387 Revert:
2388 2013-02-24 Catherine Moore <clm@codesourcery.com>
2389 Maciej W. Rozycki <macro@codesourcery.com>
2390 Tom de Vries <tom@codesourcery.com>
a72d8780 2391 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
2392 Iain Sandoe <iain@codesourcery.com>
2393 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 2394 Chao-ying Fu <fu@mips.com>
88b97037 2395
6d65e8f1 2396 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 2397 Document new function attributes.
6d65e8f1
CM
2398 * doc/invoke.texi (minterlink-compressed, mmicromips,
2399 m14k, m14ke, m14kec): Document new options.
2400 (minterlink-mips16): Update documentation.
2401 * doc/md.texi (ZC, ZD): Document new constraints.
2402 * configure.ac (gcc_cv_as_micromips): Check if linker
2403 supports the .set micromips directive.
2404 * configure: Regenerate.
2405 * config.in: Regenerate.
2406 * config/mips/mips-tables.opt: Regenerate.
2407 * config/mips/micromips.md: New file.
2408 * constraints.md (ZC, AD): New constraints.
2409 * config/mips/predicates.md (movep_src_register): New predicate.
2410 (movep_src_operand): New predicate.
2411 (non_volatile_mem_operand): New predicate.
2412 * config/mips/mips.md (multimem): New type.
2413 (length): Differentiate between 17-bit and 18-bit branch offsets.
2414 (MOVEP1, MOVEP2): New mode iterator.
2415 (mov_<load>l): Use ZC constraint.
2416 (mov_<load>r): Likewise.
2417 (mov_<store>l): Likewise.
2418 (mov_<store>r): Likewise.
2419 (*branch_equality<mode>_inverted): Add microMIPS support.
2420 (*branch_equality<mode>): Likewise.
2421 (*jump_absolute): Likewise.
2422 (indirect_jump_<mode>): Likewise.
2423 (tablejump_<mode>): Likewise.
2424 (<optab>_internal): Likewise.
2425 (sibcall_internal): Likewise.
2426 (sibcall_value_internal): Likewise.
2427 (prefetch): Use constraint ZD.
2428 * config/mips/mips.opt (minterlink-compressed): New option.
2429 (minterlink-mips16): Now an alias for minterlink-compressed.
2430 (mmicromips): New option.
2431 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2432 (compare_and_swap_12): Likewise.
2433 (sync_add<mode>): Likewise.
2434 (sync_<optab>_12): Likewise.
2435 (sync_old_<optab>_12): Likewise.
2436 (sync_new_<optab>_12): Likewise.
2437 (sync_nand_12): Likewise.
2438 (sync_old_nand_12): Likewise.
2439 (sync_new_nand_12): Likewise.
2440 (sync_sub<mode>): Likewise.
2441 (sync_old_add<mode>): Likewise.
2442 (sync_old_sub<mode>): Likewise.
2443 (sync_new_add<mode>): Likewise.
2444 (sync_new_sub<mode>): Likewise.
2445 (sync_<optab><mode>): Likewise.
2446 (sync_old_<optab><mode>): Likewise.
2447 (sync_new_<optab><mode>): Likewise.
2448 (sync_nand<mode>): Likewise.
2449 (sync_old_nand<mode>): Likewise.
2450 (sync_new_nand<mode>): Likewise.
2451 (sync_lock_test_and_set<mode>): Likewise.
2452 (test_and_set_12): Likewise.
2453 (atomic_compare_and_swap<mode>): Likewise.
2454 (atomic_exchange<mode>_llsc): Likewise.
2455 (atomic_fetch_add<mode>_llsc): Likewise.
2456 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2457 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2458 (umips_save_restore_pattern_p): Likewise.
2459 (umips_load_store_pair_p): Likewise.
2460 (umips_output_load_store_pair): Likewise.
2461 (umips_movep_target_p): Likewise.
2462 (umips_12bit_offset_address_p): Likewise.
2463 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2464 (mips_base_mips16): Rename this...
2465 (mips_base_compression_flags): ...to this. Update all uses.
2466 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2467 (mips_mips16_decl_p): Delete.
2468 (mips_nomips16_decl_p): Delete.
2469 (mips_get_compress_on_flags): New function.
2470 (mips_get_compress_off_flags): New function.
2471 (mips_get_compress_mode): New function.
2472 (mips_get_compress_on_name): New function.
2473 (mips_get_compress_off_name): New function.
2474 (mips_insert_attributes): Support multiple compression types.
2475 (mips_merge_decl_attributes): Likewise.
2476 (umips_12bit_offset_address_p): New function.
2477 (mips_start_function_definition): Emit .set micromips directive.
2478 (mips_call_may_need_jalx_p): New function.
2479 (mips_function_ok_for_sibcall): Add microMIPS support.
2480 (mips_print_operand_punctuation): Support short delay slots and
2481 compact jumps.
2482 (umips_swm_mask, umips_swm_encoding): New.
2483 (umips_build_save_restore): New function.
2484 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2485 (was_mips16_p): Remove.
2486 (old_compression_mode): New.
2487 (mips_set_compression_mode): New function.
2488 (mips_set_current_function): Add microMIPS support.
2489 (mips_option_override): Likewise.
2490 (umips_save_restore_pattern_p): New function.
2491 (umips_output_save_restore): New function.
2492 (umips_load_store_pair_p_1): New function.
2493 (umips_load_store_pair_p): New function.
2494 (umips_output_load_store_pair_1): New function.
2495 (umips_output_load_store_pair): New function.
2496 (umips_movep_target_p) New function.
2497 (mips_prepare_pch_save): Add microMIPS support.
2498 * config/mips/mips.h (TARGET_COMPRESSION): New.
2499 (TARGET_CPU_CPP_BUILTINS): Update macro
2500 to use new compression flags and to support microMIPS.
2501 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2502 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2503 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2504 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2505 (ASM_SPEC): Support mmicromips and mno-micromips.
2506 (M16STORE_REG_P): New macro.
2507 (MIPS_CALL): Support TARGET_MICROMIPS.
2508 (MICROMIPS_J): New macro.
2509 (mips_base_mips16): Rename this...
2510 (mips_base_compression_flags): ...to this.
2511 (UMIPS_12BIT_OFFSET_P): New macro.
2512 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2513 (MULTILIB_DIRNAMES): Likewise.
2514
5e5df392
TV
25152013-02-25 Tom de Vries <tom@codesourcery.com>
2516
2517 PR rtl-optimization/56131
2518 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2519 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2520 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2521
3fdb53c1
TB
25222013-02-25 Tobias Burnus <burnus@net-b.de>
2523
2524 * doc/invoke.texi (-fsanitize=): Move from optimization
2525 to debugging options.
2526
ed358aea
AB
25272013-02-25 Andrey Belevantsev <abel@ispras.ru>
2528
2529 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2530
f45e9053
AB
25312013-02-25 Andrey Belevantsev <abel@ispras.ru>
2532 Alexander Monakov <amonakov@ispras.ru>
2533
2534 PR middle-end/56077
2535 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2536 flush pending lists also on non-jumps. Adjust comment.
2537
6941b508
CM
25382013-02-24 Catherine Moore <clm@codesourcery.com>
2539 Maciej W. Rozycki <macro@codesourcery.com>
2540 Tom de Vries <tom@codesourcery.com>
a72d8780 2541 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
2542 Iain Sandoe <iain@codesourcery.com>
2543 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 2544 Chao-ying Fu <fu@mips.com>
6941b508
CM
2545
2546 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 2547 Document new function attributes.
6941b508
CM
2548 * doc/invoke.texi (minterlink-compressed, mmicromips,
2549 m14k, m14ke, m14kec): Document new options.
2550 (minterlink-mips16): Update documentation.
2551 * doc/md.texi (ZC, ZD): Document new constraints.
2552 * configure.ac (gcc_cv_as_micromips): Check if linker
2553 supports the .set micromips directive.
2554 * configure: Regenerate.
2555 * config.in: Regenerate.
2556 * config/mips/mips-tables.opt: Regenerate.
2557 * config/mips/micromips.md: New file.
2558 * constraints.md (ZC, AD): New constraints.
2559 * config/mips/predicates.md (movep_src_register): New predicate.
2560 (movep_src_operand): New predicate.
2561 (non_volatile_mem_operand): New predicate.
2562 * config/mips/mips.md (multimem): New type.
2563 (length): Differentiate between 17-bit and 18-bit branch offsets.
2564 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 2565 (mov_<load>l): Use ZC constraint.
6941b508
CM
2566 (mov_<load>r): Likewise.
2567 (mov_<store>l): Likewise.
2568 (mov_<store>r): Likewise.
2569 (*branch_equality<mode>_inverted): Add microMIPS support.
2570 (*branch_equality<mode>): Likewise.
2571 (*jump_absolute): Likewise.
2572 (indirect_jump_<mode>): Likewise.
2573 (tablejump_<mode>): Likewise.
2574 (<optab>_internal): Likewise.
2575 (sibcall_internal): Likewise.
2576 (sibcall_value_internal): Likewise.
2577 (prefetch): Use constraint ZD.
2578 * config/mips/mips.opt (minterlink-compressed): New option.
2579 (minterlink-mips16): Now an alias for minterlink-compressed.
2580 (mmicromips): New option.
2581 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2582 (compare_and_swap_12): Likewise.
2583 (sync_add<mode>): Likewise.
2584 (sync_<optab>_12): Likewise.
2585 (sync_old_<optab>_12): Likewise.
2586 (sync_new_<optab>_12): Likewise.
2587 (sync_nand_12): Likewise.
2588 (sync_old_nand_12): Likewise.
2589 (sync_new_nand_12): Likewise.
2590 (sync_sub<mode>): Likewise.
2591 (sync_old_add<mode>): Likewise.
2592 (sync_old_sub<mode>): Likewise.
2593 (sync_new_add<mode>): Likewise.
2594 (sync_new_sub<mode>): Likewise.
2595 (sync_<optab><mode>): Likewise.
2596 (sync_old_<optab><mode>): Likewise.
2597 (sync_new_<optab><mode>): Likewise.
2598 (sync_nand<mode>): Likewise.
2599 (sync_old_nand<mode>): Likewise.
2600 (sync_new_nand<mode>): Likewise.
2601 (sync_lock_test_and_set<mode>): Likewise.
2602 (test_and_set_12): Likewise.
2603 (atomic_compare_and_swap<mode>): Likewise.
2604 (atomic_exchange<mode>_llsc): Likewise.
2605 (atomic_fetch_add<mode>_llsc): Likewise.
2606 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2607 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2608 (umips_save_restore_pattern_p): Likewise.
2609 (umips_load_store_pair_p): Likewise.
2610 (umips_output_load_store_pair): Likewise.
2611 (umips_movep_target_p): Likewise.
2612 (umips_12bit_offset_address_p): Likewise.
2613 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2614 (mips_base_mips16): Rename this...
2615 (mips_base_compression_flags): ...to this. Update all uses.
2616 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2617 (mips_mips16_decl_p): Delete.
2618 (mips_nomips16_decl_p): Delete.
3fdb53c1 2619 (mips_get_compress_on_flags): New function.
6941b508
CM
2620 (mips_get_compress_off_flags): New function.
2621 (mips_get_compress_mode): New function.
2622 (mips_get_compress_on_name): New function.
2623 (mips_get_compress_off_name): New function.
2624 (mips_insert_attributes): Support multiple compression types.
2625 (mips_merge_decl_attributes): Likewise.
2626 (umips_12bit_offset_address_p): New function.
2627 (mips_start_function_definition): Emit .set micromips directive.
2628 (mips_call_may_need_jalx_p): New function.
2629 (mips_function_ok_for_sibcall): Add microMIPS support.
2630 (mips_print_operand_punctuation): Support short delay slots and
2631 compact jumps.
2632 (umips_swm_mask, umips_swm_encoding): New.
2633 (umips_build_save_restore): New function.
2634 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2635 (was_mips16_p): Remove.
2636 (old_compression_mode): New.
2637 (mips_set_compression_mode): New function.
2638 (mips_set_current_function): Add microMIPS support.
2639 (mips_option_override): Likewise.
2640 (umips_save_restore_pattern_p): New function.
2641 (umips_output_save_restore): New function.
2642 (umips_load_store_pair_p_1): New function.
2643 (umips_load_store_pair_p): New function.
2644 (umips_output_load_store_pair_1): New function.
2645 (umips_output_load_store_pair): New function.
2646 (umips_movep_target_p) New function.
2647 (mips_prepare_pch_save): Add microMIPS support.
2648 * config/mips/mips.h (TARGET_COMPRESSION): New.
2649 (TARGET_CPU_CPP_BUILTINS): Update macro
2650 to use new compression flags and to support microMIPS.
2651 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2652 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2653 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2654 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2655 (ASM_SPEC): Support mmicromips and mno-micromips.
2656 (M16STORE_REG_P): New macro.
2657 (MIPS_CALL): Support TARGET_MICROMIPS.
2658 (MICROMIPS_J): New macro.
2659 (mips_base_mips16): Rename this...
2660 (mips_base_compression_flags): ...to this.
2661 (UMIPS_12BIT_OFFSET_P): New macro.
2662 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2663 (MULTILIB_DIRNAMES): Likewise.
2664
cdebbc6d
JJ
26652013-02-24 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR target/52555
2668 * target-globals.c (save_target_globals): For init_reg_sets and
2669 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2670
18c63565
JG
26712013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2672
2673 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2674 * config/aarch64/t-aarch64
2675 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2676
2194f7a2
VM
26772013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2678
2679 PR inline-asm/56148
2680 * lra-constraints.c (process_alt_operands): Reload operand
2681 conflicting with earlier clobber only if no more other conflicting
2682 operands.
2683
7d613735
JJ
26842013-02-22 Jakub Jelinek <jakub@redhat.com>
2685
2686 PR sanitizer/56393
2687 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2688 if not linking a shared library.
2689
ac8d93a7
SL
26902013-02-22 Seth LaForge <sethml@google.com>
2691
2692 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2693
e0237780
GY
26942013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2695
3fdb53c1
TB
2696 * config/arm/arm.md (split for extendsidi): Update condition.
2697 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2698 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2699 (qhs_zextenddi_cstr): Likewise.
e0237780 2700
d7fde18c
JJ
27012013-02-21 Jakub Jelinek <jakub@redhat.com>
2702
be63b77d
JJ
2703 PR middle-end/56420
2704 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2705 avoid signed wrapping.
2706 (expand_mult): Handle properly multiplication by
2707 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2708 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2709 in the compiler if coeff is HOST_WIDE_INT_MIN.
2710 (expand_divmod): Don't make ext_op1 static, change it's type to
2711 uhwi. Avoid undefined behavior in -INTVAL (op1).
2712
d7fde18c
JJ
2713 PR rtl-optimization/50339
2714 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2715 field.
2716 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2717 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2718 into splitting_ashiftrt field.
2719 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2720 ASHIFTRT.
2721 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2722 choices.
2723
6aad4455
AH
27242013-02-20 Aldy Hernandez <aldyh@redhat.com>
2725
2726 PR middle-end/56108
2727 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2728 are sure to go irrevocable.
2729
38fe784d
HPN
27302013-02-21 Hans-Peter Nilsson <hp@axis.com>
2731
2732 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2733 scalars are valid operands.
2734
0fd44da3
MJ
27352013-02-21 Martin Jambor <mjambor@suse.cz>
2736
2737 PR tree-optimization/56310
2738 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2739 only matching indices and non-negative final offsets.
2740 (intersect_aggregates_with_edge): Pass src_idx to
2741 agg_replacements_to_vector. Pass src_idx insstead of index to
2742 intersect_with_agg_replacements.
2743
7a92038b
MJ
27442013-02-21 Martin Jambor <mjambor@suse.cz>
2745
2746 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2747 instead of hard-wired defaults.
2748
c0da9c37
MR
27492013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2750
2751 * doc/invoke.texi (MIPS Options): Update documentation of the
2752 floating-point multiply-accumulate instruction restrictions.
2753
d247ea0c 27542013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
2755
2756 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2757 asan_shadow_offset on x86_64 linux.
2758
22deefcb
RB
27592013-02-21 Richard Biener <rguenther@suse.de>
2760
2761 PR tree-optimization/56415
2762 Revert
2763 2013-02-11 Richard Biener <rguenther@suse.de>
2764
2765 PR tree-optimization/56273
2766 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2767 first VRP run.
2768
7bcc6e75
JJ
27692013-02-21 Jakub Jelinek <jakub@redhat.com>
2770
a0ad148f
JJ
2771 PR bootstrap/56258
2772 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2773 instead of @itemx.
2774
7bcc6e75
JJ
2775 PR inline-asm/56405
2776 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2777 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2778
a0a7b611
JH
27792013-02-20 Jan Hubicka <jh@suse.cz>
2780
2781 PR tree-optimization/56265
88b97037
UB
2782 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2783 when target is referenced for first time.
a0a7b611 2784
c0e50f72
RB
27852013-02-20 Richard Biener <rguenther@suse.de>
2786
2787 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2788 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2789 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2790 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2791 not return anything.
2792 (rename_ssa_copies): Do not remove unused locals.
2793 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 2794 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
2795 * passes.c (execute_function_todo): Do not schedule unused locals
2796 removal if cleanup_tree_cfg did something.
2797 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2798 about the number of removed locals.
2799
a52ca739
RB
28002013-02-20 Richard Biener <rguenther@suse.de>
2801
2802 PR tree-optimization/56398
88b97037 2803 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 2804
ec9c9d1b
MJ
28052013-02-20 Martin Jambor <mjambor@suse.cz>
2806
2807 PR tree-optimization/55334
2808 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2809 restricted pointers to arrays.
2810
e91c8ed6 28112013-02-20 Richard Biener <rguenther@suse.de>
88b97037 2812 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
2813
2814 PR tree-optimization/56396
2815 * tree-ssa-ccp.c (n_const_val): New static variable.
2816 (get_value): Return NULL for SSA names we don't have a lattice
2817 entry for.
2818 (ccp_initialize): Initialize n_const_val.
2819 * tree-ssa-copy.c (n_copy_of): New static variable.
2820 (init_copy_prop): Initialize n_copy_of.
2821 (get_value): Return NULL_TREE for SSA names we don't have a
2822 lattice entry for.
2823
3d916479
MJ
28242013-02-20 Martin Jambor <mjambor@suse.cz>
2825
2826 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2827
71a86758
RB
28282013-02-20 Richard Biener <rguenther@suse.de>
2829
2830 * genpreds.c (write_lookup_constraint): Do not compare first
2831 letter of the constraint again.
2832
79836a12
RB
28332013-02-20 Richard Biener <rguenther@suse.de>
2834
2835 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2836 and ceil_log2.
2837 (get_use_iv_cost): Terminate hashtable walk when coming across
2838 an empty entry.
2839
bbe4fb2c
IZ
28402013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2841
2842 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2843 reassociation for avx2 targets.
2844
a72d8780 28452012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 2846
c77f83d5
EI
2847 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2848 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 2849 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
2850 version and TARGET_PATTERN_COMPARE check
2851 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 2852
a72d8780 28532012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 2854
a72d8780 2855 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
2856 function before branching.
2857
242387fa
AB
28582012-02-19 Andrey Belevantsev <abel@ispras.ru>
2859
2860 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2861 DUMP_INSN_RTX_UID.
2862 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2863
b4979ab9
AB
28642012-02-19 Andrey Belevantsev <abel@ispras.ru>
2865
2866 PR middle-end/55889
b4979ab9
AB
2867 * sel-sched.c: Include ira.h.
2868 (implicit_clobber_conflict_p): New function.
2869 (moveup_expr): Use it.
88b97037 2870 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 2871
24d63016
RB
28722013-02-19 Richard Biener <rguenther@suse.de>
2873
2874 PR tree-optimization/56384
2875 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2876 (vn_hash_type): Split out from ...
2877 (vn_hash_constant_with_type): ... here.
2878 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2879 (vn_phi_eq): Compare types from vn_phi_s structure.
2880 (vn_phi_lookup): Populate vn_phi_s type.
2881 (vn_phi_insert): Likewise.
2882
a475fd3d
JJ
28832013-02-19 Jakub Jelinek <jakub@redhat.com>
2884
47cc28f5
JJ
2885 PR tree-optimization/56350
2886 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2887 if haven't found reduction or nested cycle operand, rather than
2888 asserting we must find it.
2889
a475fd3d
JJ
2890 PR tree-optimization/56381
2891 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2892 to fold_build3.
2893
28942013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2895 Jakub Jelinek <jakub@redhat.com>
2896
2897 PR target/52555
2898 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2899 (swap_optab_enable): Same.
2900 (init_all_optabs): Use argument instead of global.
88b97037 2901 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
2902 * expr.h (init_all_optabs): Add argument to prototype.
2903 (TREE_OPTIMIZATION_OPTABS): New.
2904 (save_optabs_if_changed): Protoize.
2905 * optabs.h: Declare this_fn_optabs.
2906 * optabs.c (save_optabs_if_changed): New.
2907 Declare this_fn_optabs.
2908 (init_optabs): Add argument to init_all_optabs() call.
2909 * function.c (invoke_set_current_function_hook): Handle per
2910 function optabs.
2911 * function.h (struct function): New field optabs.
2912 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2913 optimization_current_node has changed.
2914 * target-globals.h (save_target_globals_default_opts): Protoize.
2915 * target-globals.c (save_target_globals_default_opts): New.
2916
3f587ca3
JDA
29172013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2918
2919 PR target/56347
2920 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2921 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
2922
2923 PR target/56214
2924 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
2925 and HImode, require all displacements to be an integer multiple of
2926 their mode size.
ceaca33e
JDA
2927 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2928 only allow QImode and HImode when reload is in progress and strict is
2929 true. Likewise for symbolic addresses. Use base14_operand to check
2930 displacements in REG+BASE addresses.
2931
fe0b4796
RB
29322013-02-18 Richard Biener <rguenther@suse.de>
2933
2934 PR tree-optimization/56366
2935 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2936 handle sign-conversion of outer-loop initial induction value.
2937
6aaf596b
RB
29382013-02-18 Richard Biener <rguenther@suse.de>
2939
73db8ff1 2940 PR middle-end/56349
6aaf596b
RB
2941 * cfghooks.c (merge_blocks): If we merge a latch into another
2942 block adjust references to it.
2943 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2944 (verify_loop_structure): Verify that a recorded latch is in fact
2945 a latch.
2946
5e97dfb6
RB
29472013-02-18 Richard Biener <rguenther@suse.de>
2948
2949 PR tree-optimization/56321
2950 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2951 order SSA name release and virtual operand unlinking.
2952
825527e8
EI
29532013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2954
2955 * config/microblaze/microblaze.md (save_stack_block): Define.
2956 (restore_stack_block): Likewise.
2957
debd11d9
EI
29582013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2959
2960 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2961 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2962 * config/microblaze/microblaze.c (microblaze_option_override):
2963 Bail out early for PIC modes when target does not support PIC.
2964
8ec77be0
EI
29652013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2966
88b97037 2967 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
2968 Replace with a microblaze version.
2969 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 2970 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
2971 microblaze.
2972
b41288b3
JJ
29732013-02-16 Jakub Jelinek <jakub@redhat.com>
2974 Dodji Seketeli <dodji@redhat.com>
2975
2976 PR asan/56330
88b97037 2977 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
2978 (instrument_mem_region_access): Do not forget to always put
2979 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2980 0) statement, even for cases where either 'base' or 'base + len'
2981 are not instrumented -- because they have been previously
2982 instrumented. Simplify the logic by putting all the statements
2983 instrument 'base + len' inside a sequence, and then insert that
2984 sequence right before the current insertion point. Then, to
2985 instrument 'base + len', just get an iterator on that statement.
2986 And do not forget to update the pointer to iterator the function
2987 received as argument.
2988
47918951
VM
29892013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2990
2991 PR rtl-optimization/56348
2992 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2993
3fb7c699
SB
29942013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2995
2996 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2997 (clean_graph_dump_file): Pass base to start_graph_dump.
2998
576fe41a
RH
29992013-02-14 Richard Henderson <rth@redhat.com>
3000
3001 PR target/55941
3002 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3003
bb3accfa
SB
30042013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3005
3006 * collect2-aix.h: Define F_LOADONLY.
3007
03143140
RB
30082013-02-14 Richard Biener <rguenther@suse.de>
3009
3010 PR lto/50494
3011 * varasm.c (output_constant_def_1): Get the decl representing
3012 the constant as argument.
3013 (output_constant_def): Wrap output_constant_def_1.
3014 (make_decl_rtl): Use output_constant_def_1 with the decl
3015 representing the constant.
3016 (build_constant_desc): Optionally re-use a decl already
3017 representing the constant.
3018 (tree_output_constant_def): Adjust.
3019
8fb06726
DS
30202013-02-14 Dodji Seketeli <dodji@redhat.com>
3021
3022 Fix an asan crash
3023 * asan.c (instrument_builtin_call): Really put the length of the
3024 second source argument into src1_len.
3025
c4bfe8bf
JJ
30262013-02-13 Jakub Jelinek <jakub@redhat.com>
3027
3028 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3029 argument. If it is false, don't create edge from then_bb to
3030 fallthru_bb.
3031 (insert_if_then_before_iter): Pass true to it.
3032 (build_check_stmt): Pass false to it.
3033 (transform_statements): Flush hash table only on extended basic
3034 block boundaries, rather than at the beginning of every bb.
3035 Don't flush hash table on nonfreeing_call_p calls.
3036 * tree-flow.h (nonfreeing_call_p): New prototype.
3037 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3038
7afe2801
DM
30392013-02-13 David S. Miller <davem@davemloft.net>
3040
3041 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3042
70cc3288
VM
30432013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3044
3045 PR target/56184
3046 * ira.c (max_regno_before_ira): Move from ...
3047 (ira): ... here.
3048 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3049 vec_safe_length.
3050
6422242b
JJ
30512013-02-13 Jakub Jelinek <jakub@redhat.com>
3052
3053 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3054
976a81ee
RB
30552013-02-13 Richard Biener <rguenther@suse.de>
3056
3057 PR lto/56295
3058 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3059 globals in MEM_REFs.
3060
c1874a87
RB
30612013-02-13 Richard Biener <rguenther@suse.de>
3062
3063 * loop-init.c (loop_optimizer_init): Clear loop state when
3064 re-initializing preserved loops.
3065 * loop-unswitch.c (unswitch_single_loop): Return whether
3066 we unswitched the loop. Do not verify loop state here.
88b97037 3067 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 3068
b4ab7d34
KS
30692013-02-13 Kostya Serebryany <kcc@google.com>
3070
88b97037
UB
3071 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3072 on x86_64 linux.
b4ab7d34
KS
3073 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3074
bdcbe80c
DS
30752013-02-12 Dodji Seketeli <dodji@redhat.com>
3076
3077 Avoid instrumenting duplicated memory access in the same basic block
3078 * Makefile.in (asan.o): Add new dependency on hash-table.h
3079 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3080 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3081 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3082 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3083 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3084 (get_mem_ref_of_assignment): New functions.
3085 (get_mem_refs_of_builtin_call): Extract from
3086 instrument_builtin_call and tweak a little bit to make it fit with
3087 the new signature.
3088 (instrument_builtin_call): Use the new
3089 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3090 of is_gimple_builtin_call.
3091 (instrument_derefs, instrument_mem_region_access): Insert the
3092 instrumented memory reference into the hash table.
3093 (maybe_instrument_assignment): Renamed instrument_assignment into
3094 this, and change it to advance the iterator when instrumentation
3095 actually happened and return true in that case. This makes it
3096 homogeneous with maybe_instrument_assignment, and thus give a
3097 chance to callers to be more 'regular'.
3098 (transform_statements): Clear the memory reference hash table
3099 whenever we enter a new BB, when we cross a function call, or when
3100 we are done transforming statements. Use
3101 maybe_instrument_assignment instead of instrumentation. No more
3102 need to special case maybe_instrument_assignment and advance the
3103 iterator after calling it; it's now handled just like
3104 maybe_instrument_call. Update comment.
3105
4861a1f7
RB
31062013-02-13 Richard Biener <rguenther@suse.de>
3107
3108 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3109 Fix loop discovery code.
3110
1c86bd80
VM
31112013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3112
3113 PR inline-asm/56148
3114 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 3115 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
3116 the operand is not reloaded. Prefer to reload conflicting operand
3117 if earlyclobber and matching operands are the same.
3118
7cbda518
RB
31192013-02-12 Richard Biener <rguenther@suse.de>
3120
3121 PR lto/56297
3122 * lto-streamer-out.c (write_symbol): Do not output symbols
3123 for hard register variables.
3124
e68a4ef6
GJL
31252013-02-12 Georg-Johann Lay <avr@gjlay.de>
3126
3127 PR target/54222
3128 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3129 (umulsidi3_insn, mulsidi3_insn): New insns.
3130
a72d8780 31312013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
3132
3133 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3134 (struct tune_params): Add vec_costs field.
3135 * config/arm/arm.c (arm_builtin_vectorization_cost)
3136 (arm_add_stmt_cost): New functions.
3137 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3138 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3139 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3140 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3141 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3142 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3143 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3144
43320568
RB
31452013-02-12 Richard Biener <rguenther@suse.de>
3146
3147 PR lto/56295
3148 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3149 decls again if possible.
3150
a011aa39
RB
31512013-02-12 Richard Biener <rguenther@suse.de>
3152
3153 PR middle-end/56288
3154 * tree-ssa.c (verify_ssa_name): Fix check, move
3155 SSA_NAME_IN_FREE_LIST check up.
3156
6da26889
JJ
31572013-02-12 Jakub Jelinek <jakub@redhat.com>
3158 Steven Bosscher <steven@gcc.gnu.org>
3159
3160 PR rtl-optimization/56151
3161 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3162 equal to op0 or op1, and last_insn pattern is CODE operation
3163 with MEM dest and one of the operands matches that MEM.
3164
f80e0faf
ST
31652013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3166
3167 * doc/extend.texi: Document Function Multiversioning and "default"
3168 parameter string to target attribute.
3169 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3170 target attribute parameter is "default".
3171 (ix86_compare_version_priority): Remove checks for target attribute.
3172 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3173 Remove check for target attribute equal to NULL. Add assert.
3174 (ix86_generate_version_dispatcher_body): Change error to sorry.
3175
6c59ffd1
IS
31762013-02-11 Iain Sandoe <iain@codesourcery.com>
3177 Jack Howarth <howarth@bromo.med.uc.edu>
3178 Patrick Marlier <patrick.marlier@gmail.com>
3179
3180 PR libitm/55693
3181 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3182 define ENDFILE_SPEC as TM_DESTRUCTOR.
3183 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3184
a72d8780 31852013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
3186 Jack Howarth <howarth@bromo.med.uc.edu>
3187 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR sanitizer/55617
3190 * config/darwin.c (cdtor_record): Rename ctor_record.
3191 (sort_cdtor_records): Rename sort_ctor_records.
3192 (finalize_dtors): New routine to sort destructors by
3193 priority before use in assemble_integer.
3194 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3195
b63fe007
UB
31962013-02-11 Uros Bizjak <ubizjak@gmail.com>
3197
3198 PR rtl-optimization/56275
3199 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3200 offset is non-negative and less than cmode size before
3201 calling simplify_subreg.
3202
8e89b5b5
RB
32032013-02-11 Richard Biener <rguenther@suse.de>
3204
3205 PR tree-optimization/56264
3206 * cfgloop.h (fix_loop_structure): Adjust prototype.
3207 * loop-init.c (fix_loop_structure): Return the number of
3208 newly discovered loops.
3209 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3210 are discovered, do a full loop-closed SSA rewrite.
3211
b4a4b56d
RB
32122013-02-11 Richard Biener <rguenther@suse.de>
3213
3214 PR tree-optimization/56273
3215 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3216 first VRP run.
3217 (check_array_ref): Fix missing newline in dumps.
3218 (search_for_addr_array): Likewise.
3219
0c885229
DE
32202013-02-09 David Edelsohn <dje.gcc@gmail.com>
3221
3222 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3223
59ac9a55
JJ
32242013-02-09 Jakub Jelinek <jakub@redhat.com>
3225
3226 PR target/56256
3227 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3228
25bb0bb5
VM
32292013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3230
3231 PR rtl-optimization/56246
0c885229 3232 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
3233 reload pseudo.
3234 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3235 constraints are satisfied.
3236
a698cc03
JL
32372013-02-08 Jeff Law <law@redhat.com>
3238
3239 PR debug/53948
3240 * emit-rtl.c (reg_is_parm_p): New function.
3241 * regs.h (reg_is_parm_p): New prototype.
3242 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3243 callee-clobbered registers.
3244
e1122ddd
MM
32452013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3246
3247 PR target/56043
3248 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3249 If there is no implicit builtin declaration, just return NULL.
3250
19c5f6e6
UB
32512013-02-08 Uros Bizjak <ubizjak@gmail.com>
3252
3253 * config/i386/sse.md (FMAMODEM): New mode iterator.
3254 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3255 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3256
2480f2ca 32572013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 3258
2480f2ca
UB
3259 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3260 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3261 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3262
32632013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3264
3265 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3266 (microblaze*-*-elf): Likewise.
3267 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3268 LINK_SPEC.
3269 * config/microblaze/microblaze-c.c: Add builtin defines for
3270 _LITTLE_ENDIAN and _BIG_ENDIAN.
3271 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3272 add to TARGET_DEFAULT flags.
76ef61fb 3273 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
3274 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3275 * config/microblaze/microblaze.md: Update extendsidi2 and
3276 movdi_internal instructions to use low-order / high-order reg
3277 print_operands.
3278 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3279 options and inversemask / mask of LITTLE_ENDIAN.
3280 * config/microblaze/t-microblaze: Expand multilib options to
3281 include mlittle-endian (le) and update exceptions patterns.
3282
600a5961
JJ
32832013-02-08 Jakub Jelinek <jakub@redhat.com>
3284
5df81313
JJ
3285 PR rtl-optimization/56195
3286 * lra-constraints.c (get_reload_reg): Don't reuse regs
3287 if they have smaller mode than requested, if they have
3288 wider mode than requested, try to return a SUBREG.
3289
600a5961
JJ
3290 PR tree-optimization/56250
3291 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3292 if type is unsigned and code isn't MULT_EXPR.
3293
ff544649
GJL
32942013-02-08 Georg-Johann Lay <avr@gjlay.de>
3295
3296 PR tree-optimization/56064
3297 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3298 bits according to mode.
3299 * fixed-value.h (fixed_from_double_int)
3300 (const_fixed_from_double_int): Adjust comments.
3301
e45cde98
RB
33022013-02-08 Richard Biener <rguenther@suse.de>
3303
3304 PR lto/56231
3305 * lto-streamer.h (struct data_in): Remove current_file, current_line
3306 and current_col members.
3307 * lto-streamer-out.c (lto_output_location): Stream changed bits
3308 en-block for efficiency.
3309 * lto-streamer-in.c (clear_line_info): Remove.
3310 (lto_input_location): Cache current file, line and column
3311 globally via local statics. Read changed bits en-block.
3312 (input_function): Do not call clear_line_info.
3313 (lto_read_body): Likewise.
3314 (lto_input_toplevel_asms): Likewise.
3315
c1ca73d8
MM
33162013-02-08 Michael Matz <matz@suse.de>
3317
3318 PR tree-optimization/52448
3319 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3320 (nt_call_phase): New static.
3321 (add_or_mark_expr): Only mark accesses with newer phase than any
3322 call seen.
3323 (nonfreeing_call_p): New.
3324 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3325 (nt_fini_block): Keep blocks marked as visited.
3326 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3327
57548aa2
RB
33282013-02-08 Richard Biener <rguenther@suse.de>
3329
3330 * ira.c (ira): Free broken dominator information.
3331
8e10366f
UB
33322013-02-08 Uros Bizjak <ubizjak@gmail.com>
3333
3334 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3335
f64fb0fa
MP
33362013-02-08 Marek Polacek <polacek@redhat.com>
3337
8e10366f 3338 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 3339
0375167b
RB
33402013-02-08 Richard Biener <rguenther@suse.de>
3341
3342 PR middle-end/56181
3343 * cfgloop.h (flow_loops_find): Adjust.
3344 (bb_loop_header_p): Declare.
3345 * cfgloop.c (bb_loop_header_p): New function split out from ...
3346 (flow_loops_find): ... here. Adjust function signature,
3347 support incremental loop structure update.
3348 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3349 * cfgloopmanip.c (fix_loop_structure): Move ...
3350 * loop-init.c (fix_loop_structure): ... here.
3351 (apply_loop_flags): Split out from ...
3352 (loop_optimizer_init): ... here.
3353 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3354 in incremental mode, only remove dead loops here.
3355
85d768f3
GJL
33562013-02-08 Georg-Johann Lay <avr@gjlay.de>
3357
3358 PR target/54222
3359 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3360 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3361 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3362 (*round<mode>3.libgcc): New insns for fixed-modes.
3363 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3364 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3365 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3366 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3367 implementations. Define to __builtin_avr_absFX,
3368 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3369 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3370 __builtin_avr_countlsFX, respectively.
3371 * config/avr/avr-c.c (target.h): Include it.
3372 (enum avr_builtin_id): New enum.
3373 (avr_resolve_overloaded_builtin): New static function.
3374 (avr_register_target_pragmas): Use it to set
3375 targetm.resolve_overloaded_builtin.
3376 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3377 tree nodes used by DEF_BUILTIN.
3378 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3379 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3380 <AVR_BUILTIN_xxBITS>: Same.
3381
661bc682
RB
33822013-02-08 Richard Biener <rguenther@suse.de>
3383
3384 * cfgloop.c (verify_loop_structure): Properly handle
3385 a loop exiting to another loop header.
3386 * ira-int.h (ira_loops): Remove.
3387 * ira.c (ira_loops): Remove.
3388 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3389 (do_reload): Use loop_optimizer_finalize.
3390 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3391 number_of_loops to access the loop tree.
3392 (more_one_region_p): Likewise.
3393 (finish_loop_tree_nodes): Likewise.
3394 (rebuild_regno_allocno_maps): Likewise.
3395 (mark_loops_for_removal): Likewise.
3396 (mark_all_loops_for_removal): Likewise.
3397 (remove_unnecessary_regions): Likewise.
3398 (ira_build): Likewise.
3399 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3400
0d5049b2
RB
34012013-02-08 Richard Biener <rguenther@suse.de>
3402
3403 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3404 * ipa-pure-const.c (analyze_function): Avoid calling
3405 mark_irreducible_loops twice.
8e10366f 3406 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 3407
499f32e8
DM
34082013-02-07 David S. Miller <davem@davemloft.net>
3409
3410 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3411 on 'reg'.
3412 * var-tracking.c (vt_add_function_parameter): Test the presence of
3413 HAVE_window_save properly and do not remap argument registers when
3414 we have a leaf function.
3415
6edc3e32
UB
34162013-02-07 Uros Bizjak <ubizjak@gmail.com>
3417
3418 PR bootstrap/56227
3419 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3420 instead of "ll".
3421 * config/i386/i386.c (ix86_print_operand): Ditto.
3422
5306401f
VM
34232013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3424
6edc3e32 3425 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 3426
027ece11
VM
34272013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3428
3429 PR rtl-optimization/56225
3430 * lra-constraints.c (process_alt_operands): Check that reload hard
3431 reg can hold value for strict_low_part.
3432
f980dfdb
JJ
34332013-02-07 Jakub Jelinek <jakub@redhat.com>
3434
3435 PR debug/56154
3436 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3437 dwarf2out_end_function.
3438 (in_first_function_p, maybe_at_text_label_p,
3439 first_loclabel_num_not_at_text_label): New variables.
3440 (dwarf2out_var_location): In the first function find out
6edc3e32 3441 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
3442 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3443 functions.
3444
73dd3123
EB
34452013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3446
3447 PR rtl-optimization/56178
3448 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3449 SUBREG of a register. Tidy up related block of code.
3450 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3451 note if the source is a register or a SUBREG of a register.
3452
e3936f47
JJ
34532013-02-07 Jakub Jelinek <jakub@redhat.com>
3454
3455 PR target/56228
3456 * config/rs6000/rs6000.md (ptrm): New mode attr.
3457 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3458 call_value_indirect_aix<pttrsize>,
3459 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3460 m in constraints.
3461
d96d674b
MH
34622013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3463
3464 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3465 if -bnortl. Convert to strcmp and strncmp.
3466
921f2dee
AM
34672013-02-07 Alan Modra <amodra@gmail.com>
3468
3469 PR target/54009
3470 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3471 addresses won't wrap when offsetting.
3472 (rs6000_secondary_reload): Provide secondary reloads needed for
3473 wrapping LO_SUM addresses.
3474
d09c7dba
TS
34752013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3476
3477 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3478 MACH, just __MACH__.
3479
a44bbd48
RB
34802013-02-06 Richard Biener <rguenther@suse.de>
3481
3482 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3483 instead of calling fix_loop_structure.
3484
6d840d99
JJ
34852013-02-06 Jakub Jelinek <jakub@redhat.com>
3486
3487 PR middle-end/56217
3488 * omp-low.c (use_pointer_for_field): Return false if
3489 lower_send_shared_vars doesn't generate any copy-out code.
3490
0f33baa9
TV
34912013-02-06 Tom de Vries <tom@codesourcery.com>
3492
3493 PR rtl-optimization/56131
3494 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3495 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3496 of the label is NULL. Add comment.
3497
11f1e3ab
JJ
34982013-02-05 Jakub Jelinek <jakub@redhat.com>
3499
31502f9f
JJ
3500 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3501
a74db9bd
JJ
3502 PR sanitizer/55374
3503 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3504 (STATIC_LIBTSAN_LIBS): Likewise.
3505 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3506 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3507 is defined, don't add anything else beyond that.
3508 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3509 (LINK_COMMAND_SPEC): Use them.
3510
11f1e3ab
JJ
3511 PR tree-optimization/56205
3512 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3513 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3514 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3515
14ac6aa2
RB
35162013-02-05 Richard Biener <rguenther@suse.de>
3517
3518 PR tree-optimization/53342
3519 PR tree-optimization/53185
3520 * tree-vectorizer.h (vect_check_strided_load): Remove.
3521 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3522 not disallow peeling for vectorized strided loads.
3523 (vect_check_strided_load): Make static and simplify.
3524 (vect_analyze_data_refs): Adjust.
3525 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3526 correctly when vectorizing strided loads.
3527
6f22445a
RB
35282013-02-05 Richard Biener <rguenther@suse.de>
3529
3530 * doc/install.texi: Refer to ISL, not PPL.
3531
39f9719e
JH
35322013-02-05 Jan Hubicka <jh@suse.cz>
3533
ec4224ac
JH
3534 PR tree-optimization/55789
3535 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3536
35372013-02-05 Jan Hubicka <jh@suse.cz>
3538
3539 PR tree-optimization/55789
39f9719e
JH
3540 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3541 the dead call anyway.
3542
956d3b33
EB
35432013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3544
3545 PR sanitizer/55374
3546 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3547
35482013-02-04 Alexander Potapenko <glider@google.com>
3549 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
3550 Jakub Jelinek <jakub@redhat.com>
3551
3552 PR sanitizer/55617
3553 * config/darwin.c (sort_ctor_records): Stabilized qsort
3554 on constructor priority by using original position.
3555 (finalize_ctors): New routine to sort constructors by
3556 priority before use in assemble_integer.
3557 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3558
7ac3af38
JJ
35592013-02-04 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR libstdc++/54314
3562 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3563 about visibility on artificial decls.
3564 * config/sol2.c (solaris_assemble_visibility): Likewise.
3565
152689dc
KT
35662013-02-04 Kai Tietz <ktietz@redhat.com>
3567
3568 PR target/56186
3569 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3570 argument and improve checking of return-argument types for 16-byte
3571 modes.
3572 (ix86_function_value_1): Add additional valtype argument on call
3573 of function_value_64.
3574 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3575 handling infunction_value_64 function.
3576
2b5987b5
MGD
35772013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3578
7ac3af38 3579 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 3580
14597080
RB
35812013-02-04 Richard Biener <rguenther@suse.de>
3582
3583 PR tree-optimization/56188
3584 * tree-ssa-structalias.c (label_visit): Consider case with
3585 initially non-empty points-to set.
3586 (perform_var_substitution): Dump node mapping and clean up.
3587
ed73881e
RG
35882013-02-04 Richard Guenther <rguenther@suse.de>
3589
3590 PR lto/56168
3591 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3592 node prevail as last resort.
3593 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 3594 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 3595
139a0707
RB
35962013-02-04 Richard Biener <rguenther@suse.de>
3597
3598 PR tree-optimization/56113
3599 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3600 Merge into ...
3601 (equiv_class_lookup_or_add): ... this.
3602 (label_visit): Adjust and fix error in previous patch.
3603 (perform_var_substitution): Adjust.
3604
50fe8924
OE
36052013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3606
3607 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3608 * config/sh/sh4-300.md: Likewise.
3609 * config/sh/sh4a.md: Likewise.
3610 * config/sh/constraints.md: Likewise.
3611 * config/sh/sh.md: Likewise.
3612 * config/sh/netbsd-elf.h: Likewise.
3613 * config/sh/predicates.md: Likewise.
3614 * config/sh/sh-protos.h: Likewise.
3615 * config/sh/ushmedia.h: Likewise.
3616 * config/sh/linux.h: Likewise.
3617 * config/sh/sh.c: Likewise.
3618 * config/sh/superh.h: Likewise.
3619 * config/sh/elf.h: Likewise.
3620 * config/sh/sh4.md: Likewise.
3621 * config/sh/sh.h: Likewise.
3622
1a04ac2b
JDA
36232013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3624
3625 * config/pa/constraints.md: Adjust unused letters. Change "T"
3626 constraint to match_test floating_point_store_memory_operand().
3627 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3628 (base14_operand): New.
3629 (floating_point_store_memory_operand): New.
3630 (integer_store_memory_operand): Revise to use base14_operand and
3631 reg_plus_base_memory_operand.
3632 (move_dest_operand): Allow symbolic_memory_operands.
3633 (symbolic_memory_operand): Check for LO_SOM.
3634 (symbolic_operand): Change default case to break.
3635 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3636 CONST_DOUBLE values to be reloaded by putting them into memory when
3637 the destination is a floating point register.
3638 (movdf): Remove code to handle CONST_DOUBLE.
3639 (movsf): Likewise.
3640 (reload_indf_r1): New.
3641 (reload_insf_r1): New.
3642 Consistently use "Q" and "T" constraints with integer and floating
3643 point move instructions, respectively.
3644 (movdi): Remove FAIL.
3645 Change predicate for source operand unamed DImode move from
3646 general_operand to move_src_operand.
3647 (umulsidi3): Change predicate for destination operand to
3648 register_operand.
3649 Likewise for similar unamed patterns.
3650 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3651 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3652 (hppa_legitimize_address): Simplify mask calculation.
3653 (pa_emit_move_sequence): Revised handling of secondary reloads from
3654 REG+D addresses for floating point loads and stores. Directly handle
3655 loading CONST0_RTX (mode) to a floating point register.
3656 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3657 to floating point registers. Don't restrict secondary reloads to
3658 floating point registers to integer modes. Revise some comments and
3659 cleanup some code.
3660 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3661 (pa_legitimate_address_p): New.
3662 (pa_legitimize_reload_address): New.
3663 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3664 (STRICT_REG_OK_FOR_BASE_P): New.
3665 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3666 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3667
3bf65591
DE
36682013-02-03 David Edelsohn <dje.gcc@gmail.com>
3669 Andrew Dixie <andrewd@gentrack.com>
3670
3671 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3672 flag set.
3673
c0a8a3e6
RS
36742013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3675
3676 * expmed.c (extract_bit_field_1): Pass the full width of the
3677 structure to get_best_reg_extraction_insn.
3678
99113dff
DE
36792013-02-01 David Edelsohn <dje.gcc@gmail.com>
3680
3681 PR target/54601
3682 * configure.ac (use_cxa_atexit): Add AIX.
3683 * configure: Regenerate.
3684
3685 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3686
ddd84654
JJ
36872013-02-01 Jakub Jelinek <jakub@redhat.com>
3688
3689 PR debug/54793
3690 * final.c (need_profile_function): New variable.
3691 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3692 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3693 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3694 notes, targetm.asm_out.function_prologue doesn't emit anything,
3695 HAVE_prologue and profiler should be emitted before prologue,
3696 set need_profile_function instead of emitting it.
3697 (final_scan_insn): If need_profile_function, emit
3698 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3699 NOTE_INSN_FUNCTION_BEG note.
3700
37012013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
3702
3703 * config/rs6000/rs6000.md (smulditi3): New.
3704 (umulditi3): New.
3705
ff2a9d88
RH
3706 * config/alpha/alpha.md (umulditi3): New.
3707
14d52b90
DE
37082013-02-01 David Edelsohn <dje.gcc@gmail.com>
3709
3710 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3711 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3712
8c7ca45c
RB
37132013-02-01 Richard Biener <rguenther@suse.de>
3714
3715 PR tree-optimization/56113
3716 * tree-ssa-structalias.c (label_visit): Reduce work for
3717 single-predecessor nodes.
3718
9f419393
EB
37192013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3720
3721 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3722 range isn't testing for zero.
3723
c5f4be84
SB
37242013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3725
3726 PR middle-end/56113
3727 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3728
dbdbd982
NC
37292013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3730 Nick Clifton <nickc@redhat.com>
3731
3732 * config/v850/constraints.md (Q): Define as a memory constraint.
3733 * config/v850/predicates.md (label_ref_operand): New predicate.
3734 (e3v5_shift_operand): New predicate.
3735 (ior_operator): New predicate.
3736 * config/v850/t-v850: Add e3v5 multilib.
3737 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3738 (v850_gen_movdi): Prototype.
3739 * config/v850/v850.c: Add support for e3v5 architecture.
3740 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3741 TARGET_V850E_UP.
3742 (construct_save_jarl): Add e3v5 long JARL support.
3743 (v850_adjust_insn_length): New function. Adjust length of call
3744 insns when using e3v5 instructions.
3745 (v850_gen_movdi): New function: Generate instructions to move a
3746 DImode value.
3747 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3748 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3749 (TARGET_USE_FPU): Enable for e3v5.
3750 (CONST_OK_FOR_W): New macro.
3751 (ADJUST_INSN_LENGTH): Define.
3752 * config/v850/v850.md (UNSPEC_LOOP): Define.
3753 (attr cpu): Add v850e3v5.
3754 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3755 (movdi): New pattern.
3756 (movdi_internal): New pattern.
3757 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3758 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3759 (cstoresf4): Likewise.
3760 (cstoredf4): Likewise.
3761 (insv): New pattern.
3762 (rotlso3_a): New pattern.
3763 (rotlsi3_b): New pattern
3764 (rotlsi3_v850e3v5): New pattern.
3765 (doloop_begin): New pattern.
3766 (fix_loop_counter): New pattern.
3767 (doloop_end): New pattern.
3768 (branch_normal): Add e3v5 long branch support.
3769 (branch_invert): Likewise.
3770 (branch_z_normal): Likewise.
3771 (branch_z_invert): Likewise.
3772 (branch_nz_normal): Likewise.
3773 (branch_nz_invert): Likewise.
3774 (call_internal_short): Add e3v5 register-indirect JARL support.
3775 (call_internal_long): Likewise.
3776 (call_value_internal_short): Likewise.
3777 (call_value_internal_long): Likewise.
3778 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3779 (mloop): New option.
3780 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 3781 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 3782
73861a41
PK
37832013-01-31 Paul Koning <ni1d@arrl.net>
3784
3785 PR debug/55059
3786 PR debug/54508
3787 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3788 children if parent is a class.
3789 (prune_unused_types_prune): Don't add DW_AT_declaration.
3790
e44978dc
RB
37912013-01-31 Richard Biener <rguenther@suse.de>
3792
3793 PR tree-optimization/56157
3794 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3795 match up operand with SLP child.
3796
90b10dec
JM
37972013-01-31 Jason Merrill <jason@redhat.com>
3798
04d2dadd 3799 PR debug/54410
90b10dec
JM
3800 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3801 parameters the first time.
3802 (gen_scheduled_generic_parms_dies): Check completeness here.
3803
6e616110
RB
38042013-01-31 Richard Biener <rguenther@suse.de>
3805
3806 PR middle-end/53073
3807 * common.opt (faggressive-loop-optimizations): New flag,
3808 enabled by default.
3809 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3810 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3811 infer_loop_bounds_from_undefined by it.
3812
636f59cf
RB
38132013-01-31 Richard Biener <rguenther@suse.de>
3814
3815 PR tree-optimization/56150
3816 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3817 visit virtual operands.
3818 (find_uses_to_rename_bb): Likewise.
3819
38202013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
3821
3822 PR tree-optimization/56150
3823 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3824 mixed store non-store stmts.
3825
32887460
JJ
38262013-01-30 Jakub Jelinek <jakub@redhat.com>
3827
e60e09a0
JJ
3828 PR sanitizer/55374
3829 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3830 LIBASAN_EARLY_SPEC is defined.
3831 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3832 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3833 before %o.
3834 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3835
32887460
JJ
3836 PR c++/55742
3837 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3838 invalid args instead of ICEing on it.
3839 (ix86_valid_target_attribute_tree): Return error_mark_node if
3840 ix86_valid_target_attribute_inner_p failed.
3841 (ix86_valid_target_attribute_p): Return false only if
3842 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3843 target("default") attribute.
3844 (sorted_attr_string): Change argument from const char * to tree,
3845 merge in all target attribute arguments rather than just one.
3846 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3847 instead of free. Avoid using strcat.
3848 (ix86_mangle_function_version_assembler_name): Mangle
3849 target("default") as if no target attribute is present. Adjust
3850 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3851 instead of xmalloc and XDELETEVEC instead of free.
3852 (ix86_function_versions): Don't return true if one of the decls
3853 doesn't have target attribute. If they don't and one of the decls
3854 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3855 sorted_attr_string caller. Use XDELETEVEC instead of free.
3856 (ix86_supports_function_versions): Remove.
3857 (make_name): Fix up formatting.
3858 (make_dispatcher_decl): Remove resolver_name and its initialization.
3859 Avoid leaking memory.
3860 (is_function_default_version): Return true if there is
3861 target("default") attribute rather than no target attribute at all.
3862 (make_resolver_func): Avoid leaking memory.
3863 (ix86_generate_version_dispatcher_body): Likewise.
3864 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3865 * target.def (supports_function_versions): Remove.
3866 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3867 * doc/tm.texi: Regenerated.
3868
73cca0cc
VM
38692013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3870
3871 PR rtl-optimization/56144
3872 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3873 for values with side effects.
3874
11452e7b
RB
38752013-01-30 Richard Biener <rguenther@suse.de>
3876
3877 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3878 (sparseset_pop): Likewise.
3879 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3880 to be able to use quick_push in the worker loop.
3881
01cb1ef5
MP
38822013-01-30 Marek Polacek <polacek@redhat.com>
3883
3884 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3885
e892936e
RB
38862013-01-30 Richard Biener <rguenther@suse.de>
3887
3888 PR lto/56147
6edc3e32 3889 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 3890
cc06c01d
GJL
38912013-01-30 Georg-Johann Lay <avr@gjlay.de>
3892
3893 PR tree-optimization/56064
3894 * fixed-value.c (fixed_from_double_int): New function.
3895 * fixed-value.h (fixed_from_double_int): New prototype.
3896 (const_fixed_from_double_int): New static inline function.
3897 * fold-const.c (native_interpret_fixed): New static function.
3898 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3899 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3900 (native_encode_fixed): New static function.
3901 (native_encode_expr) <FIXED_CST>: Use it.
3902 (native_interpret_int): Move double_int worker code to...
3903 * double-int.c (double_int::from_buffer): ...this new static method.
3904 * double-int.h (double_int::from_buffer): Prototype it.
3905
d394a308
RB
39062013-01-30 Richard Biener <rguenther@suse.de>
3907
3908 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3909 New pointer-map and obstack.
3910 (init_alias_vars): Allocate pointer-map and obstack.
3911 (delete_points_to_sets): Free them.
3912 (find_what_var_points_to): Cache result.
3913 (find_what_p_points_to): Adjust for changed interface of
3914 find_what_var_points_to.
3915 (compute_points_to_sets): Likewise.
3916 (ipa_pta_execute): Likewise.
3917
20804d96
RO
39182013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3919
3920 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3921 * configure: Regenerate.
3922 * config.in: Regenerate.
3923 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3924 #nobits/#progbits if supported.
3925
a7ad88a2
OE
39262013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3927
3928 PR target/56121
3929 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3930 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3931 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3932
7af79f92
GY
39332013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3934
91bfca59
OE
3935 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3936 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 3937
753bcf7b
GY
39382013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3939
91bfca59
OE
3940 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3941 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 3942
8cbc2ea8
GY
39432013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3944
91bfca59
OE
3945 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3946 declaration.
3947 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3948 * config/arm/cortex-a7.md: New bypasses using
3949 arm_mac_accumulator_is_result.
8cbc2ea8 3950
697a3325
GY
39512013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3952
91bfca59 3953 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 3954 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
3955 (cortex_a7_fpfmad): New reservation.
3956 (cortex_a7_fpmacs): Use ffmas and update required units.
3957 (cortex_a7_fpmuld): Update required units and latency.
3958 (cortex_a7_fpmacd): Likewise.
3959 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3960 (cortex_a7_neon). Likewise.
3961 (bypass) Update participating units.
697a3325 3962
29637783
GY
39632013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3964
91bfca59
OE
3965 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3966 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3967 from fmac to ffma.
3968 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3969 (vfp_fmul): Use ffmad.
3970 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3971 (cortex_r4_fmacd): Use ffmad.
3972 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3973 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3974 (cortex_a9_fmacd): Use ffmad.
3975 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3976 (cortex_a8_vfp_macd): Use ffmad.
3977 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3978 (cortex_a5_fpmacd): Use ffmad.
3979 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3980 (cortex_a15_vfp_macd): Use ffmad.
3981 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 3982
2ee8a2d5
JM
39832013-01-29 Jason Merrill <jason@redhat.com>
3984
3985 PR libstdc++/54314
3986 * varasm.c (default_assemble_visibility): Don't warn about
3987 visibility on artificial decls.
3988
78d087bc
RB
39892013-01-29 Richard Biener <rguenther@suse.de>
3990
3991 PR tree-optimization/56113
3992 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3993 the bitmap leader.
3994 (label_visit): Free duplicate bitmaps and record the leader instead.
3995 (perform_var_substitution): Adjust.
3996
83ba4d6f
RB
39972013-01-29 Richard Biener <rguenther@suse.de>
3998
3999 PR tree-optimization/55270
4000 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4001 the CFG, schedule loops for fixup.
4002
66dfe13f
NC
40032013-01-29 Nick Clifton <nickc@redhat.com>
4004
4005 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4006 SP_REG.
4007
5a579c3b
LE
40082013-01-28 Leif Ekblad <leif@rdos.net>
4009
4010 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4011 * config/i386/i386.h (TARGET_RDOS): New macro.
4012 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4013 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4014 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4015 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4016 DEFAULT_LARGE_SECTION_THRESHOLD.
4017 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4018 * config/i386/rdos.h: New file.
4019 * config/i386/rdos64.h: New file.
4020
51e44392
BS
40212013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4022
4023 PR other/54814
4024 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4025 TEST_HARD_REG_BIT.
4026
db1fb332
JJ
40272013-01-28 Jakub Jelinek <jakub@redhat.com>
4028
4029 PR rtl-optimization/56117
4030 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4031 call cselib_lookup_from_insn on the MEM before calling
4032 add_insn_mem_dependence.
4033
16917761
RB
40342013-01-28 Richard Biener <rguenther@suse.de>
4035
4036 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4037 to a stmt that didn't have one.
4038 (copy_phis_for_bb): Likewise for PHI arguments.
4039 (copy_debug_stmt): Likewise for debug stmts.
4040
b9fc0497
RB
40412013-01-28 Richard Biener <rguenther@suse.de>
4042
4043 PR tree-optimization/56034
6edc3e32 4044 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
4045 (partition_builtin_p): Adjust.
4046 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4047 it is the last partition.
4048 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4049 up the vertex for the definition.
4050 (classify_partition): Classify whether a partition is a
4051 PKIND_REDUCTION, thus has uses outside of the loop.
4052 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4053 Merge all PKIND_REDUCTION partitions into the last partition.
4054 (tree_loop_distribution): Seed partitions from reductions as well.
4055
aa710d25
JJ
40562013-01-28 Jakub Jelinek <jakub@redhat.com>
4057
0bfbca58
JJ
4058 PR tree-optimization/56125
4059 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4060 pow(x,c) into sqrt(x) * powi(x, n/2) or
4061 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4062 optimizing for size.
4063 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4064 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4065 integer.
4066
aa710d25
JJ
4067 PR tree-optimization/56094
4068 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4069 to UNKNOWN_LOCATION while gimplifying expr.
4070
77dc5297
UB
40712013-01-27 Uros Bizjak <ubizjak@gmail.com>
4072
4073 PR target/56114
4074 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4075 operand 0 in movabs insn template for -masm=intel asm alternative.
4076 (*movabs<mode>_2): Ditto for operand 1.
4077
0bfbca58 40782013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
4079
4080 PR target/54663
4081 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4082 of microblaze-c.o
4083
0bfbca58 40842013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
4085
4086 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4087 tm_file.
4088
0bfbca58 40892013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
4090
4091 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4092 Undef to avoid warning.
4093
478f60f9
MH
40942013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4095
4096 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4097 * configure: Regenerate.
4098
d7fa6ee2
JJ
40992013-01-25 Jakub Jelinek <jakub@redhat.com>
4100
4101 PR tree-optimization/56098
4102 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4103 for stmts with volatile ops.
4104 (cond_store_replacement): Don't optimize if assign has volatile ops.
4105 (cond_if_else_store_replacement_1): Don't optimize if either
4106 then_assign or else_assign have volatile ops.
4107 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4108 volatile ops.
4109
f8fe87bd
GJL
41102013-01-25 Georg-Johann Lay <avr@gjlay.de>
4111
4112 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4113
28398d0d
GJL
41142013-01-25 Georg-Johann Lay <avr@gjlay.de>
4115
4116 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4117 missing ':' in asm example.
4118
b7d7d917
TB
41192013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4120
4121 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4122 entries into lane and laneq entries.
77dc5297
UB
4123 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4124 Remove AdvSIMD scalar modes.
b7d7d917
TB
4125 (aarch64_sq<r>dmulh_laneq<mode>): New.
4126 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4127 modes.
4128 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4129 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4130 * config/aarch64/iterators.md (VCOND): New.
4131 (VCONQ): New.
4132
556f9906
GJL
41332013-01-25 Georg-Johann Lay <avr@gjlay.de>
4134
4135 PR target/54222
4136 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4137 Add NULL LIBNAME argument to existing definitions.
4138 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4139 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4140 * config/avr/avr.c (DEF_BUILTIN): Same.
4141 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4142 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4143 implementation is available (DECL_ASSEMBLER_NAME is set).
4144 (avr_fold_absfx): New static function.
4145 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4146 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4147 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4148 AVR_BUILTIN_ABSLLK.
4149 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4150 (abshk, absk, abslk, absllk): Provide as static inline functions.
4151
1f546bbb
MP
41522013-01-25 Marek Polacek <polacek@redhat.com>
4153
4154 PR tree-optimization/56035
4155 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4156
7e184bd7
UB
41572012-01-24 Uros Bizjak <ubizjak@gmail.com>
4158
4159 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4160 (*movtf_internal_rex64): Add (!o,C) alternative
4161 (*movxf_internal_rex64): Ditto.
4162 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4163
f5ba49ac
SM
41642013-01-24 Shenghou Ma <minux.ma@gmail.com>
4165
4166 * doc/invoke.texi: fix typo.
4167 * doc/objc.texi: fix typo.
4168
a6343728
RS
41692013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4170
4171 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4172 for the first two alternatives.
4173
cd030c07
DN
41742013-01-24 Diego Novillo <dnovillo@google.com>
4175
77dc5297 4176 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
4177 (ggc-zone.o): Remove.
4178 * configure.ac: Remove option --with-gc.
4179 * configure: Re-generate.
4180 * doc/install.texi: Remove documentation for --with-gc.
4181 * gengtype.c (write_enum_defn): Remove. Update all users.
4182 (write_Types_process_field): Remove generation of gt_e_* argument.
4183 (output_type_enum): Remove. Update all users.
4184 (write_enum_defn): Remove. Update all users.
4185 (enum alloc_zone): Remove. Update all users.
77dc5297 4186 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
4187 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4188 Update all callers.
4189 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 4190 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
4191 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4192 Update all users.
aaf1e810 4193 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
4194 (struct alloc_zone): Remove.
4195 (ggc_internal_alloc_zone_stat): Remove.
4196 (ggc_internal_cleared_alloc_zone_stat): Remove.
4197 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
4198 (ggc_pch_count_object): Remove last argument. Update all users.
4199 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
4200 (struct alloc_zone): Remove.
4201 * ggc-zone.c: Remove.
77dc5297 4202 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
4203 (struct alloc_zone): Remove.
4204 (ggc_alloc_typed_stat): Remove.
4205 (ggc_alloc_typed): Remove.
4206 (ggc_splay_alloc): Remove first argument.
4207 (rtl_zone): Remove. Update all users.
4208 (tree_zone): Remove. Update all users.
4209 (tree_id_zone): Remove. Update all users.
4210 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 4211 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 4212 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 4213 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 4214
a861ffa4
GJL
42152013-01-24 Georg-Johann Lay <avr@gjlay.de>
4216
4217 * config/avr/avr.c (avr_out_fract): Make register numbers that
4218 might be outside of source operand signed.
4219
593c0ddd
UB
42202013-01-24 Uros Bizjak <ubizjak@gmail.com>
4221
4222 * config/i386/constraints.md (Yf): New constraint.
4223 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4224 of f constraint to conditionaly disable x87 register preferences.
4225 (*movdf_internal): Ditto.
4226 (*movsf_internal): Ditto.
4227
e86c0101
SB
42282013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4229
4230 PR inline-asm/55934
4231 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4232 that have operands with impossible constraints.
4233 Add a FIXME for a speed-up opportunity.
4234 * lra-constraints.c (process_alt_operands): Verify that a class
4235 selected from constraints on asms is valid for the operand mode.
4236 (curr_insn_transform): Remove incorrect comment.
4237
f6fee35f
DE
42382013-01-23 David Edelsohn <dje.gcc@gmail.com>
4239
4240 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4241 TOC operand is a valid symbol ref in the constant pool.
4242
42432013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 4244
aaf1e810 4245 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 4246
dc62d7d1
GJL
42472013-01-23 Georg-Johann Lay <avr@gjlay.de>
4248
4249 PR target/54222
4250 * config/avr/stdfix.h: New file.
4251 * t-avr (stdfix-gcc.h): New rule to build it.
4252 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4253
2660d12d
KS
42542013-01-23 Kostya Serebryany <kcc@google.com>
4255
77dc5297
UB
4256 * config/darwin.h: remove dependency on
4257 CoreFoundation (asan on Mac OS).
2660d12d 4258
a70418fc
JJ
42592013-01-23 Jakub Jelinek <jakub@redhat.com>
4260
4261 PR target/49069
4262 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4263 instead of cmpdi_operand for first comparison operand.
4264 Don't assert that comparison operands aren't both constants.
4265
47876a2a
JW
42662013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4267
4268 * doc/install.texi (Downloading the Source): Update references to
4269 downloading separate components.
4270
42712013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
4272
4273 * doc/extend.texi (__int128): Improve grammar.
4274
47876a2a 42752013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
4276
4277 PR target/56028
4278 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4279 alternative to (o,r).
4280 (*movdi_internal_rex64): Remove (!o,n) alternative.
4281 (DImode immediate->memory splitter): Remove.
4282 (DImode immediate->memory peephole2): Remove.
4283 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4284 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4285 alternative to (!o,*r).
4286 (*movtf_internal_sse): New pattern.
4287 (*movxf_internal_rex64): New pattern.
4288 (*movxf_internal): Disable for TARGET_64BIT.
4289 (*movdf_internal_rex64): Remove (!o,F) alternative.
4290
3a984f10
JJ
42912013-01-22 Jakub Jelinek <jakub@redhat.com>
4292
502498d5
JJ
4293 PR middle-end/56074
4294 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4295 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4296 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4297 stmt locations where LOCATION_LOCUS of the stmt location is
4298 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4299
3a984f10
JJ
4300 PR target/55686
4301 * config/i386/i386.md (UNSPEC_STOS): New.
4302 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4303 *strsetqi_1): Add UNSPEC_STOS.
4304
fa817f7f
PC
43052013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4306
4307 PR c++/56067
4308 * doc/invoke.texi: Remove left over -Wsynth example.
4309
8f498c1b
JJ
43102013-01-21 Jakub Jelinek <jakub@redhat.com>
4311
4312 PR tree-optimization/56051
4313 * fold-const.c (fold_binary_loc): Don't fold
4314 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4315 a narrowing conversion, or widening conversion from signed
4316 to unsigned.
4317
47876a2a 43182013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
4319
4320 PR rtl-optimization/56023
4321 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4322 dependent on debug instruction.
4323
5b9db1bc
MJ
43242013-01-21 Martin Jambor <mjambor@suse.cz>
4325
4326 PR middle-end/56022
4327 * function.c (allocate_struct_function): Call
4328 invoke_set_current_function_hook earlier.
4329
e8bb7d68
JJ
43302013-01-21 Jakub Jelinek <jakub@redhat.com>
4331
4332 * reload1.c (init_reload): Only initialize reload_obstack
4333 during the first call.
4334
616a4e32
MP
43352013-01-21 Marek Polacek <polacek@redhat.com>
4336
4337 * cfgloop.c (verify_loop_structure): Fix up grammar.
4338
4401981b
YHH
43392013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4340
4341 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4342 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4343
8e87740b
RR
43442013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4345
4346 PR target/56058
4347 * config/arm/marvell-pj4.md: Update copyright year.
4348 Fix up use of alu to alu_reg and simple_alu_imm.
4349
47876a2a 43502013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
4351
4352 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4353
89d56d79
VM
43542013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4355
4356 PR target/55433
4357 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 4358 insn for secondary memory move when memory mode should be different.
89d56d79 4359
fe603553
JDA
43602013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4361
4362 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4363 atomic_storedi_1): New patterns.
4364
01284895
VK
43652013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4366
4367 btver2 pipeline descriptions.
4368 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4369 descriptions.
4370 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 4371 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
4372 type attributes.
4373 * config/i386/btver2.md: New file describing btver2 pipelines.
4374
5630e3e1
JL
43752013-01-19 Andrew Pinski <apinski@cavium.com>
4376
4377 PR tree-optimization/52631
4378 * tree-ssa-sccvn (visit_use): Before looking up the original
4379 statement, try looking up the simplified expression.
4380
650ae806
AG
43812013-01-19 Anthony Green <green@moxielogic.com>
4382
4383 * config/moxie/moxie.c (moxie_expand_prologue): Set
4384 current_function_static_stack_size.
4385
e300ec2d
JJ
43862013-01-18 Jakub Jelinek <jakub@redhat.com>
4387
4388 PR tree-optimization/56029
4389 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4390 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4391
a3d7af04
SS
43922013-01-18 Sharad Singhai <singhai@google.com>
4393
4394 PR tree-optimization/55995
4395 * dumpfile.c (dump_loc): Print location only if available.
4396 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4397
66aa7879
VM
43982013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4399
4400 PR target/55433
4401 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4402 secondary memory move.
4403 (inherit_reload_reg): Use rclass instead of cl for
4404 check_secondary_memory_needed_p.
4405
3f0fee7b
JJ
44062013-01-18 Jakub Jelinek <jakub@redhat.com>
4407
4408 PR middle-end/56015
4409 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 4410 the case where writing real complex part of target modifies op1.
3f0fee7b 4411
70c67693
JG
44122013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4413
4414 * config/aarch64/aarch64-simd.md
4415 (aarch64_vcond_internal<mode>): Handle unordered cases.
4416 * config/aarch64/iterators.md (v_cmp_result): New.
4417
df8de9b3
YHH
44182013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4419 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4420
4421 * config/arm/marvell-pj4.md: New file.
4422 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4423 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4424 (generic_vfp): Likewise.
4425 * config/arm/arm-cores.def: Add marvell-pj4.
4426 * config/arm/arm-tune.md: Regenerate.
4427 * config/arm/arm-tables.opt: Regenerate.
4428 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4429 * doc/invoke.texi: Document marvell-pj4.
4430
be30c356
TB
44312013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4432
4433 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4434
0bfbca58 44352013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
4436
4437 PR debug/54114
4438 PR debug/54402
4439 PR debug/49888
4440 * var-tracking.c (negative_power_of_two_p): New.
4441 (global_get_addr_cache, local_get_addr_cache): New.
4442 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4443 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4444 heading comment.
4445 (vt_stack_offset_p): Remove.
4446 (vt_canon_true_dep): Always canonicalize loc's address.
4447 (clobber_overlapping_mems): Make sure we have a MEM.
4448 (local_get_addr_clear_given_value): New.
4449 (val_reset): Clear local cached entries.
4450 (compute_bb_dataflow): Create and release the local cache.
4451 Disable duplicate MEMs clobbering.
4452 (emit_notes_in_bb): Clobber MEMs likewise.
4453 (vt_emit_notes): Create and release the local cache.
4454 (vt_initialize, vt_finalize): Create and release the global
4455 cache, respectively.
1f6bc337 4456 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 4457
0bfbca58 44582013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
4459
4460 PR libmudflap/53359
4461 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4462 not found in the symtab.
4463
0bfbca58 44642013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 4465
c350ba53 4466 PR debug/56006
3aa03517
AO
4467 PR rtl-optimization/55547
4468 PR rtl-optimization/53827
4469 PR debug/53671
4470 PR debug/49888
4471 * alias.c (offset_overlap_p): New, factored out of...
4472 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4473 the conservative special case for symbolic constants. Don't
4474 adjust zero sizes on alignment.
4475
c664546f
JL
44762013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4477
4478 PR rtl-optimization/52573
4479 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4480 REG_UNUSED for the same register.
4481
1bd3f750
MP
44822013-01-17 Richard Biener <rguenther@suse.de>
4483 Marek Polacek <polacek@redhat.com>
4484
4485 PR rtl-optimization/55833
4486 * loop-unswitch.c (unswitch_loops): Move loop verification...
4487 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4488 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4489 Set it to true when we're removing a loop from hierarchy tree in
4490 an irreducible region.
4491 (fix_bb_placements): Adjust caller.
4492 (fix_loop_placements): Likewise.
4493
e52a8b71
GJL
44942013-01-17 Georg-Johann Lay <avr@gjlay.de>
4495
4496 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4497 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4498 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4499 Remove ID. Adjust comments.
4500 * config/avr/avr-c.c (avr_builtin_name): Remove.
4501 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4502 * config/avr/avr.c (avr_tolower): New static function.
4503 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4504 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4505 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4506 default expansion.
4507
8386a7ea
JH
45082013-01-17 Jan Hubicka <jh@suse.cz>
4509
610fb637 4510 PR tree-optimization/55273
8386a7ea
JH
4511 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4512
47876a2a 45132013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
4514
4515 PR target/55981
4516 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4517 store through atomic_store<mode>_1.
4518 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4519
8222c37e
MJ
45202013-01-17 Martin Jambor <mjambor@suse.cz>
4521
4522 PR tree-optimizations/55264
4523 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4524 for virtual methods.
4525 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4526 virtual methods before inlining is over.
4527 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4528 virtual functions.
4529 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4530 non-virtual.
4531
79f01c76
VM
45322013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4533
4534 PR rtl-optimization/56005
4535 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4536 pending reads for prefetch.
4537
d0b6bb1b
IB
45382013-01-16 Ian Bolton <ian.bolton@arm.com>
4539
aaf1e810 4540 * config/aarch64/aarch64.md
d0b6bb1b
IB
4541 (*cstoresi_neg_uxtw): New pattern.
4542 (*cmovsi_insn_uxtw): New pattern.
4543 (*<optab>si3_uxtw): New pattern.
4544 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4545 (*<optab>si3_insn_uxtw): New pattern.
4546 (*bswapsi2_uxtw): New pattern.
4547
cb9cf03b
RB
45482013-01-16 Richard Biener <rguenther@suse.de>
4549
4550 * tree-inline.c (tree_function_versioning): Remove set but
4551 never used variable.
4552
2cfc56b9
RB
45532013-01-16 Richard Biener <rguenther@suse.de>
4554
4555 PR tree-optimization/55964
4556 * tree-flow.h (rename_variables_in_loop): Remove.
4557 (rename_variables_in_bb): Likewise.
4558 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4559 (copy_loop_before): Adjust and delete update-ssa status.
4560 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 4561 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
4562 (rename_variables_in_loop): Remove.
4563 (slpeel_update_phis_for_duplicate_loop): Likewise.
4564 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4565 use available cfg machinery instead of duplicating it.
4566 Update PHI nodes and perform poor-mans SSA update here.
4567 (slpeel_tree_peel_loop_to_edge): Adjust.
4568
c25a0c60
RB
45692013-01-16 Richard Biener <rguenther@suse.de>
4570
4571 PR tree-optimization/54767
4572 PR tree-optimization/53465
4573 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4574 (vrp_visit_phi_node): For PHI arguments coming via backedges
4575 drop all symbolical range information.
4576 (execute_vrp): Compute backedges.
4577
04b535af
RB
45782013-01-16 Richard Biener <rguenther@suse.de>
4579
4580 * doc/install.texi: Update CLooG and ISL requirements to
4581 0.18.0 and 0.11.1.
4582
8b0a1e0b
CB
45832013-01-16 Christian Bruel <christian.bruel@st.com>
4584
4585 PR target/55301
4586 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4587 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4588 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4589
45902013-01-16 DJ Delorie <dj@redhat.com>
4591
4592 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4593 (UNSPECV_SP_SWITCH_E): New.
4594 (sp_switch_1): Change to an unspec.
4595 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4596 replace $r15.
4597
45982013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
4599
4600 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4601 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4602 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4603 (expand_mem_thread_fence): Ditto.
4604 (expand_mem_signal_fence): Ditto.
4605 (expand_atomic_load): Ditto.
4606 (expand_atomic_store): Ditto.
4607
0bfbca58 46082013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
4609
4610 PR rtl-optimization/55547
4611 PR rtl-optimization/53827
4612 PR debug/53671
4613 PR debug/49888
4614 * alias.c (memrefs_conflict_p): Set sizes to negative after
4615 AND adjustments.
4616
305e3ac1
JJ
46172013-01-15 Jakub Jelinek <jakub@redhat.com>
4618
4619 PR target/55940
4620 * function.c (thread_prologue_and_epilogue_insns): Always
4621 add crtl->drap_reg to set_up_by_prologue.set, even if
4622 stack_realign_drap is false.
4623
f78ac4f2
JBG
46242013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4625
4626 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4627 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4628 *call): Fix indention.
4629
a78a8cc4
TV
46302013-01-15 Tom de Vries <tom@codesourcery.com>
4631
4632 PR target/55876
4633 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4634 Update comment.
4635
0e80383f
VM
46362013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4637
305e3ac1 4638 PR rtl-optimization/55153
0e80383f
VM
4639 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4640
207b5956
MJ
46412013-01-15 Martin Jambor <mjambor@suse.cz>
4642
4643 PR tree-optimization/55920
4644 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4645 accesses as grp_to_be_debug_replaced.
4646
a7818b54
JJ
46472013-01-15 Jakub Jelinek <jakub@redhat.com>
4648
4649 PR tree-optimization/55920
4650 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4651 there is non-useless type conversion needed from debug rhs to lhs,
4652 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4653
b0fe107e
JM
46542013-01-15 Joseph Myers <joseph@codesourcery.com>
4655 Mikael Pettersson <mikpe@it.uu.se>
4656
4657 PR target/43961
4658 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4659 Thumb.
4660 (ASM_OUTPUT_CASE_LABEL): Remove.
4661 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4662 * final.c (shorten_branches): Update alignment of labels before
4663 jump tables if CASE_VECTOR_SHORTEN_MODE.
4664
34ab62ee
RB
46652013-01-15 Richard Biener <rguenther@suse.de>
4666
4667 PR bootstrap/55961
4668 * system.h: Do not include gmp.h for building host tools.
4669
783a3a05
RB
46702013-01-15 Richard Biener <rguenther@suse.de>
4671
4672 PR middle-end/55882
4673 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4674 account for bitpos when computing alignment.
4675
3a579e09
VY
46762013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4677
4678 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4679 (ix86_target_macros_internal): Likewise.
4680
4681 * config/i386/i386.c (m_CORE2I7): Removed.
4682 (m_CORE_HASWELL): New macro.
4683 (m_CORE_ALL): Likewise.
4684 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4685 (initial_ix86_arch_features): Likewise.
4686 (processor_target_table): Initializations for Core avx2.
4687 (cpu_names): New names "core-avx2".
4688 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4689 PROCESSOR_CORE_HASWELL.
4690 (ix86_issue_rate): New case.
4691 (ia32_multipass_dfa_lookahead): Likewise.
4692 (ix86_sched_init_global): Likewise.
4693
4694 * config/i386/i386.h (TARGET_HASWELL): New macro.
4695 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4696 (processor_type): New PROCESSOR_HASWELL.
4697
955f5a07
JJ
46982013-01-15 Jakub Jelinek <jakub@redhat.com>
4699
ff784829
JJ
4700 PR tree-optimization/55955
4701 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4702 *SHIFT_EXPR and *ROTATE_EXPR codes.
4703
955f5a07
JJ
4704 PR tree-optimization/48766
4705 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4706 -ftrapv disable -fwrapv.
4707
aeb8b4e9
GJL
47082013-01-14 Georg-Johann Lay <avr@gjlay.de>
4709
4710 PR target/55974
4711 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4712 etc. to 1 and not to __flash.
4713 Use LL suffix for __INT24_MAX__ with -mint8.
4714 Use ULL suffix for __UINT24_MAX__ with -mint8.
4715
1c494c6a
GJL
47162013-01-14 Georg-Johann Lay <avr@gjlay.de>
4717
4718 * config/avr/avr-arch.h
4719 (struct base_arch_s): Use typedef avr_arch_t instead.
4720 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4721 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4722 * config/avr/avr.c: Same.
4723 * config/avr/avr-devices.c: Same.
4724 * config/avr/driver-avr.c: Same.
4725 * config/avr/gen-avr-mmcu-texi.c: Same.
4726 * config/avr/avr-mcus.def: Adjust comment.
4727
a50344cb
TB
47282013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4729
88e784e6
UB
4730 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4731 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 4732
47876a2a 47332013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
4734 Andi Kleen <ak@linux.intel.com>
4735
4736 PR target/55948
4737 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4738 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4739 memmodel flag.
4740
00892272
GJL
47412013-01-14 Georg-Johann Lay <avr@gjlay.de>
4742
4743 * config/avr/avr-stdint.h: Remove trailing blanks.
4744 * config/avr/avr-log.h: Same.
4745 * config/avr/avr-arch.h: Same.
4746 * config/avr/avr-devices.c: Same.
4747 * config/avr/avr-dimode.md: Same.
4748 * config/avr/predicates.md: Same.
4749 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 4750
00892272
GJL
4751 * config/avr/avr-protos.h: Same. And:
4752 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4753 (init_cumulative_args): Rename to avr_init_cumulative_args.
4754 (expand_prologue): Rename to avr_expand_prologue.
4755 (expand_epilogue): Rename to avr_expand_epilogue.
4756 (adjust_insn_length): Rename to avr_adjust_insn_length.
4757 (notice_update_cc): Rename to avr_notice_update_cc.
4758 (final_prescan_insn): Rename to avr_final_prescan_insn.
4759 * config/avr/avr.c: Same.
4760 * config/avr/avr.h: Same.
4761 * config/avr/avr.md: Remove trailing blanks.
4762 (prologue): Use avr_expand_prologue.
4763 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4764
7bb01996
RB
47652013-01-14 Richard Biener <rguenther@suse.de>
4766
4767 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4768 verify_location, collect_subblocks): New functions.
4769 (verify_gimple_in_cfg): Verify that locations only reference
4770 BLOCKs in the functions BLOCK tree.
4771
2724573f
RB
47722013-01-14 Richard Biener <rguenther@suse.de>
4773
4774 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4775 PHI argument.
4776 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4777 unshare reference.
4778 (insert_out_of_ssa_copy_on_edge): Likewise.
4779 (rewrite_close_phi_out_of_ssa): Likewise.
4780 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4781 debug expressions.
4782 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4783 propagated constants.
4784 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4785 can not be shared.
4786
9a0bbab6
GJL
47872013-01-14 Georg-Johann Lay <avr@gjlay.de>
4788
4789 * config/avr/avr-modes.def: Add GPL copyright notice.
4790
45805f17
UB
47912013-01-13 Uros Bizjak <ubizjak@gmail.com>
4792
4793 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4794 MEMMODEL_MASK to determine memory model.
4795 (atomic_store<mode>): Ditto from operands[2].
4796 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4797
9d60be38
JJ
47982013-01-13 Jakub Jelinek <jakub@redhat.com>
4799
4800 PR fortran/55935
45805f17 4801 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
4802 (fold_gimple_assign): Don't call unshare_expr here.
4803 (fold_ctor_reference): Call unshare_expr.
4804
e7f49d92
TG
48052013-01-13 Terry Guo <terry.guo@arm.com>
4806
aaf1e810
EB
4807 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4808 * doc/fragments.texi: Document MULTILIB_REUSE.
4809 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 4810 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 4811 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
4812 (tmpmultilib4): Ditto.
4813 (multilib_reuse): New multilib argument.
4814
fbd03a27
RS
48152013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4816
4817 * Makefile.in: Update copyright.
4818
b3681f13
TV
48192013-01-12 Tom de Vries <tom@codesourcery.com>
4820
4821 PR middle-end/55890
4822 * calls.c (expand_call): Check if arg_nr is valid.
4823
3f287e4b
MM
48242013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4825
4826 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4827 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
4828 documentation. Add missing '__' in front of
4829 __builtin_ia32_packssdw256.
3f287e4b 4830
1abcd5eb
AK
48312013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4832
4833 PR target/55719
4834 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4835 NO_REGS for larl operands.
4836 (s390_reload_larl_operand): Use s390_load_address instead of
4837 emit_move_insn.
4838
980d0812
RB
48392013-01-11 Richard Biener <rguenther@suse.de>
4840
4841 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4842 (verify_node_sharing): ... here.
4843 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4844
7cb9fd07
EB
48452013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4846
4847 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4848 Substitute TREECHECKING.
4849 * configure: Regenerate.
4850 * Makefile.in (TREECHECKING): New.
4851
47876a2a 48522013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
4853
4854 PR tree-optimization/44061
4855 * tree-vrp.c (extract_range_basic): Compute zero as
4856 value-range for __builtin_constant_p of function parameters.
4857
d1e082c2
RS
48582013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4859
45805f17 4860 Update copyright years.
d1e082c2 4861
f85021b0
VM
48622013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4863
9d60be38 4864 PR rtl-optimization/55672
0160442c
VM
4865 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4866 const to be eliminable.
f85021b0 4867
7a8b1ec4
DE
48682013-01-10 David Edelsohn <dje.gcc@gmail.com>
4869
4870 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4871 * configure: Regenerate.
4872
ad2e5b71
RB
48732013-01-10 Richard Biener <rguenther@suse.de>
4874
ddf9322d 4875 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 4876
ffc5b2bb
RB
48772013-01-10 Richard Biener <rguenther@suse.de>
4878
4879 PR bootstrap/55792
4880 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4881 locations for virtual PHI arguments.
4882 (rewrite_update_phi_arguments): Likewise.
4883
e1f674e4
JS
48842013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4885
4886 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4887 on to assembler.
4888
a57fc743
JJ
48892013-01-10 Jakub Jelinek <jakub@redhat.com>
4890
4891 PR tree-optimization/55921
4892 * tree-complex.c (expand_complex_asm): New function.
4893 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4894
0ff4390d
AK
48952013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4896
4897 PR target/55718
4898 * config/s390/s390.c (s390_symref_operand_p)
4899 (s390_loadrelative_operand_p): Merge the two functions.
4900 (s390_check_qrst_address, print_operand_address): Add parameters
4901 to s390_loadrelative_operand_p invokation.
4902 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4903 (s390_reload_larl_operand, s390_secondary_reload): Use
4904 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4905 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4906
6f557e0e
MS
49072013-01-09 Mike Stump <mikestump@comcast.net>
4908
4909 * dse.c (record_store): Remove unnecessary assert.
4910
7770c9e9
JH
49112013-01-09 Jan Hubicka <jh@suse.cz>
4912
4913 PR tree-optimization/55569
4914 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4915 * cfgloop.h (scale_loop_profile): Likewise.
4916
a19b1432
JH
49172013-01-09 Jan Hubicka <jh@suse.cz>
4918
4919 PR lto/45375
ddf9322d
UB
4920 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4921 functions.
a19b1432
JH
4922 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4923
9a002da8
RS
49242013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4925
4926 PR middle-end/55114
4927 * expr.h (maybe_emit_group_store): Declare.
4928 * expr.c (maybe_emit_group_store): New function.
4929 * builtins.c (expand_builtin_int_roundingfn): Call it.
4930 (expand_builtin_int_roundingfn_2): Likewise.
4931
511dcace
VM
49322013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4933
e1f2b729 4934 PR rtl-optimization/55829
511dcace
VM
4935 * lra-constraints.c (match_reload): Add code for absent output.
4936 (curr_insn_transform): Add code for reloads of matched inputs
4937 without output.
4938
7b0fe4f4
UB
49392013-01-09 Uros Bizjak <ubizjak@gmail.com>
4940
4941 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4942 attribute of movddup insn to DF.
4943 (*vec_interleave_lowv2df): Ditto.
4944 (vec_dupv2df): Ditto.
4945
870ca331
JH
49462013-01-09 Jan Hubicka <jh@suse.cz>
4947
4948 PR tree-optimiation/55875
4949 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4950 EVERY_ITERATION parameter.
7b0fe4f4 4951 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
4952 (idx_infer_loop_bounds): Similarly here.
4953 (n_of_executions_at_most): Simplify
4954 to only test for cases where statement is dominated by the
7b0fe4f4 4955 particular bound; handle correctly the "postdominance" test.
870ca331
JH
4956 (scev_probably_wraps_p): Use max loop iterations info
4957 as a global bound first.
4958
6f575fe4 49592013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
4960 Nick Clifton <nickc@redhat.com>
4961
4962 * config/v850/v850.md (cbranchsf4): New pattern.
4963 (cstoresf4): New pattern.
4964 (cbranchdf4): New pattern.
4965 (cstoredf4): New pattern.
4966 (movsicc): Disallow floating point comparisons.
4967 (cmpsf_le_insn): Fix order of operators.
4968 (cmpsf_lt_insn): Likewise.
4969 (cmpsf_eq_insn): Likewise.
4970 (cmpdf_le_insn): Likewise.
4971 (cmpdf_lt_insn): Likewise.
4972 (cmpdf_eq_insn): Likewise.
4973 (cmpsf_ge_insn): Use LE comparison.
4974 (cmpdf_ge_insn): Likewise.
4975 (cmpsf_gt_insn): Use LT comparison.
4976 (cmpdf_gt_insn): Likewise.
4977 (cmpsf_ne_insn): Delete pattern.
4978 (cmpdf_ne_insn): Delete pattern.
4979 * config/v850/v850.c (v850_gen_float_compare): Use
4980 gen_cmpdf_eq_insn for NE comparison.
4981 (v850_float_z_comparison_operator)
4982 (v850_float_nz_comparison_operator): Move from here ...
4983 * config/v850/predicates.md: ... to here. Move GT and GE
4984 comparisons into v850_float_z_comparison_operator.
4985 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4986 Delete prototype.
4987 (v850_float_nz_comparison_operator): Likewise.
4988
f0d54148
JDA
49892013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4990
4991 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4992 with calls to gen_insvsi/gen_insvdi.
4993
8f01beca
VK
49942013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4995
4996 * config/i386/i386.c (initial_ix86_tune_features): Set up
4997 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4998
2aa579ad
JJ
49992013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5000 Jakub Jelinek <jakub@redhat.com>
5001
5002 PR tree-optimization/48189
5003 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5004 If nitercst is 0, don't predict the exit edge.
5005
6edc3e32 50062013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
5007
5008 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5009 in asm_fprintf with reg_names.
5010 (aarch64_print_operand_address): Likewise.
5011 (aarch64_return_addr): Likewise.
5012 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5013
f6f94d94
JDA
50142013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5015
5016 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5017 (INT_U6_BITS): Likewise.
5018 * config/pa/predicates.md (uint6_operand): New predicate.
5019 (shift5_operand, shift6_operand): Likewise.
5020 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5021 arith32_operand.
5022 (lshrdi3): Use shift6_operand.
5023 (shrpsi4, shrpdi4): New insn patterns.
5024 (extzv): Delete expander.
5025 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5026 predicates in unamed zero extract patterns. Tighten common constraint.
5027 (extv): Delete expander.
5028 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5029 predicates in unamed sign extract patterns. Tighten common constraint.
5030 (insv): Delete expander.
5031 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5032 predicates in unamed insert patterns. Tighten common constraint.
5033 Change uint32_operand predicate to uint6_operand predicate in unamed
5034 DImode pattern to insert constant values of type 1...1xxxx.
5035
36b72910
JH
50362013-01-04 Jan Hubicka <jh@suse.cz>
5037
5038 PR tree-optimization/55823
7b0fe4f4
UB
5039 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5040 issue.
36b72910 5041
47876a2a 50422013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
5043 Uros Bizjak <ubizjak@gmail.com>
5044
5045 PR rtl-optimization/55845
5046 * df-problems.c (can_move_insns_across): Stop scanning at
5047 volatile_insn_p source instruction or give up if
5048 across_from .. across_to range contains any volatile_insn_p
5049 instructions.
5050
4369c11e
TB
50512013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5052
7b0fe4f4
UB
5053 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5054 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5055 Declare.
4369c11e 5056 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 5057 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 5058
aeb7e7c1
JJ
50592013-01-08 Jakub Jelinek <jakub@redhat.com>
5060
5061 PR fortran/55341
5062 * asan.c (asan_clear_shadow): New function.
5063 (asan_emit_stack_protection): Use it.
5064
a02ad1aa
TB
50652013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5066
5067 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5068 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5069 with tab instead of space.
5070
f90d87f5
NC
50712013-01-08 Nick Clifton <nickc@redhat.com>
5072
5073 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5074 register bank 0 at the start of an interrupt handler.
83ffd964
NC
5075 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5076 MDBH registers.
f90d87f5 5077
385eb93d
JG
50782013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5079
5080 * config/aarch64/aarch64-simd.md
5081 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5082 (aarch64_simd_bsl): Likewise.
5083 (aarch64_vcond_internal<mode>): Likewise.
5084 (vcond<mode><mode>): Likewise.
5085 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5086 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5087
4dcd1054
JG
50882013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5089
5090 * config/aarch64/aarch64-builtins.c
5091 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5092
4267a4a6
MJ
50932013-01-08 Martin Jambor <mjambor@suse.cz>
5094
5095 PR debug/55579
5096 * tree-sra.c (analyze_access_subtree): Return true also after
5097 potentially creating a debug-only replacement.
5098
5f4e6de3
JJ
50992013-01-08 Jakub Jelinek <jakub@redhat.com>
5100
3138f224
JJ
5101 PR middle-end/55890
5102 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5103
5f4e6de3
JJ
5104 PR tree-optimization/54120
5105 * tree-vrp.c (range_fits_type_p): Don't allow
5106 src_precision < precision from signed vr to unsigned_p
5107 if vr->min or vr->max is negative.
5108 (simplify_float_conversion_using_ranges): Test can_float_p
5109 against CODE_FOR_nothing.
5110
f3ef18ff
JJ
51112013-01-08 Jakub Jelinek <jakub@redhat.com>
5112 Richard Biener <rguenther@suse.de>
5113
5114 PR middle-end/55851
5115 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5116 types instead of just INTEGER_TYPE types.
5117
25c210f9
MK
51182013-01-07 Mark Kettenis <kettenis@openbsd.org>
5119
5120 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5121 TF_SIZE): Define.
f90d87f5 5122
81826a7b
SE
51232013-01-07 Steve Ellcey <sellcey@mips.com>
5124
5125 PR target/42661
5126 * config/mips/mips.opt: Change mad to mmad to match documentation.
5127
35678514
GJL
51282013-01-07 Georg-Johann Lay <avr@gjlay.de>
5129
5130 PR target/55897
5131 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5132 .progmemx.data now.
5133
e5669488
GJL
51342013-01-07 Georg-Johann Lay <avr@gjlay.de>
5135
5136 PR target/55897
5137 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5138 (avr_addrspace_t): Add .section_name field.
5139 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5140 array size.
5141 (avr_addrspace): Same. Initialize .section_name. Remove last
5142 NULL entry. Put __memx into .progmemx.data.
5143 (progmem_section_prefix): Remove.
5144 (avr_asm_init_sections): No need to initialize progmem_section.
5145 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5146 section name prefix.
5147 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5148 retrieve the progmem section.
5149 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5150 boundary to run over avr_addrspace[].
5151 (avr_register_target_pragmas): Ditto.
5152
656e6f37
JJ
51532013-01-06 Jakub Jelinek <jakub@redhat.com>
5154
5155 * varasm.c (output_constant_def_contents): For asan_protect_global
5156 protected strings, adjust DECL_ALIGN if needed, before testing for
5157 anchored symbols.
5158 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5159 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5160 normal decls.
5161 (output_object_block): For asan protected decls, emit asan padding
5162 after their contents.
5163 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5164 (asan_finish_file): Test it here instead.
5165
6edc3e32
UB
51662013-01-07 Nick Clifton <nickc@redhat.com>
5167 Matthias Klose <doko@debian.org>
5168 Doug Kwan <dougkwan@google.com>
5169 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
5170
5171 PR driver/55470
5172 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5173
5174 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5175
5176 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5177
7b0fe4f4 5178 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
5179
5180 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5181
2a095093
GJL
51822013-01-07 Georg-Johann Lay <avr@gjlay.de>
5183
f3b503f4 5184 PR target/54461
2a095093
GJL
5185 * doc/install.texi (Cross-Compiler-Specific Options): Document
5186 --with-avrlibc.
5187
383f9b34
TB
51882013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5189
5190 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5191 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5192 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5193 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5194 vqmovun_high_s64): Fix source operand number and update copyright.
5195
3626621a
RB
51962013-01-07 Richard Biener <rguenther@suse.de>
5197
5198 PR middle-end/55890
5199 * gimple.h (gimple_call_builtin_p): New overload.
5200 * gimple.c (validate_call): New function.
5201 (gimple_call_builtin_p): Likewise.
5202 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5203 Use gimple_call_builtin_p.
5204 (find_func_clobbers): Likewise.
5205 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5206 (strlen_optimize_stmt): Likewise.
5207
8b2ea410
JG
52082013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5209
5210 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5211 (vld1q_dup_*): Likewise.
5212 (vld1_*): Likewise.
5213 (vld1q_*): Likewise.
5214 (vld1_lane_*): Likewise.
5215 (vld1q_lane_*): Likewise.
5216
9713d329
RB
52172013-01-07 Richard Biener <rguenther@suse.de>
5218
5219 * lto-streamer.h (LTO_minor_version): Bump to 2.
5220
3520f7cc
JG
52212013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5222
5223 * config/aarch64/aarch64-protos.h
5224 (aarch64_const_double_zero_rtx_p): Rename to...
5225 (aarch64_float_const_zero_rtx_p): ...this.
5226 (aarch64_float_const_representable_p): New.
5227 (aarch64_output_simd_mov_immediate): Likewise.
5228 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5229 move immediate case.
5230 * config/aarch64/aarch64.c
5231 (aarch64_const_double_zero_rtx_p): Rename to...
5232 (aarch64_float_const_zero_rtx_p): ...this.
5233 (aarch64_print_operand): Allow printing of new constants.
5234 (aarch64_valid_floating_const): New.
5235 (aarch64_legitimate_constant_p): Check for valid floating-point
5236 constants.
5237 (aarch64_simd_valid_immediate): Likewise.
5238 (aarch64_vect_float_const_representable_p): New.
5239 (aarch64_float_const_representable_p): Likewise.
5240 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5241 (aarch64_output_simd_mov_immediate): New.
5242 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5243 (*movdf_aarch64): Likewise.
5244 * config/aarch64/constraints.md (Ufc): New.
5245 (Y): call aarch64_float_const_zero_rtx.
5246 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5247
e167c04d
RB
52482013-01-07 Richard Biener <rguenther@suse.de>
5249
5250 PR tree-optimization/55888
5251 PR tree-optimization/55862
5252 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5253 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5254 not if it is contained therein.
5255
0139aaab
GJL
52562013-01-07 Georg-Johann Lay <avr@gjlay.de>
5257
5258 * config/avr/t-avr: Typo.
5259
4a176b23
GJL
52602013-01-07 Georg-Johann Lay <avr@gjlay.de>
5261
5262 PR55243
5263 * config/avr/t-avr: Don't automatically rebuild
5264 $(srcdir)/config/avr/t-multilib
5265 $(srcdir)/config/avr/avr-tables.opt
5266 $(srcdir)/doc/avr-mmcu.texi
5267 (avr-mcus): New phony target to build them on request.
5268 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5269 * avr/avr-mcus.def: Adjust comments.
5270
c7afdc98
UB
52712013-01-07 Uros Bizjak <ubizjak@gmail.com>
5272
5273 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5274
1ab05c31
RS
52752013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5276
5277 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5278
488e3acc
RS
52792013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5280
5281 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5282
a89599d2
DE
52832013-01-05 David Edelsohn <dje.gcc@gmail.com>
5284
5285 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5286 to generate profiling.
5287 * config/rs6000/aix64.h (LIB_SPEC): Same.
5288
70f09188
AP
52892013-01-04 Andrew Pinski <apinski@cavium.com>
5290
5291 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5292 New function.
5293 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5294
918d445f
UB
52952013-01-04 Uros Bizjak <ubizjak@gmail.com>
5296
5297 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5298 unconditionally.
5299 (ix86_expand_move): Ditto.
5300 (ix86_zero_extend_to_Pmode): Ditto.
5301 (ix86_expand_call): Ditto.
5302 (ix86_expand_special_args_builtin): Ditto.
5303 (ix86_expand_builtin): Ditto.
5304
361618ec
RB
53052013-01-04 Richard Biener <rguenther@suse.de>
5306
5307 PR tree-optimization/55862
5308 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5309 translating them through PHI nodes.
5310
87eab554
MJ
53112013-01-04 Martin Jambor <mjambor@suse.cz>
5312
5313 PR tree-optimization/55755
5314 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5315 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5316
33879b9f
MP
53172013-01-04 Marek Polacek <polacek@redhat.com>
5318
5319 PR middle-end/55859
5320 * opts.c (default_options_optimization): Clarify error message.
5321
3068819a
RB
53222013-01-04 Richard Biener <rguenther@suse.de>
5323
5324 PR middle-end/55863
5325 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5326 reassociation.
5327
0e4ae794
JDA
53282013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5329
5330 PR target/53789
5331 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
5332 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5333 references.
0e4ae794 5334
65c88cef
RH
53352013-01-03 Richard Henderson <rth@redhat.com>
5336
5337 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5338 after eliminating TLS symbols.
5339
8ac16127
MG
53402013-01-03 Marc Glisse <marc.glisse@inria.fr>
5341
5342 PR bootstrap/50167
5343 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5344 * graphite-poly.c (debug_gmp_value): Likewise.
5345
bb664f09
UB
53462013-01-03 Uros Bizjak <ubizjak@gmail.com>
5347
5348 PR target/55712
5349 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5350 selected code model, define __code_mode_small__, __code_model_medium__,
5351 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5352 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5353 xchg temporary register with %k. Declare temporary register as
5354 early clobbered.
5355 [__x86_64__]: For medium and large code models, preserve %rbx register.
5356
bcf1ef00
RB
53572013-01-03 Richard Biener <rguenther@suse.de>
5358
0506634a 5359 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
5360 (dump_subscript): Adjust.
5361 (finalize_ddr_dependent): Do not dump redundant info.
5362 (analyze_siv_subscript): Adjust.
5363 (subscript_dependence_tester): Likewise.
5364 (compute_affine_dependence): Likewise.
5365
59fd17e3
RB
53662013-01-03 Richard Biener <rguenther@suse.de>
5367
5368 Revert
5369 2013-01-03 Richard Biener <rguenther@suse.de>
5370
5371 PR tree-optimization/55857
5372 * tree-vect-stmts.c (vectorizable_load): Do not setup
5373 re-alignment for invariant loads.
5374
5375 2013-01-02 Richard Biener <rguenther@suse.de>
5376
5377 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 5378 invariant load do not generate a vector load from the scalar location.
59fd17e3 5379
595c2679
RB
53802013-01-03 Richard Biener <rguenther@suse.de>
5381
5382 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5383 for not vectorizing.
5384 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5385 not build INDIRECT_REFs, call get_name once only.
5386 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5387 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5388
90bb7d7a
RB
53892013-01-03 Richard Biener <rguenther@suse.de>
5390
5391 PR tree-optimization/55857
5392 * tree-vect-stmts.c (vectorizable_load): Do not setup
5393 re-alignment for invariant loads.
5394
f09b77ca
RB
53952013-01-03 Richard Biener <rguenther@suse.de>
5396
5397 PR lto/55848
5398 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5399 prefer a built-in decl.
5400
3461a16e
JJ
54012013-01-03 Jakub Jelinek <jakub@redhat.com>
5402
df8e2b4f
JJ
5403 * gcc.c (process_command): Update copyright notice dates.
5404 * gcov.c (print_version): Likewise.
5405 * gcov-dump.c (print_version): Likewise.
5406
3461a16e
JJ
5407 PR rtl-optimization/55838
5408 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5409 iv0.step, iv1.step and step.
5410
8b5546d6
JJ
54112013-01-03 Jakub Jelinek <jakub@redhat.com>
5412 Marc Glisse <marc.glisse@inria.fr>
5413
5414 PR tree-optimization/55832
5415 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5416 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5417 integer_{one,zero}_node.
5418
8ab1d2e9
JJ
54192013-01-03 Jakub Jelinek <jakub@redhat.com>
5420
5421 PR debug/54402
5422 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5423 * var-tracking.c (reverse_op): Don't add reverse ops to
5424 VALUEs that have already
0506634a 5425 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 5426
5b9ad1d4
GP
54272013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5428
5429 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5430
e25a6711
TJ
54312013-01-02 Teresa Johnson <tejohnson@google.com>
5432
5433 * dumpfile.c (dump_loc): Print filename with location.
5434 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5435 new location_t parameter to emit complete unroll message with
5436 new dump framework.
5437 (canonicalize_loop_induction_variables): Compute loops location
5438 and pass to try_unroll_loop_completely.
5439 * loop-unroll.c (report_unroll_peel): New function.
5440 (peel_loops_completely): Use new dump format with location
5441 for main dumpfile message, and invoke report_unroll_peel on success.
5442 (decide_unrolling_and_peeling): Ditto.
5443 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5444 by report_unroll_peel.
5445 (decide_peel_completely): Ditto.
5446 (decide_unroll_constant_iterations): Ditto.
5447 (decide_unroll_runtime_iterations): Ditto.
5448 (decide_peel_simple): Ditto.
5449 (decide_unroll_stupid): Ditto.
5450 * cfgloop.c (get_loop_location): New function.
5451 * cfgloop.h (get_loop_location): Declare.
5452
77878621
ST
54532013-01-02 Sriraman Tallam <tmsriram@google.com>
5454
5455 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5456 NULL.
5457
9e65d03e
JDA
54582013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5459
5460 PR middle-end/55198
5461 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5462 BLKmode objects when EXPAND_MEMORY is specified.
5463
6a7da30f
ST
54642013-01-02 Sriraman Tallam <tmsriram@google.com>
5465
5466 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5467 in loop predicate.
5468 (fold_builtin_cpu): Do not share cpu model decls across statements.
5469
e78167f2
JM
54702013-01-02 Jason Merrill <jason@redhat.com>
5471
5472 PR c++/55804
5473 * tree.c (build_array_type_1): Revert earlier change.
5474
8c075fb4
YZ
54752013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5476
5477 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5478 "cortex-a57".
5479 * config/aarch64/aarch64-tune.md: Re-generate.
5480
0682ed3e
RB
54812013-01-02 Richard Biener <rguenther@suse.de>
5482
5483 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 5484 invariant load do not generate a vector load from the scalar location.
0682ed3e 5485
b8f6a302
RB
54862013-01-02 Richard Biener <rguenther@suse.de>
5487
5488 PR bootstrap/55784
5489 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5490 * configure: Regenerate.
5491
04b80dbb
RS
54922013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5493
5494 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5495 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5496 (expand_builtin_int_roundingfn_2): Keep the original target around
5497 for the fallback case.
5498
635b0b0c
RS
54992013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5500
5501 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5502 to be clear for sign changes.
5503
42d57399
JH
55042013-01-01 Jan Hubicka <jh@suse.cz>
5505
5506 * ipa-inline-analysis.c: Fix formatting.
5507
5bb6669d
JJ
55082013-01-01 Jakub Jelinek <jakub@redhat.com>
5509
5510 PR tree-optimization/55831
5511 * tree-vect-loop.c (get_initial_def_for_induction): Use
5512 gsi_after_labels instead of gsi_start_bb.
ad41bd84 5513\f
86a2db33 5514Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
5515
5516Copying and distribution of this file, with or without modification,
5517are permitted in any medium without royalty provided the copyright
5518notice and this notice are preserved.