Why not remove entry for stripped function in ELF .debug_info section

2012-06-17 Thread Terry Guo
Hi, I have following code which will be built with options "-ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-Map=test.map": #include static int unusedint=5; static int usedint=1; int unused(void) { return 1; } int foo(void) { return usedint; } int main(void) { if (fo

Re: Local Variables

2012-06-17 Thread Ian Lance Taylor
Terry writes: > Posting here rather than gcc.help since I consider this behaviour to > be a bug. The right place is still gcc-h...@gcc.gnu.org. That is the mailing list for all discussions about using GCC, as opposed to discussions about how to change GCC. > When I step through the function "r

Re: Endless "declared 'static' but never defined" warnings with stage 2 & 3 compilers

2012-06-17 Thread t-rexky
Thank you for your response! On 2012-06-12, at 8:03 AM, Vincent Rivière wrote: > On 11/06/2012 21:20, t-rexky wrote: >>> #include >>> #include >>> >>> int main() { >>> printf("%lf\n", acos(0.5)); >>> return 0; >>> } > > First, note that acos(0.5) is a "double" expression so its format should

RE: 4.7.1 build failure in hppa1.1-hp-hpux11.11

2012-06-17 Thread Mailaripillai, Kannan Jeganathan
> Should I do something similar for PA as well? Right. Doing similar fix for PA solved the issue. The modifications attached below. Please review the same. Without this modification PA HP-UX build will continue to fail (even in trunk). So request one of you to review it as soon as possible. -

gcc-4.8-20120617 is now available

2012-06-17 Thread gccadmin
Snapshot gcc-4.8-20120617 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.8-20120617/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk

Local Variables

2012-06-17 Thread Terry
Posting here rather than gcc.help since I consider this behaviour to be a bug. Here is my demo program to illustrate the buggy behavior: #include #include #include #define PATH_SEP '/' static unsigned char *replace_HOME( unsigned char*filespec) { unsigned chartmpspec[300],

Re: libatomic -Werror problem

2012-06-17 Thread Richard Henderson
On 2012-06-15 15:05, Steve Ellcey wrote: > This causes the libatomic build to fail because it is compiled > with -Werror which is added in the configure script. None of the > other libraries seem to be built with -Werror. Can we take this out? > Or should it be replaced by AC_PROG_CPP_WERROR? I

Re: Broken links

2012-06-17 Thread Richard Guenther
On Sun, Jun 17, 2012 at 10:32 AM, Odne Hellebø wrote: > Hello, > > Just wanted to report that these links on your page are broken: > http://gcc.gnu.org/onlinedocs/gcc-4.7.1/libstdc++/manual/ > http://gcc.gnu.org/onlinedocs/gcc-4.7.1/libstdc++/api/ > > With their pdf, xml and html tarball links. >

Broken links

2012-06-17 Thread Odne Hellebø
Hello, Just wanted to report that these links on your page are broken: http://gcc.gnu.org/onlinedocs/gcc-4.7.1/libstdc++/manual/ http://gcc.gnu.org/onlinedocs/gcc-4.7.1/libstdc++/api/ With their pdf, xml and html tarball links. I noticed because I wanted to read them :D Regards, Odne Hellebø