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