* tree-vrp.c (check_array_ref): Emit more warnings
[official-gcc.git] / gcc / testsuite / ChangeLog
blobc07074bae8a45cc4076da1c65e22a7072b7681c3
1 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
3         * gcc.dg/Warray-bounds-11.c: New test-case.
5 2015-01-14  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7         * gcc.target/mips/octeon3-pipe-1.c: New test.
9 2015-01-13  David Malcolm  <dmalcolm@redhat.com>
11         * jit.dg/harness.h (set_up_logging): Move string concatenation
12         into...
13         (concat_strings): New function.
14         (dump_reproducer): New function.
15         (test_jit): Call dump_reproducer.
16         * jit.dg/jit.exp (is_testcase_meant_to_generate_a_reproducer): New
17         function.
18         (jit-dg-test): Delete any generated reproducer from previous runs.
19         Verify that a generated reproducer was created, and verify that it
20         compiles.
21         * jit.dg/test-nested-contexts.c (main): Call
22         gcc_jit_context_dump_reproducer_to_file.
24 2015-01-13  H.J. Lu  <hongjiu.lu@intel.com>
26         * gcc.dg/aru-2.c: Add dg-require-profiling.
28 2015-01-13  H.J. Lu  <hongjiu.lu@intel.com>
30         * lib/target-supports.exp (check_profiling_available): Check if
31         -pg links.
33 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
35         PR ipa/64565
36         * g++.dg/torture/pr64565.C: New testcase.
38 2015-01-13  Marek Polacek  <polacek@redhat.com>
40         PR middle-end/64391
41         * gcc.dg/tm/pr64391.c: New test.
43 2015-01-13  H.J. Lu  <hongjiu.lu@intel.com>
45         * gcc.dg/tree-ssa/ssa-store-ccp-3.c: Exclude pie when nonpic is
46         true.
48 2015-01-13  H.J. Lu  <hongjiu.lu@intel.com>
50         * gcc.target/i386/pie.c: New test.
52         * lib/target-supports.exp (check_effective_target_pie): New.
54 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
56         PR rtl-optimization/64286
57         * gcc.target/i386/avx2-pr64286.c: New test.
59 2015-01-13  Paolo Carlini  <paolo.carlini@oracle.com>
61         PR c++/57626
62         * g++.dg/cpp0x/vt-57626.C: New.
64 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
66         PR fortran/64528
67         * gfortran.dg/pr64528.f90: New test.
69 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
71         * gcc.target/aarch64/subsp.c: New test.
73 2015-01-13  Andrew Pinski  <apinski@cavium.com>
75         * gcc.target/aarch64/store-pair-1.c: New testcase.
77 2015-01-13  Richard Biener  <rguenther@suse.de>
79         PR lto/64373
80         * gcc.dg/lto/pr64373_0.c: New testcase.
82 2015-01-13  Andrew Pinski  <apinski@cavium.com>
84         * gcc.target/aarch64/volatileloadpair-1.c: New testcase.
85         * gcc.target/aarch64/volatileloadpair-2.c: New testcase.
87 2015-01-13  Richard Biener  <rguenther@suse.de>
89         PR tree-optimization/64406
90         * gcc.dg/pr64406.c: New testcase.
92 2015-01-13  Richard Biener  <rguenther@suse.de>
94         PR tree-optimization/64404
95         * gcc.dg/vect/pr64404.c: New testcase.
97 2014-01-13  Richard Biener  <rguenther@suse.de>
99         PR tree-optimization/64568
100         * g++.dg/torture/pr64568.C: New testcase.
102 2015-01-12  David Malcolm  <dmalcolm@redhat.com>
104         * jit.dg/test-error-local-used-from-other-function.c: New test
105         case.
106         * jit.dg/test-error-param-reuse.c: New test case.
107         * jit.dg/test-error-param-sharing.c: New test case.
108         * jit.dg/test-error-param-used-from-other-function.c: New test
109         case.
110         * jit.dg/test-error-param-used-without-a-function.c: New test
111         case.
113 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
115         PR tree-optimization/64563
116         * gcc.dg/pr64563.c: New test.
118         PR target/64513
119         * gcc.target/i386/pr64513.c: New test.
121         PR tree-optimization/64454
122         * gcc.dg/pr64454.c: New test.
124         PR testsuite/64028
125         * gcc.dg/vect/no-section-anchors-vect-31.c: Add dg-add-options
126         bind_pic_locally.
127         * gcc.dg/vect/no-section-anchors-vect-34.c: Likewise.
128         * gcc.dg/vect/no-section-anchors-vect-36.c: Likewise.
129         * gcc.dg/vect/no-section-anchors-vect-64.c: Likewise.
130         * gcc.dg/vect/no-section-anchors-vect-65.c: Likewise.
131         * gcc.dg/vect/no-section-anchors-vect-68.c: Likewise.
132         * gcc.dg/vect/no-section-anchors-vect-69.c: Likewise.
133         * gcc.dg/vect/slp-25.c: Likewise.
134         * gcc.dg/vect/vect-109.c: Likewise.
135         * gcc.dg/vect/vect-13.c: Likewise.
136         * gcc.dg/vect/vect-17.c: Likewise.
137         * gcc.dg/vect/vect-18.c: Likewise.
138         * gcc.dg/vect/vect-19.c: Likewise.
139         * gcc.dg/vect/vect-20.c: Likewise.
140         * gcc.dg/vect/vect-21.c: Likewise.
141         * gcc.dg/vect/vect-22.c: Likewise.
142         * gcc.dg/vect/vect-27.c: Likewise.
143         * gcc.dg/vect/vect-29.c: Likewise.
144         * gcc.dg/vect/vect-2-big-array.c: Likewise.
145         * gcc.dg/vect/vect-2.c: Likewise.
146         * gcc.dg/vect/vect-3.c: Likewise.
147         * gcc.dg/vect/vect-4.c: Likewise.
148         * gcc.dg/vect/vect-5.c: Likewise.
149         * gcc.dg/vect/vect-72.c: Likewise.
150         * gcc.dg/vect/vect-73-big-array.c: Likewise.
151         * gcc.dg/vect/vect-73.c: Likewise.
152         * gcc.dg/vect/vect-77-global.c: Likewise.
153         * gcc.dg/vect/vect-78-global.c: Likewise.
154         * gcc.dg/vect/vect-7.c: Likewise.
155         * gcc.dg/vect/vect-86.c: Likewise.
156         * gcc.dg/vect/vect-align-1.c: Likewise.
157         * gcc.dg/vect/vect-align-3.c: Likewise.
158         * gcc.dg/vect/vect-all-big-array.c: Likewise.
159         * gcc.dg/vect/vect-all.c: Likewise.
160         * gcc.dg/vect/vect-multitypes-1.c: Likewise.
161         * gcc.dg/vect/vect-multitypes-4.c: Likewise.
162         * gcc.dg/vect/vect-peel-3.c: Likewise.
163         * gcc.dg/vect/vect-peel-4.c: Likewise.
164         * gcc.dg/vect/wrapv-vect-7.c: Likewise.
166 2015-01-12  Jeff Law  <law@redhat.com>
168         PR target/64461
169         * gcc.target/m68k/pr64461.c: New test.
171 2015-01-12  David Malcolm  <dmalcolm@redhat.com>
173         * jit.dg/test-array-as-pointer.c (create_code): Update call
174         to gcc_jit_context_new_global by setting "kind" to
175         GCC_JIT_GLOBAL_IMPORTED.
176         * jit.dg/test-error-array-as-pointer.c: Likewise.
177         * jit.dg/test-expressions.c (make_test_of_get_address): Likewise.
178         * jit.dg/test-fuzzer.c (make_random_global): Likewise, but
179         setting kind to GCC_JIT_GLOBAL_EXPORTED.
180         * jit.dg/test-using-global.c (the_global): Rename to...
181         (imported_global): ...this.
182         (create_code): Update to test the three kinds of global.
183         (verify_code): Likewise.
185 2015-01-12  Marc Glisse  <marc.glisse@inria.fr>
187         PR testsuite/64427
188         * gcc.target/i386/pr64291-1.c: Limit to lp64 tarrget.  Avoid
189         undefined behavior.
190         * gcc.target/i386/pr64291-2.c: Updated.
192 2015-01-12  Richard Biener  <rguenther@suse.de>
194         PR tree-optimization/64530
195         * gfortran.dg/pr64530.f90: New testcase.
197 2015-01-12  Richard Biener  <rguenther@suse.de>
199         PR middle-end/64357
200         * gcc.dg/torture/pr64357.c: New testcase.
202 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
204         * gcc.target/i386/nop-mcount.c: Properly place {} in target
205         selector.
207 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
208         * gcc.dg/plugin/ggcplug.c: Include gcc-plugin.h after coretypes.h.
210 2015-01-12  Martin Liska  <mliska@suse.cz>
212         * gcc.dg/ipa/PR64550.c: New test.
214 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
216         PR ipa/63470
217         * testsuite/g++.dg/ipa/pr63470.C: New testcase.
219 2015-01-11  Janus Weil  <janus@gcc.gnu.org>
221         PR fortran/63733
222         * gfortran.dg/typebound_operator_20.f90: New.
224 2015-01-11  Janus Weil  <janus@gcc.gnu.org>
226         PR fortran/58023
227         * gfortran.dg/proc_ptr_comp_42.f90: New.
229 2015-01-11  Janus Weil  <janus@gcc.gnu.org>
231         PR fortran/64508
232         * gfortran.dg/proc_ptr_comp_41.f90: New.
234 2015-01-11  Segher Boessenkool  <segher@kernel.crashing.org>
236         * gcc.target/powerpc/recip-test.h (_ARCH_PPC64): Use __LP64__ instead.
238 2015-01-10  Tobias Burnus  <burnus@net-b.de>
240         PR fortran/64522
241         * gfortran.dg/line_length_5.f90: Change dg-warning to dg-error
242         and add dg-excess-errors.
243         * gfortran.dg/line_length_6.f90: New.
244         * gfortran.dg/line_length_7.f90: New.
245         * gfortran.dg/line_length_8.f90: New.
246         * gfortran.dg/line_length_9.f90: New.
247         * gfortran.dg/line_length_10.f90: New.
248         * gfortran.dg/line_length_11.f90: New.
250 2015-01-09  David Malcolm  <dmalcolm@redhat.com>
252         * jit.dg/test-threads.c (struct testcase): Move declaration
253         to jit.dg/all-non-failing-tests.h.
254         (testcases): Likewise.
255         * jit.dg/all-non-failing-tests.h (struct testcase): Move
256         declaration here from jit.dg/all-non-failing-tests.h.
257         (testcases): Likewise.
258         * jit.dg/test-combination.c (create_code): Eliminate spelling
259         out all of the testcases in favor of looping through the
260         "testcases" metadata.
261         (verify_code): Likewise.
263 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
265         PR rtl-optimization/64536
266         * gcc.dg/pr64536.c: New test.
268 2015-01-09  David Malcolm  <dmalcolm@redhat.com>
270         * jit.dg/all-non-failing-tests.h: Add test-constants.c.
271         * jit.dg/test-combination.c (create_code): Likewise.
272         (verify_code): Likewise.
273         * jit.dg/test-constants.c: New test case.
274         * jit.dg/test-threads.c: Add test-constants.c.
276 2015-01-09  Dimitris Papavasiliou  <dpapavas@gmail.com>
278         PR libobjc/51891
279         * objc.dg/gnu-api-2-class.m: Add a test case
280         for the above change.
282 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
284         * gcc.dg/typeof-2.c: Add checks for non-atomic types.
286 2015-01-09  Richard Biener  <rguenther@suse.de>
288         PR tree-optimization/64410
289         * g++.dg/vect/pr64410.cc: New testcase.
291 2015-01-09  Martin Liska  <mliska@suse.cz>
293         * gcc.dg/ipa/ipa-icf-32.c: New test.
295 2015-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
297         * c-c++-common/tsan/tsan_barrier.h: New.
298         * c-c++-common/tsan/atomic_stack.c: Reworked to not depend on sleep.
299         * c-c++-common/tsan/bitfield_race.c: Likewise.
300         * c-c++-common/tsan/fd_pipe_race.c: Likewise.
301         * c-c++-common/tsan/mutexset1.c: Likewise.
302         * c-c++-common/tsan/race_on_barrier.c: Likewise.
303         * c-c++-common/tsan/race_on_mutex.c: Likewise.
304         * c-c++-common/tsan/race_on_mutex2.c: Likewise.
305         * c-c++-common/tsan/simple_race.c: Likewise.
306         * c-c++-common/tsan/simple_stack.c: Likewise.
307         * c-c++-common/tsan/sleep_sync.c: Likewise.
308         * c-c++-common/tsan/tiny_race.c: Likewise.
309         * c-c++-common/tsan/tls_race.c: Likewise.
310         * c-c++-common/tsan/write_in_reader_lock.c: Likewise.
311         * g++.dg/tsan/aligned_vs_unaligned_race.C: Likewise.
312         * g++.dg/tsan/atomic_free.C: Likewise.
313         * g++.dg/tsan/atomic_free2.C: Likewise.
314         * g++.dg/tsan/cond_race.C: Likewise.
315         * g++.dg/tsan/tsan_barrier.h: Copied from c-c++-common/tsan. 
317 2015-01-08  Hans-Peter Nilsson  <hp@axis.com>
319         PR testsuite/62250
320         * lib/target-supports.exp (check_effective_target_libatomic_available):
321         New.
322         * gfortran.dg/coarray/caf.exp: Only add -latomic for
323         targets that match effective-target libatomic_available.
324         * gfortran.dg/coarray_lib_comm_1.f90: Similar.
326 2015-01-08  David Malcolm  <dmalcolm@redhat.com>
328         * jit.dg/test-error-block-in-wrong-function.c (verify_code):
329         Verify the result of gcc_jit_context_get_last_error.
330         * jit.dg/test-error-null-passed-to-api.c (verify_code): Likewise.
332 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
334         PR tree-optimization/63989
335         * gcc.dg/strlenopt-27.c: New test.
337 2015-01-08  David Malcolm  <dmalcolm@redhat.com>
339         * jit.dg/harness.h (set_up_logging): New function.
340         (test_jit): Fail if gcc_jit_context_acquire fails.  Call
341         set_up_logging on the context, so that every testcase is
342         logged to a particular file.
343         * jit.dg/test-nested-contexts.c (main): Open a logfile,
344         and call gcc_jit_context_set_logfile on the top-level context.
346 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
348         PR target/64338
349         * g++.dg/opt/pr64338.C: New test.
351 2015-01-08  Tobias Burnus  <burnus@net-b.de>
353         * gfortran.dg/coarray/codimension_2b.f90: New file.
354         * gfortran.dg/coarray/codimension_2.f90: Add it to dg-extra-sources.
355         * gfortran.dg/coarray/codimension_2.f90: Call its subroutine.
357 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
359         PR c++/59004
360         * g++.dg/ext/fnname4.C: New.
362 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
364         PR c++/64462
365         * g++.dg/cpp0x/constexpr-64462.C: New.
367 2015-01-08  Paolo Carlini  <paolo.carlini@oracle.com>
369         PR c++/60753
370         * g++.dg/cpp0x/deleted10.C: New.
372 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
374         * jit.dg/test-error-dereferencing-void-ptr.c: New test case.
376 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
378         * jit.dg/test-expressions.c (make_tests_of_unary_ops): Add test of
379         GCC_JIT_UNARY_OP_ABS.
380         (verify_unary_ops): Likewise.
382 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
384         * jit.dg/test-arith-overflow.c: New test case.
385         * jit.dg/all-non-failing-tests.h: Add test-arith-overflow.c.
386         * jit.dg/test-combination.c (create_code): Likewise.
387         (verify_code): Likewise.
388         * jit.dg/test-threads.c (testcases): Likewise.
390 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
392         * jit.dg/jit.exp: Load wrapper.exp with %{tool} set to "g++"
393         rather than "jit".  Load g++.exp, and call g++_init.
394         Run test-*.cc files within the testsuite and *.cc files within
395         docs/examples.
396         (jit-dg-test): Drop the addition of -fgnu89-inline to
397         DEFAULT_CFLAGS in favor of adding it to additional_flags, only
398         doing it when compiling C testcases (since g++ does not handle
399         it).  Reset "orig_environment_saved" so that LD_LIBRARY_PATH
400         is restored to the value after g++_init ran, rather than the
401         value before g++_init ran.  Return a list of
402         $comp_output $output_file, as dg-test assumes.
404 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
406         * jit.dg/harness.h (CHECK_NON_NULL): Add __func__ to output, to
407         make it easier to figure out the origin of each test result when
408         running test-combination.c and test-threads.c.
409         (CHECK_VALUE): Likewise.
410         (CHECK_DOUBLE_VALUE): Likewise.
411         (CHECK_STRING_VALUE): Likewise.
412         (CHECK_STRING_STARTS_WITH): Likewise.
413         (CHECK_STRING_CONTAINS): Likewise.
414         (CHECK): Likewise.
415         (check_string_value): Likewise, add "funcname" param.
416         (check_string_starts_with): Likewise.
417         (check_string_contains): Likewise.
419 2015-01-07  David Malcolm  <dmalcolm@redhat.com>
421         * jit.dg/jit.exp (jit-dg-test): Remove "rootname" call when
422         generating name of built executable.
424 2015-01-07  Marek Polacek  <polacek@redhat.com>
426         PR c/64440
427         * gcc.dg/pr64440.c: New test.
428         * c-c++-common/pr56607.c: Don't limit dg-warnings to C++.
430 2015-01-07  Marek Polacek  <polacek@redhat.com>
432         PR c/64417
433         * gcc.c-torture/compile/pr28865.c: Add dg-errors.
434         * gcc.dg/pr64417.c: New test.
436 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
438         PR target/64505
439         * gcc.target/powerpc/pr64505.c: New file to test -m32 -mpowerpc64
440         fix is correct.
442 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
444         * lib/tsan-dg.exp (check_effective_target_fsanitize_thread):
445         Check if testcases run without errors, not just if they compile.
447 2015-01-06  Christian Bruel  <christian.bruel@st.com>
449         PR target/64507
450         * gcc.target/sh/pr64507.c: New test.
452 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
454         * gnat.db/fixce.adb, gnat.db/specs/delta_small.ads: Kill warnings.
456 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
458         * c-c++-common/asan/sanitize-all-1.c: New test.
459         * c-c++-common/ubsan/sanitize-all-1.c: New test.
460         * c-c++-common/ubsan/sanitize-all-2.c: New test.
461         * c-c++-common/ubsan/sanitize-all-3.c: New test.
462         * c-c++-common/ubsan/sanitize-all-4.c: New test.
464 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
466         * lib/target-supports.exp (check_profiling_available): Return 0 for
467         Visium.
468         (check_effective_target_tls_runtime): Likewise.
469         (check_effective_target_logical_op_short_circuit): Return 1 for Visium.
470         * gcc.dg/20020312-2.c: Adjust for Visium.
471         * gcc.dg/tls/thr-cse-1.c: Likewise
472         * gcc.dg/tree-ssa/20040204-1.c: Likewise
473         * gcc.dg/tree-ssa/loop-1.c: Likewise.
474         * gcc.dg/weak/typeof-2.c: Likewise.
476 2015-01-05  Radovan Obradovic <radovan.obradovic@imgtec.com>
478         PR rtl-optimization/64287
479         * gcc.dg/aru-2.c: New test.
481 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
483         PR sanitizer/64344
484         * c-c++-common/ubsan/pr64344-1.c: New test.
485         * c-c++-common/ubsan/pr64344-2.c: New test.
487         PR tree-optimization/64465
488         * gcc.dg/pr64465.c: New test.
490         PR tree-optimization/64494
491         * gcc.c-torture/compile/pr64494.c: New test.
493 2015-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
495         PR fortran/47674
496         * gfortran.dg/realloc_on_assign_25.f90:  New test.
498 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
500         Update copyright years.
502 2015-01-05  Marek Polacek  <polacek@redhat.com>
504         PR c/64423
505         * gcc.dg/pr64423.c: New test.
507 2015-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
509         * gcc.dg/debug/debug-1.c: Pass -fno-if-conversion for
510         mmix-knuth-mmixware for the same reason as for MIPS.
511         * gcc.dg/debug/debug-2.c: Ditto.
513         * gcc.dg/pr42629.c: Only pass scheduling options on scheduling targets.
515 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
517         PR testsuite/62250
518         * lib/gfortran.exp: Add libatomic library search path.
519         * gfortran.dg/coarray/caf.exp: Add -latomic to test options.
520         * gfortran.dg/coarray_lib_comm_1.f90: Likewise.
522         * gcc.dg/pr63914.c: Add -fno-common option on hppa*-*-hpux*.
524 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
526         * c-c++-common/tsan/bitfield_race.c: New testcase.
527         * g++.dg/tsan/aligned_vs_unaligned_race.C: Fixed.
529 2015-01-02  Tobias Burnus  <burnus@net-b.de>
531         * gfortran.dg/coarray/collectives_4.f90: New.
533 2015-01-02  Janus Weil  <janus@gcc.gnu.org>
535         PR fortran/57562
536         * gfortran.dg/extends_16.f90: New.
538 2015-01-02  Tobias Burnus  <burnus@net-b.de>
540         * gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Add.
542 2015-01-02  Tobias Burnus  <burnus@net-b.de>
544         * gfortran.dg/coarray/codimension_2.f90: New.
545         * gfortran.dg/coarray/codimension_2a.f90: New.
546         * gfortran.dg/coarray_35.f90: New.
547         * gfortran.dg/coarray_35a.f90: New.
549 2015-01-02  Janus Weil  <janus@gcc.gnu.org>
551         PR fortran/60507
552         * gfortran.dg/dummy_procedure_11.f90: New.
554 Copyright (C) 2015 Free Software Foundation, Inc.
556 Copying and distribution of this file, with or without modification,
557 are permitted in any medium without royalty provided the copyright
558 notice and this notice are preserved.