public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 2 (small?) problems
@ 1997-08-18  8:22 Thomas Hiller
  1997-08-18  9:11 ` GCC Projects? Bernd Schmidt
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Thomas Hiller @ 1997-08-18  8:22 UTC (permalink / raw)
  To: egcs

Hello,

I encountered 2 problems with the current snapshot (beside some others already 
mentioned on the list).

1)	c++filt is not installed.

2)	Shared libg++ problem.
	I have a problem (also with the normal gcc), when I install the compiler
	in a non-standard place (e.g. /work/egcs). The shared libg++ is not
	found. I had to set the LD_LIBRARY_PATH to include $prefix/lib. Is there
	a portable way to set the shared library path from the compiler ? The
	compiler already issues -L$prefix/lib.
	
Greetings
	Thomas

Thomas Hiller				email: hiller@tu-harburg.d400.de
TU Hamburg-Harburg
Zentrallabor Informations- und Kommunikationstechnik
Harburger Schloss-Str. 20		Tel.: +49-40-7718-3448
D - 21071 Hamburg			Fax : +49-40-7718-2579

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: bootstrapping problems with native compiler
@ 1997-08-18 16:34 Dave Love
  1997-08-18 16:34 ` front end interface Nigel Stephens
  1997-08-18 16:52 ` Dave Love
  0 siblings, 2 replies; 15+ messages in thread
From: Dave Love @ 1997-08-18 16:34 UTC (permalink / raw)
  To: egcs

>>>>> "Jim" == Jim Wilson <wilson@cygnus.com> writes:

 Jim> The problem here is that LANGUAGES is not passed on recursive
 Jim> invocations of make.  This causes a problem for any target (like
 Jim> irix6) with a multilib libgcc, because this is implemented via a
 Jim> recursive make.  

I passed LANGUAGES="$(LANGUAGES)" to all the $(MAKE)s in the top-level
Makefile.in and on an irix6.4 system with the native make (and having
forgotten to stop it picking up gcc as CC) it did a set of recursive
makes until running out of processes.

 Jim> Manfred Hollstein mailed a patch to the gcc2 developers that
 Jim> would fix this.

I checked the FSF version before complaining and couldn't see any
relevant changes there.  (Sorry I haven't been reading gcc2.)  If
someone can mail it to me I can see if it solves the problem on a
mighty, fairly-idle SGI.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Monday morning
@ 1997-08-18 14:53 Philippe Laliberte
  1997-08-18 14:53 ` front end interface Andreas Schwab
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Laliberte @ 1997-08-18 14:53 UTC (permalink / raw)
  To: egcs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hello,

        I have been reading the list and looking at the snapshot over the
weekend, and it seem's clear that I'm a bit lost. Can some one point to me some
reading to do in the hope that I can contribute one day something usefull?

        Utill that day I'll keep reading and trying to play with the snapshot.
Thank's for being their.


---

Bonne journée,
Have a nice day,

  _____________________________________________________________________
|Philippe Laliberte             |        http://www.mlink.net/~arsphl/  |
| ___ Arsphl ___                |        http://oeil.qc.ca/             |
| arsphl@mlink.net              |                                       |
| arsphl@oeil.qc.ca             |        NO SPAM PLEASE                 |
  _____________________________________________________________________

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: front end interface
@ 1997-08-18 14:53 Klaus Kaempf
  0 siblings, 0 replies; 15+ messages in thread
From: Klaus Kaempf @ 1997-08-18 14:53 UTC (permalink / raw)
  To: egcs

> 
> memcpy is recognized by the C front end, as are some of the other
> string and math functions.

This already leads to all sorts of unwanted behaviour, see below
> 
> The new calls.c recognizes malloc, calloc, and realloc by name.

Is a list of these names documented anywhere ? A possible solution
would be to include these in a (vms specific) gcclib which calls the
proper dec c functions.

> 
> Standard functions which are defined as macros must also be defined
> with their real names.  gcc depends on this; for example it may call
> "memcpy" for large structure assignments.
> 

The dependancy on 'real names' hit me once before. I haven't found an easy solution
for this yet. Maybe the front end should be changed to have function
declarations override internal prototypes for the same function.

The openVMS/Alpha math.h uses DEC C math functions with different
assembler symbol names:

math.h: extern double sin (double _x) __asm ("MATH$SIN_T");

libstdc++/fcomplex.cc calls sin() with a float argument which
doesn't match the math.h prototype (double argument), so the
built-in sin prototype is matched (why ?).

Since there is no built-in sin function, the resulting object
code lists 'sin' as an undefined symbol which isn't matched
by any library.

Compiling with "-fno-builtin" or changing the prototype declaration
in math.h to have a 'float' argument is a (temporary) solution.



-- 
proGIS Software                 E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf      Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: front end interface
@ 1997-08-18 13:29 John Carr
  0 siblings, 0 replies; 15+ messages in thread
From: John Carr @ 1997-08-18 13:29 UTC (permalink / raw)
  To: egcs

> If I understand this correctly, you're depending on memcpy() being
> named 'memcpy' ?!
> 
> This leads into trouble with the current openVMS ports (vax and
> alpha), where most library functions are '#define'd with a DECC$ in
> front (and others have a __asm() appended to their declaration). So
> the compiler doesn't see memcpy but DECC$MEMCPY.

memcpy is recognized by the C front end, as are some of the other
string and math functions.

The new calls.c recognizes malloc, calloc, and realloc by name.  If
these are defined with different names in VMS the alias code will
generate worse, but correct, code.  calls.c also recognizes setjmp,
longjmp, and related functions; if VMS changes these names the
compiler may generate incorrect code.

Standard functions which are defined as macros must also be defined
with their real names.  gcc depends on this; for example it may call
"memcpy" for large structure assignments.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: front end interface
@ 1997-08-18  9:31 Klaus Kaempf
  0 siblings, 0 replies; 15+ messages in thread
From: Klaus Kaempf @ 1997-08-18  9:31 UTC (permalink / raw)
  To: egcs

> 
> I've mentioned this in private email but I should let the list know as
> well: my alias code in the back end recognizes certain C function names.
> I believe this is correct because all languages will be linking with the C
> library and must mangle or prohibit any names which conflict.  For example,
> Fortran symbols traditionally have a "_" added to the end.
> 
If I understand this correctly, you're depending on memcpy() being named 'memcpy' ?!

This leads into trouble with the current openVMS ports (vax and alpha), where most
library functions are '#define'd with a DECC$ in front (and others have a __asm() appended
to their declaration). So the compiler doesn't see memcpy but DECC$MEMCPY.

Klaus
-- 
proGIS Software                 E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf      Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: front end interface
@ 1997-08-16 20:53 John Carr
  0 siblings, 0 replies; 15+ messages in thread
From: John Carr @ 1997-08-16 20:53 UTC (permalink / raw)
  To: egcs

> We'll break the interface if doing so opens up new optimization opportunities
> or opportunities to clean up the compiler as a whole.
> 
> What kind of changes are you suggesting?

The function call interface does not permit a front end to say that a
function only modifies certain memory locations.  For example: memset,
fprintf, and sprintf only modify the memory pointed at by their first
argument (at least in ANSI C/POSIX).  write(2) doesn't modify any of
its arguments, but may modify errno.

In rtl, I will mark such function calls with the CONST_CALL_P flag and
add clobbers to CALL_INSN_FUNCTION_USAGE to represent the effects on
memory.

I worked out a compatible interface to handle the simple cases like memset,
but not the general case with multiple arguments and possible modification
of unmentioned global variables.


I've mentioned this in private email but I should let the list know as
well: my alias code in the back end recognizes certain C function names.
I believe this is correct because all languages will be linking with the C
library and must mangle or prohibit any names which conflict.  For example,
Fortran symbols traditionally have a "_" added to the end.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* front end interface
@ 1997-08-16 14:11 John Carr
  1997-08-16 16:28 ` Jeffrey A Law
  0 siblings, 1 reply; 15+ messages in thread
From: John Carr @ 1997-08-16 14:11 UTC (permalink / raw)
  To: egcs

The changes I am making to my alias code would be better and easier if
it were possible to change the front-end/back-end interface.  Are we
trying to be 100% compatible with the gcc2 interface?  I don't think
we should.

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

end of thread, other threads:[~1997-08-18 16:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-18  8:22 2 (small?) problems Thomas Hiller
1997-08-18  9:11 ` GCC Projects? Bernd Schmidt
1997-08-18  9:11 ` prototyping Andi Kleen
1997-08-18  9:11 ` Will egcs support MachTen? N8TM
1997-08-18 10:42 ` front end interface Clive Nicolson
1997-08-18 13:29 ` [EGCS] Re: double alignment patch for x86 Dave Love
  -- strict thread matches above, loose matches on Subject: below --
1997-08-18 16:34 bootstrapping problems with native compiler Dave Love
1997-08-18 16:34 ` front end interface Nigel Stephens
1997-08-18 16:52 ` Dave Love
1997-08-18 14:53 Monday morning Philippe Laliberte
1997-08-18 14:53 ` front end interface Andreas Schwab
1997-08-18 14:53 Klaus Kaempf
1997-08-18 13:29 John Carr
1997-08-18  9:31 Klaus Kaempf
1997-08-16 20:53 John Carr
1997-08-16 14:11 John Carr
1997-08-16 16:28 ` Jeffrey A Law

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).