20080924_0.c: Fix defaulting to int.
* gcc.dg/lto/20080924_0.c: Fix defaulting to int. * gcc.dg/lto/20090213_0.c: Likewise. * gcc.dg/lto/20090706-2_0.c: Likewise. * gcc.dg/lto/attr-weakref-1_1.c: Likewise. * gcc.dg/lto/attr-weakref-1_2.c: Likewise. * gcc.dg/lto/ipareference2_0.c: Likewise. * gcc.dg/lto/ipareference_0.c: Likewise. * gcc.dg/lto/ipareference_1.c: Likewise. * gcc.dg/lto/pr55703_0.c: Likewise. * gcc.dg/lto/resolutions_0.c: Likewise. * gcc.dg/lto/trans-mem-3_1.c: Likewise. * gcc.dg/lto/20081115_0.c: Fix defaulting to int. Fix implicit declarations. Mark function as gnu_inline. * gcc.dg/lto/20081118_0.c: Likewise. * gcc.dg/lto/20081201-1_0.c: Likewise. * gcc.dg/lto/20081115_1.c: Mark function as gnu_inline. * gcc.dg/lto/20081118_1.c: Likewise. * gcc.dg/lto/20081120-1_1.c: Likewise. * gcc.dg/lto/20081201-1_1.c: Likewise. * gcc.dg/lto/20081210-1_0.c: Likewise. * gcc.dg/lto/20090218-1_0.c: Likewise. * gcc.dg/lto/20091006-1_0.c: Likewise. * gcc.dg/lto/20090218-1_1.c: Use -fgnu89-inline. * gcc.dg/lto/20090218-2_1.c: Likewise. * gcc.dg/lto/materialize-1_0.c: Likewise. * gcc.dg/lto/20090218-2_0.c: Fix implicit declarations. * gcc.dg/lto/20091013-1_1.c: Likewise. * gcc.dg/lto/20091013-1_2.c: Likewise. * gcc.dg/lto/20091015-1_2.c: Likewise. * gcc.dg/lto/20091027-1_1.c: Likewise. * gcc.dg/lto/pr48622_0.c: Likewise. * gcc.dg/lto/attr-weakref-1_0.c: Fix implicit declarations. Fix defaulting to int. * gcc.dg/lto/pr47924_0.c: Return 0 instead of nothing. From-SVN: r215918
This commit is contained in:
parent
2d72815594
commit
845306e9be
|
@ -1,3 +1,40 @@
|
|||
2014-10-06 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
* gcc.dg/lto/20080924_0.c: Fix defaulting to int.
|
||||
* gcc.dg/lto/20090213_0.c: Likewise.
|
||||
* gcc.dg/lto/20090706-2_0.c: Likewise.
|
||||
* gcc.dg/lto/attr-weakref-1_1.c: Likewise.
|
||||
* gcc.dg/lto/attr-weakref-1_2.c: Likewise.
|
||||
* gcc.dg/lto/ipareference2_0.c: Likewise.
|
||||
* gcc.dg/lto/ipareference_0.c: Likewise.
|
||||
* gcc.dg/lto/ipareference_1.c: Likewise.
|
||||
* gcc.dg/lto/pr55703_0.c: Likewise.
|
||||
* gcc.dg/lto/resolutions_0.c: Likewise.
|
||||
* gcc.dg/lto/trans-mem-3_1.c: Likewise.
|
||||
* gcc.dg/lto/20081115_0.c: Fix defaulting to int. Fix implicit
|
||||
declarations. Mark function as gnu_inline.
|
||||
* gcc.dg/lto/20081118_0.c: Likewise.
|
||||
* gcc.dg/lto/20081201-1_0.c: Likewise.
|
||||
* gcc.dg/lto/20081115_1.c: Mark function as gnu_inline.
|
||||
* gcc.dg/lto/20081118_1.c: Likewise.
|
||||
* gcc.dg/lto/20081120-1_1.c: Likewise.
|
||||
* gcc.dg/lto/20081201-1_1.c: Likewise.
|
||||
* gcc.dg/lto/20081210-1_0.c: Likewise.
|
||||
* gcc.dg/lto/20090218-1_0.c: Likewise.
|
||||
* gcc.dg/lto/20091006-1_0.c: Likewise.
|
||||
* gcc.dg/lto/20090218-1_1.c: Use -fgnu89-inline.
|
||||
* gcc.dg/lto/20090218-2_1.c: Likewise.
|
||||
* gcc.dg/lto/materialize-1_0.c: Likewise.
|
||||
* gcc.dg/lto/20090218-2_0.c: Fix implicit declarations.
|
||||
* gcc.dg/lto/20091013-1_1.c: Likewise.
|
||||
* gcc.dg/lto/20091013-1_2.c: Likewise.
|
||||
* gcc.dg/lto/20091015-1_2.c: Likewise.
|
||||
* gcc.dg/lto/20091027-1_1.c: Likewise.
|
||||
* gcc.dg/lto/pr48622_0.c: Likewise.
|
||||
* gcc.dg/lto/attr-weakref-1_0.c: Fix implicit declarations. Fix
|
||||
defaulting to int.
|
||||
* gcc.dg/lto/pr47924_0.c: Return 0 instead of nothing.
|
||||
|
||||
2014-10-06 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* gfortran.dg/implicit_14.f90: New.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* { dg-lto-do assemble } */
|
||||
/* { dg-lto-options {{-O2 -flto -funsigned-char}} } */
|
||||
typedef unsigned int size_t;
|
||||
void
|
||||
foo (const char *src, unsigned char *dst, size_t size)
|
||||
{
|
||||
int ch;
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
|
||||
|
||||
extern void abort (void);
|
||||
extern int foo (void);
|
||||
|
||||
int f (void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
extern inline int
|
||||
extern inline int __attribute__ ((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 1 + f();
|
||||
|
@ -19,6 +20,7 @@ bar (void)
|
|||
return e_inline_baz ();
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifdef OPTIMIZE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern inline int
|
||||
extern inline int __attribute__ ((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 2 + 1;
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
extern void abort (void);
|
||||
extern int f (void);
|
||||
extern int foo (void);
|
||||
|
||||
extern inline int
|
||||
extern inline int __attribute__ ((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 1 + f();
|
||||
|
@ -15,6 +16,7 @@ bar (void)
|
|||
return e_inline_baz ();
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifdef OPTIMIZE
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern int f (void);
|
||||
|
||||
extern inline int
|
||||
extern inline int __attribute__ ((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 2 + f ();
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
extern int stat(void) __asm__("" "stat64");
|
||||
extern inline int stat(void) { }
|
||||
extern inline __attribute__((gnu_inline)) int stat(void) { }
|
||||
static void foo(void) { stat(); }
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */
|
||||
|
||||
extern void abort (void);
|
||||
extern int foo (void);
|
||||
|
||||
int
|
||||
f (void)
|
||||
|
@ -8,7 +9,7 @@ f (void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
extern inline int
|
||||
extern inline int __attribute__((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 1 + f();
|
||||
|
@ -20,6 +21,7 @@ bar (void)
|
|||
return e_inline_baz ();
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifdef OPTIMIZE
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extern int f (void);
|
||||
|
||||
extern inline int
|
||||
extern inline int __attribute__ ((gnu_inline))
|
||||
e_inline_baz (void)
|
||||
{
|
||||
return 2 + f ();
|
||||
|
|
|
@ -8,7 +8,7 @@ typedef unsigned int uintptr_t;
|
|||
|
||||
extern void srand (uintptr_t);
|
||||
|
||||
inline void
|
||||
inline void __attribute__ ((gnu_inline))
|
||||
foo (uintptr_t seed)
|
||||
{
|
||||
srand (seed * seed);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
extern int foo (int);
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int x = foo (10);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
void inline set_mem_alias_set () __attribute__ ((always_inline));
|
||||
void inline set_mem_alias_set () __attribute__ ((always_inline, gnu_inline));
|
||||
void emit_push_insn () {
|
||||
set_mem_alias_set ();
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-options "-fgnu89-inline" } */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
void set_mem_alias_set ();
|
||||
void emit_push_insn () {
|
||||
set_mem_alias_set ();
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* { dg-options { -fgnu89-inline } } */
|
||||
typedef struct {
|
||||
} mem_attrs;
|
||||
int main(void)
|
||||
|
|
|
@ -7,6 +7,7 @@ int foo (int size)
|
|||
return a[size - 10] + size;
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int x = foo (20);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
typedef void (*fnt) (void);
|
||||
void __attribute__((noinline)) bar (void) {}
|
||||
extern inline void check3 (void)
|
||||
extern inline void __attribute__((gnu_inline)) check3 (void)
|
||||
{
|
||||
bar ();
|
||||
}
|
||||
|
|
|
@ -54,6 +54,8 @@ static struct __wine_debug_channel __wine_dbch_font = { ~0, "font" };
|
|||
static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_font;
|
||||
|
||||
static void* FONT_SelectObject( void* handle, void* hdc );
|
||||
int TranslateCharsetInfo( void *, CHARSETINFO *, int );
|
||||
unsigned int GetACP (void);
|
||||
|
||||
static const struct gdi_obj_funcs font_funcs =
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ typedef struct HDC__ { int unused; } *HDC;
|
|||
typedef struct HFONT__ { int unused; } *HFONT;
|
||||
|
||||
void* HeapAlloc(void*,unsigned int,unsigned long);
|
||||
extern int memcmp (const void *, const void *, __SIZE_TYPE__);
|
||||
|
||||
typedef struct tagLOGFONTW
|
||||
{
|
||||
|
@ -72,6 +73,7 @@ static int get_glyph_index_linked(GdiFont *font, unsigned int c, GdiFont **linke
|
|||
static long load_VDMX(GdiFont*, long);
|
||||
|
||||
extern int f1(void*,int);
|
||||
extern int strcmpiW (const void*,const void*);
|
||||
|
||||
static FT_Face OpenFontFace(GdiFont *font, void *face, long width, long height)
|
||||
{
|
||||
|
@ -207,6 +209,8 @@ static int get_glyph_index_linked(GdiFont *font, unsigned int c, GdiFont **linke
|
|||
return 0;
|
||||
}
|
||||
|
||||
void load_sfnt_table ();
|
||||
|
||||
unsigned int WineEngGetFontData(GdiFont *font, unsigned int table, unsigned int offset, void* buf,
|
||||
unsigned int cbData)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "20091015-1_a.h"
|
||||
#include "20091015-1_b.h"
|
||||
void foo ();
|
||||
void debug_optab_libfuncs (void) {
|
||||
foo (stderr, 4 );
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ typedef struct _xmlDict xmlDict;
|
|||
struct _xmlDoc {
|
||||
struct _xmlDict *dict;
|
||||
};
|
||||
void xmlHashCreateDict (int, xmlDict *);
|
||||
void xmlAddEntity(struct _xmlDoc *a) {
|
||||
xmlDict * dict = a->dict;
|
||||
xmlHashCreateDict(0, dict);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* { dg-lto-do run } */
|
||||
int first = 0;
|
||||
void abort (void);
|
||||
void c (void);
|
||||
void b (void);
|
||||
int second = 0;
|
||||
void callmealias (void)
|
||||
{
|
||||
|
@ -21,6 +23,7 @@ void callmesecond (void)
|
|||
abort();
|
||||
second = 1;
|
||||
}
|
||||
int
|
||||
main()
|
||||
{
|
||||
c();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
extern void callmesecond();
|
||||
static void callmealias() __attribute__((weakref ("callmesecond")));
|
||||
|
||||
void
|
||||
b()
|
||||
{
|
||||
callmealias();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
extern void callmefirst();
|
||||
static void callmealias() __attribute__((weakref ("callmefirst")));
|
||||
|
||||
void
|
||||
c()
|
||||
{
|
||||
callmealias();
|
||||
|
|
|
@ -7,6 +7,7 @@ void abort (void);
|
|||
int b,c,d,e,f;
|
||||
int *a[5]={&b,&c,&c,&e};
|
||||
void other_ltrans (void);
|
||||
int
|
||||
main()
|
||||
{
|
||||
other_ltrans ();
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
modify anything. This needs streaming cross file boundary summaries. */
|
||||
extern int get_val (void);
|
||||
extern int set_val (void);
|
||||
extern do_nothing (void);
|
||||
extern void do_nothing (void);
|
||||
void abort (void);
|
||||
int
|
||||
main()
|
||||
{
|
||||
int a;
|
||||
|
|
|
@ -7,7 +7,7 @@ int get_val (void)
|
|||
{
|
||||
return val;
|
||||
}
|
||||
__attribute__ ((__noinline__))
|
||||
__attribute__ ((__noinline__)) void
|
||||
do_nothing ()
|
||||
{
|
||||
asm volatile ("":::"memory");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* { dg-lto-options {{ -O3 -flto -flto-partition=1to1}} } */
|
||||
/* { dg-lto-options {{ -O3 -flto -flto-partition=1to1 -fgnu89-inline }} } */
|
||||
/* { dg-lto-do run } */
|
||||
extern void clone_me (int, int);
|
||||
int a=15;
|
||||
|
|
|
@ -8,7 +8,7 @@ int i __attribute__((used));
|
|||
int main()
|
||||
{
|
||||
if (i == 0)
|
||||
return;
|
||||
return 0;
|
||||
|
||||
*p = 0;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ void abort(void);
|
|||
void exit(int);
|
||||
|
||||
typedef unsigned int u8 __attribute__ ((mode (QI)));
|
||||
u8 ashift_qi_1 (u8);
|
||||
|
||||
u8
|
||||
ashift_qi_0 (u8 n)
|
||||
|
|
|
@ -47,6 +47,7 @@ int try (int num) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
/* { dg-require-linker-plugin "" } */
|
||||
/* { dg-extra-ld-options "-fuse-linker-plugin -O1" } */
|
||||
|
||||
void
|
||||
link_error()
|
||||
{
|
||||
}
|
||||
int
|
||||
main()
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
extern int i;
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
__transaction_atomic { i = 0; }
|
||||
|
|
Loading…
Reference in New Issue