Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » gcc-4.9.0
gcc-4.9.0 [message #43320] Sun, 29 June 2014 23:44 Go to previous message
piotr5 is currently offline  piotr5
Messages: 107
Registered: November 2005
Experienced Member
an interesting new feature is detecting undefined behaviour. in my debug options I use:
-Og -fsanitize=undefined
where -Og is optimization specialized for debugging. to avoid linking-errors I use the link-option
-lubsan
in debug mode. applied to theide I get:
/home/p/upp/uppsrc/Core/BlockStream.cpp:19:23: runtime error: left shift of negative value -1
/home/p/upp/uppsrc/RichText/Txt.h:248:2: runtime error: load of value 96, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Txt.h:248:2: runtime error: load of value 223, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Txt.h:248:2: runtime error: load of value 209, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Txt.h:1:7: runtime error: load of value 70, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Txt.h:1:7: runtime error: load of value 114, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Txt.h:1:7: runtime error: load of value 101, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/RichText/Table.h:107:9: runtime error: load of value 70, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/CppBase/CppBase.h:222:8: runtime error: load of value 101, which is not a valid value for type 'bool'
/usr/bin/valgrind
/home/p/upp/uppsrc/Core/Color.cpp:164:25: runtime error: signed integer overflow: -16777216 + -2147483648 cannot be represented in type 'int'
/home/p/upp/uppsrc/Core/Color.cpp:167:23: runtime error: signed integer overflow: -187 * 2130706432 cannot be represented in type 'int'
/home/p/upp/uppsrc/Core/Color.cpp:166:23: runtime error: signed integer overflow: 66 * 2130706432 cannot be represented in type 'int'
/home/p/upp/uppsrc/Core/Color.cpp:165:23: runtime error: signed integer overflow: 64 * 2130706432 cannot be represented in type 'int'

/home/p/upp/uppsrc/CtrlLib/MenuItem.cpp:205:27: runtime error: load of value 70, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/CtrlLib/MenuItem.cpp:214:27: runtime error: load of value 70, which is not a valid value for type 'bool'

/home/p/upp/uppsrc/CppBase/CppBase.h:294:9: runtime error: load of value 127, which is not a valid value for type 'bool'
/home/p/upp/uppsrc/CppBase/CppBase.h:222:8: runtime error: load of value 49, which is not a valid value for type 'bool'


I haven't tested much though, but program speed is acceptable.

as for optimizations, the problem with graphite re-organizing loops in theide still prevails.
maybe -lto will at least work a bit better...

also I heard the problem with std::move being needed in every return statement has been solved. will need to test this too...
 
Read Message
Read Message
Read Message
Previous Topic: IDE and the editor
Next Topic: IDE not retaining SDK path
Goto Forum:
  


Current Time: Mon Jul 22 16:24:07 CEST 2024

Total time taken to generate the page: 0.02633 seconds