1 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
6 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
8 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
11 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
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.
19 2015-01-09 Richard Biener <rguenther@suse.de>
21 PR tree-optimization/64410
22 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
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.
28 2015-01-09 Martin Liska <mliska@suse.cz>
30 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32 (func_checker::compare_memory_operand): New function.
33 (func_checker::compare_operand): Split case to newly
35 (func_checker::compare_cst_or_decl): New function.
36 (func_checker::compare_gimple_call): Identify
38 (func_checker::compare_gimple_assign): Likewise.
39 * ipa-icf-gimple.h: New function.
41 2015-01-09 Martin Liska <mliska@suse.cz>
44 * sreal.c (sreal::dump): Change unsigned format to signed for
46 (sreal::to_double): Replace exp2 with scalbln.
48 2015-01-09 Martin Liska <mliska@suse.cz>
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.
56 2015-01-09 Tom de Vries <tom@codesourcery.com>
58 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
60 2015-01-09 Kito Cheng <kito@0xlab.org>
62 PR rtl-optimization/64348
63 * lra-constraints.c (split_reg): Fix caller-save store/restore
64 instruction generation.
66 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
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.
73 2015-01-08 Jakub Jelinek <jakub@redhat.com>
75 PR tree-optimization/63989
76 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
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.
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.
95 2015-01-08 Jason Merrill <jason@redhat.com>
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.
102 2015-01-08 Jakub Jelinek <jakub@redhat.com>
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.
111 2015-01-08 Mike Stump <mikestump@comcast.net>
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
118 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
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
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
132 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
134 * config/sh/sh-mem.cc: Use constant as second operand when emitting
137 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
140 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
141 constant load if constant operand fits into I08.
143 2015-01-08 Jakub Jelinek <jakub@redhat.com>
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.
151 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
154 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
155 of r for the second alternative of the destination operand.
157 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
160 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
162 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
164 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
166 ([-fivar-visibility], [-fvisibility]): Likewise.
168 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
170 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
171 the file where @code, @command, etc is more appropriate.
173 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
175 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
176 of -mrecip= documentation.
178 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
181 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
182 correct reload handler if -m32 -mpowerpc64 is used.
184 2015-01-06 Tom de Vries <tom@codesourcery.com>
186 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
188 2015-01-08 Christian Bruel <christian.bruel@st.com>
191 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
193 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
195 PR tree-optimization/63259
196 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
197 if optab exists for 16bit byteswap.
199 2015-01-06 Jakub Jelinek <jakub@redhat.com>
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.
209 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
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.
221 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
223 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
224 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
226 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
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.
231 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
233 Revert parts of r219199.
234 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
236 ([-Wtraditional]): Restore markup on <limits.h>.
238 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
241 * doc/invoke.texi: Document -Wsuggest-override.
243 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
245 PR rtl-optimization/64287
246 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
247 (process_options): Disable flag_ipa_ra if profiling.
249 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
251 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
253 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
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.
259 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
261 * config/i386/i386.c (output_387_binary_op): Use std::swap.
263 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
265 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
266 * rtl.h (refers_to_regno_p): Add overload.
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.
285 2015-01-05 Jakub Jelinek <jakub@redhat.com>
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
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
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.
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.
313 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
315 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
316 etc markup throughout the file.
318 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
320 Enable experimental TSAN support for Ada.
321 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
323 2015-01-05 Jakub Jelinek <jakub@redhat.com>
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.
329 2015-01-05 Marek Polacek <polacek@redhat.com>
331 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
333 2015-01-05 Jakub Jelinek <jakub@redhat.com>
335 Update copyright years.
337 * gcc.c (process_command): Update copyright notice dates.
338 * gcov-dump.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.
348 * auto-profile.c, auto-profile.h: Fix up Copyright line.
350 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
352 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
354 ([-fvtable-verify], [-fvtv-debug]): 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.
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.
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.
388 ([-mzdcbranch]): Likewise.
389 ([-mdisable-callt]): Likewise.
390 ([-msoft-float]): Likewise.
391 ([-m8byte-align]): Likewise.
392 ([-fstack-reuse]): Likewise.
394 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
396 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
397 Fix markup, light copy-editing.
398 ([-fauto-profile]): Rewrite to fix formatting and content
401 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
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.
410 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
412 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
415 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
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.
456 ([-mpointer-size=]): Likewise.
458 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
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
467 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
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
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.
479 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
481 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
482 discussion of defaults, light copy-editing.
484 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
486 * tsan.c (instrument_expr): corrected previous checkin.
488 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
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.
497 2015-01-01 Anthony Green <green@moxielogic.com>
499 * config/moxie/predicates.md (moxie_general_movsrc_operand):
500 Restrict move source register offsets to 16 bits.
502 Copyright (C) 2015 Free Software Foundation, Inc.
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.