diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-05-07 19:24:08 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-05-07 19:24:08 +0100 |
commit | 76e591200f54226290ddb49b8ac6231a694bf882 (patch) | |
tree | 7b1b22bd8c37d6b86c345c614c9be753276cb862 /gcc/expr.cc | |
parent | 1139f38e798181572121657e5b267a9698edb62f (diff) | |
download | gcc-76e591200f54226290ddb49b8ac6231a694bf882.zip gcc-76e591200f54226290ddb49b8ac6231a694bf882.tar.gz gcc-76e591200f54226290ddb49b8ac6231a694bf882.tar.bz2 |
PR modula2/114133 bugfix constants must be cast prior to vararg call
This bug fix corrects the test codes below by converting the constant
literals to the type required by C. In the testcases below the values, 1
etc were converted into the INTEGER type before being passed to a C
vararg function. By default in modula2 constant literal ordinals are
represented as the ZTYPE (the largest GCC integer type node).
gcc/testsuite/ChangeLog:
PR modula2/114133
* gm2/extensions/run/pass/callingc10.mod: Convert constant
literal numbers into INTEGER.
* gm2/extensions/run/pass/callingc11.mod: Ditto.
* gm2/extensions/run/pass/vararg2.mod: Ditto.
* gm2/iso/run/pass/packed.mod: Emit a printf as a runtime
diagnostic.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions