gcc/libgomp
Bernd Edlinger 40ffd95f56 invoke.texi: Document the -Wsizeof-pointer-div warning.
gcc:
2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.

gcc/c-family:
2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c.opt (Wsizeof-pointer-div): New warning option.

gcc/c:
2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-parser.c (c_parser_binary_expression): Implement the
        -Wsizeof_pointer_div warning.
        (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
        from a parenthesized expression.
        (c_parser_expr_list): Use c_last_sizeof_loc.
        * c-tree.h (c_last_sizeof_loc): New external.
        * c-typeck.c (c_last_sizeof_loc): New variable.
        (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.

gcc/cp:
2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * typeck.c (cp_build_binary_op): Implement the -Wsizeof_pointer_div
        warning.

gcc/testsuite:
2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/Wsizeof-pointer-div.c: New test. 
        * gcc.dg/Wsizeof-pointer-memaccess1.c: Add test cases with parens.
        * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise.
        * gcc.target/i386/sse-init-v4hi-1.c: Fix test case.
        * gcc.target/i386/sse-init-v4sf-1.c: Likewise.
        * gcc.target/i386/sse-set-ps-1.c: Likewise.
        * gcc.target/i386/sse2-init-v16qi-1.c: Likewise.
        * gcc.target/i386/sse2-init-v2di-1.c: Likewise.
        * gcc.target/i386/sse2-init-v4si-1.c: Likewise.
        * gcc.target/i386/sse2-init-v8hi-1.c: Likewise.
        * gcc.target/i386/sse2-set-epi32-1.c: Likewise.
        * gcc.target/i386/sse2-set-epi64x-1.c: Likewise.
        * gcc.target/i386/sse4_1-init-v16qi-1.c: Likewise.
        * gcc.target/i386/sse4_1-init-v2di-1.c: Likewise.
        * gcc.target/i386/sse4_1-init-v4sf-1.c: Likewise.
        * gcc.target/i386/sse4_1-init-v4si-1.c: Likewise.
        * gcc.target/i386/sse4_1-set-epi32-1.c: Likewise.
        * gcc.target/i386/sse4_1-set-epi64x-1.c: Likewise.
        * gcc.target/i386/sse4_1-set-ps-1.c: Likewise.
        * libgomp.c/pr39591-2.c: Likewise.
        * libgomp.c/pr39591-3.c: Likewise.

From-SVN: r248811
2017-06-02 04:06:59 +00:00
..
config re PR libgomp/80822 (libgomp incorrect affinity when OMP_PLACES=threads) 2017-05-30 14:05:30 +02:00
plugin libgomp nvptx plugin: Debugging output when disabling nvptx offloading 2017-05-24 08:59:05 +02:00
testsuite invoke.texi: Document the -Wsizeof-pointer-div warning. 2017-06-02 04:06:59 +00:00
acinclude.m4
aclocal.m4 libgomp: regenerate with automake-1.11.6 2016-11-30 21:05:33 +03:00
affinity.c Update copyright years. 2017-01-01 13:07:43 +01:00
alloc.c Update copyright years. 2017-01-01 13:07:43 +01:00
atomic.c Update copyright years. 2017-01-01 13:07:43 +01:00
barrier.c Update copyright years. 2017-01-01 13:07:43 +01:00
ChangeLog invoke.texi: Document the -Wsizeof-pointer-div warning. 2017-06-02 04:06:59 +00:00
ChangeLog.graphite
config.h.in configfrag.ac: For --without-cuda-driver don't initialize CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. 2017-01-17 10:44:17 +01:00
configure configfrag.ac: For --without-cuda-driver don't initialize CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. 2017-01-17 10:44:17 +01:00
configure.ac re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) 2017-01-17 10:38:48 +01:00
configure.tgt re PR bootstrap/80531 (RC1 bootstrap comparison failure) 2017-04-27 22:03:01 +02:00
critical.c Update copyright years. 2017-01-01 13:07:43 +01:00
env.c re PR libgomp/79876 (FAIL: libgomp.fortran/strassen.f90 -O execution test on x86_64-apple-darwin16) 2017-04-04 12:41:33 +02:00
error.c Update copyright years. 2017-01-01 13:07:43 +01:00
fortran.c Update copyright years. 2017-01-01 13:07:43 +01:00
hashtab.h Update copyright years. 2017-01-01 13:07:43 +01:00
icv-device.c Update copyright years. 2017-01-01 13:07:43 +01:00
icv.c Update copyright years. 2017-01-01 13:07:43 +01:00
iter_ull.c Update copyright years. 2017-01-01 13:07:43 +01:00
iter.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgomp_f.h.in Update copyright years. 2017-01-01 13:07:43 +01:00
libgomp_g.h Update copyright years. 2017-01-01 13:07:43 +01:00
libgomp-plugin.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgomp-plugin.h libgomp: Normalize the names of a few functions of the libgomp plugin API 2017-02-02 15:13:57 +01:00
libgomp.h C/C++ OpenACC: acc_pcopyin, acc_pcreate 2017-05-24 15:23:34 +02:00
libgomp.map OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
libgomp.spec.in
libgomp.texi OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
lock.c Update copyright years. 2017-01-01 13:07:43 +01:00
loop_ull.c Update copyright years. 2017-01-01 13:07:43 +01:00
loop.c Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.am re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) 2017-01-17 10:38:48 +01:00
Makefile.in re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) 2017-01-17 10:38:48 +01:00
oacc-async.c OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
oacc-cuda.c Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-host.c Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-init.c Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-int.h Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-mem.c C/C++ OpenACC: acc_pcopyin, acc_pcreate 2017-05-24 15:23:34 +02:00
oacc-parallel.c Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-plugin.c Update copyright years. 2017-01-01 13:07:43 +01:00
oacc-plugin.h Update copyright years. 2017-01-01 13:07:43 +01:00
omp_lib.f90.in Update copyright years. 2017-01-01 13:07:43 +01:00
omp_lib.h.in Update copyright years. 2017-01-01 13:07:43 +01:00
omp.h.in Update copyright years. 2017-01-01 13:07:43 +01:00
openacc_lib.h OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
openacc.f90 OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
openacc.h OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all 2017-05-24 15:25:01 +02:00
ordered.c Update copyright years. 2017-01-01 13:07:43 +01:00
parallel.c Update copyright years. 2017-01-01 13:07:43 +01:00
priority_queue.c Update copyright years. 2017-01-01 13:07:43 +01:00
priority_queue.h Update copyright years. 2017-01-01 13:07:43 +01:00
sections.c Update copyright years. 2017-01-01 13:07:43 +01:00
single.c Update copyright years. 2017-01-01 13:07:43 +01:00
splay-tree.c Update copyright years. 2017-01-01 13:07:43 +01:00
splay-tree.h Update copyright years. 2017-01-01 13:07:43 +01:00
target.c libgomp: Normalize the names of a few functions of the libgomp plugin API 2017-02-02 15:13:57 +01:00
task.c Update copyright years. 2017-01-01 13:07:43 +01:00
taskloop.c Update copyright years. 2017-01-01 13:07:43 +01:00
team.c Update copyright years. 2017-01-01 13:07:43 +01:00
work.c Update copyright years. 2017-01-01 13:07:43 +01:00