forked from iains/gcc-14-branch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re PR lto/53831 (Virtuals missing in LTO symtab)
PR lto/53831 PR lto/54776 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack. From-SVN: r192166
- Loading branch information
Jan Hubicka
authored and
Jan Hubicka
committed
Oct 6, 2012
1 parent
f16dd82
commit c295453
Showing
4 changed files
with
80 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2012-10-06 Jan Hubicka <[email protected]> | ||
|
||
PR lto/53831 | ||
PR lto/54776 | ||
* lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack. | ||
|
||
2012-10-06 Dehao Chen <[email protected]> | ||
|
||
PR debug/54826 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ | |
PR fortran/54832 | ||
* gfortran.dg/typebound_operator_17.f90: New. | ||
|
||
2012-10-06 Jan Hubicka <[email protected]> | ||
|
||
PR lto/53831 | ||
PR lto/54776 | ||
* g++.dg/lto/v1-plugin-api-not-supported.C: New testcase. | ||
|
||
2012-10-06 Jan Hubicka <[email protected]> | ||
|
||
* gcc.dg/lto/resolutions_0.c: New testcase. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// { dg-lto-do run } | ||
// { dg-require-linker-plugin "" } | ||
// { dg-lto-options {{-O2 -fuse-linker-plugin -fno-early-inlining}} | ||
|
||
extern "C" void abort (void); | ||
extern "C" void linker_error (); | ||
|
||
class A | ||
{ | ||
public: | ||
int data; | ||
virtual int foo (int i) | ||
{ | ||
return i + 1; | ||
} | ||
}; | ||
|
||
class B : public A | ||
{ | ||
public: | ||
virtual int foo (int i) | ||
{ | ||
return i + 2; | ||
} | ||
}; | ||
|
||
class C : public A | ||
{ | ||
public: | ||
virtual int foo (int i) | ||
{ | ||
linker_error (); | ||
return i + 3; | ||
} | ||
}; | ||
|
||
|
||
static int middleman (class A *obj, int i) | ||
{ | ||
return obj->foo (i); | ||
} | ||
|
||
int __attribute__ ((noinline,noclone)) get_input(void) | ||
{ | ||
return 1; | ||
} | ||
|
||
int main (int argc, char *argv[]) | ||
{ | ||
class B b; | ||
if (middleman (&b, get_input ()) != 3) | ||
abort (); | ||
return 0; | ||
} |