re PR sanitizer/64336 (Template functions are not instrumented at -O0 and -Og)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
2
3         PR sanitizer/64336
4         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5         and TREE_THIS_VOLATILE for MEM_REFs.
6         (build5_stat): Fix up initialization of TREE_READONLY and
7         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
8
9 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10
11         PR target/64533
12         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
13         of r for the second alternative of the destination operand.
14
15 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
16
17         PR target/36557
18         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
19
20 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
21
22         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
23         keywords.
24         ([-fivar-visibility], [-fvisibility]): Likewise.
25
26 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
27
28         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
29         the file where @code, @command, etc is more appropriate.
30
31 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
32
33         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
34         of -mrecip= documentation.
35
36 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37
38         PR target/64505
39         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
40         correct reload handler if -m32 -mpowerpc64 is used.
41
42 2015-01-06  Tom de Vries  <tom@codesourcery.com>
43
44         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
45
46 2015-01-08  Christian Bruel  <christian.bruel@st.com>
47
48         PR target/64507
49         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
50
51 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
52
53         PR tree-optimization/63259
54         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
55         if optab exists for 16bit byteswap.
56
57 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
58
59         * opts.c (common_handle_option): Add support for
60         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
61         * doc/invoke.texi: Document -fno-sanitize=all,
62         -f{,no-}sanitize-recover=all.  Document that
63         -fsanitize=float-cast-overflow is not enabled
64         by -fsanitize=undefined.  Fix up documentation
65         of -f{,no-}sanitize-recover.
66
67 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
68
69         * config.gcc: Add Visium support.
70         * configure.ac: Likewise.
71         * configure: Regenerate.
72         * doc/extend.texi (interrupt attribute): Add Visium.
73         * doc/invoke.texi: Document Visium options.
74         * doc/install.texi: Document Visium target.
75         * doc/md.texi: Document Visium constraints.
76         * common/config/visium: New directory.
77         * config/visium: Likewise.
78
79 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
80
81         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
82         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
83
84 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
85
86         * combine.c (combine_validate_cost): Do not count the cost of a
87         split I2 twice.  Do not display it twice in the dump, either.
88
89 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
90
91         Revert parts of r219199.
92         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
93         <inttypes.h>.
94         ([-Wtraditional]): Restore markup on <limits.h>.
95
96 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
97
98         PR c++/31397
99         * doc/invoke.texi: Document -Wsuggest-override.
100
101 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
102
103         PR rtl-optimization/64287
104         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
105         (process_options): Disable flag_ipa_ra if profiling.
106
107 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
108
109         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
110
111 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
112
113         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
114         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
115         put under #if TARGET_LOOPS guard.
116
117 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
118
119         * config/i386/i386.c (output_387_binary_op): Use std::swap.
120
121 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
122
123         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
124         * rtl.h (refers_to_regno_p): Add overload.
125         * cse.c: Use it.
126         * bt-load.c: Likewise.
127         * combine.c: Likewise.
128         * df-scan.c: Likewise.
129         * sched-deps.c: Likewise.
130         * config/s390/s390.c: Likewise.
131         * config/m32r/m32r.c: Likewise.
132         * config/rs6000/spe.md: Likewise.
133         * config/rs6000/rs6000.c: Likewise.
134         * config/pa/pa.c: Likewise.
135         * config/stormy16/stormy16.c: Likewise.
136         * config/cris/cris.c: Likewise.
137         * config/arc/arc.md: Likewise.
138         * config/arc/arc.c: Likewise.
139         * config/sh/sh.md: Likewise.
140         * config/sh/sh.c: Likewise.
141         * config/frv/frv.c: Likewise.
142
143 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
144
145         PR sanitizer/64265
146         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
147         call as cleanup of the whole body.
148         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
149         * tsan.c (replace_func_exit): New function.
150         (instrument_func_exit): Moved earlier.
151         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
152         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
153         been found.
154         (tsan_pass): Don't call instrument_func_exit.
155         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
156         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
157         inlining.
158
159         PR sanitizer/64344
160         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
161         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
162         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
163         if the result is integer_zerop, return NULL_TREE.
164         * convert.c (convert_to_integer): Pass expr as ARG.
165
166         PR tree-optimization/64465
167         * tree-inline.c (redirect_all_calls): During inlining
168         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
169         changed the stmt to a non-throwing call.
170
171 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
172
173         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
174         etc markup throughout the file.
175
176 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
177
178         Enable experimental TSAN support for Ada.
179         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
180
181 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
182
183         PR tree-optimization/64494
184         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
185         clear SSA_NAME_ANTI_RANGE_P flag.
186
187 2015-01-05  Marek Polacek  <polacek@redhat.com>
188
189         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
190
191 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
192
193         Update copyright years.
194
195         * gcc.c (process_command): Update copyright notice dates.
196         * gcov-dump.c: Ditto.
197         * gcov.c: Ditto.
198         * doc/cpp.texi: Bump @copying's copyright year.
199         * doc/cppinternals.texi: Ditto.
200         * doc/gcc.texi: Ditto.
201         * doc/gccint.texi: Ditto.
202         * doc/gcov.texi: Ditto.
203         * doc/install.texi: Ditto.
204         * doc/invoke.texi: Ditto.
205
206         * auto-profile.c, auto-profile.h: Fix up Copyright line.
207
208 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
209
210         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
211         verb tense, etc.
212         ([-fvtable-verify], [-fvtv-debug]): Likewise.
213         ([-Wabi]): Likewise.
214         ([-fmessage-length]): Likewise.
215         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
216         ([-Wno-discarded-qualifiers]): Likewise.
217         ([-Wnodiscarded-array-qualifiers]): Likewise.
218         ([-Wno-virtual-move-assign]): Likewise.
219         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
220         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
221         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
222         ([-fsanitize-undefined-trap-on-error]): Likewise.
223         ([-floop-interchange]): Likewise.
224         ([-ftree-coalesce-inlined-vars]): Likewise.
225         ([-fvect-cost-model]): Likewise.
226         ([-flto]): Likewise.
227         ([--param]): Likewise.
228         (Spec Files): Likewise.
229         ([-mstrict-align]): Likewise.
230         ([-mfix-cortex-a53-835769]): Likewise.
231         ([-march], [-mtune]): Likewise.
232         ([-mpic-register]): Likewise.
233         ([-munaligned-access]): Likewise.
234         ([-msp8]): Likewise.
235         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
236         (AVR Built-in Macros): Likewise.
237         ([-mpreferred-stack-boundary]): Likewise.
238         ([-mtune-crtl]): Likewise.
239         ([-mashf]): Likewise.
240         ([-mmcu=]): Likewise.
241         ([-minrt]): Likewise.
242         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
243         ([-mupper-regs]): Likewise.
244         ([-matomic-model]): Likewise.
245         ([-mdiv]): Likewise.
246         ([-mzdcbranch]): Likewise.
247         ([-mdisable-callt]): Likewise.
248         ([-msoft-float]): Likewise.
249         ([-m8byte-align]): Likewise.
250         ([-fstack-reuse]): Likewise.
251
252 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
253
254         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
255         Fix markup, light copy-editing.
256         ([-fauto-profile]): Rewrite to fix formatting and content
257         problems.
258
259 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
260
261         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
262         Copy-edit description.
263         ([-fisolate-erroneous-paths-attribute]): Likewise.
264         * common.opt (fisolate-erroneous-paths-dereference):
265         Copy-edit description.
266         (fisolate-erroneous-paths-attribute): Likewise.
267
268 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
269
270         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
271         tidy grammar.
272
273 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
274
275         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
276         ([-fvtv-debug]): Likewise.
277         ([-Wc++-compat]): Likewise.
278         ([-Wc++11-compat]): Likewise.
279         ([-Wc++14-compat]): Likewise.
280         ([-Wno-sized-deallocation]): Likewise.
281         ([-femit-class-debug-always]): Likewise.
282         ([-femit-struct-debug-detailed]): Likewise.
283         ([-fno-keep-inline-dllexport]): Likewise.
284         ([-fira-algorithm]): Likewise.
285         ([-fira-region]): Likewise.
286         ([-flra-remat]): Likewise.
287         ([-fipa-ra]): Likewise.
288         ([-fhoist-adjacent-loads]): Likewise.
289         ([-fisolate-erroneous-paths-dereference]): Likewise.
290         ([-fisolate-erroneous-paths-attribute]): Likewise.
291         ([-ftree-switch-conversion]): Likewise.
292         ([-ftree-tail-merge]): Likewise.
293         ([-ftree-loop-if-convert]): Likewise.
294         ([-ftree-loop-if-convert-stores]): Likewise.
295         ([-ftree-loop-distribution]): Likewise.
296         ([-ftree-loop-distribute-patterns]): Likewise.
297         ([-flto-compression-level]): Likewise.
298         ([-flto-report]): Likewise.
299         ([-flto-report-wpa]): Likewise.
300         ([-fuse-linker-plugin]): Likewise.
301         ([-mfix-cortex-a53-835769]): Likewise.
302         ([-mno-fix-cortex-a53-835769]): Likewise.
303         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
304         explicit listing; add a note to the discussion indicating they
305         exist.  Reorder table to group similar options.  Add missing
306         @opindex entries.  Add @need commands throughout the table to
307         allow it to be split across multiple pages.
308         ([-m8bit-idiv]): Fix @opindex.
309         ([-mavx256-split-unaligned-load]): Likewise.
310         ([-mavx256-split-unaligned-store]): Likewise.
311         ([-mstack-protector-guard]): Likewise.
312         ([-mcpu=]): Likewise.
313         ([-mcpu]): Likewise.
314         ([-mpointer-size=]): Likewise.
315
316 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
317
318         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
319         instead of `m' constraint.  Likewise for unnamed movb comparison
320         patterns using reg_before_reload_operand predicate.
321         * config/pa/predicates.md (reg_before_reload_operand): Tighten
322         predicate to reject register index and LO_SUM DLT memory forms
323         after reload.
324
325 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
326
327         * doc/invoke.texi (Option Summary): Fix spelling of
328         -fdevirtualize-at-ltrans.
329         ([-fdevirtualize]): Fix markup.
330         ([-fdevirtualize-speculatively]): Fix typo.
331         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
332         implementor-speaky.
333         * common.opt (fdevirtualize-at-ltrans): Likewise.
334         * ipa-devirt.c: Fix typos in comments throughout the file.
335         (ipa_devirt): Fix typos in format strings for dump output.
336
337 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
338
339         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
340         discussion of defaults, light copy-editing.
341
342 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
343
344         * tsan.c (instrument_expr): corrected previous checkin.
345
346 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
347
348         Instrument bit field and unaligned accesses for TSAN.
349         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
350         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
351         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
352         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
353         unaligned memory regions.
354
355 2015-01-01  Anthony Green  <green@moxielogic.com>
356
357         * config/moxie/predicates.md (moxie_general_movsrc_operand):
358         Restrict move source register offsets to 16 bits.
359 \f
360 Copyright (C) 2015 Free Software Foundation, Inc.
361
362 Copying and distribution of this file, with or without modification,
363 are permitted in any medium without royalty provided the copyright
364 notice and this notice are preserved.