diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2014-10-15 10:24:36 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-10-15 10:24:36 +0000 |
commit | d110c3ed97ac3a7083fa32f7f1f53984ebdf1d92 (patch) | |
tree | cd386b20df090229accc3b268bc523735f189eed /gcc/stor-layout.c | |
parent | d73326ca59c975967be01add1918f0743c779bb4 (diff) | |
download | gcc-d110c3ed97ac3a7083fa32f7f1f53984ebdf1d92.zip gcc-d110c3ed97ac3a7083fa32f7f1f53984ebdf1d92.tar.gz gcc-d110c3ed97ac3a7083fa32f7f1f53984ebdf1d92.tar.bz2 |
* stor-layout.c (self_referential_size): Do not promote arguments.
From-SVN: r216249
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index c7b524c..a95722a 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -211,12 +211,7 @@ self_referential_size (tree size) param_type = TREE_TYPE (ref); param_decl = build_decl (input_location, PARM_DECL, param_name, param_type); - if (targetm.calls.promote_prototypes (NULL_TREE) - && INTEGRAL_TYPE_P (param_type) - && TYPE_PRECISION (param_type) < TYPE_PRECISION (integer_type_node)) - DECL_ARG_TYPE (param_decl) = integer_type_node; - else - DECL_ARG_TYPE (param_decl) = param_type; + DECL_ARG_TYPE (param_decl) = param_type; DECL_ARTIFICIAL (param_decl) = 1; TREE_READONLY (param_decl) = 1; |