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