A subroutine or function that calls itself recursively must be declared with
the RECURSIVE attribute. gfortran should refuse to compile the subroutine
below and return an error indicating that the RECURSIVE attribute must be
specified.
>$ cat sub.f90
SUBROUTINE SUB()
CALL SUB()
END SUBROUTINE
>$
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-03 20:00 ---
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Status|UNCON
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 20:02 ---
g77 errored out:
[dandelion:~] pinskia% /Volumes/home/pinskia/gcc-3.3/bin/g77 t.f -ffree-form
t.f: In subroutine `sub':
t.f:1:
SUBROUTINE SUB()
1
t.f:2: (continued):
CALL SUB()
2
Invalid
--- Comment #14 from echristo at apple dot com 2006-03-03 20:17 ---
Fixed.
--
echristo at apple dot com changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #5 from jason at gcc dot gnu dot org 2006-03-03 20:21 ---
3.8 Object Lifetime[basic.life]
...
Before the lifetime of an object has started but after the storage which the
object will occupy has been allocated or, after the lifetime of an object has
ended and before th
gcc.dg/sibcall-6.c fails on x86-darwin since PIC is enabled by default but on
darwin PIC is handled differently so it should be able to sibcall to the
indirect function.
--
Summary: gcc.dg/sibcall-6.c fails on x86-darwin with default
options
Product: gcc
While looking at PR 26552, I noticed that stubs would override eax, that is
wrong as it is used to pass regparms.
Testcase:
int f(int ) __attribute__((regparm(3)));
int g(void)
{
return f(1);
}
--
We get:
_g:
pushl %ebp
movl%esp, %ebp
subl$8, %esp
m
--- Comment #3 from gchernis11 at msn dot com 2006-03-03 20:45 ---
Created an attachment (id=10965)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10965&action=view)
Preprocessed source that fails
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
--- Comment #4 from gchernis11 at msn dot com 2006-03-03 20:48 ---
Created an attachment (id=10966)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10966&action=view)
gcc /v
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-03 20:54 ---
Reducing.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
CC|
--- Comment #3 from bdtaylo1 at uiuc dot edu 2006-03-03 21:05 ---
The second example (involving a recursive call to an ENTRY statement) also
errors out on g77 (v3.4.4):
>$ g77 -ffree-form sub2.f -c
sub2.f: In subroutine `sub2':
sub2.f:2:
ENTRY ENT2()
1
sub2.f:3: (continued)
--- Comment #4 from olaf dot dietsche at gfa-net dot de 2006-03-03 22:57
---
I looked at your link and at issue 197. I don't see how this applies to my bug
report, especially in connection with _user defined_ types. What I don't
understand is, why does g++ handle builtin types different
--- Comment #10 from jvdelisle at gcc dot gnu dot org 2006-03-03 23:05
---
The case in Comment #9 is also very simple. I got myself again. I saw this
before, but because I did not have a test case that failed, I left it alone.
With this fix in file_pos.c all of Dale's rewind tests pa
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-03 23:10 ---
(In reply to comment #4)
> I looked at your link and at issue 197. I don't see how this applies to my bug
> report, especially in connection with _user defined_ types. What I don't
> understand is, why does g++ handl
--- Comment #12 from daney at gcc dot gnu dot org 2006-03-03 23:24 ---
Fixed by this patch to GNU classpath:
2006-03-03 David Daney <[EMAIL PROTECTED]>
* gnu/java/net/protocol/http/HTTPURLConnection.java
(getRequestProperties): Rewrote.
(addRequestProperty): Rewrote.
--
daney at gcc dot gnu dot org changed:
What|Removed |Added
Component|libgcj |classpath
Product|gcc |classpath
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-03 23:40 ---
Here is the patch which should fix this bug:
Index: i386.c
===
--- i386.c (revision 111688)
+++ i386.c (working copy)
@@ -2232,7 +2232,9 @@ ix
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 23:51 ---
After talking with Eric Christopher, this patch is going to be wrong when he
removes the stubs for x86 as there will be a PLT now so I am not going to
submit the patch and I am removing the missed-optimization.
--
--- Comment #4 from paolo at gcc dot gnu dot org 2006-03-03 23:54 ---
Subject: Bug 26526
Author: paolo
Date: Fri Mar 3 23:54:21 2006
New Revision: 111690
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111690
Log:
2006-03-03 Paolo Carlini <[EMAIL PROTECTED]>
PR libstd
--- Comment #5 from paolo at gcc dot gnu dot org 2006-03-03 23:55 ---
Subject: Bug 26526
Author: paolo
Date: Fri Mar 3 23:55:07 2006
New Revision: 111691
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111691
Log:
2006-03-03 Paolo Carlini <[EMAIL PROTECTED]>
PR libstd
--- Comment #6 from pcarlini at suse dot de 2006-03-03 23:55 ---
Fixed for 4.1.1.
--
pcarlini at suse dot de changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #5 from jason at gcc dot gnu dot org 2006-03-04 01:29 ---
Tested, bug not present in gcc 4.0.2. Not going to fix in 3.x.
--
jason at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-04 03:07 ---
I am applying the patch for Geoff.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
101 - 123 of 123 matches
Mail list logo