diff options
| author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-07 18:49:36 +0000 |
|---|---|---|
| committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-07 18:49:36 +0000 |
| commit | 16cb78b33539f59d7912a7b9a1fd33c27d3d3c50 (patch) | |
| tree | 15790a9a0fa2a93d8ffe3c058372c43f8aef3c20 /libjava/testsuite/libjava.compile/redef6.java | |
| parent | e1c1d65f9e6aec41933fc341df6bcbd797dbf7e7 (diff) | |
| download | ppe42-gcc-16cb78b33539f59d7912a7b9a1fd33c27d3d3c50.tar.gz ppe42-gcc-16cb78b33539f59d7912a7b9a1fd33c27d3d3c50.zip | |
PR c/14649
* c-typeck.c (require_constant_value, require_constant_elements):
Move declarations to the top of the file.
(build_function_call): If we require a constant value, fold with
fold_initializer. If the result is a constant, and the function
wasn't called using __builtin_foo, issue a pedantic warning.
(build_unary_op): If we require a constant value, fold tree with
fold_initializer.
(build_binary_op): Use require_constant_value to determine whether
to call fold or fold_initializer.
* gcc.dg/pr14649-1.c: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile/redef6.java')
0 files changed, 0 insertions, 0 deletions

