public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* trunk (rev 180248) not buildable --with-gc=zone: undefined ggc_alloced_size_for_request
@ 2011-10-20 13:53 Basile Starynkevitch
  2011-10-20 15:42 ` Dodji Seketeli
  0 siblings, 1 reply; 2+ messages in thread
From: Basile Starynkevitch @ 2011-10-20 13:53 UTC (permalink / raw)
  To: gcc

Hello All,

On my GNU/Linux/x86-64 Debian/Sid system, I am not able to build trunk svn revision 180248 when it is configuresd with 


 '/usr/src/Lang/gcc-trunk-bstarynk/configure'   '--enable-maintainer-mode' '--enable-checks=tree,gc' '--enable-bootstrap' '--disable-multilib' '--enable-plugin' 'CFLAGS=-O -g' '--enable-lto' '--with-gc=zone' '--enable-languages=c,c++,lto' 


I am getting
gcc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I. -I/usr/src/Lang/gcc-trunk-bstarynk/gcc -I/usr/src/Lang/gcc-trunk-bstarynk/gcc/. -I/usr/src/Lang/gcc-trunk-bstarynk/gcc/../include -I/usr/src/Lang/gcc-trunk-bstarynk/gcc/../libcpp/include  -I/usr/src/Lang/gcc-trunk-bstarynk/gcc/../libdecnumber -I/usr/src/Lang/gcc-trunk-bstarynk/gcc/../libdecnumber/bid -I../libdecnumber    cc1-checksum.c -o cc1-checksum.o
gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o default-c.o \
  cc1-checksum.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -lcloog -lppl_c -lppl -lpwl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
libbackend.a(ggc-zone.o): In function `ggc_internal_alloc_zone_stat':
/usr/src/Lang/gcc-trunk-bstarynk/gcc/ggc-zone.c:1105: undefined reference to `ggc_alloced_size_for_request'


The compiler compiling the trunk is:
% gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-14' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-14) 

and the linker is % ld -v
GNU ld (GNU Binutils for Debian) 2.21.90.20111004


Does any one reproduce the same behevior?


If the file gcc/ggc-zone.c is becoming deprecated, when configured --with-gc=zone maybe we should add a comment about it.

What do you think?

Cheers
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: trunk (rev 180248) not buildable --with-gc=zone: undefined ggc_alloced_size_for_request
  2011-10-20 13:53 trunk (rev 180248) not buildable --with-gc=zone: undefined ggc_alloced_size_for_request Basile Starynkevitch
@ 2011-10-20 15:42 ` Dodji Seketeli
  0 siblings, 0 replies; 2+ messages in thread
From: Dodji Seketeli @ 2011-10-20 15:42 UTC (permalink / raw)
  To: Basile Starynkevitch; +Cc: gcc, GCC Patches

Basile Starynkevitch <basile@starynkevitch.net> a écrit:

> libbackend.a(ggc-zone.o): In function `ggc_internal_alloc_zone_stat':
> /usr/src/Lang/gcc-trunk-bstarynk/gcc/ggc-zone.c:1105: undefined reference to `ggc_alloced_size_for_request'

This is my fault.  I have tested and committed the below as per the
obvious rule.

Sorry for the inconvenience.

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eeed56d..83da507 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -10,6 +10,10 @@
 
 2011-10-20  Dodji Seketeli  <dodji@redhat.com>
 
+	* ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
+	ggc_alloced_size_order_for_request into ggc_round_alloc_size like
+	it was done in ggc-page.c.
+
 	PR other/50659
 	* doc/cppopts.texi: Use @smallexample/@end smallexample in
     	documentation for -fdebug-cpp instead of @quotation/@end quotation
diff --git a/gcc/ggc-zone.c b/gcc/ggc-zone.c
index 79c8c03..5257ada 100644
--- a/gcc/ggc-zone.c
+++ b/gcc/ggc-zone.c
@@ -1102,7 +1102,7 @@ ggc_internal_alloc_zone_stat (size_t orig_size, struct alloc_zone *zone
   struct small_page_entry *entry;
   struct alloc_chunk *chunk, **pp;
   void *result;
-  size_t size = ggc_alloced_size_for_request (orig_size);
+  size_t size = ggc_round_alloc_size (orig_size);
 
   /* Try to allocate the object from several different sources.  Each
      of these cases is responsible for setting RESULT and SIZE to

-- 
		Dodji

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-20 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20 13:53 trunk (rev 180248) not buildable --with-gc=zone: undefined ggc_alloced_size_for_request Basile Starynkevitch
2011-10-20 15:42 ` Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).