diff options
author | Richard Stallman <rms@gnu.org> | 1992-04-25 01:51:43 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-04-25 01:51:43 +0000 |
commit | 9a631e8e94fa51e132f7c6c6d6c2098cc68c5518 (patch) | |
tree | a934b7089f99f5698e0d2c77ab9e66938e5679e0 /gcc/c-common.c | |
parent | c53a8ab63a01bb24b6139345144f93a8abd5b05b (diff) | |
download | gcc-9a631e8e94fa51e132f7c6c6d6c2098cc68c5518.zip gcc-9a631e8e94fa51e132f7c6c6d6c2098cc68c5518.tar.gz gcc-9a631e8e94fa51e132f7c6c6d6c2098cc68c5518.tar.bz2 |
*** empty log message ***
From-SVN: r832
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 91043fd..a59a226 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -165,8 +165,7 @@ decl_attributes (decl, attributes) if (!strcmp (specified_name, GET_MODE_NAME (i))) { tree type - = type_for_size (GET_MODE_BITSIZE (i), - TREE_UNSIGNED (TREE_TYPE (decl))); + = type_for_mode (i, TREE_UNSIGNED (TREE_TYPE (decl))); if (type != 0) { TREE_TYPE (decl) = type; @@ -175,6 +174,7 @@ decl_attributes (decl, attributes) } else error ("no data type for mode `%s'", specified_name); + break; } if (i == NUM_MACHINE_MODES) error ("unknown machine mode `%s'", specified_name); @@ -187,12 +187,12 @@ decl_attributes (decl, attributes) * BITS_PER_UNIT; if (exact_log2 (align) == -1) - warning_with_decl (decl, - "requested alignment of `%s' is not a power of 2"); + error_with_decl (decl, + "requested alignment of `%s' is not a power of 2"); else if (TREE_CODE (decl) != VAR_DECL && TREE_CODE (decl) != FIELD_DECL) - warning_with_decl (decl, - "alignment specified for `%s' which is not a variable"); + error_with_decl (decl, + "alignment specified for `%s', not a variable"); else DECL_ALIGN (decl) = align; } @@ -208,8 +208,8 @@ decl_attributes (decl, attributes) if (TREE_CODE (decl) != FUNCTION_DECL) { - warning_with_decl (decl, - "argument format specified for non-function `%s'"); + error_with_decl (decl, + "argument format specified for non-function `%s'"); return; } @@ -219,13 +219,13 @@ decl_attributes (decl, attributes) is_scan = 1; else { - warning_with_decl (decl,"unrecognized format specifier for `%s'"); + error_with_decl (decl, "unrecognized format specifier for `%s'"); return; } if (first_arg_num != 0 && first_arg_num <= format_num) { - warning_with_decl (decl, + error_with_decl (decl, "format string arg follows the args to be formatted, for `%s'"); return; } |