genius r744 - in trunk: . gtkextra src ve



Author: jirka
Date: Mon Mar  2 08:38:55 2009
New Revision: 744
URL: http://svn.gnome.org/viewvc/genius?rev=744&view=rev

Log:

Mon Mar 02 02:38:40 2009  Jiri (George) Lebl <jirka 5z com>

	* **/Makefile.am: implement profile-generate and profile-use
	  target for profile guided optimization.  Not quite all working
	  I don't think, but simple tests produce impressive results.

	* gtkextra/gtkplotflux.c: fix bad use of snprintf



Modified:
   trunk/ChangeLog
   trunk/Makefile.am
   trunk/NEWS
   trunk/gtkextra/Makefile.am
   trunk/gtkextra/gtkplotflux.c
   trunk/src/Makefile.am
   trunk/ve/Makefile.am

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Mon Mar  2 08:38:55 2009
@@ -19,6 +19,14 @@
 	-update-mime-database "$(DESTDIR)${datadir}/mime"
 endif
 
+profile-generate:
+	make clean
+	PGO_CFLAGS="-fprofile-generate" make
+
+profile-use:
+	make clean
+	PGO_CFLAGS="-fprofile-use" make
+
 EXTRA_DIST = \
 	genius.spec \
 	genius.spec.in \

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Mar  2 08:38:55 2009
@@ -12,6 +12,8 @@
 * Fix line plot scale precision in case the x and y axis have very different
   scales
 * Remove dependence on libgnome/ui
+* Some optimizations
+* Several other minor bugfixes
 * Translation updates
 
 Changes to 1.0.5

Modified: trunk/gtkextra/Makefile.am
==============================================================================
--- trunk/gtkextra/Makefile.am	(original)
+++ trunk/gtkextra/Makefile.am	Mon Mar  2 08:38:55 2009
@@ -10,9 +10,11 @@
 	-I$(top_builddir)					\
 	-I$(top_builddir)/ve					\
 	-I$(top_builddir)/gtkextra				\
-	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
+	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"		\
 	$(GENIUS_CFLAGS)
 
+AM_CFLAGS = $(PGO_CFLAGS)
+
 # Use these only really for checking for deprecated use, not all the time
 #	-DG_DISABLE_DEPRECATED			\
 #	-DGDK_DISABLE_DEPRECATED		\

Modified: trunk/gtkextra/gtkplotflux.c
==============================================================================
--- trunk/gtkextra/gtkplotflux.c	(original)
+++ trunk/gtkextra/gtkplotflux.c	Mon Mar  2 08:38:55 2009
@@ -492,11 +492,11 @@
     gtk_plot_axis_parse_label(data->gradient, flux->scale_max, flux->labels_precision, flux->labels_style, text);
     if(flux->labels_prefix){
       g_snprintf(aux_text, 100, "%s%s", flux->labels_prefix, text);
-      g_snprintf(text, 100, aux_text);
+      strcpy(text, aux_text);
     }
     if(flux->labels_suffix) {
       g_snprintf(aux_text, 100, "%s%s", text, flux->labels_suffix);
-      g_snprintf(text, 100, aux_text);
+      strcpy(text, aux_text);
     }
 
     g_snprintf(new_label, 100, "%s", text);
@@ -575,12 +575,12 @@
     if(flux->labels_prefix){
       gchar aux_text[100];
       g_snprintf(aux_text, 100, "%s%s", flux->labels_prefix, text_max);
-      g_snprintf(text_max, 100, aux_text);
+      strcpy(text_max, aux_text);
     }
     if(flux->labels_suffix){
       gchar aux_text[100];
       g_snprintf(aux_text, 100, "%s%s", text_max, flux->labels_suffix);
-      g_snprintf(text_max, 100, aux_text);
+      strcpy(text_max, aux_text);
     }
     g_snprintf(new_label, 100, "%s", text_max);
 

Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am	(original)
+++ trunk/src/Makefile.am	Mon Mar  2 08:38:55 2009
@@ -28,6 +28,8 @@
 	$(GSV_CFLAGS)						\
 	$(EXTRA_WARNING_CFLAGS)
 
+AM_CFLAGS = $(PGO_CFLAGS)
+
 bin_PROGRAMS = @GNOME_GENIUS@ genius
 
 libexec_PROGRAMS = @GENIUS_READLINE_HELPER_FIFO@

Modified: trunk/ve/Makefile.am
==============================================================================
--- trunk/ve/Makefile.am	(original)
+++ trunk/ve/Makefile.am	Mon Mar  2 08:38:55 2009
@@ -7,6 +7,8 @@
 	-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
 	$(VICIOUS_CFLAGS)
 
+AM_CFLAGS = $(PGO_CFLAGS)
+
 # Use these only really for checking for deprecated use, not all the time
 #	-DG_DISABLE_DEPRECATED			\
 #	-DGDK_DISABLE_DEPRECATED		\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]