Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37816317
en ru br
Репозитории ALT
S:0.0.8-alt7
5.1: 0.0.7-alt3
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: freehdl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: freehdl-0.0.8-gcc8-fix.patch
Скачать


diff --git a/freehdl/ieee/math_real.cc b/freehdl/ieee/math_real.cc
index 761a377..36dd779 100644
--- a/freehdl/ieee/math_real.cc
+++ b/freehdl/ieee/math_real.cc
@@ -254,6 +254,7 @@ void *L4ieee_Q12math_complex_T7complex_ELEM_ADDR(void *p, int i)
   case 0: return (void*)&obj.M2re;
   case 1: return (void*)&obj.M2im;
   };
+  return NULL;
 };
 L4ieee_Q12math_complex_I7complex L4ieee_Q12math_complex_I7complex_INFO;
 L4ieee_Q12math_complex_I14complex_vector L4ieee_Q12math_complex_I14complex_vector_INFO;
@@ -268,6 +269,7 @@ void *L4ieee_Q12math_complex_T13complex_polar_ELEM_ADDR(void *p, int i)
   case 0: return (void*)&obj.M3mag;
   case 1: return (void*)&obj.M3arg;
   };
+  return NULL;
 };
 L4ieee_Q12math_complex_I13complex_polar L4ieee_Q12math_complex_I13complex_polar_INFO;
 /* Initialization function for package :ieee:math_complex */
@@ -641,16 +643,19 @@ void L4ieee_Q9math_real_X7uniform_i36(integer &L4ieee_Q9math_real_X7uniform_i36_
 integer L4ieee_Q9math_real_Y5srand_i38(const integer L4ieee_Q9math_real_Y5srand_i38_C4seed)
 {
 /* NullStat impl */;
+    return 0;
 }
 /* Implementation of subprogram :ieee:math_real:rand */
 integer L4ieee_Q9math_real_Y4rand_i39()
 {
 /* NullStat impl */;
+    return 0;
 }
 /* Implementation of subprogram :ieee:math_real:get_rand_max */
 integer L4ieee_Q9math_real_Y12get_rand_max_i40()
 {
 /* NullStat impl */;
+    return 0;
 }
 enumeration L4ieee_W9math_real_itn8_lit[]={88,32,60,32,48,32,105,110,32,83,81,82,84,40,88,41};
 /* Implementation of subprogram :ieee:math_real:sqrt */
@@ -869,6 +874,7 @@ floatingpoint L4ieee_Q9math_real_Y3sin_i59(const floatingpoint L4ieee_Q9math_rea
       return (-L4ieee_W9math_real_Y6cordic_i59 (0.60725293500888144482,0.0,(L4ieee_Q9math_real_Y3sin_i59_C1x-(floatingpoint(L4ieee_Q9math_real_Y3sin_i59_V1n)*1.5707963267948965580)),27,enumeration(0))[0]);
      } break;
     }
+    return 0.0;
 }
 /* Implementation of subprogram :ieee:math_real:cos */
 floatingpoint L4ieee_Q9math_real_Y3cos_i61(const floatingpoint L4ieee_Q9math_real_Y3cos_i61_C1x)
@@ -893,6 +899,7 @@ floatingpoint L4ieee_Q9math_real_Y3cos_i61(const floatingpoint L4ieee_Q9math_rea
       return L4ieee_W9math_real_Y6cordic_i59 (0.60725293500888144482,0.0,(L4ieee_Q9math_real_Y3cos_i61_C1x-(floatingpoint(L4ieee_Q9math_real_Y3cos_i61_V1n)*1.5707963267948965580)),27,enumeration(0))[1];
      } break;
     }
+    return 0.0;
 }
 /* Implementation of subprogram :ieee:math_real:tan */
 floatingpoint L4ieee_Q9math_real_Y3tan_i63(const floatingpoint L4ieee_Q9math_real_Y3tan_i63_C1x)
diff --git a/freehdl/ieee/std_logic_1164.cc b/freehdl/ieee/std_logic_1164.cc
index b9a710c..c11dafa 100644
--- a/freehdl/ieee/std_logic_1164.cc
+++ b/freehdl/ieee/std_logic_1164.cc
@@ -711,6 +711,8 @@ enumeration L4ieee_Q14std_logic_1164_Y12to_stdulogic_i110(const enumeration L4ie
       return enumeration(3);
      } break;
     }
+    enumeration e;
+	return e;
 }
 /* Implementation of subprogram :ieee:std_logic_1164:to_stdlogicvector */
 L4ieee_Q14std_logic_1164_T16std_logic_vector L4ieee_Q14std_logic_1164_Y17to_stdlogicvector_i112(const L3std_Q8standard_T10bit_vector &L4ieee_Q14std_logic_1164_Y17to_stdlogicvector_i112_C1b)
@@ -860,6 +862,8 @@ enumeration L4ieee_Q14std_logic_1164_Y6to_x01_i130(const enumeration L4ieee_Q14s
       return enumeration(3);
      } break;
     }
+    enumeration e;
+	return e;
 }
 /* Implementation of subprogram :ieee:std_logic_1164:to_x01z */
 L4ieee_Q14std_logic_1164_T16std_logic_vector L4ieee_Q14std_logic_1164_Y7to_x01z_i132(const L4ieee_Q14std_logic_1164_T16std_logic_vector &L4ieee_Q14std_logic_1164_Y7to_x01z_i132_C1s)
@@ -943,6 +947,8 @@ enumeration L4ieee_Q14std_logic_1164_Y7to_x01z_i142(const enumeration L4ieee_Q14
       return enumeration(3);
      } break;
     }
+    enumeration e;
+	return e;
 }
 /* Implementation of subprogram :ieee:std_logic_1164:to_ux01 */
 L4ieee_Q14std_logic_1164_T16std_logic_vector L4ieee_Q14std_logic_1164_Y7to_ux01_i144(const L4ieee_Q14std_logic_1164_T16std_logic_vector &L4ieee_Q14std_logic_1164_Y7to_ux01_i144_C1s)
@@ -1026,6 +1032,8 @@ enumeration L4ieee_Q14std_logic_1164_Y7to_ux01_i154(const enumeration L4ieee_Q14
       return enumeration(3);
      } break;
     }
+    enumeration e;
+	return e;
 }
 /* Implementation of subprogram :ieee:std_logic_1164:rising_edge */
 enumeration L4ieee_Q14std_logic_1164_Y11rising_edge_i156(sig_info<enumeration> *L4ieee_Q14std_logic_1164_Y11rising_edge_i156_S1s,enumeration *L4ieee_Q14std_logic_1164_Y11rising_edge_i156_R1s)
diff --git a/freehdl/ieee/vital_timing.cc b/freehdl/ieee/vital_timing.cc
index 4bd269a..57c61f7 100644
--- a/freehdl/ieee/vital_timing.cc
+++ b/freehdl/ieee/vital_timing.cc
@@ -531,6 +531,7 @@ void *L4ieee_Q12vital_timing_T19vitaltimingdatatype_ELEM_ADDR(void *p, int i)
   case 9: return (void*)&obj.M7holdena;
   case 10: return (void*)&obj.M8setupena;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I19vitaltimingdatatype L4ieee_Q12vital_timing_I19vitaltimingdatatype_INFO;
 const char *L4ieee_Q12vital_timing_T19vitalperioddatatype_NAMES[] = {
@@ -548,6 +549,7 @@ void *L4ieee_Q12vital_timing_T19vitalperioddatatype_ELEM_ADDR(void *p, int i)
   case 2: return (void*)&obj.M4fall;
   case 3: return (void*)&obj.M12notfirstflag;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I19vitalperioddatatype L4ieee_Q12vital_timing_I19vitalperioddatatype_INFO;
 /* Implementation of enumeration type :ieee:vital_timing:vitalglitchkindtype */
@@ -568,6 +570,7 @@ void *L4ieee_Q12vital_timing_T19vitalglitchdatatype_ELEM_ADDR(void *p, int i)
   case 2: return (void*)&obj.M10schedvalue;
   case 3: return (void*)&obj.M9lastvalue;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I19vitalglitchdatatype L4ieee_Q12vital_timing_I19vitalglitchdatatype_INFO;
 L4ieee_Q12vital_timing_I24vitalglitchdataarraytype L4ieee_Q12vital_timing_I24vitalglitchdataarraytype_INFO;
@@ -584,6 +587,7 @@ void *L4ieee_Q12vital_timing_T13vitalpathtype_ELEM_ADDR(void *p, int i)
   case 1: return (void*)&obj.M9pathdelay;
   case 2: return (void*)&obj.M13pathcondition;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I13vitalpathtype L4ieee_Q12vital_timing_I13vitalpathtype_INFO;
 const char *L4ieee_Q12vital_timing_T15vitalpath01type_NAMES[] = {
@@ -599,6 +603,7 @@ void *L4ieee_Q12vital_timing_T15vitalpath01type_ELEM_ADDR(void *p, int i)
   case 1: return (void*)&obj.M9pathdelay;
   case 2: return (void*)&obj.M13pathcondition;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I15vitalpath01type L4ieee_Q12vital_timing_I15vitalpath01type_INFO;
 const char *L4ieee_Q12vital_timing_T16vitalpath01ztype_NAMES[] = {
@@ -614,6 +619,7 @@ void *L4ieee_Q12vital_timing_T16vitalpath01ztype_ELEM_ADDR(void *p, int i)
   case 1: return (void*)&obj.M9pathdelay;
   case 2: return (void*)&obj.M13pathcondition;
   };
+  return NULL;
 };
 L4ieee_Q12vital_timing_I16vitalpath01ztype L4ieee_Q12vital_timing_I16vitalpath01ztype_INFO;
 L4ieee_Q12vital_timing_I18vitalpatharraytype L4ieee_Q12vital_timing_I18vitalpatharraytype_INFO;
@@ -939,6 +945,7 @@ void *L4ieee_W12vital_timing_T13checkinfotype_ELEM_ADDR(void *p, int i)
   case 4: return (void*)&obj.M7dettime;
   case 5: return (void*)&obj.M5state;
   };
+  return NULL;
 };
 L4ieee_W12vital_timing_I13checkinfotype L4ieee_W12vital_timing_I13checkinfotype_INFO;
 L4ieee_W12vital_timing_I17logiccvttabletype L4ieee_W12vital_timing_I17logiccvttabletype_INFO;
diff --git a/freehdl/kernel/persistent_cdfg_dump.cc b/freehdl/kernel/persistent_cdfg_dump.cc
index a67168c..4ca81d3 100644
--- a/freehdl/kernel/persistent_cdfg_dump.cc
+++ b/freehdl/kernel/persistent_cdfg_dump.cc
@@ -322,6 +322,7 @@ get_cdfg_Xinfo_scope_descriptor(Xinfo_scope_descriptor *sdesc,
       break;
     }
   }
+  return "";
 }
 
 
diff --git a/freehdl/kernel/register.cc b/freehdl/kernel/register.cc
index 2953512..88735fd 100644
--- a/freehdl/kernel/register.cc
+++ b/freehdl/kernel/register.cc
@@ -279,6 +279,7 @@ register_init_func (int (*func)())
   // associated with the current sig info pointer.
   db_explorer<db_key_type::init_function_key, db_entry_type::init_function_info>  init_function_executed (kernel_db);
   init_function_executed.get (func) = false;
+  return 0;
 }
 
 void
diff --git a/freehdl/kernel/resolver_process.cc b/freehdl/kernel/resolver_process.cc
index 3779f60..599c674 100644
--- a/freehdl/kernel/resolver_process.cc
+++ b/freehdl/kernel/resolver_process.cc
@@ -11,6 +11,7 @@ resolver_process::execute()
 {
   // Execute resolution function
   (*handler)(resolved_reader, driver, &driver_array, (array_info*)driver_array.info->index_type);
+  return true;
 }
 
 
diff --git a/freehdl/std/vhdl_types.cc b/freehdl/std/vhdl_types.cc
index d21d762..4f4cfe5 100644
--- a/freehdl/std/vhdl_types.cc
+++ b/freehdl/std/vhdl_types.cc
@@ -835,6 +835,7 @@ type_info_interface::binary_print(buffer_stream &str, const void *src)
 
   default:
     error("Internal error in type_info_interface::binary_print!");
+	return 0; 
   }
 }
 
@@ -1126,6 +1127,7 @@ const char *
 access_info_base::read(void *dest, const char *str)
 {
   error("Sorry, access_info_base::read is currently not implemented!");
+  return NULL;
 }
 
 
@@ -1200,6 +1202,7 @@ const char *
 vhdlfile_info_base::read(void *dest, const char *str)
 {
   error("Sorry, vhdlfile_info_base::read is not available!");
+  return NULL;
 }
 
 
@@ -2050,6 +2053,7 @@ const char *
 array_info::read(void *dest, const char *str)
 {
   error("Sorry, array_info_base::read is currently not implemented!");
+  return NULL;
 }
 
 
@@ -2236,6 +2240,7 @@ const char *
 record_info::read(void *dest, const char *str)
 {
   error("Sorry, record_info::read is currently not implemented!");
+  return NULL;
 }
 
 
diff --git a/freehdl/v2cc/v2cc-explore.cc b/freehdl/v2cc/v2cc-explore.cc
index a978a12..ecb2e2b 100644
--- a/freehdl/v2cc/v2cc-explore.cc
+++ b/freehdl/v2cc/v2cc-explore.cc
@@ -1633,6 +1633,7 @@ struct choice_descriptor {
   choice_descriptor &operator=(const choice_descriptor &src) {
     choice_node = src.choice_node;
     choice_value = src.choice_value;
+	return *this;
   }
 };
 
diff --git a/freehdl/v2cc/v2cc-impl.cc b/freehdl/v2cc/v2cc-impl.cc
index d5bdf33..1e774f0 100644
--- a/freehdl/v2cc/v2cc-impl.cc
+++ b/freehdl/v2cc/v2cc-impl.cc
@@ -1031,6 +1031,8 @@ m_emit_info_init (pIIR_RecordType rt, string &str, RegionStack &rstack, bool sta
   for (pIIR_ElementDeclarationList edl = rt->element_declarations;
        edl; edl = edl->rest)
     str += ".set(" + to_string(i++) + "," + get_type_info_obj(edl->first->subtype, rstack, static_info) + ")";
+  IR_StaticLevel e;
+  return e;
 }
 
 
diff --git a/freehdl/v2cc/v2cc-util.cc b/freehdl/v2cc/v2cc-util.cc
index c87fd54..4c757ad 100644
--- a/freehdl/v2cc/v2cc-util.cc
+++ b/freehdl/v2cc/v2cc-util.cc
@@ -1504,6 +1504,7 @@ get_scalar_count(pIIR_Type type, bool &success)
     success = true;
     return 1;
   }
+  return 0;
 }
 
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin