public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42749]  New: -O2 and verify_stmts failed agane
@ 2010-01-14 19:55 dcb314 at hotmail dot com
  2010-01-14 19:56 ` [Bug c/42749] " dcb314 at hotmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2010-01-14 19:55 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile the package pspdftool with
the GNU C compiler version 4.5 snapshot 20100107 and the
compiler said

gcc -DHAVE_CONFIG_H -I.    -std=gnu99 -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -MT pdf_parser.o -MD -MP -MF .deps/pdf_parser.Tpo
-c -o pdf_parser.o pdf_parser.c
pdf_parser.c: In function 'pdf_count_size_object':
pdf_parser.c:1030:1: error: type mismatch in binary expression
int

int

unsigned int

add_acc.43_71 = add_acc.43_57 + 96;

pdf_parser.c:1030:1: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flag -O2 required.


-- 
           Summary: -O2 and verify_stmts failed agane
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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


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

* [Bug c/42749] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
@ 2010-01-14 19:56 ` dcb314 at hotmail dot com
  2010-01-15  3:36 ` [Bug middle-end/42749] " hjl dot tools at gmail dot com
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2010-01-14 19:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2010-01-14 19:55 -------
Created an attachment (id=19601)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19601&action=view)
C source code


-- 


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


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

* [Bug middle-end/42749] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
  2010-01-14 19:56 ` [Bug c/42749] " dcb314 at hotmail dot com
@ 2010-01-15  3:36 ` hjl dot tools at gmail dot com
  2010-01-15 10:26 ` dcb314 at hotmail dot com
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-01-15  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-01-15 03:36 -------
(In reply to comment #1)
> Created an attachment (id=19601)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19601&action=view) [edit]
> C source code
> 

It works for me with 4.5.0 20100114 (experimental) [trunk revision 155925]
on Linux/x86-64. 


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug middle-end/42749] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
  2010-01-14 19:56 ` [Bug c/42749] " dcb314 at hotmail dot com
  2010-01-15  3:36 ` [Bug middle-end/42749] " hjl dot tools at gmail dot com
@ 2010-01-15 10:26 ` dcb314 at hotmail dot com
  2010-01-15 10:31 ` rguenth at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dcb314 at hotmail dot com @ 2010-01-15 10:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dcb314 at hotmail dot com  2010-01-15 10:26 -------
(In reply to comment #2)
> It works for me with 4.5.0 20100114 (experimental) [trunk revision 155925]
> on Linux/x86-64. 

I upgraded to the latest snapshot (20010114), trunk
revision 155915 and it still seems broken to me.

Either one of the ten revisions fixed it, or somethings
gone wrong for me locally.

I'll try a raw build of 20010114 and report back.


-- 


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


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

* [Bug middle-end/42749] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2010-01-15 10:26 ` dcb314 at hotmail dot com
@ 2010-01-15 10:31 ` rguenth at gcc dot gnu dot org
  2010-01-15 10:42 ` [Bug middle-end/42749] [4.5 Regression] " rguenth at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-15 10:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-01-15 10:30 -------
Confirmed.  Reducing.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-15 10:30:57
               date|                            |


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2010-01-15 10:31 ` rguenth at gcc dot gnu dot org
@ 2010-01-15 10:42 ` rguenth at gcc dot gnu dot org
  2010-01-15 16:03 ` hjl dot tools at gmail dot com
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-15 10:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-01-15 10:42 -------
struct pdf_object { int val; };
int pdf_count_size_object (struct pdf_object * p_obj)
{
  return pdf_count_size_object(p_obj) + 2 * sizeof(struct pdf_object);
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking, ice-on-valid-
                   |                            |code
            Summary|-O2 and verify_stmts failed |[4.5 Regression] -O2 and
                   |agane                       |verify_stmts failed agane
   Target Milestone|---                         |4.5.0


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed agane
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2010-01-15 10:42 ` [Bug middle-end/42749] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-01-15 16:03 ` hjl dot tools at gmail dot com
  2010-01-16  6:21 ` [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-01-15 16:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl dot tools at gmail dot com  2010-01-15 16:03 -------
It is caused by revision 146831:

http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg01473.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2010-01-15 16:03 ` hjl dot tools at gmail dot com
@ 2010-01-16  6:21 ` pinskia at gcc dot gnu dot org
  2010-01-16  6:43 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-16  6:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2010-01-16 06:21 -------
(In reply to comment #6)
> It is caused by revision 146831:

Exposed by, not really caused in this case.  The bug was there before the extra
checking was added.  I am looking into fixing tailr.  Note we do go from an
overflowing being wrapping to be undefined too.  So there is more than just
fixing types too.


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2010-01-16  6:21 ` [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again pinskia at gcc dot gnu dot org
@ 2010-01-16  6:43 ` pinskia at gcc dot gnu dot org
  2010-01-16 10:35 ` rguenth at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-16  6:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2010-01-16 06:43 -------
This is harder than I thought.  CCing the original author of this part of the
code.  


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2010-01-16  6:43 ` pinskia at gcc dot gnu dot org
@ 2010-01-16 10:35 ` rguenth at gcc dot gnu dot org
  2010-01-16 10:42 ` rakdver at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-16 10:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2010-01-16 10:35 -------
Indeed it's harder that I thought originally as well ;)  I wonder why we
re-create a simple form of the return value adjustment instead of just copying
the existing statements.


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (8 preceding siblings ...)
  2010-01-16 10:35 ` rguenth at gcc dot gnu dot org
@ 2010-01-16 10:42 ` rakdver at gcc dot gnu dot org
  2010-01-16 12:53 ` rakdver at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2010-01-16 10:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rakdver at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2010-01-15 10:30:57         |2010-01-16 10:41:54
               date|                            |


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (9 preceding siblings ...)
  2010-01-16 10:42 ` rakdver at gcc dot gnu dot org
@ 2010-01-16 12:53 ` rakdver at gcc dot gnu dot org
  2010-01-16 13:19 ` rguenther at suse dot de
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2010-01-16 12:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rakdver at gcc dot gnu dot org  2010-01-16 12:53 -------
 /* Reject a tailcall if the type conversion might need
285                       additional code.  */
286                    if (gimple_assign_cast_p (stmt)
287                        && TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE
(TREE_TYPE (src_var)))
288                      return false;

This is suspicious; replacing the weird TYPE_MODE check with
useless_type_conversion_p fixes the problem.


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (10 preceding siblings ...)
  2010-01-16 12:53 ` rakdver at gcc dot gnu dot org
@ 2010-01-16 13:19 ` rguenther at suse dot de
  2010-01-16 13:24 ` rakdver at kam dot mff dot cuni dot cz
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenther at suse dot de @ 2010-01-16 13:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from rguenther at suse dot de  2010-01-16 13:19 -------
Subject: Re:  [4.5 Regression] -O2 and verify_stmts
 failed again

On Sat, 16 Jan 2010, rakdver at gcc dot gnu dot org wrote:

> 
> 
> ------- Comment #10 from rakdver at gcc dot gnu dot org  2010-01-16 12:53 -------
>  /* Reject a tailcall if the type conversion might need
> 285                       additional code.  */
> 286                    if (gimple_assign_cast_p (stmt)
> 287                        && TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE
> (TREE_TYPE (src_var)))
> 288                      return false;
> 
> This is suspicious; replacing the weird TYPE_MODE check with
> useless_type_conversion_p fixes the problem.

Correct, but for useless_type_conversion_p we can reject any conversions
in the IL since only !useless_type_conversion_p remain.

I suppose the code was explicitly trying to allow sign-changing
(but not precision changing as it does), or conversion to/from
pointers.

Thus, if you want to go the useless_type_conversion_p route simply
reject all conversions and only allow plain SSA name copies...

Richard.


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (11 preceding siblings ...)
  2010-01-16 13:19 ` rguenther at suse dot de
@ 2010-01-16 13:24 ` rakdver at kam dot mff dot cuni dot cz
  2010-01-21 11:57 ` bero at arklinux dot org
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rakdver at kam dot mff dot cuni dot cz @ 2010-01-16 13:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from rakdver at kam dot mff dot cuni dot cz  2010-01-16 13:24 -------
Subject: Re:  [4.5 Regression] -O2 and verify_stmts
        failed again

> > ------- Comment #10 from rakdver at gcc dot gnu dot org  2010-01-16 12:53 -------
> >  /* Reject a tailcall if the type conversion might need
> > 285                       additional code.  */
> > 286                    if (gimple_assign_cast_p (stmt)
> > 287                        && TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE
> > (TREE_TYPE (src_var)))
> > 288                      return false;
> > 
> > This is suspicious; replacing the weird TYPE_MODE check with
> > useless_type_conversion_p fixes the problem.
> 
> Correct, but for useless_type_conversion_p we can reject any conversions
> in the IL since only !useless_type_conversion_p remain.

right

> I suppose the code was explicitly trying to allow sign-changing
> (but not precision changing as it does), or conversion to/from
> pointers.
> 
> Thus, if you want to go the useless_type_conversion_p route simply
> reject all conversions and only allow plain SSA name copies...

this might be overly restrictive; it should be quite easy to add the
appropriate casts, instead.


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (12 preceding siblings ...)
  2010-01-16 13:24 ` rakdver at kam dot mff dot cuni dot cz
@ 2010-01-21 11:57 ` bero at arklinux dot org
  2010-02-17 17:48 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: bero at arklinux dot org @ 2010-01-21 11:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from bero at arklinux dot org  2010-01-21 11:56 -------
FWIW a very similar error occurs when building mysql 5.5.1-m2, almost certainly
the same bug

opt_range.cc: In member function 'int SEL_ARG::store_min_key(KEY_PART*,
uchar**, uint*, uint)':
opt_range.cc:11812:42: error: type mismatch in binary expression
int

int

uint

add_acc.811_37 = add_acc.811_49 + res_15;

opt_range.cc:11812:42: internal compiler error: verify_stmts failed


-- 

bero at arklinux dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bero at arklinux dot org


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (13 preceding siblings ...)
  2010-01-21 11:57 ` bero at arklinux dot org
@ 2010-02-17 17:48 ` mmitchel at gcc dot gnu dot org
  2010-02-22 12:02 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2010-02-17 17:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (14 preceding siblings ...)
  2010-02-17 17:48 ` mmitchel at gcc dot gnu dot org
@ 2010-02-22 12:02 ` rguenth at gcc dot gnu dot org
  2010-02-22 14:10 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 12:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from rguenth at gcc dot gnu dot org  2010-02-22 12:02 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|rakdver at gcc dot gnu dot  |rguenth at gcc dot gnu dot
                   |org                         |org


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (15 preceding siblings ...)
  2010-02-22 12:02 ` rguenth at gcc dot gnu dot org
@ 2010-02-22 14:10 ` rguenth at gcc dot gnu dot org
  2010-02-22 15:45 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from rguenth at gcc dot gnu dot org  2010-02-22 14:09 -------
Subject: Bug 42749

Author: rguenth
Date: Mon Feb 22 14:09:26 2010
New Revision: 156960

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156960
Log:
2010-02-22  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/42749
        * tree-tailcall.c (adjust_return_value_with_ops): Drop update
        parameter.  Do arithmetic in the original type.
        (update_accumulator_with_ops): Likewise.
        (adjust_accumulator_values): Adjust.

        * gcc.c-torture/compile/pr42749.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr42749.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-tailcall.c


-- 


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (16 preceding siblings ...)
  2010-02-22 14:10 ` rguenth at gcc dot gnu dot org
@ 2010-02-22 15:45 ` rguenth at gcc dot gnu dot org
  2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
  2010-02-23 17:07 ` hjl at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 15:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from rguenth at gcc dot gnu dot org  2010-02-22 15:44 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (17 preceding siblings ...)
  2010-02-22 15:45 ` rguenth at gcc dot gnu dot org
@ 2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
  2010-02-23 17:07 ` hjl at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from rguenth at gcc dot gnu dot org  2010-02-22 15:46 -------
*** Bug 42923 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |regehr at cs dot utah dot
                   |                            |edu


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


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

* [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again
  2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
                   ` (18 preceding siblings ...)
  2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
@ 2010-02-23 17:07 ` hjl at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: hjl at gcc dot gnu dot org @ 2010-02-23 17:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from hjl at gcc dot gnu dot org  2010-02-23 17:04 -------
Subject: Bug 42749

Author: hjl
Date: Tue Feb 23 17:02:26 2010
New Revision: 157010

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157010
Log:
Backport testcases from mainline.

2010-02-23  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2010-02-22  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/42749
        * gcc.c-torture/compile/pr42749.c: New testcase.

        2010-02-21  Dodji Seketeli  <dodji@redhat.com>

        PR c++/42824
        * g++.dg/template/memclass4.C: New test.

        2010-02-20  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/43111
        * gfortran.dg/internal_pack_8.f90: New test.

        2010-02-18  Jason Merrill  <jason@redhat.com>

        PR c++/43109
        * g++.dg/parse/namespace12.C: New.

        2010-02-18  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/43066
        * gcc.c-torture/compile/pr43066.c: New test.

        2010-02-17  Jason Merrill  <jason@redhat.com>

        PR c++/43069
        * g++.dg/parse/namespace11.C: New.

        PR c++/43093
        * g++.dg/ext/attrib37.C: New.

        PR c++/43079
        * g++.dg/template/ptrmem20.C: New.

        2010-02-16  Jason Merrill  <jason@redhat.com>

        PR c++/43031
        * g++.dg/ext/attrib36.C: New.

        2010-02-15  Richard Guenther  <rguenther@suse.de>

        PR middle-end/43068
        * g++.dg/torture/pr43068.C: New testcase.

        2010-02-11  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/42998
        * gcc.c-torture/compile/pr42998.c: New testcase.

        2010-02-10  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/43017
        * gcc.dg/torture/pr43017.c: New testcase.

        2010-02-10  Richard Guenther  <rguenther@suse.de>

        PR c/43007
        * gcc.c-torture/execute/20100209-1.c: New testcase.
        * gcc.dg/fold-div-3.c: Likewise.

        2010-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/42999
        * gfortran.dg/array_constructor_35.f90: New test.

        2010-02-09  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/43008
        * gcc.c-torture/execute/pr43008.c: New testcase.

        2010-02-09  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/43000
        * gcc.dg/torture/pr43000.c: New testcase.
        * gcc.dg/torture/pr43002.c: Likewise.

        2010-02-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/42742
        * gfortran.dg/fmt_cache_2.f: New test.

        2010-02-03  Jason Merrill  <jason@redhat.com>

        PR c++/42870
        * g++.dg/ext/dllexport3.C: New.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/attrib36.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/ext/attrib36.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/attrib37.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/ext/attrib37.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/dllexport3.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/ext/dllexport3.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/namespace11.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/parse/namespace11.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/namespace12.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/parse/namespace12.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/memclass4.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/template/memclass4.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/ptrmem20.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/template/ptrmem20.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr43068.C
      - copied unchanged from r157009,
trunk/gcc/testsuite/g++.dg/torture/pr43068.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42749.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42749.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42998.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42998.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr43066.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.c-torture/compile/pr43066.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/20100209-1.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.c-torture/execute/20100209-1.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr43008.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.c-torture/execute/pr43008.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/fold-div-3.c
      - copied unchanged from r157009, trunk/gcc/testsuite/gcc.dg/fold-div-3.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr43000.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.dg/torture/pr43000.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr43002.c
      - copied unchanged from r157009,
trunk/gcc/testsuite/gcc.dg/torture/pr43002.c
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/array_constructor_35.f90
      - copied unchanged from r157009,
trunk/gcc/testsuite/gfortran.dg/array_constructor_35.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/fmt_cache_2.f
      - copied unchanged from r157009,
trunk/gcc/testsuite/gfortran.dg/fmt_cache_2.f
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/internal_pack_8.f90
      - copied unchanged from r157009,
trunk/gcc/testsuite/gfortran.dg/internal_pack_8.f90
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2010-02-23 17:06 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-14 19:55 [Bug c/42749] New: -O2 and verify_stmts failed agane dcb314 at hotmail dot com
2010-01-14 19:56 ` [Bug c/42749] " dcb314 at hotmail dot com
2010-01-15  3:36 ` [Bug middle-end/42749] " hjl dot tools at gmail dot com
2010-01-15 10:26 ` dcb314 at hotmail dot com
2010-01-15 10:31 ` rguenth at gcc dot gnu dot org
2010-01-15 10:42 ` [Bug middle-end/42749] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-01-15 16:03 ` hjl dot tools at gmail dot com
2010-01-16  6:21 ` [Bug middle-end/42749] [4.5 Regression] -O2 and verify_stmts failed again pinskia at gcc dot gnu dot org
2010-01-16  6:43 ` pinskia at gcc dot gnu dot org
2010-01-16 10:35 ` rguenth at gcc dot gnu dot org
2010-01-16 10:42 ` rakdver at gcc dot gnu dot org
2010-01-16 12:53 ` rakdver at gcc dot gnu dot org
2010-01-16 13:19 ` rguenther at suse dot de
2010-01-16 13:24 ` rakdver at kam dot mff dot cuni dot cz
2010-01-21 11:57 ` bero at arklinux dot org
2010-02-17 17:48 ` mmitchel at gcc dot gnu dot org
2010-02-22 12:02 ` rguenth at gcc dot gnu dot org
2010-02-22 14:10 ` rguenth at gcc dot gnu dot org
2010-02-22 15:45 ` rguenth at gcc dot gnu dot org
2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
2010-02-23 17:07 ` hjl 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).