Issue Details (XML | Word | Printable)

Key: PCC-431
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

pcc -M is handled wrongly

Created: 11/May/14 09:49 AM   Updated: 11/May/14 02:11 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386

 Description  « Hide
The -M argument to pcc front end is handled wrongly. This should produce the make output on stdout by default rather than in a file

this causes problems with NetBSD makefiles, as the mkdep utility redirects the output to a temp file (but gets nothing) then
overwrites the output that pcc just created with the empty file.

% cd lib/liby
% make CC=pcc depend
# create liby/main.d
mkdep -f main.d.tmp -- main.c && mv main.d.tmp main.d
# create liby/yyerror.d
mkdep -f yyerror.d.tmp -- yyerror.c && mv yyerror.d.tmp yyerror.d
# create liby/.depend
rm -f .depend
mkdep -s .o\ .po\ .pico\ .go\ .ln -d -f .depend main.d yyerror.d
% ls -l *.d
-rw-r--r-- 1 plunky wheel 0 May 11 08:48 main.d
-rw-r--r-- 1 plunky wheel 0 May 11 08:48 yyerror.d

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 11/May/14 02:11 PM
Now -M should behave as expected.