public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/43106]  New: gnat optimization error
@ 2010-02-17 17:05 neven at hitt dot nl
  2010-02-17 17:07 ` [Bug ada/43106] " neven at hitt dot nl
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: neven at hitt dot nl @ 2010-02-17 17:05 UTC (permalink / raw)
  To: gcc-bugs

The attached Ada program outputs "RADPR RADSSR" when compiled as:
gnatmake -Wall -O0 -v test_main -o ada_test
but generates "raised CONSTRAINT_ERROR : radar_types.adb:11 range check failed"
when compiled as:
gnatmake -Wall -O1 -v test_main -o ada_test

OS is OpenSuse 11.2.

gcc -v:
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.4
--enable-linux-futex --without-system-libunwind --with-arch-32=i586
--with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)


-- 
           Summary: gnat optimization error
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neven at hitt dot nl
 GCC build triplet: x86_64-suse-linux
  GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux


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


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

* [Bug ada/43106] gnat optimization error
  2010-02-17 17:05 [Bug ada/43106] New: gnat optimization error neven at hitt dot nl
@ 2010-02-17 17:07 ` neven at hitt dot nl
  2010-03-18 22:04 ` [Bug ada/43106] gnat optimization error in a case statement sam at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: neven at hitt dot nl @ 2010-02-17 17:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from neven at hitt dot nl  2010-02-17 17:07 -------
Created an attachment (id=19896)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19896&action=view)
concatenated Ada source files


-- 


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


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

* [Bug ada/43106] gnat optimization error in a case statement
  2010-02-17 17:05 [Bug ada/43106] New: gnat optimization error neven at hitt dot nl
  2010-02-17 17:07 ` [Bug ada/43106] " neven at hitt dot nl
@ 2010-03-18 22:04 ` sam at gcc dot gnu dot org
  2010-03-19  7:19 ` ebotcazou at gcc dot gnu dot org
  2010-03-19  7:22 ` [Bug ada/43106] " ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: sam at gcc dot gnu dot org @ 2010-03-18 22:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sam at gcc dot gnu dot org  2010-03-18 22:04 -------
I can reproduce the bug with 4.4.3 but not with gcc (GCC) 4.5.0 20100317
(experimental) on x86_64. This may already be fixed.


-- 


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


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

* [Bug ada/43106] gnat optimization error in a case statement
  2010-02-17 17:05 [Bug ada/43106] New: gnat optimization error neven at hitt dot nl
  2010-02-17 17:07 ` [Bug ada/43106] " neven at hitt dot nl
  2010-03-18 22:04 ` [Bug ada/43106] gnat optimization error in a case statement sam at gcc dot gnu dot org
@ 2010-03-19  7:19 ` ebotcazou at gcc dot gnu dot org
  2010-03-19  7:22 ` [Bug ada/43106] " ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-03-19  7:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ebotcazou at gcc dot gnu dot org  2010-03-19 07:19 -------
Subject: Bug 43106

Author: ebotcazou
Date: Fri Mar 19 07:18:47 2010
New Revision: 157558

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157558
Log:
        PR ada/43106
        * gnat.dg/case_optimization2.adb: New test.
        * gnat.dg/case_optimization_pkg2.ad[sb]: New helper.

Added:
    trunk/gcc/testsuite/gnat.dg/case_optimization2.adb
    trunk/gcc/testsuite/gnat.dg/case_optimization_pkg2.adb
    trunk/gcc/testsuite/gnat.dg/case_optimization_pkg2.ads
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug ada/43106] optimization error in a case statement
  2010-02-17 17:05 [Bug ada/43106] New: gnat optimization error neven at hitt dot nl
                   ` (2 preceding siblings ...)
  2010-03-19  7:19 ` ebotcazou at gcc dot gnu dot org
@ 2010-03-19  7:22 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-03-19  7:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ebotcazou at gcc dot gnu dot org  2010-03-19 07:22 -------
Presumably by the overhaul of the subtypes support.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
            Summary|gnat optimization error in a|optimization error in a case
                   |case statement              |statement
   Target Milestone|---                         |4.5.0


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


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

end of thread, other threads:[~2010-03-19  7:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 17:05 [Bug ada/43106] New: gnat optimization error neven at hitt dot nl
2010-02-17 17:07 ` [Bug ada/43106] " neven at hitt dot nl
2010-03-18 22:04 ` [Bug ada/43106] gnat optimization error in a case statement sam at gcc dot gnu dot org
2010-03-19  7:19 ` ebotcazou at gcc dot gnu dot org
2010-03-19  7:22 ` [Bug ada/43106] " ebotcazou 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).