re PR target/42661 (Documented -mmad option not accepted.)
[gcc.git] / gcc / ChangeLog
1 2013-01-07 Steve Ellcey <sellcey@mips.com>
2
3 PR target/42661
4 * config/mips/mips.opt: Change mad to mmad to match documentation.
5
6 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7
8 PR target/55897
9 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10 .progmemx.data now.
11
12 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13
14 PR target/55897
15 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
16 (avr_addrspace_t): Add .section_name field.
17 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
18 array size.
19 (avr_addrspace): Same. Initialize .section_name. Remove last
20 NULL entry. Put __memx into .progmemx.data.
21 (progmem_section_prefix): Remove.
22 (avr_asm_init_sections): No need to initialize progmem_section.
23 (avr_asm_named_section): Use avr_addrspace[].section_name to get
24 section name prefix.
25 (avr_asm_select_section): Ditto. And use get_unnamed_section to
26 retrieve the progmem section.
27 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
28 boundary to run over avr_addrspace[].
29 (avr_register_target_pragmas): Ditto.
30
31 2013-01-06 Jakub Jelinek <jakub@redhat.com>
32
33 * varasm.c (output_constant_def_contents): For asan_protect_global
34 protected strings, adjust DECL_ALIGN if needed, before testing for
35 anchored symbols.
36 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
37 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
38 normal decls.
39 (output_object_block): For asan protected decls, emit asan padding
40 after their contents.
41 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
42 (asan_finish_file): Test it here instead.
43
44 2013-01-07 Nick Clifton <nickc@redhat.com>
45 Matthias Klose <doko@debian.org>
46 Doug Kwan <dougkwan@google.com>
47 H.J. Lu <hongjiu.lu@intel.com>
48
49 PR driver/55470
50 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
51
52 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
53
54 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
55
56 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and
57 -fuse-ld=gold.
58
59 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
60
61 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
62
63 PR target/54461
64 * doc/install.texi (Cross-Compiler-Specific Options): Document
65 --with-avrlibc.
66
67 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
68
69 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
70 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
71 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
72 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
73 vqmovun_high_s64): Fix source operand number and update copyright.
74
75 2013-01-07 Richard Biener <rguenther@suse.de>
76
77 PR middle-end/55890
78 * gimple.h (gimple_call_builtin_p): New overload.
79 * gimple.c (validate_call): New function.
80 (gimple_call_builtin_p): Likewise.
81 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
82 Use gimple_call_builtin_p.
83 (find_func_clobbers): Likewise.
84 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
85 (strlen_optimize_stmt): Likewise.
86
87 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
88
89 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
90 (vld1q_dup_*): Likewise.
91 (vld1_*): Likewise.
92 (vld1q_*): Likewise.
93 (vld1_lane_*): Likewise.
94 (vld1q_lane_*): Likewise.
95
96 2013-01-07 Richard Biener <rguenther@suse.de>
97
98 * lto-streamer.h (LTO_minor_version): Bump to 2.
99
100 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
101
102 * config/aarch64/aarch64-protos.h
103 (aarch64_const_double_zero_rtx_p): Rename to...
104 (aarch64_float_const_zero_rtx_p): ...this.
105 (aarch64_float_const_representable_p): New.
106 (aarch64_output_simd_mov_immediate): Likewise.
107 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
108 move immediate case.
109 * config/aarch64/aarch64.c
110 (aarch64_const_double_zero_rtx_p): Rename to...
111 (aarch64_float_const_zero_rtx_p): ...this.
112 (aarch64_print_operand): Allow printing of new constants.
113 (aarch64_valid_floating_const): New.
114 (aarch64_legitimate_constant_p): Check for valid floating-point
115 constants.
116 (aarch64_simd_valid_immediate): Likewise.
117 (aarch64_vect_float_const_representable_p): New.
118 (aarch64_float_const_representable_p): Likewise.
119 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
120 (aarch64_output_simd_mov_immediate): New.
121 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
122 (*movdf_aarch64): Likewise.
123 * config/aarch64/constraints.md (Ufc): New.
124 (Y): call aarch64_float_const_zero_rtx.
125 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
126
127 2013-01-07 Richard Biener <rguenther@suse.de>
128
129 PR tree-optimization/55888
130 PR tree-optimization/55862
131 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
132 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
133 not if it is contained therein.
134
135 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
136
137 * config/avr/t-avr: Typo.
138
139 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
140
141 PR55243
142 * config/avr/t-avr: Don't automatically rebuild
143 $(srcdir)/config/avr/t-multilib
144 $(srcdir)/config/avr/avr-tables.opt
145 $(srcdir)/doc/avr-mmcu.texi
146 (avr-mcus): New phony target to build them on request.
147 (s-avr-mlib, s-avr-mmcu-texi): Remove.
148 * avr/avr-mcus.def: Adjust comments.
149
150 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
151
152 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
153
154 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
155
156 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
157
158 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
159
160 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
161
162 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
163
164 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
165 to generate profiling.
166 * config/rs6000/aix64.h (LIB_SPEC): Same.
167
168 2013-01-04 Andrew Pinski <apinski@cavium.com>
169
170 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
171 New function.
172 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
173
174 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
175
176 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
177 unconditionally.
178 (ix86_expand_move): Ditto.
179 (ix86_zero_extend_to_Pmode): Ditto.
180 (ix86_expand_call): Ditto.
181 (ix86_expand_special_args_builtin): Ditto.
182 (ix86_expand_builtin): Ditto.
183
184 2013-01-04 Richard Biener <rguenther@suse.de>
185
186 PR tree-optimization/55862
187 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
188 translating them through PHI nodes.
189
190 2013-01-04 Martin Jambor <mjambor@suse.cz>
191
192 PR tree-optimization/55755
193 * tree-sra.c (sra_modify_assign): Do not check that an access has no
194 children when trying to avoid producing a VIEW_CONVERT_EXPR.
195
196 2013-01-04 Marek Polacek <polacek@redhat.com>
197
198 PR middle-end/55859
199 * opts.c (default_options_optimization): Clarify error message.
200
201 2013-01-04 Richard Biener <rguenther@suse.de>
202
203 PR middle-end/55863
204 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
205 reassociation.
206
207 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
208
209 PR target/53789
210 * config/pa/pa.md (movsi): Revert previous change.
211 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
212 references.
213
214 2013-01-03 Richard Henderson <rth@redhat.com>
215
216 * config/i386/i386.c (ix86_expand_move): Always assign to op1
217 after eliminating TLS symbols.
218
219 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
220
221 PR bootstrap/50167
222 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
223 * graphite-poly.c (debug_gmp_value): Likewise.
224
225 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
226
227 PR target/55712
228 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
229 selected code model, define __code_mode_small__, __code_model_medium__,
230 __code_model_large__, __code_model_32__ or __code_model_kernel__.
231 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
232 xchg temporary register with %k. Declare temporary register as
233 early clobbered.
234 [__x86_64__]: For medium and large code models, preserve %rbx register.
235
236 2013-01-03 Richard Biener <rguenther@suse.de>
237
238 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
239 (dump_subscript): Adjust.
240 (finalize_ddr_dependent): Do not dump redundant info.
241 (analyze_siv_subscript): Adjust.
242 (subscript_dependence_tester): Likewise.
243 (compute_affine_dependence): Likewise.
244
245 2013-01-03 Richard Biener <rguenther@suse.de>
246
247 Revert
248 2013-01-03 Richard Biener <rguenther@suse.de>
249
250 PR tree-optimization/55857
251 * tree-vect-stmts.c (vectorizable_load): Do not setup
252 re-alignment for invariant loads.
253
254 2013-01-02 Richard Biener <rguenther@suse.de>
255
256 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
257 invariant load do not generate a vector load from the scalar location.
258
259 2013-01-03 Richard Biener <rguenther@suse.de>
260
261 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
262 for not vectorizing.
263 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
264 not build INDIRECT_REFs, call get_name once only.
265 (vect_create_data_ref_ptr): Likewise. Dump base object kind
266 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
267
268 2013-01-03 Richard Biener <rguenther@suse.de>
269
270 PR tree-optimization/55857
271 * tree-vect-stmts.c (vectorizable_load): Do not setup
272 re-alignment for invariant loads.
273
274 2013-01-03 Richard Biener <rguenther@suse.de>
275
276 PR lto/55848
277 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
278 prefer a built-in decl.
279
280 2013-01-03 Jakub Jelinek <jakub@redhat.com>
281
282 * gcc.c (process_command): Update copyright notice dates.
283 * gcov.c (print_version): Likewise.
284 * gcov-dump.c (print_version): Likewise.
285
286 PR rtl-optimization/55838
287 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
288 iv0.step, iv1.step and step.
289
290 2013-01-03 Jakub Jelinek <jakub@redhat.com>
291 Marc Glisse <marc.glisse@inria.fr>
292
293 PR tree-optimization/55832
294 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
295 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
296 integer_{one,zero}_node.
297
298 2013-01-03 Jakub Jelinek <jakub@redhat.com>
299
300 PR debug/54402
301 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
302 * var-tracking.c (reverse_op): Don't add reverse ops to
303 VALUEs that have already
304 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
305
306 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
307
308 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
309
310 2013-01-02 Teresa Johnson <tejohnson@google.com>
311
312 * dumpfile.c (dump_loc): Print filename with location.
313 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
314 new location_t parameter to emit complete unroll message with
315 new dump framework.
316 (canonicalize_loop_induction_variables): Compute loops location
317 and pass to try_unroll_loop_completely.
318 * loop-unroll.c (report_unroll_peel): New function.
319 (peel_loops_completely): Use new dump format with location
320 for main dumpfile message, and invoke report_unroll_peel on success.
321 (decide_unrolling_and_peeling): Ditto.
322 (decide_peel_once_rolling): Remove old dumpfile message subsumed
323 by report_unroll_peel.
324 (decide_peel_completely): Ditto.
325 (decide_unroll_constant_iterations): Ditto.
326 (decide_unroll_runtime_iterations): Ditto.
327 (decide_peel_simple): Ditto.
328 (decide_unroll_stupid): Ditto.
329 * cfgloop.c (get_loop_location): New function.
330 * cfgloop.h (get_loop_location): Declare.
331
332 2013-01-02 Sriraman Tallam <tmsriram@google.com>
333
334 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
335 NULL.
336
337 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
338
339 PR middle-end/55198
340 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
341 BLKmode objects when EXPAND_MEMORY is specified.
342
343 2013-01-02 Sriraman Tallam <tmsriram@google.com>
344
345 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
346 in loop predicate.
347 (fold_builtin_cpu): Do not share cpu model decls across statements.
348
349 2013-01-02 Jason Merrill <jason@redhat.com>
350
351 PR c++/55804
352 * tree.c (build_array_type_1): Revert earlier change.
353
354 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
355
356 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
357 "cortex-a57".
358 * config/aarch64/aarch64-tune.md: Re-generate.
359
360 2013-01-02 Richard Biener <rguenther@suse.de>
361
362 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
363 invariant load do not generate a vector load from the scalar location.
364
365 2013-01-02 Richard Biener <rguenther@suse.de>
366
367 PR bootstrap/55784
368 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
369 * configure: Regenerate.
370
371 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
372
373 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
374 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
375 (expand_builtin_int_roundingfn_2): Keep the original target around
376 for the fallback case.
377
378 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
379
380 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
381 to be clear for sign changes.
382
383 2013-01-01 Jan Hubicka <jh@suse.cz>
384
385 * ipa-inline-analysis.c: Fix formatting.
386
387 2013-01-01 Jakub Jelinek <jakub@redhat.com>
388
389 PR tree-optimization/55831
390 * tree-vect-loop.c (get_initial_def_for_induction): Use
391 gsi_after_labels instead of gsi_start_bb.
392 \f
393 Copyright (C) 2013 Free Software Foundation, Inc.
394
395 Copying and distribution of this file, with or without modification,
396 are permitted in any medium without royalty provided the copyright
397 notice and this notice are preserved.