call.exp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright (C) 2003, 2006, 2009, 2010, 2014 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; see the file COPYING3. If not see
  14. # <http://www.gnu.org/licenses/>.
  15. dg-init
  16. libffi-init
  17. global srcdir subdir
  18. if { [string match $compiler_vendor "microsoft"] } {
  19. # -wd4005 macro redefinition
  20. # -wd4244 implicit conversion to type of smaller size
  21. # -wd4305 truncation to smaller type
  22. # -wd4477 printf %lu of uintptr_t
  23. # -wd4312 implicit conversion to type of greater size
  24. # -wd4311 pointer truncation to unsigned long
  25. # -EHsc C++ Exception Handling (no SEH exceptions)
  26. set additional_options "-wd4005 -wd4244 -wd4305 -wd4477 -wd4312 -wd4311 -EHsc";
  27. } else {
  28. set additional_options "";
  29. }
  30. set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.c]]
  31. run-many-tests $tlist $additional_options
  32. set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.cc]]
  33. # No C++ for or1k
  34. if { [istarget "or1k-*-*"] } {
  35. foreach test $tlist {
  36. unsupported "$test"
  37. }
  38. } else {
  39. run-many-tests $tlist $additional_options
  40. }
  41. dg-finish
  42. # Local Variables:
  43. # tcl-indent-level:4
  44. # End: