diff options
author | Tristan Gingold | 2013-12-17 06:25:53 +0100 |
---|---|---|
committer | Tristan Gingold | 2013-12-17 06:25:53 +0100 |
commit | 48448a12ef628218db298d8b7c6879e28cdd019a (patch) | |
tree | 7e612d41dc01c435cf32e3cee029b429c9362bb9 /ortho/debug | |
parent | 04ad1cd54d99fc3ac3d82c69ee5f7c2db7e2275a (diff) | |
download | ghdl-48448a12ef628218db298d8b7c6879e28cdd019a.tar.gz ghdl-48448a12ef628218db298d8b7c6879e28cdd019a.tar.bz2 ghdl-48448a12ef628218db298d8b7c6879e28cdd019a.zip |
Sync tree: add parsing of AMS-VHDL, add Darwin syntax in asm files.
Diffstat (limited to 'ortho/debug')
-rw-r--r-- | ortho/debug/ortho_debug.adb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ortho/debug/ortho_debug.adb b/ortho/debug/ortho_debug.adb index 633fe70..e2307b9 100644 --- a/ortho/debug/ortho_debug.adb +++ b/ortho/debug/ortho_debug.adb @@ -1307,11 +1307,13 @@ package body Ortho_Debug is Add_Decl (Res); end New_Const_Decl; + -- Const is not modified + pragma Warnings (Off, "*is not modified"); + procedure Start_Const_Value (Const : in out O_Dnode) is subtype O_Dnode_Const_Value is O_Dnode_Type (ON_Const_Value); N : O_Dnode; - Temp : constant O_Dnode := Const; begin if Const.Const_Value /= O_Dnode_Null then -- Constant already has a value. @@ -1334,16 +1336,13 @@ package body Ortho_Debug is Lineno => 0, Const_Decl => Const, Value => O_Cnode_Null); - Temp.Const_Value := N; - Const := Temp; + Const.Const_Value := N; Add_Decl (N, False); end Start_Const_Value; procedure Finish_Const_Value (Const : in out O_Dnode; Val : O_Cnode) is - Temp : constant O_Dnode := Const; begin - if Const.Const_Value = O_Dnode_Null then -- Start_Const_Value not called. raise Syntax_Error; @@ -1357,10 +1356,11 @@ package body Ortho_Debug is raise Type_Error; end if; Check_Type (Val.Ctype, Const.Dtype); - Temp.Const_Value.Value := Val; - Const := Temp; + Const.Const_Value.Value := Val; end Finish_Const_Value; + pragma Warnings (On, "*is not modified"); + procedure New_Var_Decl (Res : out O_Dnode; Ident : O_Ident; |