public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
@ 2013-10-18 17:41 mustrumr97 at gmail dot com
  2013-10-19  6:34 ` [Bug rtl-optimization/58792] [4.9 Regression] " ubizjak at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mustrumr97 at gmail dot com @ 2013-10-18 17:41 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 2878 bytes --]

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

            Bug ID: 58792
           Summary: ICE at mode-switching.c:421 when compiling clang
                    lib/AST/MicrosoftCXXABI.cpp
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mustrumr97 at gmail dot com

g++ -O2 -march=core-avx-i

MicrosoftCXXABI.cpp: In member function ‘virtual std::pair<long unsigned int,
unsigned int> {anonymous}::MicrosoftCXXABI::getMemberPointerWidthAndAlign(const
clang::MemberPointerType*) const’:
MicrosoftCXXABI.cpp:197:1: internal compiler error: in create_pre_exit, at
mode-switching.c:421
>From gcc-bugs-return-432150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 18 17:42:17 2013
Return-Path: <gcc-bugs-return-432150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24399 invoked by alias); 18 Oct 2013 17:42:17 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 24371 invoked by uid 48); 18 Oct 2013 17:42:14 -0000
From: "mustrumr97 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/58792] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
Date: Fri, 18 Oct 2013 17:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mustrumr97 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-58792-4-5NNVBV5nki@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58792-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58792-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01294.txt.bz2
Content-length: 234

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX792

--- Comment #1 from Hristo Venev <mustrumr97 at gmail dot com> ---
Created attachment 31044
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id1044&actioníit
Preprocessed source


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

* [Bug rtl-optimization/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
@ 2013-10-19  6:34 ` ubizjak at gmail dot com
  2013-10-19 12:58 ` uros at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2013-10-19  6:34 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-19
                 CC|                            |ubizjak at gmail dot com
      Known to work|                            |4.8.2
   Target Milestone|---                         |4.9.0
            Summary|ICE at mode-switching.c:421 |[4.9 Regression] ICE at
                   |when compiling clang        |mode-switching.c:421 when
                   |lib/AST/MicrosoftCXXABI.cpp |compiling clang
                   |                            |lib/AST/MicrosoftCXXABI.cpp
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.0

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Confirmed as 4.9 regression.
>From gcc-bugs-return-432190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 19 06:35:13 2013
Return-Path: <gcc-bugs-return-432190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25424 invoked by alias); 19 Oct 2013 06:35:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25375 invoked by uid 48); 19 Oct 2013 06:35:10 -0000
From: "pault at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58793] Wrong value for _vtab for intrinsic types with CLASS(*): storage_size of class(*) gives wrong result
Date: Sat, 19 Oct 2013 06:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pault at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58793-4-4vjBaC40zi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58793-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58793-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01334.txt.bz2
Content-length: 326

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX793

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #3)
> Created attachment 31048 [details]
> Test case

Tobias,

Are you taking this one, or is this a low-lying bug that you are dangling under
my nose :-) ?

Cheers

Paul


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

* [Bug rtl-optimization/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
  2013-10-19  6:34 ` [Bug rtl-optimization/58792] [4.9 Regression] " ubizjak at gmail dot com
@ 2013-10-19 12:58 ` uros at gcc dot gnu.org
  2013-10-19 13:06 ` [Bug target/58792] " ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: uros at gcc dot gnu.org @ 2013-10-19 12:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Oct 19 12:58:20 2013
New Revision: 203857

URL: http://gcc.gnu.org/viewcvs?rev=203857&root=gcc&view=rev
Log:
    PR target/58792
    * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
    ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
    and SI_REG for 64bit SYSV ABI targets.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c


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

* [Bug target/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
  2013-10-19  6:34 ` [Bug rtl-optimization/58792] [4.9 Regression] " ubizjak at gmail dot com
  2013-10-19 12:58 ` uros at gcc dot gnu.org
@ 2013-10-19 13:06 ` ubizjak at gmail dot com
  2013-10-26  6:02 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2013-10-19 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2013-10/msg01606.htm
                   |                            |l
                 CC|ubizjak at gmail dot com           |
          Component|rtl-optimization            |target
   Target Milestone|4.9.0                       |4.7.4

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed on mainline sofar.
>From gcc-bugs-return-432213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 19 13:09:12 2013
Return-Path: <gcc-bugs-return-432213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1240 invoked by alias); 19 Oct 2013 13:09:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1171 invoked by uid 48); 19 Oct 2013 13:09:08 -0000
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58640] [4.9 Regression] wrong code (segfaults) at -O3 on x86_64-linux-gnu
Date: Sat, 19 Oct 2013 13:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: olegendo at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-58640-4-CdSW5BeQmE@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58640-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58640-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01357.txt.bz2
Content-length: 3549

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

Oleg Endo <olegendo at gcc dot gnu.org> changed:

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

--- Comment #11 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #6)
> Author: law
> Date: Fri Oct 11 20:31:25 2013
> New Revision: 203463
> 
> URL: http://gcc.gnu.org/viewcvs?rev=203463&root=gcc&view=rev
> Log:
> 	PR tree-optimization/58640
> 	* tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump threading
> 	paths that cross over two loop entry points.
> 
> 	* gcc.c-torture/execute/pr58640.c: New test.
> 
> Added:
>     trunk/gcc/testsuite/gcc.c-torture/execute/pr58640.c
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/testsuite/ChangeLog
>     trunk/gcc/tree-ssa-threadupdate.c

After this commit, the SH specific test case gcc.target/sh/pr51244-18.c caught
the following sequence:

.L15:
    mov    #0,r1      // r1 = 0
    tst    r1,r1      // T = r1 == 0
    bf.s    .L7        // if (T == 0) goto .L7
    add    #-4,r9

in other words, the branch never happens.
Something causes the loop2_doloop RTL pass to create the following code, which
results in the above final code. 

(code_label 108 107 109 4 2 "" [0 uses])
(note 109 108 110 4 [bb 4] NOTE_INSN_BASIC_BLOCK)
      .
      .
      .
(insn 177 176 185 4 (set (reg:SI 304)
        (plus:SI (reg:SI 305)
            (const_int 1 [0x1]))) -1
     (nil))

(note 185 177 180 16 [bb 16] NOTE_INSN_BASIC_BLOCK)
(insn 180 185 182 16 (set (reg:SI 306)
        (plus:SI (reg/v:SI 278 [ k ])
            (const_int -8 [0xfffffffffffffff8]))) -1
     (nil))
(insn 182 180 183 16 (set (reg:SI 307)
        (const_int -8 [0xfffffffffffffff8])) -1
     (nil))
(insn 183 182 184 16 (set (reg:SI 147 t)
        (ge:SI (reg:SI 306)
            (reg:SI 307))) -1
     (nil))
(jump_insn 184 183 181 16 (set (pc)
        (if_then_else (eq (reg:SI 147 t)
                (const_int 0 [0]))
            (label_ref 181)
            (pc))) -1
     (int_list:REG_BR_PROB 0 (nil))
 -> 181)


(code_label 181 184 178 14 10 "" [1 uses])
(note 178 181 186 14 [bb 14] NOTE_INSN_BASIC_BLOCK)
(insn 186 178 179 14 (set (reg:SI 304)
        (const_int 1 [0x1])) -1
     (nil))

(note 179 186 155 15 [bb 15] NOTE_INSN_BASIC_BLOCK)
      .
      .
      .

      .
      .
      .

(code_label 149 146 150 9 5 "" [1 uses])
(note 150 149 151 9 [bb 9] NOTE_INSN_BASIC_BLOCK)
(insn 151 150 152 9 (set (reg/v:SI 261 [ k ])
        (plus:SI (reg/v:SI 261 [ k ])
            (const_int -8 [0xfffffffffffffff8]))) pr51244-18.c:48 68
{*addsi3_compact}
     (nil))
(insn 152 151 175 9 (set (reg:SI 147 t)
        (ge:SI (reg/v:SI 261 [ k ])
            (const_int 0 [0]))) pr51244-18.c:49 20 {cmpgesi_t}
     (nil))
(jump_insn 175 152 174 9 (parallel [
            (set (pc)
                (if_then_else (ne:SI (reg:SI 304)
                        (const_int 1 [0x1]))
                    (label_ref 174)
                    (pc)))
            (set (reg:SI 304)
                (plus (reg:SI 304)
                    (const_int -1 [0xffffffffffffffff])))
            (clobber (reg:SI 147 t))
        ]) pr51244-18.c:49 -1
     (int_list:REG_BR_PROB 9700 (nil))
 -> 174)


jump_insn 175 is SH's decrement-and-test pattern that is used for loops.
>From gcc-bugs-return-432214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 19 13:34:09 2013
Return-Path: <gcc-bugs-return-432214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13227 invoked by alias); 19 Oct 2013 13:34:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 13198 invoked by uid 48); 19 Oct 2013 13:34:05 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58806] New: New attribute for functions that access memory only through their arguments
Date: Sat, 19 Oct 2013 13:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-58806-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01358.txt.bz2
Content-length: 1402

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX806

            Bug ID: 58806
           Summary: New attribute for functions that access memory only
                    through their arguments
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org

Hello,

by default, unless a function is pure/const, it is assumed to have RW access to
global memory. This limits a lot what alias analysis can do.

void init(double*);
int g(int*p){
  int res=*p;
  double data[10];
  init(data);
  return res-*p;
}

For all the compiler knows, in some calls, p could point to global memory that
init modifies, so the return value can't be safely guessed as 0. However, as a
programmer, I know that init only writes to memory pointed to by its argument,
and the statement init(data) can't clobber *p. So I would like a way to tell
that to the compiler.

I don't know how to split the new attributes exactly or how to name them:
(read|write)s_memory_though_args_only? And more importantly, I don't know if
the compiler could often benefit from this information, or if in most cases it
still wouldn't know enough.

(this idea is not new, but I couldn't find the PR, don't hesitate to mark this
as a DUP)


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

* [Bug target/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-10-19 13:06 ` [Bug target/58792] " ubizjak at gmail dot com
@ 2013-10-26  6:02 ` uros at gcc dot gnu.org
  2013-10-26  6:09 ` uros at gcc dot gnu.org
  2013-10-26  6:11 ` ubizjak at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: uros at gcc dot gnu.org @ 2013-10-26  6:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Oct 26 06:02:20 2013
New Revision: 204087

URL: http://gcc.gnu.org/viewcvs?rev=204087&root=gcc&view=rev
Log:
    Backport from mainline
    2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58779
    * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
    Remove CCCmode handling.
    <case LTU>: Return 'c' suffix for CCCmode.
    <case GEU>: Return 'nc' suffix for CCCmode.
    (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
    * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
    (*sub<mode>3_cc_overflow): Ditto.
    (*subsi3_zext_cc_overflow): Ditto.

    Backport from mainline
    2013-10-19  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58792
    * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
    ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
    and SI_REG for 64bit SYSV ABI targets.

testsuite/ChangeLog:

    Backport from mainline
    2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58779
    * gcc.target/i386/pr30315.c: Remove MINUSCC, DECCC, MINUSCCONLY
    and MINUSCCZEXT defines. Update scan-assembler dg directive.
    * gcc.dg/torture/pr58779.c: New test.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr58779.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/config/i386/i386.md
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr30315.c


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

* [Bug target/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
                   ` (3 preceding siblings ...)
  2013-10-26  6:02 ` uros at gcc dot gnu.org
@ 2013-10-26  6:09 ` uros at gcc dot gnu.org
  2013-10-26  6:11 ` ubizjak at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: uros at gcc dot gnu.org @ 2013-10-26  6:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from uros at gcc dot gnu.org ---
Author: uros
Date: Sat Oct 26 06:09:02 2013
New Revision: 204088

URL: http://gcc.gnu.org/viewcvs?rev=204088&root=gcc&view=rev
Log:
    Backport from mainline
    2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58779
    * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
    Remove CCCmode handling.
    <case LTU>: Return 'c' suffix for CCCmode.
    <case GEU>: Return 'nc' suffix for CCCmode.
    (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
    * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
    (*sub<mode>3_cc_overflow): Ditto.
    (*subsi3_zext_cc_overflow): Ditto.

    Backport from mainline
    2013-10-19  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58792
    * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
    ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
    and SI_REG for 64bit SYSV ABI targets.

testsuite/ChangeLog:

    Backport from mainline
    2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

    PR target/58779
    * gcc.target/i386/pr30315.c: Remove MINUSCC, DECCC, MINUSCCONLY
    and MINUSCCZEXT defines. Update scan-assembler dg directive.
    * gcc.dg/torture/pr58779.c: New test.



Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr58779.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/i386/i386.c
    branches/gcc-4_7-branch/gcc/config/i386/i386.md
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr30315.c


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

* [Bug target/58792] [4.9 Regression] ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp
  2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
                   ` (4 preceding siblings ...)
  2013-10-26  6:09 ` uros at gcc dot gnu.org
@ 2013-10-26  6:11 ` ubizjak at gmail dot com
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2013-10-26  6:11 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 7989 bytes --]

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-432773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 26 06:13:06 2013
Return-Path: <gcc-bugs-return-432773-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25283 invoked by alias); 26 Oct 2013 06:13:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25231 invoked by uid 48); 26 Oct 2013 06:13:00 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58779] [4.7/4.8/4.9 Regression] wrong code at -O1 on x86_64-linux-gnu
Date: Sat, 26 Oct 2013 06:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-58779-4-0XAcbhm64r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58779-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58779-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01917.txt.bz2
Content-length: 429

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #12 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-432774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 26 06:17:51 2013
Return-Path: <gcc-bugs-return-432774-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30075 invoked by alias); 26 Oct 2013 06:17:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 30049 invoked by uid 48); 26 Oct 2013 06:17:48 -0000
From: "vehbi.esref.bayraktar at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58885] New: Template static variable linking issue!
Date: Sat, 26 Oct 2013 06:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: vehbi.esref.bayraktar at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created
Message-ID: <bug-58885-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01918.txt.bz2
Content-length: 920

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

            Bug ID: 58885
           Summary: Template static variable linking issue!
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vehbi.esref.bayraktar at gmail dot com

Created attachment 31090
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31090&action=edit
One header one cpp

Sending the code as is. Compile and see the following error first:

specializing member ‘VCL::CGEnum<int, Test_Enum>::msInstances’ requires
‘template<>’ syntax

Once i prefix the line with template<> , it starts compiling about
undefined reference to `VCL::CGEnum<int, Test_Enum>::msInstances'

Initial code works perfectly fine with VS2012.

Please have a look!
>From gcc-bugs-return-432775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 26 07:14:03 2013
Return-Path: <gcc-bugs-return-432775-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25404 invoked by alias); 26 Oct 2013 07:14:02 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25315 invoked by uid 48); 26 Oct 2013 07:13:57 -0000
From: "contact at flyx dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/58881] GNAT crashes with bug box when trying to instantiate a generic package
Date: Sat, 26 Oct 2013 07:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: contact at flyx dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created
Message-ID: <bug-58881-4-ddoV6gUlVs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58881-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58881-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-10/txt/msg01919.txt.bz2
Content-length: 768

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX881

Felix <contact at flyx dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31089|0                           |1
        is obsolete|                            |

--- Comment #3 from Felix <contact at flyx dot org> ---
Created attachment 31091
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id1091&actioníit
Simplified code to reproduce the crash (extract with gnatchop)

I managed to create a minimal code example to reproduce the bug. The bug only
occurs when:

 * Bug.Tagged_Type has a determinant.
 * Bug.Generic_Package.Derived2 is present.
 * Bug.Instances instantiates Bug.Generic_Package.


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

end of thread, other threads:[~2013-10-26  6:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 17:41 [Bug rtl-optimization/58792] New: ICE at mode-switching.c:421 when compiling clang lib/AST/MicrosoftCXXABI.cpp mustrumr97 at gmail dot com
2013-10-19  6:34 ` [Bug rtl-optimization/58792] [4.9 Regression] " ubizjak at gmail dot com
2013-10-19 12:58 ` uros at gcc dot gnu.org
2013-10-19 13:06 ` [Bug target/58792] " ubizjak at gmail dot com
2013-10-26  6:02 ` uros at gcc dot gnu.org
2013-10-26  6:09 ` uros at gcc dot gnu.org
2013-10-26  6:11 ` ubizjak at gmail dot com

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).