[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-11-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716

Richard Guenther  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #19 from Richard Guenther  2010-11-03 
15:50:25 UTC ---
I assume FIXED from
http://gcc.gnu.org/ml/gcc-testresults/2010-11/msg00221.html.


[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-10-01 Thread sje at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716

--- Comment #18 from Steve Ellcey  2010-10-01 17:05:53 
UTC ---
Author: sje
Date: Fri Oct  1 17:05:45 2010
New Revision: 164891

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164891
Log:
2010-10-01  Steve Ellcey  

PR tree-optimization/44716
* config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
(HOT_TEXT_SECTION_NAME): Define.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/ia64/hpux.h


[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-09-23 Thread sje at cup dot hp dot com


--- Comment #17 from sje at cup dot hp dot com  2010-09-23 16:27 ---
It looks like GCC on IA64 HP-UX has a problem when a routine in .text.unlikely
calls a function in .text.  If I define UNLIKELY_EXECUTED_TEXT_SECTION_NAME and
HOT_TEXT_SECTION_NAME to just be '.text' then I can bootstrap with partial
inlining enabled.  I think the bug that is causing the abort is probably in the
GNU assembler or the HP linker or some combination of the two.

There is still a GCC bug here because the partial inlining change shouldn't
have triggered the use of .text.unlikely.  Particularly since it appears that
it is the caller of the partially inlined function that is getting put into
.text.unlikely, not the 'remainder' of the partially inlined function.

On IA64 Linux, we do not appear to be using .text.unlikely, and that is
probably why I see this bug on HP-UX but not Linux.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-09-20 Thread sje at cup dot hp dot com


--- Comment #16 from sje at cup dot hp dot com  2010-09-20 22:12 ---
Honza, have you had a chance to look at this failure recently?  It is still
happening and I can only build GCC on ia64-hp-hpux11.23 using workarounds to
stop some of the inlining.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-09-02 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P3  |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-08-19 Thread rguenth at gcc dot gnu dot org


--- Comment #15 from rguenth at gcc dot gnu dot org  2010-08-19 15:53 
---
I didn't get a chance to look.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|rguenth at gcc dot gnu dot  |hubicka at gcc dot gnu dot
   |org |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-08-11 Thread rguenth at gcc dot gnu dot org


--- Comment #14 from rguenth at gcc dot gnu dot org  2010-08-11 19:51 
---
I will have a look tomorrow.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-08-11 17:20:41 |2010-08-11 19:51:09
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-08-11 Thread sje at cup dot hp dot com


--- Comment #13 from sje at cup dot hp dot com  2010-08-11 17:23 ---
Created an attachment (id=21455)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21455&action=view)
compressed builtins.c.041t.fnsplit dump file

I believe that the splitting and inlining of gimple_call_num_args into
gimple_rewrite_call_expr is causing the failure but I do not know why.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-08-11 Thread sje at cup dot hp dot com


--- Comment #12 from sje at cup dot hp dot com  2010-08-11 17:20 ---
I have a slightly smaller test case for this, but it still needs to bootstrap
to fail.  If I bootstrap just the C part of the compiler I get a successful
build (with partial inlining enabled) but when I use that compiler to compile
this test case (with -O2) I get a segfault in the compiler:

char *s4;
test2_sub (int i, ...)
{
  __builtin_va_list ap;
  __builtin___vsprintf_chk (s4, 0, __builtin_object_size (s4, 0), "%s %d", ap);
}


If I modify the gimple_rewrite_call_expr call in builtins.c and replace the
call to gimple_call_num_args with a new function that I don't inline (or that I
inline completely) the segfault goes away.

Looking at some of the dump files, builtins.c.041t.fnsplit shows
gimple_call_num_args getting split but I don't see any indication of inlining
in builtins.c.015/025/043.  fnsplit creates gimple_call_num_args.part.22 and
changes gimple_call_num_args to call that routine the dump doesn't show
imple_rewrite_call_expr calling part.22 but later dumps do show this.  I will
attach builtins.c.041t.fnsplit.

Any help on this bug would be appreciated, IA64 HP-UX has not bootstrapped with
ToT sources in some time now.


-- 

sje at cup dot hp dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-08-11 17:20:41
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #11 from sje at cup dot hp dot com  2010-07-07 23:45 ---
Created an attachment (id=21133)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21133&action=view)
Compressed decl.c.043t.inline_param3 file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #10 from sje at cup dot hp dot com  2010-07-07 23:45 ---
Created an attachment (id=21132)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21132&action=view)
Compressed decl.c.041t.fnsplit file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #9 from sje at cup dot hp dot com  2010-07-07 23:44 ---
Created an attachment (id=21131)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21131&action=view)
Compressed decl.c.025t.einline2 file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #8 from sje at cup dot hp dot com  2010-07-07 23:44 ---
Created an attachment (id=21130)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21130&action=view)
Compressed decl.c.015t.inline_param1 file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #7 from sje at cup dot hp dot com  2010-07-07 23:43 ---
Created an attachment (id=21129)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21129&action=view)
Compressed preprocessed cp/decl.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread hubicka at ucw dot cz


--- Comment #6 from hubicka at ucw dot cz  2010-07-07 23:01 ---
Subject: Re:  [4.6 Regression] Bootstrap fails with
partial inlining (r161382)

great work!  Could you, please, post me the fnsplit, einline2 and inline dumps?
Perhaps I can work out what is wrong there.
(and preprocessed source so I can try on cross if possible too)

Honza


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #5 from sje at cup dot hp dot com  2010-07-07 22:48 ---
If I put __attribute__ ((noinline)) on check_class_member_definition_namespace
in cp/decl.c, I don't see the bug.  I don't see anything special about this
function so I don't know why it is having problems being (partially)
inlined when nothing else seems to cause problems.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #4 from sje at cup dot hp dot com  2010-07-07 17:22 ---
The problem seems to happen when compiling cp/decl.c.  If I compile this file
at -O1 instead of -O2 the resulting C++ compiler will work.  I am trying to see
if I can track it down to one function within cp/decl.c.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-07 Thread sje at cup dot hp dot com


--- Comment #3 from sje at cup dot hp dot com  2010-07-07 15:30 ---
I haven't been able to come up with a test case other then bootstrapping.  If I
build a non-bootstrap compiler and run the testsuite I don't get any unexpected
failures due to this problem.  It is only when, during bootstrap, I run the
cc1plus executable that was built by the stage1 cc1 that I get a failure.  At
that point trying to compile any C++ program with cc1plus results in cc1plus
aborting.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-07-06 Thread hubicka at gcc dot gnu dot org


--- Comment #2 from hubicka at gcc dot gnu dot org  2010-07-07 00:46 ---
Hi,
can I have a testcase that reproduce on cross compiler?  The backtrace seems
rather odd.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716



[Bug middle-end/44716] [4.6 Regression] Bootstrap fails with partial inlining (r161382)

2010-06-30 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||build
Summary|Bootstrap fails with partial|[4.6 Regression] Bootstrap
   |inlining (r161382)  |fails with partial inlining
   ||(r161382)
   Target Milestone|--- |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44716