Commit 63b9f71b by Marek Polacek Committed by Marek Polacek

gctest.c: Fix defaulting to int.

boehm-gc/
	* testsuite/boehm-gc.c/gctest.c: Fix defaulting to int.
gcc/testsuite/
	* c-c++-common/raw-string-3.c: Use -std=gnu89 for C.
	* g++.dg/lto/pr54625-1_0.c: Fix defaulting to int.
	* g++.dg/lto/pr54625-2_0.c: Likewise.
	* gcc.misc-tests/gcov-14.c: Use -fgnu89-inline.

From-SVN: r215943
parent 1a3e2d69
2014-10-06 Marek Polacek <polacek@redhat.com>
* testsuite/boehm-gc.c/gctest.c: Fix defaulting to int.
2014-05-13 Bernd Edlinger <bernd.edlinger@hotmail.de> 2014-05-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
Fix current cygwin-64 build problems. Fix current cygwin-64 build problems.
......
...@@ -1701,6 +1701,7 @@ int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prev, LPSTR cmd, int n) ...@@ -1701,6 +1701,7 @@ int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prev, LPSTR cmd, int n)
#ifdef PCR #ifdef PCR
int
test() test()
{ {
PCR_Th_T * th1; PCR_Th_T * th1;
...@@ -1738,6 +1739,7 @@ void * thr_run_one_test(void * arg) ...@@ -1738,6 +1739,7 @@ void * thr_run_one_test(void * arg)
#endif #endif
#if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS) #if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
int
main() main()
{ {
thread_t th1; thread_t th1;
...@@ -1781,6 +1783,7 @@ main() ...@@ -1781,6 +1783,7 @@ main()
--> bad news --> bad news
#endif #endif
int
main() main()
{ {
pthread_t th1; pthread_t th1;
......
2014-10-06 Marek Polacek <polacek@redhat.com> 2014-10-06 Marek Polacek <polacek@redhat.com>
* c-c++-common/raw-string-3.c: Use -std=gnu89 for C.
* g++.dg/lto/pr54625-1_0.c: Fix defaulting to int.
* g++.dg/lto/pr54625-2_0.c: Likewise.
* gcc.misc-tests/gcov-14.c: Use -fgnu89-inline.
2014-10-06 Marek Polacek <polacek@redhat.com>
* gcc.target/i386/20040112-1.c: Fix defaulting to int. * gcc.target/i386/20040112-1.c: Fix defaulting to int.
* gcc.target/i386/avxfp-1.c: Likewise. * gcc.target/i386/avxfp-1.c: Likewise.
* gcc.target/i386/avxfp-2.c: Likewise. * gcc.target/i386/avxfp-2.c: Likewise.
......
// If not c++0x/gnu99, the {,u,u8,U,L}R prefix should be parsed as separate // If not c++0x/gnu99, the {,u,u8,U,L}R prefix should be parsed as separate
// token. // token.
// { dg-do compile } // { dg-do compile }
// { dg-options "" { target c } } // { dg-options "-std=gnu89" { target c } }
// { dg-options "-std=c++98" { target c++ } } // { dg-options "-std=c++98" { target c++ } }
const void *s0 = R"(a)"; // { dg-error "was not declared|undeclared" "undeclared" } const void *s0 = R"(a)"; // { dg-error "was not declared|undeclared" "undeclared" }
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
float a; float a;
double sin (); double sin ();
void
speex_resampler_init_frac () speex_resampler_init_frac ()
{ {
a = sin (0); a = sin (0);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
float a; float a;
double sin (); double sin ();
void
update_filter () update_filter ()
{ {
a = sin (0); a = sin (0);
......
/* Test gcov extern inline. */ /* Test gcov extern inline. */
/* { dg-options "-O2 -fprofile-arcs -ftest-coverage" } */ /* { dg-options "-O2 -fprofile-arcs -ftest-coverage -fgnu89-inline" } */
/* The following line arranges that Darwin has behavior like elf weak import. */ /* The following line arranges that Darwin has behavior like elf weak import. */
/* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */ /* { dg-additional-options "-flat_namespace -undefined suppress" { target *-*-darwin* } } */
/* { dg-require-weak "" } */ /* { dg-require-weak "" } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment