This is the mail archive of the gcc-patches@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: PATCH PING^2 for 3.4 "save-temps still produces different .s and .o"


> I've taken a look.   I'm a preprocessor maintainer.  I'm pre-approving
> the change, assuming this fixes the problem and there are no new
> failures.  (I also think it qualifies as an obvious fix.)

Here's what I commited.  Bootstrapped/regtested (C only) on 
sparc-sun-solaris2.8 with the Sun compiler.


2004-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* cpplib.h (cpp_get_line_maps): Un-constify the structure
	pointed to by the pointer returned by the function.
	* cpplib.c (cpp_get_line_maps): Likewise.


Thanks for your help.

-- 
Eric Botcazou
Index: cpplib.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplib.c,v
retrieving revision 1.355
diff -u -p -r1.355 cpplib.c
--- cpplib.c	12 Dec 2003 07:00:26 -0000	1.355
+++ cpplib.c	9 Feb 2004 12:03:48 -0000
@@ -1904,7 +1904,7 @@ cpp_get_callbacks (cpp_reader *pfile)
 }
 
 /* The line map set.  */
-const struct line_maps *
+struct line_maps *
 cpp_get_line_maps (cpp_reader *pfile)
 {
   return &pfile->line_maps;
Index: cpplib.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplib.h,v
retrieving revision 1.270.4.3
diff -u -p -r1.270.4.3 cpplib.h
--- cpplib.h	7 Feb 2004 14:33:15 -0000	1.270.4.3
+++ cpplib.h	9 Feb 2004 12:03:48 -0000
@@ -526,7 +526,7 @@ extern void cpp_set_include_chains (cpp_
    through the pointer returned from cpp_get_callbacks, or set them
    with cpp_set_callbacks.  */
 extern cpp_options *cpp_get_options (cpp_reader *);
-extern const struct line_maps *cpp_get_line_maps (cpp_reader *);
+extern struct line_maps *cpp_get_line_maps (cpp_reader *);
 extern cpp_callbacks *cpp_get_callbacks (cpp_reader *);
 extern void cpp_set_callbacks (cpp_reader *, cpp_callbacks *);
 

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