]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add -fstrict-aliasing to the flags in optimized mode.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Feb 2000 09:51:19 +0000 (09:51 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Feb 2000 09:51:19 +0000 (09:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@2301 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.global_options.in

index 3e3b9fba49c6b6bb90eb86271eeacaf5d15834ec..efd0700a7c5d7388869864cd94d99c6213d82df9 100644 (file)
@@ -112,6 +112,17 @@ ifneq ($(OS),Linux)
 endif
 
 
+
+# after egcs1.1, the optimization flag -fstrict-aliasing was
+# introduced, which enables better optimizations for well-written C++
+# code. we believe that deal.II falls into that category and thusly
+# enable the flag
+ifneq ($(GXX-Version),egcs1.1)
+  CXXFLAGS.o += -fstrict-aliasing
+endif
+
+
+
 # if --enable-multithreading was given, then set the compiler flags
 # accordingly. note that this only sets the flags to generate programs
 # which use thread-safe allocation functions, include the right files,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.