On 1/8/25 10:16 AM, Jan Hubicka wrote:
On Wed, 8 Jan 2025, Jan Hubicka wrote:
On Tue, 10 Dec 2024, Jan Hubicka wrote:
Hi,
int:
struct foo
{
int a;
void bar() const;
~foo()
{
if (a != 42)
__builtin_abort ();
}
};
__attribute__ ((noinline))
void test(const struct foo a
> On Wed, 8 Jan 2025, Jan Hubicka wrote:
>
> > > On Tue, 10 Dec 2024, Jan Hubicka wrote:
> > >
> > > > Hi,
> > > > int:
> > > > struct foo
> > > > {
> > > > int a;
> > > > void bar() const;
> > > > ~foo()
> > > > {
> > > > if (a != 42)
> > > > __builtin_abort ();
> > > > }
> >
On Wed, 8 Jan 2025, Jan Hubicka wrote:
> > On Tue, 10 Dec 2024, Jan Hubicka wrote:
> >
> > > Hi,
> > > int:
> > > struct foo
> > > {
> > > int a;
> > > void bar() const;
> > > ~foo()
> > > {
> > > if (a != 42)
> > > __builtin_abort ();
> > > }
> > > };
> > > __attribute__ ((no
> On Tue, 10 Dec 2024, Jan Hubicka wrote:
>
> > Hi,
> > int:
> > struct foo
> > {
> > int a;
> > void bar() const;
> > ~foo()
> > {
> > if (a != 42)
> > __builtin_abort ();
> > }
> > };
> > __attribute__ ((noinline))
> > void test(const struct foo a)
> > {
> > int b = a
On Tue, 10 Dec 2024, Jan Hubicka wrote:
> Hi,
> int:
> struct foo
> {
> int a;
> void bar() const;
> ~foo()
> {
> if (a != 42)
> __builtin_abort ();
> }
> };
> __attribute__ ((noinline))
> void test(const struct foo a)
> {
> int b = a.a;
> a.bar();
> if
Hi,
int:
struct foo
{
int a;
void bar() const;
~foo()
{
if (a != 42)
__builtin_abort ();
}
};
__attribute__ ((noinline))
void test(const struct foo a)
{
int b = a.a;
a.bar();
if (a.a != b)
__builtin_printf ("optimize me away");
}
struct foo is p