public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
[not found] <bug-26766-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-15 22:21 ` cvs-commit at gcc dot gnu.org
0 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-15 22:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:4a5e71f2348adcc49939804889d9f1a64d97005a
commit r12-6006-g4a5e71f2348adcc49939804889d9f1a64d97005a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Nov 13 06:11:41 2021 -0800
Sync with binutils: Support the PGO build for binutils+gdb
Sync with binutils for building binutils with LTO:
1dbde357be3 Add missing changes to Makefile.tpl
af019bfde9b Support the PGO build for binutils+gdb
Add the --enable-pgo-build[=lto] configure option. When binutils+gdb
is not built together with GCC, --enable-pgo-build enables the PGO build:
1. First build with -fprofile-generate.
2. Use "make maybe-check-*" to generate profiling data and pass -i to make
to ignore errors when generating profiling data.
3. Use "make clean" to remove the previous build.
4. Rebuild with -fprofile-use.
With --enable-pgo-build=lto, -flto=jobserver -ffat-lto-objects are used
together with -fprofile-generate and -fprofile-use. Add '+' to the command
line for recursive make to support -flto=jobserver -ffat-lto-objects.
NB: --enable-pgo-build=lto enables the PGO build with LTO while
--enable-lto enables LTO support in toolchain.
BZ binutils/26766
* Makefile.tpl (BUILD_CFLAGS): New.
(CFLAGS): Append $(BUILD_CFLAGS).
(CXXFLAGS): Likewise.
(PGO_BUILD_GEN_FLAGS_TO_PASS): New.
(PGO_BUILD_TRAINING_CFLAGS): Likewise.
(PGO_BUILD_TRAINING_CXXFLAGS): Likewise.
(PGO_BUILD_TRAINING_FLAGS_TO_PASS): Likewise.
(PGO_BUILD_TRAINING_MFLAGS): Likewise.
(PGO_BUILD_USE_FLAGS_TO_PASS): Likewise.
(PGO-TRAINING-TARGETS): Likewise.
(PGO_BUILD_TRAINING): Likewise.
(all): Add '+' to the command line for recursive make. Support
the PGO build.
* configure.ac: Add --enable-pgo-build[=lto].
AC_SUBST PGO_BUILD_GEN_CFLAGS, PGO_BUILD_USE_CFLAGS and
PGO_BUILD_LTO_CFLAGS. Enable the PGO build in Makefile.
* Makefile.in: Regenerated.
* configure: Likewise.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (7 preceding siblings ...)
2006-04-17 4:34 ` jvdelisle at gcc dot gnu dot org
@ 2006-04-17 4:38 ` jvdelisle at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-04-17 4:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jvdelisle at gcc dot gnu dot org 2006-04-17 04:38 -------
Fixed on 4.1 and trunk
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (6 preceding siblings ...)
2006-04-17 4:31 ` jvdelisle at gcc dot gnu dot org
@ 2006-04-17 4:34 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:38 ` jvdelisle at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-04-17 4:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2006-04-17 04:34 -------
Subject: Bug 26766
Author: jvdelisle
Date: Mon Apr 17 04:33:59 2006
New Revision: 113003
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113003
Log:
2006-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26766
* gfortran.dg/write_recursive.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/write_recursive.f90
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (5 preceding siblings ...)
2006-04-13 6:30 ` jvdelisle at gcc dot gnu dot org
@ 2006-04-17 4:31 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:34 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:38 ` jvdelisle at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-04-17 4:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-04-17 04:31 -------
Subject: Bug 26766
Author: jvdelisle
Date: Mon Apr 17 04:31:18 2006
New Revision: 113002
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113002
Log:
2006-04-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26766
* io/io.h: Add bit to identify associated unit as internal.
* io/unit.c (get_external_unit): Renamed the find_unit_1 function to
reflect the external unit functionality vs internal unit.
(get_internal_unit): New function to allocate and initialize an
internal
unit structure.
(get_unit): Use get_internal_unit and get_external_unit.
(is_internal_unit): Revised to use new bit added in io.h.
* io/transfer.c (data_transfer_init): Fix line width.
(st_read_done): Free memory allocated for internal unit.
(st_write_done): Add test to only flush and truncate when not an
internal unit. Free memory allocated for internal unit.
Modified:
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/io.h
branches/gcc-4_1-branch/libgfortran/io/transfer.c
branches/gcc-4_1-branch/libgfortran/io/unit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (4 preceding siblings ...)
2006-04-13 6:25 ` jvdelisle at gcc dot gnu dot org
@ 2006-04-13 6:30 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:31 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-04-13 6:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-04-13 06:30 -------
Subject: Bug 26766
Author: jvdelisle
Date: Thu Apr 13 06:30:04 2006
New Revision: 112915
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112915
Log:
2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26766
* gfortran.dg/write_recursive.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/write_recursive.f90
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (3 preceding siblings ...)
2006-04-07 4:00 ` patchapp at dberlin dot org
@ 2006-04-13 6:25 ` jvdelisle at gcc dot gnu dot org
2006-04-13 6:30 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-04-13 6:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-04-13 06:25 -------
Subject: Bug 26766
Author: jvdelisle
Date: Thu Apr 13 06:24:58 2006
New Revision: 112914
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112914
Log:
2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26766
* io/io.h: Add bit to identify associated unit as internal.
* io/unit.c (get_external_unit): Renamed the find_unit_1 function to
reflect the external unit functionality vs internal unit.
(get_internal_unit): New function to allocate and initialize an
internal
unit structure.
(get_unit): Use get_internal_unit and get_external_unit.
(is_internal_unit): Revised to use new bit added in io.h.
* io/transfer.c (data_transfer_init): Fix line width.
(st_read_done): Free memory allocated for internal unit.
(st_write_done): Add test to only flush and truncate when not an
internal unit. Free memory allocated for internal unit.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/io.h
trunk/libgfortran/io/transfer.c
trunk/libgfortran/io/unit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
` (2 preceding siblings ...)
2006-03-24 2:06 ` jvdelisle at gcc dot gnu dot org
@ 2006-04-07 4:00 ` patchapp at dberlin dot org
2006-04-13 6:25 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: patchapp at dberlin dot org @ 2006-04-07 4:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from patchapp at dberlin dot org 2006-04-07 04:00 -------
Subject: Bug number PR26766
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00249.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
2006-03-20 17:20 ` [Bug fortran/26766] " pinskia at gcc dot gnu dot org
2006-03-21 6:05 ` jvdelisle at gcc dot gnu dot org
@ 2006-03-24 2:06 ` jvdelisle at gcc dot gnu dot org
2006-04-07 4:00 ` patchapp at dberlin dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-03-24 2:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2006-03-24 02:06 -------
I think I have a fix for this. The internal_unit is a single static variable
declared in unit.c. So when we have recursive calls to internal IO we are
stepping on our own feet.
The dtp structure also contains a unit structure. If we use this structure
instead, there will be an independent internal unit for each internal string or
character array we do I/O with.
I will see if I can work up a patch in the next few weeks.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-03-20 17:20:50 |2006-03-24 02:06:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
2006-03-20 17:20 ` [Bug fortran/26766] " pinskia at gcc dot gnu dot org
@ 2006-03-21 6:05 ` jvdelisle at gcc dot gnu dot org
2006-03-24 2:06 ` jvdelisle at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-03-21 6:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2006-03-21 06:05 -------
Looking at -fdump-tree-original, should the internal unit descriptors in foo
and in main have the same value?
foo (__result, .__result, i)
{
if (*i < 0)
{
_gfortran_copy_string (4, __result, 4, "1234");
}
else
{
{
struct __st_parameter_dt dt_parm.0;
dt_parm.0.common.filename = "pr26766.f90";
dt_parm.0.common.line = 15;
dt_parm.0.internal_unit = (char *) __result;
dt_parm.0.internal_unit_len = 4;
dt_parm.0.internal_unit_desc = 0B; <------ here -------
dt_parm.0.common.unit = 0;
dt_parm.0.format = "(i4.4)";
dt_parm.0.format_len = 6;
dt_parm.0.common.flags = 20480;
_gfortran_st_write (&dt_parm.0);
_gfortran_transfer_integer (&dt_parm.0, (int4 *) i, 4);
_gfortran_st_write_done (&dt_parm.0);
}
}
MAIN__ ()
{
char str[1:4];
static void foo (char[1:4] &, int4, int4 &);
_gfortran_set_std (70, 127, 0);
{
struct __st_parameter_dt dt_parm.1;
dt_parm.1.common.filename = "pr26766.f90";
dt_parm.1.common.line = 4;
dt_parm.1.internal_unit = &str;
dt_parm.1.internal_unit_len = 4;
dt_parm.1.internal_unit_desc = 0B; <------ and Here -------
dt_parm.1.common.unit = 0;
dt_parm.1.format = "(a)";
dt_parm.1.format_len = 3;
dt_parm.1.common.flags = 20480;
_gfortran_st_write (&dt_parm.1);
{
char str.2[4];
int4 C.906 = 1234;
foo ((char[1:4] *) &str.2, 4, &C.906);
_gfortran_transfer_character (&dt_parm.1, (char[1:4] *) &str.2, 4);
}
_gfortran_st_write_done (&dt_parm.1);
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/26766] [F2003] Recursive I/O still (again) broken
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
@ 2006-03-20 17:20 ` pinskia at gcc dot gnu dot org
2006-03-21 6:05 ` jvdelisle at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-20 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-20 17:20 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |20585
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC host triplet|i686-pc-cygwin |
Last reconfirmed|0000-00-00 00:00:00 |2006-03-20 17:20:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-12-15 22:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-26766-4@http.gcc.gnu.org/bugzilla/>
2021-12-15 22:21 ` [Bug fortran/26766] [F2003] Recursive I/O still (again) broken cvs-commit at gcc dot gnu.org
2006-03-20 8:51 [Bug fortran/26766] New: " anlauf at gmx dot de
2006-03-20 17:20 ` [Bug fortran/26766] " pinskia at gcc dot gnu dot org
2006-03-21 6:05 ` jvdelisle at gcc dot gnu dot org
2006-03-24 2:06 ` jvdelisle at gcc dot gnu dot org
2006-04-07 4:00 ` patchapp at dberlin dot org
2006-04-13 6:25 ` jvdelisle at gcc dot gnu dot org
2006-04-13 6:30 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:31 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:34 ` jvdelisle at gcc dot gnu dot org
2006-04-17 4:38 ` jvdelisle 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).