[Lldb-commits] [lldb] r230831 - Use -fstandalone-debug for few tests to get around a Clang optimization

Vince Harron vharron at google.com
Fri Feb 27 17:07:50 PST 2015


Author: vharron
Date: Fri Feb 27 19:07:50 2015
New Revision: 230831

URL: http://llvm.org/viewvc/llvm-project?rev=230831&view=rev
Log:
Use -fstandalone-debug for few tests to get around a Clang optimization

clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD targets.
Other targets do not, which causes several tests to fail.  This flag
enables FullDebugInfo for all targets.

Fixes the following tests:

TestCallStdStringFunction.py
TestDataFormatterSkipSummary.py
TestDataFormatterStdIterator.py
TestDataFormatterStdList.py
TestDataFormatterStdString.py
TestSBValuePersist.py
TestStringPrinter.py
TestTypeCompletion.py


Modified:
    lldb/trunk/test/expression_command/call-function/Makefile
    lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/Makefile
    lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/Makefile
    lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/Makefile
    lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/Makefile
    lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/Makefile
    lldb/trunk/test/functionalities/data-formatter/rdar-9974002/Makefile
    lldb/trunk/test/functionalities/data-formatter/stringprinter/Makefile
    lldb/trunk/test/functionalities/type_completion/Makefile
    lldb/trunk/test/lang/cpp/stl/Makefile
    lldb/trunk/test/python_api/sbvalue_persist/Makefile

Modified: lldb/trunk/test/expression_command/call-function/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/call-function/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/call-function/Makefile (original)
+++ lldb/trunk/test/expression_command/call-function/Makefile Fri Feb 27 19:07:50 2015
@@ -2,6 +2,13 @@ LEVEL = ../../make
 
 CXX_SOURCES := main.cpp
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules
 
 clean::

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-skip-summary/Makefile Fri Feb 27 19:07:50 2015
@@ -2,6 +2,13 @@ LEVEL = ../../../make
 
 CXX_SOURCES := main.cpp
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules
 
 CXXFLAGS += -O0

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/Makefile Fri Feb 27 19:07:50 2015
@@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
 CFLAGS_EXTRAS := -O0
 USE_LIBSTDCPP := 1
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/Makefile Fri Feb 27 19:07:50 2015
@@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
 CFLAGS_EXTRAS := -O0
 USE_LIBSTDCPP := 1
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS += -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/Makefile Fri Feb 27 19:07:50 2015
@@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
 CFLAGS_EXTRAS := -O0
 USE_LIBSTDCPP := 1
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS += -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-synth/Makefile Fri Feb 27 19:07:50 2015
@@ -2,4 +2,11 @@ LEVEL = ../../../make
 
 CXX_SOURCES := main.cpp
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/data-formatter/rdar-9974002/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/rdar-9974002/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/rdar-9974002/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/rdar-9974002/Makefile Fri Feb 27 19:07:50 2015
@@ -2,4 +2,11 @@ LEVEL = ../../../make
 
 CXX_SOURCES := main.cpp
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/data-formatter/stringprinter/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/stringprinter/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/stringprinter/Makefile (original)
+++ lldb/trunk/test/functionalities/data-formatter/stringprinter/Makefile Fri Feb 27 19:07:50 2015
@@ -1,4 +1,12 @@
 LEVEL = ../../../make
 CXX_SOURCES := main.cpp
 CXXFLAGS += -std=c++11
+
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/functionalities/type_completion/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_completion/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/type_completion/Makefile (original)
+++ lldb/trunk/test/functionalities/type_completion/Makefile Fri Feb 27 19:07:50 2015
@@ -2,4 +2,11 @@ LEVEL = ../../make
 
 CXX_SOURCES := main.cpp
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS += -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/lang/cpp/stl/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/Makefile (original)
+++ lldb/trunk/test/lang/cpp/stl/Makefile Fri Feb 27 19:07:50 2015
@@ -5,4 +5,11 @@ CFLAGS := -g -O0
 
 clean: OBJECTS+=$(wildcard main.d.*)
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/python_api/sbvalue_persist/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/sbvalue_persist/Makefile?rev=230831&r1=230830&r2=230831&view=diff
==============================================================================
--- lldb/trunk/test/python_api/sbvalue_persist/Makefile (original)
+++ lldb/trunk/test/python_api/sbvalue_persist/Makefile Fri Feb 27 19:07:50 2015
@@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
 # Clean renamed executable on 'make clean'
 clean: OBJECTS+=no_synth
 
+# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
+# targets.  Other targets do not, which causes this test to fail.
+# This flag enables FullDebugInfo for all targets.
+ifneq (,$(findstring clang,$(CC)))
+  CFLAGS_EXTRAS := -fstandalone-debug
+endif
+
 include $(LEVEL)/Makefile.rules





More information about the lldb-commits mailing list