http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56408



--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-02-20 
14:50:04 UTC ---

Created attachment 29510

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29510

Draft patch (fails due to issues mentioned in comment 3)



(In reply to comment #2)

> (In reply to comment #1)

> > Given that you can use dg.exp=nameoftest.f90 and run only that single test,

> > I think dg-additional-sources should be the way to go in those cases.



Actually, it currently doesn't work:



One cannot combine "! { do-do compile }" with dg-additional-sources. "dg-do

compile" uses "-S" with the "-o" option, but that does not support multiple

files. And using, e.g., "dg-do link" is not possible if one of the files has a

"dg-error".



Hence, the following test cases cannot be converted (they use "dg-error"):

- gfortran.dg/binding_label_tests_10.f03

- gfortran.dg/binding_label_tests_11.f03

- gfortran.dg/binding_label_tests_13.f03

- gfortran.dg/test_common_binding_labels_2.f03

- gfortran.dg/test_common_binding_labels_3.f03



The following could use "dg-do link" (they currently all uses "dg-do compile"):

- gfortran.dg/coarray_29_1.f90

- gfortran.dg/whole_file_28.f90

- gfortran.dg/whole_file_30.f90

Reply via email to