* 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
+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.
/* { 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;
/* { 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();
return e_inline_baz ();
}
+int
main ()
{
#ifdef OPTIMIZE
-extern inline int
+extern inline int __attribute__ ((gnu_inline))
e_inline_baz (void)
{
return 2 + 1;
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();
return e_inline_baz ();
}
+int
main ()
{
#ifdef OPTIMIZE
extern int f (void);
-extern inline int
+extern inline int __attribute__ ((gnu_inline))
e_inline_baz (void)
{
return 2 + f ();
extern int stat(void) __asm__("" "stat64");
-extern inline int stat(void) { }
+extern inline __attribute__((gnu_inline)) int stat(void) { }
static void foo(void) { stat(); }
/* { 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();
return e_inline_baz ();
}
+int
main ()
{
#ifdef OPTIMIZE
extern int f (void);
-extern inline int
+extern inline int __attribute__ ((gnu_inline))
e_inline_baz (void)
{
return 2 + f ();
extern void srand (uintptr_t);
-inline void
+inline void __attribute__ ((gnu_inline))
foo (uintptr_t seed)
{
srand (seed * seed);
extern int foo (int);
+int
main()
{
int x = foo (10);
-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 ();
}
+/* { dg-options "-fgnu89-inline" } */
+
int main(void)
{
return 0;
+void set_mem_alias_set ();
void emit_push_insn () {
set_mem_alias_set ();
}
+/* { dg-options { -fgnu89-inline } } */
typedef struct {
} mem_attrs;
int main(void)
return a[size - 10] + size;
}
+int
main()
{
int x = foo (20);
typedef void (*fnt) (void);
void __attribute__((noinline)) bar (void) {}
-extern inline void check3 (void)
+extern inline void __attribute__((gnu_inline)) check3 (void)
{
bar ();
}
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 =
{
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
{
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)
{
return 0;
}
+void load_sfnt_table ();
+
unsigned int WineEngGetFontData(GdiFont *font, unsigned int table, unsigned int offset, void* buf,
unsigned int cbData)
{
#include "20091015-1_a.h"
#include "20091015-1_b.h"
+void foo ();
void debug_optab_libfuncs (void) {
foo (stderr, 4 );
}
struct _xmlDoc {
struct _xmlDict *dict;
};
+void xmlHashCreateDict (int, xmlDict *);
void xmlAddEntity(struct _xmlDoc *a) {
xmlDict * dict = a->dict;
xmlHashCreateDict(0, dict);
/* { dg-lto-do run } */
int first = 0;
void abort (void);
+void c (void);
+void b (void);
int second = 0;
void callmealias (void)
{
abort();
second = 1;
}
+int
main()
{
c();
extern void callmesecond();
static void callmealias() __attribute__((weakref ("callmesecond")));
+void
b()
{
callmealias();
extern void callmefirst();
static void callmealias() __attribute__((weakref ("callmefirst")));
+void
c()
{
callmealias();
int b,c,d,e,f;
int *a[5]={&b,&c,&c,&e};
void other_ltrans (void);
+int
main()
{
other_ltrans ();
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;
{
return val;
}
-__attribute__ ((__noinline__))
+__attribute__ ((__noinline__)) void
do_nothing ()
{
asm volatile ("":::"memory");
-/* { 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;
int main()
{
if (i == 0)
- return;
+ return 0;
*p = 0;
void exit(int);
typedef unsigned int u8 __attribute__ ((mode (QI)));
+u8 ashift_qi_1 (u8);
u8
ashift_qi_0 (u8 n)
return -1;
}
+int
main()
{
int i;
/* { dg-require-linker-plugin "" } */
/* { dg-extra-ld-options "-fuse-linker-plugin -O1" } */
+void
link_error()
{
}
+int
main()
{
return 0;
extern int i;
+int
main()
{
__transaction_atomic { i = 0; }