浏览代码

* turn the recently added 3357 warning into an error, to avoid another compiler IE later

git-svn-id: trunk@47105 -
Károly Balogh 4 年之前
父节点
当前提交
7a1903cc8f
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      compiler/msg/errore.msg
  2. 1 1
      compiler/msgidx.inc
  3. 1 1
      compiler/msgtxt.inc
  4. 1 1
      compiler/powerpc/cpupara.pas

+ 1 - 1
compiler/msg/errore.msg

@@ -1615,7 +1615,7 @@ parser_e_generic_constraints_not_allowed_here=03355_E_Generic constraint not all
 % in delphi mode, a constraint might not be specified in the header of the implementation.
 parser_e_location_size_too_small=03356_E_Explicit location is too small for parameter
 % AmigaOS/MorphOS syscall specific: for int64/qword parameter only a single register location is specified
-parser_w_location_size_too_large=03357_W_Explicit location size is larger than required by parameter
+parser_e_location_size_too_large=03357_E_Explicit location size is larger than required by parameter
 % AmigaOS/MorphOS syscall specific: for a parameter which is smaller than 64bit, a register pair is specified
 parser_e_location_regpair_only_data=03358_E_Only data registers are supported for explicit location register pairs
 % AmigaOS/MorphOS syscall specific: for 64bit register pairs, only data registers are supported

+ 1 - 1
compiler/msgidx.inc

@@ -467,7 +467,7 @@ const
   parser_e_method_for_type_in_other_unit=03354;
   parser_e_generic_constraints_not_allowed_here=03355;
   parser_e_location_size_too_small=03356;
-  parser_w_location_size_too_large=03357;
+  parser_e_location_size_too_large=03357;
   parser_e_location_regpair_only_data=03358;
   parser_e_location_regpair_only_consecutive=03359;
   type_e_mismatch=04000;

+ 1 - 1
compiler/msgtxt.inc

@@ -586,7 +586,7 @@ const msgtxt : array[0..000358,1..240] of char=(
   '03354_E_Implementing a method for type "$1" declared in another unit'#000+
   '03355_E_Generic constraint not allowed here'#000+
   '0335','6_E_Explicit location is too small for parameter'#000+
-  '03357_W_Explicit location size is larger than required by parameter'#000+
+  '03357_E_Explicit location size is larger than required by parameter'#000+
   '03358_E_Only data registers are supported for explicit location regist'+
   'er pairs'#000+
   '03359_E_Only consecutive registers are suppo','rted for explicit locati'+

+ 1 - 1
compiler/powerpc/cpupara.pas

@@ -726,7 +726,7 @@ unit cpupara;
                        message(parser_e_location_regpair_only_consecutive);
 
                      if tcgsize2size[paracgsize]<=4 then
-                       message(parser_w_location_size_too_large);
+                       message(parser_e_location_size_too_large);
 
                      if tcgsize2size[paracgsize]>8 then
                        message(parser_e_location_size_too_small);