re PR rtl-optimization/64287 (Disable -fuse-caller-save when -pg is active)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
2
3         PR rtl-optimization/64287
4         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5         (process_options): Disable flag_ipa_ra if profiling.
6
7 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
8
9         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
10
11 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
12
13         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
14         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
15         put under #if TARGET_LOOPS guard.
16
17 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
18
19         * config/i386/i386.c (output_387_binary_op): Use std::swap.
20
21 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
22
23         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24         * rtl.h (refers_to_regno_p): Add overload.
25         * cse.c: Use it.
26         * bt-load.c: Likewise.
27         * combine.c: Likewise.
28         * df-scan.c: Likewise.
29         * sched-deps.c: Likewise.
30         * config/s390/s390.c: Likewise.
31         * config/m32r/m32r.c: Likewise.
32         * config/rs6000/spe.md: Likewise.
33         * config/rs6000/rs6000.c: Likewise.
34         * config/pa/pa.c: Likewise.
35         * config/stormy16/stormy16.c: Likewise.
36         * config/cris/cris.c: Likewise.
37         * config/arc/arc.md: Likewise.
38         * config/arc/arc.c: Likewise.
39         * config/sh/sh.md: Likewise.
40         * config/sh/sh.c: Likewise.
41         * config/frv/frv.c: Likewise.
42
43 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
44
45         PR sanitizer/64265
46         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
47         call as cleanup of the whole body.
48         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
49         * tsan.c (replace_func_exit): New function.
50         (instrument_func_exit): Moved earlier.
51         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
52         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
53         been found.
54         (tsan_pass): Don't call instrument_func_exit.
55         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
56         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
57         inlining.
58
59         PR sanitizer/64344
60         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
61         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
62         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
63         if the result is integer_zerop, return NULL_TREE.
64         * convert.c (convert_to_integer): Pass expr as ARG.
65
66         PR tree-optimization/64465
67         * tree-inline.c (redirect_all_calls): During inlining
68         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
69         changed the stmt to a non-throwing call.
70
71 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
72
73         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
74         etc markup throughout the file.
75
76 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
77
78         Enable experimental TSAN support for Ada.
79         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
80
81 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
82
83         PR tree-optimization/64494
84         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
85         clear SSA_NAME_ANTI_RANGE_P flag.
86
87 2015-01-05  Marek Polacek  <polacek@redhat.com>
88
89         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
90
91 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
92
93         Update copyright years.
94
95         * gcc.c (process_command): Update copyright notice dates.
96         * gcov-dump.c: Ditto.
97         * gcov.c: Ditto.
98         * doc/cpp.texi: Bump @copying's copyright year.
99         * doc/cppinternals.texi: Ditto.
100         * doc/gcc.texi: Ditto.
101         * doc/gccint.texi: Ditto.
102         * doc/gcov.texi: Ditto.
103         * doc/install.texi: Ditto.
104         * doc/invoke.texi: Ditto.
105
106         * auto-profile.c, auto-profile.h: Fix up Copyright line.
107
108 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
109
110         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
111         verb tense, etc.
112         ([-fvtable-verify], [-fvtv-debug]): Likewise.
113         ([-Wabi]): Likewise.
114         ([-fmessage-length]): Likewise.
115         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
116         ([-Wno-discarded-qualifiers]): Likewise.
117         ([-Wnodiscarded-array-qualifiers]): Likewise.
118         ([-Wno-virtual-move-assign]): Likewise.
119         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
120         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
121         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
122         ([-fsanitize-undefined-trap-on-error]): Likewise.
123         ([-floop-interchange]): Likewise.
124         ([-ftree-coalesce-inlined-vars]): Likewise.
125         ([-fvect-cost-model]): Likewise.
126         ([-flto]): Likewise.
127         ([--param]): Likewise.
128         (Spec Files): Likewise.
129         ([-mstrict-align]): Likewise.
130         ([-mfix-cortex-a53-835769]): Likewise.
131         ([-march], [-mtune]): Likewise.
132         ([-mpic-register]): Likewise.
133         ([-munaligned-access]): Likewise.
134         ([-msp8]): Likewise.
135         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
136         (AVR Built-in Macros): Likewise.
137         ([-mpreferred-stack-boundary]): Likewise.
138         ([-mtune-crtl]): Likewise.
139         ([-mashf]): Likewise.
140         ([-mmcu=]): Likewise.
141         ([-minrt]): Likewise.
142         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
143         ([-mupper-regs]): Likewise.
144         ([-matomic-model]): Likewise.
145         ([-mdiv]): Likewise.
146         ([-mzdcbranch]): Likewise.
147         ([-mdisable-callt]): Likewise.
148         ([-msoft-float]): Likewise.
149         ([-m8byte-align]): Likewise.
150         ([-fstack-reuse]): Likewise.
151
152 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
153
154         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
155         Fix markup, light copy-editing.
156         ([-fauto-profile]): Rewrite to fix formatting and content
157         problems.
158
159 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
160
161         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
162         Copy-edit description.
163         ([-fisolate-erroneous-paths-attribute]): Likewise.
164         * common.opt (fisolate-erroneous-paths-dereference):
165         Copy-edit description.
166         (fisolate-erroneous-paths-attribute): Likewise.
167
168 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
169
170         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
171         tidy grammar.
172
173 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
174
175         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
176         ([-fvtv-debug]): Likewise.
177         ([-Wc++-compat]): Likewise.
178         ([-Wc++11-compat]): Likewise.
179         ([-Wc++14-compat]): Likewise.
180         ([-Wno-sized-deallocation]): Likewise.
181         ([-femit-class-debug-always]): Likewise.
182         ([-femit-struct-debug-detailed]): Likewise.
183         ([-fno-keep-inline-dllexport]): Likewise.
184         ([-fira-algorithm]): Likewise.
185         ([-fira-region]): Likewise.
186         ([-flra-remat]): Likewise.
187         ([-fipa-ra]): Likewise.
188         ([-fhoist-adjacent-loads]): Likewise.
189         ([-fisolate-erroneous-paths-dereference]): Likewise.
190         ([-fisolate-erroneous-paths-attribute]): Likewise.
191         ([-ftree-switch-conversion]): Likewise.
192         ([-ftree-tail-merge]): Likewise.
193         ([-ftree-loop-if-convert]): Likewise.
194         ([-ftree-loop-if-convert-stores]): Likewise.
195         ([-ftree-loop-distribution]): Likewise.
196         ([-ftree-loop-distribute-patterns]): Likewise.
197         ([-flto-compression-level]): Likewise.
198         ([-flto-report]): Likewise.
199         ([-flto-report-wpa]): Likewise.
200         ([-fuse-linker-plugin]): Likewise.
201         ([-mfix-cortex-a53-835769]): Likewise.
202         ([-mno-fix-cortex-a53-835769]): Likewise.
203         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
204         explicit listing; add a note to the discussion indicating they
205         exist.  Reorder table to group similar options.  Add missing
206         @opindex entries.  Add @need commands throughout the table to
207         allow it to be split across multiple pages.
208         ([-m8bit-idiv]): Fix @opindex.
209         ([-mavx256-split-unaligned-load]): Likewise.
210         ([-mavx256-split-unaligned-store]): Likewise.
211         ([-mstack-protector-guard]): Likewise.
212         ([-mcpu=]): Likewise.
213         ([-mcpu]): Likewise.
214         ([-mpointer-size=]): Likewise.
215
216 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
217
218         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
219         instead of `m' constraint.  Likewise for unnamed movb comparison
220         patterns using reg_before_reload_operand predicate.
221         * config/pa/predicates.md (reg_before_reload_operand): Tighten
222         predicate to reject register index and LO_SUM DLT memory forms
223         after reload.
224
225 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
226
227         * doc/invoke.texi (Option Summary): Fix spelling of
228         -fdevirtualize-at-ltrans.
229         ([-fdevirtualize]): Fix markup.
230         ([-fdevirtualize-speculatively]): Fix typo.
231         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
232         implementor-speaky.
233         * common.opt (fdevirtualize-at-ltrans): Likewise.
234         * ipa-devirt.c: Fix typos in comments throughout the file.
235         (ipa_devirt): Fix typos in format strings for dump output.
236
237 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
238
239         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
240         discussion of defaults, light copy-editing.
241
242 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
243
244         * tsan.c (instrument_expr): corrected previous checkin.
245
246 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
247
248         Instrument bit field and unaligned accesses for TSAN.
249         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
250         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
251         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
252         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
253         unaligned memory regions.
254
255 2015-01-01  Anthony Green  <green@moxielogic.com>
256
257         * config/moxie/predicates.md (moxie_general_movsrc_operand):
258         Restrict move source register offsets to 16 bits.
259 \f
260 Copyright (C) 2015 Free Software Foundation, Inc.
261
262 Copying and distribution of this file, with or without modification,
263 are permitted in any medium without royalty provided the copyright
264 notice and this notice are preserved.