public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/37501] New: [4.4 regression] ABI breakage with _gfortran_set_options @ 2008-09-12 19:18 tkoenig at gcc dot gnu dot org 2008-09-12 19:49 ` [Bug fortran/37501] " tkoenig at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2008-09-12 19:18 UTC (permalink / raw) To: gcc-bugs $ cat 43.f90 end $ cat 44.f90 end $ gfortran-4.3 -fdump-tree-original 43.f90 $ gfortran -fdump-tree-original 44.f90 $ diff -u *original --- 43.f90.003t.original 2008-09-12 21:12:50.000000000 +0200 +++ 44.f90.003t.original 2008-09-12 21:12:59.000000000 +0200 @@ -1,8 +1,8 @@ MAIN__ () { - static integer(kind=4) options.0[7] = {68, 127, 0, 0, 0, 1, 0}; + static integer(kind=4) options.0[8] = {68, 255, 0, 0, 0, 1, 0, 1}; - _gfortran_set_options (7, (void *) &options.0); + _gfortran_set_options (8, (void *) &options.0); } This makes running 4.3 programs with the 4.4 libraries impossible, as the library will receive garbage on its eigth argument. -- Summary: [4.4 regression] ABI breakage with _gfortran_set_options Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: wrong-code, ABI Severity: critical Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tkoenig at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37501 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/37501] [4.4 regression] ABI breakage with _gfortran_set_options 2008-09-12 19:18 [Bug fortran/37501] New: [4.4 regression] ABI breakage with _gfortran_set_options tkoenig at gcc dot gnu dot org @ 2008-09-12 19:49 ` tkoenig at gcc dot gnu dot org 2008-09-12 20:01 ` burnus at gcc dot gnu dot org 2008-09-12 20:03 ` tkoenig at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2008-09-12 19:49 UTC (permalink / raw) To: gcc-bugs -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37501 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/37501] [4.4 regression] ABI breakage with _gfortran_set_options 2008-09-12 19:18 [Bug fortran/37501] New: [4.4 regression] ABI breakage with _gfortran_set_options tkoenig at gcc dot gnu dot org 2008-09-12 19:49 ` [Bug fortran/37501] " tkoenig at gcc dot gnu dot org @ 2008-09-12 20:01 ` burnus at gcc dot gnu dot org 2008-09-12 20:03 ` tkoenig at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: burnus at gcc dot gnu dot org @ 2008-09-12 20:01 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from burnus at gcc dot gnu dot org 2008-09-12 19:59 ------- > This makes running 4.3 programs with the 4.4 libraries impossible, > as the library will receive garbage on its eigth argument. Why? The first argument should tell how many arguments exists. set_options has: if (num >= 7) compile_options.bounds_check = options[6]; if (num >= 8) compile_options.range_check = options[7]; Thus if there is no 8th argument, there should be no problem (assuming that there are reasonable default values). -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37501 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/37501] [4.4 regression] ABI breakage with _gfortran_set_options 2008-09-12 19:18 [Bug fortran/37501] New: [4.4 regression] ABI breakage with _gfortran_set_options tkoenig at gcc dot gnu dot org 2008-09-12 19:49 ` [Bug fortran/37501] " tkoenig at gcc dot gnu dot org 2008-09-12 20:01 ` burnus at gcc dot gnu dot org @ 2008-09-12 20:03 ` tkoenig at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: tkoenig at gcc dot gnu dot org @ 2008-09-12 20:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from tkoenig at gcc dot gnu dot org 2008-09-12 20:02 ------- Ooooooooooooops, you're right. Closing. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37501 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-12 20:03 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-09-12 19:18 [Bug fortran/37501] New: [4.4 regression] ABI breakage with _gfortran_set_options tkoenig at gcc dot gnu dot org 2008-09-12 19:49 ` [Bug fortran/37501] " tkoenig at gcc dot gnu dot org 2008-09-12 20:01 ` burnus at gcc dot gnu dot org 2008-09-12 20:03 ` tkoenig 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).