Bug 5946 - [gas patch] hppa: remove the no longer used is_same_frag()
Summary: [gas patch] hppa: remove the no longer used is_same_frag()
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 20:42 UTC by Adrian Bunk
Modified: 2008-03-16 23:16 UTC (History)
1 user (show)

See Also:
Host:
Target: hppa-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments
patch removing is_same_frag() (414 bytes, patch)
2008-03-16 20:43 UTC, Adrian Bunk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bunk 2008-03-16 20:42:36 UTC
The only remaining user of is_same_frag() was the function recursively calling
itself.

Different from earlier gcc versions, gcc 4.3 detects and warns about this fact,
which leads due to -Werror to the following build error:

<--  snip  -->

...
gcc -DHAVE_CONFIG_H -I. -I/TMP/binutils-2.18.50.0.5/gas -I. -I.
-I/TMP/binutils-2.18.50.0.5/gas -I../bfd -I/TMP/binutils-2.18.50.0.5/gas/config
-I/TMP/binutils-2.18.50.0.5/gas/../include -I/TMP/binutils-2.18.50.0.5/gas/..
-I/TMP/binutils-2.18.50.0.5/gas/../bfd
-DLOCALEDIR="\"/usr/local/DIR/binutils-hppa-2.18.50.0.5/share/locale\""   -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -march=k8 -c
/TMP/binutils-2.18.50.0.5/gas/config/tc-hppa.c
cc1: warnings being treated as errors
/TMP/binutils-2.18.50.0.5/gas/config/tc-hppa.c:5905: error: ‘is_same_frag’
defined but not used
make[4]: *** [tc-hppa.o] Error 1

<--  snip  -->
Comment 1 Adrian Bunk 2008-03-16 20:43:21 UTC
Created attachment 2328 [details]
patch removing is_same_frag()
Comment 2 Alan Modra 2008-03-16 23:16:19 UTC
patch applied