This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran,patch] bootstrap broken
- From: Feng Wang <wf_cs at yahoo dot com>
- To: fortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 14 Sep 2004 20:57:32 +0800 (CST)
- Subject: [gfortran,patch] bootstrap broken
Hi, all
I couldn't build fortran on ia64 at lease 4 days ago and this patch fix it
with no regression. But everyone else seems not to have this problem. I think
this is obvious but nobody pointed it. I was really confused. Dones everyone
build smoothly?
Feng Wang
ChangeLog entry
2004-09-14 Feng Wang <fengwang@nudt.edu.cn>
* gfortran.h (gfc_linebuf): Change the type of line to char *.
* scanner.c (load_file): Initialize line.
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
*** gfortran.h 2004/09/15 00:09:53 1.1
--- gfortran.h 2004/09/15 00:47:08
*************** typedef struct gfc_linebuf
*** 468,474 ****
struct gfc_file *file;
struct gfc_linebuf *next;
! char line[];
} gfc_linebuf;
typedef struct
--- 468,474 ----
struct gfc_file *file;
struct gfc_linebuf *next;
! char *line;
} gfc_linebuf;
typedef struct
*** scanner.c 2004/09/15 00:09:39 1.1
--- scanner.c 2004/09/15 01:40:11
*************** load_file (char *filename, bool initial)
*** 1043,1048 ****
--- 1043,1049 ----
b->linenum = current_file->line++;
#endif
b->file = current_file;
+ b->line = (char *) (&(b->line) + 1);
strcpy (b->line, line);
if (line_head == NULL)