[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-05-04 Thread dominiq at lps dot ens dot fr


--- Comment #6 from dominiq at lps dot ens dot fr  2009-05-04 11:42 ---
This pr is fixed as long as *-apple-darwin9 is concerned. Due to comments #3 to
#5, I don't close it as fixed. If someone wants to keep this PR open, (s)he
should change subject and priority.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-30 Thread espindola at google dot com


--- Comment #4 from espindola at google dot com  2009-04-30 08:07 ---
Probably fixed on 146998.

Andrew Pinski, we cannot use a shared library for this. The idea is for the
plugin to remember what gcc version it was compiled for. A shared library can
change after the fact.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-30 Thread joseph at codesourcery dot com


--- Comment #5 from joseph at codesourcery dot com  2009-04-30 10:09 ---
Subject: Re:  [4.5 Regression] ./plugin-version.h:11:
 error: 'gcc_version' defined but not used

On Thu, 30 Apr 2009, pinskia at gcc dot gnu dot org wrote:

 Really I think plugin support is flawed.  There should really be a shared
 library which the plugins link against and this library is what the main GCC
 links against too.  

This may be needed to support plugins on Windows hosts (and plugins do 
definitely need a common GCC-provided build infrastructure so that plugins 
people write will naturally build for other OSes as soon as support for 
them is added to that infrastructure), but we should not need to slow down 
GCC on Linux hosts by putting most of it in a shared library.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-29 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||build
   Priority|P3  |P1
   Target Milestone|--- |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-29 Thread pinskia at gmail dot com


--- Comment #1 from pinskia at gmail dot com  2009-04-29 23:13 ---
Subject: Re:   New: [4.5 Regression] ./plugin-version.h:11: error:
'gcc_version' defined but not used

Looks like this failson non elf hosts (well darwin supports dlopen so  
I don't understand why it fails on darwin).

Sent from my iPhone

On Apr 29, 2009, at 10:19 AM, dominiq at lps dot ens dot fr
gcc-bugzi...@gcc.gnu.org 
  wrote:

 Yet another bootstrap error on i686-apple-darwin9:

 ...
 /opt/gcc/i686-darwin/./prev-gcc/xgcc -B/opt/gcc/i686-darwin/./prev- 
 gcc/
 -B/opt/gcc/gcc4.5w/i686-apple-darwin9/bin/ -c  -g -O2 -fomit-frame- 
 pointer
 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- 
 prototypes
 -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format- 
 attribute
 -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength- 
 strings -Werror
 -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.5-work/gcc
 -I../../gcc-4.5-work/gcc/. -I../../gcc-4.5-work/gcc/../include - 
 I./../intl
 -I../../gcc-4.5-work/gcc/../libcpp/include -I/sw/include
 -I../../gcc-4.5-work/gcc/../libdecnumber
 -I../../gcc-4.5-work/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/ 
 include
 -I/sw/include -DCLOOG_PPL_BACKEND   ../../gcc-4.5-work/gcc/pointer- 
 set.c -o
 pointer-set.o
 cc1: warnings being treated as errors
 ./plugin-version.h:11: error: 'gcc_version' defined but not used
 make[3]: *** [plugin.o] Error 1
 make[3]: *** Waiting for unfinished jobs
 rm gcj-dbtool.pod fsf-funding.pod jcf-dump.pod jv-convert.pod  
 grmic.pod
 gcov.pod gcj.pod gc-analyze.pod gfdl.pod cpp.pod gij.pod gcc.pod  
 gfortran.pod
 make[2]: *** [all-stage2-gcc] Error 2
 make[1]: *** [stage2-bubble] Error 2
 make: *** [all] Error 2


 -- 
   Summary: [4.5 Regression] ./plugin-version.h:11: error:
'gcc_version' defined but not used
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dominiq at lps dot ens dot fr
 GCC build triplet: i686-apple-darwin9
  GCC host triplet: i686-apple-darwin9
 GCC target triplet: i686-apple-darwin9


 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-29 Thread lcwu at gcc dot gnu dot org


--- Comment #2 from lcwu at gcc dot gnu dot org  2009-04-30 00:34 ---
The sole use of gcc_version in plugin.c is in function try_init_one_plugin,
which is guarded by the macro ENABLE_PLUGIN. Since ENABLE_PLUGIN is set to 0 on
the Darwin systems, the function was compiled out. I think we need to guard the
inclusion of plugin-version.h with ENABLE_PLUGIN as well.


-- 

lcwu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||dnovillo at google dot com,
   ||lcwu at gcc dot gnu dot org,
   ||espindola at google dot com
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-04-30 00:34:30
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968



[Bug bootstrap/39968] [4.5 Regression] ./plugin-version.h:11: error: 'gcc_version' defined but not used

2009-04-29 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2009-04-30 00:40 ---
Really I think plugin support is flawed.  There should really be a shared
library which the plugins link against and this library is what the main GCC
links against too.  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39968