[Bug pch/20315] pch problems on solaris

2005-04-19 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|--- |4.0.0


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


[Bug pch/20315] pch problems on solaris

2005-03-29 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-03-29 
18:54 ---
Maybe this can be fixed by disabling PCH generation when -x is passed.


-- 
   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-03-29 18:54:09
   date||


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


[Bug pch/20315] pch problems on solaris

2005-03-29 Thread cmarco at indra dot es

--- Additional Comments From cmarco at indra dot es  2005-03-30 07:35 
---
Like you said, using the prefix BaseClassTemplate:: and not compiling the .h 
template file, just compiling the .c files that use this .h template file 
works fine. 

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug pch/20315] pch problems on solaris

2005-03-17 Thread cmarco at indra dot es

--- Additional Comments From cmarco at indra dot es  2005-03-17 08:55 
---
(In reply to comment #2)
 Confirmed, but the question is why do you need to generate the PCH twice? 
 Header files never produce object files, unlike in Ada.  Also removing the 
PCH
 file is enough to solve the problem.


  Perhahs, I have a concept problem. If you have a c++ template in a .h 
file without a .c file and you compile it you should obtain a .o object. I 
do not need any “.gch” file

So this happens with the 3.2.3 version.

sun1:~/test g++ -v
Reading specs from /usr/local/gcc-3.2.3/bin/../lib/gcc-lib/sparc-sun-
solaris2.9/3.2.3/specs
Configured with: ./configure --prefix=/usr/users/afernand/comp/gcc-3.2.3 -
enable-language=c,c++
Thread model: posix
gcc version 3.2.3

sun1:~/test ls -la test*
-rw-r-   1 cmarco   indra141 Mar  3 16:49 test.h
sun1:~/test g++ -m64 -x c++ -c test.h
sun1:~/test ls -la test*
-rw-r-   1 cmarco   indra141 Mar  3 16:49 test.h
-rw-r-   1 cmarco   indra672 Mar 17 09:18 test.o

Now if I use the 3.4.4 version: 

sun1:~/test g++ -v
Reading specs from /usr/local/gcc-34/bin/../lib/gcc/sparc-sun-
solaris2.9/3.4.4/specs
Configured with: ./configure --prefix=/usr/users/afernand/comp/gcc-bootstrap-
34 --enable-language=c --without-headers --disable-shared : 
(reconfigured) ./configure --prefix=/usr/users/afernand/comp/gcc-bootstrap-34 -
-enable-language=c --without-headers --disable-shared : 
(reconfigured) ./configure --prefix=/usr/users/afernand/comp/gcc-bootstrap-34 -
-enable-language=c --without-headers --disable-shared : 
(reconfigured) ./configure --prefix=/usr/users/afernand/comp/gcc-34 --enable-
language=c,c++
Thread model: posix
gcc version 3.4.4 20041222 (prerelease)
 
sun1:~/test ls -la test*
-rw-r-   1 cmarco   indra141 Mar  3 16:49 test.h 
sun1:~/test  g++ -m64 -x c++ -c test.h
sun1:~/test ls -la test*
-rw-r-   1 cmarco   indra141 Mar  3 16:49 test.h
-rw-r-   1 cmarco   indra1034879 Mar 17 09:23 test.h.gch

Something have change. ¿Should I have use other options?




-- 


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


[Bug pch/20315] pch problems on solaris

2005-03-17 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-03-17 
10:28 ---
   Perhahs, I have a concept problem. If you have a c++ template in a .h 
 file without a .c file and you compile it you should obtain a .o object.

No, you're forcing the compilation with -x c++.  Try without -x and see what the
3.2.3 compiler says.

The bottom line is that you should never compile a header file, except if you
want to get the corresponding PCH file.


-- 


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


[Bug pch/20315] pch problems on solaris

2005-03-16 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-03-16 
10:53 ---
Confirmed, but the question is why do you need to generate the PCH twice? 
Header files never produce object files, unlike in Ada.  Also removing the PCH
file is enough to solve the problem.



-- 
   What|Removed |Added

   Severity|normal  |minor
 Status|UNCONFIRMED |WAITING
   Priority|P2  |P3


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


[Bug pch/20315] pch problems on solaris

2005-03-09 Thread cmarco at indra dot es


-- 
   What|Removed |Added

  Component|target  |pch


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


[Bug pch/20315] pch problems on solaris

2005-03-09 Thread ebotcazou at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||ebotcazou at gcc dot gnu dot
   ||org
  GCC build triplet||sparc-sun-solaris2.9


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