public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/43867]  New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
@ 2010-04-23 15:56 martin dot audet at imi dot cnrc-nrc dot gc dot ca
  2010-04-23 15:59 ` [Bug regression/43867] " martin dot audet at imi dot cnrc-nrc dot gc dot ca
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: martin dot audet at imi dot cnrc-nrc dot gc dot ca @ 2010-04-23 15:56 UTC (permalink / raw)
  To: gcc-bugs

The following little program:


#include <sstream>

int main(int argc, char *argv[])
{
   int nn;

   return (argc != 2)  ||  !(std::istringstream(argv[1]) >> nn);
}

when compiled with gcc 4.5.0 with both -fwhole-program and -fprofile-use
options generate an ICE. Note that this doesn't happen with gcc 4.4.3 or if I
don't use -fwhole-program option. There is no problem when compiling and
running the above little program with gcc 4.5.0 with -fwhole-program and
-fprogram-generate options. The ICE happens when trying to use the feedback
information.

For example, the command (the small program is in a file named mv.cpp):

rm -f mv.gcda && g++ -Wall -fwhole-program -fprofile-generate mv.cpp  &&
./a.out 1000 && g++ -Wall -fwhole-program -fprofile-use mv.cpp

Produce the following output during the second compilation (profile-use):

mv.cpp:8:1: internal compiler error: in ipcp_iterate_stage, at ipa-cp.c:760
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Now here are some information about my gcc and my system:
[audet@mc1 experiences]$ gcc --version
gcc (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Note my gcc version is identical to the official except it include the
following patch (r158484) to fix the problem 43771 I submited last week:


--- trunk/gcc/tree-vect-slp.c   2010/04/18 10:52:26     158483
+++ trunk/gcc/tree-vect-slp.c   2010/04/18 12:20:34     158484
@@ -844,7 +844,11 @@

       SET_BIT (load_index, prev);
     }
-
+
+  for (j = 0; j < group_size; j++)
+    if (!TEST_BIT (load_index, j))
+      return false;
+
   sbitmap_free (load_index);

   if (supported && i == group_size * group_size




[audet@mc1 experiences]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/publique/gcc45/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.5.0/configure --prefix=/usr/local/gcc45
--enable-shared --enable-threads=posix --with-system-zlib
--with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2
--with-mpc=/usr/local/mpc-0.8.1 --with-ppl=/usr/local/ppl-0.10.2
--with-cloog=/usr/local/cloog-ppl-0.15.9 --with-libelf=/usr/local/libelf-0.8.12
--enable-__cxa_atexit --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.5.0 (GCC)
[audet@mc1 experiences]$ uname -a
Linux mc1 2.6.22.9-91.fc7 #1 SMP Thu Jun 18 16:01:22 EDT 2009 x86_64 x86_64
x86_64 GNU/Linux
[audet@mc1 experiences]$

As you can see my system uses Fedora Linux 7 distribution. gcc was compiled and
tested (make -k check) on this machine. Only a small fraction of
the tests failled.

Regards,

Martin Audet


-- 
           Summary: ICE on valid with PGO and -fwhole-program options on
                    small example (istringstream) with gcc 4.5.0 only
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin dot audet at imi dot cnrc-nrc dot gc dot ca


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug regression/43867] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
  2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
@ 2010-04-23 15:59 ` martin dot audet at imi dot cnrc-nrc dot gc dot ca
  2010-04-26 23:01 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: martin dot audet at imi dot cnrc-nrc dot gc dot ca @ 2010-04-23 15:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from martin dot audet at imi dot cnrc-nrc dot gc dot ca  2010-04-23 15:58 -------
Oups !

In the bug description when I said option -fprogram-generate, I meant
-fprofile-generate.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug regression/43867] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
  2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
  2010-04-23 15:59 ` [Bug regression/43867] " martin dot audet at imi dot cnrc-nrc dot gc dot ca
@ 2010-04-26 23:01 ` pinskia at gcc dot gnu dot org
  2010-07-20 22:54 ` steven at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-26 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2010-04-26 23:01 -------
On the trunk (GNU C++ (GCC) version 4.6.0 20100422 (experimental) [trunk
revision 158652]) we get:
t.cc: At global scope:
t.cc:8:1: internal compiler error: in ipcp_iterate_stage, at ipa-cp.c:772
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug regression/43867] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
  2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
  2010-04-23 15:59 ` [Bug regression/43867] " martin dot audet at imi dot cnrc-nrc dot gc dot ca
  2010-04-26 23:01 ` pinskia at gcc dot gnu dot org
@ 2010-07-20 22:54 ` steven at gcc dot gnu dot org
  2010-07-22  8:59 ` [Bug middle-end/43867] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
  2010-07-22  9:04 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-20 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from steven at gcc dot gnu dot org  2010-07-20 22:53 -------
Martin, PGO and IPA-CP -- isn't that your area of interest? :-)


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-20 22:53:52
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/43867] [4.5/4.6 Regression] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
  2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
                   ` (2 preceding siblings ...)
  2010-07-20 22:54 ` steven at gcc dot gnu dot org
@ 2010-07-22  8:59 ` rguenth at gcc dot gnu dot org
  2010-07-22  9:04 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-22  8:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.1


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/43867] [4.5/4.6 Regression] ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only
  2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
                   ` (3 preceding siblings ...)
  2010-07-22  8:59 ` [Bug middle-end/43867] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-07-22  9:04 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-22  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-07-22 09:04 -------
This was fixed.   We now print

t.C: In function 'int __gthread_active_p()':
t.C:8:1: note: file /tmp/t.gcda not found, execution counts assumed to be zero


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-22  9:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-23 15:56 [Bug regression/43867] New: ICE on valid with PGO and -fwhole-program options on small example (istringstream) with gcc 4.5.0 only martin dot audet at imi dot cnrc-nrc dot gc dot ca
2010-04-23 15:59 ` [Bug regression/43867] " martin dot audet at imi dot cnrc-nrc dot gc dot ca
2010-04-26 23:01 ` pinskia at gcc dot gnu dot org
2010-07-20 22:54 ` steven at gcc dot gnu dot org
2010-07-22  8:59 ` [Bug middle-end/43867] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-07-22  9:04 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).