This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bootstrap broken on HEAD


I've commited HJ's patch as obvious, see http://gcc.gnu.org/PR12264

Gr.
Steven



Op za 13-09-2003, om 00:10 schreef Ziemowit Laski:
> This is on RH Linux 8 (not that I would expect dereferencing 'void *' 
> to work on other platforms)...
> 
> --Zem
> 
> ==============================
> 
> gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. 
> -I. -I../../../../src/gcc/HEAD/gcc/gcc 
> -I../../../../src/gcc/HEAD/gcc/gcc/. 
> -I../../../../src/gcc/HEAD/gcc/gcc/../include  
> ../../../../src/gcc/HEAD/gcc/gcc/tree-inline.c -o tree-inline.o
> ../../../../src/gcc/HEAD/gcc/gcc/tree-inline.c: In function 
> `inline_forbidden_p_1':
> ../../../../src/gcc/HEAD/gcc/gcc/tree-inline.c:896: warning: 
> dereferencing `void *' pointer
> ../../../../src/gcc/HEAD/gcc/gcc/tree-inline.c:896: request for member 
> `decl' in something not a structure or union
> make[2]: *** [tree-inline.o] Error 1
> make[2]: Leaving directory `/home/zlaski/fsf/obj/gcc/HEAD/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/home/zlaski/fsf/obj/gcc/HEAD/gcc'
> make: *** [bootstrap] Error 2
> 
> --------------------------------------------------------------
> Ziemowit Laski                 1 Infinite Loop, MS 301-2K
> Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
> Apple Computer, Inc.           +1.408.974.6229  Fax .5477
> 
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.1040
diff -c -3 -p -r2.1040 ChangeLog
*** ChangeLog	12 Sep 2003 21:51:45 -0000	2.1040
--- ChangeLog	12 Sep 2003 22:24:05 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
+ 
+ 	PR bootstrap/12264
+ 	* tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
+ 
  2003-09-12  Bob Wilson  <bob.wilson@acm.org>
  	
  	* config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.75
diff -c -3 -p -r1.75 tree-inline.c
*** tree-inline.c	10 Sep 2003 23:45:04 -0000	1.75
--- tree-inline.c	12 Sep 2003 22:24:09 -0000
*************** static const char *inline_forbidden_reas
*** 880,888 ****
  
  static tree
  inline_forbidden_p_1 (tree *nodep, int *walk_subtrees ATTRIBUTE_UNUSED,
! 		    void *fn)
  {
    tree node = *nodep;
    tree t;
  
    switch (TREE_CODE (node))
--- 880,889 ----
  
  static tree
  inline_forbidden_p_1 (tree *nodep, int *walk_subtrees ATTRIBUTE_UNUSED,
! 		      void *fnp)
  {
    tree node = *nodep;
+   tree fn = (tree) fnp;
    tree t;
  
    switch (TREE_CODE (node))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]