public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c
@ 2005-05-22 12:13 ams at gnu dot org
2005-05-22 13:52 ` [Bug c/21706] " schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: ams at gnu dot org @ 2005-05-22 12:13 UTC (permalink / raw)
To: gcc-bugs
Please do not use MAXPATHLEN, it is a arbitrary limit, and is not
defined on GNU. Currently gcc 4.0.0 is unbuildable on GNU since
[gcc]/gcc/tlink.c assumes that MAXPATHLEN is defined. Please do not
use these kind of limits in GNU programs.
Suggested fix is to declare initial_cwd as:
char *initial_cwd;
and then instead of doing:
getcwd (initial_cwd, sizeof (initial_cwd));
do:
initial_cwd = getcwd (NULL, 0);
Note: getcwd (NULL, 0) is a GNU extention, and might not be available
on non-GNU platforms. (End of Note)
Sorry for not supplying a patch, happy hacking.
--
Summary: MAXPATHLEN usage in [gcc]/gcc/tlink.c
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ams at gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-gnu0.3
GCC host triplet: i686-pc-gnu0.3
GCC target triplet: i686-pc-gnu0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
@ 2005-05-22 13:52 ` schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
2005-05-22 14:04 ` [Bug middle-end/21706] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de @ 2005-05-22 13:52 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |schwinge-bugzilla-gcc dot
| |gnu dot org at nic-nac-
| |project dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
2005-05-22 13:52 ` [Bug c/21706] " schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
@ 2005-05-22 14:04 ` pinskia at gcc dot gnu dot org
2005-05-22 15:35 ` gdr at integrable-solutions dot net
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-22 14:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-22 14:04 -------
What about using PATH_MAX which is part of the POSIX standard?
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c |middle-end
Keywords| |build
Priority|P1 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
2005-05-22 13:52 ` [Bug c/21706] " schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
2005-05-22 14:04 ` [Bug middle-end/21706] " pinskia at gcc dot gnu dot org
@ 2005-05-22 15:35 ` gdr at integrable-solutions dot net
2005-05-22 15:36 ` schwab at suse dot de
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-05-22 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2005-05-22 15:35 -------
Subject: Re: MAXPATHLEN usage in [gcc]/gcc/tlink.c
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| What about using PATH_MAX which is part of the POSIX standard?
I think the point was about arbitray limit; and as far as I can tell
GNU does not claim to be POSIX, does it? ;-)
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
` (2 preceding siblings ...)
2005-05-22 15:35 ` gdr at integrable-solutions dot net
@ 2005-05-22 15:36 ` schwab at suse dot de
2005-05-26 13:51 ` ams at gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schwab at suse dot de @ 2005-05-22 15:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-05-22 15:36 -------
Like most POSIX limits PATH_MAX may not be defined if the actual limit is not
fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
` (3 preceding siblings ...)
2005-05-22 15:36 ` schwab at suse dot de
@ 2005-05-26 13:51 ` ams at gnu dot org
2005-05-30 15:23 ` pinskia at gcc dot gnu dot org
2005-06-19 14:00 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: ams at gnu dot org @ 2005-05-26 13:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ams at gnu dot org 2005-05-26 12:59 -------
(In reply to comment #3)
> Like most POSIX limits PATH_MAX may not be defined if the actual limit is not
> fixed.
Correct, and GNU doesn't have such a limit for the length of filenames, the
number of arguments passed to a program or the length of a hostname. And
probobly a whole bunch of other things that have slipped my mind right now.
All of this is perfectly compliant with POSIX.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
` (4 preceding siblings ...)
2005-05-26 13:51 ` ams at gnu dot org
@ 2005-05-30 15:23 ` pinskia at gcc dot gnu dot org
2005-06-19 14:00 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-30 15:23 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |21824
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21706] MAXPATHLEN usage in [gcc]/gcc/tlink.c
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
` (5 preceding siblings ...)
2005-05-30 15:23 ` pinskia at gcc dot gnu dot org
@ 2005-06-19 14:00 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 14:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-19 14:00 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-19 14:00:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21706
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-19 14:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-22 12:13 [Bug c/21706] New: MAXPATHLEN usage in [gcc]/gcc/tlink.c ams at gnu dot org
2005-05-22 13:52 ` [Bug c/21706] " schwinge-bugzilla-gcc dot gnu dot org at nic-nac-project dot de
2005-05-22 14:04 ` [Bug middle-end/21706] " pinskia at gcc dot gnu dot org
2005-05-22 15:35 ` gdr at integrable-solutions dot net
2005-05-22 15:36 ` schwab at suse dot de
2005-05-26 13:51 ` ams at gnu dot org
2005-05-30 15:23 ` pinskia at gcc dot gnu dot org
2005-06-19 14:00 ` pinskia at gcc dot gnu dot org
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).