public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/51483] New: [4.7 regression] Ada's cstand.adb:Register_Float_Type makes invalid assumptions about FP representation
@ 2011-12-09  9:39 mikpe at it dot uu.se
  2011-12-09  9:58 ` [Bug ada/51483] " rguenth at gcc dot gnu.org
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: mikpe at it dot uu.se @ 2011-12-09  9:39 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51483
           Summary: [4.7 regression] Ada's cstand.adb:Register_Float_Type
                    makes invalid assumptions about FP representation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikpe@it.uu.se


Redirected from PR48835:

Attempting to build an Ada-enabled gcc-4.7 cross to m68k-linux fails with:

/tmp/objdir/./gcc/xgcc -B/tmp/objdir/./gcc/
-B/home/mikpe/pkgs/linux-x86/cross-m68k/m68k-unknown-linux/bin/
-B/home/mikpe/pkgs/linux-x86/cross-m68k/m68k-unknown-linux/lib/ -isystem
/home/mikpe/pkgs/linux-x86/cross-m68k/m68k-unknown-linux/include -isystem
/home/mikpe/pkgs/linux-x86/cross-m68k/m68k-unknown-linux/sys-include    -c -g
-O2   -W -Wall -gnatpg -nostdinc   a-assert.adb -o a-assert.o
+===========================GNAT BUG DETECTED==============================+
| 4.7.0 20111203 (experimental) (m68k-unknown-linux) GCC error:            |
| in fp_size_to_prec, at ada/gcc-interface/misc.c:781                      |

(you don't need the m68k-linux Ada support patch for this, vanilla upstream gcc
sources suffice)

This worked up to r177136, but broke due to r177137+177141.

Eric Botcazou commented:
> No, but the new code (cstand.adb:Register_Float_Type) makes an invalid
> assumption about the size of a FP mode given its precision and alignment,
> instead of using the proper interface.  enumerate_modes should probably pass
> GET_MODE_BITSIZE to its callback.  I'd suggest opening a new regression PR for
> this problem.


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

end of thread, other threads:[~2014-03-13 19:10 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-09  9:39 [Bug ada/51483] New: [4.7 regression] Ada's cstand.adb:Register_Float_Type makes invalid assumptions about FP representation mikpe at it dot uu.se
2011-12-09  9:58 ` [Bug ada/51483] " rguenth at gcc dot gnu.org
2011-12-09 15:43 ` [Bug ada/51483] [4.7 regression] " ebotcazou at gcc dot gnu.org
2011-12-09 16:27 ` jakub at gcc dot gnu.org
2012-01-09 21:36 ` schwab@linux-m68k.org
2012-01-09 23:45 ` ebotcazou at gcc dot gnu.org
2012-01-10  0:17 ` schwab@linux-m68k.org
2012-01-10  2:56 ` bosch at gcc dot gnu.org
2012-01-10  9:25 ` schwab@linux-m68k.org
2012-01-30 12:16 ` mikpe at it dot uu.se
2012-01-31  1:15 ` mikpe at it dot uu.se
2012-02-01 12:42 ` mikpe at it dot uu.se
2012-02-29 19:44 ` mikpe at it dot uu.se
2012-03-22  8:51 ` [Bug ada/51483] [4.7/4.8 " rguenth at gcc dot gnu.org
2012-06-14  8:14 ` rguenth at gcc dot gnu.org
2012-09-20 10:14 ` jakub at gcc dot gnu.org
2013-02-04  0:08 ` cynt6007 at vandals dot uidaho.edu
2013-02-04  7:15 ` ebotcazou at gcc dot gnu.org
2013-04-11  7:58 ` [Bug ada/51483] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2014-02-28 19:32 ` law at redhat dot com
2014-02-28 21:35 ` ebotcazou at gcc dot gnu.org
2014-03-10 20:11 ` ebotcazou at gcc dot gnu.org
2014-03-10 20:12 ` ebotcazou at gcc dot gnu.org
2014-03-10 20:17 ` bosch at adacore dot com
2014-03-13 15:43 ` [Bug ada/51483] [4.7/4.8/4.9 regression] cstand.adb:Register_Float_Type makes invalid assumption about FP modes ebotcazou at gcc dot gnu.org
2014-03-13 15:43 ` ebotcazou at gcc dot gnu.org
2014-03-13 15:43 ` ebotcazou at gcc dot gnu.org
2014-03-13 15:44 ` ebotcazou at gcc dot gnu.org
2014-03-13 19:10 ` mikpelinux 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).