public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
@ 2014-12-21 15:23 danglin at gcc dot gnu.org
  2015-01-09 11:20 ` [Bug other/64370] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-12-21 15:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

            Bug ID: 64370
           Summary: [5 Regression] sreal.c:125:23: error: 'exp2' was not
                    declared in this scope
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa1.1-hp-hpux10.20
            Target: hppa1.1-hp-hpux10.20
             Build: hppa1.1-hp-hpux10.20

g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I/opt/gnu/gcc/gmp/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o sreal.o -MT sreal.o -MMD
-MP -MF ./.deps/sreal.TPo ../../gcc/gcc/sreal.c
../../gcc/gcc/sreal.c: In member function 'double sreal::to_double() const':
../../gcc/gcc/sreal.c:125:23: error: 'exp2' was not declared in this scope
make[3]: *** [sreal.o] Error 1

Maybe fallback to pow?


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
@ 2015-01-09 11:20 ` rguenth at gcc dot gnu.org
  2015-01-09 12:35 ` ubizjak at gmail dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-09 11:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
  2015-01-09 11:20 ` [Bug other/64370] " rguenth at gcc dot gnu.org
@ 2015-01-09 12:35 ` ubizjak at gmail dot com
  2015-01-09 13:40 ` dave.anglin at bell dot net
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2015-01-09 12:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
The exp2 call was substituted wiht scalbln as part of PR64503 fix.

Is this still an issue?
>From gcc-bugs-return-472610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 09 12:44:36 2015
Return-Path: <gcc-bugs-return-472610-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24531 invoked by alias); 9 Jan 2015 12:44:36 -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 23820 invoked by uid 48); 9 Jan 2015 12:44:29 -0000
From: "vekumar at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63949] Aarch64 instruction combiner does not optimize subsi_sxth function as expected (gcc.target/aarch64/extend.c fails)
Date: Fri, 09 Jan 2015 12:44: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: 5.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vekumar at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: vekumar at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63949-4-PiYStxh0vt@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63949-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63949-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: 2015-01/txt/msg00604.txt.bz2
Content-length: 1331

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc949

--- Comment #10 from vekumar at gcc dot gnu.org ---
(In reply to Segher Boessenkool from comment #9)
> A MULT by a constant power of 2 is not canonical RTL (well, not what
> simplify_rtx would give you); combine shouldn't generate this.


In that case we think, we need to fix this heuristic which assumes "MEM"
operation when we encounter a MINUS RTX in "make_compound_operation".


/* Select the code to be used in recursive calls.  Once we are inside an
      address, we stay there.  If we have a comparison, set to COMPARE,
      but once inside, go back to our default of SET.  */

   next_code = (code == MEM ? MEM
                : ((code == PLUS || code == MINUS)
                   && SCALAR_INT_MODE_P (mode)) ? MEM
                : ((code == COMPARE || COMPARISON_P (x))
                   && XEXP (x, 1) == const0_rtx) ? COMPARE
                : in_code == COMPARE ? SET : in_code);


 And later on make_compound_operation converts shift pattern to Mul.

 case ASHIFT:
      /* Convert shifts by constants into multiplications if inside
         an address.  */
      if (in_code == MEM && CONST_INT_P (XEXP (x, 1))
          && INTVAL (XEXP (x, 1)) < HOST_BITS_PER_WIDE_INT
          && INTVAL (XEXP (x, 1)) >= 0
          && SCALAR_INT_MODE_P (mode))
        {


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
  2015-01-09 11:20 ` [Bug other/64370] " rguenth at gcc dot gnu.org
  2015-01-09 12:35 ` ubizjak at gmail dot com
@ 2015-01-09 13:40 ` dave.anglin at bell dot net
  2015-01-09 19:25 ` maltsevm at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dave.anglin at bell dot net @ 2015-01-09 13:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #2 from dave.anglin at bell dot net ---
On 2015-01-09, at 7:35 AM, ubizjak at gmail dot com wrote:

> The exp2 call was substituted wiht scalbln as part of PR64503 fix.
> 
> 
> 
> Is this still an issue?

I will check but it would appear that it's still and issue.  scalbln is not
available.  What
is available is ldexp and the size of int is the same as size of long.

Dave
--
John David Anglin    dave.anglin@bell.net


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-09 13:40 ` dave.anglin at bell dot net
@ 2015-01-09 19:25 ` maltsevm at gmail dot com
  2015-01-09 19:31 ` ubizjak at gmail dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: maltsevm at gmail dot com @ 2015-01-09 19:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

Mikhail Maltsev <maltsevm at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maltsevm at gmail dot com

--- Comment #3 from Mikhail Maltsev <maltsevm at gmail dot com> ---
In libgfortran/intrinsics/c99_functions.c, scalbn is implemented like this:

double
scalbn (double x, int y)
{
#if (FLT_RADIX == 2) && defined(HAVE_LDEXP)
  return ldexp (x, y); 
#else
  return x * pow (FLT_RADIX, y); 
#endif
}

Maybe something similar could be used here. If pow is not OK, something like
this could be used:
return (y >= 0) ? x * (1 << y) : x / (1 << (-y)); (assuming that shift will not
cause overflow).

BTW, what if FLT_RADIX != 2?


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-09 19:25 ` maltsevm at gmail dot com
@ 2015-01-09 19:31 ` ubizjak at gmail dot com
  2015-01-12 11:09 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2015-01-09 19:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Mikhail Maltsev from comment #3)
> In libgfortran/intrinsics/c99_functions.c, scalbn is implemented like this:
> 
> double
> scalbn (double x, int y)

You should be extra careful here, we are using scalbln to avoid overflows. 
Please see PR64503, there are some ipa tests in the testsuite (e.g.
gcc.dg/ipa/iinline-4.c) that report -inf for estimated badness when other
functions are used.
>From gcc-bugs-return-472663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 09 20:40:21 2015
Return-Path: <gcc-bugs-return-472663-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 777 invoked by alias); 9 Jan 2015 20:40:20 -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 734 invoked by uid 55); 9 Jan 2015 20:40:14 -0000
From: "dave.anglin at bell dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
Date: Fri, 09 Jan 2015 20:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dave.anglin at bell dot net
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64370-4-bpBYCh5s4J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64370-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64370-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: 2015-01/txt/msg00657.txt.bz2
Content-length: 2133

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #5 from dave.anglin at bell dot net ---
On 2015-01-09 2:31 PM, ubizjak at gmail dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370
>
>
>
> --- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
>
> (In reply to Mikhail Maltsev from comment #3)
>
>> In libgfortran/intrinsics/c99_functions.c, scalbn is implemented like thi
> s:
>
>> double
>> scalbn (double x, int y)
>
>
> You should be extra careful here, we are using scalbln to avoid overflows.
>   
>
> Please see PR64503, there are some ipa tests in the testsuite (e.g.
>
> gcc.dg/ipa/iinline-4.c) that report -inf for estimated badness when other
>
> functions are used.

The change to using scalbln breaks hppa*-hpux11* as well:
g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -
W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format 
-Wmissing-format-
attribute -Woverloaded-virtual -pedantic -Wno-long-long 
-Wno-variadic-macros -Wn
o-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. 
-I../../gcc/gcc -I../.
./gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I/opt/
gnu/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber 
-I../../gcc/gcc/../libdecnu
mber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o sreal.o 
-MT srea
l.o -MMD -MP -MF ./.deps/sreal.TPo ../../gcc/gcc/sreal.c
../../gcc/gcc/sreal.c: In member function 'double sreal::to_double() const':
../../gcc/gcc/sreal.c:125:30: error: 'scalbln' was not declared in this 
scope
      val = scalbln (val, m_exp);


I am puzzled why scalbln was used as m_exp has type "signed int". The 
code also seems
to be specific to a radix of 2.  So, ldexp (x, y) or x * pow (2, y) seem 
like the correct functions
to use.  Also note that an int type should hold the full range of 
exponents for double
on every machine that I'm aware of, so it doesn't seem like there is any 
benefit in using
scalbln over ldexp.

I have read that there are problems with overflow detection on alpha.  
So, is that the issue?

Dave
>From gcc-bugs-return-472664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 09 20:58:16 2015
Return-Path: <gcc-bugs-return-472664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10422 invoked by alias); 9 Jan 2015 20:58:16 -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 10311 invoked by uid 55); 9 Jan 2015 20:58:04 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64505] Powerpc compiler generates insn not found for -m32 -mpowerpc64
Date: Fri, 09 Jan 2015 20:58: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64505-4-rqYI8MRDdf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64505-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64505-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: 2015-01/txt/msg00658.txt.bz2
Content-length: 1171

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd505

--- Comment #2 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Jan  9 20:57:30 2015
New Revision: 219403

URL: https://gcc.gnu.org/viewcvs?rev!9403&root=gcc&view=rev
Log:
[gcc]
2015-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

    Backport from mainline:
    2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

    PR target/64505
    * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
    correct reload handler if -m32 -mpowerpc64 is used.

[gcc/testsuite]
2015-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

    Backport from mainline:
    2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

    PR target/64505
    * gcc.target/powerpc/pr64505.c: New file to test -m32 -mpowerpc64
    fix is correct.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.target/powerpc/pr64505.c
      - copied, changed from r219264,
trunk/gcc/testsuite/gcc.target/powerpc/pr64505.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-01-09 19:31 ` ubizjak at gmail dot com
@ 2015-01-12 11:09 ` jakub at gcc dot gnu.org
  2015-01-12 11:16 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 11:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Do you have ldexp on HPUX?  Asking because that is used in jcf-dump already...


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-01-12 11:09 ` jakub at gcc dot gnu.org
@ 2015-01-12 11:16 ` ubizjak at gmail dot com
  2015-01-12 13:25 ` dave.anglin at bell dot net
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2015-01-12 11:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to dave.anglin from comment #5)
> 
> I have read that there are problems with overflow detection on alpha.  
> So, is that the issue?

The issue us that -inf will ICE with FP exception on alpha. I don't think -inf
(which is otherwise produced on other targets) is valid result, and using
scalbln avoids it.
>From gcc-bugs-return-472787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 12 11:22:59 2015
Return-Path: <gcc-bugs-return-472787-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17224 invoked by alias); 12 Jan 2015 11:22:58 -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 17155 invoked by uid 48); 12 Jan 2015 11:22:51 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64565] New: [5 Regression] ICE: in inline_small_functions, at ipa-inline.c:1664
Date: Mon, 12 Jan 2015 11:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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 cc
Message-ID: <bug-64565-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: 2015-01/txt/msg00781.txt.bz2
Content-length: 2283

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd565

            Bug ID: 64565
           Summary: [5 Regression] ICE: in inline_small_functions, at
                    ipa-inline.c:1664
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org

Since r219452 I get:

trippels@gcc2-power8 places % cat nsNavHistoryResult.ii
typedef enum
{
  NS_OK
} nsresult;
struct A
{
  static int kIID;
};
class B
{
};
class C
{
public:
  C (B p1) { m_fn1 (p1, A::kIID); }
  void m_fn1 (B, int);
};
class D;
class F
{
public:
  F (int);
};
class G
{
public:
  D *operator[](int);
};
class H
{
  virtual nsresult m_fn2 ();

public:
  void m_fn3 ();
};
class J : H
{
  G mQueries;
  int mLiveUpdate;
  nsresult m_fn2 ();
};
class D
{
public:
  nsresult m_fn4 (int);
  void m_fn5 (int);
};
class I
{
public:
  static I *
  m_fn6 ()
  {
    B __trans_tmp_3;
    if (!gHistoryService)
      C serv = __trans_tmp_3;
  }
  void m_fn7 ();
  static I *gHistoryService;
};
D *Refresh___trans_tmp_2;
D Refresh___trans_tmp_6, Refresh___trans_tmp_5;
int Refresh_hasDomain;
nsresult
J::m_fn2 ()
{
  m_fn3 ();
  I history = *I::m_fn6 ();
  switch (mLiveUpdate)
    {
    case 1:
      {
        mQueries[0];
        F query = 0;
        if (Refresh_hasDomain)
          return NS_OK;
      }
    case 0:
      {
        Refresh___trans_tmp_2 = mQueries[0];
        F query = Refresh___trans_tmp_5.m_fn4 (0);
        history.m_fn7 ();
        Refresh___trans_tmp_6.m_fn5 (0);
      }
    case 3:
      m_fn2 ();
    }
}

trippels@gcc2-power8 places % c++ -c -O2 nsNavHistoryResult.ii
nsNavHistoryResult.ii:88:1: internal compiler error: in inline_small_functions,
at ipa-inline.c:1664
 }
 ^
0x1103ce83 inline_small_functions
        ../../gcc/gcc/ipa-inline.c:1664
0x1103ce83 ipa_inline
        ../../gcc/gcc/ipa-inline.c:2163
0x1103ce83 execute
        ../../gcc/gcc/ipa-inline.c:2536
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-01-12 11:16 ` ubizjak at gmail dot com
@ 2015-01-12 13:25 ` dave.anglin at bell dot net
  2015-01-12 20:30 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dave.anglin at bell dot net @ 2015-01-12 13:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #8 from dave.anglin at bell dot net ---
On 2015-01-12, at 6:09 AM, jakub at gcc dot gnu.org wrote:

> Do you have ldexp on HPUX?  Asking because that is used in jcf-dump already...

Yes, it's available on hpux10.20 and hpux11.

Dave
--
John David Anglin    dave.anglin@bell.net


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-01-12 13:25 ` dave.anglin at bell dot net
@ 2015-01-12 20:30 ` jakub at gcc dot gnu.org
  2015-01-12 20:43 ` jakub at gcc dot gnu.org
  2015-01-13  7:23 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 20:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jan 12 20:30:09 2015
New Revision: 219489

URL: https://gcc.gnu.org/viewcvs?rev=219489&root=gcc&view=rev
Log:
    PR other/64370
    * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sreal.c


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2015-01-12 20:30 ` jakub at gcc dot gnu.org
@ 2015-01-12 20:43 ` jakub at gcc dot gnu.org
  2015-01-13  7:23 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-12 20:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Assuming fixed then.


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

* [Bug other/64370] [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope
  2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2015-01-12 20:43 ` jakub at gcc dot gnu.org
@ 2015-01-13  7:23 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2015-01-13  7:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64370

--- Comment #11 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #10)
> Assuming fixed then.

ldexp is also OK for alpha.
>From gcc-bugs-return-472915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 13 08:20:22 2015
Return-Path: <gcc-bugs-return-472915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7775 invoked by alias); 13 Jan 2015 08:20:21 -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 7713 invoked by uid 48); 13 Jan 2015 08:20:14 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/64570] error: non-trivial conversion at assignment
Date: Tue, 13 Jan 2015 08:20: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: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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: bug_status cf_reconfirmed_on cc component everconfirmed
Message-ID: <bug-64570-4-usu9qVR6cD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64570-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: 2015-01/txt/msg00909.txt.bz2
Content-length: 1999

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64570

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-13
                 CC|                            |trippels at gcc dot gnu.org
          Component|c++                         |tree-optimization
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc20 test % cat bug181.cc
namespace std {
template <class> class initializer_list {
  int *_M_array;
  int _M_len;
};
class A {
public:
  void operator=(initializer_list<int>);
};
class B {
  void m_fn1(A &) const;
};
void B::m_fn1(A &) const {
  A extra;
  extra = {};
}
}

trippels@gcc20 test % g++ -c -O2 -std=gnu++0x bug181.cc
bug181.cc: In member function ‘void std::B::m_fn1(std::A&) const’:
bug181.cc:13:6: error: non-trivial conversion at assignment
 void B::m_fn1(A &) const {
      ^
int
sizetype
D.2405._M_len = 0;
bug181.cc:13:6: internal compiler error: verify_gimple failed
0xceb3af verify_gimple_in_seq(gimple_statement_base*)
        ../../gcc/gcc/tree-cfg.c:4723
0xac6daf gimplify_body(tree_node*, bool)
        ../../gcc/gcc/gimplify.c:8917
0xac70e6 gimplify_function_tree(tree_node*)
        ../../gcc/gcc/gimplify.c:9002
0x90ab67 cgraph_node::analyze()
        ../../gcc/gcc/cgraphunit.c:620
0x90d427 analyze_functions
        ../../gcc/gcc/cgraphunit.c:1008
0x90e085 symbol_table::finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2361
0x6e2df3 cp_write_global_declarations()
        ../../gcc/gcc/cp/decl2.c:4747
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-472916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 13 08:24:22 2015
Return-Path: <gcc-bugs-return-472916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10071 invoked by alias); 13 Jan 2015 08:24:22 -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 9819 invoked by uid 55); 13 Jan 2015 08:24:16 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcj/64219] [5 Regression] Rename libgcj-5.0.pc to libgcj-5.pc
Date: Tue, 13 Jan 2015 08:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcj
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64219-4-VEmIFPiBvs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64219-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64219-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: 2015-01/txt/msg00910.txt.bz2
Content-length: 514

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd219

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan 13 08:23:31 2015
New Revision: 219519

URL: https://gcc.gnu.org/viewcvs?rev!9519&root=gcc&view=rev
Log:
    PR libgcj/64219
    * Makefile.am (install-data-local): Use just the major version
    from GCJVERSION instead of major.minor.
    * Makefile.in: Regenerated.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/Makefile.am
    trunk/libjava/Makefile.in


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

end of thread, other threads:[~2015-01-13  7:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-21 15:23 [Bug other/64370] New: [5 Regression] sreal.c:125:23: error: 'exp2' was not declared in this scope danglin at gcc dot gnu.org
2015-01-09 11:20 ` [Bug other/64370] " rguenth at gcc dot gnu.org
2015-01-09 12:35 ` ubizjak at gmail dot com
2015-01-09 13:40 ` dave.anglin at bell dot net
2015-01-09 19:25 ` maltsevm at gmail dot com
2015-01-09 19:31 ` ubizjak at gmail dot com
2015-01-12 11:09 ` jakub at gcc dot gnu.org
2015-01-12 11:16 ` ubizjak at gmail dot com
2015-01-12 13:25 ` dave.anglin at bell dot net
2015-01-12 20:30 ` jakub at gcc dot gnu.org
2015-01-12 20:43 ` jakub at gcc dot gnu.org
2015-01-13  7:23 ` 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).