ソースを参照

* nostackframe now results in an error if used on pascal subroutines

git-svn-id: trunk@24910 -
florian 12 年 前
コミット
37df6f6455

+ 1 - 1
compiler/msg/errord.msg

@@ -1459,7 +1459,7 @@ parser_e_jvm_invalid_virtual_constructor_call=03321_E_Einen virtuellen Konstrukt
 % for the current instance inside another constructor.
 parser_e_method_lower_visibility=03322_E_Die �berschreibende Method "$1" kann keine niedrigere Sichtbarkeit ($2) haben als in der Elternklasse $3 ($4)
 % The JVM does not allow lowering the visibility of an overriding method.
-parser_w_nostackframe_without_assembler=03323_W_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME aber ohne ASSEMBLER deklariert 
+parser_e_nostackframe_without_assembler=03323_E_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME aber ohne ASSEMBLER deklariert 
 % nostackframe call modifier is supposed to be used in conjunction with assembler.
 parser_e_nostackframe_with_locals=03324_E_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME deklariert, aber die GrӇe des lokalen Stack ist $1
 % nostackframe call modifier used without assembler modifier

+ 1 - 1
compiler/msg/errordu.msg

@@ -1460,7 +1460,7 @@ parser_e_jvm_invalid_virtual_constructor_call=03321_E_Einen virtuellen Konstrukt
 % for the current instance inside another constructor.
 parser_e_method_lower_visibility=03322_E_Die überschreibende Method "$1" kann keine niedrigere Sichtbarkeit ($2) haben als in der Elternklasse $3 ($4)
 % The JVM does not allow lowering the visibility of an overriding method.
-parser_w_nostackframe_without_assembler=03323_W_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME aber ohne ASSEMBLER deklariert 
+parser_e_nostackframe_without_assembler=03323_E_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME aber ohne ASSEMBLER deklariert
 % nostackframe call modifier is supposed to be used in conjunction with assembler.
 parser_e_nostackframe_with_locals=03324_E_Prozedur/Funktion  mit der Aufrufoption NOSTACKFRAME deklariert, aber die Größe des lokalen Stack ist $1
 % nostackframe call modifier used without assembler modifier

+ 1 - 1
compiler/msg/errore.msg

@@ -1454,7 +1454,7 @@ parser_e_jvm_invalid_virtual_constructor_call=03321_E_Calling a virtual construc
 % for the current instance inside another constructor.
 parser_e_method_lower_visibility=03322_E_Overriding method "$1" cannot have a lower visibility ($2) than in parent class $3 ($4)
 % The JVM does not allow lowering the visibility of an overriding method.
-parser_w_nostackframe_without_assembler=03323_W_Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER
+parser_e_nostackframe_without_assembler=03323_E_Procedure/Function declared with call option NOSTACKFRAME but without ASSEMBLER
 % nostackframe call modifier is supposed to be used in conjunction with assembler.
 parser_e_nostackframe_with_locals=03324_E_Procedure/Function declared with call option NOSTACKFRAME but local stack size is $1
 % nostackframe call modifier used without assembler modifier

+ 2 - 2
compiler/msgidx.inc

@@ -420,7 +420,7 @@ const
   parser_e_feature_unsupported_for_vm=03320;
   parser_e_jvm_invalid_virtual_constructor_call=03321;
   parser_e_method_lower_visibility=03322;
-  parser_w_nostackframe_without_assembler=03323;
+  parser_e_nostackframe_without_assembler=03323;
   parser_e_nostackframe_with_locals=03324;
   parser_e_cannot_generate_property_getter_setter=03325;
   parser_w_overriding_property_getter_setter=03326;
@@ -976,7 +976,7 @@ const
   option_info=11024;
   option_help_pages=11025;
 
-  MsgTxtSize = 69135;
+  MsgTxtSize = 69123;
 
   MsgIdxMax : array[1..20] of longint=(
     26,95,335,121,88,56,126,27,202,63,

ファイルの差分が大きいため隠しています
+ 196 - 196
compiler/msgtxt.inc


+ 1 - 1
compiler/pdecsub.pas

@@ -2930,7 +2930,7 @@ const
          end;
          if (po_nostackframe in pd.procoptions) and
             not (po_assembler in pd.procoptions) then
-           message(parser_w_nostackframe_without_assembler);
+           message(parser_e_nostackframe_without_assembler);
       end;
 
 

+ 1 - 1
tests/test/tnostackframe3.pp

@@ -1,4 +1,4 @@
-
+{ %fail }
 var
   x :longint;
 procedure test; nostackframe;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません