public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26374]  New: Compile failure on long double
@ 2006-02-19 21:59 mueller at gcc dot gnu dot org
  2006-02-19 22:01 ` [Bug target/26374] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-02-19 21:59 UTC (permalink / raw)
  To: gcc-bugs

=== Cut ===
static const double  coeff[] = { 1.0l/42 };
=== Cut ===

gives: 

testcase.c:1: error: initializer element is not constant
testcase.c:1: error: (near initialization for ‘coeff[0]’)


-- 
           Summary: Compile failure on long double
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mueller at gcc dot gnu dot org
  GCC host triplet: powerpc-unknown-linux


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
@ 2006-02-19 22:01 ` pinskia at gcc dot gnu dot org
  2006-02-19 22:02 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-19 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-19 22:01 -------
This is actually because the middle-end does not constant fold 128bit IBM long
double.  I am assuming you are using -mlong-double-128.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|powerpc-unknown-linux       |
 GCC target triplet|                            |powerpc-*-*
            Summary|Compile failure on long     |Compile failure on long
                   |double                      |double


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
  2006-02-19 22:01 ` [Bug target/26374] " pinskia at gcc dot gnu dot org
@ 2006-02-19 22:02 ` pinskia at gcc dot gnu dot org
  2006-02-19 22:03 ` rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-19 22:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-19 22:02 -------
Which is PR 19779.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |19779


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
  2006-02-19 22:01 ` [Bug target/26374] " pinskia at gcc dot gnu dot org
  2006-02-19 22:02 ` pinskia at gcc dot gnu dot org
@ 2006-02-19 22:03 ` rguenth at gcc dot gnu dot org
  2006-02-19 22:04 ` mueller at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-19 22:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-19 22:03 -------
I'm not sure 1.0l/42 is a valid constant initializer.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|19779                       |


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-19 22:03 ` rguenth at gcc dot gnu dot org
@ 2006-02-19 22:04 ` mueller at gcc dot gnu dot org
  2006-02-19 22:20 ` mueller at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-02-19 22:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mueller at gcc dot gnu dot org  2006-02-19 22:04 -------
yes, full configure line: 

Target: powerpc64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,java --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp
--enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --without-system-libunwind --enable-secureplt
--with-long-double-128 --host=powerpc64-suse-linux


-- 


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-19 22:04 ` mueller at gcc dot gnu dot org
@ 2006-02-19 22:20 ` mueller at gcc dot gnu dot org
  2006-02-19 22:24 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-02-19 22:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mueller at gcc dot gnu dot org  2006-02-19 22:20 -------
hmm, I guess I'm find with resolving this as duplicate to 19779, even though I
don't understand why this is only an issue on PPC for me..


-- 


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


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

* [Bug target/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-19 22:20 ` mueller at gcc dot gnu dot org
@ 2006-02-19 22:24 ` pinskia at gcc dot gnu dot org
  2006-02-20 19:33 ` [Bug middle-end/26374] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-19 22:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-02-19 22:24 -------
(In reply to comment #5)
> hmm, I guess I'm find with resolving this as duplicate to 19779, even though I
> don't understand why this is only an issue on PPC for me..

It is because the long double format used on PPC is IBM's 128bit long double
which is two doubles basicially added together.


-- 


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-19 22:24 ` pinskia at gcc dot gnu dot org
@ 2006-02-20 19:33 ` pinskia at gcc dot gnu dot org
  2006-02-24 21:07 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-20 19:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-20 19:33 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|target                      |middle-end
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-20 19:33:44
               date|                            |


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-02-20 19:33 ` [Bug middle-end/26374] " pinskia at gcc dot gnu dot org
@ 2006-02-24 21:07 ` pinskia at gcc dot gnu dot org
  2006-04-06 16:14 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 21:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-02-24 21:04 -------
*** Bug 26462 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pluto at agmk dot net


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-02-24 21:07 ` pinskia at gcc dot gnu dot org
@ 2006-04-06 16:14 ` pinskia at gcc dot gnu dot org
  2006-12-28 14:32 ` dwmw2 at infradead dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-06 16:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2006-04-06 16:13 -------
*** Bug 27054 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-04-06 16:14 ` pinskia at gcc dot gnu dot org
@ 2006-12-28 14:32 ` dwmw2 at infradead dot org
  2006-12-28 14:48 ` pinskia at gcc dot gnu dot org
  2007-03-22 23:50 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: dwmw2 at infradead dot org @ 2006-12-28 14:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dwmw2 at infradead dot org  2006-12-28 14:32 -------
Any progress on this?


-- 

dwmw2 at infradead dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dwmw2 at infradead dot org


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-12-28 14:32 ` dwmw2 at infradead dot org
@ 2006-12-28 14:48 ` pinskia at gcc dot gnu dot org
  2007-03-22 23:50 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-28 14:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-12-28 14:48 -------
(In reply to comment #10)
> Any progress on this?
There are two way of fixing this as far as I can see:
teach real.c about how to fold IBM 128bit long double format
use MPFR instead

I would use the latter if I got any time but I don't have any time to do
either.


-- 


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


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

* [Bug middle-end/26374] Compile failure on long double
  2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2006-12-28 14:48 ` pinskia at gcc dot gnu dot org
@ 2007-03-22 23:50 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-22 23:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2007-03-22 23:49 -------
*** Bug 31321 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |beebe at math dot utah dot
                   |                            |edu


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


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

end of thread, other threads:[~2007-03-22 23:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-19 21:59 [Bug target/26374] New: Compile failure on long double mueller at gcc dot gnu dot org
2006-02-19 22:01 ` [Bug target/26374] " pinskia at gcc dot gnu dot org
2006-02-19 22:02 ` pinskia at gcc dot gnu dot org
2006-02-19 22:03 ` rguenth at gcc dot gnu dot org
2006-02-19 22:04 ` mueller at gcc dot gnu dot org
2006-02-19 22:20 ` mueller at gcc dot gnu dot org
2006-02-19 22:24 ` pinskia at gcc dot gnu dot org
2006-02-20 19:33 ` [Bug middle-end/26374] " pinskia at gcc dot gnu dot org
2006-02-24 21:07 ` pinskia at gcc dot gnu dot org
2006-04-06 16:14 ` pinskia at gcc dot gnu dot org
2006-12-28 14:32 ` dwmw2 at infradead dot org
2006-12-28 14:48 ` pinskia at gcc dot gnu dot org
2007-03-22 23:50 ` pinskia 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).