Patch to testsuite/lib/g++.exp

Jason Merrill jason@cygnus.com
Wed Mar 8 14:49:00 GMT 2000


Mark, why did you put the {} in your earlier patch?

The second hunk allows a testcase to use // Special g++ Options: to
override --tool_opts, to force a particular optimization level (for instance).

2000-03-08  Jason Merrill  <jason@casey.cygnus.com>

	* lib/g++.exp (g++_init): Don't put { } around -fmessage-length=0.
	(g++_target_compile): Put test-specific options last.

Index: g++.exp
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/lib/g++.exp,v
retrieving revision 1.7
diff -c -p -r1.7 g++.exp
*** g++.exp	2000/02/17 20:24:27	1.7
--- g++.exp	2000/03/08 22:47:30
*************** proc g++_init { args } {
*** 133,139 ****
  
      # Make sure that lines are not wrapped.  That can confuse the
      # error-message parsing machinery.
!     lappend ALWAYS_CXXFLAGS "additional_flags={-fmessage-length=0}"
  
      verbose -log "ALWAYS_CXXFLAGS set to $ALWAYS_CXXFLAGS"
  
--- 133,139 ----
  
      # Make sure that lines are not wrapped.  That can confuse the
      # error-message parsing machinery.
!     lappend ALWAYS_CXXFLAGS "additional_flags=-fmessage-length=0"
  
      verbose -log "ALWAYS_CXXFLAGS set to $ALWAYS_CXXFLAGS"
  
*************** proc g++_target_compile { source dest ty
*** 156,164 ****
      lappend options "additional_flags=[libio_include_flags]"
      lappend options "compiler=$GXX_UNDER_TEST";
  
!     set options [concat $options $gpp_compile_options]
  
!     set options [concat $options "$ALWAYS_CXXFLAGS"];
  
      if { [regexp "(^| )-frepo( |$)" $options] && \
  	 [regexp "\.o(|bj)$" $dest] } then {
--- 156,164 ----
      lappend options "additional_flags=[libio_include_flags]"
      lappend options "compiler=$GXX_UNDER_TEST";
  
!     set options [concat $gpp_compile_options $options]
  
!     set options [concat "$ALWAYS_CXXFLAGS" $options];
  
      if { [regexp "(^| )-frepo( |$)" $options] && \
  	 [regexp "\.o(|bj)$" $dest] } then {


More information about the Gcc-patches mailing list