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