]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
cfb82f6755885d3084d3abe69aada15a3962fada
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2
3 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4 for -mcpu=e6500.
5 * config/rs6000/t-rtems: Add e6500 multilibs.
6
7 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8
9 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
10 MPC8540.
11
12 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13
14 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
15 MULTILIB_EXCEPTIONS.
16
17 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
18
19 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
20 MULTILIB_EXCEPTIONS.
21
22 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23
24 * config/arm/t-rtems-eabi: Rename to...
25 * config/arm/t-rtems: ...this.
26 * config/arm/rtems-eabi.h: Rename to...
27 * config/arm/rtems.h: ...this.
28 * config.gcc (arm*-*-rtems*): Reflect changes above.
29
30 2015-01-09 Richard Biener <rguenther@suse.de>
31
32 PR tree-optimization/64410
33 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
34 on the LHS.
35 (execute_update_addresses_taken): Deal with that.
36 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37 loads/stores for complex variables.
38
39 2015-01-09 Martin Liska <mliska@suse.cz>
40
41 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42 name comparison.
43 (func_checker::compare_memory_operand): New function.
44 (func_checker::compare_operand): Split case to newly
45 added functions.
46 (func_checker::compare_cst_or_decl): New function.
47 (func_checker::compare_gimple_call): Identify
48 memory operands.
49 (func_checker::compare_gimple_assign): Likewise.
50 * ipa-icf-gimple.h: New function.
51
52 2015-01-09 Martin Liska <mliska@suse.cz>
53
54 PR ipa/64503
55 * sreal.c (sreal::dump): Change unsigned format to signed for
56 m_exp value.
57 (sreal::to_double): Replace exp2 with scalbln.
58
59 2015-01-09 Martin Liska <mliska@suse.cz>
60
61 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
62 * ipa-icf.c (sem_function::equals_private): Add support for target and
63 (sem_item_optimizer::merge_classes): Remove redundant function
64 optimization flags comparison.
65 * tree.h (target_opts_for_fn): New function.
66
67 2015-01-09 Tom de Vries <tom@codesourcery.com>
68
69 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
70
71 2015-01-09 Kito Cheng <kito@0xlab.org>
72
73 PR rtl-optimization/64348
74 * lra-constraints.c (split_reg): Fix caller-save store/restore
75 instruction generation.
76
77 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
78
79 PR gcov-profile/61790
80 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
81 long long. Fallback to int64_t if host doesn't have long long and
82 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
83
84 2015-01-08 Jakub Jelinek <jakub@redhat.com>
85
86 PR tree-optimization/63989
87 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
88 from 1000 to 10000.
89 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
90 (get_stridx): If we don't have a record for certain SSA_NAME,
91 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
92 constant offset, call get_stridx_plus_constant.
93 (get_stridx_plus_constant): New function.
94 (zero_length_string): Don't use get_stridx here.
95
96 PR target/55023
97 PR middle-end/64388
98 * dse.c (struct insn_info): Mention frame_read set also
99 before reload for tail calls on some targets.
100 (scan_insn): Revert 2014-12-22 change. Set frame_read
101 also before reload for tail calls if
102 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
103 instead of add_non_frame_wild_read for non-const/memset
104 tail calls after reload.
105
106 2015-01-08 Jason Merrill <jason@redhat.com>
107
108 * ubsan.c (do_ubsan_in_current_function): New.
109 (pass_ubsan::gate): Use it.
110 * ubsan.h: Declare it.
111 * convert.c (convert_to_integer): Use it.
112
113 2015-01-08 Jakub Jelinek <jakub@redhat.com>
114
115 PR target/64338
116 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
117 compare_code when it is unconditionally overwritten afterwards.
118 Use ix86_reverse_condition instead of reverse_condition. Don't
119 change code if *reverse_condition* returned UNKNOWN and don't
120 swap ct/cf and negate diff in that case.
121
122 2015-01-08 Mike Stump <mikestump@comcast.net>
123
124 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
125 (pass_tsan_O0::gate): Likewise.
126 * extend.texi (Function Attributes): Add no_sanitize_thread
127 documentation.
128
129 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
130
131 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
132 for registering builtins.
133 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
134 add -fopenmp to the argv_obstack used when invoking
135 compile_for_target.
136
137 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
138 add "-m32" or "-m64" to argv_obstack.
139 (generate_host_descr_file): Likewise, when invoking host_compiler.
140 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
141 ld.
142
143 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
144
145 * config/sh/sh-mem.cc: Use constant as second operand when emitting
146 tstsi_t insns.
147
148 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
149
150 PR target/55212
151 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
152 constant load if constant operand fits into I08.
153
154 2015-01-08 Jakub Jelinek <jakub@redhat.com>
155
156 PR sanitizer/64336
157 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
158 and TREE_THIS_VOLATILE for MEM_REFs.
159 (build5_stat): Fix up initialization of TREE_READONLY and
160 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
161
162 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
163
164 PR target/64533
165 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
166 of r for the second alternative of the destination operand.
167
168 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
169
170 PR target/36557
171 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
172
173 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
174
175 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
176 keywords.
177 ([-fivar-visibility], [-fvisibility]): Likewise.
178
179 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
180
181 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
182 the file where @code, @command, etc is more appropriate.
183
184 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
185
186 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
187 of -mrecip= documentation.
188
189 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
190
191 PR target/64505
192 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
193 correct reload handler if -m32 -mpowerpc64 is used.
194
195 2015-01-06 Tom de Vries <tom@codesourcery.com>
196
197 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
198
199 2015-01-08 Christian Bruel <christian.bruel@st.com>
200
201 PR target/64507
202 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
203
204 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
205
206 PR tree-optimization/63259
207 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
208 if optab exists for 16bit byteswap.
209
210 2015-01-06 Jakub Jelinek <jakub@redhat.com>
211
212 * opts.c (common_handle_option): Add support for
213 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
214 * doc/invoke.texi: Document -fno-sanitize=all,
215 -f{,no-}sanitize-recover=all. Document that
216 -fsanitize=float-cast-overflow is not enabled
217 by -fsanitize=undefined. Fix up documentation
218 of -f{,no-}sanitize-recover.
219
220 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
221
222 * config.gcc: Add Visium support.
223 * configure.ac: Likewise.
224 * configure: Regenerate.
225 * doc/extend.texi (interrupt attribute): Add Visium.
226 * doc/invoke.texi: Document Visium options.
227 * doc/install.texi: Document Visium target.
228 * doc/md.texi: Document Visium constraints.
229 * common/config/visium: New directory.
230 * config/visium: Likewise.
231
232 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
233
234 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
235 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
236
237 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
238
239 * combine.c (combine_validate_cost): Do not count the cost of a
240 split I2 twice. Do not display it twice in the dump, either.
241
242 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
243
244 Revert parts of r219199.
245 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
246 <inttypes.h>.
247 ([-Wtraditional]): Restore markup on <limits.h>.
248
249 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
250
251 PR c++/31397
252 * doc/invoke.texi: Document -Wsuggest-override.
253
254 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
255
256 PR rtl-optimization/64287
257 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
258 (process_options): Disable flag_ipa_ra if profiling.
259
260 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
261
262 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
263
264 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
265
266 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
267 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
268 put under #if TARGET_LOOPS guard.
269
270 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
271
272 * config/i386/i386.c (output_387_binary_op): Use std::swap.
273
274 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
275
276 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
277 * rtl.h (refers_to_regno_p): Add overload.
278 * cse.c: Use it.
279 * bt-load.c: Likewise.
280 * combine.c: Likewise.
281 * df-scan.c: Likewise.
282 * sched-deps.c: Likewise.
283 * config/s390/s390.c: Likewise.
284 * config/m32r/m32r.c: Likewise.
285 * config/rs6000/spe.md: Likewise.
286 * config/rs6000/rs6000.c: Likewise.
287 * config/pa/pa.c: Likewise.
288 * config/stormy16/stormy16.c: Likewise.
289 * config/cris/cris.c: Likewise.
290 * config/arc/arc.md: Likewise.
291 * config/arc/arc.c: Likewise.
292 * config/sh/sh.md: Likewise.
293 * config/sh/sh.c: Likewise.
294 * config/frv/frv.c: Likewise.
295
296 2015-01-05 Jakub Jelinek <jakub@redhat.com>
297
298 PR sanitizer/64265
299 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
300 call as cleanup of the whole body.
301 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
302 * tsan.c (replace_func_exit): New function.
303 (instrument_func_exit): Moved earlier.
304 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
305 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
306 been found.
307 (tsan_pass): Don't call instrument_func_exit.
308 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
309 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
310 inlining.
311
312 PR sanitizer/64344
313 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
314 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
315 it to libubsan handler instead of EXPR. Fold comparisons earlier,
316 if the result is integer_zerop, return NULL_TREE.
317 * convert.c (convert_to_integer): Pass expr as ARG.
318
319 PR tree-optimization/64465
320 * tree-inline.c (redirect_all_calls): During inlining
321 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
322 changed the stmt to a non-throwing call.
323
324 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
325
326 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
327 etc markup throughout the file.
328
329 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
330
331 Enable experimental TSAN support for Ada.
332 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
333
334 2015-01-05 Jakub Jelinek <jakub@redhat.com>
335
336 PR tree-optimization/64494
337 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
338 clear SSA_NAME_ANTI_RANGE_P flag.
339
340 2015-01-05 Marek Polacek <polacek@redhat.com>
341
342 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
343
344 2015-01-05 Jakub Jelinek <jakub@redhat.com>
345
346 Update copyright years.
347
348 * gcc.c (process_command): Update copyright notice dates.
349 * gcov-dump.c: Ditto.
350 * gcov.c: Ditto.
351 * doc/cpp.texi: Bump @copying's copyright year.
352 * doc/cppinternals.texi: Ditto.
353 * doc/gcc.texi: Ditto.
354 * doc/gccint.texi: Ditto.
355 * doc/gcov.texi: Ditto.
356 * doc/install.texi: Ditto.
357 * doc/invoke.texi: Ditto.
358
359 * auto-profile.c, auto-profile.h: Fix up Copyright line.
360
361 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
362
363 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
364 verb tense, etc.
365 ([-fvtable-verify], [-fvtv-debug]): Likewise.
366 ([-Wabi]): Likewise.
367 ([-fmessage-length]): Likewise.
368 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
369 ([-Wno-discarded-qualifiers]): Likewise.
370 ([-Wnodiscarded-array-qualifiers]): Likewise.
371 ([-Wno-virtual-move-assign]): Likewise.
372 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
373 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
374 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
375 ([-fsanitize-undefined-trap-on-error]): Likewise.
376 ([-floop-interchange]): Likewise.
377 ([-ftree-coalesce-inlined-vars]): Likewise.
378 ([-fvect-cost-model]): Likewise.
379 ([-flto]): Likewise.
380 ([--param]): Likewise.
381 (Spec Files): Likewise.
382 ([-mstrict-align]): Likewise.
383 ([-mfix-cortex-a53-835769]): Likewise.
384 ([-march], [-mtune]): Likewise.
385 ([-mpic-register]): Likewise.
386 ([-munaligned-access]): Likewise.
387 ([-msp8]): Likewise.
388 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
389 (AVR Built-in Macros): Likewise.
390 ([-mpreferred-stack-boundary]): Likewise.
391 ([-mtune-crtl]): Likewise.
392 ([-mashf]): Likewise.
393 ([-mmcu=]): Likewise.
394 ([-minrt]): Likewise.
395 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
396 ([-mupper-regs]): Likewise.
397 ([-matomic-model]): Likewise.
398 ([-mdiv]): Likewise.
399 ([-mzdcbranch]): Likewise.
400 ([-mdisable-callt]): Likewise.
401 ([-msoft-float]): Likewise.
402 ([-m8byte-align]): Likewise.
403 ([-fstack-reuse]): Likewise.
404
405 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
406
407 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
408 Fix markup, light copy-editing.
409 ([-fauto-profile]): Rewrite to fix formatting and content
410 problems.
411
412 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
413
414 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
415 Copy-edit description.
416 ([-fisolate-erroneous-paths-attribute]): Likewise.
417 * common.opt (fisolate-erroneous-paths-dereference):
418 Copy-edit description.
419 (fisolate-erroneous-paths-attribute): Likewise.
420
421 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
422
423 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
424 tidy grammar.
425
426 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
427
428 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
429 ([-fvtv-debug]): Likewise.
430 ([-Wc++-compat]): Likewise.
431 ([-Wc++11-compat]): Likewise.
432 ([-Wc++14-compat]): Likewise.
433 ([-Wno-sized-deallocation]): Likewise.
434 ([-femit-class-debug-always]): Likewise.
435 ([-femit-struct-debug-detailed]): Likewise.
436 ([-fno-keep-inline-dllexport]): Likewise.
437 ([-fira-algorithm]): Likewise.
438 ([-fira-region]): Likewise.
439 ([-flra-remat]): Likewise.
440 ([-fipa-ra]): Likewise.
441 ([-fhoist-adjacent-loads]): Likewise.
442 ([-fisolate-erroneous-paths-dereference]): Likewise.
443 ([-fisolate-erroneous-paths-attribute]): Likewise.
444 ([-ftree-switch-conversion]): Likewise.
445 ([-ftree-tail-merge]): Likewise.
446 ([-ftree-loop-if-convert]): Likewise.
447 ([-ftree-loop-if-convert-stores]): Likewise.
448 ([-ftree-loop-distribution]): Likewise.
449 ([-ftree-loop-distribute-patterns]): Likewise.
450 ([-flto-compression-level]): Likewise.
451 ([-flto-report]): Likewise.
452 ([-flto-report-wpa]): Likewise.
453 ([-fuse-linker-plugin]): Likewise.
454 ([-mfix-cortex-a53-835769]): Likewise.
455 ([-mno-fix-cortex-a53-835769]): Likewise.
456 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
457 explicit listing; add a note to the discussion indicating they
458 exist. Reorder table to group similar options. Add missing
459 @opindex entries. Add @need commands throughout the table to
460 allow it to be split across multiple pages.
461 ([-m8bit-idiv]): Fix @opindex.
462 ([-mavx256-split-unaligned-load]): Likewise.
463 ([-mavx256-split-unaligned-store]): Likewise.
464 ([-mstack-protector-guard]): Likewise.
465 ([-mcpu=]): Likewise.
466 ([-mcpu]): Likewise.
467 ([-mpointer-size=]): Likewise.
468
469 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
470
471 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
472 instead of `m' constraint. Likewise for unnamed movb comparison
473 patterns using reg_before_reload_operand predicate.
474 * config/pa/predicates.md (reg_before_reload_operand): Tighten
475 predicate to reject register index and LO_SUM DLT memory forms
476 after reload.
477
478 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
479
480 * doc/invoke.texi (Option Summary): Fix spelling of
481 -fdevirtualize-at-ltrans.
482 ([-fdevirtualize]): Fix markup.
483 ([-fdevirtualize-speculatively]): Fix typo.
484 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
485 implementor-speaky.
486 * common.opt (fdevirtualize-at-ltrans): Likewise.
487 * ipa-devirt.c: Fix typos in comments throughout the file.
488 (ipa_devirt): Fix typos in format strings for dump output.
489
490 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
491
492 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
493 discussion of defaults, light copy-editing.
494
495 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
496
497 * tsan.c (instrument_expr): corrected previous checkin.
498
499 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
500
501 Instrument bit field and unaligned accesses for TSAN.
502 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
503 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
504 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
505 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
506 unaligned memory regions.
507
508 2015-01-01 Anthony Green <green@moxielogic.com>
509
510 * config/moxie/predicates.md (moxie_general_movsrc_operand):
511 Restrict move source register offsets to 16 bits.
512 \f
513 Copyright (C) 2015 Free Software Foundation, Inc.
514
515 Copying and distribution of this file, with or without modification,
516 are permitted in any medium without royalty provided the copyright
517 notice and this notice are preserved.